PageSourceSearch

https://ountravela.com/wp-content/plugins/fluid-checkout/js/country-select-427.min.js

js ountravela.com collected 2026-09-25 01:30:52 UTC 5,323 bytes, 1 lines download raw bytes

1jQuery(function(h){if("undefined"==typeof wc_country_select_params)return!1;var f=window.TomSelect&&window.fcSettings&&fcSettings.use_enhanced_select&&"yes"===fcSettings.use_enhanced_select,e=(f&&window.FCEnhancedSelect&&h(document.body).on("country_to_state_changed",function(){FCEnhancedSelect.enhanceField("select.state_select")}),h().selectWoo&&!f&&((e=function(){requestAnimationFrame(function(){h("select.country_select, select.state_select").each(function(){var n=h(this),e=n.attr("id"),t=document.querySelector(".select2-container--open"),c=null!=t&&null!=t.querySelector("#select2-"+e+"-results"),t=(n.off("select2:select"),n.parent().find(".select2-container").remove(),h.extend({placeholder:n.attr("data-placeholder")||n.attr("placeholder")||"",label:n.attr("data-label")||null,required:"true"===n.attr("aria-required")||null,width:"100%"},{language:{errorLoading:function(){return wc_country_select_params.i18n_searching},inputTooLong:function(e){e=e.input.length-e.maximum;return 1==e?wc_country_select_params.i18n_input_too_long_1:wc_country_select_params.i18n_input_too_long_n.replace("%qty%",e)},inputTooShort:function(e){e=e.minimum-e.input.length;return 1==e?wc_country_select_params.i18n_input_too_short_1:wc_country_select_params.i18n_input_too_short_n.replace("%qty%",e)},loadingMore:function(){return wc_country_select_params.i18n_load_more},maximumSelected:function(e){return 1===e.maximum?wc_country_select_params.i18n_selection_too_long_1:wc_country_select_params.i18n_selection_too_long_n.replace("%qty%",e.maximum)},noResults:function(){return wc_country_select_params.i18n_no_matches},searching:function(){return wc_country_select_params.i18n_searching}}}));h(this).on("select2:select",function(){h(this).trigger("focus")}).selectWoo(t),FCUtils.maybeRefocusElement(window.fcCurrentFocusedElement),setTimeout(function(){if(c&&"function"==typeof n.selectWoo){for(var e=document.querySelectorAll(".select2-container--open"),t=0;t<e.length;t++)e[t].remove();n.selectWoo("open")}},50)})})})(),h(document.body).on("country_to_state_changed",e),h(document.body).on("updated_checkout",e),h(document.body).on("wc_fragments_refreshed",e)),wc_country_select_params.countries.replace(/&quot;/g,'"')),g=JSON.parse(e),y=".woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-a
1ddress-fields,.woocommerce-shipping-calculator",w={};h("select.country_to_state, input.country_to_state").each(function(){var e=h(this).attr("id")||h(this).attr("name");e&&(w[e]=h(this).val())}),h(document.body).on("change refresh","select.country_to_state, input.country_to_state",function(){var e,t,n,c=h(this).closest(y),o=(FCUtils.maybeSetCurrentFocusedElementGlobalVariablesRelativeSelect2(),c.length||(c=h(this).closest(".form-row").parent()),h(this)),s=o.val(),a=c.find("#state, #billing_state, #shipping_state, #calc_shipping_state"),l=a.closest(".form-row"),r=a.attr("name"),i=a.attr("id"),u=a.attr("data-input-classes"),_=a.val()||"",d=_||a.find("option").filter(function(){return this.defaultSelected}).val()||"",p=a.attr("placeholder")||a.attr("data-placeholder")||"",o=o.attr("id")||o.attr("name"),m=w[o],m=void 0!==m&&m!==s,o=(w[o]=s,p===wc_country_select_params.i18n_select_state_text&&(p=""),["fc-select-field--hidden","fc-select-field--text","fc-select-field--select"]);f&&0<a.length&&(n=a.get(0),FCEnhancedSelect.enhanceField(n)),g[s]?(h.isEmptyObject(g[s])?(e=h('<input type="hidden" />').prop("id",i).prop("name",r).attr("data-input-classes",u).addClass("hidden "+u),l.hide().find(".select2-container").remove(),a.replaceWith(e),f&&0<a.length&&a[0].tomselect&&a[0].tomselect.destroy(),l.removeClass(o).addClass("fc-select-field--hidden")):(t=g[s],n=h('<option value=""></option>').text(wc_country_select_params.i18n_select_state_text),p=p||wc_country_select_params.i18n_select_state_text,l.show(),a.is("input")&&(e=h("<select></select>").prop("id",i).prop("name",r).data("placeholder",p).attr("data-input-classes",u).addClass("state_select "+u),a.replaceWith(e),a=c.find("#state, #billing_state, #shipping_state, #calc_shipping_state")),f&&0<a.length&&a[0].tomselect&&(a[0].tomselect.clear(!0),a[0].tomselect.clearOptions()),a.empty().append(n),h.each(t,function(e){e=h("<option></option>").prop("value",e).text(t[e]);a.append(e)}),n=!m&&t.hasOwnProperty(d)?d:"",a.val(n),f&&0<a.length&&a[0].tomselect&&(a[0].tomselect.sync(),a[0].tomselect.setValue(n,!0)),""===n&&""===_||a.trigger("change"),l.removeClass(o).addClass("fc-select-field--select")),h(document.body).trigger("country_to_state_changed",[s,c])):a.is('select, input[type="hidden"]')&&(e=h('<input type="text" />').prop("id",i).prop("name",r).prop("placeholder",p).attr("data-input-classes",u).addClass("input-text  "+u),l.show().find(".select2-container").remove(),a.replaceWith(e),f&&0<a.length&&a[0].tomselect&&a[0].tomselect.destroy(),l.removeClass(o).addClass("fc-select-field--text"),h(document.body).trigger("country_to_state_changed",[s,c])),FCUtils.maybeRefocusElement(window.fcCurrentFocusedElement,window.fcCurrentFocusedElementValue),h(document.body).trigger("country_to_state_changing",[s,c])}),h(document.body).on("wc_address_i18n_ready",function(){h(y).each(function(){var e=h(this).find("#country, #billing_country, #shipping_country, #calc_shipping_country");0!==e.length&&0!==e.val().length&&e.trigger("refresh")})})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.