PageSourceSearch

https://margegranola.com/_next/static/chunks/app/(shop)/page-58e3df0da6a22b20.js

js margegranola.com collected 2026-10-04 02:46:02 UTC 27,598 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4868],{7959:(e,t,s)=>{Promise.resolve().then(s.bind(s,80466)),Promise.resolve().then(s.t.bind(s,52619,23)),Promise.resolve().then(s.t.bind(s,81356,23)),Promise.resolve().then(s.bind(s,34392)),Promise.resolve().then(s.bind(s,43369)),Promise.resolve().then(s.bind(s,74095)),Promise.resolve().then(s.bind(s,64819)),Promise.resolve().then(s.bind(s,83581)),Promise.resolve().then(s.bind(s,47888))},11503:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(71847).A)("leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]])},34392:(e,t,s)=>{"use strict";s.d(t,{TopCategories:()=>p});var a=s(95155);s(12115);var i=s(90368),r=s(27937),o=s(74551),l=s(42999),n=s(45788),c=s(3998),d=s(52619),u=s.n(d);function p(e){let{categories:t=[]}=e;return 0===t.length?null:(0,a.jsx)("section",{className:" py-16 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"container mx-auto  px-4 ",children:[(0,a.jsxs)("div",{className:"mb-12 text-center md:mb-16",children:[(0,a.jsx)("h2",{className:"mb-4 font-heading text-3xl font-bold text-shop-navbar-foreground md:text-4xl",children:"Top Categories"}),(0,a.jsx)("p",{className:"mx-auto max-w-2xl text-base text-muted-foreground md:text-lg",children:"Explore our most popular product categories and find everything you need"})]}),(0,a.jsxs)("div",{className:"relative px-6 md:px-12 ",children:[(0,a.jsx)(o.RC,{modules:[l.Vx],slidesPerView:1,spaceBetween:16,navigation:{nextEl:".top-categories-button-next",prevEl:".top-categories-button-prev"},watchOverflow:!0,breakpoints:{640:{slidesPerView:2,spaceBetween:20},1024:{slidesPerView:3,spaceBetween:24}},className:"top-categories-swiper",children:t.map((e,t)=>{var s;return(0,a.jsx)(o.qr,{className:"!flex !h-auto",children:(0,a.jsx)(n.r,{id:e.id,name:e.name,slug:e.slug,image:null!=(s=e.image)?s:void 0,categoryHref:"/categories/".concat(e.slug),index:t})},e.id)})}),(0,a.jsx)(c.$,{type:"button",variant:"outline",size:"icon","aria-label":"Previous categories",className:"top-categories-button-prev absolute left-0 top-1/2 z-10 flex -translate-x-1/2 -translate-y-1/2 cursor-pointer bg-card shadow-md hover:shadow-lg",children:(0,a.jsx)(i.A,{className:"h-4 w-4"})}),(0,a.jsx)(c.$,{type:"button",variant:"outline",size:"icon","aria-label":"Next categories",className:"top-categories-button-next absolute right-0 top-1/2 z-10 flex translate-x-1/2 -translate-y-1/2 cursor-pointer bg-card shadow-md hover:shadow-lg",children:(0,a.jsx)(r.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"mt-12 flex justify-center md:mt-16",children:(0,a.jsx)(u(),{href:"/categories",className:"cursor-pointer",children:(0,a.jsx)(c.$,{className:"h-14 min-w-[220px] cursor-pointer rounded-lg bg-shop-primary px-12 text-lg font-semibold text-white shadow-lg transition-all duration-300 hover:bg-shop-primary/90 hover:text-white hover:shadow-xl",children:"View All Categories"})})})]})})}s(74062),s(1878)},43369:(e,t,s)=>{"use strict";s.d(t,{default:()=>u});var a=s(95155),i=s(70211),r=s(26497),o=s(12115),l=s(24033),n=s(64269);let c=/(https?:\/\/[^\s]+|www\.[^\s]+)/gi,d=e=>{let{faq:t}=e,[s,d]=(0,o.useState)(!1);return(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:(0,n.cn)("last:border-b-0",s?"mb-4 last:mb-0 rounded-lg border border-shop-accent/20 bg-card px-4 py-1 shadow-sm sm:px-6":"border-b border-border"),children:[(0,a.jsxs)(i.P.button,{type:"button",whileHover:{scale:1.005},whileTap:{scale:.995},className:"flex w-full cursor-pointer items-center justify-between py-5 text-left sm:py-6",onClick:()=>d(!s),children:[(0,a.jsx)("span",{className:"font-heading text-lg font-medium text-shop-heading",children:t.question}),(0,a.jsx)(i.P.div,{className:"ml-6 flex-shrink-0",children:(0,a.jsx)(i.P.div,{animate:{rotate:180*!!s},transition:{duration:.3},children:(0,a.jsx)(l.A,{className:"h-5 w-5 text-muted-foreground"})})})]}),(0,a.jsx)(r.N,{children:s&&(0,a.jsx)(i.P.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,a.jsx)(i.P.p,{initial:{y:-10},animate:{y:0},exit:{y:-10},className:"pb-5 text-muted-foreground sm:pb-6",children:t.answer.split(c).map((e,t)=>{var s;if(!e)return null;if(!/^(https?:\/\/|www\.)/i.test(e))return(0,a.jsx)("span",{children:e},"faq-text-".concat(t));let i=e.match(/[)\].,!?;:]+$/),r=null!=(s=null==i?void 0:i[0])?s:"",o=r?e.slice(0,-r.length):e,l=o.startsWith("http")?o:"https://".concat(o);return(0,a.jsxs)("span",{children:[(0,a.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 text-shop-primary hover:text-shop-accent-2",children:o}),r?(0,a.jsx)("span",{children:r},"faq-link-tail-".concat(t)):null]},"faq-link-wrap-".concat(t))})})})})]})};function u(e){let{faqs:t}=e;if(!t||0===t.length)return null;let s=[...t].sort((e,t)=>e.sortOrder-t.sortOrder);return(0,a.jsx)("section",{className:"w-full py-20",children:(0,a.jsxs)("div",{className:"container mx-auto max-w-4xl px-4",children:[(0,a.jsxs)(i.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[(0,a.jsx)(i.P.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"font-heading text-3xl md:text-4xl font-bold text-shop-heading",children:"Frequently Asked Questions"}),(0,a.jsx)(i.P.p,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.3},className:"mx-auto mt-3 max-w-2xl text-muted-foreground",children:"Find answers to common questions about our products and services"})]}),(0,a.jsx)("div",{children:s.map(e=>(0,a.jsx)(d,{faq:e},e.id))})]})})}},45788:(e,t,s)=>{"use strict";s.d(t,{r:()=>y});var a=s(95155),i=s(12115),r=s(15239),o=s(52619),l=s.n(o),n=s(71847);let c=(0,n.A)("sprout",[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]]);var d=s(11503);let u=(0,n.A)("flower-2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]),p=(0,n.A)("wheat",[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]]);var h=s(99051);let m=(0,n.A)("droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]),x=(0,n.A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),g=(0,n.A)("tree-pine",[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]]);var f=s(95740),v=s(60952),b=s(52987);let w=[{icon:c,bgClass:"bg-shop-secondary",iconClass:"text-shop-navbar-foreground"},{icon:d.A,bgClass:"bg-shop-accent/20",iconClass:"text-shop-accent-2"},{icon:u,bgClass:"bg-shop-accent/15",iconClass:"text-shop-accent"},{icon:p,bgClass:"bg-shop-primary/15",iconClass:"text-shop-primary"},{icon:h.A,bgClass:"bg-shop-secondary",iconClass:"text-shop-navbar-foreground"},{icon:m,bgClass:"bg-shop-accent/20",iconClass:"text-shop-accent-2"},{icon:x,bgClass:"bg-shop-accent/15",iconClass:"text-shop-accent"},{icon:g,bgClass:"bg-shop-primary/15",iconClass:"text-shop-primary"},{icon:f.A,bgClass:"bg-shop-secondary",iconClass:"text-shop-navbar-foreground"},{icon:v.A,bgClass:"bg-shop-accent/20",iconClass:"text-shop-accent-2"}];function y(e){var t;let{id:s,name:o,slug:n,image:c,categoryHref:d,index:u=0}=e,p=w[u%w.length],h=p.icon,m=null!=(t=null==c?void 0:c.trim())?t:"",x=!!m,g=m.includes("minio-wc08
1sw004okowcococc4404k")||m.includes("sslip.io")||m.includes("minio.greyfibre.xyz"),[f,v]=(0,i.useState)(!1);return(0,a.jsx)(l(),{href:d||(n?"/categories/".concat(n):"/categories/".concat(s)),className:"flex min-h-0 min-w-0 flex-1 cursor-pointer flex-col outline-none",children:(0,a.jsx)("div",{className:"group box-border flex h-full min-h-0 flex-col rounded-2xl border border-border bg-card shadow-sm transition-all duration-300 hover:border-border hover:shadow-lg",children:(0,a.jsxs)("div",{className:"flex flex-1 flex-col items-stretch justify-start px-2.5 pb-2.5 pt-2 sm:px-3 sm:pb-3 sm:pt-2.5",children:[(0,a.jsx)("div",{className:"relative aspect-square w-full shrink-0 overflow-hidden rounded-2xl sm:rounded-[1.25rem] ".concat(p.bgClass),children:x&&!f?(0,a.jsx)(r.default,{src:m,alt:o,fill:!0,sizes:"(max-width: 639px) 100vw, (max-width: 1023px) 50vw, 33vw",className:"object-cover",unoptimized:g,onError:()=>v(!0)}):(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)(h,{className:"h-[42%] w-[42%] max-h-40 max-w-40 min-h-20 min-w-20 sm:max-h-44 sm:max-w-44 ".concat(p.iconClass),strokeWidth:1.25})})}),(0,a.jsxs)("div",{className:"mt-2 flex w-full min-w-0 flex-col items-center gap-1 self-center text-center sm:mt-2.5 sm:gap-1.5",children:[(0,a.jsx)("h3",{className:"w-full text-xl font-semibold leading-tight text-shop-navbar-foreground sm:text-2xl sm:leading-tight sm:whitespace-nowrap",children:o}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-2 text-base font-medium text-shop-navbar-foreground transition-all group-hover:gap-3 sm:text-lg",children:["Explore ",(0,a.jsx)(b.A,{className:"h-5 w-5 shrink-0 sm:h-6 sm:w-6"})]})]})]})})})}},47888:(e,t,s)=>{"use strict";s.d(t,{NewArrivals:()=>l});var a=s(95155);s(12115);var i=s(74551),r=s(42999),o=s(55839);function l(e){let{products:t}=e;return 0===t.length?null:(0,a.jsx)("section",{className:" py-16 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"container mx-auto  px-4",children:[(0,a.jsxs)("div",{className:"text-center mb-16",children:[(0,a.jsx)("h2",{className:"font-heading text-3xl md:text-4xl font-bold text-shop-navbar-foreground mb-4",children:"New Arrivals"}),(0,a.jsx)("p",{className:"mx-auto max-w-2xl text-base text-muted-foreground md:text-lg",children:"Discover the latest additions to our collection with fresh designs and innovative features"})]}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)(i.RC,{modules:[r.dK],spaceBetween:24,slidesPerView:1,slidesPerGroup:1,allowTouchMove:!0,simulateTouch:!0,touchStartPreventDefault:!1,breakpoints:{640:{slidesPerView:2,slidesPerGroup:2,spaceBetween:24},768:{slidesPerView:3,slidesPerGroup:3,spaceBetween:24},1024:{slidesPerView:3,slidesPerGroup:3,spaceBetween:24}},pagination:{clickable:!0,dynamicBullets:!1,type:"bullets"},loop:!1,className:"new-arrivals-swiper",children:t.map(e=>(0,a.jsx)(i.qr,{children:(0,a.jsx)(o._,{id:e.id,name:e.title,categories:e.categories,price:e.price,compareAtPrice:e.compareAtPrice,images:e.images,variants:e.variants,variations:e.variations,onSale:e.onSale,slug:e.slug})},e.id))})})]})})}s(74062),s(18068)},52987:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(71847).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},60952:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(71847).A)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]])},64819:(e,t,s)=>{"use strict";s.d(t,{HeroSlider:()=>h});var a=s(95155),i=s(12115),r=s(15239),o=s(52619),l=s.n(o),n=s(20063),c=s(74551),d=s(42999),u=s(3998);s(74062),s(18068);let p=[{id:"fallback-1",title:"Lorem Ipsum Dolor Sit Amet",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.",image:"https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=800&q=80",buttonText:"Shop Now",buttonHref:"/shop",sortOrder:0},{id:"fallback-2",title:"Consectetur Adipiscing Elit",description:"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.",image:"https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&q=80",buttonText:"Discover",buttonHref:"/shop",sortOrder:1},{id:"fallback-3",title:"Sed Do Eiusmod Tempor",description:"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet consectetur.",image:"https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=800&q=80",buttonText:"Explore",buttonHref:"/shop",sortOrder:2}];function h(e){let{slidesData:t,heroDecorCardsData:s}=e,o=(0,n.useRouter)(),h=t&&t.length>0?t:p,[m,x]=(0,i.useState)({}),[g,f]=(0,i.useState)(!1),v=(0,i.useMemo)(()=>(null!=s?s:[]).slice().sort((e,t)=>
1e.sortOrder-t.sortOrder).map(e=>{var t,s,a;let i=null==(a=e.product)||null==(s=a.images)||null==(t=s[0])?void 0:t.url;return i&&e.product?{url:i,title:e.product.title,slug:e.product.slug,badgeText:e.badgeText,featuredText:e.featuredText||""}:null}).filter(e=>!!e),[s]),b=e=>{!g&&(e.target.closest("a,button,.swiper-pagination,.swiper-pagination-bullet")||(f(!0),o.push("/products")))};return(0,a.jsx)("div",{className:"relative h-[calc(100svh-7rem-var(--promo-bar-h,0px))] min-h-[18rem] w-full overflow-hidden",children:(0,a.jsx)(c.RC,{modules:[d.dK,d.Ij],spaceBetween:0,slidesPerView:1,pagination:{clickable:!0},autoplay:{delay:3e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},speed:1200,effect:"slide",loop:h.length>1,grabCursor:!0,allowTouchMove:!0,className:"h-full [&_.swiper-wrapper]:h-full [&_.swiper-slide]:h-full",style:{"--swiper-transition-timing-function":"cubic-bezier(0.25, 0.46, 0.45, 0.94)"},children:h.map((e,t)=>(0,a.jsx)(c.qr,{className:"!h-full",children:(0,a.jsxs)("div",{className:"relative h-full min-h-full w-full overflow-hidden cursor-pointer",onClick:b,children:[(0,a.jsx)("div",{className:"absolute inset-0",children:e.image&&!m[e.id]?(0,a.jsx)(r.default,{src:e.image,alt:e.title,fill:!0,priority:0===t,className:"object-cover object-center",sizes:"100vw",onError:()=>{var t;return t=e.id,void x(e=>({...e,[t]:!0}))},unoptimized:function(e){if(!e||"string"!=typeof e)return!1;let t=e.toLowerCase();return t.includes("minio-wc08sw004okowcococc4404k")||t.includes("sslip.io")||t.includes("minio.greyfibre.xyz")||t.includes("217.196.51.116")}(e.image)}):(0,a.jsx)("div",{className:"h-full w-full bg-muted"})}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-black/50","aria-hidden":!0}),(0,a.jsx)("div",{className:"relative z-10 flex h-full min-h-full items-center",children:(0,a.jsx)("div",{className:"container mx-auto  px-4 md:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"max-w-4xl text-center md:text-left",children:[(0,a.jsx)("h1",{className:"font-heading font-bold uppercase leading-[1.05] tracking-[-0.02em] text-shop-primary [font-size:clamp(3rem,8vw,6.25rem)]",children:e.title}),(0,a.jsx)("p",{className:"mt-4 max-w-2xl font-sans text-[1.5rem] leading-relaxed text-white md:mt-5",children:e.description}),(0,a.jsx)("div",{className:"mt-6 md:mt-8",onClick:e=>e.stopPropagation(),children:(0,a.jsx)(u.$,{asChild:!0,className:"cursor-pointer rounded-full bg-shop-primary px-8 py-3 text-base font-semibold text-shop-primary-foreground shadow-lg transition-all hover:bg-shop-primary/90 hover:shadow-xl md:px-10 md:py-4 md:text-lg",children:(0,a.jsx)(l(),{href:e.buttonHref,children:e.buttonText})})})]})})}),v.length>0&&(0,a.jsx)("div",{className:"absolute right-8 top-8 z-20 hidden lg:block xl:right-12 xl:top-10",children:(0,a.jsxs)("div",{className:"w-[220px] rounded-2xl border border-white/30 bg-black/30 p-3 text-white shadow-[0_18px_45px_rgba(0,0,0,0.35)] backdrop-blur-sm xl:w-[250px]",children:[(0,a.jsx)("div",{className:"mb-2 inline-flex items-center rounded-full bg-shop-primary/90 px-2.5 py-1 text-[11px] font-semibold uppercase tracking-wide text-shop-primary-foreground",children:v[t%v.length].badgeText}),(0,a.jsx)("div",{className:"relative mb-2 h-[130px] overflow-hidden rounded-xl border border-white/20 bg-white/10 xl:h-[150px]",children:(0,a.jsx)(r.default,{src:v[t%v.length].url,alt:v[t%v.length].title,fill:!0,className:"object-cover",sizes:"(min-width: 1280px) 250px, 220px"})}),(0,a.jsx)("p",{className:"line-clamp-2 text-sm font-semibold leading-tight text-white",children:v[t%v.length].title}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("span",{className:"text-xs text-white/80",children:v[t%v.length].featuredText||"Featured hero pick"})})]})})]})},e.id))})})}},83581:(e,t,s)=>{"use strict";s.d(t,{FeaturedProductCard:()=>w});var a=s(95155),i=s(12115),r=s(15239),o=s(52619),l=s.n(o),n=s(10512),c=s(83457),d=s(3998),u=s(17740),p=s(94205),h=s(22663),m=s(90151),x=s(79630),g=s(10196),f=s(13408),v=s(3390);let b=["Best Seller","Priority Push","Staff Pick"];function w(e){let{id:t,title:s,categories:o=[],price:w,compareAtPrice:y,images:j,onSale:N=!1,slug:k,backgroundColor:A,href:C,variants:P=[],variations:M}=e,S=C||"/products/".concat(k),q=j&&j.length>0?j[0]:null,z=function(e){let t=0;for(let s=0;s<e.length;s++)t=Math.imul(31,t)+e.charCodeAt(s)|0;let s=Math.abs(t)%b.length;return b[s]}(t),[E,I]=(0,i.useState)(!1),[V,T]=(0,i.useState)(!1),[O,D]=(0,i.useState)(!1),[L,_]=(0,i.useState)(!1),[B,H]=(0,i.useState)(null),[Z,$]=(0,i.useState)(!1),[R,F]=(0,i.useState)(!1),{isMargeGranolaSite:Q}=(0,g.aO)(),U=(0,i.useMemo)(()=>
1{if(!Q)return!1;let e=window.location.hostname.toLowerCase();return!e.includes("plantperfect")&&(!!e.includes("margegranola")||Q)},[Q]),{addToCart:G}=(0,u._)(),{addToWishlist:K,isInWishlist:W,wishlists:X,createWishlist:Y,removeFromWishlist:J}=(0,p.n)(),ee=W(t),et=(0,i.useMemo)(()=>({id:t,title:s,slug:k,price:w,compareAtPrice:y,images:j,variants:P,variations:M,description:{},shortDescription:"",trackQuantity:!1,quantity:1,status:"ACTIVE",isDigital:!1,requiresShipping:!0,onSale:!!N,isFeatured:!0,isNewArrival:!1,createdAt:new Date(0).toISOString(),updatedAt:new Date(0).toISOString(),categories:o}),[t,s,k,w,y,j,P,M,N,o]),es=U&&L&&!!B,ea=async e=>{if(e.preventDefault(),e.stopPropagation(),V)return;let a=/bundle/i.test("".concat(s," ").concat(k)),i=(0,f.je)(et);if(U&&a&&(null==i?void 0:i.length)){H({groups:i,selections:i.map(e=>e.values[0]||""),flavorSkuByName:{}}),_(!0),$(!0),(0,v.w9)(i.flatMap(e=>e.values),k).then(e=>{H(t=>t?{...t,flavorSkuByName:e}:t)}).catch(e=>{console.error("Error resolving bundle pouch SKUs:",e)}).finally(()=>$(!1));return}let r=P.filter(e=>e.isActive),o=(0,m.Yd)({slug:k,variations:M});if(U&&!o&&r.length>1)return void D(!0);let l=o?void 0:1===r.length||!U&&r.length>1?r[0]:void 0;try{var n;T(!0);let e=(0,m.QQ)(k,M),a=null!=o?o:null==l?void 0:l.id,i=a&&(0,m.tx)({slug:k,variations:M})?(0,m.ak)({slug:k,title:s,unitPrice:w}):void 0;await G({productId:t,variantId:a,quantity:e,product:{id:t,title:s,slug:k,price:null!=(n=null==l?void 0:l.price)?n:w,compareAtPrice:y,images:j,trackQuantity:!1,quantity:1},variant:i||(l?{id:l.id,title:l.title,sku:l.sku,price:l.price,options:l.options}:void 0)})}catch(e){console.error("Error adding to cart:",e)}finally{T(!1)}},ei=async e=>{if(!V)try{var a;T(!0),await G({productId:t,variantId:e.id,quantity:1,product:{id:t,title:s,slug:k,price:null!=(a=e.price)?a:w,compareAtPrice:y,images:j,trackQuantity:!1,quantity:1},variant:{id:e.id,title:e.title,sku:e.sku,price:e.price,options:e.options}}),D(!1)}catch(e){console.error("Error adding variant to cart:",e)}finally{T(!1)}},er=async()=>{if(!B||V)return;let{groups:e,selections:a,flavorSkuByName:i}=B;if(a.length!==e.length||a.some(e=>!e))return void h.oR.error("Please select all pouch options.");let r=(0,f.uK)(et,e,a);if(!r)return void h.oR.error("Selected bundle combination is not available.");let o=a.find(e=>!i[(0,v.ns)(e)]);if(o)return void h.oR.error('Unable to resolve required pouch SKU for "'.concat(o,'". Please try again.'));let l=a.map(e=>({name:e,code:(0,v.HX)(e),sku:i[(0,v.ns)(e)]})),n=l.map(e=>e.code).sort((e,t)=>e.localeCompare(t)).join("|");try{var c;T(!0),await G({productId:t,variantId:r.id,quantity:1,product:{id:t,title:s,slug:k,price:null!=(c=r.price)?c:w,compareAtPrice:y,images:j,trackQuantity:!1,quantity:1},variant:{id:r.id,title:r.title,sku:r.sku,price:r.price,options:r.options},bundleSelections:l,bundleSignature:n}),H(null),_(!1)}catch(e){console.error("Error adding bundle to cart:",e)}finally{T(!1)}},eo=async e=>{if(e.preventDefault(),e.stopPropagation(),!R)try{if(F(!0),ee){let e=X.flatMap(e=>e.items).find(e=>e.productId===t);e?await J(e.id):h.oR.error("Item not found in wishlist")}else{let e=X.find(e=>e.isDefault);if(e)await K({wishlistId:e.id,productId:t,quantity:1,product:{id:t,title:s,slug:k,price:w,compareAtPrice:y,images:j,isActive:!0,inStock:!0,status:"ACTIVE",quantity:1}});else try{let e=await Y({name:"My Wishlist"});await K({wishlistId:e.wishlist.id,productId:t,quantity:1,product:{id:t,title:s,slug:k,price:w,compareAtPrice:y,images:j,isActive:!0,inStock:!0,status:"ACTIVE",quantity:1}})}catch(e){console.error("Error creating wishlist:",e),h.oR.error("Failed to create wishlist")}}}catch(e){console.error("Error toggling wishlist:",e)}finally{F(!1)}},el=A?"relative aspect-square overflow-hidden":"relative aspect-square overflow-hidden bg-shop-canvas/50";return(0,a.jsxs)("div",{className:"group relative flex h-full flex-col overflow-hidden bg-card font-sans transition-all duration-300 hover:shadow-xl",onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),children:[(0,a.jsxs)("div",{className:"shrink-0 ".concat(el),style:A?{backgroundColor:A}:void 0,children:[!Q&&(0,a.jsx)("span",{className:"absolute left-4 top-4 z-20 max-w-[min(100%-2rem,calc(100%-5.5rem))] truncate rounded-md bg-[#2B1E16] px-2.5 py-1.5 font-sans text-xs font-bold tracking-tight text-white md:text-sm",title:z,children:z}),(0,a.jsxs)("div",{className:"pointer-events-auto absolute right-4 top-[4.25rem] z-10 flex flex-col gap-3 transition-all duration-300 sm:top-20 ".concat(E?"translate-x-0 opacity-100":"translate-x-4 opacity-0"),children:[(0,a.jsx)(d.$,{size:"sm",onClick:ea,disabled:V,className:"h-10 w-10 cursor-pointer rounded-full bg-white/90 p-0 text-shop-accent-2 shadow-lg transition-all duration-200 hover:bg-white hover:text-shop-navbar-foreground disabled:opacity-50",title:V?"Adding...":"Add to Cart",children:V?(0,a.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"}):(0,a.jsx)(n.A,{className:"h-4 w-4"})}),(0,a.jsx)(d.$,{size:"sm",onClick:eo,disabled:R,className:"h-10 w-10 cursor-pointer rounded-full p-0 shadow-lg transition-all duration-200 disabled:opacity-50 ".concat(ee?"bg-destructive/10 text-destructive hover:bg-destructive/15":"bg-white/90 text-shop-accent-2 hover:bg-white hover:text-shop-navbar-foreground"),title:ee?"Remove from wishlist":"Add to wishlist",children:R?(0,a.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"}):(0,a.jsx)(c.A,{className:"h-4 w-4 ".concat(ee?"fill-current text-destructive":"text-shop-accent-2")})})]}),(0,a.jsx)("div",{className:"flex h-full items-center justify-center p-4",children:(0,a.jsx)("div",{className:"relative h-full w-full",children:q?(0,a.jsx)(r.default,{src:q.url,alt:q.altText||s,fill:!0,className:"object-contain",unoptimized:q.url.includes("minio-wc08
1sw004okowcococc4404k")||q.url.includes("sslip.io"),sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}):(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-lg bg-muted",children:(0,a.jsx)("span",{className:"text-xl text-muted-foreground",children:"no image found"})})})}),(0,a.jsx)("div",{className:"absolute right-4 top-4 z-10 transition-all duration-300 ".concat(E?"translate-x-0 opacity-100":"translate-x-4 opacity-0"),children:(0,a.jsx)(l(),{href:S,children:(0,a.jsx)(d.$,{size:"sm",className:"cursor-pointer rounded-sm bg-shop-primary px-6 py-2 text-sm font-medium text-white shadow-lg transition-all duration-200 hover:bg-shop-primary/90 hover:text-white hover:shadow-xl",children:"View Details"})})})]}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col p-4 text-center transition-all duration-300 ".concat(E?"bg-shop-navbar-foreground text-shop-topbar-foreground":"bg-card text-foreground"),children:[(0,a.jsx)("h3",{className:"font-heading mb-2 text-lg font-medium transition-colors duration-300 ".concat(E?"text-shop-topbar-foreground":"text-shop-navbar-foreground"),children:s}),(0,a.jsx)("p",{className:"mb-2 text-sm transition-colors duration-300 ".concat(E?"text-shop-topbar-foreground/90":"text-muted-foreground"),children:o.length>0?o.map(e=>e.name).join(", "):"Uncategorized"}),N&&y?(0,a.jsxs)("div",{className:"flex flex-col items-center gap-1 transition-colors duration-300 ".concat(E?"text-shop-topbar-foreground":""),children:[(0,a.jsxs)("span",{className:"text-base font-medium ".concat(E?"text-shop-topbar-foreground":"text-shop-primary"),children:["$",w.toFixed(2)]}),(0,a.jsxs)("span",{className:"text-sm line-through ".concat(E?"text-shop-topbar-foreground/70":"text-muted-foreground"),children:["$",y.toFixed(2)]})]}):(0,a.jsxs)("p",{className:"text-base font-medium transition-colors duration-300 ".concat(E?"text-shop-topbar-foreground":"text-shop-navbar-foreground"),children:["$",w.toFixed(2)]})]}),(0,a.jsx)(x.x,{open:U&&(O||es),onOpenChange:e=>{e?L||D(!0):(D(!1),_(!1),B?window.setTimeout(()=>H(null),220):H(null))},productTitle:s,variants:P.filter(e=>e.isActive),onSelectVariant:e=>void ei(e),optionGroups:U?null==B?void 0:B.groups:void 0,optionSelections:U?null==B?void 0:B.selections:void 0,onOptionSelectionChange:(e,t)=>
1{H(s=>{if(!s)return s;let a=[...s.selections];return a[e]=t,{...s,selections:a}})},onConfirmOptions:U?()=>void er():void 0,confirmDisabled:!!U&&Z})]})}},99051:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(71847).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])}},e=>{e.O(0,[3459,4909,5376,5536,2663,9605,4560,2619,4127,6258,9568,1356,2760,6274,2466,8569,435,4258,5262,7103,7373,8441,1255,7358],()=>e(e.s=7959)),_N_E=e.O()}]);

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.