"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[14],{341:(i,e,n)=>{function o(){return`${Date.now()}-${Math.random().toString(36).substring(2,11)}`}function d(i){const e=i.match(/\/(\d+)$/);return(null==e?void 0:e[1])||i}function l(i){"undefined"!=typeof window&&window.TriplePixel&&window.TriplePixel("AddToCart",{item:d(i.productId),v:d(i.variantId),q:i.quantity,eventId:o()})}function t(i){"undefined"!=typeof window&&window.TriplePixel&&window.TriplePixel("checkoutStarted",{email:i.email,phone:i.phone,lineItems:i.lineItems.map((i=>({i:d(i.productId),v:d(i.variantId),q:i.quantity}))),eventId:o()})}function r(){var i,e,n;if("undefined"==typeof window||!window.TriplePixel)return;const o={product:null===(i=window.TriplePixelData)||void 0===i?void 0:i.product,search:null===(e=window.TriplePixelData)||void 0===e?void 0:e.search,collection:null===(n=window.TriplePixelData)||void 0===n?void 0:n.collection};(o.product||o.search||o.collection)&&window.TriplePixel("pageLoad",{product:null==o?void 0:o.product,search:null==o?void 0:o.search,collection:null==o?void 0:o.collection})}function w(i){"undefined"!=typeof window&&window.TriplePixelData&&(window.TriplePixelData.product={id:d(i.productId),name:i.productName,price:i.price,variant:d(i.variantId)})}function a(i){"undefined"!=typeof window&&window.TriplePixel&&window.TriplePixelData&&(i&&window.TriplePixel&&window.TriplePixel("pageLoad",{collection:i}),delete window.TriplePixelData.collection)}function c(i){"undefined"!=typeof window&&window.TriplePixel&&window.TriplePixelData&&(i&&window.TriplePixel&&window.TriplePixel("pageLoad",{search:i}),delete window.TriplePixelData.search)}n.d(e,{a:()=>a,b:()=>w,c:()=>c,d:()=>l,e:()=>t,f:()=>r})}}]);