PageSourceSearch

https://mystrom.ch/wp-content/themes/mystrom-ch/js/WooCommerceCheckoutDataHelper.js?ver=1646211227

js mystrom.ch collected 2026-10-01 14:01:55 UTC 1,403 bytes, 1 lines download raw bytes

1(function($,window,document,undefined){var $win=$(window);var $doc=$(document);WooCommerceCheckoutDataHelper={};WooCommerceCheckoutDataHelper.formsWrapper="";WooCommerceCheckoutDataHelper.fields={};WooCommerceCheckoutDataHelper.initialize=function(){var _this=this;_this.formsWrapper=$("form.woocommerce-checkout");_this.fields={shipping_first_name:"billing_first_name",shipping_last_name:"billing_last_name",shipping_company:"billing_company",shipping_address_1:"billing_address_1",shipping_address_2:"billing_address_2",shipping_postcode:"billing_postcode",shipping_city:"billing_city",shipping_state:"billing_state",};_this.dataPopulation();};WooCommerceCheckoutDataHelper.dataPopulation=function(){var _this=this;var fieldsObject=_this.fields;if(!fieldsObject){return false;}$doc.on("click","form.woocommerce-checkout .btn-copy",function(event){event.preventDefault();for(shippingFieldName in fieldsObject){var billingFieldName=fieldsObject[shippingFieldName];var $shippingField=$('input[name="'+shippingFieldName+'"]');var $billingField=$('input[name="'+billingFieldName+'"]');if(!$shippingField.length||!$billingField.length){continue;}var shippingFieldValue=$shippingField.val();$billingField.val(shippingFieldValue).parent().removeClass("woocommerce-invalid woocommerce-invalid-required-field");}});};window.WooCommerceCheckoutDataHelper=WooCommerceCheckoutDataHelper;})(jQuery,window,document);

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.