{"version":3,"sources":["webpack:///./widgets/raa/js/registration.js"],"names":["showCountryStates","init","on","build","$","first","next","focus","edit","value","this","val","$states","find","$current","filter","attr","hide","length","removeAttr","show","closest","toggleClass","UX"],"mappings":"4EAAA,IAAIA,EAAoB,CACpBC,KAAM,SAANA,OACID,EAAkBE,GAAGC,QACrBC,EAAE,4BAA4BC,QAAQC,OAAOC,SAEjDL,GAAI,CACAC,MAAO,SAAPA,QACIH,EAAkBQ,KAAKN,GAAG,SAAU,YAAY,WAC5C,IAAIO,EAAQL,EAAEM,MAAMC,MAChBC,EAAUZ,EAAkBQ,KAAKK,KAAK,UACtCC,EAAWF,EAAQG,OAAO,IAAMN,GACpCG,EAAQI,KAAK,YAAY,GAAML,IAAI,IAAIM,OACnCH,EAASI,SACTJ,EAASK,WAAW,YAAYC,OAChCN,EAASH,IAAIG,EAASD,KAAK,gBAAgBF,QAE/CC,EAAQS,QAAQ,gBAAgBC,YAAY,UAAWR,EAASI,aAI5EV,KAAMJ,EAAE,UAGZmB,GAAGvB,kBAAoBA","file":"js/showCountryStates-fe2e3dedf1fd6b41d063.js","sourcesContent":["var showCountryStates = {\n init: function () {\n showCountryStates.on.build();\n $('form .input-group .error').first().next().focus();\n },\n on: {\n build: function () {\n showCountryStates.edit.on('change', '.country', function () {\n var value = $(this).val();\n var $states = showCountryStates.edit.find('.state');\n var $current = $states.filter('.' + value);\n $states.attr('disabled', true).val('').hide();\n if ($current.length) {\n $current.removeAttr('disabled').show();\n $current.val($current.find('option:eq(1)').val());\n }\n $states.closest('.input-group').toggleClass('hidden', !$current.length);\n });\n },\n },\n edit: $('.edit'),\n};\n\nUX.showCountryStates = showCountryStates; // add to global namespace\n"],"sourceRoot":""}