PageSourceSearch

https://www.eufymake.com/_next/static/chunks/5096.9d77f8a6db66ac65.js

js eufymake.com collected 2026-09-24 19:46:20 UTC 25,890 bytes, 1 lines download raw bytes

1!function(){try{var l="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new l.Error).stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="b8894908-2fe6-4a27-9e67-20eaea8d8266",l._sentryDebugIdIdentifier="sentry-dbid-b8894908-2fe6-4a27-9e67-20eaea8d8266")}catch(l){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5096],{85096:function(l,e,i){i.r(e),i.d(e,{default:function(){return b}});var t=i(85893),n=i(67294),o=i(59081),a=i(18712),d=i(81875),s=i(90482);function r(l){let e,{amount:i,baseAmount:t,currencyCode:n,currencyDisplay:a,locale:d,maximumFractionDigits:r,minimumFractionDigits:u,removeTrailingZeros:c,customFormatPrice:v}=l;if("undefined"==typeof Intl)return{price:"".concat(o.K5[d]).concat(i),basePrice:"".concat(o.K5[d]).concat(t),discount:"".concat(o.K5[d]).concat(t-i||0)};let m=t>i,p=null,f=(0,o.Cg)(d);if(f){let l=new Intl.NumberFormat(f,{style:"percent"});p=m?l.format((t-i)/t):null}if(m){let l=new s.Z(t).sub(i||0).toNumber();e=v?v({amount:l,locale:d}):(0,o.T4)({amount:l,currencyDisplay:a,currencyCode:n||"USD",locale:d,maximumFractionDigits:2})}return{price:v?v({amount:i,locale:d}):(0,o.T4)({amount:i,currencyCode:n,currencyDisplay:a,locale:d,removeTrailingZeros:c}),basePrice:m?v?v({amount:t,locale:d}):(0,o.T4)({amount:t,currencyCode:n,currencyDisplay:a,locale:d,maximumFractionDigits:r,minimumFractionDigits:u,removeTrailingZeros:c}):void 0,discount:p,discountAmount:e}}let u="image",c="product_shelf",v=l=>{var e,i,t,n,o,a;let d=null==l?void 0:l.sku,s=null==l?void 0:l.variants,r=null==s?void 0:s.find(l=>(null==l?void 0:l.sku)===d);return{imageUrl:(null==r?void 0:null===(e=r.image)||void 0===e?void 0:e.url)||(null==s?void 0:null===(t=s[0])||void 0===t?void 0:null===(i=t.image)||void 0===i?void 0:i.url)||"",altText:(null==r?void 0:null===(n=r.image)||void 0===n?void 0:n.altText)||(null==s?void 0:null===(a=s[0])||void 0===a?void 0:null===(o=a.image)||void 0===o?void 0:o.altText)||(null==l?void 0:l.custom_name)||(null==l?void 0:l.title)||""}};function m(l){let e=null==l?void 0:l.compareAtPrice;return"number"==typeof e?e:Number(null==e?void 0:e.amount)||0}let p=l=>{var e,i,d,s,p,f,x,h,g;let{data:b,configuration:_}=l,{isDisplayBackImage:y=!1,itemShape:k,metafields:w,isTopTag:j=!1,isShowTag:N,isShowOriginalPrice:S,isShowShortTitle:B=!1,formatPrice:C,renderOriginalPrice:M,renderPriceLabel:F,renderPrice:P}=_||{},{locale:I="es",copyWriting:L,currencyDisplay:z}=(0,a.useAiuiContext)(),{discounts:D,discountsCopy:T,common:R}=w||{},A=(0,n.useRef)(null),[E,H]=(0,n.useState)([]),[U,$]=(0,n.useState)(""),[W,V]=(0,n.useState)(!1),[O,q]=(0,n.use
1State)(!1),K=(l,e,i,t)=>{var n;let{primaryFun:o,onAddCart:a,onBuyNow:d,onLearnMore:s,event:r}=_||{};if(o){if("AddCart"===o&&a)return a(l,e+1,i,t);if("BuyNow"===o&&d)return d(l,e+1,i,t);if("LearnMore"===o&&s)return s(l,e+1,i,t)}null==r||null===(n=r.primaryButton)||void 0===n||n.call(r,l,e+1,i,t)},X=(l,e,i,t)=>{var n;let{secondaryFun:o,onAddCart:a,onBuyNow:d,onLearnMore:s,event:r}=_||{};if(o){if("AddCart"===o&&a)return a(l,e+1,i,t);if("BuyNow"===o&&d)return d(l,e+1,i,t);if("LearnMore"===o&&s)return s(l,e+1,i,t)}null==r||null===(n=r.secondaryButton)||void 0===n||n.call(r,l,e+1,i,t)},Z=(0,n.useMemo)(()=>{var l;let e=(null==b?void 0:b.variants)||[];return e.length?(null==b?void 0:b.sku)&&(null==e?void 0:null===(l=e.find)||void 0===l?void 0:l.call(e,l=>(null==l?void 0:l.sku)===(null==b?void 0:b.sku)))||e[0]:void 0},[null==b?void 0:b.sku,null==b?void 0:b.variants]),Q=(null==Z?void 0:null===(i=Z.id)||void 0===i?void 0:null===(e=i.split)||void 0===e?void 0:e.call(i,"/"))||[],G=null==Q?void 0:Q[(null==Q?void 0:Q.length)-1],J=!(null==Z?void 0:Z.availableForSale)||(null==Z?void 0:null===(d=Z.price)||void 0===d?void 0:d.amount)===9999999.99||(null==Z?void 0:Z.price)===9999999.99,Y=null==Z?void 0:null===(s=Z.coupons)||void 0===s?void 0:s[0],ll=!!(S&&Y),le=(null==b?void 0:null===(p=b.price)||void 0===p?void 0:p.currencyCode)||"USD",li=m(Z),lt=ll?Number(null==Z?void 0:Z.price)-Number(null==Y?void 0:Y.fixed_value):null==Z?void 0:Z.price,ln=ll?Math.max(li,(null==Z?void 0:Z.price)||0):li,{price:lo,basePrice:la,discount:ld,discountAmount:ls}=(0,n.useMemo)(()=>r({locale:I,amount:lt,baseAmount:ln,currencyCode:le,currencyDisplay:z,customFormatPrice:C}),[le,I,lt,ln,C]),{imageUrl:lr,altText:lu}=v(b),lc=(null==b?void 0:b.custom_name)||(null==b?void 0:b.title),lv=B&&(null==Z?void 0:null===(x=Z.metafields)||void 0===x?void 0:null===(f=x.infos)||void 0===f?void 0:f.page_short_title)||lc,lm=(null==b?void 0:b.custom_description)||(null==b?void 0:b.description),lp=()=>{let l=ls||"",e=l.match(/^(.*?)(\d[\d.,]*)(.*)$/);if(e){let[,l,i,t]=e,n=i;return i.endsWith(".00")?n=i.replace(/\.00$/,""):i.endsWith(",00")&&(n=i.replace(/,00$/,"")),"".concat(l).concat(n).concat(t)}return l||ld||""};(0,n.useEffect)(()=>{var l,e,i,t,n,o,a;let d=[];if(ld||ls){let l="".concat(lp()," ").concat((null==D?void 0:D.off)||(null==R?void 0:null===(a=R.coupon)||void 0===a?void 0:a.off)||"");$(l),d.push(l)}let s=null==b?void 0:null===(o=b.tags)||void 0===o?void 0:null===(n=o.filter)||void 0===n?void 0:null===(t=n.call(o,l=>{var e;return null==l?void 0:null===(e=l.startsWith)||void 0===e?void 0:e.call(l,"CLtag")}))||void 0===t?void 0:null===(i=t.map)||void 0===i?void 0:null===(e=i.call(t,l=>{var e;return null==l?void 0:null===(e=l.replace)||void 0===e?void 0:e.call(l,"CLtag:","")}))||void 0===e?void 0:null===(l=e.slice)||void 0===l?void 0:l.call(e,0,ld?1:2);H(d.concat(s))},[null==b?void 0:b.tags,ld,ls,null==D?void 0:D.off,null==T?void 0:T.off]);let lf=null==b?void 0:b.custom_bg_image,lx=null==b?void 0:b.custom_theme;return(0,t.jsx)("div",{ref:A,className:(0,o.cn)("box-border w-full cursor-pointer overflow-hidden duration-300","rounded-box","desktop:aspect-h-[384] desktop:aspect-w-[316] lg-desktop:aspect-h-[480] lg-desktop:aspect-w-[404]","aspect-h-[360] aspect-w-[296] relative laptop:aspect-h-[360] laptop:aspect-w-[288]","shelf-display-item md-tablet:h-[360px]",lf?"bg-cover bg-center bg-no-repeat":"bg-background tablet:hover:bg-info-white",{"aiui-dark":"dark"===lx}),style:lf?{backgroundImage:"url(".concat(lf,")")}:void 0,children:y?(0,t.jsx)("div",{className:"absolute inset-0 box-border overflow-hidden",children:(0,t.jsxs)("div",{className:"relative inset-0 size-full",children:[(0,t.jsx)(o.t,{source:lr,alt:lu,className:(0,o.cn)("flex h-full justify-center object-cover [&_img]:w-auto",{"opacity-0":lf})}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 box-border overflow-hidden p-4 desktop:p-6",children:[N&&(null==E?void 0:E.length)>0?(0,t.jsx)("div",{className:"mb-1 box-border flex h-8 flex-wrap gap-1 overflow-hidden",children:null==E?void 0:null===(h=E.map)||void 0===h?void 0:h.call(E,(l,e)=>(0,t.jsx)(o.Ct,{className:"shelf-items-tag",variant:"fill",children:l},e))}):null,lv?(0,t.jsx)(o.X6,{as:"h3",title:lv||"",size:2,className:"shelf-display-product-title line-clamp-2 h-12 text-info-primary lg-desktop:h-[58px]",html:lv||""}):null,lm?(0,t.jsx)(o.xv,{size:2,className:"shelf-display-product-description line-clamp-1 h-[20px] text-sm text-info-primary desktop:h-[24px] desktop:text-base lg-desktop:h-[28px] lg-desktop:text-lg",html:lm||""}):null,(0,t.jsx)("div",{className:"mb-2 mt-4 flex items-center",children:P?P(b,{price:lo,basePrice:la,discount:ld,discountAmount:ls,variant:Z,coupon:Y,isSoldOut:J}):J?(0,t.jsx)("div",{className:"text-xl font-bold text-info-primary tablet:text-2xl",children:null==L?void 0:L.soldOutText}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"final-price text-xl font-bold text-info-primary tablet:text-xl",children:(null==Z?void 0:Z.availableForSale)&&lo||""}),M?M(b,{price:lo,basePrice:la,discount:ld,discountAmount:ls}):la&&(0,t.jsx)("div",{className:"origin-price ml-1 text-lg font-bold text-info-secondary line-through tablet:text-xl",children:(null==Z?void 0:Z.availableForSale)&&la||""})]})}
1),(0,t.jsxs)("div",{className:(0,o.cn)("shelf-flex-button-group","flex items-center gap-2 lg-desktop:gap-3","vertical"===_.direction?"w-full flex-col":""),children:[(null==_?void 0:_.secondaryButton)?(0,t.jsx)(o.zx,{disabled:J&&(null==_?void 0:_.secondaryFun)!=="LearnMore",variant:"secondary",href:null==b?void 0:b.custom_secondary_link,as:(null==b?void 0:b.custom_secondary_link)?"a":"button",onClick:()=>{!O&&(null!=b&&b.custom_secondary_link||(q(!0),X(b,null==_?void 0:_.index,_,Y),q(!1)))},className:"vertical"===_.direction?"w-full":"",children:(null==_?void 0:_.secondaryButton)||""}):null,(null==_?void 0:_.primaryButton)?(0,t.jsx)(o.zx,{disabled:J&&(null==_?void 0:_.primaryFun)!=="LearnMore",variant:"primary",href:null==b?void 0:b.custom_primary_link,as:(null==b?void 0:b.custom_primary_link)?"a":"button",onClick:()=>{!W&&(null!=b&&b.custom_primary_link||(V(!0),K(b,null==_?void 0:_.index,_,Y),V(!1)))},className:"vertical"===_.direction?"w-full":"",children:(null==_?void 0:_.primaryButton)||""}):null]})]})]})}):(0,t.jsxs)("div",{className:"absolute inset-0 box-border flex flex-col justify-between overflow-hidden p-4 desktop:p-6",children:[U&&j&&(0,t.jsx)(o.Ct,{className:"shelf-prices-tag absolute left-4 top-4 z-10",variant:"fill",children:U||""}),(0,t.jsx)("div",{className:(0,o.cn)("shelf-display-item-image relative mb-2 inline-block h-[140px] w-full flex-1 overflow-hidden lg-desktop:h-[195px]",{"opacity-0":lf}),children:(0,t.jsx)("a",{"aria-label":lc,target:null==_?void 0:_.target,href:(0,o.N$)("".concat("us"!==I&&I?"/".concat(I):"","/products/").concat(null==b?void 0:b.handle,"?variant=").concat(G),"".concat(u,"_").concat(c)),onClick:()=>{(0,o.DU)({event:"ga4Event",event_name:"select_item",event_parameters:{page_group:"Home Page",item_list_name:"Home_Page_Bundle",items:[{item_id:(null==b?void 0:b.sku)||(null==Z?void 0:Z.sku),item_name:null==b?void 0:b.name,item_variant:null==Z?void 0:Z.name,price:null==Z?void 0:Z.price,index:(null==_?void 0:_.index)+1}]}})},children:(0,t.jsx)(o.t,{source:lr,alt:lu,className:"flex h-full justify-center object-cover [&_img]:w-auto"})})}),(0,t.jsxs)("div",{className:(0,o.cn)("flex flex-col items-start justify-center"),children:[N&&(0,t.jsx)("div",{className:"mb-1 box-border flex h-8 flex-wrap gap-1 overflow-hidden",children:(null==E?void 0:E.length)>0&&(null==E?void 0:null===(g=E.map)||void 0===g?void 0:g.call(E,(l,e)=>(0,t.jsx)(o.Ct,{className:"shelf-items-tag",variant:"fill",children:l},e)))}),lv?(0,t.jsx)(o.X6,{as:"h3",title:lv||"",size:2,className:"shelf-display-product-title mb-1 line-clamp-2 h-[48px] text-info-primary lg-desktop:h-[58px]",html:lv||""}):null,lm?(0,t.jsx)(o.xv,{size:2,className:"shelf-display-product-description line-clamp-1 h-5 text-sm text-info-primary desktop:h-6 desktop:text-base lg-desktop:h-[26px] lg-desktop:text-lg",html:lm||""}):null,(0,t.jsx)("div",{className:"mb-2 mt-5 flex items-center",children:P?P(b,{price:lo,basePrice:la,discount:ld,discountAmount:ls,variant:Z,coupon:Y,isSoldOut:J}):J?(0,t.jsx)("div",{className:"text-xl font-bold text-info-primary tablet:text-2xl",children:null==L?void 0:L.soldOutText}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"final-price text-xl font-bold text-info-primary tablet:text-xl",children:(null==Z?void 0:Z.availableForSale)&&lo||""}),M?M(b,{price:lo,basePrice:la,discount:ld,discountAmount:ls}):la&&(0,t.jsx)("div",{className:"origin-price ml-1 text-lg font-bold text-info-secondary line-through tablet:text-xl",children:(null==Z?void 0:Z.availableForSale)&&la||""})]})}),!P&&(null==F?void 0:F(b,Z)),(0,t.jsxs)("div",{className:(0,o.cn)("shelf-flex-button-group","flex items-center gap-2 lg-desktop:gap-3","vertical"===_.direction?"w-full flex-col":""),children:[(null==_?void 0:_.secondaryButton)?(0,t.jsx)(o.zx,{disabled:J&&(null==_?void 0:_.secondaryFun)!=="LearnMore",variant:"secondary",href:null==b?void 0:b.custom_secondary_link,as:(null==b?void 0:b.custom_secondary_link)?"a":"button",onClick:()=>{!O&&(null!=b&&b.custom_secondary_link||(q(!0),X(b,null==_?void 0:_.index,_,Y),q(!1)))},className:"vertical"===_.direction?"w-full":"",children:(null==_?void 0:_.secondaryButton)||""}):null,(null==_?void 0:_.primaryButton)?(0,t.jsx)(o.zx,{disabled:J&&(null==_?void 0:_.primaryFun
1)!=="LearnMore",variant:"primary",href:null==b?void 0:b.custom_primary_link,as:(null==b?void 0:b.custom_primary_link)?"a":"button",onClick:()=>{!W&&(null!=b&&b.custom_primary_link||(V(!0),K(b,null==_?void 0:_.index,_,Y),V(!1)))},className:"vertical"===_.direction?"w-full":"",children:(null==_?void 0:_.primaryButton)||""}):null]})]})]})},(null==b?void 0:b.id)||(null==b?void 0:b.handle))},f=l=>{var e,i,d,s,p,f,x,h;let{data:g,configuration:b}=l,{isDisplayBackImage:_=!1,itemLength:y,metafields:k,isTopTag:w=!1,isShowTag:j,isShowOriginalPrice:N,isShowShortTitle:S=!1,formatPrice:B,renderOriginalPrice:C,renderPriceLabel:M,renderPrice:F}=b||{},{locale:P="es",copyWriting:I,currencyDisplay:L}=(0,a.useAiuiContext)(),{discounts:z,discountsCopy:D}=k||{},T=(0,n.useRef)(null),[R,A]=(0,n.useState)([]),[E,H]=(0,n.useState)(""),[U,$]=(0,n.useState)(!1),[W,V]=(0,n.useState)(!1),O=(l,e,i,t)=>{var n;let{primaryFun:o,onAddCart:a,onBuyNow:d,onLearnMore:s,event:r}=b||{};if(o){if("AddCart"===o&&a)return a(l,e+1,i,t);if("BuyNow"===o&&d)return d(l,e+1,i,t);if("LearnMore"===o&&s)return s(l,e+1,i,t)}null==r||null===(n=r.primaryButton)||void 0===n||n.call(r,l,e+1,i,t)},q=(l,e,i,t)=>{var n;let{secondaryFun:o,onAddCart:a,onBuyNow:d,onLearnMore:s,event:r}=b||{};if(o){if("AddCart"===o&&a)return a(l,e+1,i,t);if("BuyNow"===o&&d)return d(l,e+1,i,t);if("LearnMore"===o&&s)return s(l,e+1,i,t)}null==r||null===(n=r.secondaryButton)||void 0===n||n.call(r,l,e+1,i,t)},K=(0,n.useMemo)(()=>{let l=(null==g?void 0:g.variants)||[];return l.length?(null==g?void 0:g.sku)&&l.find(l=>(null==l?void 0:l.sku)===(null==g?void 0:g.sku))||l[0]:void 0},[null==g?void 0:g.sku,null==g?void 0:g.variants]),X=(null==K?void 0:null===(i=K.id)||void 0===i?void 0:null===(e=i.split)||void 0===e?void 0:e.call(i,"/"))||[],Z=null==X?void 0:X[(null==X?void 0:X.length)-1],Q=!(null==K?void 0:K.availableForSale)||(null==K?void 0:null===(d=K.price)||void 0===d?void 0:d.amount)===9999999.99||(null==K?void 0:K.price)===9999999.99,G=null==K?void 0:null===(s=K.coupons)||void 0===s?void 0:s[0],J=!!(N&&G),Y=(null==g?void 0:null===(p=g.price)||void 0===p?void 0:p.currencyCode)||"USD",ll=m(K),le=J?null==G?void 0:G.variant_price4wscode:null==K?void 0:K.price,li=J?Math.max(ll,(null==K?void 0:K.price)||0):ll,{price:lt,basePrice:ln,discount:lo,discountAmount:la}=(0,n.useMemo)(()=>r({locale:P,amount:le,baseAmount:li,currencyCode:Y,currencyDisplay:L,customFormatPrice:B}),[Y,P,le,li,B]),{imageUrl:ld,altText:ls}=v(g),lr=(null==g?void 0:g.custom_name)||(null==g?void 0:g.title),lu=S&&(null==K?void 0:null===(x=K.metafields)||void 0===x?void 0:null===(f=x.infos)||void 0===f?void 0:f.page_short_title)||lr,lc=(null==g?void 0:g.custom_description)||(null==g?void 0:g.description);(0,o.Hf)(T,{componentType:u,componentName:c,componentTitle:lr,componentDescription:lc,position:(null==b?void 0:b.index)+1});let lv=async()=>{if(!U&&(null==g||!g.custom_primary_link)){$(!0);try{await O(g,null==b?void 0:b.index,b,G)}finally{$(!1)}}},lm=async()=>{if(!W&&(null==g||!g.custom_secondary_link)){V(!0);try{await q(g,null==b?void 0:b.index,b,G)}finally{V(!1)}}},lp=()=>y>=2?{boxItem:"lg-desktop:max-w-[401px] desktop:max-w-[292px] max-w-full",imgItem:"m-tablet:m-auto lg-desktop:max-w-[330px] lg-desktop:max-h-[330px] desktop:max-w-[260px] desktop:max-h-[260px] max-w-[138px] max-h-[138px]",wrap:"lg-desktop:aspect-w-[824] lg-desktop:aspect-h-[480] desktop:aspect-w-[648] desktop:aspect-h-[380] laptop:aspect-w-[440] laptop:aspect-h-[356] tablet:aspect-w-[346] tablet:aspect-h-[360] md-tablet:w-full"}:{boxItem:"lg-desktop:max-w-[401px] desktop:max-w-[292px] laptop:max-w-[289px] max-w-[262px]",imgItem:"md-tablet:m-auto lg-desktop:max-w-[450px] lg-desktop:max-h-[450px] desktop:max-w-[332px] desktop:max-h-[332px] max-w-[312px] max-h-[312px]",wrap:"lg-desktop:aspect-w-[1664] lg-desktop:aspect-h-[480] desktop:aspect-w-[1312] desktop:aspect-h-[380] laptop:aspect-w-[896] laptop:aspect-h-[356] tablet:aspect-w-[704] tablet:aspect-h-[360] md-tablet:w-full"},lf=()=>{let l=la||"",e=l.match(/^(.*?)(\d[\d.,]*)(.*)$/);if(e){let[,l,i,t]=e,n=i;return i.endsWith(".00")?n=i.replace(/\.00$/,""):i.endsWith(",00")&&(n=i.replace(/,00$/,"")),"".concat(l).concat(n).concat(t)}return l||lo||""};(0,n.useEffect)(()=>
1{var l,e,i,t,n,o;let a=[];if(lo||la){let l="".concat(lf()," ").concat((null==z?void 0:z.off)||(null==D?void 0:D.off)||"");a.push(l)}let d=null==g?void 0:null===(o=g.tags)||void 0===o?void 0:null===(n=o.filter)||void 0===n?void 0:null===(t=n.call(o,l=>{var e;return null==l?void 0:null===(e=l.startsWith)||void 0===e?void 0:e.call(l,"CLtag")}))||void 0===t?void 0:null===(i=t.map)||void 0===i?void 0:null===(e=i.call(t,l=>{var e;return null==l?void 0:null===(e=l.replace)||void 0===e?void 0:e.call(l,"CLtag:","")}))||void 0===e?void 0:null===(l=e.slice)||void 0===l?void 0:l.call(e,0,lo?1:2);A(a.concat(d))},[null==g?void 0:g.tags,lo,la,null==z?void 0:z.off,null==D?void 0:D.off]);let lx=null==g?void 0:g.custom_bg_image,lh=null==g?void 0:g.custom_theme;return(0,t.jsx)("div",{ref:T,className:(0,o.cn)(lp().wrap,"rounded-box","shelf-display-item","duration-300","relative box-border w-full cursor-pointer overflow-hidden md-tablet:h-[360px]",lx?"bg-cover bg-center bg-no-repeat":"bg-container-secondary-1 tablet:hover:bg-info-white",{"aiui-dark":"dark"===lh}),style:lx?{backgroundImage:"url(".concat(lx,")")}:void 0,children:(0,t.jsxs)("div",{className:(0,o.cn)(y>=2?"flex flex-col justify-between desktop:gap-12 desktop:flex-row desktop:justify-center desktop:items-center":"flex justify-center items-center gap-6 md-tablet:flex-col","absolute inset-0 box-border overflow-hidden p-4 desktop:p-6"),children:[(0,t.jsx)("div",{className:(0,o.cn)(lp().imgItem,"relative mb-1 overflow-hidden desktop:mb-0",{"opacity-0":lx}),children:(0,t.jsx)("a",{"aria-label":lr,target:null==b?void 0:b.target,href:(0,o.N$)("".concat("us"!==P&&P?"/".concat(P):"","/products/").concat(null==g?void 0:g.handle,"?variant=").concat(Z),"".concat(u,"_").concat(c)),onClick:()=>{(0,o.DU)({event:"ga4Event",event_name:"select_item",event_parameters:{page_group:"Home Page",item_list_name:"Home_Page_Bundle",items:[{item_id:(null==g?void 0:g.sku)||(null==K?void 0:K.sku),item_name:null==g?void 0:g.name,item_variant:null==K?void 0:K.name,price:null==K?void 0:K.price,index:(null==b?void 0:b.index)+1}]}})},children:(0,t.jsx)(o.t,{source:ld,alt:ls,className:"flex h-full justify-center object-cover [&_img]:w-auto"})})}),(0,t.jsxs)("div",{className:(0,o.cn)("flex flex-col items-start justify-center",lp().boxItem),children:[j&&(0,t.jsx)("div",{className:"mb-1 box-border flex h-8 flex-wrap gap-1 overflow-hidden",children:(null==R?void 0:R.length)>0&&(null==R?void 0:null===(h=R.map)||void 0===h?void 0:h.call(R,(l,e)=>(0,t.jsx)(o.Ct,{className:"shelf-items-tag",variant:"fill",children:l},e)))}),lu?(0,t.jsx)(o.X6,{as:"h3",title:lu||"",size:2,className:"shelf-display-product-title mb-1 line-clamp-2 h-[48px] text-info-primary lg-desktop:h-[58px]",html:lu||""}):null,lc?(0,t.jsx)(o.xv,{size:2,className:"shelf-display-product-description line-clamp-1 h-5 text-sm text-info-primary desktop:h-6 desktop:text-base lg-desktop:h-[26px] lg-desktop:text-lg",html:lc||""}):null,(0,t.jsx)("div",{className:"mb-2 mt-5 flex items-center",children:F?F(g,{price:lt,basePrice:ln,discount:lo,discountAmount:la,variant:K,coupon:G,isSoldOut:Q}):Q?(0,t.jsx)("div",{className:"text-xl font-bold text-info-primary tablet:text-2xl",children:null==I?void 0:I.soldOutText}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"final-price text-xl font-bold text-info-primary tablet:text-xl",children:(null==K?void 0:K.availableForSale)&&lt||""}),C?C(g,{price:lt,basePrice:ln,discount:lo,discountAmount:la}):ln&&(0,t.jsx)("div",{className:"origin-price ml-1 text-lg font-bold text-info-secondary line-through tablet:text-xl",children:(null==K?void 0:K.availableForSale)&&ln||""})]})}),!F&&(null==M?void 0:M(g,K)),(0,t.jsxs)("div",{className:(0,o.cn)("shelf-flex-button-group","flex items-center gap-2 lg-desktop:gap-3","vertical"===b.direction?"w-full flex-col":""),children:[(null==b?void 0:b.secondaryButton)?(0,t.jsx)(o.zx,{disabled:Q&&(null==b?void 0:b.secondaryFun)!=="LearnMore",variant:"secondary",href:null==g?void 0:g.custom_secondary_link,as:(null==g?void 0:g.custom_secondary_link)?"a":"button",onClick:lm,loading:W,className:"vertical"===b.direction?"w-full":"",children:(null==b?void 0:b.secondaryButton)||""}):null,(null==b?void 0:b.primaryButton)?(0,t.jsx)(o.zx,{disabled:Q&&(null==b?void 0:b.primaryFun
1)!=="LearnMore",variant:"primary",href:null==g?void 0:g.custom_primary_link,as:(null==g?void 0:g.custom_primary_link)?"a":"button",onClick:lv,loading:U,className:"vertical"===b.direction?"w-full":"",children:(null==b?void 0:b.primaryButton)||""}):null]})]})]})},(null==g?void 0:g.id)||(null==g?void 0:g.handle))},x=l=>null==l?"default":String(l).replace(/[^a-zA-Z0-9_-]/g,"")||"default",h=()=>"shelf-display-".concat(Math.random().toString(36).slice(2,9)),g=n.forwardRef((l,e)=>{let{key:i,data:s,event:r,buildData:u,breakpoints:c,className:v="",recommendedData:m,target:g="_self",metafields:b,isDisplayGudgments:_=!1,isDisplayBackImage:y=!1,renderOriginalPrice:k,renderPriceLabel:w,renderPrice:j,onAddCart:N,onBuyNow:S,onLearnMore:B,formatPrice:C,...M}=l,{productsTab:F=[],productsCard:P=[],title:I,isShowTab:L=!0,tabShape:z="square",isShowTag:D=!1,isShowOriginalPrice:T=!0,isShowRecommendedCard:R=!1,...A}=s,[E,H]=(0,n.useState)(""),[U,$]=(0,n.useState)([]),W=(0,n.useRef)(!1),V=(0,n.useRef)(!1),O=(0,n.useRef)(null),q=(0,n.useRef)(h()),K=(0,d.ac)({query:"(max-width: 768px)"}),[X,Z]=(0,o.WO)({threshold:0}),Q=(null==U?void 0:U.length)<=1&&_,G=!K&&(null==U?void 0:U.length)<=2&&_,J=l=>{switch(l){case 1440:return G?null==U?void 0:U.length:4;case 1024:return G?null==U?void 0:U.length:3;default:return G?null==U?void 0:U.length:2.3}},Y=()=>{(0,o.DU)({event:"ga4Event",event_name:"view_item_list",event_parameters:{page_group:"Home Page",item_list_name:"Home_Page_Bundle",items:null==m?void 0:m.map((l,e)=>{var i,t;let n=(null==l?void 0:null===(i=l.variants)||void 0===i?void 0:i.find(e=>(null==e?void 0:e.sku)===(null==l?void 0:l.sku)))||(null==l?void 0:null===(t=l.variants)||void 0===t?void 0:t[0]);return{item_id:(null==l?void 0:l.sku)||(null==n?void 0:n.sku),item_name:null==l?void 0:l.name,item_variant:null==n?void 0:n.name,price:null==n?void 0:n.price,index:e+1}})}})},ll=(l,e)=>{var i,t,n;if(e){let l=null==m?void 0:null===(i=m.map)||void 0===i?void 0:i.call(m,l=>({...l,isShowRecommended:!0}));$((null==l?void 0:l.length)&&l||[])}else if(Array.isArray(l)){let e=null==l?void 0:null===(n=l.map)||void 0===n?void 0:null===(t=n.call(l,l=>{var e;let i=null==u?void 0:null===(e=u.products)||void 0===e?void 0:e.find(e=>(null==e?void 0:e.handle)===(null==l?void 0:l.handle));if(i)return{sku:l.sku,isShowRecommended:!1,custom_name:l.custom_name,custom_description:l.custom_description,custom_image:l.custom_image,custom_theme:l.custom_theme,custom_primary_link:(null==l?void 0:l.custom_primary_link)||"",custom_secondary_link:(null==l?void 0:l.custom_secondary_link)||"",custom_bg_image:(null==l?void 0:l.custom_bg_image)||"",...i}}))||void 0===t?void 0:t.filter(l=>l);$((null==e?void 0:e.length)&&e||[])}else $([])};(0,n.useImperativeHandle)(e,()=>O.current),(0,n.useEffect)(()=>{Z&&(null==m?void 0:m.length)&&!W.current&&(W.current=!0,Y())},[Z,m]),(0,n.useEffect)(()=>{if(!V.current){if(!V.current&&(null==m?void 0:m.length)&&(V.current=!0),L){let l=(null==F?void 0:F.find(l=>(null==l?void 0:l.tab)===E))||(null==F?void 0:F[0]);H((null==l?void 0:l.tab)||""),ll((null==l?void 0:l.data)||[],null==l?void 0:l.isShowRecommendedTab);return}ll(P,R)}},[m]),(0,n.useEffect)(()=>{if(L){let l=(null==F?void 0:F.find(l=>(null==l?void 0:l.tab)===E))||(null==F?void 0:F[0]);ll((null==l?void 0:l.data)||[],null==l?void 0:l.isShowRecommendedTab);return}ll(P,R)},[u]);let le=x(E),li="".concat(q.current,"-").concat(le);return(0,t.jsxs)("div",{ref:O,...M,className:(0,o.cn)("shelf-display-wrap w-full text-info-primary",v,{"aiui-dark":(null==s?void 0:s.theme)==="dark"}),children:[I&&(0,t.jsx)(a.Title,{data:{title:I}}),L&&(null==F?void 0:F.length)>0&&(0,t.jsx)(o.mQ,{value:E,onValueChange:l=>{let e=null==F?void 0:F.find(e=>(null==e?void 0:e.tab)===l);if(e){if(H(l),ll(e.data||[],e.isShowRecommendedTab),!e.isShowRecommendedTab){(0,o.DU)({event:"ga4Event",event_name:"component_click",event_parameters:{page_group:"Home Page",component_type:"image",component_name:"product_shelf",component_title:null==s?void 0:s.title,component_position:1,navigation:l}});return}Y()}},shape:"rounded"===z?"rounded":"square",children:(0,t.jsx)(o.dr,{children:F.map(l=>(0,t.jsx)(o.SP,{value:null==l?void 0:l.tab,children:(null==l?void 0:l.tab)||""},(null==l?void 0:l.id)||(null==l?void 0:l.tab)))})}),(0,t.jsx)("div",{ref:X,className:"tablet:min-h-[393px] laptop:min-h-[425px] desktop:min-h-[405px] lg-desktop:min-h-[409px]",children:(0,t.jsx)(a.SwiperBox,{data:{list:U,configuration:{...A,event:r,isShowTag:D,isShowOriginalPrice
1:T,target:g,metafields:b,itemLength:null==U?void 0:U.length,isDisplayBackImage:y,renderOriginalPrice:k,renderPriceLabel:w,renderPrice:j,onAddCart:N,onBuyNow:S,onLearnMore:B,formatPrice:C}},id:li,className:"".concat(L?"mt-6":""," shelf-display-swiper-box !overflow-visible"),itemClassName:G?"flex-1":"",Slide:G?f:p,breakpoints:c||{0:{spaceBetween:12,freeMode:!1,slidesPerView:1},374:{spaceBetween:12,freeMode:!1,slidesPerView:Q?1:1.2},768:{spaceBetween:Q?0:16,freeMode:!1,slidesPerView:J()},1024:{spaceBetween:Q?0:16,freeMode:!1,slidesPerView:J(1024)},1440:{spaceBetween:Q?0:16,freeMode:!1,slidesPerView:J(1440)}}},li)})]})});g.displayName="ShelfDisplay";var b=(0,a.withLayout)(g)}}]);

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.