(()=>{"use strict";var t={d:(e,o)=>{for(var c in o)t.o(o,c)&&!t.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:o[c]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{add_to_cart:()=>g,begin_checkout:()=>y,purchase:()=>h,remove_from_cart:()=>w,search:()=>f,select_content:()=>v,view_item:()=>b,view_item_list:()=>p});const o=window.wp.i18n,c=window.wp.hooks,r=(t,e)=>{var o;const c={};return t.variation&&(c.item_variant=t.variation),{item_id:d(t),item_name:t.name,...u(t),quantity:null!==(o=t.quantity)&&void 0!==o?o:e,price:i(t.prices.price,t.prices.currency_minor_unit),...c}},n=(t,e)=>({item_id:d(t),item_name:t.name,item_list_name:e,...u(t),price:i(t.prices.price,t.prices.currency_minor_unit)}),i=(t,e=2)=>parseInt(t,10)/10**e,a=(t,e,o)=>{(0,c.removeAction)(t,e),(0,c.addAction)(t,e,o)},d=t=>{const e=t.extensions?.woocommerce_google_analytics_integration?.identifier;return void 0!==e?e:"product_sku"===window.ga4w?.settings?.identifier?t.sku?t.sku:"#"+t.id:t.id},s=t=>t.coupons[0]?.code?{coupon:t.coupons[0]?.code}:{},u=t=>"categories"in t&&t.categories.length?m(t.categories):{},m=t=>Object.fromEntries(t.slice(0,5).map(((t,e)=>[l(e),t.name]))),l=t=>"item_category"+(t>0?t+1:""),_=(t,e,o)=>{var c;return null!==(c=o?.items?.find((({id:e})=>e===t)))&&void 0!==c?c:e?.find((({id:e})=>e===t))},p=({products:t,listName:e=(0,o.__)("Product List","woocommerce-google-analytics-integration")})=>0!==t.length&&{item_list_id:"engagement",item_list_name:(0,o.__)("Viewing products","woocommerce-google-analytics-integration"),items:t.map(((t,o)=>({...n(t,e),index:o+1})))},g=({product:t,quantity:e=1})=>({items:t?[r(t,e)]:[]}),w=({product:t,quantity:e=1})=>({items:t?[r(t,e)]:[]}),y=({storeCart:t})=>({currency:t.totals.currency_code,value:i(t.totals.total_price,t.totals.currency_minor_unit),...s(t),items:t.items.map(r)}),v=({product:t})=>!!t&&{content_type:"product",content_id:d(t)},f=({searchTerm:t})=>({search_term:t}),b=({product:t,listName:e=(0,o.__)("Product List","woocommerce-google-analytics-integration")})=>!!t&&{items:[n(t,e)]},h=({order:t})=>void 0!==t&&{transaction_id:t.id,affiliation:t.affiliation,currency:t.totals.currency_code,value:i(t.totals.total_price,t.totals.currency_minor_unit),tax:i(t.totals.tax_total,t.totals.currency_minor_unit),shipping:i(t.totals.shipping_total,t.totals.currency_minor_unit),items:t.items.map(r)},k="woocommerce-google-analytics",A="experimental__woocommerce_blocks";function $(){const t=function({events:t,tracker_function_name:o}){return function(c){const r=e[c];if("function"!=typeof r)throw new Error(`Event ${c} is not supported.`);return function(e){const n=r(e);t.includes(c)&&n&&window[o]("event",c,n)}}}(window.ga4w.settings);!function(t,{events:e,cart:o,products:c,product:r,added_to_cart:n,order:i}){Object.values(null!=e?e:{}).forEach((e=>{"add_to_cart"===e?t(e)({product:n}):t(e)({storeCart:o,products:c,product:r,order:i})})),document.body.onadded_to_cart=(e,n,i,a)=>{const d=parseInt(a[0].dataset.product_id||a[0].value),s=r?.id===d?r:_(parseInt(d),c,o);s&&t("add_to_cart")({product:s})};const a=()=>{document.querySelectorAll(".woocommerce-cart-form .woocommerce-cart-form__cart-item .remove[data-product_id]").forEach((t=>t.addEventListener("click",d)))};function d(e){t("remove_from_cart")({product:_(parseInt(e.target.dataset.product_id),c,o)})}a();const s=document.body.onupdated_wc_div;document.body.onupdated_wc_div=(...t)=>{"function"==typeof s&&s(...t),a()};const u=document.body.onremoved_from_cart;document.body.onremoved_from_cart=(...t)=>{"function"==typeof u&&u(...t),d({target:t[3][0]})},document.querySelectorAll(".products .product:not(.wp-block-post)")?.forEach((e=>{const r=e.querySelector("a[data-product_id]")?.getAttribute("data-product_id");r&&e.addEventListener("click",(e=>{const n=e.target.closest(".woocommerce-loop-product__link"),i=e.target.classList.contains("button")&&e.target.hasAttribute("data-product_id"),a=e.target.classList.contains("add_to_cart_button")&&!e.target.classList.contains("product_type_variable");(n||i&&!a)&&t("select_content")({product:_(parseInt(r),c,o)})}))})),document.querySelectorAll(".products-block-post-template .product, .wc-block-product-template .product")?.forEach((e=>{const r=e.querySelector("[data-product_id]")?.getAttribute("data-product_id");r&&e.addEventListener("click",(e=>{const n=e.target,i=n.closest(".wc-block-components-product-image a"),a=n.closest(".wp-block-post-title a"),d=n.closest(".wc-block-components-product-button [data-product_id]");d&&d.classList.contains("add_to_cart_button")&&!d.classList.contains("product_type_variable")?t("add_to_cart")({product:_(parseInt(r),c,o)}):(i||d||a)&&t("select_content")({product:_(parseInt(r),c,o)})}))}))}(t,window.ga4w.data),(t=>{a(`${A}-product-render`,k,t("view_item")),a(`${A}-cart-remove-item`,k,t("remove_from_cart")),a(`${A}-checkout-render-checkout-form`,k,t("begin_checkout")),a(`${A}-cart-add-item`,k,(({product:e})=>{t("add_to_cart")({product:e})})),a(`${A}-product-list-render`,k,t("view_item_list")),a(`${A}-product-view-link`,k,t("select_content"))})(t)}function E(){window.ga4w||console.warn("Google Analytics for WooCommerce: Configuration and tracking data not found after the page was fully loaded. Make sure the `woocommerce-google-analytics-integration-data` script gets eventually loaded.")}(0,c.removeAction)(`${A}-checkout-submit`,k),(0,c.removeAction)(`${A}-checkout-set-email-address`,k),(0,c.removeAction)(`${A}-checkout-set-phone-number`,k),(0,c.removeAction)(`${A}-checkout-set-billing-address`,k),(0,c.removeAction)(`${A}-cart-set-item-quantity`,k),(0,c.removeAction)(`${A}-product-search`,k),(0,c.removeAction)(`${A}-store-notice-create`,k),window.ga4w?$():(document.addEventListener("ga4w:ready",$),"complete"===document.readyState?E():window.addEventListener("load",E))})();; !function(){function t(){if(this.complete){const e=this.getAttribute("data-lazy-src");if(e&&this.src!==e)return void this.addEventListener("onload",t);const n=this.width,d=this.height;n&&n>0&&d&&d>0&&(this.setAttribute("width",n),this.setAttribute("height",d),i(this))}else this.addEventListener("onload",t)}var e=function(){const e=document.querySelectorAll("img[data-recalc-dims]");for(let i=0;i=i.BreakpointsList[e])return i.BreakpointsList[e];return n.xsm};function o(t,e){return t+" {"+("string"==typeof e?e:Object.keys(e).map(function(t){return t+":"+("content"===t?"'"+e[t]+"'":e[t])}).join(";"))+"}"}function s(t){var e=document.createElement("style");(e=document.head.appendChild(e).sheet).insertRule(t,e.cssRules.length)}var a=((r={})[n.xsm]={width:50,height:50},r[n.sm]={width:60,height:60},r[n.md]={width:80,height:80},r[n.lg]={width:110,height:110},r[n.xlg]={width:1e3,height:1e3},r);i.addCssRule=function(t,e){s(o(t,e))},i.addMediaQueryRule=function(t,e,i){i=o(t,i),i=0e.width?t:e},t[0])}}(i,function(t){if(0!==t.length)return t.some(function(t){return null!==o.exec(t)})?n.Width:t.some(function(t){return null!==s.exec(t)})?n.PixelDensity:void 0}(i));return void 0!==i?i.url:void 0}catch(t){return void(console&&console.error&&console.error(t))}}},{}],5:[function(t,e,i){"use strict";i.__esModule=!0;var n=(r.prototype.getFlag=function(t){return void 0!==this.flags[t]&&this.flags[t]},r.prototype.getQueryParams=function(t){t=t.split("+").join(" ");for(var e,i={},n=/[?&]?([^=]+)=([^&]*)/g;e=n.exec(t);)i[decodeURIComponent(e[1])]=decodeURIComponent(e[2]);return i},r.prototype.log=function(t){this.getFlag("print")&&console.log(this.pluginName+" debug: "+t)},r.prototype.setFlag=function(t,e){void 0===e&&(e=!0),this.flags[t]=e},r.prototype.simplelogObject=function(e){var t;this.getFlag("print")&&(t=Object.keys(e).filter(function(t){return e.hasOwnPrototype(t)}).map(function(t){return t+": "+e[t]+"\n"}).join(),this.log(t))},r);function r(i){var n=this;this.flags={},this.pluginName=i;var t="undefined"!=typeof console&&void 0!==console.log,e="undefined"!=typeof JSON&&"function"==typeof JSON.stringify;t?(this.logString=function(t){n.log(t)},this.logObject=e?function(t){n.log(JSON.stringify(t,null,4))}:function(t){return n.simplelogObject(t)}):(this.logString=function(){},this.logObject=function(){});var r=this.getQueryParams(document.location.search);Object.keys(r).forEach(function(t){var e=t.replace(i+"_","");n.setFlag(e,r[t])})}i.default=n},{}],6:[function(t,e,i){"use strict";i.__esModule=!0;var n=t("./link-generator"),t=(r.prototype.createButton=function(t){t=this.linkGenerator.generate(t);if(t)return this.$element.clone(!1).attr("href",t).click(function(t){t.preventDefault(),t.stopPropagation(),"#"!==t.currentTarget.href.slice(-1)&&window.open(t.currentTarget.href,"mw"+t.timeStamp,"left=20,top=20,width=600,height=500,toolbar=1,resizable=0")})},r.prototype.getSize=function(){return{height:this.settings.pinImageHeight,width:this.settings.pinImageWidth}},r);function r(t,e){this.$=t,this.settings=e,this.linkGenerator=new n.default(e),this.$element=this.$("",{target:"_blank",class:"pinit-button "+e.pin_image});t="default"===e.pin_image?"jpibfi-icon-"+e.pin_image_icon:"";this.$element.html(''),"default"===e.pin_image&&this.$element.addClass("jpibfi-button-"+e.pin_image_button)}i.default=t},{"./link-generator":9}],7:[function(t,e,i){"use strict";i.__esModule=!0;var n=(r.prototype.createClassList=function(t){return void 0===t&&(t=""),t.split(";").filter(function(t){return!!t})},r.prototype.imageEligible=function(e){return this.imageSizeIsOk(e)&&(0===this.enabledClasses.length||this.enabledClasses.some(function(t){return e.hasClass(t)||0=this.minWidth&&t>=this.minHeight},r.prototype.updateSizeConstraints=function(){this.minWidth=window.outerWidth<768?this.settings.min_image_width_small:this.settings.min_image_width,this.minHeight=window.outerWidth<768?this.settings.min_image_height_small:this.settings.min_image_height},r);function r(t){var e=this;this.settings=t,this.disabledClasses=this.createClassList(t.disabled_classes),this.enabledClasses=this.createClassList(t.enabled_classes),this.updateSizeConstraints(),window.addEventListener("resize",function(){return e.updateSizeConstraints()},!1)}i.default=n},{}],8:[function(t,e,i){"use strict";i.__esModule=!0;var n=t("./show-on-hover-strategy"),t=(r.prototype.init=function(){this.showStrategy=this.getStrategy(),this.showStrategy.start()},r.prototype.getStrategy=function(){return new n.default(this.$,this.settings,this.logger)},r);function r(t,e,i){this.settings=e,this.$=t,this.logger=i}i.default=t},{"./show-on-hover-strategy":11}],9:[function(t,e,r){"use strict";r.__esModule=!0,r.getExtension=void 0;var i=t("../common/description-helper");t("../common/srcset-helper");r.getExtension=function(t){void 0===t&&(t="");t=t.replace(/^https?\:\/\/[^\/?#]+(?:[\/?#]|$)/i,"").split(".");return 1===t.length?"":t[t.length-1].replace(/\?.*/i,"").toLowerCase()};n.prototype.getDescription=function(t){return this.descriptionHelper.getDescription(t,this.description_option)},n.prototype.getImage=function(t,e){var i=t.attr("data-pin-media")||t.attr("data-jpibfi-src")||t.prop("src");if(i){if(!e)return i;t=r.getExtension(i);return e.extension===t?e.href:i}},n.prototype.getUrl=function(t,e){return t.attr("data-pin-url")?t.attr("data-pin-url"):this.pinLinkedUrl&&e&&(i=e.href,n=(window.location&&window.location.hostname||"").replace("www.",""),0<=i.indexOf(n))&&(n=e.extension,-1!==["","html","php"].indexOf(n))?e.href:t.attr("data-jpibfi-post-url")||window.location.href;var i,n},n.prototype.generate=function(t){var e=t.closest("a[href]"),i=void 0;1===e.length&&(i={extension:r.getExtension(e.prop("href")),href:e.prop("href")});var n=this.getImage(t,i);if(void 0!==n){e=encodeURIComponent(n),n=encodeURIComponent(this.getDescription(t));return"https://pinterest.com/pin/create/bookmarklet/?is_video=false&url="+encodeURIComponent(this.getUrl(t,i))+"&media="+e+"&description="+n}},t=n;function n(t){this.descriptionHelper=new i.default({siteTitle:t.siteTitle}),this.description_option=t.description_option,this.supportSrcset=t.support_srcset,this.pinLinkedUrl=t.pin_linked_url}r.default=t},{"../common/description-helper":3,"../common/srcset-helper":4}],10:[function(t,e,i){"use strict";i.__esModule=!0;function n(t,e,i,n){return t.top+n.top}function r(t,e,i,n){return t.left+n.left}function o(t,e,i,n){return e.top-i.height-n.bottom}function s(t,e,i,n){return e.left-n.right-i.width}function a(t,e,i){return t.top+((e.top-t.top)/2-i.height/2)}function u(t,e,i){return t.left+((e.left-t.left)/2-i.width/2)}var c=(l.prototype.calculate=function(t,e,i,n){return{top:this.topF(t,e,i,n),left:this.leftF(t,e,i,n)}},l);function l(t,e){this.topF=t,this.leftF=e}var p=(h.prototype.calculatePosition=function(t,e,i){return this.positionCalculator.calculate(t,e,i,this.margins)},h);function h(t,e){this.margins=e,this.positionCalculator=function(t){switch(t){case"top-left":return new c(n,r);case"top-right":return new c(n,s);case"bottom-left":return new c(o,r);case"bottom-right":return new c(o,s);default:return new c(a,u)}}(t)}i.default=p},{}],11:[function(t,e,i){"use strict";var n,r=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});i.__esModule=!0;var o,t=t("./show-strategy"),r=(o=t.default,r(s,o),s.prototype.init=function(){this.addContainers()},s.prototype.start=function(){var e=this;this.init();function a(t){return e.$("a.pinit-button["+e.indexerAttr+'="'+t+'"]')}var u="data-jpibfi-timeout",c=0,l=this;l.$(document).delegate(this.settings.image_selector,"mouseenter",function(){var t=l.$(this);if(l.imageFilter.imageEligible(t)){var e=t.attr(l.indexerAttr);e||(e=c++,t.attr(l.indexerAttr,e));var i=a(e);if(0===i.length){var n=l.buttonGenerator.createButton(t);if(!n)return;t.addClass("pinit-hover");var r=l.buttonGenerator.getSize(),o=t.offset(),s={top:o.top+t[0].clientHeight,left:o.left+t[0].clientWidth},r=l.positioner.calculatePosition(o,s,r);t.after(n),n.attr(l.indexerAttr,e).css("visibility","hidden").show().offset(r).css("visibility","visible").hover(function(){return clearTimeout(n.attr(u))},function(){return n.attr(u,setTimeout(function(){t.removeClass("pinit-hover"),n.remove()},100))})}else clearTimeout(i.attr(u))}}),l.$(document).delegate(this.settings.image_selector,"mouseleave",function(){var t,e,i;l.logger.getFlag("prevent_hide")||(e=(t=l.$(this)).attr(l.indexerAttr))&&(i=a(e)).attr(u,setTimeout(function(){t.removeClass("pinit-hover"),i.remove()},100))})},s);function s(){return null!==o&&o.apply(this,arguments)||this}i.default=r},{"./show-strategy":12}],12:[function(t,e,i){"use strict";i.__esModule=!0;var o=t("./image-filter"),s=t("./button-generator"),a=t("./positioner"),u=t("../common/css-generator"),t=(n.prototype.addContainers=function(){var t=this.$(".jpibfi"),e=t.closest("div, article");(e=e.length?e:t.parent()).addClass("jpibfi_container")},n);function n(t,e,i){this.$=t,this.settings=e,this.logger=i,this.imageFilter=new o.default(e),this.buttonGenerator=new s.default(t,e);var n={left:e.button_margin_left,top:e.button_margin_top,right:e.button_margin_right,bottom:e.button_margin_bottom};this.positioner=new a.default(e.button_position,n),this.indexerAttr="data-jpibfi-indexer";var r=this.settings,i=r.pin_image,t=r.pin_image_icon,e=r.pinImageHeight,n=r.pinImageWidth,e=(r.scale_pin_image,{width:n,height:e});switch(i){case"custom":case"old_default":(0,u.createCssRulesForCustomButton)(e);break;case"default":(0,u.createCssRulesForDefaultButton)(e,t)}}i.default=t},{"../common/css-generator":1,"./button-generator":6,"./image-filter":7,"./positioner":10}],13:[function(t,e,i){"use strict";i.__esModule=!0;var n,r=t("./settings"),o=t("./debugger"),s=t("./hover");(n=window.jQuery)(document).ready(function(){var t=window.jpibfi_options,e=new r.default(n.extend({pageUrl:document.URL,pageTitle:document.title,pageDescription:n('meta[name="description"]').attr("content")||""},t.hover)),t=new o.default("jpibfi");window.jpibfi_debugger=t,new s.default(n,e,t).init()})},{"./debugger":5,"./hover":8,"./settings":14}],14:[function(t,e,i){"use strict";i.__esModule=!0;function n(e){var i=this;Object.keys(e).forEach(function(t){i[t]=e[t]}),this.isTouchDevice="ontouchstart"in window||{}.hasOwnProperty.call(navigator,"maxTouchPoints")}i.default=n},{}]},{},[13]);; !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function i(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return i(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s0))return r=s.getHost(e),!0;for(var t=0;t<_.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(_.referrals[t].host)+"$","i")))return r=_.referrals[t].display||_.referrals[t].host,p=_.referrals[t].medium||i.referer.referral,!0;if(t+1===_.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function I(e){if(_.domain){if(b)return s.getHost(e)!==s.getHost(x);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function j(){a.set(n.containers.current_extra,n.pack.extra(_.timezone_offset),k,x,b),a.get(n.containers.first_extra)||a.set(n.containers.first_extra,n.pack.extra(_.timezone_offset),k,x,b)}return u.go(k,x,b),a.set(n.containers.current,function(){var e;if("undefined"!=typeof v.utm_source||"undefined"!=typeof v.utm_medium||"undefined"!=typeof v.utm_campaign||"undefined"!=typeof v.utm_content||"undefined"!=typeof v.utm_term||"undefined"!=typeof v.utm_id||"undefined"!=typeof v.gclid||"undefined"!=typeof v.yclid||"undefined"!=typeof v[_.campaign_param]||"undefined"!=typeof v[_.term_param]||"undefined"!=typeof v[_.content_param])j(),e=w(i.traffic.utm);else if(q(i.traffic.organic))j(),e=w(i.traffic.organic);else if(!a.get(n.containers.session)&&q(i.traffic.referral))j(),e=w(i.traffic.referral);else{if(a.get(n.containers.first)||a.get(n.containers.current))return a.get(n.containers.current);j(),e=w(i.traffic.typein)}return e}(),k,x,b),a.get(n.containers.first)||a.set(n.containers.first,a.get(n.containers.current),k,x,b),a.get(n.containers.udata)?(g=parseInt(a.parse(n.containers.udata)[a.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,g=a.get(n.containers.session)?g:g+1,h=n.pack.user(g,_.user_ip)):(g=1,h=n.pack.user(g,_.user_ip)),a.set(n.containers.udata,h,k,x,b),a.get(n.containers.session)?(y=parseInt(a.parse(n.containers.session)[a.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,y+=1):y=1,a.set(n.containers.session,n.pack.session(y),_.session_length,x,b),_.promocode&&!a.get(n.containers.promocode)&&a.set(n.containers.promocode,n.pack.promo(_.promocode),k,x,b),a.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),i=e("./helpers/cookies");t.exports={go:function(e,t,r){var a,s=this.migrations,o={l:e,d:t,i:r};if(i.get(n.containers.first)||i.get(n.service.migrations)){if(!i.get(n.service.migrations))for(a=0;a0)for(var a=0;a0)for(var s=0;se.split(".").reduce((t,e)=>t&&t[e],t)),s=()=>null,i=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(){const i=e.allowTracking?n:s,o=Object.entries(t.fields).map(([t,e])=>[t,i(sbjs.get,e)]);return Object.fromEntries(o)}function c(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",t,!0)}function r(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const t=window.wp.data.subscribe(function(){t(),c(a())},o)}}t.setOrderTracking=function(t){e.allowTracking=t,t?sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),timezone_offset:"0"}):function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const n=a();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(n),c(n)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",r):r(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){let t="";for(const n of this._fieldNames){const s=i(this.values[n]);t+=``}this.innerHTML=t}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=i(this.values[t]):console.warn(`Field "${t}" not found. Most likely, the '' element was manipulated.`)}}get values(){return this._values}})}(window.wc_order_attribution);;