1/*! Copyright 2025 SweetCode. All rights reserved. */ 2(self.webpackChunkPixel_Manager_for_WooCommerce=self.webpackChunkPixel_Manager_for_WooCommerce||[]).push([[674],{7817(){!function(e){const t=new class{adapt(e,t,a){const r=`adapt${this.toPascalCase(t)}`;return"function"==typeof this[r]?this[r](e,a):null}toPascalCase(e){return"string"!=typeof e?"":e.replace(/(^|_)(\w)/g,(e,t,a)=>a.toUpperCase())}getIdentity(){const e=pmwDataLayer?.user,t={email:e?.email?.raw,phone:e?.phone?.raw,firstName:e?.first_name?.raw,lastName:e?.last_name?.raw},a={zip:e?.postcode?.raw,city:e?.city?.raw,countryCode:e?.country?.raw,provinceCode:e?.state?.raw};return Object.values(a).some(e=>!!e)&&(t.address=a),t}toLineItem(e){const t=e.parent_id||e.id,a=e.is_variation?e.id:e.variation_id||e.id;return{i:t?.toString(),q:e.quantity||1,v:a?.toString()}}adaptAddToCart(e,t){const a=e?.product;if(!a)return null;const r={item:(a.parent_id||a.id)?.toString(),q:a.quantity||1};return a.is_variation&&(r.variation_id=a.id?.toString()),{event_name:"AddToCart",event_data:r}}adaptBeginCheckout(e,t){const a=this.getIdentity();if(!a.email&&!a.phone)return null;const r={...a},i=Object.values(pmwDataLayer?.cart||{});return i.length&&(r.lineItems=i.map(e=>this.toLineItem(e))),{event_name:"checkoutStarted",event_data:r}}adaptPurchase(e,t){const a=pmwDataLayer?.order;if(!a)return null;const r=this.getIdentity(),i={order_id:a.id?.toString(),email:r.email||"",phone:r.phone||""};r.firstName&&(i.firstName=r.firstName),r.lastName&&(i.lastName=r.lastName),r.address&&(i.address=r.address);const n=Object.values(a.items||{});return n.length&&(i.lineItems=n.map(e=>this.toLineItem(e))),{event_name:"purchase",event_data:i}}};e.registerAdapter("triple_whale",t,{supportsS2S:!1,supportsEventDeduplication:!1,isActive:()=>!!pmwDataLayer?.pixels?.triple_whale?.shop})}(window.pmw=window.pmw||{})},440(){var e;(e=window.pmw=window.pmw||{}).bus.on("pmw:load-pixels",function(){pmwDataLayer?.pixels?.triple_whale?.shop&&!pmwDataLayer?.pixels?.triple_whale?.loaded&&e.consent.canPixelBeFired("statistics","Triple Whale")&&e.loadTripleWhalePixel()}),e.bus.on("pmw:pixel:add-to-cart",t=>{if(pmwDataLayer?.pixels?.triple_whale?.loaded&&e.shouldFireBrowserPixel(t,"triple_whale"))try{const a=t.pixels?.triple_whale;if(!a)return;e.tripleWhaleTrackEvent(a)}catch(e){console.error(e)}}),e.bus.on("pmw:pixel:begin-checkout",t=>{if(pmwDataLayer?.pixels?.triple_whale?.loaded&&e.shouldFireBrowserPixel(t,"triple_whale"))try{const a=t.pixels?.triple_whale;if(!a)return;e.tripleWhaleTrackEvent(a)}catch(e){console.error(e)}}),e.bus.on("pmw:pixel:purchase",t=>{if(pmwDataLayer?.pixels?.triple_whale?.loaded&&e.shouldFireBrowserPixel(t,"triple_whale"))try{const a=t.pixels?.triple_whale;if(!a)return;e.tripleWhaleTrackEvent(a)}catch(e){console.error(e)}})},6523(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4423),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);(function(pmw,undefined){const getTriplePixelData=()=>{const e={TripleName:pmwDataLayer.pixels.triple_whale.shop,ver:"2.17",plat:pmw.platform.name,isHeadless:!0};try{if("product"===pmwDataLayer?.shop?.page_type&&pmw.platform.getMainProductId()){const t=pmw.platform.getMainProductId(),a=pmwDataLayer?.products?.[t];a&&(e.product={id:t.toString(),name:a.name,price:a.price?.toString(),variant:""})}"search"===pmwDataLayer?.shop?.page_type&&pmw.getSearchTermFromUrl()&&(e.search=pmw.getSearchTermFromUrl())}catch(e){console.error(e)}return e};pmw.loadTripleWhalePixel=()=>{try{window.TriplePixelData=getTriplePixelData(),function(W,H,A,L,E,_,B,N){function O(U,T,P,H,R){void 0===R&&(R=!1),H=new XMLHttpRequest,P?(H.open("POST",U,!0),H.setRequestHeader("Content-Type","text/plain")):H.open("GET",U,!0),H.send(JSON.stringify(P||{})),H.onreadystatechange=function(){4===H.readyState&&200===H.status?(R=H.responseText,U.includes("/first")?eval(R):P||(N[B]=R)):(299<H.status||H.status<200)&&T&&!R&&(R=!0,O(U,T-1,P))}}if(N=window,!N[H+"sn"]){N[H+"sn"]=1,L=function(){return Date.now().toString(36)+"_"+Math.random().toString(36)};try{A.setItem(H,1+(0|A.getItem(H)||0)),(E=JSON.parse(A.getItem(H+"U")||"[]")).push({u:location.href,r:document.referrer,t:Date.now(),id:L()}),A.setItem(H+"U",JSON.stringify(E))}catch(e){}var i,m,p;A.getItem('"!nC`')||(_=A,A=N,A[H]||(E=A[H]=function(e,t,a){return void 0===a&&(a=[]),"State"==e?E.s:(W=L(),(E._q=E._q||[]).push([W,e,t].concat(a)),W)},E.s="Installed",E._q=[],E.ch=W,B="configSecurityConfModel",N[B]=1,O("https://conf.config-security.com/model",5),i=L(),m=A.screen,_.setItem("di_pmt_wt",i),p={id:i,action:"profile",avatar:_.getItem("auth-security_rand_salt_"),time:m.width+":"+m.height,host:A.TriplePixelData.TripleName,plat:A.TriplePixelData.plat,url:window.location.href,ref:document.referrer,ver:A.TriplePixelData.ver},O("https://api.config-security.com/event",5,p),O("https://api.config-security.com/first?host="+TriplePixelData.TripleName+"&plat="+TriplePixelData.plat,5)))}}("","TriplePixel",localStorage),pmwDataLayer.pixels.triple_whale.loaded=!0,pmw.console.log("Triple Whale: pixel loaded")}catch(e){console.error(e)}},pmw.tripleWhaleTrackEvent=e=>{try{if("function"!=typeof window.TriplePixel)return;if(!e?.event_name)return;
2window.TriplePixel(e.event_name,e.event_data),pmw.console.log("Triple Whale: "+e.event_name+" event sent",e.event_data)}catch(e){console.error(e)}}})(window.pmw=window.pmw||{})},891(e,t,a){a(7817),a(6523),a(440)}}]); 3//# sourceMappingURL=pixel-triple-whale.7aa9a625.chunk.min.js.map
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.