PageSourceSearch

https://www.fnp.com/rrb/rr/fork/_next/static/chunks/1783-9fac69a4a6d418a3.js

js fnp.com collected 2026-09-24 09:00:23 UTC 86,994 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1783,6260,6501,7493,8084,4052],{95443:function(e,t,i){Promise.resolve().then(i.t.bind(i,85935,23)),Promise.resolve().then(i.bind(i,19721)),Promise.resolve().then(i.bind(i,86183)),Promise.resolve().then(i.bind(i,78480)),Promise.resolve().then(i.bind(i,81110)),Promise.resolve().then(i.bind(i,34850)),Promise.resolve().then(i.bind(i,91863)),Promise.resolve().then(i.bind(i,54167)),Promise.resolve().then(i.bind(i,28771)),Promise.resolve().then(i.bind(i,46847))},43404:function(e,t,i){"use strict";i.d(t,{iZ:function(){return c},pc:function(){return d},jw:function(){return u},xb:function(){return s}});var l=i(48960);i(68605),i(94678);var o=i(19400);function n(e){return!e||"object"!=typeof e||function(e){if(!e||"object"!=typeof e||Array.isArray(e))return!1;let t=Object.keys(e);return 2===t.length&&t.includes("status")&&t.includes("data")&&"number"==typeof e.status}(e)?null:e}i(61042);let r={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"Content-Type","Content-Type":"text/html;charset=UTF-8","X-made-with":"Made with <3 in India"};async function a(e,t,i){let l={...r,"x-device-type":i?"mobile":"desktop"};return o.c.getGatewayInstance().get(e,!1,t,l)}let d=async e=>{let{isMobile:t,storeName:i,fnpId:o,email:r,pincode:d,campaignWidgetsOnly:s}=e;try{let e={...d&&{pincode:d},...r&&{email:r},...o&&{fnpId:o}};if(t){let t={platform:"mobile",...i&&{storeName:i},...e,...s&&{campaignWidgetsOnly:!0}};return n(await a(l.v5,t,!0))}let u={pageType:"homepage",platform:"desktop",...e,...s&&{campaignWidgetsOnly:!0}};return n(await a(l.GH,u,!1))}catch(e){return null}},s=async()=>await o.c.getGatewayInstance().get("".concat(l.WM)),u=async()=>await o.c.getGatewayInstance().get("".concat((0,l.Q4)())),c=async e=>{let{productId:t,pincode:i}=e;
1return await o.c.getFTSInstance("https://www.fnp.com").get("".concat((0,l.r$)(t,i)))}},32989:function(e,t,i){"use strict";i.d(t,{jX:function(){return I},B7:function(){return R},ok:function(){return N},TD:function(){return _},O5:function(){return L},nl:function(){return M},wI:function(){return k},wT:function(){return P},OA:function(){return S},EQ:function(){return T},qJ:function(){return A},wp:function(){return E},qD:function(){return C}});var l=i(19400),o=i(53420);let n=()=>"/control/su-rj",r=()=>"/chocolate/v1/global/static/country/mobile/countrieslist",a=()=>"/chocolate/v1/global/static/web/terms-and-conditions",d=()=>"/productapi/api/rest/v1.3/ghp",s=()=>"/control/getCsrfTokens",u=()=>"/control/qcle-rj",c=()=>"/control/uotp-rj",v=()=>"/control/vc-rj",p=()=>"/control/getCustomerDetails-rj",g=()=>"/control/googleResponse?DONE_PAGE=".concat(encodeURIComponent(window.location.href)),m=()=>"/control/ve",h=()=>"/control/qcl-rj",f=()=>"/control/lu-rj";var x=i(16131);let b="https://atcdel.fnp.com",y="https://www.fnp.com",w=()=>(0,o.y6)()&&(0,o.mU)()||y,j={"Content-Type":"application/x-www-form-urlencoded"},S=async e=>{try{return await l.c.getFNTSInstance(y).post(e,"".concat(c()),!1,{"Content-Type":"application/x-www-form-urlencoded"})}catch(e){console.log(e)}},C=async(e,t,i,o,n)=>{let r={};r=!1===o?n===x.rk.MOBILE?{mn:i,un:t,vc:e,exists:o}:{un:t,vc:e,exists:o}:!0===o?n===x.rk.MOBILE?{un:t,vc:e,mn:i,exists:o}:{un:t,vc:e,exists:o}:{vc:e,...null===t?{mn:i}:{un:t},...void 0!==o&&{mn:i,exists:o}};let a=new URLSearchParams(r).toString();try{return await l.c.getFNTSInstance(y).post(a,"".concat(v()),!1,{"Content-Type":"application/x-www-form-urlencoded"})}catch(e){console.log(e)}},T=async(e,t,i,l,o)=>{try{let r=await fetch("".concat(w()).concat(n()),{method:"POST",headers:j,credentials:"include",body:new URLSearchParams({logintoken:e,USER_FIRST_NAME:t.trim(),countryCode:i,CUSTOMER_MOBILE_CONTACT:l,salutation:"Post",create_allow_password:!1,requirePasswordChange:"N",un:o}).toString()});return await r.json()}catch(e){console.log(e)}},R=async()=>await l.c.getGatewayInstance(b).get("".concat(r()),!1),k=async()=>await l.c.getGatewayInstance(b).get("".concat(a())),L=async()=>{let e=(0,o.ie)();return await l.c.getFNTSInstance(e?y:"").get("".concat(d()),!1)},N=async()=>await l.c.getFNTSInstance(y).get("".concat(s()),!1),I=async e=>{let t=new URLSearchParams(e);try{return await l.c.getFNTSInstance(y).post(t,"".concat(u()),!1,{"Content-Type":"application/x-www-form-urlencoded"})}catch(e){console.log(e)}},_=async()=>await l.c.getFNTSInstance(y).get("".concat(p()),!1),A=async e=>{try{let t=new URLSearchParams({USERNAME:e});return await l.c.getFNTSInstance(y).get("".concat(m(),"?").concat(t.toString()),!1)}catch(e){console.log(e)}},M=async e=>await l.c.getFTSInstance(y).get("".concat(g()),!1,null,{jwtToken:e}),E=async e=>{let t=new URLSearchParams(e);try{return await l.c.getFNTSInstance(y).post(t,"".concat(h()),!1,{"Content-Type":"application/x-www-form-urlencoded"})}catch(e){console.log(e)}},P=async e=>{let t=new URLSearchParams(e);try{return await l.c.getFNTSInstance(y).post(t,"".concat(f()),!1,{"Content-Type":"application/x-www-form-urlencoded"})}catch(e){console.log(e)}}},48368:function(e,t,i){"use strict";var l=i(3827),o=i(64090),n=i(92862),r=i.n(n),a=i(74404),d=i.n(a);let s=e=>{let{animationPath:t,isLoop:i=!0}=e,[n,a]=(0,o.useState)(null);return(0,o.useEffect)(()=>{t&&fetch(t).then(e=>e.json()).then(e=>a(e)).catch(e=>console.error("Failed to load Lottie JSON:",e))},[t]),(0,l.jsx)("div",{children:(0,l.jsx)(r(),{animationData:n,loop:i,style:{width:"100%",height:"100%"},rendererSettings:{preserveAspectRatio:"xMidYMid meet"}})})};s.propTypes={animationPath:d().string.isRequired,isLoop:d().bool},t.Z=s},15736:function(e,t,i){"use strict";var l=i(3827),o=i(74404),n=i.n(o),r=i(64090),a=i(68605);let d=e=>{let{videoUrl:t,width:i="100%",height:o="100%",title:n,classes:d,isControls:s=!1,isAutoPlay:u=!1,isMuted:c=!1,isLoop:v=!1,isPlaysInline:p=!1,isAllowDownload:g=!1,onPlaying:m=null,customRef:h=null,testId:f="",preload:x="metadata",poster:b="",id:y="",onMouseOver:w=()=>{},onMouseEnter:j=()=>{},onMouseLeave:S=()=>{},onEnded:C=()=>{},onError:T=()=>{},...R}=e,k=(0,r.useRef)(null),L=(0,a.SV)(b),N=(e,t)=>{null==m||m(e,t)},I=e=>{k.current=e,"function"==typeof h?h(e):h&&(h.current=e)},_=(null==t?void 0:t.includes("#t="))?t:"".concat(t,"#t=0.01"),A="none"===x&&!u;return(0,r.useCallback)(()=>(0,l.jsx)("video",{ref:I,src:A?void 0:_,"data-src":_,width:i,height:o,title:n,className:d,controlsList:g?"":"nodownload",preload:x,controls:s,autoPlay:u,muted:c,loop:v,"data-testid":f,playsInl
1ine:p,"webkit-playsinline":p?"true":void 0,"x5-playsinline":p?"true":void 0,"x-webkit-airplay":"allow",onPause:e=>N(e,!1),onPlay:e=>N(e,!0),poster:L,id:y,onMouseOver:w,onMouseEnter:j,onMouseLeave:S,onEnded:C,onError:T,...R}),[_,c,u,d,o,y,g,s,v,p,C,T,j,S,w,N,L,x,A,f,n,i,R])()};d.propTypes={videoUrl:n().string.isRequired,width:n().string,height:n().string,title:n().string,classes:n().string,isControls:n().bool,isAutoPlay:n().bool,isMuted:n().bool,isLoop:n().bool,isPlaysInline:n().bool,isAllowDownload:n().bool,onPlaying:n().func,customRef:n().oneOfType([n().object,n().func]),testId:n().string,preload:n().string,poster:n().string,id:n().string,onMouseOver:n().func,onMouseEnter:n().func,onMouseLeave:n().func,onEnded:n().func,onError:n().func},t.Z=d},78480:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return m}});var l=i(3827),o=i(74404),n=i.n(o),r=i(64090),a=i(30828),d=i(47907),s=i(86183),u=i(96333),c=i(52426),v=i(44923),p=i(1729);let g=e=>{let{isMobile:t,isSmartBuyUser:i,initialStores:o=[]}=e,[n,g]=(0,r.useState)(!1),{trackEvent:m}=(0,u.Z)(),h=(0,d.usePathname)(),f=(0,a.v9)(e=>{var t,i;return null!==(i=null===(t=e.dynamicHome)||void 0===t?void 0:t.pageStores)&&void 0!==i?i:[]},a.wU),x=(0,r.useMemo)(()=>{var e;let t=f.length>0?f:o;return function(e){let t=null==e?void 0:e.redirectionAppBannerImg;return t&&"image"===t.mediaType&&t.mediaValue?{imageUrl:t.mediaValue,appDeepLink:"https://fnp.onelink.me/xS2p/fjxq489m"}:null}(null!==(e=t.find(e=>e.isSelected))&&void 0!==e?e:t[0])},[o,f]),{imageUrl:b,appDeepLink:y}=null!=x?x:{};(0,r.useEffect)(()=>{g("true"!==p.default.getCookie(v.uo))},[]);let w=(0,r.useCallback)(()=>{var e;g(!1),m(null===c.dR||void 0===c.dR?void 0:c.dR.appRedirectBannerClosed,{page_name:h||"",page_type:(null===(e=window)||void 0===e?void 0:e.fnpPageType)||""},["clevertap"]),p.default.setCookie(v.uo,"true",{maxAge:86400,path:"/",sameSite:"lax",secure:!0})},[h,m]);return t&&!i&&x&&n?(0,l.jsxs)("div",{id:"homeAppBanner",className:"relative flex w-full items-start",children:[(0,l.jsx)("a",{href:y,"aria-label":"Open FNP app",className:"flex min-w-0 flex-1",children:(0,l.jsx)(s.default,{src:b,alt:"Download FNP app",width:750,height:120,sizes:"100vw",isPriority:!1,className:"h-auto w-full object-cover"})}),(0,l.jsx)("button",{type:"button",onClick:w,className:"absolute right-10 top-18 z-10 flex shrink-0 items-center justify-center","aria-label":"Close app banner",children:(0,l.jsx)(s.default,{src:"/icons/close.svg",alt:"Close",width:20,height:20,isPriority:!1})})]}):null};g.propTypes={isMobile:n().bool.isRequired,isSmartBuyUser:n().bool.isRequired,initialStores:n().arrayOf(n().object)};var m=r.memo(g)},56260:function(e,t,i){"use strict";i.r(t);var l=i(3827),o=i(64090),n=i(74404),r=i.n(n),a=i(30828),d=i(36510),s=i(74982),u=i(88244),c=i(2571);function v(e){let{isMobile:t,commonCleverTapData:i,isAddonModalSuppressed:n=!1}=e,[r,v]=(0,o.useState)(!1),p=(0,a.I0)(),{addToCartErrorMsg:g,loginSignUpSuccessfullyText:m,loginSignUpSuccessfully:h,isProductStockAvailable:f}=(0,a.v9)(e=>{var t,i,l,o,n,r;return{addToCartErrorMsg:null==e?void 0:null===(i=e.cart)||void 0===i?void 0:null===(t=i.addToCartResponse)||void 0===t?void 0:t.errorMsg,loginSignUpSuccessfullyText:null==e?void 0:null===(l=e.loginSignUp)||void 0===l?void 0:l.loginSignUpSuccessfullyText,loginSignUpSuccessfully:null==e?void 0:null===(o=e.loginSignUp)||void 0===o?void 0:o.loginSignUpSuccessfully,isProductStockAvailable:null==e?void 0:null===(r=e.cart)||void 0===r?void 0:null===(n=r.addToCartResponse)||void 0===n?void 0:n.isProductStockAvailable}},a.wU),{isShowAddOnBottomSheet:x}=(0,c.p)();return(0,o.useEffect)(()=>{g&&!f&&v(!0)},[g,f]),(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)(d.default,{variant:"success",isToast:h,header:m,duration:3e3,isMobile:!0,isDrawer:!1,placement:"bottom",onToastChange:()=>p((0,s._6)())}),(0,l.jsx)(d.default,{variant:"error",isToast:r,header:g||"",duration:5e3,isMobile:t,onToastChange:()=>v(!1)}),(0,l.jsx)(u.Z,{isMobile:t,commonCleverTapData:i,isShowAddOnBottomSheet:x,isSuppressed:n})]})}v.propTypes={isMobile:r().bool.isRequired,commonCleverTapData:r().object,isAddonModalSuppressed:r().bool},t.default=v},81110:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return g}});var l=i(3827),o=i(64090),n=i(74404),r=i.n(n),a=i(86183);let d=e=>{let{isMobile:t,bannerData:i}=e,o=t?null==i?void 0:i.mobile:i;return(0,l.jsx)("div",{children:(0,l.jsx)(a.default,{src:o,alt:"Free Delivery Banner",className:"h-auto w-full object-cover",width:t?120:75,height:t?120:75,style:{objectFit:"cover"}})})};d.propTypes={isMobile:r().bool.isRequired,bannerData:r().oneOfType([r().object.isRequired,r().string.isRequired])};var s=i(46723),u=i(68605),c=i(138),v=i(65658);let p=e=>{var t,i,n;let{isMobile:r,fromPage:a,isMicrosite:p,bannerData:g}=e,m={slidesToShow:1,slidesToScroll:1,autoplay:!0,infinite:!0,autoplaySpeed:7e3,fade:!0,cssEase:"linear",speed:100,nextArrow:(0,l.jsx)(v.il,{right:"30px",width:16,height:16,customStyle:{position:"absolute",top:"43%",height:"30px !important",width:"30px !important"}}),prevArrow:(0,l.jsx)(v.ci,{left:"30px",width:16,height:16,customStyle:{position:"absolute",top:"43%",height:"30px !important",width:"30px !important"}})};return(0,o.useEffect)(()=>
1{if(r)return;let e=document.getElementById("banner-child"),t=document.getElementById("header-child");if(!e||!t)return;let i=e.offsetHeight,l=()=>{let l=Math.min(window.scrollY,i);e.style.transform="translateY(-".concat(l,"px)"),e.style.transition="transform 0s",t.style.marginTop="".concat(i-l,"px"),t.style.setProperty("top","0","important")};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[r,g]),r&&(null==g?void 0:g.mobile)||!r&&(null==g?void 0:null===(t=g.desktop)||void 0===t?void 0:t.length)?(0,l.jsx)("div",{className:(0,u.Y1)("w-full transition-all duration-200",a===s.c7.HOME&&r?"-mt-8 md:-mb-64 md:mt-32 xxl:-mb-76":r&&"mt-12",a!==s.c7.HOME&&p&&r&&"mb-12",r?"px-16":"fixed top-0 z-[100]"),id:"banner-wrapper",children:(0,l.jsx)("div",{className:(0,u.Y1)("relative w-full overflow-hidden sm:h-[55px]",r?"h-[57px] rounded-lg":"h-48 xml:h-[50.50px] xmll:h-[54px] xll:h-[59px] xxl:h-[67px]"),id:"banner-child",children:(0,l.jsx)("div",{className:"absolute inset-0",children:r?(0,l.jsx)(d,{isMobile:r,bannerData:g}):Array.isArray(null==g?void 0:g.desktop)&&(null==g?void 0:null===(i=g.desktop)||void 0===i?void 0:i.length)>1?(0,l.jsx)(c.Z,{...m,className:"relative w-full",children:null==g?void 0:null===(n=g.desktop)||void 0===n?void 0:n.map((e,t)=>(0,l.jsx)("div",{children:(0,l.jsx)(d,{isMobile:r,bannerData:e})},t))}):(0,l.jsx)(d,{isMobile:r,bannerData:Array.isArray(null==g?void 0:g.desktop)?null==g?void 0:g.desktop[0]:null==g?void 0:g.desktop})})})}):null};p.propTypes={isMobile:r().bool.isRequired,fromPage:r().string.isRequired,isMicrosite:r().bool,bannerData:r().object.isRequired};var g=p},91863:function(e,t,i){"use strict";i.r(t),i.d(t,{ChatWithUs:function(){return u}});var l=i(3827),o=i(74404),n=i.n(o),r=i(73175),a=i(91328),d=i(64090),s=i(44843);let u=e=>{let{details:t}=e,[i,o]=(0,d.useState)("");return(0,d.useEffect)(()=>{(async function(){var e;let t=await (0,s.SR)();o(null==t?void 0:null===(e=t.callTime)||void 0===e?void 0:e.switch)})()},[]),(0,l.jsx)(l.Fragment,{children:"N"===i?(0,l.jsx)(r.default,{size:"textBtn",label:t.subheading2,classes:"text-grey-500 justify-start",buttonVariant:"underlineText",buttonTextSize:"small",onClick:()=>{if(window.fcWidget){var e,t;null===(e=window.fcWidget)||void 0===e||e.open(),null===(t=window.fcWidget)||void 0===t||t.show()}}}):(0,l.jsx)(a.default,{variant:"subheading4",Tag:"p",classes:"text-12 font-400 text-grey-500",children:t.subheading1})})};u.propTypes={details:n().object.isRequired},t.default=u},54167:function(e,t,i){"use strict";i.r(t);var l=i(3827),o=i(64090),n=i(74468),r=i(86183),a=i(7580),d=i(44843),s=i(2152),u=i(16131);t.default=()=>{let[e,t]=(0,o.useState)(""),[i,c]=(0,o.useState)(""),[v,p]=(0,o.useState)(""),g=async t=>{t.stopPropagation(),e.length>0?a.Z.emailRegularExpression.test(e)?(p(await (0,d.fx)({emailId:e})),c("success")):c("error"):c("invalid")};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"w-2/6 p-40","data-testid":"subscription-component",children:[(0,l.jsx)("h6",{className:"mb-2 text-14 font-500 capitalize text-fnp-500",children:s.uz}),(0,l.jsx)("p",{className:"text-12 leading-20 text-grey-500",children:s.OP}),(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(n.Z,{variant:"primary",id:"subscription-input",placeholder:u.I6.placeholder,type:"email",inputValue:e,isRequired:!0,isError:"invalid"===i||"error"===i,isSuccess:"success"===i,message:(()=>{switch(i){case"invalid":return s.Hu;case"error":return s.C_;case"success":return v;default:return""}})(),onChange:e=>{t(e.target.value)},onKeyPress:e=>{"Enter"===e.key&&g(e)},startAdornment:(0,l.jsx)(r.default,{src:"/icons/sms.svg",width:24,height:24,alt:"email icon",isPriority:!1}),endAdornment:(0,l.jsx)("div",{onClick:g,children:(0,l.jsx)(r.default,{src:"/icons/arrow.svg",width:20,height:20,alt:"right arrow icon",isPriority:!1})})})})]})})}},76501:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return c}});var l=i(3827),o=i(64090);let n={CLIENT_ID:"746155480363-625uap16ecpl7u9s2i14uqg1tiri9nch.apps.googleusercontent.com"};var r=i(55183);let a=()=>{let{fnpci:e,fnpli:t}=(0,r.jl)();return"t"===t||"t"===e};var d=i(24453),s=i(1131),u=i(32989),c=()=>{let e=async e=>{if(e.credential){var t;(0,s.t_)(d.dM,!0),await (0,u.nl)(e.credential),"function"==typeof(null===(t=window)||void 0===t?void 0:t.clearAndDestoryWidget)&&window.clearAndDestoryWidget(),window.location.reload()}};return(0,o.useEffect)(()=>{!a()&&window.google&&window.google.accounts&&window.google.accounts.id&&(window.google.accounts.id.initialize({client_id:n.CLIENT_ID,callback:e,cancel_on_tap_outside:!1}),window.google.accounts.id.prompt())},[]),(0,l.jsx)(l.Fragment,{})}},84052:function(e,t,i){"use strict";i.d(t,{Bi:function(){return l}});let l="My Reminders"},2152:function(e,t,i){"use strict";i.d(t,{C_:function(){return r},Hu:function(){return n},OP:function(){return o},Zg:function(){return d},bP:function(){return a},uz:function(){return l}});let l="Subscribe Now",o="Get updates on promotions and offers coupons.",n="Email is Required",r="Invalid email address",a="View Less",d=e=>"View ".concat(e," More")},40275:function(e,t,i){"use strict";i.d(t,{FP:function(){return a},Lc:function(){return l},oZ:function(){return n},yP:function(){return o},yo:function(){return d},zS:function(){return r}});let l={COLLECTIONS:"COLLECTIONS",PRODUCT_COLLECTION:"PRODUCT_COLLECTION",PRODUCTS_WITH_TABS:"PRODUCTS_WITH_TABS",VIDEO:"VIDEO"}
1,o={GRID:"grid",CAROUSEL:"carousel"},n={IMAGE:"image",VIDEO:"video",LOTTIE:"lottie",RIVE:"rive",COLOR:"color",GRADIENT:"gradient"},r={LEFT:"left",RIGHT:"right",START:"start",CENTER:"center",END:"end"},a={[r.START]:"mr-auto",[r.CENTER]:"mx-auto",[r.END]:"ml-auto"},d={[r.LEFT]:r.START,[r.START]:r.START,[r.RIGHT]:r.END,[r.END]:r.END}},28245:function(e,t,i){"use strict";var l=i(3827),o=i(74404),n=i.n(o);let r=e=>{let{children:t,style:i,wrapperClassName:o="",wrapperStyle:n}=e;return(0,l.jsx)("div",{className:o,style:n,children:(0,l.jsx)("p",{className:"line-clamp-2 min-h-[2.4em] w-full break-words leading-[1.2]",style:i,children:t})})};r.propTypes={children:n().node.isRequired,style:n().object,wrapperClassName:n().string,wrapperStyle:n().object},t.Z=r},81213:function(e,t,i){"use strict";i.d(t,{e:function(){return a}});var l=i(3827),o=i(64090),n=i(74404),r=i.n(n);let a=e=>{let{className:t,onClick:i,direction:n,leftPos:r="-24px",rightPos:a="-24px"}=e,d=(0,o.useCallback)(e=>{e.currentTarget.style.boxShadow="0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 12px 0 rgba(0, 0, 0, 0.08)"},[]),s=(0,o.useCallback)(e=>{e.currentTarget.style.boxShadow="none"},[]);return(0,l.jsx)("button",{type:"button",className:"".concat(null!=t?t:""," inline-flex h-auto w-auto cursor-pointer items-center justify-center gap-[10px] rounded-[32px] bg-white-900 p-[12px] text-[length:inherit] leading-normal transition-shadow duration-200 ease-in-out before:!hidden [&&]:z-50"),style:"next"===n?{right:null!=a?a:"-24px",border:"1px solid #EEE"}:{left:null!=r?r:"-24px",border:"1px solid #EEE"},onMouseEnter:d,onMouseLeave:s,onClick:i,"aria-label":"next"===n?"Next slide":"Previous slide",children:"next"===n?(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.jsx)("path",{d:"M9 19.5L16.5 12L9 4.5",stroke:"#0F172B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.jsx)("path",{d:"M15 19.5L7.5 12L15 4.5",stroke:"#0F172B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})};a.propTypes={className:r().string,onClick:r().func,direction:r().oneOf(["next","prev"]).isRequired,leftPos:r().oneOfType([r().string,r().number]),rightPos:r().oneOfType([r().string,r().number])}},64267:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var l=i(3827),o=i(64090),n=i(74404),r=i.n(n),a=i(138),d=i(81213);let s=e=>{let{currentSlide:t,totalSlides:i,onDotClick:o}=e;return i<=1?null:(0,l.jsx)("div",{className:"mt-16 flex h-[15px] items-center justify-center gap-8",children:Array.from({length:i}).map((e,i)=>(0,l.jsx)("button",{type:"button",className:"flex cursor-pointer items-center justify-center transition-all duration-300",style:{width:i===t?"15px":"8px",height:i===t?"15px":"8px"},"aria-label":"Go to slide ".concat(i+1),onClick:()=>o(i),children:i===t?(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 12 12",fill:"none",children:(0,l.jsx)("path",{d:"M6 0L6.57554 1.68538C7.17586 3.44337 8.55663 4.82414 10.3146 5.42446L12 6L10.3146 6.57554C8.55663 7.17586 7.17586 8.55663 6.57554 10.3146L6 12L5.42446 10.3146C4.82414 8.55663 3.44337 7.17586 1.68539 6.57554L0 6L1.68538 5.42446C3.44337 4.82414 4.82414 3.44337 5.42446 1.68539L6 0Z",fill:"#646800"})}):(0,l.jsx)("div",{className:"rounded-full bg-[#8e8e8e] opacity-50",style:{width:"8px",height:"8px"}})},i))})};s.propTypes={currentSlide:r().number.isRequired,totalSlides:r().number.isRequired,onDotClick:r().func.isRequired};let u=e=>{let{currentSlide:t,totalSlides:i,onDotClick:o,isAutoplay:n=!1,autoplaySpeed:r=3e3}=e;return i<=1?null:(0,l.jsxs)("div",{className:"mt-16 flex items-center justify-center gap-8",children:[(0,l.jsx)("style",{children:"\n        @keyframes fillProgress {\n          from { width: 0%; }\n          to { width: 100%; }\n        }\n      "}),Array.from({length:i}).map((e,i)=>{let a=i===t;return(0,l.jsxs)("button",{type:"button",className:"relative cursor-pointer overflow-hidden rounded-sm transition-all duration-300",style:{width:a?"80px":"32px",height:"4px",backgroundColor:"#CBD5E0",borderRadius:"5px"},"aria-label":"Go to slide ".concat(i+1),onClick:()=>o(i),children:[a&&n&&(0,l.jsx)("div",{className:"absolute left-0 top-0 h-full rounded-sm bg-[#737530]",style:{width:"0%",animation:"fillProgress ".concat(r,"ms linear forwards")}},"progress-".concat(t)),a&&!n&&(0,l.jsx)("div",{className:"absolute left-0 top-0 h-full rounded-sm bg-[#737530]",style:{width:"100%"}})]},i)})]})};u.propTypes={currentSlide:r().number.isRequired,totalSlides:r().number.isRequired,onDotClick:r().func.isRequired,isAutoplay:r().bool,autoplaySpeed:r().number};var c=i(30828),v=i(86183),p=i(15736),g=i(48368),m=i(71783),h=i(79580),f=i(34835),x=i(747
178);let b=e=>{var t,i;let{cell:n,index:r,borderRadius:a,borderThickness:d,borderColor:s,aspectRatio:u,loadedVideos:b,videoRefs:y,onToggleVideoPlay:w,setLoadedVideos:j,setPlayingVideos:S,isEager:C=!1,isPriority:T=!1}=e,R=(0,c.I0)(),{onCellClick:k}=null!==(i=(0,h.L)())&&void 0!==i?i:{},L=n.imageUrl||n.mediaUrl,N="image"===n.mediaType?(null===(t=n.mediaUrl)||void 0===t?void 0:t.includes(".mp4"))?"video":"image":n.mediaType||"image",I=(0,m.k)(n),_=!!n.linkUrl&&"image"===N,A=(0,o.useRef)(null),M=()=>{let e=A.current;e&&(!e.paused||e.readyState>=3)&&j(e=>e.has(r)?e:new Set(e).add(r))};(0,o.useEffect)(()=>{if("video"===N&&A.current){A.current.play().catch(()=>{}),M();let e=setInterval(M,150),t=setTimeout(()=>clearInterval(e),2e3);return()=>{clearInterval(e),clearTimeout(t)}}},[N]);let E="lottie"===N?(0,l.jsx)("div",{className:"relative h-full w-full",children:(0,l.jsx)(g.Z,{animationPath:n.mediaUrl||n.imageUrl,isLoop:!0})}):"video"===N?(0,l.jsxs)("div",{className:"relative h-full w-full",children:[!b.has(r)&&n.imageUrl&&(0,l.jsx)("div",{className:"absolute inset-0 z-10",children:(0,l.jsx)("img",{src:n.imageUrl,alt:I,className:"h-full w-full object-contain",loading:C||T?"eager":"lazy",fetchPriority:T?"high":void 0})}),(0,l.jsx)(p.Z,{customRef:e=>{A.current=e,e&&(y.current.set(r,e),M())},videoUrl:L,title:n.title||"carousel-cell-video-".concat(r),classes:"h-full w-full object-cover transition-opacity duration-300 ".concat(b.has(r)?"opacity-100":"opacity-0"),isMuted:!0,isLoop:!0,isPlaysInline:!0,isAutoPlay:!0,preload:"metadata",poster:n.imageUrl,onLoadedData:()=>{j(e=>new Set(e).add(r)),A.current&&A.current.play().catch(()=>{})},onPlaying:(e,t)=>{t&&j(e=>e.has(r)?e:new Set(e).add(r)),null==S||S(e=>{if(e.has(r)===t)return e;let i=new Set(e);return t?i.add(r):i.delete(r),i})},onClick:()=>w(r)})]}):(0,l.jsx)("div",{className:"relative h-full w-full",children:(0,l.jsx)(v.default,{src:L,alt:I,className:"h-full w-full object-cover",width:100,height:100,isPriority:T,loading:C||T?"eager":"lazy",fetchPriority:T?"high":void 0})});return(0,l.jsx)("div",{className:"relative overflow-hidden",style:{aspectRatio:"".concat(u),borderRadius:"".concat(a,"px"),border:d?"".concat(d,"px solid ").concat(s):void 0},children:n.linkUrl?(0,l.jsx)("a",{href:n.linkUrl,className:"block h-full w-full","aria-label":_?void 0:I,onClick:e=>{(0,f.Z)(e,()=>R((0,x.Wp)(!0))),null==k||k({action:"video"===N?"Video Clicked":"Image Clicked",item:{title:n.title,imageUrl:n.imageUrl,videoUrl:"video"===N?L:void 0,linkUrl:n.linkUrl,position:r,item_position:r,item_row:1,item_column:r+1}})},children:E}):E})};b.propTypes={cell:r().object.isRequired,index:r().number.isRequired,borderRadius:r().number,borderThickness:r().number,borderColor:r().string,aspectRatio:r().number,loadedVideos:r().instanceOf(Set).isRequired,videoRefs:r().object.isRequired,onToggleVideoPlay:r().func.isRequired,setLoadedVideos:r().func.isRequired,setPlayingVideos:r().func,isEager:r(
1).bool,isPriority:r().bool};var y=i(28245),w=i(96326);let j=e=>{let{validCells:t,slidesToShow:i,rowCount:n=1,slideGap:r=15,rowGap:a=12,aspectRatio:d=1,borderRadius:s=0,gridTextStyle:u={},sectionPadding:c,borderThickness:v,borderColor:p,isShowSlider:g=!1,isMobile:m,isAuto:h,isAboveFold:f,isLcpCandidate:x}=e,[j,S]=(0,o.useState)(new Set),[C,T]=(0,o.useState)(new Set),R=(0,o.useRef)(new Map),k=(0,o.useRef)(null),[L,N]=(0,o.useState)(0),{textEnabled:I=!1,innerText:_=!1,fontSize:A,fontWeight:M,fontFamily:E,titleColor:P,horizontalAlignment:O="center",verticalAlignment:U="bottom"}=u||{},D={fontSize:A?"".concat(A,"px"):void 0,fontWeight:M||void 0,fontFamily:E||void 0,color:P||void 0,textAlign:O},q="top"===U?"top-0":"center"===U?"top-1/2 -translate-y-1/2":"bottom-0",F="top"===U?"pt-[8px] md:pt-[12px]":"",B=(0,o.useCallback)(e=>{var t;let i=R.current.get(e);i&&(j.has(e)?i.pause():null===(t=i.play())||void 0===t||t.catch(()=>{}))},[j]),V=(0,o.useCallback)(()=>{let e=k.current;if(!e)return;let{scrollLeft:t,scrollWidth:i,clientWidth:l}=e,o=i-l;N(o>0?t/o*100:0)},[]);(0,o.useEffect)(()=>{if(!h||!m)return;let e=k.current;if(!e)return;let t=!1,i=null,l=e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,o=(t,i)=>{let o;let n=e.scrollLeft,r=performance.now(),a=d=>{let s=Math.min((d-r)/i,1);e.scrollLeft=n+t*l(s),s<1&&(o=requestAnimationFrame(a))};return o=requestAnimationFrame(a),()=>cancelAnimationFrame(o)},n=()=>{t=!0},a=()=>{t=!1};e.addEventListener("touchstart",n,{passive:!0}),e.addEventListener("touchend",a,{passive:!0});let d=setInterval(()=>{var l,n;if(t)return;i&&i();let{scrollLeft:a,scrollWidth:d,clientWidth:s}=e;a>=d-s-1||(i=o((null!==(n=null===(l=e.firstElementChild)||void 0===l?void 0:l.offsetWidth)&&void 0!==n?n:0)+r,600))},2e3);return()=>{clearInterval(d),i&&i(),e.removeEventListener("touchstart",n),e.removeEventListener("touchend",a)}},[h,m,r]);let Z="calc(".concat(100/i,"% - ").concat(r*(i-1)/i,"px)"),W=n>1?Math.ceil(t.length/n):t.length,z=Array.from({length:W},(e,i)=>Array.from({length:n},(e,l)=>{var o;return null!==(o=t[l*W+i])&&void 0!==o?o:null}).filter(Boolean));return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{ref:k,className:"scrollbar-hide flex w-full overflow-x-auto",style:{gap:"".concat(r,"px"),paddingLeft:null==c?void 0:c.paddingLeft,paddingRight:null==c?void 0:c.paddingRight},role:"region","aria-label":"Product carousel","data-component":"FreeFlowCarousel",onScroll:V,children:z.map((e,t)=>(0,l.jsx)("div",{className:"relative flex-shrink-0",style:{width:Z},children:(0,l.jsx)("div",{className:"flex flex-col",style:{gap:"".concat(a,"px")},children:e.map((e,i)=>{let o=i*W+t,n=(null==e?void 0:e.textContent)||(null==e?void 0:e.title);return(0,l.jsxs)("div",{children:[(0,l.jsx)(b,{cell:e,index:o,borderRadius:s,aspectRatio:d,loadedVideos:C,videoRefs:R,onToggleVideoPlay:B,setLoadedVideos:T,setPlayingVideos:S,borderThickness:v,borderColor:p,isEager:(0,w.Qd)(o,f),isPriority:(0,w.Qd)(o,x)}),I&&n&&!_&&(0,l.jsx)(y.Z,{style:D,wrapperClassName:"pt-[6px]",children:n}),I&&n&&_&&(0,l.jsx)("div",{className:"absolute left-0 right-0 px-[".concat(m?"8":"15","px] pb-[").concat(m?"8":"15","px] ").concat(q," ").concat(F),children:(0,l.jsx)("p",{className:"break-words",style:D,children:n})})]},"cell-".concat(o))})})},"col-".concat(t)))}),g&&!1]})};j.propTypes={validCells:r().arrayOf(r().object).isRequired,slidesToShow:r().number.isRequired,rowCount:r().number,slideGap:r().number,rowGap:r().number,aspectRatio:r().number,borderRadius:r().number,gridTextStyle:r().object,sectionPadding:r().object,borderThickness:r().number,borderColor:r().string,isShowSlider:r().bool,isMobile:r().bool.isRequired,isAuto:r().bool,isAboveFold:r().bool,isLcpCandidate:r().bool};var S=i(12289),C=i(49553);i(55768),i(8694);let T=e=>{var t,i,n,r,c,v,p,g,m,h,f,x,T,R,k,L,N,I,_,A,M,E,P,O,U,D,q,F;let{layoutSnapshot:B,sectionSettings:V,isMobile:Z,isAboveFold:W=!1,isLcpCandidate:z=!1}=e,H=null==B?void 0:B.carouselConfig,G=(0,o.useRef)(null),Y=(0,o.useRef)(null),[K,Q]=(0,o.useState)(!1),[$,J]=(0,o.useState)(0),[X,ee]=(0,o.useState)(new Set),[et,ei]=(0,o.useState)(new Set),el=(0,o.useRef)(new Map);(0,S.Z)(G,K,Z),(0,C.Z)(Y,$);let eo=(0,o.useMemo)(()=>{var e,t;return(null!==(t=null==H?void 0:null===(e=H.grid)||void 0===e?void 0:e.rows)&&void 0!==t?t:[]).flatMap(e=>{var t;return null!==(t=e.cells)&&void 0!==t?t:[]}).sort((e,t)=>
1{var i,l;return(null!==(i=e.sortOrder)&&void 0!==i?i:0)-(null!==(l=t.sortOrder)&&void 0!==l?l:0)})},[null==H?void 0:null===(t=H.grid)||void 0===t?void 0:t.rows]),en=null==H?void 0:H.grid,er=null!==(f=null==H?void 0:H.options)&&void 0!==f?f:{},ea=null==er?void 0:er.dots,{columnGap:ed}=en||{},es=null!=ed?ed:15,eu=(null!==(x=er.slidesToShow)&&void 0!==x?x:1)<=1&&!(null!==(T=er.center)&&void 0!==T&&T)?0:es,ec=null!==(R=null==V?void 0:null===(i=V.gridBorder)||void 0===i?void 0:i.borderRadius)&&void 0!==R?R:0,ev=null!==(k=null==V?void 0:null===(n=V.gridBorder)||void 0===n?void 0:n.borderThickness)&&void 0!==k?k:0,ep=null!==(L=null==V?void 0:null===(r=V.gridBorder)||void 0===r?void 0:r.borderColor)&&void 0!==L?L:"transparent",eg=(null==V?void 0:V.gridTextStyle)||{},{textEnabled:em=!1,innerText:eh=!1,fontSize:ef,fontWeight:ex,fontFamily:eb,titleColor:ey,horizontalAlignment:ew="center",verticalAlignment:ej="bottom"}=eg,eS={fontSize:ef?"".concat(ef,"px"):void 0,fontWeight:ex||void 0,fontFamily:eb||void 0,color:ey||void 0,textAlign:ew},eC={paddingLeft:"".concat((null==V?void 0:null===(c=V.padding)||void 0===c?void 0:c.left)||0,"px"),paddingRight:"".concat((null==V?void 0:null===(v=V.padding)||void 0===v?void 0:v.right)||0,"px")},eT="top"===ej?"top-0":"center"===ej?"top-1/2 -translate-y-1/2":"bottom-0",eR="top"===ej?"pt-[8px] md:pt-[12px]":"",ek=(0,o.useMemo)(()=>eo.filter(e=>e.imageUrl||e.mediaUrl),[eo]),eL=null!==(N=er.slidesToShow)&&void 0!==N?N:1,eN=null!==(I=er.center)&&void 0!==I&&I,eI=eN?1:null!==(_=er.slidesToScroll)&&void 0!==_?_:1,e_=null!==(A=er.rows)&&void 0!==A?A:1,eA=ea&&eL<1.1,eM=eL>1.1&&ea,eE=Math.ceil(ek.length/eL),eP=ek.length>0?Math.min((eL+$)/ek.length*100,100):100,eO=null!==(M=null==en?void 0:null===(g=en.rows)||void 0===g?void 0:null===(p=g[0])||void 0===p?void 0:p.aspectRatio)&&void 0!==M?M:1,eU=(0,o.useCallback)(e=>{var t;let i=el.current.get(e);i&&(X.has(e)?i.pause():null===(t=i.play())||void 0===t||t.catch(()=>{}))},[X]),eD=(0,o.useCallback)((e,t)=>J(t),[]),eq=(0,o.useCallback)(e=>{var t;return null===(t=G.current)||void 0===t?void 0:t.slickGoTo(e)},[]);if(!ek.length)return null;let eF=window.matchMedia("(prefers-reduced-motion: reduce)").matches,eB=(null==V?void 0:null===(m=V.padding)||void 0===m?void 0:m.left)||0,eV=(null==V?void 0:null===(h=V.padding)||void 0===h?void 0:h.right)||0,eZ={infinite:null!==(E=er.infinite)&&void 0!==E&&E,speed:null!==(P=er.speed)&&void 0!==P?P:400,slidesToShow:eL,slidesToScroll:eI,arrows:!Z&&ek.length>eL,dots:!1,nextArrow:(0,l.jsx)(d.e,{direction:"next",rightPos:"".concat(24-eV,"px")}),prevArrow:(0,l.jsx)(d.e,{direction:"prev",leftPos:"".concat(24-eB,"px")}),beforeChange:eD,autoplay:!eF&&null!==(O=er.autoplay)&&void 0!==O&&O,autoplaySpeed:null!==(U=er.autoplaySpeed)&&void 0!==U?U:3e3,pauseOnHover:!0,pauseOnFocus:!0,rows:e_,centerMode:eN,centerPadding:eN?Z?"6%":"10%":"0px",adaptiveHeight:!1};return Z&&eL>1.1?(0,l.jsx)(j,{validCells:ek,slidesToShow:eL,slideGap:es,rowCount:e_,rowGap:null!==(D=null==en?void 0:en.rowGap)&&void 0!==D?D:12,aspectRatio:eO,borderRadius:ec,gridTextStyle:eg,sectionPadding:eC,borderThickness:ev,borderColor:ep,isShowSlider:ek.length>eL&&ea,isMobile:Z,isAuto:er.autoplay,isCenter:eN,isAboveFold:W,isLcpCandidate:z}):(0,l.jsxs)("div",{ref:Y,className:"dynamic-carousel w-full overflow-hidden",style:{paddingLeft:"".concat(Math.max(0,Math.round(eB-eu/2)),"px"),paddingRight:null==eC?void 0:eC.paddingRight},onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),children:[(0,l.jsx)(a.Z,{ref:G,...eZ,children:ek.map((e,t)=>{let i=e.textContent||e.title;return(0,l.jsxs)("div",{id:"dynamic-carousel-cell-".concat(t),className:"!pr-0 align-top outline-none",style:{padding:Z?void 0:"4px",margin:Z?void 0:"4px"},children:[(0,l.jsxs)("div",{className:"relative overflow-hidden",style:{marginLeft:"".concat(eu/2,"px"),marginRight:"".concat(eu/2,"px"),width:0===eu?"100%":void 0,transition:"border 0.2s ease, box-shadow 0.2s ease",border:Z?void 0:"2px solid transparent",borderRadius:"".concat(ec,"px"),marginTop:Z?"0px":"20px",marginBottom:Z?"0px":"20px"},onMouseEnter:e=>
1{Z||(e.currentTarget.style.border="2px solid rgba(255, 255, 255, 0.80)",e.currentTarget.style.boxShadow="0 2px 16px 0 rgba(0, 0, 0, 0.12)")},onMouseLeave:e=>{Z||(e.currentTarget.style.border="2px solid transparent",e.currentTarget.style.boxShadow="none")},children:[(0,l.jsx)(b,{cell:e,index:t,borderRadius:ec,borderThickness:ev,borderColor:ep,aspectRatio:eO,loadedVideos:et,videoRefs:el,onToggleVideoPlay:eU,setLoadedVideos:ei,setPlayingVideos:ee,isEager:(0,w.Qd)(t,W),isPriority:(0,w.Qd)(t,z)}),em&&i&&eh&&(0,l.jsx)("div",{className:"absolute left-0 right-0 px-[15px] pb-[".concat(Z?8:15,"px] md:px-[10px] ").concat(eT," ").concat(eR),children:(0,l.jsx)("p",{className:"break-words",style:eS,children:i})})]}),em&&i&&!eh&&(0,l.jsx)(y.Z,{style:eS,wrapperStyle:{marginLeft:"".concat(eu/2,"px"),marginRight:"".concat(eu/2,"px"),marginTop:Z?"8px":"-4px"},children:i})]},"cell-".concat(t))})}),eA&&Z&&(0,l.jsx)(s,{currentSlide:$,totalSlides:eE,onDotClick:eq}),eA&&!Z&&(0,l.jsx)(u,{currentSlide:$,totalSlides:eE,onDotClick:eq,isAutoplay:null!==(q=er.autoplay)&&void 0!==q&&q,autoplaySpeed:null!==(F=er.autoplaySpeed)&&void 0!==F?F:3e3}),eM&&!Z&&(0,l.jsx)("div",{className:"mx-auto mt-[32px] w-full max-w-[30vw]",children:(0,l.jsx)("div",{className:"block h-[4px] w-full overflow-hidden rounded bg-[#E0E0E0]",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":eP,style:{backgroundImage:"linear-gradient(to right, #737530, #737530)",backgroundRepeat:"no-repeat",backgroundSize:"".concat(eP,"% 100%"),transition:"background-size 0.2s ease"},children:(0,l.jsxs)("span",{className:"sr-only",children:[Math.round(eP),"% scrolled"]})})})]})};T.propTypes={layoutSnapshot:r().object,sectionSettings:r().object,isMobile:r().bool.isRequired,isAboveFold:r().bool,isLcpCandidate:r().bool};var R=T},73112:function(e,t,i){"use strict";i.d(t,{Z:function(){return j}});var l=i(3827),o=i(64090),n=i(74404),r=i.n(n),a=i(30828),d=i(48368),s=i(28245),u=i(86183),c=i(15736),v=i(71783),p=i(79580),g=i(34835),m=i(74778);let h=e=>{var t,i,n;let{cell:r,index:h,onVideoToggle:f,videoRefs:x,gridTextStyle:b,columnCount:y,isMobile:w,aspectRatio:j,cellBorderRadius:S,cellBorderStyle:C,cellBorderThickness:T,isEager:R=!1,isPriority:k=!1}=e,L=(0,a.I0)(),[N,I]=(0,o.useState)(!1),_=(0,o.useRef)(null),{onCellClick:A}=null!==(n=(0,p.L)())&&void 0!==n?n:{},M="image"==r.mediaType||void 0==r.mediaType?(null===(t=r.mediaUrl)||void 0===t?void 0:t.includes(".mp4"))?"video":"image":r.mediaType||"image",E=r.imageUrl||r.mediaUrl||((null===(i=r.background)||void 0===i?void 0:i.type)==="image"?r.background.value:void 0),P=r.textContent||r.title,O=null!=y?y:1,U=(0,v.k)(r),D="image"===M,q=()=>{let e=_.current;e&&(!e.paused||e.readyState>=3)&&I(!0)};(0,o.useEffect)(()=>(_.current&&(x.current.set(h,_.current),q()),()=>x.current.delete(h)),[h,x]),(0,o.useEffect)(()=>{if("video"===M&&_.current){_.current.play().catch(()=>{}),q();let e=setInterval(q,150),t=setTimeout(()=>clearInterval(e),2e3);return()=>{clearInterval(e),clearTimeout(t)}}},[M]);let{textEnabled:F=!0,innerText:B=!0,fontSize:V,fontWeight:Z,fontFamily:W,titleColor:z,horizontalAlignment:H="center",verticalAlignment:G="bottom"}=b||{},Y={fontSize:V?"".concat(V,"px"):void 0,fontWeight:Z||void 0,fontFamily:W||void 0,color:z||void 0,textAlign:H},K=(0,o.useCallback)(()=>{I(!0),_.current&&_.current.play().catch(()=>{})},[]),Q=(0,o.useCallback)((e,t)=>{t&&I(!0)},[]),$=(0,o.useCallback)(()=>{f(h),null==A||A({action:"Video Clicked",item:{item_name:P||r.title,item_position:h,item_row:Math.floor(h/O)+1,item_column:h%O+1,redirection_url:r.linkUrl}})},[f,h,A,P,r.title,r.linkUrl,O]);if(!E)return(0,l.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-grey-100 text-xs text-grey-500",children:"Empty cell"});let J="lottie"===M?(0,l.jsx)(d.Z,{animationPath:E,isLoop:!0}):"video"===M?(0,l.jsxs)("div",{className:"relative h-full w-full",children:[!N&&r.imageUrl&&(0,l.jsx)("div",{className:"absolute inset-0 z-10",children:(0,l.jsx)("img",{src:r.imageUrl,alt:U,className:"h-full w-full object-cover",loading:R||k?"eager":"lazy",fetchPriority:k?"high":void 0})}),(0,l.jsx)(c.Z,{customRef:_,videoUrl:E,poster:r.imageUrl,title:r.alt||r.title||"Video",classes:"h-full w-full object-cover transition-opacity duration-300 ".concat(N?"opacity-100":"opacity-0"),isMuted:!0,isLoop:!0,isPlaysInline:!0,preload:"auto",onLoadedData:K,onPlaying:Q,onClick:$,isAutoPlay:!0})]}
1):(0,l.jsx)(u.default,{src:E,alt:U,className:"h-full w-full object-cover",width:100,height:100,isPriority:k,loading:R||k?"eager":"lazy",fetchPriority:k?"high":void 0}),X=(0,l.jsxs)("div",{className:"relative w-full overflow-hidden",style:{aspectRatio:j?"".concat(j):void 0,borderRadius:null!=S?S:0,border:C,transition:"border 0.2s ease, box-shadow 0.2s ease"},onMouseEnter:e=>{T||w||(e.currentTarget.style.border="2px solid rgba(255, 255, 255, 0.80)"),w||(e.currentTarget.style.boxShadow="0 2px 16px 0 rgba(0, 0, 0, 0.12)")},onMouseLeave:e=>{T||w||(e.currentTarget.style.border=C||"2px solid transparent"),w||(e.currentTarget.style.boxShadow="none")},children:[J,F&&P&&B&&(0,l.jsx)("div",{className:"absolute left-0 right-0 ".concat("top"===G?"top-0":"center"===G?"top-1/2 -translate-y-1/2":"bottom-0"),style:{paddingLeft:w?"8px":"15px",paddingRight:w?"8px":"15px",..."top"===G?{paddingTop:w?"8px":"15px"}:"center"===G?{}:{paddingBottom:w?"8px":"15px"}},children:(0,l.jsx)("p",{className:"break-words",style:{...Y,color:Y.color||"#ffffff"},children:P})})]}),ee=(0,l.jsxs)(l.Fragment,{children:[X,F&&P&&!B&&(0,l.jsx)(s.Z,{style:Y,wrapperStyle:{marginTop:w?"8px":"16px"},children:P})]});return r.linkUrl?(0,l.jsx)("a",{href:r.linkUrl,className:"block h-full w-full","aria-label":D?void 0:U,onClick:e=>{(0,g.Z)(e,()=>L((0,m.Wp)(!0)));let t="video"===M;null==A||A({action:t?"Video Clicked":"Image Clicked",item:{item_name:P||r.title,title:r.title,imageUrl:r.imageUrl,linkUrl:r.linkUrl,redirection_url:r.linkUrl,item_position:h,position:h,item_row:Math.floor(h/O)+1,item_column:h%O+1,row:Math.floor(h/O)+1,column:h%O+1}})},children:ee}):ee};h.propTypes={cell:r().shape({imageUrl:r().string,mediaUrl:r().string,mediaType:r().string,textContent:r().string,title:r().string,alt:r().string,linkUrl:r().string,background:r().shape({type:r().string,value:r().string})}).isRequired,index:r().number.isRequired,onVideoToggle:r().func.isRequired,videoRefs:r().shape({current:r().object}).isRequired,columnCount:r().number,aspectRatio:r().number,cellBorderRadius:r().number,cellBorderStyle:r().string,cellBorderThickness:r().number,gridTextStyle:r().shape({textEnabled:r().bool,innerText:r().bool,fontSize:r().string,fontWeight:r().oneOfType([r().string,r().number]),fontFamily:r().string,titleColor:r().string,horizontalAlignment:r().string,verticalAlignment:r().string}
1),isMobile:r().bool.isRequired,isEager:r().bool,isPriority:r().bool};let f=e=>{var t,i,o;let{rows:n,gridConfig:r,contentMap:a,videoRefs:d,onToggleVideoPlay:s,gridTextStyle:u,gridBorder:c,isMobile:v,isAboveFold:p,isLcpCandidate:g}=e,m=null!==(t=null==c?void 0:c.borderThickness)&&void 0!==t?t:0,f=(null==c?void 0:c.borderColor)||"transparent",x=m>0?"".concat(m,"px solid ").concat(f):v?void 0:"2px solid transparent",b=Math.max(...n.map(e=>e.columns||1),1),y=new Set,w=[],j=(e,t)=>e.cellId||e.id||t,S=(e,t)=>{let i=j(e,t),l=a.get(i);return l?{...e,...l}:e},C=(e,t,i,l)=>{if(t+l-1>b)return!1;for(let o=e;o<e+i;o+=1)for(let e=t;e<t+l;e+=1)if(y.has("".concat(o,"-").concat(e)))return!1;return!0},T=(e,t,i,l)=>{for(let o=e;o<e+i;o+=1)for(let e=t;e<t+l;e+=1)y.add("".concat(o,"-").concat(e))},R=1;n.forEach((e,t)=>{e.cells.forEach((t,i)=>{let l=S(t,"".concat(e.id,"-").concat(i)),o=Math.max(1,l.colSpan||1),n=Math.max(1,l.rowSpan||1),r=R,a=1,d=!1;for(;!d;){for(a=1;a<=b;){if(C(r,a,n,o)){T(r,a,n,o),w.push({key:j(l,"".concat(e.id,"-").concat(i)),cell:l,rowStart:r,colStart:a,rowSpan:n,colSpan:o}),d=!0;break}a+=1}d||(r+=1)}}),R=t+2});let k=w.reduce((e,t)=>Math.max(e,t.rowStart+t.rowSpan-1),1);return(0,l.jsx)("div",{className:"grid w-full",style:{gridTemplateColumns:"repeat(".concat(b,", minmax(0, 1fr))"),gridTemplateRows:"repeat(".concat(k,", auto)"),rowGap:null!==(i=r.rowGap)&&void 0!==i?i:0,columnGap:null!==(o=r.columnGap)&&void 0!==o?o:0},children:w.map((e,t)=>{var i,o,n,a;let f=null!==(n=null!==(o=null!==(i=e.cell.borderRadius)&&void 0!==i?i:null==c?void 0:c.borderRadius)&&void 0!==o?o:r.borderRadius)&&void 0!==n?n:0,y=e.cell.aspectRatio;return(0,l.jsx)("div",{style:{gridColumn:"".concat(e.colStart," / span ").concat(e.colSpan),gridRow:"".concat(e.rowStart," / span ").concat(e.rowSpan)},children:(0,l.jsx)(h,{cell:e.cell,index:t,onVideoToggle:s,videoRefs:d,gridTextStyle:u,columnCount:b,isMobile:v,aspectRatio:y,cellBorderRadius:null!==(a=e.cell.borderRadius)&&void 0!==a?a:f,cellBorderStyle:x,cellBorderThickness:m,isEager:p,isPriority:g})},e.key)})})};f.propTypes={rows:r().arrayOf(r().object).isRequired,gridConfig:r().object.isRequired,contentMap:r().instanceOf(Map).isRequired,videoRefs:r().object.isRequired,onToggleVideoPlay:r().func.isRequired,gridTextStyle:r().object,gridBorder:r().shape({borderRadius:r().number,borderThickness:r().number,borderColor:r().string}),isMobile:r().bool.isRequired,isAboveFold:r().bool,isLcpCandidate:r().bool};let x=e=>{var t,i,o;let{rows:n,gridConfig:r,contentMap:a,videoRefs:d,onToggleVideoPlay:s,gridTextStyle:u,gridBorder:c,isMobile:v,isAboveFold:p,isLcpCandidate:g}=e,m=(e,t)=>e.cellId||e.id||t,f=(e,t)=>{let i=m(e,t),l=a.get(i);return l?{...e,...l}:e},x=null!==(t=null==c?void 0:c.borderRadius)&&void 0!==t?t:0,b=null!==(i=null==c?void 0:c.borderThickness)&&void 0!==i?i:0,y=(null==c?void 0:c.borderColor)||"transparent",w=b>0?"".concat(b,"px solid ").concat(y):v?void 0:"2px solid transparent";return(0,l.jsx)("div",{id:"dynamic_grid-normal_grid",className:"w-full",style:{rowGap:null!==(o=r.rowGap)&&void 0!==o?o:0},children:n.map((e,t)=>{var i,o,a,c;let y=null!==(i=e.columns)&&void 0!==i?i:1,j=null!==(a=null!==(o=r.columnGap)&&void 0!==o?o:e.gap)&&void 0!==a?a:0;return(0,l.jsx)("div",{className:"grid",style:{gridTemplateColumns:"repeat(".concat(y,", minmax(0, 1fr))"),gap:j,marginBottom:(null==n?void 0:n.length)>1&&t<n.length-1&&null!==(c=r.rowGap)&&void 0!==c?c:0},children:e.cells.map((t,i)=>{var o,n,r,a;let c=f(t,"".concat(e.id,"-").concat(i)),j=null!==(o=c.colSpan)&&void 0!==o?o:1,S=null!==(n=c.rowSpan)&&void 0!==n?n:1,C=null!==(r=c.aspectRatio)&&void 0!==r?r:e.aspectRatio;return(0,l.jsx)("div",{style:{gridColumn:"span ".concat(j," / span ").concat(j),gridRow:"span ".concat(S," / span ").concat(S)},children:(0,l.jsx)(h,{cell:c,index:i,onVideoToggle:s,videoRefs:d,gridTextStyle:u,columnCount:y,isMobile:v,aspectRatio:C,cellBorderRadius:null!==(a=c.borderRadius)&&void 0!==a?a:x,cellBorderStyle:w,cellBorderThickness:b,isEager:p,isPriority:g})},m(c,"".concat(e.id,"-").concat(i)))})},e.id||"row-".concat(t))})})};x.propTypes={rows:r().arrayOf(r().object).isRequired,gridConfig:r().object.isRequired,contentMap:r().instanceOf(Map).isRequired,videoRefs:r().object.isRequired,onToggleVideoPlay:r().func.isRequired,gridTextStyle:r().object,gridBorder:r().shape({borderRadius:r().number,borderThickness:r().number,borderColor:r().str
1ing}),isMobile:r().bool.isRequired,isAboveFold:r().bool,isLcpCandidate:r().bool};let b=e=>{var t,i,o,n,r,a,d,s;let{cells:u,gridConfig:c={},videoRefs:v,onToggleVideoPlay:p,gridTextStyle:g={},gridBorder:m={},isMobile:f,isAboveFold:x,isLcpCandidate:b}=e,y=null!==(i=null!==(t=null==c?void 0:c.columnGap)&&void 0!==t?t:null==c?void 0:c.rowGap)&&void 0!==i?i:8,w=null!==(o=null==m?void 0:m.borderThickness)&&void 0!==o?o:0,j=(null==m?void 0:m.borderColor)||"transparent",S=w>0?"".concat(w,"px solid ").concat(j):f?void 0:"2px solid transparent",C=null!==(r=null!==(n=null==m?void 0:m.borderRadius)&&void 0!==n?n:null==c?void 0:c.borderRadius)&&void 0!==r?r:0,[T,R,k]=[null!==(a=null==u?void 0:u[0])&&void 0!==a?a:{},null!==(d=null==u?void 0:u[1])&&void 0!==d?d:{},null!==(s=null==u?void 0:u[2])&&void 0!==s?s:{}],L=(e,t,i,l)=>{var o;return{cell:e,index:t,onVideoToggle:p,videoRefs:v,gridTextStyle:g,columnCount:i,isMobile:f,aspectRatio:l,cellBorderRadius:null!==(o=e.borderRadius)&&void 0!==o?o:C,cellBorderStyle:S,cellBorderThickness:w,isEager:x,isPriority:b}};return(0,l.jsxs)("div",{className:"grid w-full grid-cols-2",style:{gap:y},id:"dynamic_grid-three_grid_bento-".concat(T.id||"cell0"),children:[(0,l.jsx)("div",{className:"col-span-2 md:col-span-1 md:row-span-2",children:(0,l.jsx)(h,{...L(T,0,f?1:2,f?"3/2":"8/5")})}),(0,l.jsx)("div",{children:(0,l.jsx)(h,{...L(R,1,2,f?"3/2":"16/5")})}),(0,l.jsx)("div",{children:(0,l.jsx)(h,{...L(k,2,2,f?"3/2":"16/5")})})]})};b.propTypes={cells:r().arrayOf(r().object).isRequired,gridConfig:r().object,videoRefs:r().object.isRequired,onToggleVideoPlay:r().func.isRequired,gridTextStyle:r().object,gridBorder:r().shape({borderRadius:r().number,borderThickness:r().number,borderColor:r().string}),isMobile:r().bool.isRequired,isAboveFold:r().bool,isLcpCandidate:r().bool};let y=()=>{let[e,t]=(0,o.useState)(new Set),i=(0,o.useRef)(new Map);return{playingVideos:e,videoRefs:i,toggleVideoPlay:l=>{let o=i.current.get(l);o&&(e.has(l)?(o.pause(),t(e=>{let t=new Set(e);return t.delete(l),t})):(o.play(),t(e=>new Set(e).add(l))))}}},w=e=>{let{layoutSnapshot:t,content:i=[],sectionSettings:n,isMobile:r,isAboveFold:a=!1,isLcpCandidate:d=!1}=e,{playingVideos:s,videoRefs:u,toggleVideoPlay:c}=y(),v=null==t?void 0:t.gridConfig,p=(0,o.useMemo)(()=>(null==v?void 0:v.rows)||[],[null==v?void 0:v.rows]),g=(null==v?void 0:v.gridType)==="bento",m=(null==n?void 0:n.gridTextStyle)||{},h=(null==n?void 0:n.gridBorder)||{},w=(e,t)=>e.cellId||e.id||t,j=(0,o.useMemo)(()=>{let e=new Map;return i.forEach((t,i)=>{let l=w(t,"content-".concat(i));e.set(l,t)}),e},[i]);if(!t||"grid"!==t.type||!v)return null;let S={rows:p,gridConfig:v,contentMap:j,playingVideos:s,videoRefs:u,onToggleVideoPlay:c,gridTextStyle:m,gridBorder:h,isMobile:r,isAboveFold:a,isLcpCandidate:d},C=p.flatMap(e=>{var t;return(null==e?void 0:null===(t=e.cells)||void 0===t?void 0:t.map((t,i)=>{let l=w(t,"".concat(e.id,"-").concat(i)),o=j.get(l);return o?{...t,...o}:t}))||[]});return g&&3===C.length?(0,l.jsx)(b,{cells:C,gridConfig:v,playingVideos:s,videoRefs:u,onToggleVideoPlay:c,gridTextStyle:m,gridBorder:h,isMobile:r,isAboveFold:a,isLcpCandidate:d}):g?(0,l.jsx)(f,{...S}):(0,l.jsx)(x,{...S})};w.propTypes={layoutSnapshot:r().object,content:r().arrayOf(r().object),sectionSettings:r().object,isMobile:r().bool.isRequired,isAboveFold:r().bool,isLcpCandidate:r().bool};var j=w},87939:function(e,t,i){"use strict";var l=i(3827),o=i(64090),n=i(74404),r=i.n(n),a=i(30828),d=i(79580),s=i(34835),u=i(74778);let c=e=>{var t,i,n,r,c;let{sectionSettings:v,isMobile:p,activeTabLabel:g,activeTabLink:m}=e,h=(0,a.I0)(),{onCellClick:f}=null!==(c=(0,d.L)())&&void 0!==c?c:{},x=null==v?void 0:null===(t=v.footer)||void 0===t?void 0:t.cta,b={paddingLeft:"".concat((null==v?void 0:null===(i=v.padding)||void 0===i?void 0:i.left)||0,"px"),paddingRight:"".concat((null==v?void 0:null===(n=v.padding)||void 0===n?void 0:n.right)||0,"px")},y=(0,o.useCallback)(e=>{x&&((0,s.Z)(e,()=>h((0,u.Wp)(!0))),null==f||f({action:"CTA Clicked",item:{item_name:x.text||"View All",redirection_url:x.linkUrl||void 0}}))},[f,x]);if(!x)return null;let w={color:x.textColor||"#1A1A1A",backgroundColor:x.backgroundColor||"#ffffff",borderColor:x.borderColor||"#1A1A1A",borderRadius:"".concat(x.borderRadius||0,"px"),borderWidth:"".concat(x.borderThickness||2,"px"),width:"full"===x.width?"100%":x.width||"auto",minWidth:"100px"};return(0,l.jsx)("div",{className:p?"mt-[20px] flex justify-center":"mt-[40px] flex justify-center",style:b,children:(0,l.jsxs)("a",{href:m||x.linkUrl||"#",rel:"noopener noreferrer","aria-label":"".concat(g?"".concat(x.text||"View All"," ").concat(g):x.text||"View All"," - ").concat((null==v?void 0:null===(r=v.header)||void 0===r?void 0:r.title)||"").trim(),className:"flex items-center justify-center gap-2 border border-solid px-16 py-8 font-medium transition-colors hover:opacity-80",style:{...w,minWidth:"328px"},onClick:y,children:[(0,l.jsx)("span",{className:"truncate",children:g?"".concat(x.text||"View All"," ").concat(g):x.text||"View All"}),x.showArrow&&(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M7.5 3.75L13.75 10L7.5 16.25",stroke:"#191A0B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})})};c.propTypes={sectionSettings:r().object,isMobile:r().bool.isRequired,activeTabLabel:r().str
1ing,activeTabLink:r().string},t.Z=c},46847:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return em}});var l=i(3827),o=i(74404),n=i.n(o),r=i(30828),a=i(64090),d=i(24232),s=i(73112),u=i(64267),c=i(40275);let v=e=>{var t,i,o,n,r;let{widget:a,isMobile:d,isAboveFold:v=!1,isLcpCandidate:p=!1}=e,g=null===(t=a.layoutSnapshot)||void 0===t?void 0:t.type,m={paddingLeft:"".concat((null===(o=a.sectionSettings)||void 0===o?void 0:null===(i=o.padding)||void 0===i?void 0:i.left)||0,"px"),paddingRight:"".concat((null===(r=a.sectionSettings)||void 0===r?void 0:null===(n=r.padding)||void 0===n?void 0:n.right)||0,"px")};return g===c.yP.GRID?(0,l.jsx)("div",{style:{...m,paddingTop:d?"0px":"20px",paddingBottom:d?"0px":"20px"},id:"collection_widget-grid",children:(0,l.jsx)(s.Z,{layoutSnapshot:a.layoutSnapshot,sectionSettings:a.sectionSettings,isMobile:d,isAboveFold:v,isLcpCandidate:p})}):g===c.yP.CAROUSEL?(0,l.jsx)("div",{id:"collection-widget-carousel",children:(0,l.jsx)(u.Z,{layoutSnapshot:a.layoutSnapshot,sectionSettings:a.sectionSettings,isMobile:d,isAboveFold:v,isLcpCandidate:p})}):(0,l.jsx)(l.Fragment,{})};v.propTypes={widget:n().object.isRequired,isMobile:n().bool.isRequired,isAboveFold:n().bool,isLcpCandidate:n().bool};let p=(0,d.default)(()=>i.e(69).then(i.bind(i,40069)),{loadableGenerated:{webpack:()=>[40069]},ssr:!0}),g=(0,d.default)(()=>i.e(3204).then(i.bind(i,23204)),{loadableGenerated:{webpack:()=>[23204]},ssr:!0}),m=(0,d.default)(()=>i.e(1745).then(i.bind(i,81745)),{loadableGenerated:{webpack:()=>[81745]},ssr:!1}),h=e=>{let{order:t,widget:i,isMobile:o,isAboveFold:n=!1,isLcpCandidate:r=!1}=e;if(!(null==i?void 0:i.widgetType))return null;switch(i.widgetType){case c.Lc.COLLECTIONS:return(0,l.jsx)(v,{widget:i,isMobile:o,isAboveFold:n,isLcpCandidate:r});case c.Lc.PRODUCT_COLLECTION:return(0,l.jsx)(p,{widget:i,isMobile:o,isAboveFold:n,isLcpCandidate:r});case c.Lc.PRODUCTS_WITH_TABS:return(0,l.jsx)(g,{widget:i,isMobile:o});case c.Lc.VIDEO:return(0,l.jsx)(m,{order:t,widget:i,isMobile:o});default:return null}};h.propTypes={order:n().number.isRequired,widget:n().object,isMobile:n().bool.isRequired,isAboveFold:n().bool,isLcpCandidate:n().bool};var f=i(79580),x=i(34835),b=i(74778);let y=e=>{var t,i,o,n,d,s,u,v,p,g,m,h,y,w,j,S,C,T,R,k,L,N,I,_;let{sectionSettings:A,isMobile:M,headingLevel:E,widgetType:P,layoutSnapshot:O}=e,U=(null==O?void 0:O.type)===c.yP.CAROUSEL||(null==O?void 0:O.type)===c.yP.GRID,D=P===c.Lc.PRODUCT_COLLECTION&&!U,q=new Set([c.Lc.PRODUCTS_WITH_TABS,c.Lc.VIDEO]).has(P)||D?"24px":"4px",F=(0,r.I0)(),{onCellClick:B}=null!==(_=(0,f.L)())&&void 0!==_?_:{},V=null==A?void 0:null===(t=A.header)||void 0===t?void 0:t.cta,Z=V&&(null==A?void 0:null===(i=A.header)||void 0===i?void 0:i.titleAlignment)==="left",W=(null==V?void 0:V.link)||(null==V?void 0:V.url)||"",z=(0,a.useCallback)(e=>{(0,x.Z)(e,()=>F((0,b.Wp)(!0))),null==B||B({action:"CTA Clicked",item:{item_name:(null==V?void 0:V.label)||"View All",redirection_url:W||void 0}})},[B,null==V?void 0:V.label,W]),H={paddingLeft:"".concat((null==A?void 0:null===(o=A.padding)||void 0===o?void 0:o.left)||0,"px"),paddingRight:"".concat((null==A?void 0:null===(n=A.padding)||void 0===n?void 0:n.right)||0,"px")},G={textAlign:(null==A?void 0:null===(d=A.header)||void 0===d?void 0:d.titleAlignment)||"left",color:(null==A?void 0:null===(s=A.header)||void 0===s?void 0:s.titleColor)||"#000000",fontSize:"".concat(null==A?void 0:null===(v=A.header)||void 0===v?void 0:null===(u=v.mainTitleStyle)||void 0===u?void 0:u.fontSize,"px")||0,fontWeight:(null==A?void 0:null===(g=A.header)||void 0===g?void 0:null===(p=g.mainTitleStyle)||void 0===p?void 0:p.fontWeight)||600,fontFamily:(null==A?void 0:null===(h=A.header)||void 0===h?void 0:null===(m=h.mainTitleStyle)||void 0===m?void 0:m.fontFamily)||"inherit"},Y={marginTop:M?"4px":"8px",textAlign:(null==A?void 0:null===(y=A.header)||void 0===y?void 0:y.subtextAlignment)||"left",color:(null==A?void 0:null===(w=A.header)||void 0===w?void 0:w.subtextColor)||"#000000",fontSize:(null==A?void 0:null===(S=A.header)||void 0===S?void 0:null===(j=S.subTextStyle)||void 0===j?void 0:j.fontSize)?"".concat(A.header.subTextStyle.fontSize,"px"):"16px",fontWeight:(null==A?void 0:null===(T=A.header)||void 0===T?void 0:null===(C=T.subTextStyle)||void 0===C?void 0:C.fontWeight)||400,fontFamily:(null==A?void 0:null===(k=A.header)||void 0===k?void 0:null===(R=k.subTextStyle)||void 0===R?void 0:R.fontFamily)||"inherit"},K=V?{color:V.textColor||"#0a0a0a",borderColor:V.borderColor||"#101010",borderRadius:"".concat(V.borderRadius||12,"px"),borderWidth:"".concat(V.borderThickness||1,"px"),width:V.width||"auto"}:{};return(0,l.jsxs)("div",{className:Z?"flex items-start justify-between":"",style:{marginBottom:M?"12px":q,...H},children:[(0,l.jsxs)("div",{className:Z?"flex-1":"",children:[(null==A?void 0:null===(L=A.header)||void 0===L?void 0:L.title)?a.createElement(E,{style:G,className:"m-0 p-0"},A.header.title):null,(null==A?void 0:null===(N=A.header)||void 0===N?void 0:N.subtext)?(0,l.jsx)("p",{style:Y,children:A.header.subtext}):null]}),Z&&W?(0,l.jsxs)("a",{href:W,"aria-label":"".concat(V.label||"View All"," ").concat((null==A?void 0:null===(I=A.header)||void 0===I?void 0:I.title)||"").trim(),className:"flex items-center gap-2 border border-solid px-16 py-8 font-medium transition-colors hover:opacity-80",style:K,onClick:z,children:[(0,l.jsx)("span",{children:V.label||"View All"}),V.showArrow&&(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":!0,
1children:(0,l.jsx)("path",{d:"M6 12l4-4-4-4",stroke:"currentColor",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})})]}):(0,l.jsx)(l.Fragment,{})]})};y.propTypes={sectionSettings:n().object,isMobile:n().bool.isRequired,headingLevel:n().oneOf(["h1","h2","h3","h4","h5","h6"]),widgetType:n().string,layoutSnapshot:n().object};var w=i(87939),j=i(15736),S=i(86183);let C=e=>{let{sectionSettings:t,order:i,children:o,widgetType:n,gridType:r}=e,a=null==t?void 0:t.background,d=(null==t?void 0:t.sectionWidth)==="contained",s=null==t?void 0:t.margin,u=null==t?void 0:t.padding,c={paddingTop:"".concat((null==u?void 0:u.top)||0,"px"),paddingBottom:"".concat((null==u?void 0:u.bottom)||0,"px"),marginTop:"".concat((null==s?void 0:s.top)||0,"px"),marginBottom:"".concat((null==s?void 0:s.bottom)||0,"px"),marginLeft:"".concat((null==s?void 0:s.left)||0,"px"),marginRight:"".concat((null==s?void 0:s.right)||0,"px")},v=[d?"mx-auto w-full max-w-[min(1200px,100vw)]":"max-w-[100vw] overflow-x-hidden","box-border min-w-0"].filter(Boolean).join(" "),p=(()=>{if(!(null==a?void 0:a.value))return(null==a?void 0:a.fallbackColor)?{backgroundColor:a.fallbackColor}:{};switch(a.type){case"gradient":return{background:a.value};case"color":return{backgroundColor:a.value};default:return a.fallbackColor?{backgroundColor:"#ffffff"}:{}}})(),g=((null==s?void 0:s.left)||0)+((null==s?void 0:s.right)||0),m=window.matchMedia("(prefers-reduced-motion: reduce)").matches;return(0,l.jsx)("section",{"data-order":i,"data-widget-type":n,"data-grid-type":r,"data-component":"BackgroundRenderer","aria-label":n||"Page section",children:(0,l.jsxs)("div",{className:"relative box-border w-full min-w-0 overflow-x-hidden",style:{...c,...p,...g>0?{maxWidth:"calc(100vw - ".concat(g,"px)")}:{maxWidth:"100vw"}},children:[(null==a?void 0:a.type)==="video"&&a.value&&!m&&(0,l.jsx)("div",{className:"absolute inset-0",style:{zIndex:0},"aria-hidden":"true",children:(0,l.jsx)(j.Z,{videoUrl:a.value,isAutoPlay:!0,isMuted:!0,isLoop:!0,isPlaysInline:!0,classes:"h-full w-full object-cover",title:"Background video"})}),(null==a?void 0:a.type)==="image"&&a.value&&(0,l.jsx)("div",{className:"absolute inset-0",style:{zIndex:0},"aria-hidden":"true",children:(0,l.jsx)(S.default,{src:a.value,alt:"Background image",width:0,height:0,fill:!0,sizes:"100vw",style:{objectFit:"cover"}})}),(0,l.jsx)("div",{className:"".concat(v," relative"),style:{zIndex:1},children:o})]})})};C.propTypes={sectionSettings:n().shape({background:n().shape({type:n().string,value:n().string,fallbackColor:n().string}),sectionWidth:n().string,margin:n().shape({top:n().number,bottom:n().number,left:n().number,right:n().number}),padding:n().shape({top:n().number,bottom:n().number})}),order:n().oneOfType([n().number,n().string]),children:n().node.isRequired,widgetType:n().string,gridType:n().string};var T=i(52426),R=i(96333),k=i(44923),L=i(79882),N=i(1729);let I=e=>!0===e||"Y"===e||1===e,_=e=>{if(!e)return;let t=String(e).toLowerCase();return t===c.yP.GRID||"grid"===t?"Grid":t===c.yP.CAROUSEL||"carousel"===t?"Carousel":"bento"===t?"Bento":"product_tile"===t||"producttile"===t?"Product Tile":e},A=e=>!0===e||"Y"===e||1===e||"yes"===e;var M=()=>{let{trackEvent:e}=(0,R.Z)(),t=function(){let e=(0,r.v9)(e=>e.appConfig.catalogId),t=(0,r.v9)(e=>e.appConfig.isMobile),i=(0,r.v9)(e=>{var t,i,l;return null!==(l=null===(i=e.dynamicHome)||void 0===i?void 0:null===(t=i.pageStores)||void 0===t?void 0:t.length)&&void 0!==l?l:0}),{selectedDomesticLocation:l,selectedIntLocation:o}=(0,r.v9)(e=>{var t,i;return{selectedDomesticLocation:null===(t=e.locationLock)||void 0===t?void 0:t.selectedDomesticLocation,selectedIntLocation:null===(i=e.locationLock)||void 0===i?void 0:i.selectedIntLocation}},r.wU),n=N.default.getCookie(L.Yo),d=N.default.getCookie(L.Tr),s=N.default.getCookie(L.rA);return(0,a.useMemo)(()=>{let r=e===k.od.INDIA,a=n||(null==l?void 0:l.pincode),u=d||(null==l?void 0:l.address);return{page_name:T.PN.HOME,page_type:T.PN.HOME,pincode:r&&null!=a?a:null,area:r&&null!=u?u:null,system_pincode:r&&null!=a?a:null,country:e,city:r?null:(null==o?void 0:o.location)||s||null,platform:t?"mobile":"desktop",mobileStoreCount:i}},[e,t,i,d,s,n,null==l?void 0:l.address,null==l?void 0:l.pincode,null==o?void 0:o.location])}(),i=(0,a.useCallback)(function(){var i,l,o,n,r,a,d,s,u,c,v,p,g,m,h,f,x,b,y,w,j,S,C,R;let{action:k="Image Clicked",widget:L={},item:N={},context:_={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},M={...t,..._},E=function(e){var t,i,l,o,n,r;let a=e||{};return{is_carousel:I(null!==(t=a.is_carousel)&&void 0!==t?t:a.isCarousel),is_having_product:I(null!==(i=a.is_having_product)&&void 0!==i?i:a.isHavingProduct),is_having_image:I(null!==(l=a.is_having_image)&&void 0!==l?l:a.isHavingImage),is_having_cta:I(null!==(o=a.is_having_cta)&&void 0!==o?o:a.isHavingCta),is_having_video:I(null!==(n=a.is_having_video)&&void 0!==n?n:a.isHavingVideo),is_masthead:I(null!==(r=a.is_masthead)&&void 0!==r?r:a.isMasthead)}}(L),P=void 0!==N.is_international&&null!==N.is_international?N.is_international:null!==(n=L.is_international)&&void 0!==n?n:L.isInternational,O=null!==(r=L.is_international)&&void 0!==r?r:L.isInternational,U=null!=P?A(P):null!=O&&A(O),D={action:k,widget_name:L.name,widget_id:L.id,widget_position:L.position,widget_layout_type:L.layoutType,page_name:null!==(a=M.page_name)&&void 0!==a?a:M.pageName,page_type:null!==(s=null!==(d=M.page_type)&&void 0!==d?d:M.pageType)&&void 0!==s?s:"HOME",pincode:M.pincode,area:M.area,system_pincode:null!==(u=M.system_pincode)&&void 0!==u?u:M.systemPincode,country:M.country,city:M.city,browsing_city:null!==(c=M.browsing_city)&&void 0!==c?c:M.browsingCity,platform:M.platform,pid:null!==(v=N.pid)&&void 0!==v?v:N.productId,product_category:null!==(g=null!==(p=N.product_category)&&void 0!==p?p:N.productCategory)&&void 0!==g?g:N.primaryCategoryId,sku_id:N.sku_id,redirection_url:null!==(h=null!==(m=N.redirection_url)&&void 0!==m?m:N.redirectionUrl)&&void 0!==h?h:N.linkUrl,item_name:null!==(x=null!==(f=N.item_name)&&void 0!==f?f:N.itemName)&&void 0!==x?x:N.title,item_row:null!==(b=N.item_row)&&void 0!==b?b:N.row,item_column:null!==(y=N.item_column)&&void 0!==y?y:N.column,item_position:null!==(w=N.item_position)&&void 0!==w?w:N.position,store_name:null!==(C=null!==(S=null!==(j=N.store_name)&&void 0!==j?j:N.storeName)&&void 0!==S?S:L.store_name)&&void 0!==C?C:L.storeName,...E,is_masthead:"mobile"===M.platform&&(null!==(R=M.mobileStoreCount)&&void 0!==R?R:0)>1||E.is_masthead,is_international:U,campaignId:null===(i=L.tracking)||void 0===i?void 0:i.campaignId,group:null===(l=L.tracking)||void 0===l?void 0:l.group,segmentId:null===(o=L.tracking)||void 0===o?void 0:o.segmentId};e(T.dR.widgetClicked,D,["clevertap"]),e(T.dR.widgetClicked,D,["CDP"])},[t,e]);return{triggerWidgetItemClickEvent:i,triggerWidgetClickEvent:i}};let E=e=>{var t;let{order:i,widget:o,isMobile:n,isAboveFold:r=!1,isLcpCandidate:d=!1,isMasthead:s=!1,storeName:u,tracking:v}=e,{triggerWidgetItemClickEvent:p}=M(),g=(0,a.useCallback)(function(){let{action:e="Image Clicked",item:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o&&p({action:e,item:t,widget:function(e,t){var i,l,o,n,r,a;let{isMasthead:d=!1,storeName:s,tracking:u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return{};let{widgetType:v,sectionSettings:p,layoutSnapshot:g}=e,m=null==p?void 0:null===(i=p.header)||void 0===i?void 0:i.cta,h=null==p?void 0:null===(l=p.footer)||void 0===l?void 0:l.cta,f=null==g?void 0:g.type,x=v===c.Lc.PRODUCT_COLLECTION||v===c.Lc.PRODUCTS_WITH_TABS,b=v===c.Lc.COLLECTIONS,y=v===c.Lc.VIDEO,w=u&&"object"==typeof u&&Object.keys(u).length>0?{...u}:void 0;return{name:null!==(n=e.name)&&void 0!==n?n:e.key,id:null!==(r=e.key)&&void 0!==r?r:e.widgetId,position:t,layoutType:_(f),isCarousel:f===c.yP.CAROUSEL||y&&Array.isArray(null===(o=e.typeConfig)||void 0===o?void 0:o.stories)&&e.typeConfig.stories.length>1,isMasthead:d||"MASTHEAD"===v,storeName:null!==(a=null!=s?s:e.storeName)&&void 0!==a?a:e.store_name,is_having_cta:!!(m||h),is_having_product:x,is_having_image:b||x,is_having_video:y,tracking:w}}(o,i,{isMasthead:s,storeName:u,tracking:v})})},[o,i,s,u,v,p]);if(!o)return null;let{sectionSettings:m,widgetType:x,layoutSnapshot:b}=o;return(0,l.jsx)(f.F,{value:{onCellClick:g},children:(0,l.jsxs)(C,{sectionSettings:m,order:i,widgetType:x,gridType:null==b?void 0:b.type,children:[(null==m?void 0:null===(t=m.header)||void 0===t?void 0:t.t
1itle)?(0,l.jsx)(y,{sectionSettings:m,isMobile:n,headingLevel:"h2",widgetType:x,layoutSnapshot:b}):null,(0,l.jsx)("div",{className:"min-w-0",children:(0,l.jsx)(h,{order:i,widget:o,isMobile:n,isAboveFold:r,isLcpCandidate:d})}),x!==c.Lc.PRODUCTS_WITH_TABS&&(0,l.jsx)(w.Z,{sectionSettings:m,isMobile:n})]})})};E.propTypes={order:n().number.isRequired,widget:n().object,isMobile:n().bool.isRequired,isAboveFold:n().bool,isLcpCandidate:n().bool,isMasthead:n().bool,storeName:n().string,tracking:n().shape({campaignId:n().string,group:n().string,segmentId:n().string})};var P=i(28623),O=i(96326);let U=e=>{let{widgets:t,isMobile:i,isCampaignLoading:o}=e;return(0,l.jsxs)(l.Fragment,{children:[o&&!i&&(0,l.jsx)(P.Z,{isShowLottie:!1,position:"fixed",zIndex:"z-[999]",backdropBlur:"15px"}),null==t?void 0:t.map((e,t)=>{if(null==e||"object"!=typeof e)return null;let{order:o,widget:n}=e;if(!n)return null;let r=(0,O.nw)(n);return(0,l.jsx)(E,{isMobile:i,order:null!=o?o:t+1,widget:n,tracking:null==n?void 0:n.tracking,isAboveFold:r,isLcpCandidate:r},null!=o?o:t)})]})};U.propTypes={widgets:n().arrayOf(n().shape({order:n().number,widget:n().object})).isRequired,isMobile:n().bool.isRequired,isCampaignLoading:n().bool.isRequired};var D=i(76501),q=i(45392);let F=e=>{let{src:t,classes:i="",fit:o=q.Fit.Cover,alignment:n=q.Alignment.Center}=e,r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!t||!r.current)return;let e=new q.Rive({src:t,canvas:r.current,autoplay:!0,layout:new q.Layout({fit:o,alignment:n}),onLoad:()=>e.resizeDrawingSurfaceToCanvas()}),i=()=>e.resizeDrawingSurfaceToCanvas();return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),e.cleanup()}},[t,o,n]),(0,l.jsx)("canvas",{ref:r,className:i,style:{width:"100%",height:"100%"}})};F.propTypes={src:n().string.isRequired,classes:n().string,fit:n().string,alignment:n().string};var B=i(85776),V=i(28771),Z=i(36849),W=i(5784);let z=e=>{switch(null==e?void 0:e.mediaType){case"gradient":return{background:e.mediaValue};case"color":return{backgroundColor:e.mediaValue};default:return{}}},H=e=>{if(!e)return{};let{radiusPx:t,thicknessPx:i,border:l}=e,o=null==l?void 0:l.mediaValue;return{...void 0!==t&&{borderRadius:"".concat(t,"px")},...i&&o&&{border:"".concat(i,"px solid ").concat(o)}}},G=(e,t)=>{let i;let l=t.offsetLeft,o=l+t.offsetWidth,n=e.scrollLeft,r=e.offsetWidth,a=null;if(l-40<n?a=l-40:o+40>n+r&&(a=o+40-r),null===a)return()=>{};let d=a-n,s=null,u=e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,c=t=>{s||(s=t);let l=Math.min((t-s)/420,1);e.scrollLeft=n+d*u(l),l<1&&(i=requestAnimationFrame(c))};return i=requestAnimationFrame(c),()=>cancelAnimationFrame(i)},Y=e=>{null==e||e.forEach(e=>{var t,i;let l=null==e?void 0:null===(i=e.storeStyle)||void 0===i?void 0:null===(t=i.img)||void 0===t?void 0:t.inActiveUrl;if(!l)return;let o=()=>{new window.Image().src=l};"requestIdleCallback"in window?requestIdleCallback(o,{timeout:1e4}):setTimeout(o,1e4)})},K=e=>{var t,i,o,n,d;let{mastHeadData:s}=e,u=(0,r.I0)(),c=null!==(o=null==s?void 0:s.find(e=>e.isSelected))&&void 0!==o?o:null==s?void 0:s[0],v=null==c?void 0:null===(i=c.storeStyle)||void 0===i?void 0:null===(t=i.background)||void 0===t?void 0:t.inActiveForOthers,p=(0,a.useRef)([]),g=(0,a.useRef)(null),m=N.default.getCookie("faul")||"",h=N.default.getCookie("ab_user_id"),f=(0,r.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.locationLock)||void 0===i?void 0:null===(t=i.selectedDomesticLocation)||void 0===t?void 0:t.pincode}),x=null!==(n=null==s?void 0:s.findIndex(e=>e.isSelected))&&void 0!==n?n:0,b=(null!==(d=null==s?void 0:s.length)&&void 0!==d?d:0)>4?"shrink-0 basis-[calc((100%-2.25rem-1rem)/4)] overflow-hidden shadow-[0_1px_2px_0_rgba(0,0,0,0.1)] duration-300":"min-w-0 flex-1 overflow-hidden shadow-[0_1px_2px_0_rgba(0,0,0,0.1)] duration-300";return(0,a.useEffect)(()=>{Y(s)},[]),(0,a.useEffect)(()=>{let e=p.current[x],t=g.current;if(e&&t)return G(t,e)},[x]),(0,l.jsx)("nav",{"aria-label":"Brand stores",children:(0,l.jsx)("div",{ref:g,className:"scrollbar-hide -mx-1 flex gap-12 overflow-x-auto px-[15px] py-[10px] xxs:py-[12px] xxsplus:py-[14px] xxsmax:py-[16px]",children:null==s?void 0:s.map((e,t)=>{var i,o,n,r,a,d,c,g,x,y,w,j;let C=null!==(y=e.isSelected)&&void 0!==y?y:0===t,T=z(C?null===(o=e.storeStyle)||void 0===o?void 0:null===(i=o.background)||void 0===i?void 0:i.active:v),R=H(null===(n=e.storeStyle)||void 0===n?void 0:n.border),k=null===(a=e.storeStyle)||void 0===a?void 0:null===(r=a.img)||void 0===r?void 0:r.url,L=null===(c=e.storeStyle)||void 0===c?void 0:null===(d=c.img)||void 0===d?void 0:d.inActiveUrl,N=(null===(x=e.storeStyle)||void 0===x?void 0:null===(g=x.img)||void 0===g?void 0:g.alt)||e.name||"Brand",I=(0,W.Y)(e)||e.name||"Brand ".concat(t+1);return(0,l.jsx)("button",{ref:e=>p.current[t]=e,"aria-label":I,"aria-pressed":C,className:b,style:{aspectRatio:"75 / 36",...T,...R,backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",transition:"background 0.3s ease, border 0.3s ease",border:"1px solid rgba(0, 0, 0, 0.16)"},onClick:()=>{C||((0,W.BA)((0,W.K2)(e,s)),u((0,Z.zV)({storeId:e.storeId,storeName:(0,W.Y)(e),stores:s,pincode:f,email:m,fnpId:h,forceCall:!0})))},children:k&&(0,l.jsx)("div",{className:"h-full w-full",children:(0,l.jsx)(S.default,{src:C?k:(null==L?void 0:L.length)>0?L:k,alt:N,className:"h-full w-full object-contain",width:100,height:100,placeholder:"empty",isPriority:!0})},C?k:(null==L?void 0:L.length)>0?L:k)},null!==(j=null!==(w=e.storeId)&&void 0!==w?w:e.id)&&void 0!==j?j:t)})})})};K.propTypes={mastHeadData:n().arrayOf(n().object)};var Q=a.memo(K,(e,t)=>{let i=e.mastHeadData,l=t.mastHeadData;return!!i&&!!l&&i.length===l.length&&i.every((e,t)=>e.storeId===l[t].storeId&&e.isSelected===l[t].isSelected)}),$=i(63890),J=i.n($);let X=e=>{let{src:t}=e,i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e;if(!i.current||!t)return;let l=!1;return fetch(t).then(e=>e.json()).then(t=>{!l&&i.current&&(e=J().loadAnimation({container:i.current,renderer:"svg",loop:!0,autoplay:!0,animationData:t}))}).catch(()=>{}),()=>{l=!0,null==e||e.destroy()}},[t]),(0,l.jsx)("div",{ref:i,className:"h-full w-full"})};X.propTypes={src:n().string.isRequired};let ee=e=>{var t,i,o,n,r,d,s,u;let{mastHeadData:v,menuData:p,currencyListWithHeaders:g}=e,m=null!==(n=null==v?void 0:v.find(e=>e.isSelected))&&void 0!==n?n:null==v?void 0:v[0],h=null==m?void 0:m.mastHeadBg,f=null!==(r=null==m?void 0:null===(t=m.storeStyle)||void 0===t?void 0:t.stripPaddingBottomPx)&&void 0!==r?r:10,x=null==m?void 0:null===(i=m.storeStyle)||void 0===i?void 0:i.previewHeaderTextIconColor,b=(0,a.useRef)(null),y=(0,a.useRef)(null),[w,C]=(0,a.useState)(!1),[T,R]=(0,a.useState)(0),k=(null==h?void 0:h.mediaType)===c.oZ.VIDEO,L=(null==h?void 0:h.mediaType)===c.oZ.LOTTIE,N=(null==h?void 0:h.mediaType)===c.oZ.RIVE,I=(null==h?void 0:h.mediaType)===c.oZ.IMAGE,_=(null==h?void 0:h.mediaType)===c.oZ.COLOR,A=(null==h?void 0:h.mediaType)===c.oZ.GRADIENT,M=(0,a.useRef)(null==m?void 0:m.storeId),P=(0,a.useRef)(!1),O=P.current&&M.current!==(null==m?void 0:m.storeId);return(0,a.useEffect)(()=>{P.current=!0,M.current=null==m?void 0:m.storeId},[null==m?void 0:m.storeId]),(0,a.useEffect)(()=>{let e=b.current,t=y.current;if(!e||!t)return;let i=()=>{R(t.offsetHeight||0)},l=()=>{C(e.getBoundingClientRect().top<=0)};i(),l();let o=new ResizeObserver(()=>{i(),l()});return o.observe(t),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l,{passive:!0}),()=>{o.disconnect(),window.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[null==m?void 0:m.storeId]),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"relative block w-full overflow-x-hidden transition-colors duration-500 ease-in-out md:hidden",style:{..._||A?{background:h.mediaValue}:{background:(null==h?void 0:h.fallbackColor)||(null==m?void 0:null===(u=m.storeStyle)||void 0===u?void 0:null===(s=u.background)||void 0===s?void 0:s.active)||"#ffffff"}},children:(0,l.jsxs)("div",{className:"grid w-full",children:[(0,l.jsxs)("div",{className:"w-full",style:{gridArea:"1/1"},children:[I&&(null==h?void 0:h.mediaValue)&&(0,l.jsx)(S.default,{src:h.mediaValue,alt:(null==h?void 0:h.alt)||"".concat((null==m?void 0:m.storeName)||(null==m?void 0:m.name)||"FNP"," homepage banner"),className:"h-full w-full object-cover",fill:!0,isPriority:!0}),k&&(null==h?void 0:h.mediaValue)&&(0,l.jsx)(j.Z,{videoUrl:h.mediaValue,classes:"h-full w-full object-cover",isAutoPlay:!0,isLoop:!0,isMuted:!0,isPlaysInline:!0,preload:"auto"}),L&&(null==h?void 0:h.mediaValue)&&(0,l.jsx)(X,{src:h.mediaValue}),N&&(null==h?void 0:h.mediaValue)&&(0,l.jsx)(F,{src:h.mediaValue,classes:"h-full w-full"})]}),(0,l.jsxs)("div",{className:"w-full max-w-[100vw]",style:{gridArea:"1/1"},children:[(0,l.jsx)("div",{ref:b,className:"pointer-events-none h-0 w-full","aria-hidden":"true"}),(0,l.jsx)("div",{style:w?{height:T}:void 0,children:(0,l.jsx)("div",{ref:y,className:w?"fixed inset-x-0 top-0 z-50":"relative z-50",children:(0,l.jsx)(V.default,{isMobile:!0,menuData:p,isTransparentOnMobile:!0,isTopBanner:!1,headerTextIconColor:x,catalogId:"india",currencyListWithHeaders:g})})}),(0,l.jsx)("div",{className:"relative top-0 bg-transparent pl-[15px] pr-[15px]",children:(0,l.jsx)(B.default,{catalogId:"india",searchBarStyles:{zIndex:"10",position:"relative",display:"flex"},inputClasses:"!h-[42px] xxs:!h-[44px] xxsplus:!h-[46px] xxsmax:!h-[48px]",isGiftFinderEnabled:!0})}),(null==v?void 0:v.length)>1?(0,l.jsx)(Q,{mastHeadData:v}):null,(0,l.jsx)("div",{className:O?"animate-fadeIn":"",style:{paddingTop:"".concat(L?0:f,"px")},children:null==m?void 0:null===(o=m.curatedWidgets)||void 0===o?void 0:o.map((e,t)=>{var i;return(0,l.jsx)(E,{order:t+1,widget:e,isMasthead:!0,storeName:null==m?void 0:m.storeName,isMobile:!0},null!==(i=e.widgetId)&&void 0!==i?i:t)})},null!==(d=null==m?void 0:m.storeId)&&void 0!==d?d:0)]})]})})})};ee.propTypes={mastHeadData:n().arrayOf(n().object),menuData:n().array,currencyListWithHeaders:n().object};var et=i(44377),ei=i(56260),el=i(41791),eo=()=>(0,l.jsxs)("div",{className:"bg-white w-full overflow-hidden px-[15px] pt-[16px]",children:[(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"180px",width:"100%"}}),(0,l.jsx)("div",{className:"mt-[24px] flex gap-[8px] overflow-hidden",children:Array.from({length:4},(e,t)=>(0,l.jsxs)("div",{className:"flex flex-shrink-0 flex-col items-center gap-[8px]",children:[(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"100px",width:"100px"}}),(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"12px",width:"64px"}})]},t))}),(0,l.jsx)("div",{className:"mt-[24px]",children:(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"20px",width:"160px"}})}),Array.from({length:2},(e,t)=>(0,l.jsx)("div",{className:"mt-[12px] grid grid-cols-2 gap-[12px]",children:Array.from({length:2},(e,t)=>(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"160px",width:"100%"}}),(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"14px",width:"100%"}}),(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"14px",width:"75%"}}),(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"12px",width:"50%"}})]},t))},t)),(0,l.jsx)("div",{className:"mt-[24px]",children:(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"20px",width:"192px"}})}),(0,l.jsx)("div",{className:"mt-[12px] flex gap-[12px] overflow-hidden",children:Array.from({length:3},(e,t)=>(0,l.jsxs)("div",{className:"flex w-[140px] flex-shrink-0 flex-col gap-[8px]",children:[(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"140px",width:"140px"}}),(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"12px",width:"100%"}}),(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"12px",width:"66%"}})]},t))}),(0,l.jsx)("div",{className:"mt-[24px]",children:(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"20px",width:"144px"}})}),(0,l.jsx)("div",{className:"mb-[24px] mt-[12px] grid grid-cols-2 gap-[12px]",children:Array.from({length:2},(e,t)=>(0,l.jsxs)("div",{className:"flex flex-col gap-[8px]",children:[(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"120px",width:"100%"}}),(0,l.jsx)(el.Z,{variant:"rounded",animation:"pulse",customStyle:{height:"12px",width:"100%"}})]},t))})]}),en=i(92217),er=i(43404);function ea(e){let{order:t}=null!=e?e:{};return"number"==typeof t?t:void 0}function ed(e,t){var i,l,o;if(!e||"object"!=typeof e)return[];
1if(Array.isArray(e.widgets))return e.widgets.filter(Boolean);let n=Array.isArray(e.stores)?e.stores:[];if(0===n.length)return[];let r=t?n.find(e=>e.storeId===t):null!==(l=n.find(e=>e.isSelected))&&void 0!==l?l:n[0];return null!==(o=null==r?void 0:null===(i=r.feed)||void 0===i?void 0:i.widgets)&&void 0!==o?o:[]}function es(e,t){if(!Array.isArray(e)||0===e.length)return Array.isArray(e)?[...e]:[];if(!Array.isArray(t)||0===t.length)return[...e];let i=new Map;for(let e of t){let t=ea(e);void 0!==t&&i.set(t,e)}return 0===i.size?[...e]:e.map(e=>{var t;let l=ea(e),o=void 0!==l?i.get(l):void 0;if(!o)return e;let n=o.widget&&"object"==typeof o.widget?o.widget:o;return(null==n?void 0:n.widgetType)?{...e,order:l,tracking:null!==(t=o.tracking)&&void 0!==t?t:e.tracking,widget:n}:e})}var eu=e=>{let{isMobile:t,serverPageData:i,userUUID:l}=e,o=(0,r.I0)(),[n,d]=(0,a.useState)(!0),s=(0,r.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.loginSignUp)||void 0===i?void 0:null===(t=i.userDetails)||void 0===t?void 0:t.emailID},r.wU);return(0,a.useLayoutEffect)(()=>{var e,n,r,a;let u=!1;d(!0);let c=setTimeout(()=>{u||d(!1)},100),v=async()=>{try{var e,n,r,a;let d=l||N.default.getCookie("ab_user_id")||"",c=s||N.default.getCookie("faul")||"",v=N.default.getCookie(L.Yo)||"";if(t){let t=null!==(n=null==i?void 0:i.stores)&&void 0!==n?n:[],l=function(e){var t;if(Array.isArray(e)&&0!==e.length)return null!==(t=e.find(e=>e.isSelected))&&void 0!==t?t:e[0]}(t),a=null==l?void 0:l.storeId,s=(null==l?void 0:l.storeName)||(null==l?void 0:l.name),p=null!==(r=null==l?void 0:null===(e=l.feed)||void 0===e?void 0:e.widgets)&&void 0!==r?r:[];if(!a||!p.length)return;let g=await (0,er.pc)({isMobile:!0,storeName:s,fnpId:d,email:c,pincode:v,campaignWidgetsOnly:!0});if(u)return;let m=ed(g,a);if(m.length>0){let e=es(p,m);o((0,Z.xj)({storeId:a,widgets:e,stores:t}))}return}let p=null!==(a=null==i?void 0:i.widgets)&&void 0!==a?a:[];if(!p.length)return;let g=await (0,er.pc)({isMobile:!1,fnpId:d,email:c,pincode:v,campaignWidgetsOnly:!0});if(u)return;let m=ed(g);if(m.length>0){let e=es(p,m);o((0,Z.ln)(e))}}catch(e){}};return(t?(null!==(r=null==i?void 0:null===(e=i.stores)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0:(null!==(a=null==i?void 0:null===(n=i.widgets)||void 0===n?void 0:n.length)&&void 0!==a?a:0)>0)&&v(),()=>{u=!0,clearTimeout(c),d(!1)}},[t,null==i?void 0:i.widgets]),n},ec=i(96079),ev=i(46723),ep=i(2571);i(55768),i(8694);let eg=e=>{var t,i,o,n;let{isMobile:d,serverPageData:s,menuData:u,userUUID:c,catalogId:v,freeBannerData:p,currencyListWithHeaders:g}=e,m=(0,r.I0)(),h=(0,en.Z)(),{init:f,trackEvent:x}=(0,R.Z)(),{recallABTestingHook:b}=(0,ep.p)(),{loginDetail:y,emailID:w,pageStoresRedux:j,dekstopReduxWidgets:S,isLoading:C}=(0,r.v9)(e=>{var t,i,l,o,n,r;return{loginDetail:null==e?void 0:null===(t=e.fus)||void 0===t?void 0:t.loginDetail,emailID:null==e?void 0:null===(l=e.loginSignUp)||void 0===l?void 0:null===(i=l.userDetails)||void 0===i?void 0:i.emailID,pageStoresRedux:null==e?void 0:null===(o=e.dynamicHome)||void 0===o?void 0:o.pageStores,dekstopReduxWidgets:null==e?void 0:null===(n=e.dynamicHome)||void 0===n?void 0:n.desktopWidgets,isLoading:null==e?void 0:null===(r=e.dynamicHome)||void 0===r?void 0:r.isLoading}},r.wU),I=(0,a.useRef)(null==y?void 0:y.loggedin),_=N.default.getCookie(L.Yo),A=N.default.getCookie(L.Tr),M=N.default.getCookie(L.rA),E=(null===N.default||void 0===N.default?void 0:N.default.getCookie(L.RL))===L.q$,O=window.location.pathname?window.location.pathname:"",q=window.location.href?window.location.href:"",F=[],B=null,V=[];if(d)V=null!==(o=null==(B=(F=j.length>0?j:null!==(i=null==s?void 0:s.stores)&&void 0!==i?i:[]).find(e=>e.isSelected))?void 0:null===(t=B.feed)||void 0===t?void 0:t.widgets)&&void 0!==o?o:[];else{let e=null!==(n=null==s?void 0:s.widgets)&&void 0!==n?n:[];V=(null==S?void 0:S.length)>0?S:e}(0,a.useEffect)(()=>{f(),(0,N.setCookieIfAbsent)("ab_user_id",c),(0,ev.Mj)(ev.c7.HOME),m((0,ec.Ep)(d)),m((0,ec.K6)(v))},[]);let Z=eu({isMobile:d,serverPageData:s,userUUID:c}),W=(0,a.useMemo)(()=>{let e=v!==k.od.INDIA?null:_;return{complete_url:q,country:v,city:v!==k.od.INDIA?M:null,area:v!==k.od.INDIA?null:A,pincode:e,system_pincode:e}},[v,q,A,_,M]),z=(0,a.useMemo)(()=>({clean_url:O,page_name:T.PN.HOME,page_type:T.PN.HOME,login_status:null==y?void 0:y.loggedin,is_international:v!==k.od.INDIA,is_smartbuy_user:E,store_name:null==B?void 0:B.storeName,...W}),[v,W,E,null==y?void 0:y.loggedin,O]),H=(0,a.useMemo)(()=>({store_name:null==B?void 0:B.storeName,pincode:null==W?void 0:W.pincode,city:null==W?void 0:W.city}),[null==W?void 0:W.city,null==W?void 0:W.pincode,null==B?void 0:B.storeName]),G=(0,a.useCallback)(()=>{let e=function(){if("undefined"==typeof document)return"";try{let{referrer:e}=document;return e?new URL(e).pathname:""}catch(e){return""}}();return{...z,internal_source_type:(0,ev.Vb)(e),internal_source:e}},[z]);return(0,a.useEffect)(()=>{let e=I.current!==(null==y?void 0:y.loggedin),t=G();e&&((null==y?void 0:y.loggedin)!==void 0&&x(null===T.dR||void 0===T.dR?void 0:T.dR.homePageViewed,t,["clevertap"]),null==b||b(),I.current=null==y?void 0:y.loggedin),(null==y?void 0:y.loggedin)&&w?x(null===T.dR||void 0===T.dR?void 0:T.dR.homePageViewed,{...t,user_id:w},["CDP"]):(null==y?void 0:y.loggedin)!==!1||w||x(null===T.dR||void 0===T.dR?void 0:T.dR.homePageViewed,{...t,user_id:""},["CDP"])},[null==y?void 0:y.loggedin,w]),(0,a.useEffect)(()=>{(null==H?void 0:H.store_name)&&d&&(x(null===T.dR||void 0===T.dR?void 0:T.dR.storeViewed,H,["clevertap"]),x(null===T.dR||void 0===T.dR?void 0:T.dR.storeViewed,H,["CDP"]))},[null==B?void 0:B.storeId,d]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(D.default,{}),Z&&d&&(0,l.jsx)(P.Z,{isShowLottie:!1,position:"fixed",zIndex:"z-[999]",backdropBlur:"15px"}),h&&(0,l.jsx)("div",{className:"fixed inset-0 z-[9999] mt-[60px] bg-white-900 md:mt-[50px]",children:(0,l.jsx)(et.Z,{showHeader:!0,showFilters:!0,productC
1ount:12,isMobile:d,isHomePage:!0,hasBanner:v===k.od.INDIA&&!d&&!!(null==p?void 0:p.desktop)})}),d?(0,l.jsx)(ee,{mastHeadData:F,menuData:u,currencyListWithHeaders:g}):null,(0,l.jsx)("div",{className:d?"w-full overflow-x-hidden":"",children:d&&C?(0,l.jsx)(eo,{}):(null==V?void 0:V.length)>0?(0,l.jsx)("div",{className:"w-full ".concat(d?"animate-fadeIn":""),children:(0,l.jsx)(U,{widgets:V,isMobile:d,isCampaignLoading:Z})}):null}),(0,l.jsx)(ei.default,{isMobile:d})]})};var em=a.memo(eg);eg.propTypes={isMobile:n().bool.isRequired,menuData:n().array,userUUID:n().string,serverPageData:n().shape({widgets:n().array,stores:n().arrayOf(n().shape({storeId:n().string,feed:n().shape({widgets:n().array})}))}),catalogId:n().string.isRequired,freeBannerData:n().object,currencyListWithHeaders:n().object}},12289:function(e,t,i){"use strict";var l=i(64090);t.Z=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,l.useRef)(0),n=(0,l.useRef)(0);return(0,l.useEffect)(()=>{var l,r;if(i)return;let a=null===(r=e.current)||void 0===r?void 0:null===(l=r.innerSlider)||void 0===l?void 0:l.list;if(!a)return;let d=i=>{var l,r;if(!t)return;let{deltaX:a,deltaMode:d}=i,s=a;if(1===d?s*=16:2===d&&(s*=800),20>Math.abs(s))return;i.preventDefault();let u=performance.now();u-n.current<500||(n.current=u,s>0?null===(l=e.current)||void 0===l||l.slickNext():null===(r=e.current)||void 0===r||r.slickPrev(),o.current+=1,setTimeout(()=>{o.current=0},500))};return a.addEventListener("wheel",d,{passive:!1}),()=>a.removeEventListener("wheel",d)},[t,e,i]),null}},49553:function(e,t,i){"use strict";i.d(t,{Z:function(){return o}});var l=i(64090);function o(e,t){(0,l.useEffect)(()=>{let t=null==e?void 0:e.current;if(!t||"undefined"==typeof MutationObserver)return;let i=()=>{t&&"function"==typeof t.querySelectorAll&&t.querySelectorAll(".slick-slide").forEach(e=>{"true"===e.getAttribute("aria-hidden")||e.classList.contains("slick-cloned")?e.setAttribute("inert",""):e.removeAttribute("inert")})};i();let l=new MutationObserver(i);return l.observe(t,{attributes:!0,subtree:!0,attributeFilter:["aria-hidden","class"],childList:!0}),()=>l.disconnect()},[e,t])}},96079:function(e,t,i){"use strict";i.d(t,{Ep:function(){return r},K6:function(){return a}});var l=i(46608);let o={isMobile:!1,catalogId:i(44923).od.INDIA},n=(0,l.createSlice)({name:"appConfig",initialState:o,reducers:{setIsMobile:(e,t)=>({...e,isMobile:t.payload}),setCatalogId:(e,t)=>({...e,catalogId:t.payload})}});t.ZP=n.reducer;let{setIsMobile:r,setCatalogId:a}=n.actions},34835:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});let l=e=>!e.button&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey,o=e=>{var t,i;let l=null==e?void 0:null===(i=e.getAttribute)||void 0===i?void 0:null===(t=i.call(e,"href"))||void 0===t?void 0:t.trim();return!(!l||l.startsWith("#"))&&!l.toLowerCase().startsWith("javascript:")},n=e=>{var t;let i=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"target");return!!i&&"_self"!==i},r=(e,t)=>{var i;if("function"!=typeof t)return;let r=null!==(i=null==e?void 0:e.nativeEvent)&&void 0!==i?i:e,a=null==e?void 0:e.currentTarget;if(!r){t();return}r.defaultPrevented||!l(r)||!o(a)||n(a)||Promise.resolve().then(()=>{r.defaultPrevented||t()})}},79580:function(e,t,i){"use strict";i.d(t,{F:function(){return n},L:function(){return r}});var l=i(64090);let o=(0,l.createContext)(null),n=o.Provider,r=()=>(0,l.useContext)(o)},71783:function(e,t,i){"use strict";i.d(t,{k:function(){return o}});let l=new Set(["view details","learn more","click here"]);function o(e){let t=function(){for(var e,t=arguments.length,i=Array(t),l=0;l<t;l++)i[l]=arguments[l];return null===(e=i.find(e=>"string"==typeof e&&e.trim()))||void 0===e?void 0:e.trim()}(null==e?void 0:e.alt,null==e?void 0:e.title,null==e?void 0:e.textContent);if(t&&!l.has(t.toLowerCase()))return t;
1try{let t=new URL(null==e?void 0:e.linkUrl,"https://www.fnp.com").pathname,i=decodeURIComponent(t.split("/").filter(Boolean).pop()||"").replace(/-lp$/i,"").replace(/[-_]+/g," ").trim();if(i)return"View ".concat(i)}catch(e){}return"View gift collection"}},96326:function(e,t,i){"use strict";function l(e){var t,i;return(null!==(i=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:null==e?void 0:e.key)&&void 0!==i?i:"").toLowerCase().includes("lcp")}function o(e,t){return!!(t&&0===e)}i.d(t,{Qd:function(){return o},nw:function(){return l}}),i(40275)}}]);
2//# sourceMappingURL=1783-9fac69a4a6d418a3.js.map

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.