PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
woocommerce
/
assets
/
js
/
frontend
jQuery(function(u){if("undefined"==typeof wc_country_select_params)return!1;if(u().selectWoo){var t=function(){u("select.country_select:visible, select.state_select:visible").each(function(){var t=u.extend({placeholderOption:"first",width:"100%"},{language:{errorLoading:function(){return wc_country_select_params.i18n_searching},inputTooLong:function(t){var e=t.input.length-t.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(t){var e=t.minimum-t.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(t){return 1===t.maximum?wc_country_select_params.i18n_selection_too_long_1:wc_country_select_params.i18n_selection_too_long_n.replace("%qty%",t.maximum)},noResults:function(){return wc_country_select_params.i18n_no_matches},searching:function(){return wc_country_select_params.i18n_searching}}});u(this).selectWoo(t),u(this).on("select2:select",function(){u(this).focus()})})};t(),u(document.body).bind("country_to_state_changed",function(){t()})}var e=wc_country_select_params.countries.replace(/"/g,'"'),p=u.parseJSON(e);u(document.body).on("change","select.country_to_state, input.country_to_state",function(){var t=u(this).closest(".woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-shipping-calculator");t.length||(t=u(this).closest(".form-row").parent());var e=u(this).val(),n=t.find("#billing_state, #shipping_state, #calc_shipping_state"),o=n.closest("p.form-row"),c=n.attr("name"),i=n.attr("id"),r=n.val(),a=n.attr("placeholder")||n.attr("data-placeholder")||"";if(p[e])if(u.isEmptyObject(p[e]))n.closest("p.form-row").hide().find(".select2-container").remove(),n.replaceWith('<input type="hidden" class="hidden" name="'+c+'" id="'+i+'" value="" placeholder="'+a+'" />'),u(document.body).trigger("country_to_state_changed",[e,t]);else{var s="",_=p[e];for(var l in _)_.hasOwnProperty(l)&&(s=s+'<option value="'+l+'">'+_[l]+"</option>");n.closest("p.form-row").show(),n.is("input")&&(n.replaceWith('<select name="'+c+'" id="'+i+'" class="state_select" data-placeholder="'+a+'"></select>'),n=t.find("#billing_state, #shipping_state, #calc_shipping_state")),n.html('<option value="">'+wc_country_select_params.i18n_select_state_text+"</option>"+s),n.val(r).change(),u(document.body).trigger("country_to_state_changed",[e,t])}else n.is("select")?(o.show().find(".select2-container").remove(),n.replaceWith('<input type="text" class="input-text" name="'+c+'" id="'+i+'" placeholder="'+a+'" />'),u(document.body).trigger("country_to_state_changed",[e,t])):n.is('input[type="hidden"]')&&(o.show().find(".select2-container").remove(),n.replaceWith('<input type="text" class="input-text" name="'+c+'" id="'+i+'" placeholder="'+a+'" />'),u(document.body).trigger("country_to_state_changed",[e,t]));u(document.body).trigger("country_to_state_changing",[e,t])})});
[+]
..
[-] password-strength-meter.js
[edit]
[-] password-strength-meter.min.js
[edit]
[-] lost-password.min.js
[edit]
[-] price-slider.min.js
[edit]
[-] credit-card-form.js
[edit]
[-] checkout.js
[edit]
[-] geolocation.js
[edit]
[-] cart.js
[edit]
[-] tokenization-form.js
[edit]
[-] country-select.min.js
[edit]
[-] price-slider.js
[edit]
[-] cart-fragments.min.js
[edit]
[-] geolocation.min.js
[edit]
[-] woocommerce.js
[edit]
[-] tokenization-form.min.js
[edit]
[-] address-i18n.js
[edit]
[-] cart-fragments.js
[edit]
[-] single-product.min.js
[edit]
[-] add-to-cart.js
[edit]
[-] add-to-cart-variation.js
[edit]
[-] woocommerce.min.js
[edit]
[-] add-payment-method.min.js
[edit]
[-] credit-card-form.min.js
[edit]
[-] single-product.js
[edit]
[-] country-select.js
[edit]
[-] lost-password.js
[edit]
[-] cart.min.js
[edit]
[-] add-payment-method.js
[edit]
[-] add-to-cart-variation.min.js
[edit]
[-] checkout.min.js
[edit]
[-] add-to-cart.min.js
[edit]
[-] address-i18n.min.js
[edit]