PageSourceSearch

https://www.nectarsleep.com/_next/static/chunks/3250-d804ee72bdb08652.js

js nectarsleep.com collected 2026-09-24 08:52:12 UTC 30,319 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3250],{3077:(e,t,a)=>{a.d(t,{default:()=>k});var r=a(54568),i=a(7620),n=a(6887),o=a(84887),d=a(91205),l=a(96717),s=a(60049),c=a(52065),u=a(51788),m=a(62756),p=a(5588),h=a(95356),g=a(98211),x=a(6219),b=a(60951),f=a(28322),v=a(46093),y=a(75426),_=a(88114),j=a(89358),w=(0,y.default)("form")(e=>{var{theme:t}=e,a={[b.g.NECTAR]:{gap:0,[t.breakpoints.up("lg")]:{width:377}},[b.g.DREAMCLOUD]:{gap:0,[t.breakpoints.up("lg")]:{width:379}},[b.g.AWARA]:{gap:0,[t.breakpoints.up("lg")]:{width:379}}},r=(0,l.qr)(a,t.name);return(0,f._)({width:328,display:"flex",flexDirection:"row",alignItems:"center",height:40},r)}),I=(0,y.default)(j.h)(e=>{var{theme:t}=e;return{flexGrow:1,height:"100%","& input":{transform:"translateZ(0)","&::placeholder":(0,v._)((0,f._)({},t.typography.body3regular),{opacity:1,color:t.palette.secondary.heavy})},"& .Mui-error .MuiInputBase-input":{paddingTop:0,marginTop:t.spacing(-1),"&::placeholder":{opacity:1,color:t.palette.error.main}},"& .MuiInputBase-root.MuiInputBase-colorPrimary":{borderBottomRightRadius:0,borderTopRightRadius:0}}}),C=(0,y.default)(_.default)(e=>{var{theme:t}=e,a={[b.g.NECTAR]:{"&.MuiButton-root":{height:40,borderBottomLeftRadius:0,borderTopLeftRadius:0,borderBottomRightRadius:t.generalBorderRadius,borderTopRightRadius:t.generalBorderRadius}},[b.g.AWARA]:{"&.MuiButton-root":{height:40,borderBottomLeftRadius:0,borderTopLeftRadius:0,borderBottomRightRadius:t.generalBorderRadius,borderTopRightRadius:t.generalBorderRadius}},[b.g.DREAMCLOUD]:{"&.MuiButton-root":{height:40,borderBottomLeftRadius:0,borderTopLeftRadius:0,borderBottomRightRadius:t.actionBorderRadius,borderTopRightRadius:t.actionBorderRadius,backgroundColor:t.palette.primary.main,color:t.palette.general.white}}},r=(0,l.qr)(a,t.name);return(0,f._)({flexGrow:1,maxWidth:95},r)});let k=e=>{var{component:t,componentData:a}=e,{isNectar:f,isAwara:v,themeName:y}=(0,o.d)(),_=(0,x.mp)(s.OPS_REDESIGN),j=(0,x.mp)(s.NOT_FOUND_REDESIGN),k="NotFound"===t,T="OpsPage"===t,R=T&&_,A=k&&j||R,{handleSubmit:L,control:E,watch:q,formState:{isSubmitSuccessful:S}}=(0,n.A)({defaultValues:{email:""},schema:(0,d.Zk)("A valid email address is required."),mode:"onBlur"}),B=q("email"),D=(0,i.useCallback)(()=>{(0,g.createdLead)({email:B})},[B]),W=(0,i.useCallback)(()=>{},[]),P=(0,l.qr)({[b.g.DREAMCLOUD]:{xs:"body3regular",md:"body2regular"},default:{xs:"body3medium",md:"body2medium"}},y),M=(0,l.qr)({[b.g.DREAMCLOUD]:"secondary.light",[b.g.AWARA]:"primary.heavy",default:"primary.light"},y),{bottomText:z}=a||{},F=e=>{e.preventDefault(),k&&(0,h.openChat)({widget:"not_found"}),T&&(0,h.openChat)({widget:"ops_page"})},N=z&&(0,r.jsxs)(u.default,{direction:{xs:"column",md:"row"},spacing:1,sx:{alignItems:"center"},children:[(0,r.jsxs)(u.default,{direction:"row",spacing:1,sx:{mb:{xs:2,md:0},alignItems:"center"},children:[(0,r.jsx)(z.Icon,{color:"primary.main"}),(0,r.jsx)(m.default,{variant:"body2medium",noWrap:!0,sx:{color:"primary.main"},children:z.text1})]}),(0,r.jsx)(m.default,{variant:v?{xs:"body3bold",md:"body2bold"}:f?"body2bold":"body3bold",noWrap:!0,children:z.text2}),(0,r.jsxs)(u.default,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[z.links.map((e,t)=>{var{title:a,to:n}=e;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(p.t5,{onClick:"Chat"===a?F:void 0,href:n,noWrap:!0,children:a}),t+1<z.links.length&&(0,r.jsx)(m.default,{component:"span",children:z.linksDelimeter})]},a)}),(0,r.jsx)(m.default,{noWrap:!0,sx:{color:"secondary.heavy"},children:z.text3})]})]});return(0,r.jsx)(c.default,{"data-testid":"email_section",sx:{padding:f&&!j&&!R||v?{xs:6,md:3}:j||R?{xs:3,md:4}:{xs:6,md:3},width:"100%"},backgroundColor:A?"general.white":M,children:A?N:(0,r.jsxs)(u.default,{direction:{xs:"column",md:"row"},spacing:{xs:f||v?3:2,md:8},sx:{alignItems:"center"},children:[(0,r.jsx)(m.default,{variant:P,sx:{color:"primary.main",textAlign:"center"},children:"Be the first to get our best offers & new products"}),S?(0,r.jsx)(m.default,{"data-testid":"succeed_signup_message",variant:"body3bold",sx:{color:"primary.main"},children:"Thanks! You've signed up successfully."}):(0,r.jsxs)(w,{onSubmit:L(D,W),children:[(0,r.jsx)(I,{"data-testid":"email_input",control:E,name:"email",compact:!0,placeholder:"Enter your email",sx:{flex:1}}),(0,r.jsx)(C,{"data-testid":"submit_button",variant:"primary",size:"small",type:"submit",children:"Sign Up"})]})]})})}},5588:(e,t,a)=>{a.d(t,{MD:()=>u,Pd:()=>p,hE:()=>m,t5:()=>h});var r=a(28322),i=a(46093),n=a(75426),o=a(96717),d=a(1922),l=a(51788),s=a(62756),c=a(60951),u=(0,n.default)(l.default)(e=>{var{theme:t}=e;return{backgroundColor:t.palette.general.white,padding:t.spacing(4,0),alignItems:"center",border:"1px solid ".concat(t.palette.primary.main),borderRadius:t.generalBorderRadius}}),m=(0,n.default)(s.default)(e=>{var{theme:t}=e,a={[c.g.NECTAR]:(0,i._)((0,r._)({},t.typography.h1),{[t.breakpoints.up("md")]:{fontSize:"64px",lineHeight:"72px",fontWeight:600}})},n=(0,o.qr)(a,t.name);return(0,r._)({color:t.palette.primary.main},n)}),p=(0,n.default)(s.default)(e=>{var{theme:t}=e,a={[c.g.AWARA]:(0,i._)((0,r._)({},t.typography.body3medium),{[t.breakpoints.up("md")]:(0,r._)({},t.typography.body2medium)}),[c.g.NECTAR]:(0,r._)({},t.typography.body2medium),[c.g.DREAMCLOUD]:(0,r._)({},t.typography.body3regular)},n=(0,o.qr)(a,t.name);return(0,r._)({color:t.palette.secondary.heavy},n)}),h=(0,n.default)(d.default)(e=>{var{theme:t}=e,a={[c.g.AWARA]:(0,i._)((0,r._)({},t.typography.body3bold),{textDecoration:"underline",color:t.palette.primary.main,[t.breakpoints.up("md")]:(0,r._)({},t.typography.body2bold)}),[c.g.NECTAR]:(0,i._)((0,r._)({},t.typography.body2medium),{color:t.palette.brand.highlightSecondary}),[c.g.DREAMCLOUD]:(0,i._)((0,r._)({},t.typography.body2bold),{color:t.palette.brand.highlightSecondary})},n=(0,o.qr)(a,t.name);return(0,r._)({textDecoration:"none"},n)})},6887:(e,t,a)=>{a.d(t,{A:()=>d});var r=a(28322),i=a(46093),n=a(38478),o=a(83631);
1let d=function(e){var t=e.schema&&(0,n.t)(e.schema);return(0,o.mN)((0,i._)((0,r._)({},e),{resolver:t}))}},7873:(e,t,a)=>{a.d(t,{I:()=>r});var r=e=>e.filter(Boolean)},12014:(e,t,a)=>{a.d(t,{A:()=>n,M:()=>i});var r=a(7620);function i(e,t,a){(0,r.useEffect)(()=>((null==e?void 0:e.addEventListener)&&e.addEventListener(t,a),()=>(null==e?void 0:e.removeEventListener)&&e.removeEventListener(t,a)),[e,t,a])}let n=i},76375:(e,t,a)=>{a.d(t,{default:()=>k});var r=a(28322),i=a(54568),n=a(7620),o=a(36033),d=a(52339),l=a(84887),s=a(18197),c=a(60049),u=a(88114),m=a(1644),p=a(25106),h=a(1922),g=a(52065),x=a(51788),b=a(62756),f=a(5588);let v=e=>{var{backgroundImage:t,icon:a,title:r,subtitleText:n,notFoundPageButtons:d,links:l,testIds:s,component:c,handleShopLinkClick:u}=e;return(0,i.jsxs)(g.default,{backgroundImage:t,containerSxProps:{backgroundPositionY:{xs:"25%",lg:"14%",xl:"0%"},backgroundSize:"cover"},isSpacing:!0,children:[(0,i.jsxs)(x.default,{"data-testid":s[c].sectionTestId,spacing:8,sx:{alignItems:"center",width:"100%",paddingBottom:6},children:[(0,i.jsxs)(x.default,{"data-testid":s[c].subtitleTestId,spacing:4,sx:{alignItems:"center",textAlign:"center"},children:[a,(0,i.jsx)(b.default,{variant:{xs:"h3",md:"h2"},sx:{pb:{xs:.4,md:0}},children:r}),(0,i.jsx)(x.default,{children:n})]}),d]}),(0,i.jsx)(o.default,{sx:{width:"100%"},children:(0,i.jsx)(p.default,{container:!0,columnSpacing:{xs:2,lg:8},rowSpacing:0,sx:{justifyContent:"center",pt:{xs:0,md:2}},children:l&&l.map(e=>{var{title:t,icon:a,to:r}=e;return(0,i.jsx)(p.default,{size:{xs:4,lg:2},children:(0,i.jsx)(h.default,{href:r,onClick:()=>u(t),sx:{textDecoration:"none",color:"secondary.main"},children:(0,i.jsxs)(f.MD,{spacing:3,sx:{border:"none"},children:[a,(0,i.jsx)(b.default,{"data-testid":s[c].titleTestId(t),variant:"body3medium",noWrap:!0,sx:{color:"primary.main"},children:t})]})})},t)})})})]})},y=e=>{var{backgroundImage:t,backgroundProps:a,title:r,titlePrefix:n,testIds:d,subTitleTextOpsPage:l,component:s,links:c,handleShopLinkClick:u,opsPageButtons:m}=e;return(0,i.jsxs)(g.default,{backgroundImage:t,backgroundProps:a,isSpacing:!0,children:[(0,i.jsx)(x.default,{"data-testid":d[s].sectionTestId,spacing:6,sx:{alignItems:"center",width:"100%"},children:(0,i.jsxs)(x.default,{"data-testid":d[s].subtitleTestId,spacing:4,sx:{alignItems:"center",textAlign:"center",pb:{xs:0,md:0}},children:[(0,i.jsx)(f.hE,{color:"primary",children:n}),(0,i.jsx)(b.default,{variant:{xs:"h3",md:"h2"},children:r}),(0,i.jsx)(x.default,{children:l})]})}),(0,i.jsx)(o.default,{sx:{paddingTop:8,paddingBottom:8},children:m}),(0,i.jsx)(o.default,{sx:{width:"100%"},children:(0,i.jsx)(p.default,{container:!0,columnSpacing:{xs:2,lg:8},rowSpacing:0,sx:{justifyContent:"center"},children:c.map(e=>{var{title:t,icon:a,to:r}=e;return(0,i.jsx)(p.default,{size:{xs:4,lg:2},children:(0,i.jsx)(h.default,{href:r,onClick:()=>u(t),sx:{textDecoration:"none",color:"secondary.main"},children:(0,i.jsxs)(f.MD,{spacing:3,sx:{border:"none"},children:[a,(0,i.jsx)(b.default,{"data-testid":d[s].titleTestId(t),variant:"body3medium",noWrap:!0,sx:{color:"primary.main"},children:t})]})})},t)})})})]})};var _=a(95356),j=a(50120),w=a(98211),I=a(6219),C={NotFound:{sectionTestId:"404_status_section",subtitleTestId:"404_subtitle",taglineTestId:e=>"404_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),buttonTestId:e=>"404_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),titleTestId:e=>"404_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_link")},EmptyCart:{sectionTestId:"empty_cart_section",subtitleTestId:"empty_cart_subtitle",taglineTestId:e=>"empty_cart_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),buttonTestId:e=>"empty_cart_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),titleTestId:e=>"empty_cart_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_link")},OpsPage:{sectionTestId:"ops_page_section",subtitleTestId:"ops_page_subtitle",taglineTestId:e=>"ops_page_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),buttonTestId:e=>"ops_page_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),titleTestId:e=>"ops_page_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_link")},EmptySearch:{sectionTestId:"empty_search_section",subtitleTestId:"empty_search_subt
1itle",taglineTestId:e=>"empty_search_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),buttonTestId:e=>"empty_search_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_btn"),titleTestId:e=>"empty_search_".concat(null==e?void 0:e.toLocaleLowerCase().replace(/ /g,"_"),"_link")}};let k=e=>{var{componentData:t,component:a,searchQuery:k}=e,{icon:T}=t||{},{title:R,subtitle:A,background:L,backgroundMobile:E,bottomText:q,buttonText:S,showPromotion:B,links:D=[],buttonTo:W="/",ctaUrl:P,buttonVariant:M="primary",bannerImage:z,secondaryButtonText:F,titlePrefix:N,couponPrefixText:O,couponCode:Y,couponBetweenText:H,discountTitle:U,couponSuffixText:G}=t||{},{promoData:Z}=(0,d.Yp)()||{},{tagLine1:V,tagLine2:X}=Z||{},{palette:$,isNectar:K,isDesktopScreen:J,isMobileScreen:Q,isAwara:ee}=(0,l.d)(),et="OpsPage"===a,ea="EmptyCart"===a,er="NotFound"===a,ei="EmptySearch"===a,en=(0,I.mp)(c.NOT_FOUND_REDESIGN),eo=(0,I.mp)(c.OPS_REDESIGN)&&et,ed=er&&en,el=Q?"medium":"large",es=e=>{(0,j.K)("PushHistory",{pathname:e}),"EmptyCart"===a&&(0,w.addToDataLayer)({event:"userInteraction",element_id:"link",event_name:"checkout_interaction",click_text:S})},ec=e=>{e.preventDefault(),ea&&(0,_.openChat)({widget:"Empty_Cart"}),et&&(0,_.openChat)({widget:"ops_page"})},eu={backgroundColor:eo?$.primary.light:$.secondary.heavyLight};!J&&T&&(T=(0,n.cloneElement)(T,{height:84,width:166}));var em=e=>{(0,w.addToDataLayer)({event:"userInteraction",element_id:"empty_cart",event_name:"general_interaction",click_text:e})};(0,n.useEffect)(()=>{var e=ei?{event:"nonInteraction",element_id:"no_results",event_name:"site_search",widget:"search_page",click_text:k}:{event:"nonInteraction",element_id:"false",event_name:"EmptyCart"===a?"empty_cart_impression":"page_not_found"};(0,w.addToDataLayer)(e)},[]);var ep=K||ee?{xs:"captionMedium",md:"body3medium"}:{xs:"captionMedium",md:"captionMedium"};if(z)return(0,i.jsxs)(x.default,{direction:{xs:"column-reverse",lg:"row"},spacing:{lg:8},sx:{width:"100%",position:"relative"},children:[(0,i.jsx)(o.default,{sx:{position:{lg:"absolute"},top:"0",left:"0",width:"100%",height:"100%",py:{xs:8,lg:0}},children:(0,i.jsx)(m.default,{sx:{height:"100%"},children:(0,i.jsxs)(x.default,{spacing:8,sx:{display:"flex",flexDirection:"column",alignItems:{xs:"center",lg:"flex-start"},justifyContent:{lg:"center"},height:"100%"},children:[(0,i.jsxs)(x.default,{spacing:2,sx:{textAlign:{xs:"center",lg:"left"}},children:[(0,i.jsx)(b.default,{variant:{xs:"h2",lg:"h1"},children:R}),(0,i.jsx)(b.default,{variant:{xs:"body2regular",lg:"body1regular"},sx:{color:"secondary.heavy"},children:A})]}),S&&(0,i.jsx)(u.default,{"data-testid":C[a].buttonTestId(S),variant:M,onClick:()=>es(W),sx:{width:"fit-content"},children:S})]})})}),(0,i.jsx)(x.default,{spacing:8,sx:{width:{xs:"100%",lg:"50%"},justifyContent:"center"}}),(0,i.jsx)(o.default,{sx:{width:{xs:"100%",lg:"50%"}},children:(0,i.jsx)(s.A,{src:z,alt:"banner",aspectRatio:"46.6%"})})]});var eh=(0,i.jsxs)(x.default,{direction:"row",spacing:2,sx:{alignItems:"center"},children:[(0,i.jsx)(u.default,{"data-testid":C[a].taglineTestId(V),sx:{textAlign:"center",whiteSpace:"nowrap"},variant:"primary",padding:"13px 46px",onClick:()=>{window.location.reload()},size:el,children:F}),S&&(0,i.jsx)(u.default,{"data-testid":C[a].buttonTestId(S),sx:{textAlign:"center",whiteSpace:"nowrap"},variant:M,onClick:()=>es(W),padding:"13px 46px",size:el,children:S})]}),eg=(0,i.jsxs)(x.default,{spacing:{xs:6,md:8.2},sx:{alignItems:"center",width:"100%"},children:[(0,i.jsx)(u.default,{"data-testid":C[a].taglineTestId(V),sx:{textAlign:"center"},variant:"primary",href:P,py:{xs:10.2,md:0},component:h.default,children:Q?(0,i.jsxs)(b.default,{variant:"body2bold",children:[V," ",(0,i.jsx)("br",{})," ",X]}):(0,i.jsxs)(i.Fragment,{children:[" ",V," ",(0,i.jsx)("br",{})," ",X]})}),S&&(0,i.jsx)(u.default,{"data-testid":C[a].buttonTestId(S),onClick:()=>es(W),variant:"secondary",size:el,children:(0,i.jsx)(b.default,{variant:"body2bold",children:S})})]}),ex=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b.default,{variant:{xs:"body2regular",md:"body1regular"},sx:{color:"secondary.main"},children:A}),(0,i.jsxs)(b.default,{variant:{xs:"body2regular",md:"body1regular"},sx:{textAlign:"center",color:"secondary.main"},children:[O,(0,i.jsx)(b.default,{component:"span",variant:{xs:"body2bold",md:"body1bold"},sx:{color:"primary.main"},children:Y})," ",H," ",(0,i.jsx)(b.default,{component:"span",variant:{xs:"body2bold",md:"body1bold"},sx:{color:"secondary.main"},children:U})," ",G]})]}),eb=(0,i.jsx)(b.default,{variant:{xs:"body2regular",md:"body1regular"},sx:{color:"secondary.main"},children:A}),ef=eo?ex:ed?eb:(0,i.jsx)(f.Pd,{children:A}),ev=Q&&null!=E?E:L,ey={backgroundImage:ev,backgroundProps:L?void 0:eu,title:R,titlePrefix:N,subTitleTextOpsPage:ex,testIds:C,component:a,links:(null==D?void 0:D.map(e=>{var{title:t,icon:a,to:r}=e;return{title:t||"",icon:a,to:r||""}}))||[],handleShopLinkClick:em,opsPageButtons:eh},e_={backgroundImage:ev,icon:T,title:R,subtitleText:ef,notFoundPageButtons:eg,links:null==D?void 0:D.map(e=>{var{title:t,icon:a,to:r}=e;return{title:t||"",icon:a,to:r||""}}),testIds:C,component:a,handleShopLinkClick:em,isNotFoundRedesign:en,isOpsPageWithRedesign:eo};return eo?(0,i.jsx)(y,(0,r._)({},ey)):en?(0,i.jsx)(v,(0,r._)({},e_)):(0,i.jsx)(g.default,{backgroundImage:L,backgroundProps:L?void 0:eu,containerSxProps:{backgroundPositionY:{xs:"25%",lg:"14%",xl:"0%"}},paddingTop:10,paddingBottom:10,children:(0,i.jsxs)(x.default,{"data-testid":C[a].sectionTestId,spacing:6,sx:{alignItems:"center",width:"100%"},children:[(0,i.jsxs)(x.default,{"data-testid":C[a].subtitleTestId,spacing:2,sx:{alignItems:"center"},children:[T,(0,i.jsx)(b.default,{variant:{xs:"h3",md:ei?"h1":"h2"},children:R}),(0,i.jsx)(f.Pd,{children:A})]}),B&&(0,i.jsxs)(u.default,{"data-testid":C[a].taglineTestId(V),sx:{textAlign:"center"},variant:"primary",href:P,component:h.default,children:[V," ",(0,i.jsx)("br",{})," ",X]}),S&&(0,i.jsx)(u.default,{"data-testid":C[a].buttonTestId(S),variant:M,onClick:()=>es(W),children:S}),(0,i.jsx)(o.default,{sx:{width:"100%"},children:(0,i.jsx)(p.default,{container:!0,columnSpacing:{xs:2,lg:8},rowSpacing:0,sx:{justifyContent:"center",pt:{xs:4,md:ei?14:4},pb:K||ee?4:0},children:D.map(e=>{var{title:t,icon:r,to:n}=e;return(0,i.jsx)(p.default,{size:{xs:4,lg:2},children:(0,i.jsx)(h.default,{href:n,onClick:()=>em(t),sx:{textDecoration:"none",color:"secondary.main"},children:(0,i.jsxs)(f.MD,{spacing:3,children:[r,(0,i.jsx)(b.default,{"data-testid":C[a].titleTestId(t),variant:ep,noWrap:!0,children:t})]})})},t)})})}),q&&(0,i.jsxs)(x.default,{direction:{xs:"column",md:"row"},spacing:1,sx:{alignItems:"center"},children:[(0,i.jsxs)(x.default,{direction:"row",spacing:1,sx:{mb:{xs:2,md:0},alignItems:"center"},children:[(0,i.jsx)(q.Icon,{color:"primary.main"}),(0,i.jsx)(b.default,{variant:"body2medium",noWrap:!0,sx:{color:"primary.main"},children:q.text1})]}),(0,i.jsx)(b.default,{variant:ee?{xs:"body3bold",md:"body2bold"}:K?"body2bold":"body3bold",noWrap:!0,children:q.text2}),(0,i.jsxs)(x.default,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[q.links.map((e,t)=>{var{title:a,to:r}=e;return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(f.t5,{onClick:"Chat"===a?ec:void 0,href:r,noWrap:!0,children:a}),t+1<q.links.length&&(0,i.jsx)(b.default,{component:"span",children:q.linksDelimeter})]},a)}),(0,i.jsx)(b.default,{noWrap:!0,sx:{color:"secondary.heavy"},children:q.text3})]})]})]})})}},89358:(e,t,a)=>{a.d(t,{A:()=>v,h:()=>y});var r=a(28322),i=a(46093),n=a(83805),o=a(54568),d=a(7620),l=a(83631),s=a(27711),c=a(12014),u=a(7873),m=a(2348),p=a(75426),h=a(19991),g=a(94898);function x(){var e=(0,m._)(["\n                &.MuiTextField-root input.MuiInputBase-inputSizeSmall {\n                    padding-bottom: 10px !important;\n                }\n\n                &.MuiTextField-root p {\n                    position: absolute;\n                    bottom: 0;\n                }\n            "]);return x=function(){return e},e}function b(){var e=(0,m._)(['\n    input[type="number"]::-webkit-inner-spin-button,\n    input[type="number"]::-webkit-outer-spin-button {\n        -webkit-appearance: none;\n        margin: 0;\n    }\n\n    ',"\n"]);return b=function(){return e},e}var f=(0,p.default)(h.A,{shouldForwardProp:e=>"compact"!==e})(b(),e=>{var{compact:t,error:a,helperText:r}=e;return t&&a&&r?(0,g.AH)(x()):""}),v=e=>{var{name:t,control:a,compact:m,iconBefore:p,iconAfter:h,error:g,helperText:x,fontWeight:b,onBlurChange:v}=e,y=(0,n._)(e,["name","control","compact","iconBefore","iconAfter","error","helperText","fontWeight","onBlurChange"]),_=(0,d.useRef)(null),j=(0,d.useCallback)(e=>{v&&setTimeout(v,1e3,e)},[v]);(0,c.A)(null==_?void 0:_.current,"change",j);var w=(0,d.useMemo)(()=>
1{if(t||y.label||y.type){var e=(0,u.I)([t?String(t):"",y.label?String(y.label):"",y.type?String(y.type):""]);return"tf-".concat(e.join("_").toString().trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\-_:.]/g,""))}},[t,y.label,y.type]);return(0,o.jsx)(l.xI,{name:t,control:a,render:e=>{var a,n,{field:{onChange:d,value:l="",ref:c,onBlur:u},formState:v}=e;return(0,o.jsx)(f,(0,i._)((0,r._)({"data-testid":"".concat(m||null==(a=y.label)?void 0:a.toString().toLowerCase().replace(/ /g,"_"),"_field"),name:t,id:w,inputRef:e=>{c(e),_.current=e},slotProps:{input:{autoComplete:"off",endAdornment:h?(0,o.jsx)(s.A,{position:"end",children:h}):void 0,startAdornment:p?(0,o.jsx)(s.A,{position:"start",children:p}):void 0}},variant:"filled",fontWeight:b},y),{compact:m,size:m?"small":y.size,label:m?void 0:y.label,hiddenLabel:!!m||y.hiddenLabel,onChange:d,onBlur:e=>{var t;u(),null==(t=y.onBlur)||t.call(y,e)},value:l,error:null!=g?g:!!v.errors[t],helperText:null!=x?x:null==(n=v.errors[t])?void 0:n.message}))}})};let y=v},89814:(e,t,a)=>{a.d(t,{default:()=>L});var r=a(26110),i=a(41068),n=a(28322),o=a(46093),d=a(83805),l=a(54568),s=a(7620),c=a(36033),u=a(79231),m=a(84887),p=a(60047),h=a(51788),g=a(62756),x=a(98211),b=a(21355),f=a(1922),v=a(75426),y=a(96717),_=a(91137),j=a(88114),w=a(60951),I=(0,v.default)(c.default)(e=>{var{theme:t,type:a="square"}=e,r={vertical:{alignItems:"center",[t.breakpoints.up("lg")]:{maxWidth:405,maxHeight:842},[t.breakpoints.up("xl")]:{maxWidth:464,maxHeight:960}},horizontal:{justifyContent:"end",[t.breakpoints.up("lg")]:{maxWidth:842,maxHeight:405},[t.breakpoints.up("xl")]:{maxWidth:960,maxHeight:464}},square:{[t.breakpoints.up("lg")]:{maxWidth:405,maxHeight:405},[t.breakpoints.up("xl")]:{maxWidth:464,maxHeight:464}},big:{justifyContent:"end",[t.breakpoints.up("lg")]:{maxHeight:405},[t.breakpoints.up("xl")]:{maxHeight:464}}},i={[w.g.NECTAR]:{borderRadius:t.generalBorderRadius},[w.g.AWARA]:{borderRadius:t.generalBorderRadius}},o=(0,y.qr)(i,t.name);return(0,n._)({background:t.palette.general.white,position:"relative",display:"flex",minWidth:196,overflow:"hidden"},"big"!==a&&{"&:hover":{boxShadow:t.shadows[3]},"&:hover .MuiTypography-captionMedium":{textDecoration:"underline"}},r[a],o)}),C=(0,v.default)(c.default,(0,_.w)("withGradient"))(e=>{var{theme:t,type:a="square",withGradient:r=!1}=e,i={[w.g.NECTAR]:{vertical:{borderRadius:t.generalBorderRadius},horizontal:{borderBottomRightRadius:"8px",borderTopRightRadius:"8px"},square:{borderRadius:t.generalBorderRadius}},default:void 0},o=(0,y.qr)(i,t.name);return(0,n._)({},{vertical:{width:"100%",height:"auto"},horizontal:{maxWidth:"65%",width:"auto",height:"100%"},square:{width:"100%",height:"100%"},big:{maxWidth:"65%",width:"auto",height:"100%","&:hover":{boxShadow:0}}}[a],null==o?void 0:o[a],r&&{"&::after":{content:'""',position:"absolute",inset:0,backgroundImage:"linear-gradient(180deg, rgba(41,44,37,0.60) 0%, rgba(41,44,37,0) 100%)",pointerEvents:"none"}})}),k=(0,v.default)(j.default)(()=>({position:"absolute",left:"50%",bottom:24,transform:"translateX(-50%)","&.MuiButton-root":{borderColor:"transparent"}}));let T=e=>{var{title:t,description:a,image:r,to:i,buttonText:n,onClick:o}=e;return(0,l.jsxs)(h.default,{sx:{position:"relative",height:"100%",bgcolor:"general.white",borderRadius:e=>e.generalBorderRadius,overflow:"hidden"},children:[(0,l.jsxs)(h.default,{spacing:1,sx:{alignItems:"center",p:4},children:[(0,l.jsx)(g.default,{"data-testid":"catalog_card_title_".concat(null==t?void 0:t.toLocaleLowerCase().replace(/ /g,"_")),variant:"body2bold",children:t}),(0,l.jsx)(g.default,{variant:"captionRegular",sx:{color:"secondary.heavy"},children:a})]}),(0,l.jsx)(k,{"data-testid":"shop_".concat(null==t?void 0:t.toLocaleLowerCase().replace(/ /g,"_"),"_button"),size:"medium",variant:"secondary",component:f.default,href:i,onClick:o,children:n}),(0,l.jsx)(c.default,{component:"img",src:b.A.imageUrl(r.mobile),alt:t,sx:{width:"100%",height:254,objectFit:"cover"}})]})},R=e=>{var{title:t,description:a,to:r,image:i,buttonText:o,onClick:d,withObjectFit:s=!1,objectFixPercent:u,withFixHeight:p=!1}=e,{isAwara:x}=(0,m.d)();return(0,l.jsxs)(c.default,{sx:{display:"flex",minHeight:x||p?246:264,bgcolor:"general.white",height:"100%",borderRadius:e=>e.generalBorderRadius,overflow:"hidden"},children:[(0,l.jsxs)(h.default,{sx:{justifyContent:"space-between",maxWidth:"50%",boxSizing:"border-box",p:4},children:[(0,l.jsxs)(h.default,{spacing:1,children:[(0,l.jsx)(g.default,{"data-testid":"catalog_c
1ard_title_".concat(null==t?void 0:t.toLocaleLowerCase().replace(/ /g,"_")),variant:"body2bold",children:t}),(0,l.jsx)(g.default,{variant:"captionRegular",sx:{color:"secondary.heavy"},children:a})]}),(0,l.jsx)(j.default,{"data-testid":"shop_".concat(null==t?void 0:t.toLocaleLowerCase().replace(/ /g,"_"),"_button"),size:"medium",variant:"secondary",component:f.default,href:r,onClick:d,children:o})]}),(0,l.jsx)(c.default,{sx:{display:"flex",alignItems:"center",width:"100%",maxWidth:"50%"},children:(0,l.jsx)(c.default,{component:"img",src:b.A.imageUrl(i.mobile),alt:t,sx:(0,n._)({width:"100%",height:"100%"},s&&{objectFit:{xs:"cover",md:void 0},objectPosition:{xs:"".concat(u,"% center"),md:void 0}})})})]})},A=e=>{var{item:t,index:a,gridTemplateAreas:r,itemsMaxWidth:i,onClick:n}=e,{title:o,color:d,description:s,image:u,type:p,to:x,buttonText:v,withGradient:y}=t,{spacing:_}=(0,m.d)();return(0,l.jsxs)(I,{sx:{gridArea:r&&"element".concat(a+1)},type:p,children:[(0,l.jsxs)(h.default,{spacing:1,sx:{position:"absolute",top:_(6),left:_(6),zIndex:y?2:"auto"},children:[(0,l.jsx)(g.default,{"data-testid":"catalog_card_title_".concat(null==o?void 0:o.toLocaleLowerCase().replace(/ /g,"_")),variant:"body1bold",color:d||"",children:o}),(0,l.jsx)(g.default,{variant:"body3regular",color:d||"secondary.heavy",sx:{maxWidth:i&&"horizontal"===p?i:366},children:s})]}),(0,l.jsx)(C,{type:p,component:y?void 0:"img",src:y?void 0:b.A.imageUrl(u.desktop),withGradient:y,sx:{zIndex:y?1:"auto"},children:y&&(0,l.jsx)(c.default,{component:"img",src:b.A.imageUrl(u.desktop),alt:o,sx:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,l.jsx)(c.default,{sx:{position:"absolute",bottom:_(6),left:_(6),zIndex:y?3:void 0},children:(0,l.jsx)(j.default,{"data-testid":"shop_".concat(null==o?void 0:o.toLocaleLowerCase().replace(/ /g,"_"),"_button"),size:"large",variant:t.buttonVariant||"secondary",onClick:n,component:f.default,href:x,children:v})})]},o)},L=e=>{var t=(0,r._)({},(0,i._)(e)),{isMediumScreen:a,isAwara:b,isChime:f}=(0,m.d)(),{componentData:v}=(0,u.P)(t.component),{title:y,content:_}=(null==v?void 0:v.data())||{},{gridTemplateColumns:j,gridTemplateRows:w,gridTemplateAreas:I,itemsMaxWidth:C,items:k=[]}=_||{};if(!k.length&&f)return null;var L=()=>{(0,x.addToDataLayer)({event:"userInteraction",element_id:t.page,event_name:"general_interaction",click_text:"SHOP NOW"})},E={component:"h2",variant:{xs:"h2",lg:"h1"}};return(0,l.jsx)(p.default,{backgroundColor:"secondary.heavyLight",sx:{paddingTop:{xs:10,md:20},paddingBottom:{xs:10*!!t.marginBottom,md:20*!!t.marginBottom}},dataTestId:"".concat(null==y?void 0:y.toLocaleLowerCase().replace(/ /g,"_"),"_category_section"),children:(0,l.jsxs)(h.default,{spacing:{xs:6,md:10},sx:{width:"100%"},children:[(0,l.jsx)(g.default,(0,o._)((0,n._)({},E),{sx:[{textAlign:"center"},...Array.isArray(E.sx)?E.sx:[E.sx]],children:y})),a?I?(0,l.jsx)(c.default,{sx:{display:"grid",gridTemplateColumns:j,gridTemplateRows:w,gridTemplateAreas:I,gap:8},children:k.map((e,t)=>(0,l.jsx)(A,{gridTemplateAreas:I,itemsMaxWidth:C,onClick:L,index:t,item:e},e.title))}):(0,l.jsx)(c.default,{children:k.map((e,t)=>(0,l.jsx)(A,{gridTemplateAreas:I,itemsMaxWidth:C,onClick:L,index:t,item:e},e.title))}):(0,l.jsx)(h.default,{spacing:b?6:4,sx:{alignItems:"stretch",width:"100%"},children:k.map(e=>{var{title:t,type:a,mobileType:r,objectFixPercent:i,withFixHeight:c}=e,u=(0,d._)(e,["title","type","mobileType","objectFixPercent","withFixHeight"]);return(0,l.jsx)(s.Fragment,{children:a&&"big"!==r?(0,l.jsx)(R,(0,o._)((0,n._)({title:t},u),{onClick:L,objectFixPercent:i,withFixHeight:c})):(0,l.jsx)(T,(0,o._)((0,n._)({title:t},u),{onClick:L}))},t)})})]})})}},91205:(e,t,a)=>{a.d(t,{Ef:()=>l,G$:()=>g,X5:()=>m,ZF:()=>h,Zk:()=>s});var r=a(84643),i=a(11060),n=a(43336),o=e=>n.Y.test(e.toLowerCase()),d=e=>r.Yj().matches(n.Y,e);r.Ik().shape({email:d("Invalid email address").required("Email is required"),validEmail:d("Invalid email address").required("Email is required"),emailWithError:d("Invalid email address").required("Email is required")}),r.Ik().shape({active:r.zM().oneOf([!0],"The field must be true.").required("Required")});var l=r.Ik().shape({email:d("A valid email address is required").required("Please enter an e-mail address")});r.Ik().shape({email:d("Please make sure to provide an email with an appropriate format.").required("Please enter an e-mail address")});var s=e=>r.Ik().shape({email:r.Yj().required(e).test("email",e,o)}),c=r.Yj().test("emailOrPhoneValidation","Invalid value",function(e){return e?e.includes("@")?!!d("Please enter a valid email").isValidSync(e)||this.createError({message:"Please enter a valid email"}):(0,i.tp)(e,this):this.createError({message:"Enter correct email or phone number"})}),u=r.Ik().shape({phoneOrEmail:c,orderNumber:r.Yj().required("Enter correct order number").test("formatValidation","Enter correct order number",function(e){return!!/^[A-Za-z]{1,2}-\d{8}$/.test(e)||this.createError({message:"Enter correct order number"})})}),m=r.Ik().shape({emailStep:l,orderStep:u}),p=r.Ik().shape({email:d("Please enter a valid email address").required("Please enter an e-mail address")}),h=r.Ik().shape({emailStep:p,orderStep:u}),g=r.Ik().shape({full_name:r.Yj().required("Please enter your full name").min(3,"Full name must be at least 3 characters").max(50,"Full name must be no more than 50 characters"),email:r.Yj().required("Email is required").email("A valid email address is required").max(50,"Email must be no more than 50 characters"),customer_address:r.Yj().required("Address is required").max(100,"Address must be no more than 100 characters"),customer_address2:r.Yj().max(100,"Address line 2 must be no more than 100 characters"),customer_city:r.Yj().required("City is required").max(50,"City must be no more than 50 characters"),customer_country:r.Yj().required("Country is required"),
1customer_state:r.Yj().required("State is required"),customer_zip_code:r.Yj().min(4).required("Zip Code is required").max(10,"Zip Code must be no more than 10 characters"),bought_location:r.Yj().oneOf(["amazon","retail"]).required("Purchase location is required"),bought_source:r.Yj().when("bought_location",(e,t)=>(null==e?void 0:e.length)?t.required("Source of purchase is required"):t),products:r.YO().of(r.Yj()).min(1,"At least one product must be selected"),marketing_consent:r.zM()})},95356:(e,t,a)=>{a.r(t),a.d(t,{openChat:()=>n});var r=a(64017),i=a(27382),n=function(){var{elementId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isIntercomEnabled:t}=(0,i.i)();t&&r.B&&window.Intercom&&(e&&sessionStorage.setItem("chat:lastElementId",e),window.Intercom("show"))}}}]);

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.