1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[453],{453:function(t,e,n){n.d(e,{$R:function(){return r},LL:function(){return l},Xq:function(){return a},dv:function(){return o},h2:function(){return c},jg:function(){return s}});let i="aishop_cart";function o(){try{let t=localStorage.getItem(i);if(!t)return u();let e=JSON.parse(t);return d(e)}catch(t){return u()}}function a(t){let e=o(),i=e.items.find(e=>e.productId===t.productId&&e.variantId===t.variantId);i?i.quantity+=t.quantity:e.items.push({...t});let a=g(d(e));window.dispatchEvent(new CustomEvent("open-cart-drawer"));try{let{fireEvent:e,getStoreCurrency:i}=n(6945);e("add_to_cart",{content_name:t.title,content_ids:[t.productId],value:t.price,currency:i()})}catch(t){}return a}function r(t,e,n){let i=o();if(e<=0)return c(t,n);let a=i.items.find(e=>e.productId===t&&e.variantId===n);return a&&(a.quantity=e),g(d(i))}function c(t,e){let n=o();return n.items=n.items.filter(n=>!(n.productId===t&&n.variantId===e)),g(d(n))}function l(){return g(u())}function s(t){return g(d({items:[...t],itemCount:0,subtotal:0}))}function u(){return{items:[],itemCount:0,subtotal:0}}function d(t){return t.itemCount=t.items.reduce((t,e)=>t+e.quantity,0),t.subtotal=t.items.reduce((t,e)=>t+e.price*e.quantity,0),t.subtotal=Math.round(100*t.subtotal)/100,t}function g(t){return localStorage.setItem(i,JSON.stringify(t)),window.dispatchEvent(new CustomEvent("cart-updated",{detail:t})),t}},6945:function(t,e,n){n.r(e),n.d(e,{PixelManager:function(){return y},fireEvent:function(){return S},getStoreCurrency:function(){return u},setStoreCurrency:function(){return s}});var i=n(2265),o=n(9376),a=n(3065);let r=null,c=!1,l="USD";function s(t){t&&(l=String(t).toUpperCase())}function u(){return l}let d="ais_vid",g="ais_sid",p="ais_sid_ts";function h(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function f(){var t,e,n;let i,o,a;let r=(n=new URL(window.location.href).pathname)&&"/"!==n&&""!==n?(i=n.match(/^\/products\/([^/?#]+)/))?{page_type:"product",page_id:i[1]}:(i=n.match(/^\/collections\/([^/?#]+)/))?{page_type:"collection",page_id:i[1]}:(i=n.match(/^\/pages\/([^/?#]+)/))?{page_type:"page",page_id:i[1]}:/^\/blog\/?/.test(n)?{page_type:"blog",page_id:null}:"/cart"===n||n.startsWith("/cart/")?{page_type:"cart",page_id:null}:n.startsWith("/checkout")?{page_type:"checkout",page_id:null}:n.startsWith("/search")?{page_type:"search",page_id:null}:n.startsWith("/account")?{page_type:"account",page_id:null}:{page_type:"other",page_id:null}:{page_type:"home",page_id:null};try{let t=sessionStorage.getItem("aishop_utm"),e=sessionStorage.getItem("aishop_intent");t&&(o=JSON.parse(t)),e&&(a=JSON.parse(e))}catch(t){}return{sessionId:function(){try{let t=Date.now(),e=parseInt(sessionStorage.getItem(p)||"0",10),n=sessionStorage.getItem(g);return(!n||t-e>18e5)&&(n=h(),sessionStorage.setItem(g,n)),sessionStorage.setItem(p,String(t)),n}catch(t){return""}}(),visitorId:function(){try{let t=localStorage.getItem(d);return t||(t=h(),localStorage.setItem(d,t)),t}catch(t){return""}}(),url:window.location.href,referrer:document.referrer||"",viewport:"".concat(window.innerWidth,"x").concat(window.innerHeight),screenW:(null===(t=window.screen)||void 0===t?void 0:t.width)||null,screenH:(null===(e=window.screen)||void 0===e?void 0:e.height)||null,language:navigator.language||"",pageType:r.page_type,pageId:r.page_id,timestamp:new Date().toISOString(),utm:o,intent:a}}let _=Date.now(),m=window.location.href;function v(){try{let t=Date.now()-_;if(t<1e3)return;let e=JSON.stringify({event:"page_unload",durationMs:t,...f(),url:m||window.location.href});navigator.sendBeacon&&navigator.sendBeacon("/api/public/track",e)}catch(t){}}function w(t){if("undefined"==typeof document)return;let e=document.cookie.match(RegExp("(?:^|; )"+t.replace(/[.$?*|{}()[\]\\/+^]/g,"\\$&")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0}function y(){let{store:t,loading:e}=(0,a.o)(),n=(0,o.usePathname)(),l=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{e||l.current||(l.current=!0,s(null==t?void 0:t.currency),function(){if(!b())return;let t=window;if(!t.cxgo){let e=t.cxgo=function(){e.q.push(Array.prototype.slice.call(arguments))};e.q=[]}I("https://cxgo.ai/pixel.js")}(),fetch("/api/public/pixels").then(t=>t.ok?t.json():{}).then(t=>{r=t,c=!0,function(t){var e,n,i,o,a,r,c,l,s,u,d,g;if(null===(e=t.gtm)||void 0===e?void 0:e.length){let e=window;e.dataLayer=e.dataLayer||[],e.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"}),t.gtm.forEach(t=>I("https://www.googletagmanager.com/gtm.js?id=".concat(encodeURIComponent(t.id))))}if(null===(n=t.ga4)||void 0===n?void 0:n.length){let e=t.ga4[0].id;
1I("https://www.googletagmanager.com/gtag/js?id=".concat(e),()=>{let e=window;e.dataLayer=e.dataLayer||[],e.gtag=function(){e.dataLayer.push(arguments)},e.gtag("js",new Date),t.ga4.forEach(t=>e.gtag("config",t.id,{send_page_view:!1}))})}if(null===(i=t.facebook)||void 0===i?void 0:i.length){let e=window;if(!e.fbq){let t=e.fbq=function(){t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)};e._fbq||(e._fbq=t),t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],I("https://connect.facebook.net/en_US/fbevents.js")}t.facebook.forEach(t=>e.fbq("init",t.id))}if(null===(o=t.tiktok)||void 0===o?void 0:o.length){let e=window;if(!e.ttq){let t=e.ttq=Object.assign([],{_i:{},_o:[],methods:["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"]});t.methods.forEach(e=>{t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}),t.instance=function(e){let n=t._i[e]||[];return t.methods.forEach(i=>{n[i]=function(){t.push([i].concat(Array.prototype.slice.call(arguments,0)).concat([e]))}}),n},t.load=function(e){let n=document.createElement("script");n.src="https://analytics.tiktok.com/i18n/pixel/events.js?sdkid="+e+"&lib=ttq",n.async=!0,document.head.appendChild(n),t._i[e]=[],t._i[e]._u="https://analytics.tiktok.com/i18n/pixel/events.js"}}t.tiktok.forEach(t=>e.ttq.load(t.id))}if(null===(a=t.pinterest)||void 0===a?void 0:a.length){let e=window;if(!e.pintrk){let t=e.pintrk=function(){t.queue.push(Array.prototype.slice.call(arguments))};t.queue=[],t.version="3.0",I("https://s.pinimg.com/ct/core.js")}t.pinterest.forEach(t=>e.pintrk("load",t.id))}if(null===(r=t.snapchat)||void 0===r?void 0:r.length){let e=window;if(!e.snaptr){let t=e.snaptr=function(){t.handleRequest?t.handleRequest.apply(t,arguments):t.queue.push(arguments)};t.queue=[],I("https://sc-static.net/scevent.min.js")}t.snapchat.forEach(t=>e.snaptr("init",t.id))}if(null===(c=t.twitter)||void 0===c?void 0:c.length){let e=window;if(!e.twq){let t=e.twq=function(){t.queue.push(arguments)};t.queue=[],t.version="1.1",I("https://static.ads-twitter.com/uwt.js")}t.twitter.forEach(t=>e.twq("config",t.id))}if((null===(l=t.google_ads)||void 0===l?void 0:l.length)&&!(null===(s=t.ga4)||void 0===s?void 0:s.length)){let e=t.google_ads[0].id,n=window;n.gtag?t.google_ads.forEach(t=>n.gtag("config",t.id)):I("https://www.googletagmanager.com/gtag/js?id=".concat(e),()=>{n.dataLayer=n.dataLayer||[],n.gtag=function(){n.dataLayer.push(arguments)},n.gtag("js",new Date),t.google_ads.forEach(t=>n.gtag("config",t.id))})}else if(null===(u=t.google_ads)||void 0===u?void 0:u.length){let e=window;t.google_ads.forEach(t=>e.gtag("config",t.id))}if(null===(d=t.axon)||void 0===d?void 0:d.length){let e=window,n=t.axon[0].id;if(e.AXON_EVENT_KEY=n,!e.axon){let t=e.axon=function(){(t.q=t.q||[]).push(arguments)};t.q=[]}I("https://s.axon.ai/pixel.js"),I("https://res4.applovin.com/p/l/loader.iife.js",()=>{try{window.axon("init")}catch(t){}})}if(null===(g=t.microsoft)||void 0===g?void 0:g.length){let e=window;e.uetq||(e.uetq=[]),I("https://bat.bing.com/bat.js",()=>{t.microsoft.forEach(t=>{new e.UET({ti:t.id})})})}}(t),S("page_view")}).catch(()=>{}))},[e]),(0,i.useEffect)(()=>{v(),_=Date.now(),m=window.location.href,function(){try{(function(){try{if(sessionStorage.getItem("aishop_utm"))return;let t=new URLSearchParams(window.location.search),e=t.get("utm_source")||"",n=t.get("utm_medium")||"",i=t.get("utm_campaign")||"";if(!e&&!n&&!i){let t=(document.referrer||"").toLowerCase();if(!t)return;let e="referral",n="other";t.match(/google\./)?(e="organic_search",n="google"):t.match(/bing\./)?(e="organic_search",n="bing"):t.match(/facebook\.|fb\./)?(e="organic_social",n="facebook"):t.match(/instagram\./)?(e="organic_social",n="instagram"):t.match(/tiktok\./)?(e="organic_social",n="tiktok"):t.match(/pinterest\./)?(e="organic_social",n="pinterest"):t.match(/youtube\./)?(e="organic_social",n="youtube"):t.match(/chat\.openai|chatgpt|perplexity/)&&(e="ai_search",n="chatgpt"),sessionStorage.setItem("aishop_utm",JSON.stringify({source:"",medium:"",campaign:"",content:"",term:""})),sessionStorage.setItem("aishop_intent",JSON.stringify({trafficType:e,platform:n,buyingStage:"browsing",priceAffinity:"value_buyer",categoryHint:null,campaignType:"general"}));return}let o={source:e,medium:n,campaign:i,content:t.get("utm_content")||"",term:t.get("utm_term")||""},a="direct";"cpc"===n||"ppc"===n||"paid"===n?a=e.match(/facebook|instagram|tiktok|pinterest/)?"paid_social":"paid_search":"social"===n?a="organic_social":"organic"===n?a="organic_search":"email"===n?a="email":e&&(a="referral");let r="other",c=e.toLowerCase();c.includes("google")?r="google":c.includes("facebook")||c.includes("fb")?r="facebook":c.includes("instagram")?r="instagram":c.includes("tiktok")?r="tiktok":c.includes("pinterest")?r="pinterest":c.includes("youtube")?r="youtube":c.includes("bing")?r="bing":"email"===n&&(r="email"),sessionStorage.setItem("aishop_utm",JSON.stringify(o)),sessionStorage.setItem("aishop_intent",JSON.stringify({trafficType:a,platform:r,buyingStage:"browsing",priceAffinity:"value_buyer",categoryHint:null,campaignType:"general"}))}catch(t){}})();let t=JSON.stringify({event:"page_view",...f()});navigator.sendBeacon?navigator.sendBeacon("/api/public/track",new Blob([t],{type:"application/json"})):fetch("/api/public/track",{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0}
1).catch(()=>{})}catch(t){}}(),c&&S("page_view")},[n]),(0,i.useEffect)(()=>{let t=()=>v();return window.addEventListener("pagehide",t),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&v()}),()=>window.removeEventListener("pagehide",t)},[]),null}let k=new Set(["robosino.com","robotfoyer.com","shapeshe.com"]);function b(){try{return k.has(window.location.hostname.replace(/^www\./,"").toLowerCase())}catch(t){return!1}}let x={page_view:{ga4:"page_view",facebook:"PageView",tiktok:"PageView",pinterest:"pagevisit",snapchat:"PAGE_VIEW",twitter:"PageView",google_ads:"page_view",microsoft:"page_load",axon:"page_view",gtm:"page_view"},view_item:{ga4:"view_item",facebook:"ViewContent",tiktok:"ViewContent",pinterest:"viewcategory",snapchat:"VIEW_CONTENT",twitter:"ViewContent",google_ads:"view_item",microsoft:"view_item",axon:"view_item",gtm:"view_item"},add_to_cart:{ga4:"add_to_cart",facebook:"AddToCart",tiktok:"AddToCart",pinterest:"addtocart",snapchat:"ADD_CART",twitter:"AddToCart",google_ads:"add_to_cart",microsoft:"add_to_cart",axon:"add_to_cart",gtm:"add_to_cart"},begin_checkout:{ga4:"begin_checkout",facebook:"InitiateCheckout",tiktok:"InitiateCheckout",pinterest:"checkout",snapchat:"START_CHECKOUT",twitter:"InitiateCheckout",google_ads:"begin_checkout",microsoft:"begin_checkout",axon:"begin_checkout",gtm:"begin_checkout"},add_payment_info:{ga4:"add_payment_info",facebook:"AddPaymentInfo",tiktok:"AddPaymentInfo",google_ads:"add_payment_info",microsoft:"add_payment_info",gtm:"add_payment_info"},purchase:{ga4:"purchase",facebook:"Purchase",tiktok:"CompletePayment",pinterest:"purchase",snapchat:"PURCHASE",twitter:"Purchase",google_ads:"purchase",microsoft:"purchase",axon:"purchase",gtm:"purchase"},search:{ga4:"search",facebook:"Search",tiktok:"Search",pinterest:"search",snapchat:"SEARCH",twitter:"Search",google_ads:"search",microsoft:"search",axon:"search",gtm:"search"},sign_up:{ga4:"sign_up",facebook:"CompleteRegistration",tiktok:"CompleteRegistration",pinterest:"signup",snapchat:"SIGN_UP",twitter:"SignUp",google_ads:"sign_up",microsoft:"signup",axon:"sign_up",gtm:"sign_up"},add_to_wishlist:{ga4:"add_to_wishlist",facebook:"AddToWishlist",tiktok:"AddToWishlist",pinterest:"watchvideo",snapchat:"ADD_TO_WISHLIST",twitter:"AddToWishlist",google_ads:"add_to_wishlist",microsoft:"add_to_wishlist",axon:"add_to_wishlist",gtm:"add_to_wishlist"}};function S(t,e){var n,i,o,a,l,s,u,d,g,p;let h=e&&e.event_id||("purchase"===t&&e&&e.transaction_id?"purchase_"+e.transaction_id:function(){try{let t=window.crypto;if(null==t?void 0:t.randomUUID)return t.randomUUID()}catch(t){}return"e_"+Date.now()+"_"+Math.random().toString(36).slice(2,10)}());if(!function(t,e){if(new Set(["view_item","add_to_cart","begin_checkout","purchase"]).has(t))try{let n=JSON.stringify({event:t,productId:(null==e?void 0:e.productId)||(null==e?void 0:e.item_id)||(Array.isArray(null==e?void 0:e.content_ids)?e.content_ids[0]:null)||null,productTitle:(null==e?void 0:e.productTitle)||(null==e?void 0:e.item_name)||(null==e?void 0:e.content_name)||null,category:(null==e?void 0:e.category)||null,price:(null==e?void 0:e.price)||(null==e?void 0:e.value)||null,quantity:(null==e?void 0:e.quantity)||(null==e?void 0:e.num_items)||1,orderId:(null==e?void 0:e.orderId)||(null==e?void 0:e.transaction_id)||null,orderTotal:(null==e?void 0:e.orderTotal)||(null==e?void 0:e.value)||null,currency:(null==e?void 0:e.currency)||"USD",event_id:(null==e?void 0:e.event_id)||null,fbp:(null==e?void 0:e.fbp)||null,fbc:(null==e?void 0:e.fbc)||null,...f()});navigator.sendBeacon?navigator.sendBeacon("/api/public/track",new Blob([n],{type:"application/json"})):fetch("/api/public/track",{method:"POST",headers:{"Content-Type":"application/json"},body:n,keepalive:!0}).catch(()=>{})}catch(t){}}(t,{...e||{},event_id:h,fbp:w("_fbp"),fbc:function(){let t=w("_fbc");if(t)return t;try{let t=new URL(window.location.href).searchParams.get("fbclid");if(t)return"fb.1.".concat(Date.now(),".").concat(t)}catch(t){}}()}),!function(t,e){if(!b())return;let n=window;if("function"==typeof n.cxgo)try{if("purchase"===t){let t=String((null==e?void 0:e.currency)||"USD").toUpperCase();n.cxgo("purchase",{value_usd:Number(null==e?void 0:e.value)||0,order_id:String((null==e?void 0:e.transaction_id)||""),..."USD"!==t?{currency:t}:{}})}else("sign_up"===t||"lead"===t)&&n.cxgo("lead",{lead_type:(null==e?void 0:e.lead_type)||("sign_up"===t?"signup":"inquiry")})}catch(t){}}(t,e),!c||!r)return;let _=window,m=x[t];
1if(m){if(null===(n=r.ga4)||void 0===n||n.forEach(t=>{let n=m.ga4;t.events.includes(n)&&_.gtag&&_.gtag("event",n,{send_to:t.id,...e})}),null===(i=r.facebook)||void 0===i||i.forEach(t=>{let n=m.facebook;t.events.includes(n)&&_.fbq&&_.fbq("trackSingle",t.id,n,e||{},{eventID:h})}),null===(o=r.tiktok)||void 0===o||o.forEach(t=>{let n=m.tiktok;t.events.includes(n)&&_.ttq&&_.ttq.track(n,e)}),null===(a=r.pinterest)||void 0===a||a.forEach(t=>{let n=m.pinterest;t.events.includes(n)&&_.pintrk&&_.pintrk("track",n,e)}),null===(l=r.snapchat)||void 0===l||l.forEach(t=>{let n=m.snapchat;t.events.includes(n)&&_.snaptr&&_.snaptr("track",n,e)}),null===(s=r.twitter)||void 0===s||s.forEach(t=>{let n=m.twitter;t.events.includes(n)&&_.twq&&_.twq("track",n,e)}),null===(u=r.google_ads)||void 0===u||u.forEach(t=>{let n=m.google_ads;t.events.includes(n)&&_.gtag&&_.gtag("event",n,{send_to:t.id,...e})}),null===(d=r.axon)||void 0===d||d.forEach(t=>{let n=m.axon;t.events.includes(n)&&_.axon&&_.axon("track",n,e)}),(null===(g=r.gtm)||void 0===g?void 0:g.length)&&_.dataLayer){let t=m.gtm;t&&r.gtm.some(e=>(e.events||[]).includes(t))&&_.dataLayer.push({event:t,event_id:h,...e})}null===(p=r.microsoft)||void 0===p||p.forEach(t=>{let n=m.microsoft;t.events.includes(n)&&_.uetq&&_.uetq.push("event",n,e||{})})}}function I(t,e){if(document.querySelector('script[src="'.concat(t,'"]'))){null==e||e();return}let n=document.createElement("script");n.src=t,n.async=!0,e&&(n.onload=e),document.head.appendChild(n)}}}]);
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.