PageSourceSearch

https://reacon.nl/cdn/shop/t/9/assets/gui.js?v=23152761403506420321627283215

js reacon.nl collected 2026-10-10 02:23:36 UTC 10,068 bytes, 2 lines download raw bytes

1var gui_translations={},gui_countries={},gui_last_submit=0;function gui_validator(form){$(form).submit(function(){return gui_validate(this,!0)})}function gui_validate_section(section,visible){return gui_validate('.gui-section[data-name="'+section+'"]',visible)}function gui_validate(selector,visible){var element=$(selector);if(element){var errors=0;return $(element).find("input.gui-validate, textarea.gui-validate, select.gui-validate, .gui-section.gui-validate").each(function(){$(this).closest(".gui-validate-disabled").length?visible&&$(this).removeClass("gui-validate-error"):$(this).hasClass("gui-section")?$(this).find(".gui-field input:checked").length==0?(visible&&$(this).addClass("gui-validate-error"),errors++):$(this).removeClass("gui-validate-error"):$(this).is(":checkbox")&&$(this).is(":not(:checked)")||!$(this).val()||$(this).val().length==0?(visible&&$(this).addClass("gui-validate-error"),errors++):visible&&$(this).removeClass("gui-validate-error")}),gui_validator_clear(element),$(element).find(".gui-validate.gui-validate-error").each(function(){$(this).hasClass("gui-section")?$(this).addClass("gui-section-error").prepend($("<div/>").addClass("gui-message").text($(this).data("error"))):visible&&($(this).parents(".gui-field").hasClass("gui-error")||$(this).parents(".gui-field").append($("<div/>").addClass("gui-message").text(gui_translate("This is a required field"))),$(this).parents(".gui-field").addClass("gui-error")),errors++}),errors==0?(current_time=new Date().getTime(),gui_last_submit>current_time-1e4?!1:(gui_last_submit=current_time,!0)):!1}}function gui_validator_clear(form){$(form).find(".gui-error").removeClass("gui-error"),$(form).find(".gui-message").remove()}function gui_address(form,autocompleteUrl,regionUrl){$(form).find(".gui-form-country").change(function(){var prevCountryType=$(form).find(".gui-address-format").val(),countryId=$(this).val();if(gui_countries[countryId]){var country=gui_countries[countryId],countryType=country.type,regionPicker=$(form).find(".gui-form-region"),regionSelect=regionPicker.find(".gui-select"),regionInput=regionPicker.find(".gui-input");$(form).removeClass("gui-format-default"),$(form).removeClass("gui-format-autocomplete"),$(form).removeClass("gui-format-international"),$(form).addClass("gui-format-"+countryType),$(form).find(".gui-address-format").val(countryType),(prevCountryType=="autocomplete"||countryType=="autocomplete")&&gui_address_zipcode_flip(form),country.zipcode?($(form).find(".gui-form-zipcode").addClass("gui-validate"),$(form).find(".gui-form-zipcode").closest(".gui-field").removeClass("gui-no-validate")):($(form).find(".gui-form-zipcode").removeClass("gui-validate"),$(form).find(".gui-form-zipcode").closest(".gui-field").addClass("gui-no-validate")),countryType!="international"?$(form).find(".gui-form-number").addClass("gui-validate"):$(form).find(".gui-form-number").removeClass("gui-validate"),countryId==21&&($(form).find(".gui-address-number-ext-label").html(gui_translate("Extension / bus")),$(form).find(".gui-form-number-ext").attr("placeholder",gui_translate("Extension / bus"))),countryType=="international"?($(form).find(".gui-address-streetname-label").html(gui_translate("Address")),$(form).find(".gui-form-streetname").attr("placeholder",gui_translate("Address"))):prevCountryType=="international"&&($(form).find(".gui-address-streetname-label").html(gui_translate("Street name")),$(form).find(".gui-form-streetname").attr("placeholder",gui_translate("Street name")));var prevCountry=regionPicker.data("selected-country");if(country.has_regions){if(regionSelect.show().find(".gui-no-validate").toggleClass("gui-no-validate gui-vali
1date"),regionInput.hide().find(".gui-validate").toggleClass("gui-validate gui-no-validate"),country.id!=prevCountry){var requestUrl=regionUrl.replace("_country_",country.code),selectElement=regionPicker.find("select");$.getJSON(requestUrl,function(response){if(selectElement.find("option").remove(),response.regions)for(var id in response.regions){var region=response.regions[id];selectElement.append("<option value='"+region.id+"'>"+region.name+"</option>")}})}}else regionSelect.hide().find("option").remove(),regionSelect.find(".gui-validate").toggleClass("gui-validate gui-no-validate"),regionInput.show().find(".gui-no-validate").toggleClass("gui-no-validate gui-validate");regionPicker.data("selected-country",country.id),gui_validator_clear(),countryType=="autocomplete"&&gui_address_autocomplete(form,autocompleteUrl)}}),$(form).find(".gui-form-country").change()}function gui_address_zipcode_flip(form){var elmRow1=$(form).find(".gui-address-row-1 .gui-col2-equal-col1"),elmRow2=$(form).find(".gui-address-row-2 .gui-col2-equal-col1"),htmlRow1=elmRow1.html(),htmlRow2=elmRow2.html(),valRow1=elmRow1.find("input").first().val(),valRow2=elmRow2.find("input").first().val();elmRow1.html(htmlRow2),elmRow2.html(htmlRow1),elmRow1.find("input").first().val(valRow2),elmRow2.find("input").first().val(valRow1)}function gui_address_autocomplete(form,url){$(form).find(".gui-form-zipcode").keyup(function(){var requestUrl=url.replace("_country_",escape($(form).find(".gui-form-country").val()));requestUrl=requestUrl.replace("_zipcode_",escape($(form).find(".gui-form-zipcode").val())),requestUrl=requestUrl.replace("_number_",escape($(form).find(".gui-form-number").val())),$.getJSON(requestUrl,function(response){response.found&&($(form).find(".gui-form-streetname").val(response.streetname),$(form).find(".gui-form-city").val(response.city),$(form).find(".gui-form-region input").val(response.region),$(form).find(".gui-form-region select option").filter(function(){return $(this).text()==response.region}).prop("selected",!0))})})}function gui_focus(form){$().ready(function(){$(form).find("input[type!=hidden], select").first().focus()})}function gui_translation(key,value){gui_translations[key]=value}function gui_translate(string){return gui_translations[string]&&(string=gui_translations[string]),string}function gui_redirect(url,delay){delay<1&&(delay=1),delay=delay*1e3,setTimeout(function(){window.location=url},delay)}function gui_popover_show(){var top=$(document).scrollTop()-$("#gui-wrapper").offset().top+($(window).height()-$("#gui-popover").height())/2;top<25&&(top=25),$("#gui-popover").css({display:"block",top:top})}function gui_popover_hide(){$("#gui-popover").css({display:"none"})}function gui_popover(target){var target=$(target);return target&&(target.is(":visible")?target.fadeOut():target.fadeIn()),!1}function gui_popup(url,width,height){width||(width=200),height||(height=200);var left=(screen.width-width)/2,top=(screen.height-height)/2,popup=window.open(url,"popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,left="+left+",top="+top+",width="+width+",height="+height);popup.focus()}function gui_facebook(url){"standalone"in navigator&&navigator.standalone?window.location=url:gui_popup(url,500,300)}function gui_select_value(index,element){var value=$(element).find(":selected").text();$(element).parent().find(".gui-value").text(value)}function gui_select_values(){$(".gui-select select").each(gui_select_value)}function gui_dump(object){alert(object.toSource())}function add_product_bundle(bundle_id){var bundles=$("#bundle_configure_form_"+bundle_id+" input[name^=bundle_products]"),bundleConfigId=$("#product_configure_bundle_id"),productConfigForm=$("#product_configure_form");bundles.each(function(idx,elem){$(elem).appendTo("#product_configure_form")}),bundleConfigId.val(bundle_id),productConfigForm.submit()}function update_variant_option(selected,bundleId){var action=$(selected).attr("data-action")+"?format=json",form_data=$(selected).closest("form").serialize(),bundleItemForm=$(selected).closest("form"),oldPrice=bundleItemForm.find(".old-price"),price=bundleItemForm.find(".price"),discount=bundleItemForm.find(".product-details .discount"),discountTitle=discount.find("h1, h2, h3, h4, h5, h6"),discountClone=discount.clone();discountClone.find("h3").remove();var discountText=discountClone.text(),bundleItem=$(".bundle-item-"+bundleId),bundleItemBtn=bundleItem.find(".add-bundle-btn"),bundleItemStock=bundleItem.find(".out-of-stock"),request=$.ajax({url:action,method:"POST",data:form_data,dataType:"JSON"});request.done(function(result){oldPrice.text(result.view.price_old),price.text(result.view.price),discount&&(discountTitle.length?discountTitle=discountTitle[0].outerHTML:discountTitle="",discount.html(discountTitle+discountText.replace(/\d{1,3}\%/,result.view.percentage))),bundleItemBtn.toggle(result.stock.available),bundleItemStock.toggle(!result.stock.available),Object.keys(result.selected_variants).forEac
1h(function(key){var selected_variant_id=result.selected_variants[key],input_name="bundle_products["+bundleId+"]["+key+"]";$('input[name="'+input_name+'"]').remove(),$("<input>").attr({type:"hidden",name:input_name,value:selected_variant_id}).appendTo("#bundle_configure_form_"+bundleId)})})}$().ready(function(){$(".gui-input input,.gui-text textarea,.gui-select select").focus(function(){$(this).parent().addClass("gui-focus")}),$(".gui-input input,.gui-text textarea,.gui-select select").blur(function(){$(this).parent().removeClass("gui-focus")}),$(".gui-number input").focus(function(){$(this).parent().parent().addClass("gui-focus")}),$(".gui-number input").blur(function(){$(this).parent().parent().removeClass("gui-focus")}),$(".gui-number .gui-up").click(function(){var value=parseInt($(this).parent().parent().find("input").val())+1;$(this).parent().parent().find("input").val(value)}),$(".gui-number .gui-down").click(function(){var value=parseInt($(this).parent().parent().find("input").val())-1;$(this).parent().parent().find("input").val(value)}),$(".gui-select select").live("change",function(){gui_select_value(0,$(this))}),gui_select_values()}),typeof $.prototype.live=="undefined"&&jQuery.fn.extend({live:function(types,data,fn){return jQuery(this.context).on(types,this.selector,data,fn),this}});
2//# sourceMappingURL=/cdn/shop/t/9/assets/gui.js.map?v=23152761403506420321627283215

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.