"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[34],{106:(e,t,s)=>{var n=s(0),r=s(2),a=s(54),i=s(1),l=s(3),o=s(5);const{headerRightSection:c,headerRightSectionBtn:d,headerRightSectionBtnUser:u,headerRightSectionBtnDiscount:p,headerRightSectionBtnCart:g,headerRightSectionBtnCartCircle:m,headerRightSectionBtnCartCircleText:h,headerRightSectionBtnDiscountCircle:j,headerRightSectionBtnDiscountCircleText:v,headerRightSectionBtnTooltip:b,headerRightSectionBtnTooltipLast:x}={headerRightSection:"yFUPU2yA",headerRightSectionBtn:"Kvr8JiX0",headerRightSectionBtnTooltip:"B2iW__bu",headerRightSectionBtnUser:"Z2E8j0TK",headerRightSectionBtnDiscountCircle:"vj_I0VfT",headerRightSectionBtnDiscountCircleText:"pG6U57Ub",headerRightSectionBtnDiscount:"wwhOjyy2",headerRightSectionBtnCart:"ogaov956",headerRightSectionBtnCartCircle:"KrcDao4d",headerRightSectionBtnCartCircleText:"DlL5Geyi",headerRightSectionBtnLast:"ffMGkKgK",headerRightSectionBtnTooltipLast:"PXzWsIkD"},f=({showCart:e,cartItemsCount:t,setIsTodaysOfferOpen:s,numberOfOffers:r,setIsSearchBarOpen:a})=>(0,n.jsxs)("div",Object.assign({className:c},{children:[(0,n.jsxs)("button",Object.assign({className:d,onClick:()=>{var e;a(!0),null===(e=document.getElementById("searchInputId"))||void 0===e||e.focus()}},{children:[(0,n.jsx)(o.a.S,{}),(0,n.jsx)("span",Object.assign({className:b},{children:"search"}))]})),(0,n.jsx)("button",Object.assign({className:d,onClick:()=>s(!0)},{children:(0,n.jsxs)("div",Object.assign({className:p},{children:[(0,n.jsx)(o.a.y,{}),(0,n.jsx)("div",Object.assign({className:j},{children:(0,n.jsx)("p",Object.assign({className:v},{children:r}))})),(0,n.jsx)("span",Object.assign({className:b},{children:"today's offers"}))]}))})),(0,n.jsx)("a",Object.assign({href:"/account/login"},{children:(0,n.jsxs)("button",Object.assign({className:`${d} ${u}`},{children:[(0,n.jsx)(o.a.bb,{}),(0,n.jsx)("span",Object.assign({className:b},{children:"login"}))]}))})),(0,n.jsx)("button",Object.assign({className:d,onClick:e},{children:(0,n.jsxs)("div",Object.assign({id:"header-cart-quantity",className:g},{children:[(0,n.jsx)(o.a.l,{}),(0,n.jsx)("div",Object.assign({className:m},{children:(0,n.jsx)("p",Object.assign({className:h},{children:t}))})),(0,n.jsx)("span",Object.assign({className:(0,l.a)(b,x)},{children:"cart"}))]}))}))]}));var O=s(9);const{link:w,topBar:y,topBarContent:k,topBarArrow:N,topBarHover:C}={link:"iZUFB5Uq",topBarContent:"TqqwNcbB",topBar:"Eyui2KnX",topBarArrow:"KZzcskpc"},S=({bars:e,announcementProgress:t,cartItemsCount:s})=>{var a,l,c,d,u;const[p,g]=(0,r.useState)(!1),[m]=e.length>1?(0,O.a)({loop:!0},[e=>{let t,s=!1;function n(){clearTimeout(t)}function r(){clearTimeout(t),s||(t=setTimeout((()=>{e.next()}),7e3))}e.on("created",(()=>{e.container.addEventListener("mouseover",(()=>{s=!0,n()})),e.container.addEventListener("mouseout",(()=>{s=!1,r()})),r()})),e.on("dragStarted",n),e.on("animationEnded",r),e.on("updated",r)}]):[null];return(0,r.useEffect)((()=>{g(!0)}),[]),(null==e?void 0:e.length)?(0,n.jsxs)(i.Fragment,{children:[(!p||1===(null==e?void 0:e.length))&&(0,n.jsx)("a",Object.assign({href:null===(a=e[0])||void 0===a?void 0:a.link,className:w,style:{"--text-color":(null===(l=e[0])||void 0===l?void 0:l.textColor)||"#fff"}},{children:(0,n.jsxs)("div",Object.assign({style:{"--bg-color":null===(c=e[0])||void 0===c?void 0:c.backgroundColor},className:y},{children:[(0,n.jsx)("div",{className:C}),(0,n.jsxs)("div",Object.assign({className:k},{children:[`${null===(d=e[0])||void 0===d?void 0:d.text} `,(0,n.jsx)("div",Object.assign({className:N},{children:(0,n.jsx)(o.a.j,{})}))]}))]}))})),p&&(0,n.jsx)("div",Object.assign({ref:m,className:"keen-slider"},{children:(null!==(u=null==e?void 0:e.length)&&void 0!==u?u:0)>1&&e.map(((e,t)=>(0,n.jsx)("a",Object.assign({href:e.link,className:w,style:{"--text-color":(null==e?void 0:e.textColor)||"#fff"}},{children:(0,n.jsx)("div",Object.assign({className:`keen-slider__slide number-slide${t}`},{children:(0,n.jsxs)("div",Object.assign({style:{"--bg-color":e.backgroundColor},className:y},{children:[(0,n.jsx)("div",{className:C}),(0,n.jsx)("div",Object.assign({className:k},{children:(0,n.jsxs)("div",{children:[`${null==e?void 0:e.text} `,(0,n.jsx)("div",Object.assign({className:N},{children:(0,n.jsx)(o.a.j,{})}))]})}))]}))}))}))))}))]}):null},{listWrapper:B,listWrapperTitle:I}={listWrapperTitle:"Myei_U5t",listWrapper:"hB7b8Qg0"},L=({listData:e,noImagesInMenuTab:t})=>{var s;return(0,n.jsxs)("div",Object.assign({className:B,style:{flexGrow:t?"0":"1",flexBasis:t?"50%":"auto"}},{children:[(0,n.jsx)("div",Object.assign({className:I},{children:(0,n.jsx)("a",Object.assign({href:e.url.substring(e.url.indexOf(".com")+4)},{children:e.title}))})),(0,n.jsx)("ul",{children:null===(s=e.items)||void 0===s?void 0:s.map((e=>(0,n.jsx)("li",{children:(0,n.jsx)("a",Object.assign({href:e.url.substring(e.url.indexOf(".com")+4),onClick:()=>{return t=e.url.substring(e.url.indexOf(".com")+4),window.history.replaceState(null,"",t),void window.location.reload();var t}},{children:e.title}))})))})]}))},{collection:A,collectionMobileMenu:T,collectionLink:P,collectionImgWrapper:E,collectionImgWrapperOverlay:M,collectionImgWrapperMobileMenu:R,collectionImgWrapperText:H,collectionArrow:W}={collection:"TG0Q7sge",collectionMobileMenu:"o5ECvjwY",collectionLink:"cOOYPk77",collectionArrow:"SezBxqDV",collectionImgWrapper:"Iw1cbdir",collectionImgWrapperOverlay:"AnCKZOua",collectionImgWrapperText:"GicGvJFF",collectionImgWrapperMobileMenu:"ximdkR38"},D=({banner:e,isMobileMenu:t})=>{var s,r,a,i;return(0,n.jsxs)("div",Object.assign({className:(0,l.a)(A,t&&T)},{children:[(0,n.jsx)("a",Object.assign({href:e.link,className:P},{children:(0,n.jsxs)("div",Object.assign({className:(0,l.a)(E,t&&R)},{children:[(0,n.jsx)("img",{src:`${null!==(s=null==e?void 0:e.image)&&void 0!==s?s:""}?v=1673527318&width=330`,alt:null!==(r=null==e?void 0:e.text)&&void 0!==r?r:"",srcset:`${null!==(a=null==e?void 0:e.image)&&void 0!==a?a:""}?v=1673527318&width=330 330w`,width:"330",height:"200",loading:"lazy"}),(0,n.jsx)("span",Object.assign({className:H},{children:null!==(i=null==e?void 0:e.text)&&void 0!==i?i:""})),(0,n.jsx)("div",{className:M})]}))})),(0,n.jsx)("div",Object.assign({className:W},{children:(0,n.jsx)(o.a.j,{})}))]}))},{wrapper:_,menuItem:V,menuItemColumn:F}={wrapper:"t0LsvbxV",menuItem:"Cj6Iav4q",menuItemColumn:"cMH_AkBP"},$=({menuTabData:e,banners:t})=>{var s;return(0,n.jsx)("div",Object.assign({className:_},{children:(0,n.jsx)("div",Object.assign({className:V},{children:null===(s=e.items)||void 0===s?void 0:s.map(((e,s)=>(0,n.jsxs)("div",Object.assign({className:F},{children:[!!t[s]&&(0,n.jsx)(D,{banner:t[s]}),(0,n.jsx)(L,{listData:e})]}))))}))}))},{wrapper:q,menuItem:G,menuItemLists:Y,menuItemImages:X}={wrapper:"muU1Uh6C",menuItem:"aVsRt73q",menuItemLists:"bfZiXzoc",menuItemImages:"RBj48kSr"},U=({menuTabData:e,banners:t})=>{var s;const r=()=>{var s,n,r,a,i,l;return 0===t.length&&4===(null===(s=e.items)||void 0===s?void 0:s.length)?["80%","0%"]:0===t.length&&3===(null===(n=e.items)||void 0===n?void 0:n.length)?["60%","0%"]:0===t.length&&2===(null===(r=e.items)||void 0===r?void 0:r.length)?["40%","0%"]:0===(null===(a=e.items)||void 0===a?void 0:a.length)?["80%","60%"]:1===(null===(i=e.items)||void 0===i?void 0:i.length)&&t.length<4?["18%","60%"]:2!==(null===(l=e.items)||void 0===l?void 0:l.length)||2!==t.length&&3!==t.length?["auto","auto"]:["39%","60%"]};return(0,n.jsx)("div",Object.assign({className:q},{children:(0,n.jsxs)("div",Object.assign({className:G},{children:[(0,n.jsx)("div",Object.assign({className:Y,style:{flexBasis:`${r()[0]}`}},{children:null===(s=e.items)||void 0===s?void 0:s.map((e=>(0,n.jsx)(L,{listData:e})))})),t.length>0&&(0,n.jsx)("div",Object.assign({className:X,style:{flexBasis:`${r()[1]}`}},{children:t.map((e=>(0,n.jsx)(D,{banner:e})))}))]}))}))},K={left:1,"center-left":2,center:3,"center-right":4,right:5,default:1/0},Q=e=>e.sort((function(e,t){return(K[e.position]||K.default)-(K[t.position]||K.default)||e.position.localeCompare(t.position)})),{middleSection:Z,menuItem:z,drawer:J,drawerOpen:ee,menuItemLink:te,menuItemLinkLine:se}={middleSection:"dTzjOWaA",menuItem:"h9mXTY5g",menuItemLink:"JcYAh8MO",menuItemLinkLine:"fp2QuTS2",drawer:"triO7iwV",drawerOpen:"FNEwxAau"},ne=({menu:e,menuBanners:t,flags:s})=>{var a,o;const[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)(0),g=(e,t)=>{p(t),d(e)},m=(e,t)=>{const s=[...t];return"JEWELRY"===e.title.trim()?(0,n.jsx)($,{menuTabData:e,banners:Q(s)}):(0,n.jsx)(U,{menuTabData:e,banners:Q(s)})},h=null===(a=null==s?void 0:s.whatToColorTitle)||void 0===a?void 0:a.split(","),j=null===(o=null==s?void 0:s.whatColor)||void 0===o?void 0:o.split("-");return(0,n.jsx)("div",Object.assign({className:Z},{children:e.length>0&&e.map(((e,s)=>{var r,a,o;return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("div",Object.assign({className:z},{children:(0,n.jsx)("a",Object.assign({href:e.url.substring(e.url.indexOf(".com")+4),className:te,onMouseEnter:()=>g(!0,s),onMouseLeave:()=>g(!1,null),style:{}},{children:h.includes(e.title.trim())?(0,n.jsx)("span",Object.assign({style:{color:null!==(r=j[0])&&void 0!==r?r:"#000000",fontWeight:null!==(a=j[1])&&void 0!==a?a:"500"}},{children:e.title.trim()})):e.title.trim()}))})),(0,n.jsx)("div",Object.assign({className:(0,l.a)(J,s===u&&c&&ee),onMouseEnter:()=>g(!0,s),onMouseLeave:()=>g(!1,null)},{children:!!(null===(o=e.items)||void 0===o?void 0:o.length)&&m(e,t.filter((e=>e.menuItem===s+1)))}))]})}))}))},{wrapper:re,wrapperTab:ae,wrapperSuggestionLink:ie,wrapperTitle:le}={wrapper:"fv4a5x38",wrapperSuggestionLink:"eaJqFRus",wrapperTitle:"Hb2pGZtz",wrapperTab:"j7BEiM1m"},oe=({suggestionsList:e,setSearchValue:t,redirect:s})=>(0,n.jsxs)("div",Object.assign({className:re},{children:[(0,n.jsx)("p",Object.assign({className:le},{children:"Suggestions"})),null==e?void 0:e.map((e=>(0,n.jsx)("a",Object.assign({href:s||`/collections/shop?q=${e}`,className:`${ae}`,onMouseOver:()=>{t(e)}},{children:(0,n.jsx)("span",Object.assign({className:ie},{children:e}))}))))]})),{wrapper:ce,wrapperProductContent:de,wrapperProductImage:ue,wrapperProductTitle:pe,wrapperProductContentCrossedPrice:ge,wrapperProductContentNewPriceSpan:me}={wrapper:"I9iC2Dit",wrapperProductImage:"a8xsPftE",wrapperProductTitle:"aMTTYCTT",wrapperProductContent:"QKVu0EU0",wrapperProductContentCrossedPrice:"wbYKs0yf",wrapperProductContentNewPriceSpan:"GfU_KqMq"},he=({firstImageSrc:e,secondImageSrc:t,alt:s,title:a,oldPrice:i,newPrice:l,productUrl:o})=>{const[c,d]=(0,r.useState)("");return(0,n.jsxs)("div",Object.assign({className:ce},{children:[(0,n.jsx)("a",Object.assign({href:o,className:ue,onMouseEnter:()=>t&&d(t),onMouseLeave:()=>d("")},{children:(0,n.jsx)("img",{src:c||e,alt:s})})),(0,n.jsxs)("div",Object.assign({className:de},{children:[(0,n.jsx)("a",Object.assign({className:pe,href:o},{children:a})),(0,n.jsxs)("div",{children:[0!==Number(i)&&(0,n.jsxs)("span",Object.assign({className:0!==Number(i)?ge:""},{children:["$",(+i).toFixed(2)]})),(0,n.jsxs)("span",Object.assign({className:0!==Number(i)?me:""},{children:["$",(+l).toFixed(2)]}))]})]}))]}))},{wrapper:je,wrapperTextWithIcon:ve,wrapperProducts:be,wrapperTitle:xe,wrapperNoResults:fe}={wrapper:"JRpxL4_5",wrapperProducts:"CTys1T8H",wrapperTitle:"cL4cD0tT",wrapperTextWithIcon:"_xvKqFit",wrapperNoResults:"A8mR4xLJ"},Oe=({title:e,productsList:t,seeMoreLink:s,seeMoreText:r,noResultsText:a})=>{var l;return(0,n.jsx)("div",Object.assign({className:je},{children:(null==t?void 0:t.length)>0?(0,n.jsxs)(i.Fragment,{children:[e&&(0,n.jsx)("h5",Object.assign({className:xe},{children:e})),(0,n.jsx)("div",Object.assign({className:be},{children:null===(l=null==t?void 0:t.slice(0,6))||void 0===l?void 0:l.map((e=>(0,n.jsx)(he,Object.assign({},e))))})),(0,n.jsxs)("a",Object.assign({className:ve,href:s},{children:[r,(0,n.jsx)(o.a.g,{})]}))]}):(0,n.jsx)("p",Object.assign({className:fe},{children:a}))}))},{categories:we,categoriesWrapper:ye,categoriesWrapperNotActiveTag:ke}={categories:"GjjGxMmT",categoryWrapper:"_XTCExll",categoriesWrapper:"tStBgyya",categoriesWrapperNotActiveTag:"oLRff_pV"},Ne=({categoriesData:e})=>(0,n.jsx)("div",Object.assign({className:we},{children:(0,n.jsxs)("div",Object.assign({className:ye},{children:[(0,n.jsx)("p",{children:"Categories"}),(0,n.jsx)("ul",{children:null==e?void 0:e.map((({title:e,link:t},s)=>{return(0,n.jsx)("li",{children:(0,n.jsx)("a",Object.assign({className:(0,l.a)(ke),href:t},{children:(r=null==e?void 0:e.toLowerCase(),"string"!=typeof r?r:r.replace(/\b\w/g,((e,t)=>0===t||t>0&&" "===r[t-1]?e.toUpperCase():e.toLowerCase())))}))},s);var r}))})]}))}));var Ce=s(19),Se=s(45),Be=function(e,t,s,n){return new(s||(s=Promise))((function(r,a){function i(e){try{o(n.next(e))}catch(e){a(e)}}function l(e){try{o(n.throw(e))}catch(e){a(e)}}function o(e){var t;e.done?r(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,l)}o((n=n.apply(e,t||[])).next())}))};const Ie=["Butterfly","Love","Harry Potter","Charms"];var Le=s(44);const{searchContent:Ae,sectionsWrapper:Te,searchContentHide:Pe,wrapper:Ee,wrapperField:Me,wrapperFieldCloseButton:Re,wrapperFieldInput:He}={wrapper:"FOKQTsuI",wrapperField:"wnfp5Sqe",wrapperFieldInput:"yX9JzQHA",wrapperFieldCloseButton:"sy3Il9HY",searchContentHide:"EeqBvXfv",searchContent:"dWSJJiQI",sectionsWrapper:"Czhm0sBD"},We=({setIsSearchBarOpen:e,isSearchBarOpen:t,flags:s})=>{const{searchValue:a,setSearchValue:i,suggestionsList:c,categories:d,products:u,totalResults:p,redirect:g,correctedQuery:m,setAllowNewSuggestions:h,debouncedSearch:j,handleKeyDown:v}=(()=>{const[e,t]=(0,r.useState)("butterfly"),[s,n]=(0,r.useState)(Ie),[a,i]=(0,r.useState)([]),[l,o]=(0,r.useState)([]),[c,d]=(0,r.useState)(0),[u,p]=(0,r.useState)(!1),[g,m]=(0,r.useState)(""),[h,j]=(0,r.useState)(null),{width:v}=(0,Ce.a)(),b=(0,r.useMemo)((()=>(0,Se.b)("aa_recently_viewed")),[]),x=(0,r.useMemo)((()=>(0,Se.b)("aa_recently_added")),[]),f=(0,r.useMemo)((()=>null==b?void 0:b.reduce(((e,t,s,n)=>s===n.length-1?e+t:e+t+","),"")),[]),O=(0,r.useMemo)((()=>null==x?void 0:x.reduce(((e,t,s,n)=>s===n.length-1?e+t:e+t+","),"")),[]),w=v<768?4:6,[y,k]=(0,r.useState)({});return(0,r.useEffect)((()=>{Be(void 0,void 0,void 0,(function*(){var e,t,s;try{const n="https://searchanise-ef84.kxcdn.com/templates.4z2n1X8F2t.js",r=yield fetch(n),a=null!==(s=null===(t=null===(e=(yield r.text()).split("Redirects:"))||void 0===e?void 0:e[1])||void 0===t?void 0:t.replace("}}","}"))&&void 0!==s?s:"{}",i=JSON.parse(a),l=Object.entries(i).reduce(((e,[t,s])=>(Array.isArray(s)&&s.forEach((s=>{e[s]=t.replace("https://www.alexandani.com","")})),e)),{});l&&k(l)}catch(e){console.log("err",e)}}))}),[]),(0,r.useEffect)((()=>{Be(void 0,void 0,void 0,(function*(){const{products:t,suggestions:s,categories:r,totalResults:a,correctedQuery:l}=yield(e=>Be(void 0,void 0,void 0,(function*(){var t,s,n,r,a,i,l;let o=`https://searchserverapi.com/getresults?api_key=4z2n1X8F2t&q=${null!==(t=null==e?void 0:e.toLowerCase())&&void 0!==t?t:""}&restrictBy%5Bstatus%5D=A&restrictBy[stock_status]=In Stock&maxResults=${w}&startIndex=0&items=true&pages=false&facets=false&categories=true&suggestions=true&vendors=false&tags=false&categoryStartIndex=0&categoriesMaxResults=6&suggestionsMaxResults=4`;f&&(o+=`&recentlyViewedProducts=${f}`),O&&(o+=`&recentlyAddedToCartProducts=${O}`);try{const t=yield fetch(o),c=yield t.json(),d=null!==(s=c.items)&&void 0!==s?s:[],u=null!==(n=c.suggestions)&&void 0!==n?n:[],p=null!==(r=c.categories)&&void 0!==r?r:[],g=null!==(a=c.totalItems)&&void 0!==a?a:0,h=c.correctedQuery,j=null!==(l=null!==(i=y[e])&&void 0!==i?i:y[null!=h?h:""])&&void 0!==l?l:"";return m(j),{products:d,suggestions:u,categories:p,totalResults:g,correctedQuery:h}}catch(e){return console.log("error",e),{products:[],suggestions:[],categories:[],totalResults:0,correctedQuery:void 0}}})))(e.toLowerCase()),c=null==t?void 0:t.map((e=>({firstImageSrc:null==e?void 0:e.image_link,secondImageSrc:"",alt:(null==e?void 0:e.title)+"_image",title:null==e?void 0:e.title,oldPrice:null==e?void 0:e.list_price,newPrice:null==e?void 0:e.price,productUrl:null==e?void 0:e.link})));d(a),o(c),i(null!=r?r:[]),u&&n(s),j(l?`${l}`:null)}))}),[e]),{suggestionsList:s,setSearchValue:t,searchValue:e,categories:a,products:l,totalResults:c,debouncedSearch:e=>{p(!0),e.length>1?t(e):t(Ie[0])},redirect:g,correctedQuery:h,setAllowNewSuggestions:p,handleKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),t.stopPropagation(),window.location.href=g||`/collections/shop?q=${null!=h?h:e}`)}}})();return(0,r.useEffect)((()=>{if(s.emilButtonBehindOverlays&&s.isMobile){const e=document.querySelector("#ltkPopupButtonTriggerContainer");e&&t&&(e.style.visibility="hidden"),e&&!t&&(e.style.visibility="visible")}}),[t]),(0,n.jsxs)("div",Object.assign({className:Ee},{children:[(0,n.jsxs)("div",Object.assign({className:Me},{children:[(0,n.jsx)(Le.a,{id:"searchInputId",iconName:"search",label:"Search",type:"text",required:!1,onChange:e=>j(e.currentTarget.value),inputClassName:He,onButtonClick:()=>{window.location.href=g||`/collections/shop?q=${null!=m?m:a}`},onKeyDown:v}),(0,n.jsx)("button",Object.assign({className:Re,onClick:()=>e(!1)},{children:(0,n.jsx)(o.a.u,{})}))]})),(0,n.jsxs)("div",Object.assign({className:(0,l.a)(Ae,!t&&Pe)},{children:[(0,n.jsx)(oe,{suggestionsList:c,redirect:g,setSearchValue:e=>{h(!1),i(e)}}),(0,n.jsxs)("div",Object.assign({className:Te},{children:[!!(null==d?void 0:d.length)&&(0,n.jsx)(Ne,{categoriesData:d}),(0,n.jsx)(Oe,{noResultsText:`No results found for "${a}".Please try another search.`,seeMoreLink:g||`/collections/shop?q=${null!=m?m:a}`,seeMoreText:`See ${p} results for "${null!=m?m:a}"`,productsList:u})]}))]}))]}))};const{wrapper:De,imageLink:_e,media:Ve,content:Fe,contentDetails:$e,details:qe,contentMain:Ge,soloDetails:Ye,detailsParagraph:Xe,detailsLinkTag:Ue,detailsTitleParagraph:Ke,detailsContent:Qe,descriptionParagraph:Ze}={wrapper:"nCjWUbUv",media:"WoaQI5hs",imageLink:"L4UXiJMj",content:"vjE6V8aM",contentDetails:"huP5C8N9",details:"kiYbsl0G",soloDetails:"EfXMWRPA",contentMain:"USNNtqmf",descriptionParagraph:"VcsNme9L",detailsContent:"cZd7dNEp",detailsParagraph:"G7XcSuII",detailsLinkTag:"KWKQe0mc",detailsTitleParagraph:"u4813mY0"},ze=({offer:{bottomLinkText:e,description:t,detailsDescription:s,detailsText:a,detailsLink:i,detailsTitle:o,endDate:c,image:d,title:u,link:p},closeText:g})=>{const[m,h]=(0,r.useState)(!1);return(0,n.jsxs)("div",Object.assign({className:De},{children:[(0,n.jsxs)("div",Object.assign({className:Ve},{children:[(null==d?void 0:d.imageSrc.includes(".mp4"))?(0,n.jsx)("video",{src:null==d?void 0:d.imageSrc,alt:null==d?void 0:d.alt,autoPlay:!0,muted:!0,loop:!0,playsInline:!0}):(0,n.jsx)("img",{src:null==d?void 0:d.imageSrc,alt:null==d?void 0:d.alt}),(0,n.jsx)("a",{className:_e,href:p})]})),(0,n.jsxs)("div",Object.assign({className:Fe},{children:[(0,n.jsxs)("div",Object.assign({className:(0,l.a)($e,(!c||m)&&Ye)},{children:[c&&!m?(0,n.jsx)("span",{children:c}):null,(0,n.jsx)("span",Object.assign({className:qe,onClick:()=>h(!m)},{children:m?g:a}))]})),(0,n.jsx)("div",Object.assign({className:Ge},{children:m?(0,n.jsxs)("div",Object.assign({className:Qe},{children:[o?(0,n.jsx)("p",Object.assign({className:Ke},{children:(0,n.jsx)("strong",{children:o})})):null,s?(0,n.jsxs)("a",Object.assign({className:`${Xe} ${!o&&i?Ue:""}`},i&&{href:i},{children:[s,i&&o?(0,n.jsx)("a",Object.assign({className:Ue,href:i,style:"font-size: 14px;"},{children:i})):null]})):null]})):(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{children:u}),(0,n.jsx)("p",Object.assign({className:Ze},{children:t})),(0,n.jsx)("a",Object.assign({href:p},{children:e}))]})}))]}))]}))};var Je=s(22);const{wrapper:et,overlay:tt,overlayVisible:st,wrapperVisible:nt,inner:rt,viewAll:at,bottomShadow:it,bottomArrowVisible:lt}={wrapper:"IdXd__Rh",inner:"N6LiY21d",viewAll:"nH8d0Na0",wrapperVisible:"ZmgHUwPS",overlay:"j2kYWC86",overlayVisible:"M1Y9Z8v5",bottomShadow:"IAB3EnmR",bottomArrowVisible:"eR5ImTL1"},ot=({isTodaysOfferOpen:e,setIsTodaysOfferOpen:t,promotions:s,flags:a})=>{var i,c,d,u;const[p,g,m]=(0,Je.a)();return(0,r.useEffect)((()=>{if(a.emilButtonBehindOverlays){const t=document.querySelector("#ltkPopupButtonTriggerContainer");t&&e&&(t.style.visibility="hidden"),t&&!e&&(t.style.visibility="visible")}}),[e]),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",Object.assign({className:`${et} ${e?nt:""}`},{children:[(0,n.jsx)("button",Object.assign({onClick:()=>t(!1)},{children:(0,n.jsx)(o.a.s,{})})),(0,n.jsxs)("div",Object.assign({className:rt},{children:[(0,n.jsx)("h2",{children:`${null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"Today's offers"} (${null!==(d=null===(c=null==s?void 0:s.offers)||void 0===c?void 0:c.length)&&void 0!==d?d:0})`}),(0,n.jsx)("ul",{children:null===(u=null==s?void 0:s.offers)||void 0===u?void 0:u.map((e=>(0,n.jsx)("li",{children:(0,n.jsx)(ze,Object.assign({closeText:null==s?void 0:s.closeText,offer:e},e))})))}),(0,n.jsx)("a",Object.assign({ref:m,className:at,href:"/pages/promotions-coupons-offers"},{children:null==s?void 0:s.viewAllText}))]})),!p&&!g&&(0,n.jsx)("div",Object.assign({className:(0,l.a)(it,lt)},{children:(0,n.jsx)(o.a.h,{})}))]})),(0,n.jsx)("div",{className:`${tt} ${e?st:""}`,onClick:()=>t(!1)})]})},ct={wrapper:"MZRW1ldv",wrapperCenter:"jMZigXpy",wrapperLeft:"DSZZCjap",wrapperRight:"uu1J05lC",wrapperScrollable:"q89kcD9y",noGoBackLabel:"MwRoXGA2"},{wrapper:dt,wrapperCenter:ut,wrapperRight:pt,wrapperLeft:gt}=ct,{wrapper:mt,wrapperButton:ht}={wrapper:"P2ChgoDG",wrapperButton:"SnISSB9E"},jt=({handleClick:e,label:t,padding:s=""})=>(0,n.jsx)("div",Object.assign({style:{padding:s},className:mt},{children:(0,n.jsxs)("button",Object.assign({onClick:e,className:ht},{children:[(0,n.jsx)(o.a.L,{}),t]}))})),{wrapper:vt,wrapperLink:bt}={wrapper:"o2wbZ8dZ",wrapperLink:"rBMym3pQ",wrapperLinkBold:"ASHyws1Q"},xt=({currentLink:{label:e,href:t}})=>(0,n.jsx)("li",Object.assign({className:vt},{children:(0,n.jsx)("a",Object.assign({className:bt,href:(t||"").toLowerCase()},{children:e}))})),{wrapper:ft,wrapperButton:Ot}={wrapper:"fiEXAZD6",wrapperButton:"vzjPS4Sw"},wt=({currentLink:{label:e},handleNextStep:t,nestedLinks:s})=>{const r=((e,t)=>void 0===t||0===(null==t?void 0:t.length)||0===(null==t?void 0:t.length)?()=>{}:e)(t,s);return(0,n.jsx)("li",Object.assign({className:(0,l.a)(ft)},{children:(0,n.jsxs)("button",Object.assign({className:Ot,"aria-label":e,onClick:r},{children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)(o.a.M,{})]}))}))},yt=e=>(0,n.jsx)(i.Fragment,{children:"simple"===e.linkVariant?(0,n.jsx)(xt,Object.assign({},e)):(0,n.jsx)(wt,Object.assign({},e))}),{wrapper:kt,wrapperList:Nt}={wrapper:"O6QjnOfl",wrapperList:"kAEOLs6g"},Ct=({textAlign:e="",mainMenuLabel:t,handlePrevStep:s,content:r,handleNextStep:a})=>(0,n.jsxs)("div",Object.assign({style:{textAlign:e},className:kt},{children:[t.length>0&&(0,n.jsx)(jt,{handleClick:s,label:t}),r.length>0&&(0,n.jsx)("ul",Object.assign({className:Nt},{children:r.map(((e,t)=>(0,i.createElement)(yt,Object.assign({},e,{key:e.currentLink.label,handleNextStep:a(e.linkVariant,t)}))))}))]})),St=({links:e,goNext:t,goBack:s,goBackLabel:a="",isActive:i,isHidden:o,menuBanners:c,menuTabNumber:d})=>{const{delayedState:u,className:p,onNextMiddleware:g,onGoBackMiddleware:m}=(e=>{const[t,s]=(0,r.useState)(e);(0,r.useEffect)((()=>{if(0===t.links.length&&e.links.length>0)return void s(e);if(0===t.links.length&&!e.isActive)return;if(e.isActive)return;const n=setTimeout((()=>{s(e)}),510);return()=>clearTimeout(n)}),[e]);const n=(0,r.useMemo)((()=>`${dt} ${e.isHidden?gt:e.isActive?ut:pt}`),[e.links.length,e.isHidden]),a=(0,r.useCallback)(((t,s,n)=>e.isActive?"simple"===s?()=>{}:()=>t&&t(n):()=>{}),[e.isActive]),i=(0,r.useCallback)((t=>e.isActive?()=>{t&&t()}:()=>{}),[e.isActive]);return{delayedState:t,className:n,onNextMiddleware:a,onGoBackMiddleware:i}})({goBackLabel:a,links:e,isActive:i,isHidden:o}),h=c&&d&&c.filter((e=>e.menuItem===d));return(0,n.jsxs)("div",Object.assign({className:(0,l.a)(p,!a&&ct.noGoBackLabel),style:{overflowY:"auto",overflowX:"hidden"}},{children:[(0,n.jsx)(Ct,{mainMenuLabel:u.goBackLabel,handlePrevStep:m(s),handleNextStep:(e,s)=>g(t,e,s),content:u.links}),h&&Q(h).map((e=>(0,n.jsx)("div",{children:(0,n.jsx)(D,{banner:e,isMobileMenu:!0})})))]}))},{footer:Bt,footerLogIn:It,footerLogInContent:Lt,footerSocials:At}={footer:"stWh_JWx",footerLogIn:"tJ1Gv4Pn",footerLogInContent:"GLcInc9t",footerSocials:"_xNd24gt"},Tt=({socialMediaLinks:e})=>(0,n.jsxs)("div",Object.assign({className:Bt},{children:[(0,n.jsx)("div",Object.assign({className:It},{children:(0,n.jsx)("div",Object.assign({className:Lt},{children:(0,n.jsxs)("a",Object.assign({href:"/account/login"},{children:[(0,n.jsx)(o.a.bb,{}),(0,n.jsx)("span",{children:"Log In"})]}))}))})),(0,n.jsxs)("div",Object.assign({className:At},{children:[(0,n.jsx)("a",Object.assign({href:e.facebook,target:"_blank",rel:"noopener noreferrer"},{children:(0,n.jsx)(o.a.D,{})})),(0,n.jsx)("a",Object.assign({href:e.twitter,target:"_blank",rel:"noopener noreferrer"},{children:(0,n.jsx)(o.a.$,{})})),(0,n.jsx)("a",Object.assign({href:e.instagram,target:"_blank",rel:"noopener noreferrer"},{children:(0,n.jsx)(o.a.H,{})})),(0,n.jsx)("a",Object.assign({href:e.youtube,target:"_blank",rel:"noopener noreferrer"},{children:(0,n.jsx)(o.a.eb,{})})),(0,n.jsx)("a",Object.assign({href:e.pinterest,target:"_blank",rel:"noopener noreferrer"},{children:(0,n.jsx)(o.a.O,{})}))]}))]})),{content:Pt,contentLogo:Et,contentLogoImage:Mt,contentActive:Rt,contentMenu:Ht,navigatorWrapperHamburgerButton:Wt,navigatorWrapperHamburgerButtonBar:Dt,navigatorWrapperHamburgerButtonActive:_t,navigatorWrapperHamburgerButtonBarActive:Vt,overflow:Ft,overflowActive:$t}={content:"qS7Vvnyp",contentLogo:"pwYj42nE",contentLogoImage:"x3xl5VjN",contentActive:"Qsp8iETd",contentMenu:"Uph0Dhl6",contentFooter:"VTL2AF3B",overflow:"m4AX5r5P",overflowActive:"fZJbrfgf",navigator:"x9VvDpHV",navigatorSearchActive:"Xq_BgAtV",navigatorWrapper:"G9vBGuM3",navigatorWrapperSearch:"kIMWCCVM",navigatorWrapperIcons:"fJMaVEeV",navigatorWrapperLogo:"gEvuVkuj",navigatorWrapperLogoFadeOut:"YSSVlonw",navigatorWrapperCartIcon:"pZeUocBG",navigatorWrapperCartIconFadeOut:"gka0lfvc",navigatorWrapperCartIconActive:"Q7tvT9OS",navigatorWrapperCartIconItemsAmount:"WJgxwDKw",navigatorWrapperMagnifier:"amtu53K0",navigatorWrapperMagnifierActive:"uW8CvfOR",navigatorWrapperSearchInput:"py0VCuLj",navigatorWrapperSearchInputActive:"nxBaxGD8",navigatorWrapperHamburgerButton:"bw4OVZsC",navigatorWrapperHamburgerButtonBar:"TVlQQpiD",navigatorWrapperHamburgerButtonBarActive:"ELv9tOqM",navigatorWrapperHamburgerButtonActive:"gpbLF8ET",navigatorWrapperItem:"un3tPpNn",navigatorWrapperItemLink:"YljUMX2a"},qt=({actions:e,steps:t,isHeaderOpened:s,toggleHeader:r,onHamburgerClick:a,menuBanners:o,socialMediaLinks:c,headerLogoSrc:d})=>(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("div",Object.assign({className:(0,l.a)(Pt,s&&Rt)},{children:[(0,n.jsx)("div",Object.assign({className:Et},{children:(0,n.jsx)("a",Object.assign({href:"/"},{children:(0,n.jsx)("img",{className:Mt,src:`${d}`,alt:"ALEX AND ANI"})}))})),(0,n.jsxs)("div",Object.assign({className:Ht},{children:[(0,n.jsx)(St,Object.assign({goNext:e.setFirstStepIndex},t.baseStep)),(0,n.jsx)(St,Object.assign({goNext:e.setSecondIndex,goBack:e.goBackToBaseStep,menuBanners:o},t.secondStep)),(0,n.jsx)(St,Object.assign({goBack:e.goBackToFirstStep},t.thirdStep))]})),(0,n.jsx)(Tt,{socialMediaLinks:c}),s&&(0,n.jsxs)("button",Object.assign({className:(0,l.a)(Wt,s&&_t),onClick:()=>{a()}},{children:[(0,n.jsx)("span",{className:(0,l.a)(Dt,s&&Vt)}),(0,n.jsx)("span",{className:(0,l.a)(Dt,s&&Vt)}),(0,n.jsx)("span",{className:(0,l.a)(Dt,s&&Vt)})]}))]})),(0,n.jsx)("div",{className:(0,l.a)(Ft,s&&$t),onClick:r})]}),{wrapper:Gt}={wrapper:"blVsmrfW"},Yt=e=>((0,r.useEffect)((()=>{if(e.flags.emilButtonBehindOverlays){const t=document.querySelector("#ltkPopupButtonTriggerContainer");t&&e.isHeaderOpened&&(t.style.visibility="hidden"),t&&!e.isHeaderOpened&&(t.style.visibility="visible")}}),[e.isHeaderOpened]),(0,n.jsx)("div",Object.assign({className:Gt},{children:(0,n.jsx)(qt,Object.assign({},e,{onHamburgerClick:e.onHamburgerClick}))})));var Xt=s(53),Ut=s(6);const{wrapper:Kt,wrapperProgressBar:Qt,wrapperProgressActive:Zt,wrapperProgress:zt}={wrapper:"kbaqOEkb",wrapperProgress:"YlHgTp4g",wrapperProgressActive:"N6AWgBre",wrapperProgressBar:"lfbZqfkl"},Jt=({announcement:e,isProduct:t})=>{if(isNaN(e.progress))return null;const{message:s,progress:r}=e;return(0,n.jsxs)("section",Object.assign({className:Kt},{children:[s,(0,n.jsx)("div",Object.assign({className:(0,l.a)(zt,t&&Zt)},{children:(0,n.jsx)("div",{className:Qt,style:{width:100*r+"%"}})}))]}))},{wrapper:es,wrapperDescription:ts,wrapperCodeWrapper:ss}={wrapper:"GoYKz877",wrapperDescription:"LG4z5OPl",wrapperCodeWrapper:"xQKz0dod"},ns=({offerCode:e,offerCodeTier:t,firstText:s,secondText:r})=>{const{pre:a,post:i}=s,{pre:l,post:o}=r;return(0,n.jsxs)("section",Object.assign({className:es},{children:[(0,n.jsxs)("p",Object.assign({className:ts},{children:[a," ",(0,n.jsx)("span",{children:t.replace("P","%")})," ",i]})),(0,n.jsxs)("div",Object.assign({className:ss},{children:[l," ",(0,n.jsx)("span",{children:e})," ",o]}))]}))},{container:rs,header:as,headerContent:is,headerContentLogo:ls,headerContentLogoImage:os,headerContentHamburgerButtonBar:cs,headerContentHamburgerButton:ds,headerContentHamburgerButtonActive:us,headerContentHamburgerButtonBarActive:ps,searchWrapper:gs,visibleSearchBar:ms}={container:"IhPaLZUR",header:"G8yzGXtL",headerContent:"Y3EJpxHD",headerContentLogo:"_VAspEYf",headerContentLogoImage:"AOzYkhw2",headerContentHamburgerButton:"_91cY1aZ",headerContentHamburgerButtonBar:"D8iHeyCk",headerContentHamburgerButtonBarActive:"Dk3hDAo7",headerContentHamburgerButtonActive:"ReH4OCZk",searchWrapper:"x5IsrMsR",visibleSearchBar:"g1svTPWc"},hs=e=>{var t,s;const[a,i]=(0,r.useState)(!1);(0,Xt.a)(a);const[o,c]=(0,r.useState)(!1),{promotions:d,header:u,announcementProgress:p,discountBanner:g,flags:m}=e,{announcementBars:h,headerLogoSrc:j,desktopMenu:v,mobileMenu:b,menuBanners:x,socialMediaLinks:O}=u,w=(e=>{var t=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r{const[s,n]=(0,r.useState)({selectedIndex:-1,innerSelectedIndex:-1,isAnimating:!1}),a=(0,r.useMemo)((()=>({links:e,isActive:!0,isHidden:s.selectedIndex>=0})),[e,s.selectedIndex]),i=(0,r.useMemo)((()=>{if(s.selectedIndex<0)return{links:[],goBackLabel:t,isActive:!1,isHidden:!1};const n=e[s.selectedIndex];return"nested"!==n.linkVariant?{links:[],goBackLabel:t,isActive:!0,isHidden:s.innerSelectedIndex>=0}:{links:n.nestedLinks,heading:n.heading,goBackLabel:t,isActive:!0,isHidden:s.innerSelectedIndex>=0,menuTabNumber:s.selectedIndex+1}}),[s.selectedIndex,s.innerSelectedIndex]),l=(0,r.useMemo)((()=>{if(s.innerSelectedIndex<0||s.selectedIndex<0)return{links:[],goBackLabel:t,isActive:!1,isHidden:!1};const n=e[s.selectedIndex];if("simple"===n.linkVariant)return{links:[],goBackLabel:t,isActive:!0,isHidden:!1};const r=n.nestedLinks[s.innerSelectedIndex];return"simple"===r.linkVariant?{links:[],goBackLabel:t,isActive:!0,isHidden:!1}:{links:r.nestedLinks,heading:r.heading,goBackLabel:n.currentLink.label,isActive:!0,isHidden:!1}}),[s.selectedIndex,s.innerSelectedIndex]),o=(0,r.useCallback)((e=>{s.isAnimating||n((t=>Object.assign(Object.assign({},t),{selectedIndex:e,isAnimating:!0})))}),[s.isAnimating]),c=(0,r.useCallback)((e=>{s.isAnimating||n((t=>Object.assign(Object.assign({},t),{innerSelectedIndex:e,isAnimating:!0})))}),[s.isAnimating]),d=(0,r.useCallback)((()=>{s.isAnimating||n((e=>Object.assign(Object.assign({},e),{innerSelectedIndex:-1,isAnimating:!0})))}),[s.isAnimating]),u=(0,r.useCallback)((()=>{s.isAnimating||n((e=>Object.assign(Object.assign({},e),{innerSelectedIndex:-1,selectedIndex:-1,isAnimating:!0})))}),[s.isAnimating]);return(0,r.useEffect)((()=>{if(!s.isAnimating)return;const e=setTimeout((()=>{n((e=>Object.assign(Object.assign({},e),{isAnimating:!1})))}),510);return()=>clearTimeout(e)}),[s.isAnimating]),{steps:{baseStep:a,secondStep:i,thirdStep:l},actions:{setFirstStepIndex:o,setSecondIndex:c,goBackToFirstStep:d,goBackToBaseStep:u}}})(t);return Object.assign(Object.assign({},t),{steps:a,actions:i,isHeaderOpened:s,toggleHeader:()=>{n(!s)}})})(b),{toggleHeader:y,isHeaderOpened:k}=w,{onHamburgerClick:N}=(({isHeaderOpened:e,toggleHeader:t})=>{const[s,n]=(()=>{const[e,t]=(0,r.useState)(!1);return("undefined"!=typeof window?r.useLayoutEffect:r.useEffect)((()=>{if(e){const e=document.body.style.overflow,t=document.body.style.paddingRight;document.documentElement.style.overflowX="visible",document.body.style.overflow="hidden";const s=document.body,n=s?s.offsetWidth-s.scrollWidth:0;return n&&(document.body.style.paddingRight=`${n}px`),()=>{document.body.style.overflow=e,n&&(document.body.style.paddingRight=t)}}return document.documentElement.style.overflowX="hidden",()=>{document.documentElement.style.overflowX="visible"}}),[e]),[e,t]})();return(0,r.useEffect)((()=>{n(e)}),[e]),{onHamburgerClick:()=>{t()}}})({toggleHeader:y,isHeaderOpened:k}),C=Object.assign(Object.assign({},w),{menuBanners:x,socialMediaLinks:O,headerLogoSrc:j,onHamburgerClick:N});return(0,n.jsxs)("div",Object.assign({className:rs},{children:[(0,n.jsxs)("header",Object.assign({className:(0,l.a)(as,m.isAnnouncementProgressBarEnabled&&p.isAnnouncementProgressBarEnabled&&"progressBarActive",(null==g?void 0:g.offerCode)&&"discountBannerActive",p.isAnnouncementProgressBarEnabled&&m.isAnnouncementProgressBarEnabled&&(null==g?void 0:g.offerCode)&&"progressBarAndDiscountBannerActive")},{children:[(null==g?void 0:g.offerCode)&&(0,n.jsx)(ns,Object.assign({},g)),(0,n.jsx)(S,{bars:h,announcementProgress:p,cartItemsCount:e.cartItemsCount}),p.isAnnouncementProgressBarEnabled&&m.isAnnouncementProgressBarEnabled&&(0,n.jsx)(Jt,{isProduct:e.cartItemsCount>0,announcement:{message:(null==p?void 0:p.totalPrice)/(null==p?void 0:p.targetPrice)>=1?"YOU GOT FREE SHIPPING!":`ADD ${(0,l.b)(Math.max(((null==p?void 0:p.targetPrice)-(null==p?void 0:p.totalPrice))/100,0),null==p?void 0:p.currency)} MORE FOR FREE SHIPPING!`,progress:null!==(t=(null==p?void 0:p.totalPrice)/(null==p?void 0:p.targetPrice))&&void 0!==t?t:0}}),(0,n.jsxs)("div",Object.assign({className:is},{children:[(0,n.jsxs)("button",Object.assign({className:(0,l.a)(ds,k&&us),onClick:()=>{N()}},{children:[(0,n.jsx)("span",{className:(0,l.a)(cs,k&&ps)}),(0,n.jsx)("span",{className:(0,l.a)(cs,k&&ps)}),(0,n.jsx)("span",{className:(0,l.a)(cs,k&&ps)})]})),(0,n.jsx)(Yt,Object.assign({},C,{flags:m})),(0,n.jsx)("div",Object.assign({className:ls},{children:(0,n.jsx)("a",Object.assign({href:"/"},{children:(0,n.jsx)("div",Object.assign({className:os},{children:(0,n.jsx)(Ut.c,{})}))}))})),(0,n.jsx)(ne,{menu:v.items,menuBanners:x,flags:m}),(0,n.jsx)(f,Object.assign({setIsTodaysOfferOpen:i,numberOfOffers:null===(s=null==d?void 0:d.offers)||void 0===s?void 0:s.length,setIsSearchBarOpen:c},e))]})),(0,n.jsx)("div",Object.assign({className:`${gs} ${o?ms:""}`},{children:(0,n.jsx)(We,{isSearchBarOpen:o,setIsSearchBarOpen:c,flags:m})}))]})),(0,n.jsx)(ot,{isTodaysOfferOpen:a,setIsTodaysOfferOpen:i,promotions:d,flags:m})]}))};var js=s(4),vs=s(64);const bs="_landing_site";(0,js.createEntrypoint)("header",(e=>{var{useSharedState:t}=e,s=function(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r({showCart:()=>t(!0),cartItemsCount:e.item_count,isCartOpen:n,currentVariant:r,updateCartAttributes:a,cart:e,announcementProgress:{totalPrice:e.total_price,currency:e.currency,targetPrice:s.cart.progressBar.targetPrice,isAnnouncementProgressBarEnabled:s.header.isAnnouncementProgressBarEnabled}})));(0,r.useEffect)((()=>{var e;if("undefined"==typeof window)return;const t=null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.href,s=(0,a.a)(bs);if(!s)return(0,a.c)(bs,t),void(t.includes("utm_")&&i.updateCartAttributes({[bs]:t}));s.includes("utm_")&&i.updateCartAttributes({[bs]:s})}),[]);const[l,o]=(0,r.useState)(),c=e=>{"disabled"===(0,js.getAssignment)("listrakBanner")||o(e)};return(0,r.useEffect)((()=>{(0,vs.b)(i.currentVariant.sku),((e,t)=>{try{var s="https:"==document.location.protocol?"https://":"http://";n=document,r="script",a="ltkSDK",o=n.getElementsByTagName(r)[0],n.getElementById(a)||((l=n.createElement(r)).id=a,l.src=s+"cdn.listrakbi.com/scripts/script.js?m=f7kFi9cLp0a2&v=1",null===(i=o.parentNode)||void 0===i||i.insertBefore(l,o)),function(e){if("undefined"==typeof _ltk)if(document.addEventListener)document.addEventListener("ltkAsyncListener",(function(){_ltk_util.ready(e)}));else{let t=document.documentElement;t.ltkAsyncProperty=0,t.attachEvent("onpropertychange",(function(t){"ltkAsyncProperty"==t.propertyName&&_ltk_util.ready(e)}))}else _ltk_util.ready(e)}((function(){_ltk.Signup.New("Footer","NewsletterForm--footer",_ltk.Signup.TYPE.CLICK,"NewsletterSignUp"),_ltk.Signup.New("ShopifyRegister","RegisterForm-email",_ltk.Signup.TYPE.DEFAULT,"AccountCreateSubmit"),_ltk.Signup.SetOptIn("ShopifyRegister","accepts-marketing");const s=_ltk.OnsiteContent.getCartValue(),n=_ltk.OnsiteContent.getOfferCode()||t.ltk_offer,r=_ltk.OnsiteContent.getOfferCodeExpiration(),a=_ltk.OnsiteContent.getOfferTier()||t.ltk_offer_tier,i={cartValue:s,offerCode:n,offerCodeExpiration:r,offerCodeTier:a};Object.values(i).some((e=>e))&&e({cartValue:s,offerCode:n,offerCodeExpiration:new Date(r).toISOString(),offerCodeTier:a,firstText:{pre:"You're eligible for",post:"your first order!"},secondText:{pre:"Use code",post:""}})}))}catch(e){console.error("Error on initializing Listrak BI script",e)}var n,r,a,i,l,o})(c,s.listrakParams)}),[]),(0,r.useEffect)((()=>{i.isCartOpen||function(){const e=document.createElement("script");e.innerHTML="\n (\n function(){\n var s = document.createElement('script'),e = ! document.body \n ? document.querySelector('head') \n : document.body;\n s.src = 'https://acsbapp.com/apps/app/dist/js/app.js';\n s.async = true;\n s.onload = function(){\n acsbJS.init({statementLink : '',footerHtml : '',hideMobile : false,hideTrigger : false,language : 'en',position : 'left',leadColor : '#000000',triggerColor : '#000000',triggerRadius : '50%',triggerPositionX : 'left',triggerPositionY : 'bottom',triggerIcon : 'people',triggerSize : 'small',triggerOffsetX : 20,triggerOffsetY : 60,mobile : {triggerSize : 'small',triggerPositionX : 'left',triggerPositionY : 'bottom',triggerOffsetX : 10,triggerOffsetY : 75,triggerRadius : '50%'}});\n };\n e.appendChild(s);\n}()); \n ",e.type="text/javascript",document.body.append(e)}()}),[i.isCartOpen]),(0,r.useEffect)((()=>{const e=document.querySelector("#ltkPopupButtonTriggerContainer");e&&i.isCartOpen&&(e.style.visibility="hidden"),e&&!i.isCartOpen&&(e.style.visibility="visible")}),[i.isCartOpen]),(0,n.jsx)(hs,Object.assign({},i,s,{discountBanner:l}))}))},44:(e,t,s)=>{s.d(t,{a:()=>g});var n=s(0);s(1);var r=s(5),a=s(3),i=s(2);const{wrapper:l,wrapperLabel:o,wrapperArrowButton:c,wrapperInput:d,wrapperSearchButton:u,wrapperButton:p}={wrapper:"hVhlQDRb",wrapperInput:"qmcp27Zf",wrapperLabel:"v_4QmvlZ",wrapperButton:"bj_7z5q1",wrapperArrowButton:"qFCcoK1d",wrapperSearchButton:"HTgDn42M"},g=({iconName:e,id:t,buttonId:s="",inputClassName:g,label:m="Enter your email",labelClassName:h,onButtonClick:j,onChange:v,required:b=!0,type:x="email",typeButton:f="submit",onKeyDown:O})=>{const w=(0,i.useMemo)((()=>{switch(e){case"rightArrow":return(0,n.jsx)("button",Object.assign({id:s,type:f,className:(0,a.a)(p,c)},{children:(0,n.jsx)(r.a.R,{})}));case"search":return(0,n.jsx)("button",Object.assign({className:(0,a.a)(p,u),onClick:j},{children:(0,n.jsx)(r.a.S,{})}));default:return null}}),[e,j]);return(0,n.jsxs)("div",Object.assign({className:l},{children:[(0,n.jsx)("input",{id:t,className:(0,a.a)(d,g),type:x,required:b,placeholder:" ",onChange:v,autoCorrect:"off",autoCapitalize:"off",onKeyDown:O}),(0,n.jsx)("label",Object.assign({className:(0,a.a)(o,h)},{children:m})),w]}))}},22:(e,t,s)=>{s.d(t,{a:()=>r});var n=s(2);const r=()=>{const[e,t]=(0,n.useState)(!1),[s,r]=(0,n.useState)(!1),a=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const e=a.current;if(!e)return;const s=new IntersectionObserver((([e])=>{t(e.isIntersecting),r(e.boundingClientRect.y<100)}),{rootMargin:"-100px 0px 0px 0px",threshold:0});return s.observe(e),()=>{s.unobserve(e)}}),[]),[e,s,a]}}},e=>{e.O(0,[1,2,4,3,5,6,15,18,14],(()=>(106,e(e.s=106)))),e.O()}]);