1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98],{8571:function(e){var t,r,n,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c=[],l=!1,d=-1;function u(){l&&n&&(l=!1,n.length?c=n.concat(c):d=-1,c.length&&m())}function m(){if(!l){var e=a(u);l=!0;for(var t=c.length;t;){for(n=c,c=[];++d<t;)n&&n[d].run();d=-1,t=c.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||l||a(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},2875:function(e,t,r){"use strict";r.d(t,{DD:function(){return c},L4:function(){return s},Xg:function(){return o}});var n=r(7437);let i=e=>{let{w:t="100%",h:r="1rem",mb:i,mt:s,r:o}=e;return(0,n.jsx)("div",{className:"skeleton",style:{width:t,height:r,marginBottom:i,marginTop:s,borderRadius:o||"4px"}})};function s(e){let{count:t=8,columns:r=4,withSidebar:s=!1,withToolbar:o=!0,gridClass:a}=e,c=o&&(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsx)(i,{w:"90px",h:"0.875rem"}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i,{w:"80px",h:"2rem",r:"var(--radius)"}),(0,n.jsx)(i,{w:"80px",h:"2rem",r:"var(--radius)"})]})]}),l=(0,n.jsx)("div",{className:a||(3===r?"grid grid-cols-2 md:grid-cols-3 gap-4":2===r?"grid grid-cols-2 gap-4":"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4"),children:Array.from({length:t}).map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("div",{className:"skeleton",style:{aspectRatio:"1",borderRadius:"var(--radius)"}}),(0,n.jsx)(i,{w:"80%",h:"0.875rem",mt:"0.75rem"}),(0,n.jsx)(i,{w:"50%",h:"0.75rem",mt:"0.375rem"}),(0,n.jsx)(i,{w:"35%",h:"1rem",mt:"0.5rem"})]},t))});return s?(0,n.jsxs)(n.Fragment,{children:[c,(0,n.jsxs)("div",{className:"lg:grid lg:grid-cols-[220px_1fr] lg:gap-6 mt-4",children:[(0,n.jsx)("aside",{className:"hidden lg:block",children:(0,n.jsxs)("div",{className:"sticky top-4 space-y-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(i,{w:"60px",h:"0.75rem",mb:"0.75rem"}),(0,n.jsx)(i,{w:"100%",h:"2rem",r:"var(--radius)"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(i,{w:"50px",h:"0.75rem",mb:"0.75rem"}),(0,n.jsx)("div",{className:"space-y-2",children:Array.from({length:5}).map((e,t)=>(0,n.jsx)(i,{w:"".concat(65+35*Math.random(),"%"),h:"1.5rem",r:"9999px"},t))})]})]})}),(0,n.jsx)("div",{children:l})]})]}):(0,n.jsxs)(n.Fragment,{children:[c,l]})}function o(e){let{count:t=3,gridClass:r="dec-grid dec-cols-3 dec-mcols-1"}=e;return(0,n.jsx)("div",{className:r,children:Array.from({length:t}).map((e,t)=>(0,n.jsxs)("div",{className:"card overflow-hidden",children:[(0,n.jsx)("div",{className:"skeleton",style:{aspectRatio:"16/10",borderRadius:0}}),(0,n.jsxs)("div",{className:"p-4 md:p-5 space-y-3",children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i,{w:"52px",h:"1.25rem",r:"4px"}),(0,n.jsx)(i,{w:"80px",h:"1.25rem",r:"4px"})]}),(0,n.jsx)(i,{w:"90%",h:"1rem"}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(i,{w:"100%",h:"0.75rem"}),(0,n.jsx)(i,{w:"75%",h:"0.75rem"})]})]})]},t))})}
1function a(e){let{count:t=4}=e;return(0,n.jsx)("div",{className:"space-y-3",children:Array.from({length:t}).map((e,t)=>(0,n.jsxs)("div",{className:"card p-4",children:[(0,n.jsxs)("div",{className:"flex justify-between items-start",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(i,{w:"80px",h:"1rem"}),(0,n.jsx)(i,{w:"100px",h:"0.75rem"})]}),(0,n.jsx)(i,{w:"60px",h:"1rem"})]}),(0,n.jsxs)("div",{className:"flex gap-2 mt-3",children:[(0,n.jsx)(i,{w:"70px",h:"1.375rem",r:"4px"}),(0,n.jsx)(i,{w:"70px",h:"1.375rem",r:"4px"})]})]},t))})}function c(){return(0,n.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(i,{w:"180px",h:"1.5rem",mb:"0.5rem"}),(0,n.jsx)(i,{w:"200px",h:"0.875rem"})]}),(0,n.jsx)(i,{w:"80px",h:"2.25rem",r:"var(--radius)"})]}),(0,n.jsx)(i,{w:"250px",h:"1rem",mb:"1.5rem"}),(0,n.jsx)(i,{w:"140px",h:"1.25rem",mb:"1rem"}),(0,n.jsx)(a,{count:3})]})}},3830:function(e,t,r){"use strict";r.r(t),r.d(t,{ProductCard:function(){return f}});var n=r(7437),i=r(3145),s=r(453),o=r(684),a=r(9114),c=r(3065),l=r(2265);let d="aishop_wishlist";function u(){try{return JSON.parse(localStorage.getItem(d)||"[]")}catch(e){return[]}}function m(e){return u().some(t=>t.productId===e)}function p(e){return localStorage.setItem(d,JSON.stringify(e)),window.dispatchEvent(new CustomEvent("wishlist-updated",{detail:e})),e}function h(e){let{product:t,size:r="sm"}=e,[i,s]=(0,l.useState)(!1),[o,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{s(m(t.productId));let e=()=>s(m(t.productId));return window.addEventListener("wishlist-updated",e),()=>window.removeEventListener("wishlist-updated",e)},[t.productId]),(0,n.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation();let{added:r}=function(e){if(m(e.productId)){var t;return{list:(t=e.productId,p(u().filter(e=>e.productId!==t))),added:!1}}return{list:function(e){let t=u().filter(t=>t.productId!==e.productId);return t.unshift(e),p(t)}(e),added:!0}}(t);s(r),r&&(a(!0),setTimeout(()=>a(!1),300))},className:"transition-transform ".concat(o?"scale-125":"scale-100"),"aria-label":i?"Remove from wishlist":"Add to wishlist",children:(0,n.jsx)("svg",{className:"md"===r?"w-6 h-6":"w-5 h-5",viewBox:"0 0 24 24",fill:i?"var(--color-accent)":"none",stroke:i?"var(--color-accent)":"currentColor",strokeWidth:2,children:(0,n.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z"})})})}function f(e){var t,r;let{id:l,title:d,price:u,compareAtPrice:m,image:p,currency:f,badge:x,slug:g,hasVariants:v}=e,{formatPrice:y}=(0,o.P)(),{t:w}=(0,a.QT)(),{store:b}=(0,c.o)(),j="b2b"===((null==b?void 0:null===(t=b._global)||void 0===t?void 0:t.business_model)||"").toLowerCase()||(null==b?void 0:null===(r=b._global)||void 0===r?void 0:r.checkout_mode)==="quote"||!(Number(u)>0),N=!j&&m?Math.round((1-u/m)*100):0;return(0,n.jsxs)("a",{href:"/products/".concat(l||g,"/"),className:"card group block",itemScope:!0,itemType:"https://schema.org/Product",children:[(0,n.jsxs)("div",{className:"relative aspect-square overflow-hidden",style:{background:"var(--color-surface)"},children:[p?(0,n.jsx)(i.default,{src:p,alt:"".concat(d," - shop now"),fill:!0,sizes:"(max-width: 640px) 50vw, (max-width: 1024px) 33vw, 25vw",className:"object-cover group-hover:scale-105 transition-transform duration-300",itemProp:"image"}):(0,n.jsx)("div",{className:"w-full h-full flex items-center justify-center",style:{color:"var(--color-text-muted)"},children:(0,n.jsx)("svg",{className:"w-12 h-12 opacity-30",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),(0,n.jsxs)("div",{className:"absolute top-3 right-3 flex items-center gap-2",children:[(0,n.jsx)("div",{className:"w-8 h-8 flex items-center justify-center rounded-full opacity-0 group-hover:opacity-100 transition-all group-hover:w-8 w-0 overflow-hidden",style:{background:"rgba(255,255,255,0.9)"},children:(0,n.jsx)(h,{product:{productId:l,title:d,image:p,price:u,slug:g||l}}
1)}),N>0?(0,n.jsxs)("span",{className:"px-2 py-1 text-xs font-bold text-white bg-red-500 rounded",children:["-",N,"%"]}):x?(0,n.jsx)("span",{className:"px-2 py-1 text-xs font-bold text-white rounded",style:{background:"var(--color-accent)"},children:x}):null]}),(0,n.jsxs)("div",{className:"absolute bottom-3 left-3 right-3 flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:[(0,n.jsx)("button",{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),j){try{let e=l||g?"".concat(window.location.origin,"/products/").concat(l||g,"/"):window.location.href;window.dispatchEvent(new CustomEvent("aishop:open-rfq",{detail:{product_id:l,product_title:d,product_url:e}}))}catch(e){}return}if(v){window.location.href="/products/".concat(l||g,"/");return}(0,s.Xq)({productId:l,title:d,price:u,compareAtPrice:m,image:p,quantity:1})},className:"flex-1 py-2 text-center text-sm font-semibold text-white transition-all hover:brightness-110",style:{background:"var(--color-primary)",borderRadius:"var(--radius)"},children:j?"Request a Quote":w("productcard.quick_add")}),(0,n.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.dispatchEvent(new CustomEvent("open-quick-view",{detail:{productId:l,slug:g||l}}
1))},className:"px-3 py-2 text-white transition-all hover:brightness-110",style:{background:"var(--color-primary)",borderRadius:"var(--radius)"},"aria-label":w("productcard.quick_view"),children:(0,n.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,n.jsx)("path",{d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,n.jsx)("path",{d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})})]})]}),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsx)("h3",{className:"text-sm font-medium line-clamp-2 mb-2 group-hover:text-[var(--color-primary)] transition-colors",itemProp:"name",children:d}),(0,n.jsx)("div",{className:"flex items-center gap-2",itemProp:"offers",itemScope:!0,itemType:"https://schema.org/Offer",children:j?(0,n.jsx)("span",{className:"price text-base",children:"Contact for Quote"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"price text-base",itemProp:"price",content:String(u),children:y(u)}),(0,n.jsx)("meta",{itemProp:"priceCurrency",content:f||"USD"}),m&&(0,n.jsx)("span",{className:"price-compare",children:y(m)})]})})]})]})}},5295:function(e,t,r){"use strict";r.d(t,{i:function(){return o},k:function(){return s}});var n=r(7437),i=r(2265);function s(e){try{let t="string"==typeof e?JSON.parse(e):e;if(!(null==t?void 0:t.sections)||!Array.isArray(t.order))return null;for(let e of t.order){let r=t.sections[e];if(r&&"photo-reviews"===r.type&&!r.disabled)return r}return null}catch(e){return null}}function o(e){let{sec:t}=e,r=t.settings,s=t.blocks?Array.isArray(t.blocks)?t.blocks.filter(
1Boolean).map((e,t)=>({...e,id:"arr_".concat(t)})):(t.block_order||t.blockOrder||Object.keys(t.blocks)).map(e=>{let r=t.blocks[e];return r?{...r,id:e}:null}).filter(Boolean):[],o=(0,i.useRef)(null),[a,c]=(0,i.useState)(!1),[l,d]=(0,i.useState)(!0),u=s.length?s.map(e=>({name:e.settings.name||e.settings.author||"Customer",text:e.settings.text||"",rating:Number(e.settings.rating)||5,photo:e.settings.photo||e.settings.image||"",video:e.settings.video||"",avatar:e.settings.avatar||"",verified:!1!==e.settings.verified})):[],m=(0,i.useCallback)(()=>{let e=o.current;e&&(c(e.scrollLeft>4),d(e.scrollLeft+e.clientWidth<e.scrollWidth-4))},[]);(0,i.useEffect)(()=>{let e=o.current;if(e)return m(),e.addEventListener("scroll",m,{passive:!0}),()=>e.removeEventListener("scroll",m)},[m,u.length]);let p=e=>{var t;let r=o.current;if(!r)return;let n=(null===(t=r.querySelector(".pr-card"))||void 0===t?void 0:t.offsetWidth)||280;r.scrollBy({left:e*(n+16),behavior:"smooth"})};if(!u.length)return null;let h=(e,t)=>null==e||""===e?t:"number"==typeof e||/^\d+$/.test(String(e))?"".concat(e,"px"):String(e),f=h(r.card_width,"280px"),x=h(r.card_width_mobile,"240px"),g=h(r.media_height,"360px"),v="bottom"===r.media_position||"left"===r.media_position||"right"===r.media_position?r.media_position:"top",y="left"===v||"right"===v,w="top"===v?"column":"bottom"===v?"column-reverse":"left"===v?"row":"row-reverse";return(0,n.jsxs)("section",{className:"max-w-7xl mx-auto px-4 py-8 md:py-14",children:[r.heading&&(0,n.jsx)("h2",{className:"text-2xl md:text-3xl font-heading font-bold text-center mb-2",children:r.heading}),r.subheading&&(0,n.jsx)("p",{className:"text-center text-sm mb-8",style:{color:"var(--color-text-muted)"},children:r.subheading}),(0,n.jsxs)("div",{className:"relative group",children:[a&&(0,n.jsx)("button",{onClick:()=>p(-1),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",style:{background:"var(--color-bg)",color:"var(--color-text)",marginLeft:"-4px"},"aria-label":"Previous",children:(0,n.jsx)("span",{className:"text-lg",children:"â¹"})}),l&&(0,n.jsx)("button",{onClick:()=>p(1),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",style:{background:"var(--color-bg)",color:"var(--color-text)",marginRight:"-4px"},"aria-label":"Next",children:(0,n.jsx)("span",{className:"text-lg",children:"âº"})}),(0,n.jsxs)("div",{ref:o,className:"flex gap-4 overflow-x-auto pr-scroll-track",style:{scrollSnapType:"x mandatory",scrollbarWidth:"none",msOverflowStyle:"none",WebkitOverflowScrolling:"touch"},children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:".pr-scroll-track::-webkit-scrollbar{display:none} .pr-card{min-width:".concat(x,";max-width:").concat(x,"} @media(min-width:768px){.pr-card{min-width:").concat(f,";max-width:").concat(f,"}}")}}),u.map((e,t)=>(0,n.jsxs)("div",{className:"pr-card rounded-xl overflow-hidden flex-shrink-0",style:{background:"var(--color-surface)",scrollSnapAlign:"start",display:"flex",flexDirection:w},children:[(e.video||e.photo)&&(0,n.jsx)("div",{style:{...y?{width:"45%",flexShrink:0}:{width:"100%"},height:g,overflow:"hidden"},children:e.video?(0,n.jsx)("video",{src:e.video,muted:!0,autoPlay:!0,loop:!0,playsInline:!0,preload:"metadata",className:"w-full h-full object-cover",style:{background:"#000"}}):(0,n.jsx)("img",{src:e.photo,alt:e.name,className:"w-full h-full object-cover",loading:"lazy"})}),(0,n.jsxs)("div",{className:"p-4",style:y?{flex:1,minWidth:0}:void 0,children:[(0,n.jsxs)("div",{className:"flex text-yellow-500 mb-2 text-sm",children:["â
".repeat(e.rating),"â".repeat(5-e.rating)]}),e.text&&(0,n.jsxs)("p",{className:"text-xs md:text-sm mb-3 line-clamp-4",style:{color:"var(--color-text-muted)"},children:["â",e.text,"â"]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[e.avatar?(0,n.jsx)("img",{src:e.avatar,alt:e.name,className:"w-7 h-7 rounded-full object-cover"}):(0,n.jsx)("div",{className:"w-7 h-7 rounded-full flex items-center justify-center text-xs font-bold text-white",style:{background:"var(--color-primary)"},children:e.name[0]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-semibold",children:e.name}),e.verified&&(0,n.jsx)("p",{className:"text-xs",style:{color:"var(--color-primary)"},children:"â Verified Purchase"})]})]})]})]},t))]})]})]})}},2656:function(e,t,r){"use strict";r.d(t,{P$:function(){return i},cd:function(){return a},oo:function(){return o},s1:function(){return s}});let n="aishop_browse_history";function i(e){let t=s().filter(t=>t.productId!==e.id);t.unshift({productId:e.id,slug:e.slug,category:e.category||"",price:e.price,tags:e.tags||[],timestamp:Date.now()}),function(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(e){}}(t.slice(0,50))}function s(){try{let e=localStorage.getItem(n);return e?JSON.parse(e):[]}catch(e){return[]}}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return s().slice(0,e).map(e=>e.productId)}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t={};for(let e of s())e.category&&(t[e.category]=(t[e.category]||0)+1);return Object.entries(t).sort((e,t)=>
1t[1]-e[1]).slice(0,e).map(e=>{let[t]=e;return t})}},2796:function(e,t,r){"use strict";r.d(t,{U:function(){return s},c:function(){return i}});let n=/\.(mp4|webm|mov|m4v)(\?|#|$)/i;function i(e){return!!e&&n.test(e)}function s(e){return(null==e?void 0:e.length)&&e.find(e=>e&&!i(e))||""}},3126:function(e,t,r){"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,n=e.filter(e=>!(t.currentProduct&&e.id===t.currentProduct.id||t.cartItems.includes(e.id))).map(e=>(function(e,t){var r,n,i,s;let o=0,a="trending",c=t.currentProduct;if(c&&e.category===c.category?(o+=30,a="similar"):t.categoryPreference&&e.category===t.categoryPreference&&(o+=20,a="category"),(null==c?void 0:null===(r=c.tags)||void 0===r?void 0:r.length)&&(null===(n=e.tags)||void 0===n?void 0:n.length)){let t=new Set(c.tags.map(e=>e.toLowerCase())),r=15*e.tags.filter(e=>t.has(e.toLowerCase())).length;r>0&&(o+=r,r>.5*o&&(a="similar"))}if(c&&(Math.abs(e.price-c.price)/c.price<.3?o+=10:e.price<.5*c.price&&(o+=15,a="complement")),t.priceRange&&e.price>=t.priceRange.min&&e.price<=t.priceRange.max&&(o+=10,a="trending"===a?"price_match":a),t.viewedProducts.includes(e.id)&&(o+=5,a="also_viewed"),e.compare_at_price&&e.compare_at_price>e.price&&(o+=5),t.searchQuery){let r=t.searchQuery.toLowerCase();e.title.toLowerCase().includes(r)&&(o+=20),(null===(i=e.category)||void 0===i?void 0:i.toLowerCase().includes(r))&&(o+=10),(null===(s=e.tags)||void 0===s?void 0:s.some(e=>e.toLowerCase().includes(r)))&&(o+=10)}return{...e,recScore:o,recReason:a}})(e,t));return n.sort((e,t)=>t.recScore-e.recScore),function(e,t){let r=[],n={},i=Math.ceil(t/2);for(let s of e){if(r.length>=t)break;let e=s.category||"uncategorized",o=n[e]||0;o<i&&(r.push(s),n[e]=o+1)}if(r.length<t)for(let n of e){if(r.length>=t)break;r.includes(n)||r.push(n)}return r}(n,r)}function i(e){if(e.length<2)return;let t=e.map(e=>e.price).sort((e,t)=>e-t);return{min:.7*t[0],max:1.3*t[t.length-1]}}function s(e){var t;if(0===e.length)return;let r={};for(let t of e)t.category&&(r[t.category]=(r[t.category]||0)+1);return null===(t=Object.entries(r).sort((e,t)=>t[1]-e[1])[0])||void 0===t?void 0:t[0]}r.d(t,{Ph:function(){return s},l8:function(){return n},xb:function(){return i}})},4749:function(e,t,r){"use strict";r.d(t,{Aj:function(){return a},D4:function(){return l},Dq:function(){return s},Qz:function(){return o},Vo:function(){return c}});let n="aishop_utm",i="aishop_intent";function s(e){return{source:e.get("utm_source")||"",medium:e.get("utm_medium")||"",campaign:e.get("utm_campaign")||"",content:e.get("utm_content")||"",term:e.get("utm_term")||""}}function o(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=r.toLowerCase(),i="direct";"cpc"===e.medium||"ppc"===e.medium||"paid"===e.medium?i=e.source.match(/facebook|instagram|tiktok|pinterest/)?"paid_social":"paid_search":"social"===e.medium||n.match(/facebook|instagram|tiktok|twitter|pinterest/)?i="organic_social":"organic"===e.medium||n.match(/google|bing|yahoo|duckduckgo/)?i="organic_search":"email"===e.medium?i="email":n.match(/chat\.openai|chatgpt|perplexity|claude/)?i="ai_search":n&&!n.includes((null===(t=location)||void 0===t?void 0:t.hostname)||"")&&(i="referral");let s="other",o=(e.source||n).toLowerCase();o.includes("google")?s="google":o.includes("facebook")||o.includes("fb")?s="facebook":o.includes("instagram")||o.includes("ig")?s="instagram":o.includes("tiktok")?s="tiktok":o.includes("pinterest")?s="pinterest":o.includes("youtube")?s="youtube":o.includes("chatgpt")||o.includes("openai")?s="chatgpt":o.includes("perplexity")?s="perplexity":o.includes("bing")?s="bing":"email"===e.medium&&(s="email");let a="browsing",c=e.campaign.toLowerCase(),l=e.term.toLowerCase();l.match(/buy|order|price|cheap|deal|coupon|discount/)?a="ready_to_buy":l.match(/best|review|compare|vs|top|recommend/)?a="comparing":c.match(/retarget|remarket|abandon/)&&(a="ready_to_buy");let d="value_buyer";l.match(/cheap|deal|coupon|discount|budget|affordable/)||c.match(/sale|deal|clearance/)?d="deal_seeker":(l.match(/premium|luxury|best|quality|pro/)||c.match(/premium|luxury/))&&(d="premium");let u=null,m=l.split(/\s+/).filter(e=>!e.match(/buy|best|cheap|online|review|price|deal/));m.length>0&&(u=m.join(" "));let p="general";return c.match(/sale|deal|discount|clearance|flash/)?p="sale":c.match(/new|launch|arrival|drop/)?p="new_arrival":c.match(/brand|awareness/)?p="brand":c.match(/retarget|remarket|abandon/)&&(p="retarget"),{trafficType:i,platform:s,buyingStage:a,priceAffinity:d,categoryHint:u,campaignType:p}}function a(e,t){try{sessionStorage.setItem(n,JSON.stringify(e)),sessionStorage.setItem(i,JSON.stringify(t))}catch(e){}}function c(){try{let e=sessionStorage.getItem(i);return e?JSON.parse(e):null}catch(e){return null}}function l(){try{let e=sessionStorage.getItem(n);return e?JSON.parse(e):null}catch(e){return null}}}}]);
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.