PageSourceSearch

https://shophcc.com/_next/static/immutable/chunks/1rl_gkucdpleh.js

js shophcc.com collected 2026-09-24 12:42:52 UTC 497,567 bytes, 185 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,338984,e=>{e.v({hover_container:"hover-module__EkqOvW__hover_container",hover_div:"hover-module__EkqOvW__hover_div"})},262459,e=>{e.v({hover_container:"hover-module__IqqiXG__hover_container",hover_div:"hover-module__IqqiXG__hover_div"})},216766,e=>{"use strict";var t,s=e.i(843476),a=e.i(258288),r=e.i(247167),l=e.i(318590),o=e.i(587446),i=e.i(311738),n=e.i(980401),c=e.i(375677),d=e.i(259997),m=e.i(808340),u=e.i(701973),h=e.i(770703),x=e.i(657688),p=e.i(522016),f=e.i(596924),g=e.i(3303),b=e.i(271645),j=e.i(259503);let v=({className:e="w-5 h-5"})=>(0,s.jsxs)("svg",{viewBox:"0 0 48 48",className:e,"aria-hidden":"true",children:[(0,s.jsx)("path",{fill:"#FFC107",d:"M43.6 20.5H42V20H24v8h11.3C33.7 32.9 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.1 8 3l6-6C34.6 5.1 29.6 3 24 3 12.4 3 3 12.4 3 24s9.4 21 21 21 21-9.4 21-21c0-1.3-.1-2.7-.4-4.5z"}),(0,s.jsx)("path",{fill:"#FF3D00",d:"M6.3 14.7l6.6 4.8C14.6 15.1 18.9 12 24 12c3.1 0 5.8 1.1 8 3l6-6C34.6 5.1 29.6 3 24 3 16.3 3 9.7 7.3 6.3 14.7z"}),(0,s.jsx)("path",{fill:"#4CAF50",d:"M24 45c5.5 0 10.4-1.8 14.3-5l-6.6-5.6C29.5 36 26.9 37 24 37c-5.3 0-9.7-3.1-11.3-7.5l-6.6 5.1C9.6 40.5 16.2 45 24 45z"}),(0,s.jsx)("path",{fill:"#1976D2",d:"M43.6 20.5H24v8h11.3c-.8 2.4-2.4 4.4-4.6 5.9l6.6 5.6C41.3 36.9 45 30.9 45 24c0-1.3-.1-2.7-.4-4.5z"})]}),w={outline:"inline-flex items-center gap-2 px-4 py-2.5 rounded-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-transparent text-gray-900 dark:text-white text-sm font-medium hover:opacity-80 transition-opacity",solid:"inline-flex items-center gap-2 pl-1.5 pr-2 py-1.5 rounded-full bg-primary text-white text-sm font-semibold hover:opacity-90 transition-opacity",dark:"inline-flex items-center gap-2 pl-1.5 pr-2 py-1.5 rounded-full bg-black border border-primary text-white text-sm font-semibold hover:opacity-90 transition-opacity",minimal:"inline-flex items-center gap-2 pb-1 border-b-2 border-primary text-gray-900 dark:text-white text-sm font-medium hover:opacity-80 transition-opacity",badge:"inline-flex items-center gap-2 pl-2 pr-4 py-2 rounded-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-transparent text-gray-900 dark:text-white text-sm font-medium hover:opacity-80 transition-opacity"};function y({buttonStyle:e,title:t}){switch(e){case"solid":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"bg-white rounded-full p-1 flex items-center justify-center",children:(0,s.jsx)(v,{className:"w-3.5 h-3.5"})}),t,(0,s.jsx)("span",{className:"bg-white/20 rounded-full w-5 h-5 flex items-center justify-center text-xs",children:"+"})]});case"dark":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"bg-white rounded-full p-1 flex items-center justify-center",children:(0,s.jsx)(v,{className:"w-3.5 h-3.5"})}),t,(0,s.jsx)("span",{className:"bg-primary rounded-full w-5 h-5 flex items-center justify-center text-xs",children:"+"})]});case"minimal":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{className:"w-4 h-4"}),t,(0,s.jsx)("span",{className:"text-primary font-bold",children:"+"})]});case"badge":return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"bg-primary text-white text-[10px] font-bold px-2 py-0.5 rounded-full uppercase tracking-wide",children:"Preferred"}),t,(0,s.jsx)(v,{className:"w-4 h-4"})]});default:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{className:"w-4 h-4"}),t]})}}let N=({preferredSourceSettings:e})=>{let t=(0,j.useIsDarkTheme)(),a=(0,b.useRef)(null),r=e?.isEnabled,l=e?.buttonStyle||"outline",o=e?.buttonTitle?.trim()||"Add us as a preferred source on Google",i=t&&e?.darkBackgroundColor||e?.backgroundColor,n=t&&e?.darkTextColor||e?.textColor;return((0,b.useEffect)(()=>{let e=a.current;e&&(i&&"minimal"!==l?e.style.setProperty("background-color",i,"important"):e.style.removeProperty("background-color"),n?e.style.setProperty("color",n,"important"):e.style.removeProperty("color"))},[i,n,l]),(0,b.useEffect)(()=>{let e;if(!r)return;let s=a.current;if(s)return window.PREFERRED_SOURCE=window.PREFERRED_SOURCE||[],window.PREFERRED_SOURCE.push(a=>{a.init({theme:t?"dark":"light"});let r=()=>a.addPreferredSource();s.addEventListener("click",r),e=()=>s.removeEventListener("click",r)}
1),()=>e?.()},[r,t]),r)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.default,{async:!0,src:"https://news.google.com/swg/js/v1/publisher.js",strategy:"afterInteractive","preferred-sources-control":"manual"}),(0,s.jsx)("button",{ref:a,type:"button",className:`mt-4 ${w[l]}`,children:(0,s.jsx)(y,{buttonStyle:l,title:o})})]}):null};var k=e.i(157204);let C=(0,h.default)(()=>e.A(582242),{loadableGenerated:{modules:[840429]},ssr:!1}),S=({cmsData:e,quickLinks:t,preloadedCustomProductCategoryData:r,preloadedTodaySpecialsValue:l,preloadedSocialLinksCms:o,preferredSourceSettings:i})=>{let{dealsVersion:n,setIsDefaultHomePage:h,isDefaultHomePage:g,retailerId:b}=(0,a.useGlobalStore)(),{displayCategoryName:j}=(0,c.default)(),v=(0,d.decryptFromCookies)("provider"),w=(0,a.useGlobalStore)(),y=r??w.customProductCategoryData,S=l?.length>0?l:w.todaySpecialsValue,L=o??w.commonCMSData?.socialLinksCms,R=void 0!==r||void 0!==l||void 0!==o;return(0,s.jsxs)("div",{className:"_container md:grid 2xl:grid-cols-12 md:grid-cols-4 gap-24 py-12",children:[(0,s.jsxs)("div",{className:"2xl:col-span-3 2xl:pr-5",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo?e?.logo:"/images/logo.svg",alt:e?.logoAlt||"",title:e?.logoTitle||"",width:150,height:50,className:"md:mx-0 object-contain h-[130px] w-auto"}),(0,s.jsx)("div",{className:"_body mb-6 md:text-left w-[80%] md:w-full text-gray-800 mt-4",children:e?.subtext&&(0,s.jsx)("div",{color:"footer-font-color",dangerouslySetInnerHTML:{__html:e?.subtext}})}),L&&L?.isShowSocialLink&&(0,s.jsx)("div",{className:"flex items-center gap-5",children:L?.socialLinks?.length&&L?.socialLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.link,onClick:()=>{(0,u.handleDefaultHomePage)(b,g,h)},children:(0,s.jsx)("button",{className:"text-white h-[40px] w-[40px] rounded-full flex items-center justify-center",children:(0,s.jsx)(x.default,{src:e?.image||"",alt:e?.title||"",width:40,height:40})})},t))}),(0,s.jsx)(N,{preferredSourceSettings:i})]}),(0,s.jsx)("br",{className:"md:hidden"}),(0,s.jsx)("br",{className:"md:hidden"}),(0,s.jsxs)("div",{className:"2xl:col-span-3",children:[(0,s.jsx)("p",{className:P,children:t?.title||"Quick Links"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{className:"flex flex-col flex-wrap max-h-[20rem] md:max-h-[20rem]",children:t?.links?.length>0?t?.links?.map((e,t)=>{if((0,m.isEcommerceOrPortfolioProvider)(v??"")&&(e?.url==="/find-a-dispensary"||e?.url==="/store-directory"))return;let a=(e?.url??"").trim(),r=(0,k.isExternalNavHref)(a),l=a?(0,k.normalizeNavHref)(a):"/",o=e?.enableSubmenu&&e?.subLinks?.length>0;return(0,s.jsxs)("div",{className:"relative group flex items-start gap-2",children:[e?.label?.toLowerCase()!=="deals"||e?.url?(0,s.jsx)(p.default,{href:l,className:D,...r?{target:"_blank",rel:"noopener noreferrer"}:{},onClick:()=>{(0,u.handleDefaultHomePage)(b,g,h)},children:e.label}):(0,s.jsx)(p.default,{href:n?"/deals":"/",className:D,onClick:()=>{(0,u.handleDefaultHomePage)(b,g,h)},children:e.label}),o&&(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-1/2 left-0 mt-3 group-hover:mt-2 bg-[var(--website-cards-bg-color)] border border-[var(--website-cards-border-color)] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e.subLinks.map((e,a)=>{let r=(e?.url??"").trim(),l=(0,k.isExternalNavHref)(r),o=r?(0,k.normalizeNavHref)(r):"/";return(0,s.jsx)(p.default,{href:o,...l?{target:"_blank",rel:"noopener noreferrer"}:{},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg !text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:!text-[var(--fill-button-font-color)]",onClick:()=>{(0,u.handleDefaultHomePage)(b,g,h)},children:e.label},"footer-sublink"+t+a)})})]},"footer-links"+t)}):(0,s.jsx)(f.default,{count:5,height:20})})]}),!(0,m.isProviderIFrame)(v??"")&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"2xl:col-span-3",children:[(0,s.jsx)("p",{className:P,children:"Shop"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{className:"flex flex-col flex-wrap max-h-72 md:max-h-80 gap-3",children:y?.length>0?y?.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",alt:e?.imageAlt||(0,u.urlSlug)(e?.categoryName||e)||"",title:e?.imageitle||(0,u.urlSlug)(e?.categoryName||e)||"",width:"40",height:"40",className:"mt-0.5 object-contain"}),(0,s.jsx)(p.default,{href:`/category/${(0,u.urlSlug)(e?.categoryName||e)}`||"/",className:`${D}`,style:{marginBottom:0},onClick:()=>{(0,u.handleDefaultHomePage)(b,g,h)},children:j(e)})]},t)):R?null:(0,s.jsx)(f.default,{count:5,height:40})})]}),(0,s.jsxs)("div",{className:"2xl:col-span-3",children:[(0,s.jsx)("p",{className:P,children:"Today's Deal
1s"}),(0,s.jsx)("br",{}),(0,s.jsx)("div",{className:"max-h-auto",children:S?.slice(0,5)?.map((e,t)=>(0,s.jsx)("div",{className:"",children:(0,s.jsx)(p.default,{href:`/deals-collection/category?specialSlug=${e?.urlSlug}`,className:"custom-body-1 w-full capitalize mb-[21px] hover:underline max-w-[300px] line-clamp-2",onClick:()=>{(0,u.handleDefaultHomePage)(b,g,h)},children:e.name})},t))}),(0,s.jsx)(C,{})]})]})]})},P="_sb mb-3 border-b website-cards-border-color pb-3",D="custom-body-1 block w-max mb-8 hover:underline truncate max-w-64",L=({retail:e})=>{let{setIsDefaultHomePage:t,isDefaultHomePage:r,retailerId:l}=(0,a.useGlobalStore)(),o=e?.urlSlug??e?.retailerId??"",i=o.startsWith("http://")||o.startsWith("https://"),n=i?o:`/${o}`;return i?(0,s.jsx)("a",{className:"hover-text !font-semibold",href:n,target:"_blank",rel:"noopener noreferrer",children:"Store Details"}):(0,s.jsx)(p.default,{className:"hover-text !font-semibold",href:n,onClick:()=>{(0,u.handleDefaultHomePage)(l,r,t)},children:"Store Details"})};var R=e.i(88572),M=e.i(618566),E=e.i(979872);let F=({showcaseFooterData:e,preferredSourceSettings:t})=>{let a=(0,M.usePathname)(),r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("footer",{className:"showcase-footer-background-color py-12  hidden md:block",children:(0,s.jsxs)("div",{className:"_container  space-y-10",children:[(0,s.jsxs)("h2",{className:"text-5xl font-light",children:[(0,s.jsx)("span",{className:"showcase-footer-title-color",children:e?.footerTitle??""}),(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"showcase-footer-highlighted-text-color",children:e?.highLightedText??""})]}),(0,s.jsx)(N,{preferredSourceSettings:t}),e&&e?.menuList?.length>0&&(0,s.jsx)("nav",{className:"grid grid-cols-4 gap-12",children:e?.menuList?.map((e,t)=>(0,s.jsxs)("div",{className:"grid gap-4 content-start",children:[e?.menuTitle&&(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-semibold uppercase tracking-wider",children:e.menuTitle}),e?.items&&e?.items?.length>0&&(0,s.jsxs)("ul",{className:"grid gap-3",children:[e?.items.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsx)(p.default,{href:e?.path,className:`${a===e?.path?"showcase-footer-highlighted-text-color":e?.isMuted?"text-gray-700":"showcase-footer-menu-item-text-color"} hover:text-[var(--showcase-menu-highlighted-text-color)] transition-colors`,children:e?.title})},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"showcase-footer-menu-item-text-color hover:text-orange-400 transition-colors",children:"View All"})]})]},e?.menuTitle||t))}),(0,s.jsx)("hr",{className:"border-[var(--showcase-footer-border-color)]"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-5 items-center justify-between",children:[(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm",children:e?.footerBottomText??""}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)("div",{className:`text-xs ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})})]})]})})},I=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"showcase-footer-background-color  py-12 hidden md:block",children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between pb-16 border-b border-[var(--showcase-footer-border-color)]",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:230,height:100,className:"",style:{width:`${t?.footerLogoWidth??230}px`,height:"auto"}}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-[1.3vw] 2xl:text-lg max-w-lg",children:t?.footerDescription??""})]}),(0,s.jsx)(N,{preferredSourceSettings:a}),t&&t?.menuList?.length>0&&(0,s.jsx)("div",{className:"grid grid-cols-3 gap-16 border-b border-[var(--showcase-footer-border-color)]",children:t?.menuList?.slice(0,3).map((e,a)=>(0,s.jsxs)("div",{className:`flex flex-col gap-4 ${a!==t?.menuList?.slice(0,3)?.length-1?"border-r border-[var(--showcase-footer-border-color)]":""} py-8`,children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-semibold uppercase",children:e?.menuTitle}),(0,s.jsxs)("div",{className:`flex ${0===a?"flex-col gap-3":"gap-6 flex-wrap"}`,children:[e?.items.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path,className:"showcase-footer-menu-item-text-color hover:text-orange-400 transition-colors",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"showcase-footer-menu-item-text-color hover:text-orange-400 transition-colors",children:"View All"})]})]},e?.menuTitle||a))}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-5 items-center justify-between py-6",children:[(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm font-normal",children:t?.footerBottomText??""}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)("div",{className:`text-sm ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})})]})]})})};var A=e.i(754169);let H=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"showcase-footer-background-color py-12 hidden md:block",children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-8 place-items-center",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:230,height:100,className:"",style:{width:`${t?.footerLogoWidth??230}px`,height:"auto"}}),(0,s.jsx)(N,{preferredSourceSettings:a}),t&&t?.menuList?.length>0&&(0,s.jsx)("nav",{className:"flex justify-center items-center flex-wrap gap-8 place-items-center",children:t?.menuList?.slice(0,1).map(e=>(0,s.jsxs)(s.Fragment,{children:[e?.items.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path,className:"showcase-footer-menu-item-text-color hover:text-orange-400 transition-colors",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"tracking-[0.12rem] uppercase text-sm hover:opacity-70 transition-opacity showcase-footer-menu-item-text-color hover:text-orange-400",children:"View All"})]}))}),t?.findRetailerButtonText&&t?.findRetailerButtonLink&&(0,s.jsxs)(p.default,{href:t?.findRetailerButtonLink??"/",className:"flex items-center gap-2 px-6 py-3 border border-[var(--showcase-footer-button-text-color)] rounded-lg uppercase text-sm font-medium transition-colors showcase-footer-button-bg-color showcase-footer-button-text-color",children:[t?.findRetailerButtonText??"Find at Retailers",(0,s.jsx)(A.ArrowRight,{className:"w-4 h-4 showcase-footer-button-text-color"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 place-items-center mt-4",children:[(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm font-normal text-center max-w-[700px] mx-auto",children:t?.footerBottomText??""}),(0,s.jsx)("div",{className:`text-xs font-normal ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})]})})})},T=({showcaseFooterData:e,preferredSourceSettings:t})=>{let a=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"showcase-footer-background-color py-12  hidden md:block",children:(0,s.jsxs)("div",{className:"_container space-y-10",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("p",{className:"showcase-footer-tagline-color text-sm",children:e?.footerTagLine??""}),(0,s.jsx)("h2",{className:"showcase-footer-title-color text-3xl md:text-4xl",children:e?.footerTitle??""})]}),(0,s.jsx)(N,{preferredSourceSettings:t}),e?.menuList?.length>0&&(0,s.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-12 border-y-[1px] border-[var(--showcase-footer-border-color)] py-8",children:e?.menuList?.map((e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-semibold uppercase mb-4",children:e?.menuTitle}),e?.items?.length>0&&(0,s.jsx)("div",{className:"flex flex-col gap-3",children:e?.items?.map(e=>(0,s.jsx)(p.default,{href:e?.path,className:`${(e?.isMuted,"showcase-footer-menu-item-text-color")} inline-block hover:opacity-70 transition-opacity`,children:e?.title},e?.path||t))}),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"showcase-footer-menu-item-text-color inline-block hover:opacity-70 transition-opacity",children:"View All"})]},e.title))}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 items-center justify-center text-center",children:[(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm font-normal max-w-[700px] mx-auto",children:e?.footerBottomText??""}),(0,s.jsx)("div",{className:`text-sm font-normal text-center ${a?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})]})})};function z(e){return e?.linkTarget==="_self"?"_self":"_blank"}function O(e){return"_blank"===e?"noopener noreferrer":void 0}let _=({showcaseFooterData:e,preferredSourceSettings:t})=>{let a=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"showcase-footer-background-color py-16 hidden md:block",children:(0,s.jsxs)("div",{className:"_container space-y-12",children:[(0,s.jsxs)("h1",{className:"showcase-footer-title-color text-7xl font-light text-center",children:[e?.footerTitle," ",(0,s.jsx)("span",{className:"showcase-footer-highlighted-text-color",children:e?.highLightedText})]}),e?.menuList?.length>0&&(0,s.jsx)("nav",{className:"flex items-center justify-center gap-6 md:gap-8",children:e?.menuList?.slice(0,1)?.map(e=>(0,s.jsxs)(s.Fragment,{children:[e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path,className:"tracking-[0.12rem] showcase-footer-menu-item-text-color hover:text-white uppercase text-sm transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"showcase-footer-menu-item-text-color inline-block hover:opacity-70 transition-opacity",children:"View All"})]}))}),e?.footerSocialIcons&&e?.footerSocialIcons?.length>0&&(0,s.jsx)("div",{className:"flex items-center justify-center gap-6",children:e?.footerSocialIcons&&e?.footerSocialIcons?.length>0&&e?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"w-12 h-12 rounded-full border border-[var(--showcase-footer-social-icons-color)] flex items-center justify-center hover:opacity-70 transition-opacity",children:e?.icon&&(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-6 h-6 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:t}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm  text-center max-w-[700px] mx-auto",children:e?.footerBottomText??""}),(0,s.jsx)("div",{className:`text-xs text-center ${a?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})]})})},B=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color py-16 hidden md:block",children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsxs)("div",{className:"w-full mx-auto 
1space-y-8",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:165,height:100,className:"mx-auto",style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}}),(0,s.jsxs)("div",{className:"max-w-2xl mx-auto space-y-6",children:[(0,s.jsx)("p",{className:"showcase-footer-title-color uppercase text-lg font-medium text-center",children:t?.footerTitle??""}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-center",children:t?.footerDescription??""})]}),t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&(0,s.jsx)("div",{className:"flex items-center justify-center gap-6",children:t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"w-12 h-12 rounded-full border border-[var(--showcase-footer-social-icons-color)] flex items-center justify-center hover:opacity-70 transition-opacity",children:(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),(0,s.jsx)("div",{className:"w-full border-b border-[var(--showcase-footer-border-color)] my-8 mx-auto"}),(0,s.jsx)("div",{className:`text-sm font-normal text-center ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})})},$=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color py-16 px-8 hidden md:block",children:(0,s.jsxs)("div",{className:"_container space-y-8",children:[(0,s.jsx)("div",{className:"mb-10 flex justify-center",children:e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:165,height:100,className:"mx-auto",style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}})}),(0,s.jsx)(N,{preferredSourceSettings:a}),t?.menuList?.length>0&&(0,s.jsx)("nav",{className:"flex items-center justify-center flex-wrap gap-6",children:t?.menuList?.slice(0,1)?.map((e,t)=>(0,s.jsxs)(s.Fragment,{children:[e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path,className:"showcase-footer-menu-item-text-color hover:text-white uppercase text-base transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"showcase-footer-menu-item-text-color hover:text-white uppercase text-base transition-opacity",children:"View All"},e?.viewAllLink||t)]}))}),t?.menuList?.length>0&&(0,s.jsx)("nav",{className:"flex items-center justify-center gap-6",children:t?.menuList?.slice(1,2)?.map((e,t)=>(0,s.jsxs)(s.Fragment,{children:[e?.items?.map(e=>(0,s.jsx)(p.default,{href:e?.path,className:"showcase-footer-menu-item-text-color uppercase text-sm transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"showcase-footer-menu-item-text-color hover:text-white uppercase text-base transition-opacity",children:"View All"},e?.viewAllLink||t)]}))}),(0,s.jsx)("div",{className:"w-full border-b border-[var(--showcase-footer-border-color)]"}),(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-xs font-normal text-center max-w-[700px] mx-auto",children:t?.footerBottomText??""}),(0,s.jsx)("div",{className:`text-xs font-normal text-center ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})})},W=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color py-12 hidden md:block",children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-6 mb-8",children:[(0,s.jsxs)("div",{className:"p-6 grid grid-cols-1 gap-4 showcase-footer-box-background-color border border-[var(--showcase-footer-border-color)] rounded-lg",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:165,height:100,className:"",style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}}),(0,s.jsx)("h2",{className:"text-xl font-bold showcase-footer-title-color",children:t?.footerTitle??""}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-sm font-normal whitespace-pre-line",children:t?.footerDescription??""}),t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&(0,s.jsx)("div",{className:"flex items-center gap-4 mt-2",children:t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"w-12 h-12 rounded-full border border-[var(--showcase-footer-border-color)] flex items-center justify-center hover:opacity-70 transition-opacity",children:e?.icon&&(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-6 h-6 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),t?.menuList?.length>0&&t?.menuList?.slice(0,2)?.length>0&&t?.menuList?.slice(0,2)?.map(e=>(0,s.jsxs)("div",{className:"showcase-footer-box-background-color border border-[var(--showcase-footer-border-color)] rounded-lg p-6 space-y-5",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-semibold uppercase tracking-wider",children:e?.menuTitle}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path,className:"showcase-footer-menu-item-text-color text-base font-medium hover:opacity-70 transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink,className:"showcase-footer-menu-item-text-color text-base font-medium hover:opacity-70 transition-opacity",children:"View All"})]})]},e?.menuTitle))]}),(0,s.jsx)("div",{className:"w-full border-b border-[var(--showcase-footer-border-color)] mb-8"}),(0,s.jsxs)("div",{className:"w-full grid grid-cols-2 gap-5 items-center justify-between",children:[(0,s.jsx)("div",{children:(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm font-normal",children:t?.footerBottomText??""})}),(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)("div",{className:`text-sm font-normal ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})})]})]})})},V=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full py-12  showcase-footer-background-color hidden md:block",children:(0,s.jsxs)("div",{className:"_container space-y-12",children:[(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-12",children:[(0,s.jsxs)("div",{className:"space-y-5",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:165,height:100,style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-base leading-relaxed",children:t?.footerDescription??""}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),t?.menuList?.length>0&&t?.menuList?.slice(0,1)?.length>0&&t?.menuList?.slice(0,1)?.map((e,t)=>(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("div",{className:"space-y-5",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-base",children:e?.menuTitle}),(0,s.jsxs)("div",{className:"flex flex-col gap-5",children:[e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-base hover:opacity-70 transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink||"",className:"showcase-footer-menu-item-text-color text-base hover:opacity-70 transition-opacity",children:"View All"})]})]})},e?.menuTitle||t)),t?.menuList?.length>0&&t?.menuList?.slice(1,2)?.length>0&&t?.menuList?.slice(1,2)?.map(e=>(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-base",children:e?.menuTitle}),(0,s.jsx)("div",{className:"flex items-center gap-10",children:e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-base font-medium hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})]},e?.menuTitle))]}),(0,s.jsx)("div",{className:"w-full border-b border-[var(--showcase-footer-border-color)]"}),(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-12",children:[(0,s.jsx)("div",{className:"flex items-center gap-4 place-items-start",children:t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"w-9 h-9 rounded-full border border-[var(--showcase-footer-social-icons-color)] flex items-center justify-center hover:opacity-70 transition-opacity",children:(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-4 h-4 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("div",{className:`text-sm font-normal ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})}),(0,s.jsx)("div",{className:"flex flex-wrap gap-3 justify-end",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu
1-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})]})]})})},U=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color py-12 hidden md:block",children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-16 mb-12",children:[(0,s.jsxs)("div",{className:"space-y-8 lg:border-r lg:border-[var(--showcase-footer-border-color)] lg:pr-8",children:[(0,s.jsx)("h2",{className:"showcase-footer-title-color text-5xl font-semibold leading-tight",children:t?.footerTitle??""}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-base leading-relaxed",children:t?.footerDescription??""}),(0,s.jsx)("div",{className:"flex gap-6 pt-4",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"w-12 h-12 rounded-full border border-[var(--showcase-footer-social-icons-color)] flex items-center justify-center hover:opacity-70 transition-opacity",children:(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),t?.menuList?.length>0&&t?.menuList?.slice(0,1)?.length>0&&t?.menuList?.slice(0,1)?.map(e=>(0,s.jsxs)("div",{className:"space-y-6 lg:pl-8",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold uppercase tracking-wider showcase-footer-menu-title-color",children:e?.menuTitle}),(0,s.jsx)("div",{className:"flex flex-col",children:e?.items?.map((t,a)=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-3",children:[(0,s.jsx)(p.default,{href:t?.path||"",className:"text-xl font-medium showcase-footer-menu-item-text-color hover:opacity-70 transition-opacity",children:t?.title}),(0,s.jsx)("span",{className:"text-base showcase-footer-menu-item-text-color",children:a+1})]}),a<e?.items?.length-1&&(0,s.jsx)("div",{className:"border-b border-[var(--showcase-footer-border-color)]"})]},t?.path||a))})]},e?.menuTitle))]})}),(0,s.jsx)("div",{className:"w-full border-b border-[var(--showcase-footer-border-color)] mb-4"}),(0,s.jsx)("div",{className:"w-full ",children:(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-4 items-center",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:100,height:100,style:{width:`${t?.footerLogoWidth??100}px`,height:"auto"}}),(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)("div",{className:`text-sm ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})}),(0,s.jsx)("div",{className:"flex flex-wrap gap-4 justify-end",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"text-sm showcase-footer-bottom-menu-text-color hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})]})})]})})},G=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color hidden md:block",children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"w-full mx-auto px-8 py-12",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8 mb-12",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:165,height:100,style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}}),(0,s.jsx)("p",{className:"showcase-footer-title-color text-sm font-medium uppercase tracking-wide",children:t?.footerTitle??""}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-sm font-normal leading-relaxed",children:t?.footerDescription??""}),(0,s.jsx)("div",{className:"flex items-center gap-5 w-fit",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"rounded-full flex items-center justify-center hover:opacity-70 transition-opacity",children:(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-6 h-6 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),t?.menuList?.length>0&&t?.menuList?.length>0&&t?.menuList?.map(e=>(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-medium",children:e?.menuTitle}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-sm hover:opacity-70 transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink||"",className:"showcase-footer-menu-item-text-color text-sm hover:opacity-70 transition-opacity",children:"View All"})]})]},e?.menuTitle))]}),(0,s.jsx)("div",{className:"w-full h-px border-b border-[var(--showcase-footer-border-color)] mb-8"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 place-items-start md:place-items-start",children:(0,s.jsx)("p",{className:`text-sm ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})}),(0,s.jsx)("div",{className:"grid grid-cols-1 place-items-end md:place-items-end",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-4",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu
1-text-color text-sm hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})})]})]})})})};var K=e.i(726027);let Y=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color hidden md:block",children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsxs)("div",{className:"w-full mx-auto px-8 py-12",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:e?.logoAlt??"logo",title:e?.logoTitle??"logo",width:165,height:100,style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-sm font-normal leading-relaxed",children:t?.footerDescription??""}),(0,s.jsx)("div",{className:"flex items-center gap-5 w-fit",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"rounded-full flex items-center justify-center hover:opacity-70 transition-opacity",children:(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-6 h-6 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),t?.menuList?.length>0&&t?.menuList?.slice(0,2)?.length>0&&t?.menuList?.slice(0,2)?.map(e=>(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-medium",children:e?.menuTitle}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color te  xt-sm hover:opacity-70 transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink||"",className:"showcase-footer-menu-item-text-color text-sm hover:opacity-70 transition-opacity",children:"View All"})]})]},e?.menuTitle)),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-medium",children:t?.getInTouchTitle??""}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-sm font-normal leading-relaxed",children:t?.getInTouchDescription??""}),(0,s.jsx)("div",{children:t?.getInTouchButtonText&&(0,s.jsx)(K.default,{path:t?.getInTouchLink||"",className:"showcase-footer-button-bg-color showcase-footer-button-text-color w-fit px-6 py-3 text-sm font-medium rounded-lg",children:t?.getInTouchButtonText??""})})]})]}),(0,s.jsx)("div",{className:"w-full h-px border-b border-[var(--showcase-footer-border-color)] mb-8"}),(0,s.jsx)("div",{className:"grid grid-cols-1 justify-items-end",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-4",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu-text-color text-sm hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})})]}),(0,s.jsx)("div",{className:"w-full showcase-footer-bottom-bar-bg-color py-4",children:(0,s.jsx)("div",{className:"w-full mx-auto px-8",children:(0,s.jsx)("div",{className:"grid grid-cols-1 place-items-center",children:(0,s.jsx)("p",{className:`text-sm font-normal ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})})})})]})})};var Z=e.i(703803);let q=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color hidden md:block",children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsx)("div",{className:"w-full mx-auto  py-12",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-12 mb-12",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:165,height:100,style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-sm font-normal leading-relaxed",children:t?.footerDescription??""}),(0,s.jsx)("div",{className:"flex items-center gap-5 w-fit",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&t?.footerSocialIcons?.map((e,t)=>{let a=z(e);return(0,s.jsx)(p.default,{href:e?.path,target:a,rel:O(a),className:"rounded-full flex items-center justify-center hover:opacity-70 transition-opacity",children:e?.icon&&(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-6 h-6 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),(0,s.jsxs)("div",{className:" showcase-footer-where-to-find-background-color roun
1ded-lg p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2.5",children:[(0,s.jsx)(Z.MapPin,{className:"showcase-footer-where-to-find-icon-color",size:20,weight:"bold"}),(0,s.jsx)("h3",{className:"text-sm font-semibold showcase-footer-where-to-find-title-color",children:t?.whereToFindUsTitle??""})]}),(0,s.jsx)("p",{className:"text-xs showcase-footer-where-to-find-description-color leading-relaxed mb-2",children:t?.whereToFindUsDescription??""}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3 mb-2.5",children:t?.whereToFindUsLinks&&t?.whereToFindUsLinks?.length>0&&t?.whereToFindUsLinks?.map((e,t)=>(0,s.jsxs)("div",{className:"showcase-footer-where-to-find-item-box-color border border-[var(--showcase-footer-border-color)] rounded-lg p-3",children:[(0,s.jsx)("p",{className:"text-sm font-semibold showcase-footer-where-to-find-item-title-color",children:e?.title}),(0,s.jsx)("p",{className:"text-xs showcase-footer-where-to-find-item-description-color mt-1",children:e?.description})]},e?.title+t))}),t?.findRetailerButtonText&&(0,s.jsxs)(p.default,{href:t?.findRetailerButtonLink||"",className:"flex items-center gap-1 showcase-footer-where-to-find-button-text-color hover:opacity-70 transition-opacity w-fit",children:[(0,s.jsx)("span",{className:"text-sm font-semibold",children:t?.findRetailerButtonText??""}),(0,s.jsx)(A.ArrowRight,{className:"showcase-footer-where-to-find-button-text-color",size:18})]})]}),t?.menuList&&t?.menuList?.length>0&&t?.menuList?.slice(0,1)?.map((e,t)=>(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h3",{className:"text-sm font-medium showcase-footer-menu-title-color",children:e?.menuTitle}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-sm hover:opacity-70 transition-opacity",children:e?.title},e?.path||t)),e?.enableViewAllButton&&e?.viewAllLink&&(0,s.jsx)(p.default,{href:e?.viewAllLink||"",className:"showcase-footer-menu-item-text-color text-sm hover:opacity-70 transition-opacity",children:"View All"})]})]},e?.title||t))]})}),(0,s.jsx)("div",{className:"w-full h-px border-b border-[var(--showcase-footer-border-color)] mb-8"}),(0,s.jsx)("div",{className:"w-full pb-3",children:(0,s.jsx)("div",{className:"w-full mx-auto",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 place-items-start md:place-items-start",children:(0,s.jsx)("p",{className:`text-sm ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})}),(0,s.jsx)("div",{className:"grid grid-cols-1 place-items-end md:place-items-end",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-4",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"text-sm showcase-footer-bottom-menu-text-color hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})})]})})})]})})},X=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color py-16 px-8 hidden md:block",children:(0,s.jsxs)("div",{className:"w-full _container mx-auto grid grid-cols-1 gap-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 place-items-center",children:[(0,s.jsx)("div",{className:"flex items-center gap-3",children:e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:"logo",width:165,height:100,style:{width:`${t?.footerLogoWidth??165}px`,height:"auto"}})}),(0,s.jsx)("p",{className:"text-sm font-normal leading-relaxed text-center max-w-xl showcase-footer-description-color",children:t?.footerDescription??""}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),(0,s.jsx)("div",{className:"w-full h-px border-b border-[var(--showcase-footer-border-color)]"}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-4 place-items-center",children:t?.menuList&&t?.menuList?.slice(0,1)?.length>0&&(0,s.jsxs)("nav",{className:"flex items-center justify-center flex-wrap gap-6 place-items-center",children:[t?.menuList?.slice(0,1)?.map(e=>e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))),t?.menuList?.[0]?.enableViewAllButton&&t?.menuList?.[0]?.viewAllLink&&(0,s.jsx)(p.default,{href:t?.menuList?.[0]?.viewAllLink||"",className:"showcase-footer-menu-item-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:"View All"})]})}),(0,s.jsx)("div",{className:"w-full h-px border-b border-[var(--showcase-footer-border-color)]"}),t?.menuList&&t?.menuList?.slice(1,2)?.length>0&&(0,s.jsxs)(s.Fragment,{children:[t?.menuList?.slice(1,2)?.map((e,t)=>(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4 place-items-center",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-normal uppercase",children:e?.menuTitle}),(0,s.jsx)("div",{className:"flex flex-wrap justify-center gap-6 place-items-center",children:e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})]},e?.menuTitle||t)),(0,s.jsx)("div",{className:"w-full h-px border-b border-[var(--showcase-footer-border-color)]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 items-center",children:[(0,s.jsx)("div",{className:"flex flex-wrap  items-center gap-4 place-items-start md:place-items-center",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path||"",target:a,rel:O(a),className:"w-10 h-10 rounded-full border border-[var(--showcase-footer-social-icons-color)] flex items-center justify-center hover:opacity-70 transition-opacity","aria-label":"Facebook",children:e?.icon&&(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)("div",{className:`text-sm font-normal text-center ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})}),(0,s.jsx)("div",{className:"flex justify-end items-center gap-3 place-items-end md:place-items-center md:justify-items-end",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu
1-text-color text-sm font-normal hover:opacity-70 transition-opacity text-center md:text-right",children:e?.title},e?.path||t))})]})]})})},J=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("div",{className:"w-full showcase-footer-background-color py-12 px-8 hidden md:block",children:(0,s.jsxs)("div",{className:"_container mx-auto grid grid-cols-1 gap-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,s.jsx)("div",{className:"flex items-center gap-3",children:e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:e?.logoAlt||"",width:140,height:40,className:"h-auto object-contain",style:{width:`${t?.footerLogoWidth??140}px`,height:"auto"}})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4 items-center justify-between",children:[(0,s.jsx)("p",{className:"showcase-footer-description-color text-sm font-normal col-span-4",children:t?.footerDescription??""}),(0,s.jsx)("nav",{className:"flex flex-wrap gap-6 justify-start md:justify-end col-span-8",children:t?.menuList?.[0]?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path||e?.title||t))})]}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),(0,s.jsxs)("div",{className:"relative w-full flex items-center justify-center",children:[(0,s.jsx)("div",{className:"w-full h-px border-b border-[var(--showcase-footer-border-color)]"}),(0,s.jsx)("div",{className:"absolute w-3 h-3 rounded-full border-[1.5px] border-[var(--showcase-footer-border-color)] bg-[var(--showcase-footer-background-color)] showcase-footer-background-color"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 items-center",children:[(0,s.jsx)("div",{className:`text-sm font-normal ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})}),(0,s.jsx)("div",{className:"flex flex-wrap gap-4 justify-start md:justify-end",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path+e?.title+t+"bottom"))})]})]})})},Q=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsxs)("div",{className:"w-full md:grid grid-cols-1 lg:grid-cols-[40%_60%] hidden",children:[(0,s.jsx)("div",{className:"showcase-footer-left-side-background-color py-12 px-8 grid grid-cols-1 gap-8 place-items-center",children:(0,s.jsxs)("div",{className:"max-w-[398px]",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,s.jsx)("div",{className:"flex items-center",children:e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:e?.logoAlt??"logo",width:120,height:40,className:"h-auto object-contain",style:{width:`${t?.footerLogoWidth??120}px`,height:"auto"}})}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-sm font-normal leading-relaxed",children:t?.footerDescription??""})]}),(0,s.jsx)("nav",{className:"flex items-center flex-wrap gap-4 mt-8",children:t?.menuList&&t?.menuList?.slice(0,1)?.length>0&&t?.menuList?.slice(0,1)?.map((e,t)=>(0,s.jsx)(b.Fragment,{children:e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-right-side-menu-text-color text-sm font-normal hover:opacity-70 transition-opacity flex-shrink-0",children:e?.title},e?.path||t))},t))}),(0,s.jsx)("div",{className:"flex items-center gap-4 mt-8 justify-start",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path||"",target:a,rel:O(a),className:"w-10 h-10 rounded-full border border-[var(--showcase-footer-social-icons-color)] flex items-center justify-center hover:opacity-70 transition-opacity","aria-label":"Facebook",children:e?.icon&&(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a})]})}),(0,s.jsxs)("div",{className:"showcase-footer-background-color py-12 px-8 grid grid-cols-1 gap-8",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 place-items-start",children:t?.menuList&&t?.menuList?.slice(1,4)?.length>0&&t?.menuList?.slice(1,4)?.map((e,t)=>(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-semibold uppercase",children:e?.menuTitle??""}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-2",children:e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-base font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})]},e?.menuTitle||t))}),(0,s.jsxs)("div",{className:"grid gap-4 place-items-start ",children:[(0,s.jsx)("div",{className:"flex flex-wrap gap-4",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu
1-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))}),(0,s.jsx)("div",{className:`text-sm font-normal text-left md:text-right ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})]})]})},ee=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("footer",{className:"w-full showcase-footer-background-color py-16 px-8 relative overflow-hidden hidden  md:block",children:(0,s.jsxs)("div",{className:"relative z-10 grid gap-12 _container ",children:[(0,s.jsx)("div",{className:"absolute inset-0 grid place-items-start left-[210px] top-2 pointer-events-none select-none z-[1]",children:(0,s.jsx)("span",{className:"text-[110px] font-bold showcase-footer-title-color tracking-tight",children:t?.footerTitle??""})}),(0,s.jsxs)("div",{className:"grid grid-cols-4 gap-16 items-start relative z-10",children:[(0,s.jsxs)("div",{className:"grid gap-4",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:e?.logoAlt??"logo",width:150,height:40,className:"object-contain",style:{width:`${t?.footerLogoWidth??150}px`,height:"auto"}}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-base",children:t?.footerDescription??""}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),t?.menuList&&t?.menuList?.slice(0,2)?.length>0&&t?.menuList?.slice(0,2)?.map((e,t)=>(0,s.jsxs)("div",{className:"grid gap-4 content-start",children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-semibold uppercase tracking-wider",children:e?.menuTitle}),(0,s.jsx)("ul",{className:"grid gap-2",children:e?.items?.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-base hover:text-gray-900 transition-colors",children:e?.title})},e?.path||t))})]},e?.menuTitle||t)),(0,s.jsx)("div",{className:"grid gap-4 content-start",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"showcase-footer-menu-title-color text-sm font-semibold uppercase tracking-wider",children:"Social Media"}),(0,s.jsx)("div",{className:"flex items-center gap-3",children:t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path||"",target:a,rel:O(a),className:"w-10 h-10 rounded-full grid place-items-center border border-[var(--showcase-footer-social-icons-color)] hover:bg-[var(--showcase-footer-social-icons-color)] transition-colors","aria-label":e?.title,children:e?.icon&&(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})})]})})]}),(0,s.jsx)("hr",{className:"border-[var(--showcase-footer-border-color)]"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4 items-center",children:[(0,s.jsx)("div",{className:`text-sm ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})}),(0,s.jsx)("nav",{className:"grid grid-flow-col justify-end gap-6",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu-text-color text-sm font-normal hover:opacity-70 transition-opacity",children:e?.title},e?.path||t))})]})]})})},et=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsxs)("footer",{className:"w-full hidden md:block",children:[(0,s.jsx)("div",{className:"showcase-footer-background-color py-12",children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"grid grid-cols-12 gap-5 items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 col-span-3",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:e?.logoAlt??"logo",width:160,height:44,className:"object-contain",style:{width:`${t?.footerLogoWidth??160}px`,height:"auto"}}),(0,s.jsx)("p",{className:"showcase-footer-description-color text-base",children:t?.footerDescription??""}),(0,s.jsx)(N,{preferredSourceSettings:a})]}),(0,s.jsx)("nav",{className:"flex items-center justify-center flex-wrap gap-5 col-span-7",children:t?.menuList&&t?.menuList?.slice(0,1)?.length>0&&t?.menuList?.slice(0,1)?.map(e=>(0,s.jsx)(s.Fragment,{children:e?.items?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-menu-item-text-color text-base  hover:text-gray-900 transition-colors flex-shrink-0",children:e?.title},e?.path||t))}))}),(0,s.jsx)("div",{className:"flex items-center justify-end gap-3 col-span-2",children:t?.footerSocialIcons&&t?.footerSocialIcons?.length>0&&t?.footerSocialIcons?.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path||"",target:a,rel:O(a),className:"w-12 h-12 rounded-lg border border-[var(--showcase-footer-social-icons-color)] grid place-items-center hover:bg-[var(--showcase-footer-social-icons-color)] transition-colors","aria-label":e?.title,children:e?.icon&&(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title,width:20,height:20,className:"w-5 h-5 flex items-center justify-center hover:opacity-70 transition-opacity"})},e?.path||t)})})]})})}),(0,s.jsx)("div",{className:"showcase-footer-bottom-bar-bg-color py-5",children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("nav",{className:"flex items-center gap-8",children:t?.footerBottomLinks&&t?.footerBottomLinks?.length>0&&t?.footerBottomLinks?.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:"showcase-footer-bottom-menu
1-text-color font-medium text-sm hover:text-gray-700 transition-colors",children:e?.title},e?.path||t))}),(0,s.jsx)("div",{className:`text-sm ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})})})]})};var es=e.i(954616),ea=e.i(592496),er=e.i(700947),el=e.i(55144),eo=e.i(947513),ei=e.i(137963);let en=({buttonText:e,placeholder:t,buttonBgColor:a,buttonTextColor:r,inputBgColor:l,inputTextColor:o})=>{let{warn:i}=(0,ea.default)(),{success:n,error:c,api:d}=(0,er.useCRUD)(),[m,u]=(0,b.useState)(""),h=(0,es.useMutation)({mutationFn:e=>(0,el.postData)({url:d.cms.showcaseFooterSubscribe,body:e})}),x=a?.trim(),p=r?.trim(),f=l?.trim(),g=o?.trim(),j={...x?{backgroundColor:x}:{},...p?{color:p}:{}},v={...f?{backgroundColor:f}:{},...g?{color:g}:{}};return(0,s.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=m.trim();t?(0,eo.validateEmail)(t)?h.mutate({email:t},{onSuccess:e=>{e?.statusCode===200||e?.statusCode===201?(n(e?.message||"Thanks for subscribing."),u("")):c(e?.message||"Something went wrong.")},onError:()=>{c("Something went wrong.")}}):i("Please enter a valid email."):i("Please enter your email.")},className:"flex min-w-[280px] max-w-full items-center md:min-w-[360px]",children:(0,s.jsxs)("div",{className:(0,ei.cn)("flex min-h-[44px] w-full max-w-full overflow-hidden rounded-lg border border-[color-mix(in_srgb,var(--showcase-footer-menu-item-text-color)_22%,transparent)]",!f&&"footer-ninteen-email-badge-color",f&&"bg-transparent"),children:[(0,s.jsx)("input",{type:"email",name:"footerSubscribeEmail",autoComplete:"email",value:m,onChange:e=>u(e.target.value),placeholder:t,style:v,className:(0,ei.cn)("min-w-0 flex-1 px-3 py-2 text-[18px] italic outline-none md:text-[20px] placeholder:text-[color-mix(in_srgb,var(--showcase-footer-description-color)_55%,transparent)]",!f&&"bg-transparent text-[var(--showcase-footer-description-color)]")}),(0,s.jsx)("button",{type:"submit",disabled:h.isPending,style:j,className:(0,ei.cn)("shrink-0 border-l border-[color-mix(in_srgb,var(--showcase-footer-menu-item-text-color)_35%,transparent)] px-4 py-2 text-center text-[16px] font-semibold uppercase tracking-wide transition-opacity hover:opacity-90 disabled:opacity-50 md:text-[18px]",!x&&"bg-[color-mix(in_srgb,var(--showcase-footer-menu-item-text-color)_12%,transparent)]",!p&&"text-[var(--showcase-footer-menu-item-text-color)]"),children:h.isPending?"…":e})]})})},ec=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=(0,E.usePoweredByBuddyTextColor)("desktop"),l=t?.menuList?.slice(0,1)?.[0]?.items||[],o=t?.footerSocialIcons||[],i=t?.footerBottomLinks||[],n=t?.getInTouchEmail??"",c=t?.getInTouchTitle||"Get In Touch",d=(t?.getInTouchTitleLink??"").trim();return(0,s.jsx)("footer",{className:"w-full hidden md:block showcase-footer-background-color py-10",children:(0,s.jsx)("div",{className:"W-full",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-7",children:[e?.logo&&(0,s.jsx)(x.default,{src:e?.logo,alt:e?.logoAlt??"logo",width:180,height:60,className:"object-contain",style:{width:`${t?.footerLogoWidth??170}px`,height:"auto"}}),(0,s.jsx)("nav",{className:"_container flex items-center justify-center flex-wrap gap-y-2",children:l.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(p.default,{href:e?.path||"",className:`text-[36px] leading-none font-medium uppercase tracking-wide ${e?.textColor?.trim()?`text-[${e?.textColor}]`:"showcase-footer-menu-item-text-color"}`,style:e?.textColor?.trim()?{color:e.textColor.trim()}:void 0,children:e?.title}),t<l.length-1&&(0,s.jsx)("span",{className:"showcase-footer-menu-item-text-color text-[34px] mx-3 leading-none",children:"|"})]},e?.path||`${e?.title}-${t}`))}),(0,s.jsxs)("div",{className:"_container flex items-center justify-center gap-2 flex-wrap",children:[d?(0,s.jsx)(p.default,{href:d,className:"showcase-footer-description-color text-[32px] font-medium uppercase hover:opacity-80 transition-opacity",children:c}):(0,s.jsx)("p",{className:"showcase-footer-description-color text-[32px] font-medium uppercase",children:c}),(0,s.jsx)("span",{className:"showcase-footer-description-color text-[32px] mx-2 leading-none",children:"|"}),(0,s.jsx)(en,{buttonText:t?.getInTouchButtonText||"Subscribe",placeholder:n?.trim()||"Enter your email address",buttonBgColor:t?.footerV19SubscribeButtonBgColor,buttonTextColor:t?.footerV19SubscribeButtonTextColor,inputBgColor:t?.footerV19SubscribeInputBgColor,inputTextColor:t?.footerV19SubscribeInputTextColor})]}),(0,s.jsx)("div",{className:"_container flex items-center justify-center gap-6 flex-wrap",children:o.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsxs)(p.default,{href:e?.path||"",target:a,rel:O(a),className:"flex flex-col items-center gap-2 hover:opacity-80 transition-opacity","aria-label":e?.title,children:[(0,s.jsx)(x.default,{src:e?.icon,alt:e?.title||"social icon",width:24,height:24,className:"w-[50px] h-[50px] object-contain"}),(0,s.jsx)("span",{className:"showcase-footer-menu-item-text-color text-[28px] leading-none uppercase",children:e?.title})]},e?.path||t)})}),(0,s.jsx)(N,{preferredSourceSettings:a}),(0,s.jsx)("div",{className:"w-full h-[3px] bg-[var(--showcase-footer-menu-item-text-color)]"}),(0,s.jsxs)("div",{className:"_container text-center space-y-2",children:[i.length>0&&(0,s.jsx)("div",{className:"flex items-center justify-center flex-wrap gap-y-1",children:i.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(p.default,{href:e?.path||"",className:`text-base hover:opacity-80 ${e?.textColor?.trim()?`text-[${e?.textColor?.trim()}
1]`:"showcase-footer-bottom-menu-text-color"}`,style:e?.textColor?.trim()?{color:e.textColor.trim()}:void 0,children:e?.title}),t<i.length-1&&(0,s.jsx)("span",{className:"showcase-footer-bottom-menu-text-color text-base mx-2",children:"|"})]},e?.path||`${e?.title}-${t}`))}),(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm max-w-7xl mx-auto",children:t?.footerBottomText??""}),t?.footerBottomSubText&&(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm max-w-7xl mx-auto",children:t?.footerBottomSubText}),(0,s.jsx)("div",{className:`text-sm ${r?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})]})})})},ed=({cmsData:e,showcaseFooterData:t,preferredSourceSettings:a})=>{let r=t?.menuList?.slice(0,1)?.[0]?.items||[],l=t?.footerSocialIcons||[],o=(0,E.usePoweredByBuddyTextColor)("desktop");return(0,s.jsx)("footer",{className:"w-full hidden md:block showcase-footer-background-color mx-auto mt-40 pt-20 pb-10",children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-10 mb-8",children:[e?.logo?(0,s.jsx)(x.default,{src:e.logo,alt:e?.logoAlt??"logo",width:180,height:60,className:"object-contain",style:{width:`${t?.footerLogoWidth??170}px`,height:"auto"}}):(0,s.jsx)("div",{}),(0,s.jsx)("nav",{className:"flex flex-wrap gap-x-8 md:gap-x-12 gap-y-4",children:r.map((e,t)=>(0,s.jsx)(p.default,{href:e?.path||"",className:`text-lg md:text-xl font-bold tracking-tight hover:text-[var(--showcase-menu-highlighted-text-color)] transition-colors ${e?.textColor?.trim()?"":"showcase-footer-menu-item-text-color"}`,style:e?.textColor?.trim()?{color:e.textColor.trim()}:void 0,children:e?.title},e?.path||`${e?.title}-${t}`))})]}),(0,s.jsxs)("div",{className:"pt-10 border-t border-[var(--showcase-footer-border-color)] grid md:grid-cols-2 items-center gap-6",children:[(0,s.jsx)("p",{className:"showcase-footer-bottom-text-color text-sm md:text-base text-center md:text-left font-medium",children:t?.footerBottomText??""}),(0,s.jsx)("div",{className:"flex gap-6 justify-end flex-wrap",children:l.map((e,t)=>{if(!e?.icon)return null;let a=z(e);return(0,s.jsx)(p.default,{href:e?.path||"",target:a,rel:O(a),className:"hover:opacity-80 transition-all transform hover:scale-110 active:scale-95","aria-label":e?.title,children:(0,s.jsx)(x.default,{src:e.icon,alt:e?.title||"social icon",width:24,height:24,className:"w-6 h-6 object-contain"})},e?.path||t)})})]}),(0,s.jsx)(N,{preferredSourceSettings:a}),(0,s.jsx)("div",{className:`text-center pt-2 ${o?"":"showcase-footer-powered-by-text-color"}`,children:(0,s.jsx)(R.default,{placement:"desktop"})})]})})},em=({showcaseFooterData:e,headerFooterSettingsCms:t,cmsData:a,preferredSourceSettings:r})=>(0,s.jsx)(s.Fragment,{children:t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterOne?(0,s.jsx)(F,{showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterTwo?(0,s.jsx)(I,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterThree?(0,s.jsx)(H,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterFour?(0,s.jsx)(T,{showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterFive?(0,s.jsx)(_,{showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterSix?(0,s.jsx)(B,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterSeven?(0,s.jsx)($,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterEight?(0,s.jsx)(W,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterNine?(0,s.jsx)(V,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterTen?(0,s.jsx)(U,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterEleven?(0,s.jsx)(G,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterTwelve?(0,s.jsx)(Y,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterThirteen?(0,s.jsx)(q,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterFourteen?(0,s.jsx)(X,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterFifteen?(0,s.jsx)(J,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterSixteen?(0,s.jsx)(Q,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterSeventeen?(0,s.jsx)(ee,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterEighteen?(0,s.jsx)(et,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterNineteen?(0,s.jsx)(ec,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):t?.showcaseFooterDesignModes?.[0]?.isShowcaseDesktopFooterTwenty?(0,s.jsx)(ed,{cmsData:a,showcaseFooterData:e,preferredSourceSettings:r}):(0,s.jsx)(F,{showcaseFooterData:e,preferredSourceSettings:r})}),eu=["isShowcaseDesktopFooterOne","isShowcaseDesktopFooterTwo","isShowcaseDesktopFooterThree","isShowcaseDesktopFooterFour","isShowcaseDesktopFooterFive","isShowcaseDesktopFooterSix","isShowcaseDesktopFooterSeven","isShowcaseDesktopFooterEight","isShowcaseDesktopFooterNine","isShowcaseDesktopFooterTen","isShowcaseDesktopFooterEleven","isShowcaseDesktopFooterTwelve","isShowcaseDesktopFooterThirteen","isShowcaseDesktopFooterFourteen","isShowcaseDesktopFooterFifteen","isShowcaseDesktopFooterSixteen","isShowcaseDesktopFooterSeventeen","isShowcaseDesktopFooterEighteen","isShowcaseDesktopFooterNineteen","isShowcaseDesktopFooterTwenty"],eh=({cmsData:e,quickLinks:t,provider:r,showcaseFooterData:c,headerFooterSettingsCms:d,preloadedCustomProductCategoryData:u,preloadedTodaySpecialsValue:h,preloadedSocialLinksCms:x,preferredSourceSettings:p})=>{let f=(0,j.useIsDarkTheme)(),{commonCMSData:g}=(0,a.useGlobalStore)(),b=g?.poweredByBuddyCms??{},v=(0,o.resolvePoweredByBuddyTextColor)(b,f,"desktop");return(0,s.jsx)(s.Fragment,{children:!function(e){return!!e?._id&&!0!==e.useDefaultDesktopFooter&&!!e&&eu.some(t=>!0===e[t])}(d?.showcaseFooterDesignModes?.[0])?(0,s.jsxs)("div",{className:"footer-background md:block hidden",children:[(0,s.jsxs)("div",{className:"footer-font-color",children:[(0,s.jsx)(S,{cmsData:e,quickLinks:t,preloadedCustomProductCategoryData:u,preloadedTodaySpecialsValue:h,preloadedSocialLinksCms:x,preferredSourceSettings:p}),e?.enableAdditionalSection&&e?.retailers&&!!e?.retailers?.length&&(0,m.providerWithSameFlow)(r)&&(0,s.jsx)("div",{style:{background:f?e?.darkAdditionalSectionBgColor:e?.additionalSectionBgColor},className:"_container",children:(0,s.jsx)("div",{className:"py-5 additional-section-wrap",children:(0,s.jsxs)(i.default,{className:"",navigation:!0,spaceBetween:20,slidesPerView:6,showScrollbar:!1,showArrowOnHover:!0,leftArrowId:"retailer-left-arrow",rightArrowId:"retailer-right-arrow",children:[e?.retailers?.map((e,t)=>(0,s.jsx)(n.SwiperSlide,{children:(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2",children:[(0,s.jsx)("p",{className:"font-semibold",children:e?.retailerName||e?.name}),(0,s.jsx)("p",{className:"text-sm",children:e?.address||""}),e?.retailerPhoneNumber&&(0,s.jsxs)("p",{className:"additional-sec-phone",children:[" ",(0,s.jsx)("span",{children:"Call : "}),e?.retailerPhoneNumber||""]}),(0,s.jsx)(L,{retail:e})]})},e?._id||t)),!1]})})})]}),(b?.isVisible||b?.isVisible===void 0)&&(0,s.jsx)("div",{className:`${v?"":"footer-font-color"} global-link-color text-center font-medium py-4 primary-background`,children:(0,s.jsx)(l.default,{color:v})})]}):(0,s.jsx)(em,{cmsData:e,showcaseFooterData:c,headerFooterSettingsCms:d,preferredSourceSettings:p})})};var ex=e.i(899603),ep=e.i(310160),ef=e.i(268817);function eg(e,t){return e?0===t&&/^[a-zA-Z]{2}
1$/.test(e)?e.toUpperCase():e.split("-").filter(Boolean).map(e=>e.charAt(0).toLocaleUpperCase()+e.slice(1).toLowerCase()).join(" "):""}var eb=e.i(753350),ej=e.i(13060),ev=e.i(877093);let ew=["/mi","/az","/co","/ar"],ey=()=>{let e=(0,M.usePathname)(),t=(0,M.useRouter)(),{getCategoryNameFromCategoryListForBreadCum:a}=(0,c.default)(),{resourceTitle:r,resourceCategoryName:l}=(0,ej.useResourceBreadcrumbStore)(),o=/^\/brands\/.*$/,i=(0,b.useMemo)(()=>e=>e?e?.includes("+")?e.split("+").map(e=>a(e)||e).join("+"):a(e):"",[a]);if(e&&["/","/homepage2","/profile","/sign-in","/sign-up","/customer-choice","/categories","/menu-profile","/account/login-and-security"].includes(e)||e&&/^\/events\/.*$/.test(e))return(0,s.jsx)("div",{});let n=["Home",...(e?.split("/")?.filter(e=>""!==e)||[]).map((e,t)=>eg(e,t))];if(e&&o.test(e)&&(n[n?.length-1]="Brand Details"),e&&/^\/product\/.*$/.test(e)&&(n[n?.length-2]="Shop",n[n?.length-1]="Product Details"),"/create-ticket"===e&&(n=["Home","Customer Support","Create Ticket"]),"/your-list/my-wishlist"===e&&(n=["Home","Your List"]),"/ticket-list"===e&&(n=["Home","Customer Support","Ticket List"]),e&&/^\/store-details\/.*$/.test(e)&&(n=["Home","Store Details"]),e&&/^\/response\/.*$/.test(e)&&(n=["Home","Response"]),"/terms-and-conditions"===e&&(n[n?.length-1]="Terms & Condition"),"/faq"===e&&(n[n?.length-1]="FAQ"),"/find-a-dispensary"===e&&(n[n?.length-1]="Find a Dispensary"),e&&/\/blog\/.*/.test(e)&&(n[n?.length-1]="Blog Details"),e&&/\/education\/.*/.test(e)&&(n[n?.length-1]="Education Details"),e&&/^\/resources\/.*$/.test(e)){let t=e.split("/").filter(Boolean),s=n?.length-1;t.length>=3?r&&(n[s]=r):2===t.length&&(l?n[s]=l:r&&(n[s]=r))}if(e&&ew.includes(e)&&(n[n?.length-1]="Store Directory"),e&&/^\/deals-collection\/.*$/.test(e)&&(n[n?.length-2]="Deals"),e&&/^\/shop\/brand\/.*$/.test(e)){let t=e.split("/").filter(Boolean);t.length>=3&&(n=["Home","Shop","Brands",eg(t[2],2)])}let d=(0,eb.normalizeSiteHost)()||"https://buddy.com",m=e?.split("/").filter(Boolean)||[],u=n.map((t,s)=>{let a=`${d}/`;return"Shop"===n[s]?a=`${d}${(0,ep.withStore)()}`:"Deals"===n[s]?a=`${d}/deals`:"Brand"===n[s]?a=`${d}/brands`:"Product Details"===n[s]?a=`${d}${e}`:0!==s&&(a=d+"/"+m.slice(0,s).join("/")),{"@type":"ListItem",position:s+1,name:i(t),item:a}}),h=!!(e&&("/brands"===e||o.test(e)||(0,ev.parseLocationBrandRouteFromPathname)(e)||(0,ev.parseLocationBrandsListRouteFromPathname)(e))),x=e=>i(e)?.replace(/_/g," ");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"_container py-3 lg:py-4 font-semibold flex items-center text-sm xl:text-base 2xl:text-lg tracking-wider overflow-x-auto global-body-color",children:n.map((a,r)=>(0,s.jsx)("div",{className:`${0===r?"cursor-pointer":""}`,onClick:()=>{0===r&&t.push("/")},children:(0,s.jsxs)("div",{className:"flex items-center",children:[r===n?.length-1?(0,s.jsx)("span",{className:`${r===n?.length-1?"text-gray-500":""} global-body-color`,children:r===n?.length-1?x(a):a}):(0,s.jsx)(p.default,{href:((t,s)=>{if("cannabis-literacy"!==(t?.toString().trim().toLowerCase().replace(/\s+/g,"-")||"")||s<2)return null;let a=e?.split("/").filter(Boolean)||[];return a.length>=2&&"cannabis-literacy"===a[1].toLowerCase()?`/${a[0]}/cannabis-literacy`:null})(a,r)??(t=>{if(!e||!/^\/resources\/.*$/.test(e))return null;let s=e.split("/").filter(Boolean);return 2===t&&s.length>=3?`/resources/${s[1]}`:null})(r)??(e=>{let t=e?.toString().trim()?.toLowerCase()||"";if("shop"===t)return(0,ep.withStore)();if("brand"===t||"brands"===t)return"/brands";let s=t.replace(/\s+/g,"-");return`/${"category"===s?"categories":s}`})(a),className:`${r===n?.length-1?"text-gray-500":""} global-body-color`,children:r===n?.length-1?x(a):a}),r<n?.length-1&&(0,s.jsx)(ef.CaretRight,{className:"mx-3 text-gray-500 text-sm global-body-color"})]},r)},a+r))}),!h&&(0,s.jsx)("script",{id:"breadcrumb-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:u})}})]})};var eN=e.i(64722),ek=e.i(187807),eC=e.i(652377),eS=e.i(452689),eP=e.i(892725),eD=e.i(368799),eL=e.i(110157),eR=e.i(299106),eM=e.i(743534),eE=s,eF=e.i(815330),eI=Z;let eA=({handlePreferenceDrawer:e,isCustomHeader:t=!1,locationIcon:s=(0,eE.jsx)(eI.MapPin,{className:"md:text-xl xl:text-2xl header-font-color"}),showStoreAddress:r=!0,showChevronIcon:l=!0,locationPickerTextStyleCss:o={}})=>{let[i,n]=(0,b.useState)(!1),{orderType:c,selectedDeliveryAddress:d,selectedPickupAddress:m,selectedPickupAddressObject:h,selectedCurbsideAddress:x,selectedCurbsideAddressObject:p,retailerDetails:f,providerSettingsCms:g,isProviderLoading:j}=(0,a.useGlobalStore)(),{line1:v,postalCode:w,city:y,state:N}=(0,u.isTruthyObject)(h)?h:(0,u.isTruthyObject)(p)?p:{};return((0,b.useEffect)(()=>{n(!0)},[]),i)?(0,eE.jsx)(eE.Fragment,{children:c&&(m||d||x)&&!j?(0,eE.jsxs)("div",{className:"flex items-center gap-1 xl:gap-2",onClick:e,children:[s,(0,eE.jsxs)("div",{className:"cursor-pointer max-md:flex items-center flex-1",children:[(0,eE.jsxs)("p",{className:(0,ei.cn)("xl:-mb-1 pb-1 text-gray-600 header-font-color",!t&&"_button_input "),style:o,children:["DELIVERY"===c?"Delivery to":(0,eE.jsx)(eE.Fragment,{}),"PICKUP"===c?"Pickup from":(0,eE.jsx)(eE.Fragment,{}),"CURBSIDE_PICKUP"===c?"Curbside Pickup from":(0,eE.jsx)(eE.Fragment,{})]}),(0,eE.jsx)("span",{className:"px-1 md:hidden",children:"|"}),(0,eE.jsxs)("div",{className:(0,ei.cn)("text-gray-800 flex-1 flex items-center justify-between gap-2 header-font-color",!t&&"custom-body-1"),children:["PICKUP"===c||"CURBSIDE_PICKUP"===c?r?(0,eE.jsx)("span",{className:"text-xs",style:o,children:g?.treez?f?.address:(0,u.formatPickupAddress)(v,y,N,w)}):null:(0,eE.jsx)(eE.Fragment,{}),"DELIVERY"===c?r?(0,eE.jsx)("span",{className:"text-xs",style:o,children:d}):null:(0,eE.jsx)(eE.Fragment,{}),l?(0,eE.jsx)(eF.CaretDown,{style:o,className:" header-font-color text-sm"}):null]})]})]}):(0,eE.jsx)(eH,{})}):(0,eE.jsx)(eH,{})},eH=()=>(0,eE.jsxs)("div",{className:"flex items-center gap-1 xl:gap-2",children:[(0,eE.jsx)("div",{className:"md:text-xl xl:text-2xl bg-gray-400 animate-pulse rounded-full h-8 w-8"}),(0,eE.jsxs)("div",{className:"cursor-pointer max-md:flex items-center flex-1",children:[(0,eE.jsx)("p",{className:"bg-gray-400 animate-pulse rounded h-4 w-24 pb-1"}),(0,eE.jsxs)("div",{className:"custom-body-1 text-gray-800 flex-1 flex mt-1.5 items-center justify-between gap-2",children:[(0,eE.jsx)("span",{className:"bg-gray-400 animate-pulse rounded h-4 w-32"}),(0,eE.jsx)("div",{className:"bg-gray-400 animate-pulse rounded-full h-4 w-4"})]})]})]});var eT=e.i(612980),ez=e.i(154287),eO=e.i(262459),e_=e.i(430494);let eB=({setIsDefaultHomePage:e})=>(0,s.jsxs)("div",{className:"flex items-center gap-1 xl:gap-2",onClick:()=>e(!0),children:[(0,s.jsx)(Z.MapPin,{className:"md:text-xl xl:text-2xl header-font-color"}),(0,s.jsx)("div",{className:"cursor-pointer max-md:flex items-center flex-1",children:(0,s.jsx)("p",{className:"_button_input xl:-mb-1 pb-1 text-gray-600 header-font-color",children:"Select a Store"})})]});var e$=e.i(906949),eW=e.i(124344),eV=e.i(622782),eU=e.i(25652);let eG=()=>{let{commonCMSData:e,retailerId:t}=(0,a.useGlobalStore)(),s=e?.headerWidgetCmsData?.retailerHeaderWidgetData?.f
1ind(e=>e?.retailerId===t)??{};return(0,u.pickRetailerHeaderBoolean)(s?.isShowWishlistButton,e?.headerWidgetCmsData?.isShowWishlistButton)??!0};var eK=e.i(770556);let eY=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),eZ=({siteLogo:e,logoTitle:t,logoAlt:r,handlePreferenceDrawer:l,provider:o,isShowSignInButton:i})=>{let[n,c]=(0,b.useState)(!1),d=(0,M.usePathname)(),{setRouteLoader:m,setOpenSignInRequiredModal:h,chatPlatformCms:f,retailerId:g,setIsDefaultHomePage:j,isDefaultHomePage:v,commonCMSData:w}=(0,a.useGlobalStore)(),y=(0,M.useRouter)(),[N,k]=b.default.useState(!1),{setIsOpenLogoutConfirm:C}=(0,eD.useModalStore)(),{user:S,token:P}=(0,eR.useUserData)(),[D,L]=b.default.useState(!1),[R,E]=(0,b.useState)(!1),[F,I]=(0,b.useState)(""),[A,H]=(0,b.useState)([]),[T,z]=(0,b.useState)([]),[O,_]=(0,b.useState)(0),B=(0,b.useRef)(null),[$,W]=b.default.useState(!1),{wishlist:V}=(0,eM.useWishlistStore)(),{headerWidgetCmsData:U}=w||{},G=U?.retailerHeaderWidgetData?.find(e=>e?.retailerId===g)??{},K=e||U?.logo,Y=(0,eK.logoDimensionPx)((0,u.pickRetailerHeaderField)(G?.logoWidthDesktop,U?.logoWidthDesktop),80),Z=`${Y}px`,q=eG();function X(e){if(e==d)return!1;m(!0),y.push(e)}let{isCartSidebarOpen:J,setIsCartSidebarOpen:Q,cartCounter:ee}=(0,eP.useCartStore)(),{notificationCount:et,setNotificationCount:es,isNotificationCartSidebarOpen:ea,setIsNotificationCartSidebarOpen:er,recommendedProductData:el}=(0,eL.useNotificationStore)();function eo(e){if(e==d)return!1;m(!0),y.push(e)}return(0,eS.default)(()=>{setTimeout(()=>{$?B.current&&B.current.focus():B.current&&B.current.blur()},2e3)},[$]),(0,s.jsx)("div",{className:"header-background",children:(0,s.jsx)("div",{className:"max-md:hidden _container py-3",children:(0,s.jsxs)("div",{className:"grid grid-cols-12 items-center",children:[(0,s.jsxs)("div",{className:"col-span-4 flex items-center gap-10 md:mb-3",children:[(0,s.jsx)(p.default,{href:"/",onClick:()=>X("/"),children:(0,s.jsx)("div",{className:"flex items-center justify-center w-full",children:K?(0,s.jsx)(x.default,{src:K||"/default.png",title:t||"",alt:r||"",width:Y,height:Y,sizes:Z,className:"object-contain",style:{width:`${Y}px`,height:"auto"}}):(0,s.jsx)("div",{className:"h-[80px] w-[80px] bg-gray-300 animate-pulse rounded-md"})})}),o!==e_.PROVIDER_ECOMMERCE&&o!==e_.PROVIDER_SHOWCASE&&g&&(0,s.jsx)(eA,{handlePreferenceDrawer:l}),o!==e_.PROVIDER_ECOMMERCE&&o!==e_.PROVIDER_SHOWCASE&&!g&&!v&&(0,s.jsx)(eB,{setIsDefaultHomePage:j})]}),(0,s.jsxs)("div",{className:"flex items-center lg:gap-10 gap-5 md:text-sm xl:text-base 2xl:text-lg col-span-8 justify-end px-5",children:[(0,s.jsx)("div",{className:"w-[700px]",children:o!==e_.PROVIDER_IFRAME&&(0,s.jsx)(ez.default,{cls:"header-search-font-color header-search-background-color",fallback:(0,s.jsx)(eT.default,{setisSearchLoading:E,search:F,setSearch:I,openSugess:L,setSuggestions:H,setOpenSearch:W,setBrands:z,setTotalProducts:_,setOpen:L,searchInputRef:B,handleRedirectToPath:eo,activeLoader:function(e){return e!=d},suggestions:A,brands:T,cls:"header-search-font-color header-search-background-color",totalProducts:O,topPadding:!0})})}),P?(0,s.jsxs)("div",{className:eO.default.hover_container,children:[(0,s.jsxs)("button",{className:"w-max cursor-pointer flex items-center gap-2 flex-nowrap",onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onClick:()=>{y.push("/account"),c(!1)},children:[(0,s.jsx)(e$.User,{size:25,className:" header-font-color flex-shrink-0"}),(0,s.jsxs)("div",{className:"flex-1 flex-grow text-start header-font-color",children:[(0,s.jsx)("span",{className:"text-start text-sm xl:text-base font-medium",children:S?.firstName}),(0,s.jsx)("p",{className:"cursor-pointer mt-[-10px] w-full",children:(0,s.jsx)("span",{className:"custom-body-1 text-gray-800 text-xs header-font-color",children:"Account & List"})})]})]}),n&&(0,s.jsxs)("div",{className:(0,ei.cn)(eO.default.hover_div,"website-cards-bg-color"),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,s.jsxs)("div",{className:" flex items-center justify-between p-4 rounded-lg bg-[#EBF6E6] border",children:[(0,s.jsxs)("p",{className:" text-base font-medium website-cards-heading-color",children:[S?.firstName," ",S?.lastName]}),(0,s.jsxs)(p.default,{className:" text-base font-medium website-cards-text-color flex items-center gap-1",href:"/profile",onClick:()=>{k(!1),X("/profile"),(0,u.handleDefaultHomePage)(g,v,j)},children:["View Profile ",(0,s.jsx)(ef.CaretRight,{size:24})]})]}),(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:" grid grid-cols-2",children:[(0,s.jsxs)("div",{className:" border-r border-r-gray-200 pr-5",children:[(0,s.jsx)("h2",{className:" text-xl font-semibold global-heading-color mb-3",children:"Your List"}),V?.wishlistItems?.map((e,t)=>(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)(p.default,{href:`/your-list/${e?.slug}`,onClick:()=>{X(`/your-list/${e?.slug}`),(0,u.handleDefaultHomePage)(g,v,j)},className:" text-sm font-medium text-gray-600 hover:text-[#34A203] dark:hover:text-[var(--primary-text-color)] duration-300 transition-all",children:e?.listName||"No name"})},"top-bar-wish-list-link"+t)),(0,s.jsx)("hr",{className:"my-5"}),(0,s.jsx)("div",{children:(0,s.jsx)(p.default,{className:" text-sm font-medium text-[#1C64F2] hover:text-gray-600 duration-300 transition-all underline",href:"/your-list",onClick:()=>{(0,u.handleDefaultHomePage)(g,v,j)},children:"Create a Your List"})})]}),(0,s.jsxs)("div",{className:" pl-5",children:[(0,s.jsx)("h2",{className:" text-xl font-semibold global-heading-color mb-3",children:"Your Account"}),[{id:2,name:"Your Order",link:"/your-order"},{id:3,name:"Your List",link:"/your-list"},{id:4,name:"Chat with Retailer",link:"/chat-with-retailer"},{id:5,name:"Keep Shopping For",link:"/keep-shopping-for"},{id:6,name:"Blog",link:"/blog"},{id:7,name:"Contact Us",link:"/contact"},{id:8,name:"Location",link:"/find-a-dispensary"},{id:9,name:"Request Your Information",link:"/account/request-your-information"},{id:10,name:"Login & Security",link:"/account/login-and-security"},{id:11,name:"Terms & Condition",link:"/terms-and-conditions"},{id:12,name:"Privacy Policy",link:"/privacy-policy"},{id:13,name:"Customer Support",link:"/ticket-list"},{id:14,name:"Close Your Account",link:"/account/close-your-account"},{id:15,name:"Sign Out",link:""}].map(e=>{if(f||"/chat-with-retailer"!==e.link)return(0,s.jsx)("div",{children:"Sign Out"===e.name?(0,s.jsx)("button",{className:" text-sm font-medium text-gray-600 hover-text duration-300 transition-all mb-3 block",onClick:()=>{c(!1),C(!0)},children:e.name},"top-bar-link"+e.id):(0,s.jsx)(p.default,{className:" text-sm font-medium website-cards-text-color hover-text duration-300 transition-all mb-3 block",href:e.link,onClick:()=>{k(!1),(0,u.handleDefaultHomePage)(g,v,j)},children:e.name},"top-bar-link"+e.id)},"top-bar-link"+e.id)})]})]})]})]}):i&&(0,s.jsxs)("div",{className:"relative cursor-pointer flex items-center gap-3 flex-nowrap",onClick:()=>k(e=>!e),children:[(0,s.jsx)(e$.User,{size:25,className:"header-font-color flex-shrink-0"}),(0,s.jsx)("div",{className:"truncate",children:(0,s.jsxs)(p.default,{href:"/sign-in",onClick:()=>X("/sign-in"),children:[" ",(0,s.jsx)("span",{className:"_button_input text-gray-600 text-sm sm:text-base header-font-color",children:"Sign In"})]})})]}),(0,s.jsxs)("div",{className:" flex items-center lg:gap-10 gap-5",children:[q&&(0,s.jsx)(eq,{onClick:()=>P?eo("/your-list"):h(!0),icon:(0,s.jsx)(eW.Heart,{size:35,className:"header-font-color"}),count:V?.wishlistProductsCount}),P&&el?.length?(0,s.jsx)(eq,{onClick:()=>{er(!ea),es(0)},icon:(0,s.jsx)(eV.Bell,{size:35,className:"header-font-color"}),count:et}):null,o!==e_.PROVIDER_IFRAME&&(0,s.jsx)(eq,{onClick:()=>{Q(!J)},icon:(0,s.jsx)(eU.Handbag,{size:35,className:"header-font-color"}),count:ee}),w?.generalSettingsComponentUiData?.enableDarkModeToggle&&(0,s.jsx)(eY,{size:35})]})]})]})})})},eq=e=>(0,s.jsxs)("div",{className:"relative cursor-pointer",...e,onClick:e.onClick,children:[e.icon,e.count?(0,s.jsx)("span",{className:"fill-button text-white text-sm px-[6px] py-[3px] rounded-full leading-tight absolute -top-2 -right-2",children:e.count}):(0,s.jsx)(s.Fragment,{})]}),eX=[{id:1,img:"/images/ct.png",name:"Flowers"},{id:2,img:"/images/ct.png",name:"Pre Rolls"},{id:3,img:"/images/vaporizer.png",name:"Vaporizers"},{id:4,img:"/images/concentrate.png",name:"Concentrates"},{id:5,img:"/images/topicals.png",name:"Topicals"},{id:6,img:"/images/edibles.png",name:"Edibles"},{id:7,img:"/images/flower.png",name:"Flower"},{id:8,img:"/images/tinctures.png",name:"Tinctures"}
1,{id:9,img:"/images/accessories.png",name:"Accessories"}];var eJ=e.i(683845);let eQ=()=>{let{retailerId:e,isDefaultHomePage:t,setIsDefaultHomePage:r}=(0,a.useGlobalStore)();return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:" text-2xl font-medium text-[#121212]",children:"Brand"}),(0,s.jsx)("p",{className:" text-xs text-[#A0A0A0] mt-1 mb-5",children:"Top sale on this week"}),(0,s.jsx)("div",{className:"hidden md:grid 2xl:grid-cols-4 grid-cols-3 gap-3 overflow-x-auto",children:[1,2,3,4,5,6].map(e=>(0,s.jsxs)("div",{className:"bg-[#D9D9D9] hover:bg-gray-300 duration-300 rounded-md p-3 flex items-center gap-2 flex-shrink-0",children:[(0,s.jsx)("div",{className:"bg-black relative w-16 aspect-square rounded-full",children:(0,s.jsx)(x.default,{src:"/images/brand_logo.png",className:"",fill:!0,alt:"img"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:" text-xs md:text-sm text-primary_text",children:"Church Cannabis Company"}),(0,s.jsx)(p.default,{href:"/",className:" text-xs text-secondary_text underline",children:"Visit Brand"})]})]},e))}),(0,s.jsx)("div",{className:"flex gap-3 overflow-x-auto mb-10 md:hidden max-md:w-80",children:eX.map((e,t)=>(0,s.jsxs)("div",{className:"flex-shrink-0 w-32",children:[(0,s.jsx)("div",{className:"bg-black relative w-full aspect-square",children:(0,s.jsx)(x.default,{src:"/images/brand_logo.png",className:"",fill:!0,alt:"img"})}),(0,s.jsx)("h2",{className:"font-medium",children:e.name})]},t))}),(0,s.jsxs)(p.default,{href:(0,ep.withStore)(),className:" flex items-center gap-3 mt-3 text-base font-medium text-primary cursor-pointer",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:["Explore all Brands ",(0,s.jsx)(eJ.ArrowUpRight,{})]})]})},e0=()=>(0,s.jsx)("div",{children:"Category"}),e1=()=>(0,s.jsx)("div",{children:"DailyDeals"}),e2=()=>(0,s.jsx)("div",{children:"Effects"}),e3=()=>{let{retailerId:e,isDefaultHomePage:t,setIsDefaultHomePage:r}=(0,a.useGlobalStore)();return(0,s.jsxs)("div",{className:" ",children:[(0,s.jsx)("h2",{className:" text-2xl font-medium text-[#121212] hidden md:block",children:"Shop Deals"}),(0,s.jsx)("p",{className:" text-xs text-[#A0A0A0] mt-1 mb-5 hidden md:block",children:"Top shop deals on this week"}),(0,s.jsx)("div",{className:"flex md:grid grid-cols-3 2xl:gap-5 gap-3 xl:gap-4 overflow-x-auto max-md:w-80",children:e5?.map(e=>(0,s.jsxs)("div",{className:`py-10 px-5 ${e.bg} cursor-pointer duration-300`,children:[(0,s.jsx)("h2",{className:" md:text-end text-base text-white ",children:e.title}),(0,s.jsx)("p",{className:" md:text-end text-base 2xl:text-xl font-bold text-white my-2 whitespace-nowrap",children:e.title1}),(0,s.jsx)("p",{className:" md:text-end text-base font-semibold text-white",children:e.title3})]},e.id))}),(0,s.jsxs)(p.default,{href:(0,ep.withStore)(),className:" flex items-center gap-3 mt-3 text-base font-medium text-primary cursor-pointer justify-center md:justify-start",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:["Explore all Deals ",(0,s.jsx)(eJ.ArrowUpRight,{})]})]})},e5=[{id:1,bg:"bg-territory hover:bg-yellow-300",title:"People Choice",title1:"MKX Gummies 100mg",title3:"Shop Now"},{id:2,bg:"bg-[#214842] hover:bg-green-900",title:"People Choice",title1:"Dragon Infuesd Pre Rolls",title3:"Shop Now"},{id:3,bg:"bg-[#556260] hover:bg-gray-500",title:"People Choice",title1:"Thunder Canna 200mg",title3:"Shop Now"}],e4=()=>{let{retailerId:e,isDefaultHomePage:t,setIsDefaultHomePage:r}=(0,a.useGlobalStore)();return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:" hidden md:block",children:[(0,s.jsx)("h2",{className:" text-2xl font-medium text-[#121212]",children:"Weekly Deals"}),(0,s.jsx)("p",{className:" text-xs text-[#A0A0A0] mt-1 mb-5",children:"Top Deals sale on this week"}),(0,s.jsxs)("div",{className:" grid grid-cols-2 gap-5 w-full",children:[(0,s.jsxs)("div",{className:" grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:" p-5 bg-[#EAE9E5] hover:bg-gray-200 duration-300",children:[(0,s.jsx)("h2",{className:" text-xs xl:text-sm 2xl:text-xl font-semibold text-primary_text",children:"15 for $100 Platinum Vapes"}),(0,s.jsx)(p.default,{href:"/",className:" text-sm font-semibold text-primary_text underline mt-2",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:"Discover more"})]}),(0,s.jsx)("div",{className:" grid grid-rows-2 gap-y-2",children:[1,2].map(a=>(0,s.jsx)("div",{className:" bg-[#E5E5E5] hover:bg-gray-200 duration-300 p-5",children:(0,s.jsxs)("div",{className:" mt-4",children:[(0,s.jsx)("h2",{className:" text-xs xl:text-sm 2xl:text-xl font-semibold text-primary_text",children:"Dragonfly Infuesd Disposables"}),(0,s.jsx)(p.default,{href:"/",className:" text-sm font-semibold text-primary_text underline mt-2",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:"Discover more"})]})},a))})]}),(0,s.jsxs)("div",{className:" p-5 bg-[#EAE9E5] hover:bg-gray-200 duration-300",children:[(0,s.jsxs)("h2",{className:" text-xs xl:text-sm 2xl:text-xl font-semibold text-primary_text",children:["8 for $100 ",(0,s.jsx)("br",{}),"Disposables Vapes"]}),(0,s.jsx)(p.default,{href:"/",className:" text-sm font-semibold text-primary_text underline mt-2",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:"Discover more"})]})]})]}),(0,s.jsx)("div",{className:" grid grid-cols-2 gap-3 grid-rows-2 md:hidden",children:[1,2,3,4].map(a=>(0,s.jsxs)("div",{className:" bg-[#D9D9D9] hover:bg-gray-100 duration-300 px-5 pt-5 pb-20",children:[(0,s.jsx)("p",{className:" text-sm font-semibold",children:"15 for $100 Platinum Vapes"}),(0,s.jsx)(p.default,{className:" text-xs font-medium text-primary_text mt-3 underline",href:"/",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:"Discover more"})]},a))}),(0,s.jsxs)(p.default,{href:(0,ep.withStore)(),className:" flex items-center gap-3 mt-3 text-base font-medium text-primary curs
1or-pointer justify-center md:justify-start",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:["Explore all Brands ",(0,s.jsx)(eJ.ArrowUpRight,{})]})]})},e6=e=>{let[t,r]=(0,b.useState)("Category"),{retailerId:l,isDefaultHomePage:o,setIsDefaultHomePage:i}=(0,a.useGlobalStore)();return(0,s.jsx)("div",{className:" relative",children:(0,s.jsxs)("div",{className:" w-full grid-cols-10 grid 2xl:pt-8 pt-5 bg-white",children:[(0,s.jsx)("div",{className:" col-span-2  border-r border-r-gray-300 pl-6",children:["Category","Weekly Deals","Shop Deals","Daily Deals","Effects","Brands","Shop All Deals","Shop All Product"].map(a=>(0,s.jsx)("p",{onClick:()=>r(a),className:`text-sm cursor-pointer 2xl:text-lg font-semibold hover:text-primary duration-500 mb-5  block  text-primary_text ${t===a&&"!text-primary"}`,children:["Shop All Deals","Shop All Product"].includes(a)?(0,s.jsx)(p.default,{href:(0,ep.withStore)(),onClick:()=>{e.closeSubmenu(),(0,u.handleDefaultHomePage)(l,o,i)},className:"",children:a}):a},a))}),(0,s.jsxs)("div",{className:" col-span-8 pl-8",children:["Category"===t&&(0,s.jsx)(e0,{}),"Weekly Deals"===t&&(0,s.jsx)(e4,{}),"Shop Deals"===t&&(0,s.jsx)(e3,{}),"Daily Deals"===t&&(0,s.jsx)(e1,{}),"Effects"===t&&(0,s.jsx)(e2,{}),"Brands"===t&&(0,s.jsx)(eQ,{})]})]})})},e8=()=>{let{retailerId:e,isDefaultHomePage:t,setIsDefaultHomePage:r}=(0,a.useGlobalStore)();return(0,s.jsx)("section",{className:"w-full relative",children:(0,s.jsx)("div",{className:" grid grid-cols-3 gap-5",children:e7?.map(a=>(0,s.jsxs)("div",{className:`${1===a.id?"":" pl-8"}`,children:[(0,s.jsx)("h2",{className:" text-lg font-semibold text-primary_text mb-5",children:a.title}),(0,s.jsx)("div",{className:`flex flex-col flex-wrap max-h-56 2xl:gap-x-10 gap-x-5 ${3===a.id?"":"pr-8 border-r border-r-gray-300"}`,children:a.item.map(a=>(0,s.jsx)(p.default,{className:" text-xs 2xl:text-base text-primary_text mb-5 hover:text-primary duration-500",href:"",onClick:()=>{(0,u.handleDefaultHomePage)(e,t,r)},children:a.title},a.id))}),(0,s.jsx)("div",{})]},a.id))})})},e7=[{id:1,title:"Our Special",item:[{id:1,title:"2/$80 Cured/Live Resin 5g"},{id:2,title:"2/$80 Cured/Live Resin 5g"},{id:3,title:"2/$80 Cured/Live Resin 5g"},{id:4,title:"2/$80 Cured/Live Resin 5g"},{id:5,title:"2/$80 Cured/Live Resin 5g"},{id:6,title:"2/$80 Cured/Live Resin 5g"},{id:7,title:"2/$80 Cured/Live Resin 5g"},{id:8,title:"2/$80 Cured/Live Resin 5g"},{id:9,title:"2/$80 Cured/Live Resin 5g"},{id:10,title:"2/$80 Cured/Live Resin 5g"}]},{id:2,title:"Category Deals",item:[{id:1,title:"Flower Deals"},{id:2,title:"Pre-Rolls Deals"},{id:3,title:"Concentrates Deals"},{id:4,title:"Topicals Deals"},{id:5,title:"Vaporizers Deals"},{id:6,title:"Tinctures Deals"},{id:7,title:"CBD Deals"},{id:8,title:"Edibles Deals"},{id:9,title:"Accessories Deals"}]},{id:3,title:"Strain Type",item:[{id:1,title:"High Cbd"},{id:2,title:"Hybrid"},{id:3,title:"Indica"},{id:4,title:"Sativa"}]}];var e9=e.i(577854);let te=()=>{let{isSubmenuOpen:e,page:t,closeSubmenu:a}=(0,ek.useSubMenuStore)();return e&&(0,s.jsx)("div",{className:"_container relative z-10",children:(0,s.jsxs)("aside",{className:"absolute w-[90vw] max-w-[1920px] bg-white shadow-md border-t p-5 rounded right-[5%] transition-all duration-300",onMouseLeave:a,children:["Specials"===t&&(0,s.jsx)(e8,{}),"Shop"===t&&(0,s.jsx)(e6,{closeSubmenu:a}),(0,s.jsx)(e9.X,{onClick:a,className:" text-2xl cursor-pointer absolute right-5 top-3"})]})},t)};var tt=e.i(388013),ts=e.i(174080),ta=e.i(88653),tr=e.i(846932);function tl(){let{commonCMSData:e}=(0,a.useGlobalStore)();return{data:e?.resourceMegaMenuCmsData??null}}let to=({className:e=""})=>(0,s.jsxs)("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M100 10C100 10 140 45 140 90C140 122 118 148 100 158C82 148 60 122 60 90C60 45 100 10 100 10Z",fill:"currentColor",fillOpacity:"0.18"}),(0,s.jsx)("path",{d:"M100 20C100 20 100 70 100 158",stroke:"currentColor",strokeOpacity:"0.35",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M100 50C100 50 78 58 70 78C64 94 70 108 78 116",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"1.5",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M100 70C100 70 122 78 130 98C136 114 130 128 122 136",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"1.5",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M40 130C40 130 70 118 92 132C110 143 116 162 112 176",fill:"none",stroke:"currentColor",strokeOpacity:"0.22",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M25 100C25 100 55 96 72 116C86 133 84 152 76 164",fill:"none",stroke:"currentColor",strokeOpacity:"0.16",strokeWidth:"2",strokeLinecap:"round"}),(0,s.jsx)("circle",{cx:"150",cy:"55",r:"10",fill:"currentColor",fillOpacity:"0.12"}),(0,s.jsx)("circle",{cx:"35",cy:"60",r:"6",fill:"currentColor",fillOpacity:"0.14"})]}),ti=({data:e,onClose:t,onLinkClick:a,columnsClassName:r="grid-cols-1 md:grid-cols-3",className:l=""})=>{let o=e?.columns??[];return(0,s.jsxs)("div",{className:`relative w-full max-w-5xl mx-auto 
1select-none overflow-hidden rounded-2xl border border-[var(--mega-menu-border-color)] bg-[var(--mega-menu-bg-color)] p-6 text-[var(--mega-menu-text-color)] shadow-2xl sm:p-8 md:p-10 ${l}`,children:[(0,s.jsx)("div",{className:"pointer-events-none absolute -right-6 -top-6 z-0 text-[var(--mega-menu-watermark-color)] opacity-25",children:(0,s.jsx)(to,{className:"h-56 w-56 sm:h-72 sm:w-72"})}),(0,s.jsxs)("div",{className:"relative z-10 flex items-start justify-between border-b border-[var(--mega-menu-border-color)] pb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[e?.megaMenuImage?(0,s.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden rounded-2xl border border-[var(--mega-menu-icon-border-color)] bg-[var(--mega-menu-icon-bg-color)] shadow-sm sm:h-14 sm:w-14",children:(0,s.jsx)(x.default,{src:e.megaMenuImage,alt:"",fill:!0,className:"object-contain p-2",sizes:"56px"})}):null,(0,s.jsxs)("div",{children:[e?.megaMenuTitle?(0,s.jsx)("h2",{className:"font-sans text-xl font-black uppercase tracking-tight text-[var(--mega-menu-heading-color)] sm:text-2xl",children:e.megaMenuTitle}):null,e?.megaMenuDescription?(0,s.jsx)("p",{className:"mt-0.5 max-w-md text-xs font-normal text-[var(--mega-menu-description-color)] sm:text-sm",children:e.megaMenuDescription}):null]})]}),(0,s.jsx)("button",{type:"button",onClick:t,"aria-label":"Close menu",className:"-mr-2 rounded-full p-2 text-[var(--mega-menu-close-icon-color)] transition-all duration-200 hover:bg-[var(--mega-menu-close-hover-bg-color)] hover:text-[var(--mega-menu-close-hover-text-color)]",children:(0,s.jsx)(e9.X,{className:"h-5 w-5",weight:"bold"})})]}),(0,s.jsx)("div",{className:`relative z-10 grid gap-8 pt-6 lg:gap-10 ${r}`,children:o.map((e,t)=>{let r=e?.links??[],l=r.find(e=>e?.isViewAllButton)??null,o=l?r.filter(e=>e!==l):r;return(0,s.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-1.5 flex items-center gap-3",children:[e?.image?(0,s.jsx)("div",{className:"relative h-9 w-9 shrink-0 overflow-hidden rounded-full bg-[var(--mega-menu-icon-bg-color)]",children:(0,s.jsx)(x.default,{src:e.image,alt:"",fill:!0,className:"object-contain p-1.5"})}):null,(0,s.jsx)("h3",{className:"text-xs font-extrabold uppercase tracking-wider text-[var(--mega-menu-heading-color)] sm:text-sm",children:e?.title})]}),e?.description?(0,s.jsx)("p",{className:"mb-4 pl-12 text-[11px] leading-relaxed text-[var(--mega-menu-description-color)] sm:text-xs",children:e.description}):null,o.length?(0,s.jsx)("ul",{className:"mt-2 space-y-1",children:o.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsxs)(p.default,{href:e?.link||"",onClick:()=>a?.(e?.link||""),className:"group -mx-2 flex cursor-pointer items-center justify-between rounded-lg px-3 py-2 text-[var(--mega-menu-link-text-color)] transition-all duration-150 hover:bg-[var(--mega-menu-link-hover-bg-color)] hover:text-[var(--mega-menu-link-hover-text-color)]",children:[(0,s.jsx)("span",{className:"text-xs font-medium transition-all group-hover:font-semibold sm:text-sm",children:e?.label}),(0,s.jsx)(ef.CaretRight,{className:"h-4 w-4 text-[var(--mega-menu-chevron-color)] transition-all duration-150 group-hover:translate-x-0.5 group-hover:text-[var(--mega-menu-link-hover-text-color)]",weight:"bold"})]})},t))}):null]}),l?(0,s.jsx)("div",{className:"mt-6 pt-2",children:(0,s.jsxs)(p.default,{href:l?.link||"",onClick:()=>a?.(l?.link||""),className:"group/btn flex w-full items-center justify-between rounded-lg border border-[var(--mega-menu-cta-border-color)] bg-[var(--mega-menu-cta-bg-color)] px-4 py-3 text-[11px] font-bold uppercase tracking-wider text-[var(--mega-menu-cta-text-color)] shadow-sm transition-all duration-150 hover:bg-[var(--mega-menu-cta-hover-bg-color)]",children:[(0,s.jsx)("span",{children:l?.label}),(0,s.jsx)(A.ArrowRight,{className:"h-4 w-4 transition-transform duration-150 group-hover/btn:translate-x-1",weight:"bold"})]})}):null]},t)})})]})},tn=({item:e,onLinkClick:t,textColorClassName:a="font-semibold header-font-color"})=>{let[r,l]=(0,b.useState)(!1),o=(0,b.useRef)(null),i=(0,b.useRef)(null),n=(0,b.useRef)(null),[c,d]=(0,b.useState)(null),{data:m}=tl(),u=()=>{n.current&&(clearTimeout(n.current),n.current=null)},h=()=>{u(),n.current=setTimeout(()=>l(!1),150)};(0,b.useEffect)(()=>u,[]),(0,b.useEffect)(()=>(r?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[r]),(0,b.useLayoutEffect)(()=>
1{if(!r)return;let e=()=>{i.current&&d(i.current.getBoundingClientRect().bottom+12)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[r]),(0,b.useEffect)(()=>{if(!r)return;let e=e=>{let t=e.target;i.current?.contains(t)||o.current?.contains(t)||l(!1)};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[r]),(0,b.useEffect)(()=>{if(!r)return;let e=e=>{if("Escape"===e.key)return void l(!1);if("Tab"===e.key&&o.current){let t=o.current.querySelectorAll("a[href], button:not([disabled])");if(!t.length)return;let s=t[0],a=t[t.length-1];e.shiftKey&&document.activeElement===s?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),s.focus())}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]);let x=!!m?.columns?.length;return x?(0,s.jsxs)("div",{className:"relative flex h-full items-center",children:[(0,s.jsxs)("div",{ref:i,role:"button",tabIndex:0,"aria-haspopup":"true","aria-expanded":r,onMouseEnter:()=>{u(),l(!0)},onMouseLeave:h,onClick:()=>l(e=>!e),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l(e=>!e))},className:`relative flex cursor-pointer items-center justify-center gap-2 px-2 outline-none custom-link-font ${a}`,children:[(0,s.jsx)("span",{children:e.label}),(0,s.jsx)(eF.CaretDown,{size:20,className:"text-b50"})]}),"u">typeof document&&(0,ts.createPortal)((0,s.jsx)(ta.AnimatePresence,{children:r&&(0,s.jsx)("div",{style:null!=c?{top:c}:void 0,className:"fixed left-1/2 z-40 max-h-[60dvh] w-[94vw] max-w-5xl -translate-x-1/2 overflow-y-auto",children:(0,s.jsx)(tr.motion.div,{ref:o,onMouseEnter:u,onMouseLeave:h,role:"region","aria-label":`${e.label} menu`,initial:{opacity:0,y:-10,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.2,ease:"easeOut"},children:x&&m?(0,s.jsx)(ti,{data:m,onClose:()=>l(!1),onLinkClick:e=>{l(!1),t(e)}}):(0,s.jsx)("div",{className:"grid w-full grid-cols-3 gap-8 rounded-2xl border border-[var(--mega-menu-border-color)] bg-[var(--mega-menu-bg-color)] px-8 py-7 shadow-2xl",children:[void 0,void 0,void 0].map((e,t)=>(0,s.jsxs)("div",{className:"animate-pulse space-y-3",children:[(0,s.jsx)("div",{className:"h-11 w-11 rounded-full bg-[var(--mega-menu-icon-bg-color)]"}),(0,s.jsx)("div",{className:"h-3 w-2/3 rounded bg-[var(--mega-menu-icon-bg-color)]"}),(0,s.jsx)("div",{className:"h-3 w-full rounded bg-[var(--mega-menu-border-color)]"}),(0,s.jsx)("div",{className:"h-3 w-full rounded bg-[var(--mega-menu-border-color)]"})]},t))})})})}),document.body)]}):e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group flex h-full items-center",children:[(0,s.jsxs)("div",{className:`relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer custom-link-font ${a}`,children:[(0,s.jsx)("span",{children:e.label}),(0,s.jsx)(eF.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-[var(--website-cards-bg-color)] border border-[var(--website-cards-border-color)] group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e.subLinks.map((e,a)=>(0,s.jsx)(p.default,{href:e?.url||"",onClick:()=>t(e?.url||""),className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},a))})]}):(0,s.jsx)(p.default,{href:e?.url||"",onClick:()=>t(e?.url||""),className:"flex h-full items-center",children:(0,s.jsx)("span",{className:`_text-lg cursor-pointer ${a}`,children:e.label})})},tc=({siteLogo:e,logoTitle:t,logoAlt:l,widgetData:o,handleDrawer:i,handleRouteChange:n,handlePreferenceDrawer:c,provider:d,isShowSignInButton:m})=>{let{brandList:h,setRouteLoader:f,sponsorBrands:g,retailerId:j,isDefaultHomePage:v,setIsDefaultHomePage:w}=(0,a.useGlobalStore)(),[y,N]=(0,b.useState)(!1),C=(0,eC.useNavigationLoading)(o),{
1closeSubmenu:S}=(0,ek.useSubMenuStore)(),P=(0,b.useRef)(null),D=(0,M.usePathname)(),L=(0,M.useRouter)(),R=e=>{var t;t=e,(0,k.pushNavHref)({path:t,pathname:D,router:L,setRouteLoader:f})},E=r.default.env.NEXT_PUBLIC_CAREER_VERSION;return(0,s.jsxs)("div",{children:[(0,s.jsx)(eZ,{siteLogo:e,logoTitle:t,logoAlt:l,handlePreferenceDrawer:c,provider:d,isShowSignInButton:m}),(0,s.jsxs)("div",{className:"max-md:hidden sticky top-0 z-30",children:[(0,s.jsx)("div",{className:"bg-custom-header-bar-color border-y",children:(0,s.jsxs)("nav",{onMouseOver:e=>{e.currentTarget.classList.contains("link-btn")||S()},className:"_container flex items-center justify-between z-30 gap-3 md:text-sm xl:text-base",children:[(0,s.jsxs)("div",{className:"flex items-center gap-5 py-5 custom-header-bar-text-color",children:[(0,s.jsx)(tt.List,{onClick:i,className:"text-3xl cursor-pointer"}),(0,s.jsxs)("div",{className:"flex items-center gap-x-5 xl:gap-x-6 2xl:gap-x-7 2xl:text-lg",children:[o&&(!o.hasOwnProperty("shouldShowBrandLabel")||o?.shouldShowBrandLabel===!0)&&(0,s.jsx)("div",{children:(0,s.jsx)("span",{ref:P,onClick:()=>N(!y),className:"text-lg font-medium hover:font-semibold transition duration-700 cursor-pointer custom-header-bar-text-color relative flex items-center gap-2 link-btn",children:o?.brandLabel})}),C?[...Array(6)].map((e,t)=>(0,s.jsx)("div",{className:"h-6 w-20 bg-gray-300 animate-pulse rounded"},"nav-loading-skeleton-"+t)):o?.links&&o.links.length>0?o.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals";return e?.isCategory?null:e?.enableResourceMegaMenu?(0,s.jsx)(tn,{item:e,textColorClassName:"font-medium custom-header-bar-text-color",onLinkClick:e=>{R(e),(0,u.handleDefaultHomePage)(j,v,w)}},t):e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)(p.default,{href:e?.url?e.url:"",onClick:()=>{R(e?.url),(0,u.handleDefaultHomePage)(j,v,w)},className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer custom-link-font no-underline font-medium",children:[(0,s.jsx)("span",{children:e.label}),(0,s.jsx)(eF.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-[var(--website-cards-bg-color)] border border-[var(--website-cards-border-color)] group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(j,v,w)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{R(a),(0,u.handleDefaultHomePage)(j,v,w)},passHref:!0,children:(0,s.jsx)("span",{className:"_text-lg font-medium hover:font-semibold cursor-pointer custom-header-bar-text-color",children:e.label})},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))]})]}),(0,s.jsx)("div",{className:"flex",children:E&&(0,s.jsx)(p.default,{href:"/career",passHref:!0,children:(0,s.jsx)("span",{className:"_body_large flex items-center gap-2 custom-header-bar-text-color",children:"Apply Now"})})})]})}),(0,s.jsx)(te,{})]}),(0,s.jsx)("div",{className:"_container",children:y&&(0,s.jsx)(eN.default,{onClickOutside:e=>{P.current&&!P.current.contains(e.target)&&N(!1)},children:(0,s.jsxs)("div",{className:"absolute top-[2px] left-[0px] bg-[var(--website-cards-bg-color)] z-20 rounded-lg p-6 border border-[var(--website-cards-border-color)] drop-shadow-sm",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("p",{className:"text-2xl global-heading-color font-medium",children:o?.brandLabel}),(0,s.jsx)("button",{onClick:()=>N(!1),children:(0,s.jsx)(e9.X,{})})]}),(h||h?.length!==0)&&(g||g?.length!==0)?(0,s.jsx)("div",{className:"grid grid-cols-3 gap-3 py-4",children:g&&g?.length!==0?g?.slice(0,6)?.map((e,t)=>(0,s.jsx)(p.default,{href:(0,ep.withStore)(`/brand/${e?.urlSlug||(0,u.urlSlug)(e?.brandName)}`),onClick:()=>{N(!1),n((0,ep.withStore)(`/brand/${e?.urlSlug||(0,u.urlSlug)(e?.brandName)}`)),(0,u.handleDefaultHomePage)(j,v,w)},children:(0,s.jsxs)("div",{className:"bg-[#EBF6E6] rounded cursor-pointer py-12 px-6",children:[(0,s.jsx)(x.default,{src:e?.customImage&&e?.customImage!=="null"&&!e.customImage.includes("default.png")?e.customImage:e?.imageUrl||"/images/deals-card.svg",className:"w-[85px] h-[85px] object-contain mx-auto",width:85,height:85,sizes:"85px",alt:e?.brandName||""}),(0,s.jsx)("p",{className:"text-base text-center font-medium text-[var(--website-cards-text-color)] mt-1",children:e?.brandName})]})},"brand-link-navbar-pc"+t)):h?.slice(0,6)?.map((e,t)=>(0,s.jsx)(p.default,{href:(0,ep.withStore)(`/brand/${e?.urlSlug||(0,u.urlSlug)(e?.brandName)}`),onClick:()=>{N(!1),n((0,ep.withStore)(`/brand/${e?.urlSlug||(0,u.urlSlug)(e?.brandName)}`)),(0,u.handleDefaultHomePage)(j,v,w)},children:(0,s.jsxs)("div",{className:"bg-[#EBF6E6] px-5 py-6 rounded cursor-pointer",children:[(0,s.jsx)(x.default,{src:e?.customImage&&e?.customImage!=="null"&&!e.customImage.includes("default.png")?e.customImage:e?.imageUrl||"/images/deals-card.svg",className:"w-[85px] h-[85px] object-contain mx-auto",width:85,height:85,sizes:"85px",alt:e?.name||""}),(0,s.jsx)("p",{className:"text-base text-center font-medium text-[var(--website-cards-text-color)] mt-1",children:e?.brandName||e?.name})]})},"brand-link-navbar-pc-slice"+t))}):(0,s.jsx)("div",{className:"grid grid-cols-3 gap-3 py-4 w-50",children:[...Array(6)].map((e,t)=>(0,s.jsx)(td,{},"brand-skeleton-navbar-pc"+t))}),(0,s.jsx)(p.default,{href:"/sponsored-brand",onClick:()=>{N(!1),n("/sponsored-brand"),(0,u.handleDefaultHomePage)(j,v,w)},children:(0,s.jsxs)("button",{className:"text-xs text-[#34A203] font-medium",children:["Show all"," ",o?.brandLabel?o.brandLabel?.toLowerCase():""]})})]})})})]})},td=()=>(0,s.jsxs)("div",{className:"animate-pulse",children:[(0,s.jsx)("div",{className:"size-20 lg:size-40 bg-gray-300 rounded-full"}),(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-3/4 mx-auto mt-2"})]});var tm=e.i(939336),tu=e.i(317716),th=e.i(525209),tx=e.i(301575),tp=e.i(603670);let tf=e=>{let t=(0,M.useRouter)();b.default.useRef(null);let r=(0,M.usePathname)();b.default.useEffect(()=>{},[!1]);let[l,o]=b.default.useState(!1),{setRouteLoader:i,searchMenuType:n}=(0,a.useGlobalStore)(),c=(0,M.useSearchParams)(),d=c?.get("search")??"";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"px-2 py-2 mb-2 md:hidden sticky top-0 header-background z-30",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(tx.ArrowLeft,{size:28,className:"header-font-color",onClick:()=>t.back()}),(0,s.jsx)("div",{className:" w-full",children:(0,s.jsxs)("div",{className:"relative md:ml-auto md:hidden ",children:[(0,s.jsx)("input",{type:"text",value:d,readOnly:!0,onClick:()=>{(0,tu.usesLiveSearchOverlay)(n)?o(!0):t.push("/search")},onFocus:e=>e?.target.blur(),className:"header-search-background-color header-search-font-color pl-3 py-2 max-md:my-2 rounded-lg outline-none w-full z-10 focus:outline-none",placeholder:"Type here to search products"}),d?(0,s.jsx)("div",{className:" absolute right-3 top-[1.1rem]",onClick:()=>
1{if(!c)return;let e=new URLSearchParams(Array.from(c?.entries()));e.delete("search");let s=e.toString();i(!0),t.push(`${window.location.pathname}${s?`?${s}`:""}`)},children:(0,s.jsx)(e9.X,{size:22,className:"header-font-color"})}):(0,s.jsx)("div",{className:" absolute right-3 top-[1.1rem]",children:(0,s.jsx)(th.MagnifyingGlass,{size:22,className:"header-font-color"})})]})})]}),(0,tu.usesLiveSearchOverlay)(n)?(0,s.jsx)(tm.default,{setOpenSearch:o,openSearch:l,searchPageCms:e?.searchPageCms}):(0,s.jsx)(s.Fragment,{})]}),!r?.startsWith("/career")&&(0,s.jsx)(tp.default,{zoneId:"k7UbY",pageSize:1,mode:["mobile"]})]})};var tg=e.i(6349);let tb=({title:e,unseenCount:t,searchPageCms:r,siteLogo:l,logoTitle:o,logoAlt:i})=>{let n=(0,M.useRouter)(),{token:c}=(0,eR.useUserData)(),[d,m]=b.default.useState(!1),u=b.default.useRef(null),[h,x]=b.default.useState(!1),{wishlist:p}=(0,eM.useWishlistStore)(),{setRouteLoader:f,searchMenuType:g,setOpenSignInRequiredModal:j}=(0,a.useGlobalStore)();function v(e){if(e==w)return!1;f(!0),n.push(e)}b.default.useEffect(()=>{d&&u.current?.focus()},[d]);let w=(0,M.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(tx.ArrowLeft,{size:24,className:"header-font-color",onClick:()=>n.back()}),(0,s.jsx)(tg.default,{siteLogo:l,logoTitle:o,logoAlt:i,handleRedirectToPath:v})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{(0,tu.usesLiveSearchOverlay)(g)?x(!0):n.push("/search")},children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>(function(e){if(e==w)return!1;f(!0),n.push(e)})("/your-list"),children:[c&&p?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:p?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>c?v("/notification"):j(!0),children:[c&&t>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:t}),(0,s.jsx)(eV.Bell,{size:18,className:"header-font-color"})]})]})]}),(0,s.jsx)("hr",{className:"mt-2"}),(0,tu.usesLiveSearchOverlay)(g)?(0,s.jsx)(tm.default,{setOpenSearch:x,openSearch:h,searchPageCms:r}):(0,s.jsx)(s.Fragment,{})]})};var tj=e.i(402902),tv=e.i(266027),tw=e.i(153846),ty=e.i(640616),tN=e.i(447689),tk=e.i(769464);let tC=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,96H48a20,20,0,0,0-20,20v84a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V116A20,20,0,0,0,208,96Zm-4,100H52V120H204ZM44,68A12,12,0,0,1,56,56H200a12,12,0,0,1,0,24H56A12,12,0,0,1,44,68ZM60,28A12,12,0,0,1,72,16H184a12,12,0,0,1,0,24H72A12,12,0,0,1,60,28Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M216,104v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V104a8,8,0,0,1,8-8H208A8,8,0,0,1,216,104Z",opacity:"0.2"}),b.createElement("path",{d:"M208,88H48a16,16,0,0,0-16,16v96a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104A16,16,0,0,0,208,88Zm0,112H48V104H208v96ZM48,64a8,8,0,0,1,8-8H200a8,8,0,0,1,0,16H56A8,8,0,0,1,48,64ZM64,32a8,8,0,0,1,8-8H184a8,8,0,0,1,0,16H72A8,8,0,0,1,64,32Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M224,104v96a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V104A16,16,0,0,1,48,88H208A16,16,0,0,1,224,104ZM56,72H200a8,8,0,0,0,0-16H56a8,8,0,0,0,0,16ZM72,40H184a8,8,0,0,0,0-16H72a8,8,0,0,0,0,16Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,90H48a14,14,0,0,0-14,14v96a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V104A14,14,0,0,0,208,90Zm2,110a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V104a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2ZM50,64a6,6,0,0,1,6-6H200a6,6,0,0,1,0,12H56A6,6,0,0,1,50,64ZM66,32a6,6,0,0,1,6-6H184a6,6,0,0,1,0,12H72A6,6,0,0,1,66,32Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,88H48a16,16,0,0,0-16,16v96a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104A16,16,0,0,0,208,88Zm0,112H48V104H208v96ZM48,64a8,8,0,0,1,8-8H200a8,8,0,0,1,0,16H56A8,8,0,0,1,48,64ZM64,32a8,8,0,0,1,8-8H184a8,8,0,0,1,0,16H72A8,8,0,0,1,64,32Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M208,92H48a12,12,0,0,0-12,12v96a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V104A12,12,0,0,0,208,92Zm4,108a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V104a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4ZM52,64a4,4,0,0,1,4-4H200a4,4,0,0,1,0,8H56A4,4,0,0,1,52,64ZM68,32a4,4,0,0,1,4-4H184a4,4,0,0,1,0,8H
172A4,4,0,0,1,68,32Z"}))]]),tS=b.forwardRef((e,t)=>b.createElement(tk.default,{ref:t,...e,weights:tC}));tS.displayName="CardsThreeIcon";var tP=e.i(973730),tD=e.i(225188),tL=e.i(595354),tR=e.i(631256);let tM=()=>(0,s.jsx)("div",{className:" p-5",children:(0,s.jsx)(tE,{data:tI})}),tE=e=>{let t=(0,M.usePathname)(),{setRouteLoader:r,retailerId:l,isDefaultHomePage:o,setIsDefaultHomePage:i}=(0,a.useGlobalStore)(),n=(0,M.useRouter)();return e?.data?.map((a,c)=>a.subMenu?.length>0?(0,s.jsx)(tF,{item:a,count:e.count,handleClose:e?.handleClose},c):(0,s.jsxs)(p.default,{href:a.href||"/",className:" flex items-center gap-3 py-5 border-b border-b-gray-100",onClick:()=>{var s;e?.handleClose?.(),(s=a?.href||"/")==t||(r(!0),n.push(s)),(0,u.handleDefaultHomePage)(l,o,i)},children:[(0,s.jsxs)("span",{className:" text-lg text-secondary_text",children:[" ",a.icon]}),(0,s.jsx)("span",{className:" text-base font-medium text-secondary_text",children:a.content?a.content:a.title})]},c))},tF=({item:e,count:t,handleClose:a})=>{t=t||1;let[r,l]=b.default.useState(!1);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{onClick:()=>l(!r),className:`${1===t?" text-base font-medium text-secondary_text":"text-base font-medium text-secondary_text"} ${r?" bg-gray-50 mb-3 rounded-sm":""} flex font-medium py-5 border-b border-b-gray-100 items-center justify-between cursor-pointer`,children:[(0,s.jsxs)("div",{className:" flex items-center gap-3 ",children:[(0,s.jsx)("span",{className:" text-lg text-secondary_text",children:e.icon}),(0,s.jsx)("span",{className:" text-base font-medium text-secondary_text",children:e.title})]}),(0,s.jsx)(ef.CaretRight,{size:24,className:` hover:cursor-pointer  ${r?"rotate-90 ":""}`})]}),(0,s.jsx)("div",{className:`${r?"block ":"hidden "} pl-1`,children:(0,s.jsx)(tE,{data:e.subMenu,count:t,handleClose:a})})]})},tI=[{id:1,title:"Home",href:"/",icon:(0,s.jsx)(tP.House,{}),subMenu:[]},{id:2,title:"Specials",href:"/specials",icon:(0,s.jsx)(ty.Stack,{weight:"fill"}),subMenu:[{id:"2a",content:(0,s.jsx)(()=>(0,s.jsxs)("div",{className:"",children:[[1,2,3,4,5].map(e=>(0,s.jsx)("p",{className:" text-base text-primary_text mb-3",children:"2/$80 Cured/Live Resin 5g"},e)),(0,s.jsxs)("div",{className:" flex items-center gap-3 justify-center",children:[(0,s.jsxs)(p.default,{className:" text-sm text-primary",href:"/",children:["All Special"," "]}),(0,s.jsx)(eJ.ArrowUpRight,{})]})]}),{})}]},{id:3,title:"Shop",href:(0,ep.withStore)(),icon:(0,s.jsx)(eU.Handbag,{}),subMenu:[{id:"3a",title:"Weekly Deals",href:"/services/marketing",icon:(0,s.jsx)(tR.Tag,{}),subMenu:[{id:"3a1",content:(0,s.jsx)(e4,{})}]},{id:"3b",title:"Shop Deals",href:"/services/marketing",icon:(0,s.jsx)(tL.Star,{}),subMenu:[{id:"3a1",content:(0,s.jsx)(e3,{})}]},{id:"3c",title:"Daily Deals",href:"/services/marketing",icon:(0,s.jsx)(tL.Star,{}),subMenu:[{id:"3a1",content:(0,s.jsx)(e1,{})}]},{id:"3d",title:"Effects",href:"/services/marketing",icon:(0,s.jsx)(tL.Star,{}),subMenu:[{id:"3a1",content:(0,s.jsx)(e2,{})}]},{id:"3e",title:"Shop All Product",href:"/services/marketing",icon:(0,s.jsx)(tL.Star,{}),subMenu:[]},{id:"3f",title:"Shop All Deals",href:"/services/marketing",icon:(0,s.jsx)(tL.Star,{}),subMenu:[]}]},{id:4,title:"Brands",href:"/",icon:(0,s.jsx)(tN.GridFour,{weight:"fill"}),subMenu:[{id:"4a",content:(0,s.jsx)(eQ,{})}]},{id:5,title:"Blogs",href:"/blogs",icon:(0,s.jsx)(tS,{weight:"fill"}),subMenu:[]},{id:6,title:"Contact Us",href:"/ contact",icon:(0,s.jsx)(tD.Phone,{}),subMenu:[]}],tA=e=>{let{open:t,setOpen:a}=e,[r,l]=b.default.useState("Categories");return(0,s.jsxs)(tw.default,{open:t,handleClose:()=>a(!1),anchor:"left",style:{width:"87%"},isMobileMenu:!0,children:[(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(tH,{title:"Categories",active:r,setActive:l}),(0,s.jsx)(tH,{title:"Menu",active:r,setActive:l})]}),"Categories"===r&&(0,s.jsx)("div",{children:[...Array(8)].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center py-3 border-b",children:[(0,s.jsx)("div",{className:"p-3 mx-1 rounded-full bg-gray-200"}),(0,s.jsx)("span",{className:"font-medium",children:"Flower"})]},"mobile-menu"+t))}),"Menu"===r&&(0,s.jsx)(tM,{})]})},tH=({title:e,active:t,setActive:a})=>(0,s.jsx)("button",{className:`w-full border-primary py-3 bg-white duration-500 group text-lg font-semibold tracking-wider ${t===e?"!bg-primary text-white":" bg-white text-primary_text"}`,onClick:()=>a(e),children:e});var tT=e.i(437902);let tz=({children:e,slidesPerView:t=4,fadeColor:a})=>
1{let r=a??"var(--fill-header-bar-bacground-color)",[l,o]=(0,b.useState)(!0),[i,c]=(0,b.useState)(!1),d=e=>{o(e.isBeginning),c(e.isEnd)};return(0,s.jsxs)("div",{className:"jsx-b2ec39d5e2991512 relative h-[35px] w-full center-header-menu-slider-items overflow-hidden",children:[(0,s.jsx)(tT.default,{id:"b2ec39d5e2991512",children:".header-swiper-fade .swiper-slide:last-child{margin-right:0!important}"}),(0,s.jsx)(n.Swiper,{className:"header-swiper-fade",slidesPerView:t,spaceBetween:10,allowTouchMove:!0,resistance:!0,resistanceRatio:0,onSwiper:d,onSlideChange:d,onProgress:d,onReachBeginning:d,onReachEnd:d,onFromEdge:d,children:e}),(0,s.jsx)("div",{style:{background:`linear-gradient(to right, ${r}, transparent)`},className:`jsx-b2ec39d5e2991512 pointer-events-none absolute left-0 top-0 h-full w-10 z-10 transition-opacity duration-200 ${l?"opacity-0":"opacity-100"}`}),(0,s.jsx)("div",{style:{background:`linear-gradient(to left, ${r}, transparent)`},className:`jsx-b2ec39d5e2991512 pointer-events-none absolute right-0 top-0 h-full w-10 z-10 transition-opacity duration-200 ${i?"opacity-0":"opacity-100"}`})]})};var tO=e.i(688442);let t_=()=>(0,s.jsxs)("div",{className:"md:hidden shadow min-h-[118px] h-fit",children:[(0,s.jsxs)("div",{className:"flex items-center h-[80px] px-4 bg-white justify-between border-b border-gray-100",children:[(0,s.jsx)("div",{className:"header-font-color",children:(0,s.jsx)(tO.Skeleton,{className:"h-7 w-7 rounded"})}),(0,s.jsx)("div",{className:"flex-1 flex justify-center",children:(0,s.jsx)(tO.Skeleton,{className:"h-[40px] w-[120px] rounded"})}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"h-[36px] w-[36px] border border-gray-200 rounded-full flex items-center justify-center",children:(0,s.jsx)(th.MagnifyingGlass,{size:16,className:"header-font-color"})}),(0,s.jsx)("div",{className:"h-[36px] w-[36px] border border-gray-200 rounded-full flex items-center justify-center",children:(0,s.jsx)(Z.MapPin,{size:16,className:"header-font-color"})}),(0,s.jsx)("div",{className:"h-[36px] w-[36px] border border-gray-200 rounded-full flex items-center justify-center",children:(0,s.jsx)(eW.Heart,{size:16,className:"header-font-color"})}),(0,s.jsx)("div",{className:"h-[36px] w-[36px] border border-gray-200 rounded-full flex items-center justify-center",children:(0,s.jsx)(eV.Bell,{size:16,className:"header-font-color"})})]})]}),(0,s.jsxs)("div",{className:"flex items-center h-[40px] bg-white justify-center space-x-8",children:[(0,s.jsx)(tO.Skeleton,{className:"h-[16px] w-[80px] rounded"}),(0,s.jsx)(tO.Skeleton,{className:"h-[16px] w-[60px] rounded"}),(0,s.jsx)(tO.Skeleton,{className:"h-[16px] w-[72px] rounded"}),(0,s.jsx)(tO.Skeleton,{className:"h-[16px] w-[64px] rounded"}),(0,s.jsx)(tO.Skeleton,{className:"h-[16px] w-[56px] rounded"})]})]}),tB=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),t$=({size:e=18,shellClassName:t,switcherClassName:r="header-font-color"})=>(0,a.useGlobalStore)(e=>e.commonCMSData?.generalSettingsComponentUiData?.enableDarkModeToggle)?(0,s.jsx)("div",{className:(0,ei.cn)("flex h-[35px] w-[35px] shrink-0 items-center justify-center rounded-full p-2 header-mobile-icon-border-color",t),children:(0,s.jsx)(tB,{size:e,className:r})}):null,tW=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedCurbsideAddress:f,selectedDeliveryAddress:g,line1:b,city:j,state:v,postalCode:w,widgetData:y,handleMenuRedirectURL:N,isNavLoading:k,provider:C,isStickyHeader:S,isStickyMenuWidget:P,setOpenPopupIndex:D})=>{let{setIsOpenPreferenceDrawerNew:L}=(0,eD.useModalStore)(),{providerSettingsCms:R,isProviderLoading:M,retailerDetails:E,retailerId:F,isDefaultHomePage:I,setIsDefaultHomePage:A}=(0,a.useGlobalStore)();return k?(0,s.jsx)(t_,{}):(0,s.jsx)(s.Fragment,{children:S||!P?(0,s.jsx)(tV,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedCurbsideAddress:f,selectedDeliveryAddress:g,line1:b,city:j,state:v,postalCode:w,widgetData:y,handleMenuRedirectURL:N,isNavLoading:k,provider:C,isStickyHeader:S,isStickyMenuWidget:P,retailerId:F,isDefaultHomePage:I,setIsDefaultHomePage:A,setIsOpenPreferenceDrawerNew:L,isProviderLoading:M,providerSettingsCms:R,retailerDetails:E,setOpenPopupIndex:D}):(0,s.jsx)(tU,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedCurbsideAddress:f,selectedDeliveryAddress:g,line1:b,city:j,state:v,postalCode:w,widgetData:y,handleMenuRedirectURL:N,isNavLoading:k,provider:C,isStickyHeader:S,isStickyMenuWidget:P,retailerId:F,isDefaultHomePage:I,setIsDefaultHomePage:A,setIsOpenPreferenceDrawerNew:L,isProviderLoading:M,providerSettingsCms:R,retailerDetails:E,setOpenPopupIndex:D})})},tV=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:c,wishlist:d,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedCurbsideAddress:j,selectedDeliveryAddress:v,line1:w,city:y,state:N,postalCode:k,widgetData:C,handleMenuRedirectURL:S,isNavLoading:P,provider:D,isStickyHeader:L,retailerId:R,isDefaultHomePage:M,setIsDefaultHomePage:E,setIsOpenPreferenceDrawerNew:F,isProviderLoading:I,providerSettingsCms:A,retailerDetails:H,setOpenPopupIndex:T})=>{let z=eG();return P?(0,s.jsx)(t_,{}):(0,s.jsx)("div",{className:(0,ei.cn)(`md:hidden shadow bg-transparent ${L?"sticky top-0 !z-[21]":""} ${(0,m.getHeaderChromeMinHeightClass)(D,"min-h-[187px]")}
1 h-fit`),children:(0,s.jsxs)("div",{className:" shadow header-background w-full min-h-[187px] h-fit overflow-x-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center header-background w-full justify-between p-3 !z-[9]",children:[(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r}),(0,s.jsxs)("div",{className:"flex gap-5",children:[D!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(l)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>o(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(R,M,E)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),z&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:i?"/your-list":"",onClick:()=>{i?r("/your-list"):c(!0),(0,u.handleDefaultHomePage)(R,M,E)},children:[i&&d?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:d?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{i?r("/notification"):c(!0),(0,u.handleDefaultHomePage)(R,M,E)},children:[i&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:f})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsxs)("div",{className:"bg-custom-header-bar-color",children:[D!==e_.PROVIDER_ECOMMERCE&&D!==e_.PROVIDER_SHOWCASE&&R&&(0,s.jsx)("div",{className:"h-[49px] w-full flex justify-start items-center px-3 mb-5",children:(0,s.jsxs)("div",{className:"flex justify-start items-center gap-2",onClick:()=>F(!0),children:[(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-600"}),(0,s.jsxs)("div",{className:"flex items-end gap-1 cursor-pointer",children:[(0,s.jsxs)("div",{className:"space-y-0.5",children:[(0,s.jsx)("p",{className:"text-xs font-medium header-font-color",children:"You’re Shopping at"}),g&&(b||v||j)&&!I?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===g||"CURBSIDE_PICKUP"===g?(0,s.jsx)("p",{className:"font-medium text-sm truncate custom-header-bar-text-color header-font-color",children:A?.treez?H?.address:(0,u.formatPickupAddress)(w,y,N,k)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===g?(0,s.jsx)("p",{className:"font-medium text-sm custom-header-bar-text-color header-font-color",children:v}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})})]}),(0,s.jsx)(eF.CaretDown,{size:18,className:"custom-header-bar-text-color header-font-color"})]})]})}),D!==e_.PROVIDER_ECOMMERCE&&D!==e_.PROVIDER_SHOWCASE&&!R&&!M&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:E})}),(0,s.jsx)("div",{className:"bg-custom-header-bar-color",children:(0,s.jsx)("div",{className:"h-[35px] w-full center-header-menu-slider-items",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:C?.links?.length>0?C?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>T(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{S(a),(0,u.handleDefaultHomePage)(R,M,E)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})})]})]})})},tU=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:h,toggleRecommendedBar:x,orderType:f,selectedPickupAddress:g,selectedCurbsideAddress:b,selectedDeliveryAddress:j,line1:v,city:w,state:y,postalCode:N,widgetData:k,handleMenuRedirectURL:C,isNavLoading:S,provider:P,isStickyHeader:D,isStickyMenuWidget:L,retailerId:R,isDefaultHomePage:M,setIsDefaultHomePage:E,setIsOpenPreferenceDrawerNew:F,isProviderLoading:I,providerSettingsCms:A,retailerDetails:H,setOpenPopupIndex:T})=>{let z=eG();return S?(0,s.jsx)(t_,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center header-background w-full justify-between p-3 !z-[9] md:hidden",children:[(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r}),(0,s.jsxs)("div",{className:"flex gap-5",children:[P!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(l)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>o(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(R,M,E)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),z&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:i?"/your-list":"",onClick:()=>{i?r("/your-list"):c(!0),(0,u.handleDefaultHomePage)(R,M,E)},children:[i&&d?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:d?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{i?r("/notification"):c(!0),(0,u.handleDefaultHomePage)(R,M,E)},children:[i&&(m?.data?.unseenCount>0||h)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+m?.data?.unseenCount+ +h}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:x})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsxs)("div",{className:"bg-custom-header-bar-color md:hidden",children:[P!==e_.PROVIDER_ECOMMERCE&&P!==e_.PROVIDER_SHOWCASE&&R&&(0,s.jsx)("div",{className:"h-[49px] w-full flex justify-start items-center px-3",children:(0,s.jsxs)("div",{className:"flex justify-start items-center gap-2",onClick:()=>F(!0),children:[(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-600"}),(0,s.jsxs)("div",{className:"flex items-end gap-1 cursor-pointer",children:[(0,s.jsxs)("div",{className:"space-y-0.5",children:[(0,s.jsx)("p",{className:"text-xs font-medium custom-header-bar-text-color",children:"You’re Shopping at"}),f&&(g||j||b)&&!I?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===f||"CURBSIDE_PICKUP"===f?(0,s.jsx)("p",{className:"font-medium text-sm truncate custom-header-bar-text-color custom-header-bar-text-color",children:A?.treez?H?.address:(0,u.formatPickupAddress)(v,w,y,N)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===f?(0,s.jsx)("p",{className:"font-medium text-sm custom-header-bar-text-color header-font-color",children:j}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})})]}),(0,s.jsx)(eF.CaretDown,{size:18,className:"custom-header-bar-text-color header-font-color"})]})]})}),P!==e_.PROVIDER_ECOMMERCE&&P!==e_.PROVIDER_SHOWCASE&&!R&&!M&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:E})})]}),(0,s.jsx)("div",{className:"sticky top-0 !z-[21] bg-custom-header-bar-color md:hidden",children:(0,s.jsx)("div",{className:"bg-custom-header-bar-color flex items-center",children:(0,s.jsx)("div",{className:"h-[35px] w-full grid grid-cols-1 items-center center-header-menu-slider-items",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:k?.links?.length>0?k?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>T(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{C(a),(0,u.handleDefaultHomePage)(R,M,E)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})})})]})},tG=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedCurbsideAddress:f,selectedDeliveryAddress:g,line1:b,city:j,state:v,postalCode:w,widgetData:y,handleMenuRedirectURL:N,isNavLoading:k,provider:C,isStickyHeader:S,headerFooterSettingsCms:P,isStickyMenuWidget:D,setOpenPopupIndex:L})=>{let{setIsOpenPreferenceDrawerNew:R}=(0,eD.useModalStore)(),{providerSettingsCms:M,isProviderLoading:E,retailerDetails:F,retailerId:I,isDefaultHomePage:A,setIsDefaultHomePage:H}=(0,a.useGlobalStore)();return k?(0,s.jsx)(t_,{}):(0,s.jsx)(s.Fragment,{children:S||!D?(0,s.jsx)(tK,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedCurbsideAddress:f,selectedDeliveryAddress:g,line1:b,city:j,state:v,postalCode:w,widgetData:y,handleMenuRedirectURL:N,isNavLoading:k,provider:C,isStickyHeader:S,headerFooterSettingsCms:P,retailerId:I,isDefaultHomePage:A,setIsDefaultHomePage:H,setIsOpenPreferenceDrawerNew:R,isProviderLoading:E,providerSettingsCms:M,retailerDetails:F,isStickyMenuWidget:D,setOpenPopupIndex:L}):(0,s.jsx)(tY,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedCurbsideAddress:f,selectedDeliveryAddress:g,line1:b,city:j,state:v,postalCode:w,widgetData:y,handleMenuRedirectURL:N,isNavLoading:k,provider:C,isStickyHeader:S,headerFooterSettingsCms:P,retailerId:I,isDefaultHomePage:A,setIsDefaultHomePage:H,setIsOpenPreferenceDrawerNew:R,isProviderLoading:E,providerSettingsCms:M,retailerDetails:F,isStickyMenuWidget:D,setOpenPopupIndex:L})})},tK=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:c,wishlist:d,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedCurbsideAddress:j,selectedDeliveryAddress:v,line1:w,city:y,state:N,postalCode:k,widgetData:C,handleMenuRedirectURL:S,isNavLoading:P,provider:D,isStickyHeader:L,headerFooterSettingsCms:R,retailerId:M,isDefaultHomePage:E,setIsDefaultHomePage:F,setIsOpenPreferenceDrawerNew:I,isProviderLoading:A,providerSettingsCms:H,retailerDetails:T,isStickyMenuWidget:z,setOpenPopupIndex:O})=>{let _=eG();return(0,s.jsx)("div",{className:`md:hidden shadow bg-transparent ${L?"sticky top-0 !z-[21]":""} ${R?.headerFooterSettings?.isHeaderFour?"min-h-[124px]":R?.headerFooterSettings?.isHeaderSix?(0,m.getHeaderChromeMinHeightClass)(D,"min-h-[180px]"):R?.headerFooterSettings?.isHeaderSeven?(0,m.getHeaderChromeMinHeightClass)(D,"min-h-[165px]"):(0,m.getHeaderChromeMinHeightClass)(D,"min-h-0")} h-fit`,children:(0,s.jsxs)("div",{className:"flex flex-col shadow header-background h-fit",children:[(0,s.jsxs)("div",{className:"flex flex-shrink-0 items-center w-full min-h-[52px] justify-between p-3 !z-[9]",children:[!(0,m.isProviderIFrame)(D)&&(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>i?r("/notification"):c(!0),children:[i&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:f})]}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,className:(0,m.isProviderIFrame)(D)?"mx-auto":"ml-[57px]"}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[!(0,m.isProviderIFrame)(D)&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(l)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>o(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(M,E,F)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),_&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:i?"/your-list":"",onClick:()=>{i?r("/your-list"):c(!0),(0,u.handleDefaultHomePage)(M,E,F)},children:[i&&d?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:d?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsx)(t$,{})]})]}),(0,s.jsxs)("div",{className:"flex flex-shrink-0 flex-col bg-custom-header-bar-color custom-header-bar-text-color",children:[!(0,m.isEcommerceOrPortfolioProvider)(D)&&M&&(0,s.jsx)("div",{className:"min-h-[49px] w-full flex justify-start items-center px-3 py-2.5",children:(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 justify-start items-center gap-2",onClick:()=>I(!0),children:[(0,s.jsx)(Z.MapPin,{size:20,className:"flex-shrink-0 text-red-700"}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-end gap-1 cursor-pointer",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,s.jsx)("p",{className:"text-xs font-medium",children:"You’re Shopping at"}),g&&(b||v||j)&&!A?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===g||"CURBSIDE_PICKUP"===g?(0,s.jsx)("p",{className:"font-medium text-sm truncate custom-header-bar-text-color max-w-[calc(100vw-120px)]",children:H?.treez?T?.address:(0,u.formatPickupAddress)(w,y,N,k)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===g?(0,s.jsx)("p",{className:"font-medium text-sm truncate custom-header-bar-text-color max-w-[calc(100vw-120px)]",children:v}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"max-w-[200px]",children:(0,s.jsx)("div",{className:"h-[20px] w-full max-w-[200px] bg-slate-200 animate-pulse rounded"})})]}),(0,s.jsx)(eF.CaretDown,{size:18,className:"flex-shrink-0 custom-header-bar-text-color"})]})]})}),!(0,m.isEcommerceOrPortfolioProvider)(D)&&!M&&!E&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:F})}),(0,s.jsx)("div",{className:"h-[35px] w-full center-header-menu-slider-items",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:C?.links?.length>0?C?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>O(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{S(a),(0,u.handleDefaultHomePage)(M,E,F)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})]})]})})},tY=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:c,wishlist:d,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedCurbsideAddress:j,selectedDeliveryAddress:v,line1:w,city:y,state:N,postalCode:k,widgetData:C,handleMenuRedirectURL:S,isNavLoading:P,provider:D,isStickyHeader:L,headerFooterSettingsCms:R,retailerId:M,isDefaultHomePage:E,setIsDefaultHomePage:F,setIsOpenPreferenceDrawerNew:I,isProviderLoading:A,providerSettingsCms:H,retailerDetails:T,isStickyMenuWidget:z,setOpenPopupIndex:O})=>{let _=eG();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center w-full justify-between p-3 !z-[9] header-background md:hidden",children:[(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>i?r("/notification"):c(!0),children:[i&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:f})]}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,className:"ml-[57px]"}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[!(0,m.isProviderIFrame)(D)&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(l)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>o(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(M,E,F)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),_&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:i?"/your-list":"",onClick:()=>{i?r("/your-list"):c(!0),(0,u.handleDefaultHomePage)(M,E,F)},children:[i&&d?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:d?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsx)(t$,{})]})]}),(0,s.jsxs)("div",{className:"bg-custom-header-bar-color custom-header-bar-text-color md:hidden",children:[!(0,m.isEcommerceOrPortfolioProvider)(D)&&M&&(0,s.jsx)("div",{className:"min-h-[49px] w-full flex justify-start items-center px-3 py-2.5",children:(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 justify-start items-center gap-2",onClick:()=>I(!0),children:[(0,s.jsx)(Z.MapPin,{size:20,className:"flex-shrink-0 text-red-700"}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-end gap-1 cursor-pointer",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,s.jsx)("p",{className:"text-xs font-medium",children:"You’re Shopping at"}),g&&(b||v||j)&&!A?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===g||"CURBSIDE_PICKUP"===g?(0,s.jsx)("p",{className:"font-medium text-sm truncate custom-header-bar-text-color max-w-[calc(100vw-120px)]",children:H?.treez?T?.address:(0,u.formatPickupAddress)(w,y,N,k)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===g?(0,s.jsx)("p",{className:"font-medium text-sm truncate custom-header-bar-text-color max-w-[calc(100vw-120px)]",children:v}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"max-w-[200px]",children:(0,s.jsx)("div",{className:"h-[20px] w-full max-w-[200px] bg-slate-200 animate-pulse rounded"})})]}),(0,s.jsx)(eF.CaretDown,{size:18,className:"flex-shrink-0 custom-header-bar-text-color"})]})]})}),!(0,m.isEcommerceOrPortfolioProvider)(D)&&!M&&!E&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:F})})]}),(0,s.jsx)("div",{className:"bg-custom-header-bar-color custom-header-bar-text-color sticky top-0 !z-[21] md:hidden",children:(0,s.jsx)("div",{className:"h-[35px] w-full grid grid-cols-1 items-center center-header-menu-slider-items pr-4",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:C?.links?.length>0?C?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>O(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{S(a),(0,u.handleDefaultHomePage)(M,E,F)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})})]})},tZ=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,isNavLoading:k,provider:C,headerFooterSettingsCms:S,isStickyHeader:P,isStickyMenuWidget:D,setOpenPopupIndex:L})=>k?(0,s.jsx)(t_,{}):(0,s.jsx)(s.Fragment,{children:P||!D?(0,s.jsx)(tq,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,isNavLoading:k,provider:C,headerFooterSettingsCms:S,isStickyHeader:P,isStickyMenuWidget:D,setOpenPopupIndex:L}):(0,s.jsx)(tX,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,isNavLoading:k,provider:C,headerFooterSettingsCms:S,isStickyHeader:P,isStickyMenuWidget:D,setOpenPopupIndex:L})}),tq=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:c,setOpenSignPop:d,wishlist:h,unSeen:x,notificationCount:f,toggleRecommendedBar:g,orderType:b,selectedPickupAddress:j,selectedCurbsideAddress:v,selectedDeliveryAddress:w,line1:y,city:N,state:k,postalCode:C,widgetData:S,handleMenuRedirectURL:P,setSidebar:D,isNavLoading:L,provider:R,headerFooterSettingsCms:M,isStickyHeader:E,isStickyMenuWidget:F,setOpenPopupIndex:I})=>{let{setIsOpenPreferenceDrawerNew:A}=(0,eD.useModalStore)(),{providerSettingsCms:H,isProviderLoading:T,retailerDetails:z,retailerId:O,isDefaultHomePage:_,setIsDefaultHomePage:B}=(0,a.useGlobalStore)(),$=eG();return(0,s.jsx)("div",{className:`md:hidden shadow bg-transparent ${E?"sticky top-0 !z-[21]":""} ${M?.headerFooterSettings?.isHeaderFour?"min-h-[124px]":M?.headerFooterSettings?.isHeaderSix?(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[180px]"):M?.headerFooterSettings?.isHeaderSeven?(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[165px]"):(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[187px]")} h-fit`,children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("div",{className:`shadow bg-white ${(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[187px]")} h-fit`,children:[(0,s.jsxs)("div",{className:"flex items-center header-background w-full justify-between p-3 !z-[9]",children:[(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>c?l("/notification"):d(!0),children:[c&&(x?.data?.unseenCount>0||f)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+x?.data?.unseenCount+ +f}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:g})]}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,className:"ml-[57px]"}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[R!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(o)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>i(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(O,_,B)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),$&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:c?"/your-list":"",onClick:()=>{c?l("/your-list"):d(!0),(0,u.handleDefaultHomePage)(O,_,B)},children:[c&&h?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:h?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsx)(t$,{})]})]}),(0,s.jsxs)("div",{className:"header-background",children:[R!==e_.PROVIDER_ECOMMERCE&&R!==e_.PROVIDER_SHOWCASE&&O&&(0,s.jsxs)("div",{className:"h-[49px] w-full flex flex-col gap-1 px-3 mb-2 py-1",children:[(0,s.jsx)("p",{className:"text-xs font-medium mx-auto header-font-color",children:"You’re Shopping at"}),(0,s.jsxs)("div",{className:"flex justify-center items-center gap-2",onClick:()=>A(!0),children:[(0,s.jsx)("p",{children:(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-700"})}),b&&(j||w||v)&&!T?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===b||"CURBSIDE_PICKUP"===b?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color truncate",children:H?.treez?z?.address:(0,u.formatPickupAddress)(y,N,k,C)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===b?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color",children:w}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})}),(0,s.jsx)("p",{children:(0,s.jsx)(eF.CaretDown,{size:18,className:"header-font-color"})})]})]}),R!==e_.PROVIDER_ECOMMERCE&&R!==e_.PROVIDER_SHOWCASE&&!O&&!_&&(0,s.jsx)("div",{className:"flex items-center justify-center py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:B})}),(0,s.jsx)("div",{className:"relative bg-custom-header-bar-color flex items-center",children:(0,s.jsx)("div",{className:"h-[35px] w-full center-header-menu-slider-items",children:(0,s.jsxs)(tz,{slidesPerView:"auto",children:[S?.links?.length>0?S?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsxs)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:[r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>I(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{P(a),(0,u.handleDefaultHomePage)(O,_,B)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})}),0===t&&(0,s.jsx)("div",{className:"absolute bg-primary h-1.5 -bottom-2 left-0 right-0 rounded-full transition-all duration-300",style:{width:"100%"}})]},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t)),(0,s.jsx)("div",{className:"h-2 bg-gray-100"})]})})})]})]})})})},tX=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:c,setOpenSignPop:d,wishlist:m,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedCurbsideAddress:j,selectedDeliveryAddress:v,line1:w,city:y,state:N,postalCode:k,widgetData:C,handleMenuRedirectURL:S,setSidebar:P,isNavLoading:D,provider:L,headerFooterSettingsCms:R,isStickyHeader:M,isStickyMenuWidget:E,setOpenPopupIndex:F})=>{let{setIsOpenPreferenceDrawerNew:I}=(0,eD.useModalStore)(),{providerSettingsCms:A,isProviderLoading:H,retailerDetails:T,retailerId:z,isDefaultHomePage:O,setIsDefaultHomePage:_}=(0,a.useGlobalStore)(),B=eG();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"md:hidden flex items-center header-background w-full justify-between p-3 !z-[9]",children:[(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>c?l("/notification"):d(!0),children:[c&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:f})]}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,className:"ml-[57px]"}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[L!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(o)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>i(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(z,O,_)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),B&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:c?"/your-list":"",onClick:()=>{c?l("/your-list"):d(!0),(0,u.handleDefaultHomePage)(z,O,_)},children:[c&&m?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:m?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsx)(t$,{})]})]}),(0,s.jsxs)("div",{className:"md:hidden header-background",children:[L!==e_.PROVIDER_ECOMMERCE&&L!==e_.PROVIDER_SHOWCASE&&z&&(0,s.jsxs)("div",{className:"h-[49px] w-full flex flex-col gap-1 px-3 mb-2 py-1",children:[(0,s.jsx)("p",{className:"text-xs font-medium mx-auto header-font-color",children:"You’re Shopping at"}),(0,s.jsxs)("div",{className:"flex justify-center items-center gap-2",onClick:()=>I(!0),children:[(0,s.jsx)("p",{children:(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-700"})}),g&&(b||v||j)&&!H?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===g||"CURBSIDE_PICKUP"===g?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color",children:A?.treez?T?.address:(0,u.formatPickupAddress)(w,y,N,k)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===g?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color",children:v}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})}),(0,s.jsx)("p",{children:(0,s.jsx)(eF.CaretDown,{size:18,className:"header-font-color"})})]})]}),L!==e_.PROVIDER_ECOMMERCE&&L!==e_.PROVIDER_SHOWCASE&&!z&&!O&&(0,s.jsx)("div",{className:"flex items-center justify-center py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:_})})]}),(0,s.jsx)("div",{className:"md:hidden bg-custom-header-bar-color flex items-center sticky top-0 z-[9]",children:(0,s.jsx)("div",{className:"h-[35px] w-full center-header-menu-slider-items",children:(0,s.jsxs)(tz,{slidesPerView:"auto",children:[C?.links?.length>0?C?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>F(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{S(a),(0,u.handleDefaultHomePage)(z,O,_)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t)),(0,s.jsx)("div",{className:"h-2 bg-gray-100"})]})})})]})},tJ=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,openSearch:k,headerFooterSettingsCms:C,searchPageCms:S,isNavLoading:P,provider:D,isStickyHeader:L,isStickyMenuWidget:R,setOpenPopupIndex:M})=>P?(0,s.jsx)(t_,{}):(0,s.jsx)(s.Fragment,{children:L||!R?(0,s.jsx)(tQ,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,openSearch:k,headerFooterSettingsCms:C,searchPageCms:S,isNavLoading:P,provider:D,isStickyHeader:L,isStickyMenuWidget:R,setOpenPopupIndex:M}):(0,s.jsx)(t0,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,openSearch:k,headerFooterSettingsCms:C,searchPageCms:S,isNavLoading:P,provider:D,isStickyHeader:L,isStickyMenuWidget:R,setOpenPopupIndex:M})}),tQ=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:c,setOpenSignPop:d,wishlist:h,unSeen:x,notificationCount:f,toggleRecommendedBar:g,orderType:b,selectedPickupAddress:j,selectedCurbsideAddress:v,selectedDeliveryAddress:w,line1:y,city:N,state:k,postalCode:C,widgetData:S,handleMenuRedirectURL:P,setSidebar:D,openSearch:L,headerFooterSettingsCms:R,searchPageCms:E,isNavLoading:F,provider:I,isStickyHeader:A,isStickyMenuWidget:H,setOpenPopupIndex:T})=>{let{setIsOpenPreferenceDrawerNew:z}=(0,eD.useModalStore)(),{retailerDetails:O,providerSettingsCms:_,isProviderLoading:B,retailerId:$,isDefaultHomePage:W,setIsDefaultHomePage:V}=(0,a.useGlobalStore)(),U=eG(),G=(0,M.useRouter)();return(0,s.jsx)("div",{className:`md:hidden shadow bg-transparent ${A?"sticky top-0 !z-[21]":""} ${R?.headerFooterSettings?.isHeaderFour?"min-h-[124px]":R?.headerFooterSettings?.isHeaderSix?(0,m.getHeaderChromeMinHeightClass)(I,"min-h-[180px]"):R?.headerFooterSettings?.isHeaderSeven?(0,m.getHeaderChromeMinHeightClass)(I,"min-h-[165px]"):(0,m.getHeaderChromeMinHeightClass)(I,"min-h-[187px]")} h-fit`,children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("div",{className:`shadow ${(0,m.getHeaderChromeMinHeightClass)(I,"min-h-[179px]")} h-fit header-background`,children:[(0,s.jsxs)("div",{className:"flex items-center w-full justify-between gap-3 p-3 !z-[9] ",children:[(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l}),(0,s.jsx)("div",{className:"flex items-center header-search-background-color-no-round !rounded-full px-2 py-1.5 gap-2",children:I!==e_.PROVIDER_IFRAME&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(th.MagnifyingGlass,{size:24,className:"text-gray-600"}),(0,s.jsx)("input",{type:"text",placeholder:"Search",onClick:()=>{(0,tu.usesLiveSearchOverlay)(o)?i(!0):G.push("/search")},readOnly:!0,className:"w-full focus:outline-none focus:ring-0 focus:border-transparent placeholder-gray-900 placeholder:text-sm bg-transparent"}),(0,tu.usesLiveSearchOverlay)(o)?(0,s.jsx)(tm.default,{setOpenSearch:i,openSearch:L,searchPageCms:E}):(0,s.jsx)(s.Fragment,{})]})}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[U&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",children:(0,s.jsxs)(p.default,{href:c?"/your-list":"",onClick:()=>{c?l("/your-list"):d(!0),(0,u.handleDefaultHomePage)($,W,V)},children:[c&&h?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:h?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"text-black-600"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",onClick:()=>{c?l("/notification"):d(!0),(0,u.handleDefaultHomePage)($,W,V)},children:[c&&(x?.data?.unseenCount>0||f)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+x?.data?.unseenCount+ +f}):null,(0,s.jsx)(eV.Bell,{onClick:g,className:"text-black-600"})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsx)("div",{className:"h-[35px] w-full mb-2 center-header-menu-slider-items",children:(0,s.jsx)(tz,{slidesPerView:"auto",fadeColor:"var(--fill-header-background-color)",children:S?.links?.length>0?S?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>T(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{P(a),(0,u.handleDefaultHomePage)($,W,V)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})}),(0,s.jsxs)("div",{className:"bg-custom-header-bar-color",children:[I!==e_.PROVIDER_ECOMMERCE&&I!==e_.PROVIDER_SHOWCASE&&$&&(0,s.jsx)("div",{className:"h-[49px] w-full flex justify-start items-center px-2",children:(0,s.jsxs)("div",{className:"flex justify-center items-center gap-2 overflow-hidden min-w-0",onClick:()=>z(!0),children:[(0,s.jsx)("p",{className:"shrink-0",children:(0,s.jsx)(Z.MapPin,{size:16,className:"text-red-700"})}),(0,s.jsxs)("p",{className:"text-sm custom-header-bar-text-color whitespace-nowrap shrink-0",children:["DELIVERY"===b?"Delivery to:":(0,s.jsx)(s.Fragment,{}),"PICKUP"===b?"Pickup from:":(0,s.jsx)(s.Fragment,{}),"CURBSIDE_PICKUP"===b?"Curbside Pickup from":(0,s.jsx)(s.Fragment,{})]}),b&&(j||w||v)&&!B?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===b||"CURBSIDE_PICKUP"===b?(0,s.jsx)("p",{className:"font-medium text-sm custom-header-bar-text-color truncate min-w-0",children:_?.treez?O?.address:(0,u.formatPickupAddress)(y,N,k,C)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===b?(0,s.jsx)("p",{className:"font-medium text-sm custom-header-bar-text-color truncate min-w-0",children:w}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"min-w-0",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})}),(0,s.jsx)("p",{className:"shrink-0",children:(0,s.jsx)(eF.CaretDown,{size:14,className:"custom-header-bar-text-color"})})]})}),I!==e_.PROVIDER_ECOMMERCE&&I!==e_.PROVIDER_SHOWCASE&&!$&&!W&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:V})})]})]})})})},t0=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:c,setOpenSignPop:d,wishlist:m,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedCurbsideAddress:j,selectedDeliveryAddress:v,line1:w,city:y,state:N,postalCode:k,widgetData:C,handleMenuRedirectURL:S,setSidebar:P,openSearch:D,headerFooterSettingsCms:L,searchPageCms:R,isNavLoading:E,provider:F,isStickyHeader:I,isStickyMenuWidget:A,setOpenPopupIndex:H})=>{let{setIsOpenPreferenceDrawerNew:T}=(0,eD.useModalStore)(),{retailerDetails:z,providerSettingsCms:O,isProviderLoading:_,retailerId:B,isDefaultHomePage:$,setIsDefaultHomePage:W}=(0,a.useGlobalStore)(),V=(0,M.useRouter)(),U=eG();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"md:hidden flex items-center w-full justify-between gap-3 p-3 !z-[9] header-background ",children:[(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l}),(0,s.jsx)("div",{className:"flex items-center header-search-background-color-no-round !rounded-full px-2 py-1.5 gap-2",children:F!==e_.PROVIDER_IFRAME&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(th.MagnifyingGlass,{size:24,className:"text-gray-600"}),(0,s.jsx)("input",{type:"text",placeholder:"Search",onClick:()=>{(0,tu.usesLiveSearchOverlay)(o)?i(!0):V.push("/search")},readOnly:!0,className:"w-full focus:outline-none focus:ring-0 focus:border-transparent placeholder-gray-900 placeholder:text-sm bg-transparent"}),(0,tu.usesLiveSearchOverlay)(o)?(0,s.jsx)(tm.default,{setOpenSearch:i,openSearch:D,searchPageCms:R}):(0,s.jsx)(s.Fragment,{})]})}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[U&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",children:(0,s.jsxs)(p.default,{href:c?"/your-list":"",onClick:()=>{c?l("/your-list"):d(!0),(0,u.handleDefaultHomePage)(B,$,W)},children:[c&&m?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:m?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"text-black-600"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",onClick:()=>{c?l("/notification"):d(!0),(0,u.handleDefaultHomePage)(B,$,W)},children:[c&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{onClick:f,className:"text-black-600"})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsx)("div",{className:"md:hidden h-[35px] w-full mb-2 header-background sticky top-0 !z-[21] center-header-menu-slider-items",children:(0,s.jsx)(tz,{slidesPerView:"auto",fadeColor:"var(--fill-header-background-color)",children:C?.links?.length>0?C?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>H(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{S(a),(0,u.handleDefaultHomePage)(B,$,W)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})}),(0,s.jsxs)("div",{className:"md:hidden bg-custom-header-bar-color",children:[F!==e_.PROVIDER_ECOMMERCE&&F!==e_.PROVIDER_SHOWCASE&&B&&(0,s.jsx)("div",{className:"h-[49px] w-full flex justify-start items-center px-3 ",children:(0,s.jsxs)("div",{className:"flex justify-center items-center gap-2 overflow-hidden min-w-0",onClick:()=>T(!0),children:[(0,s.jsx)("p",{className:"shrink-0",children:(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-700"})}),(0,s.jsxs)("p",{className:"font-bold text-sm custom-header-bar-text-color whitespace-nowrap shrink-0",children:["DELIVERY"===g?"Del
1ivery to:":(0,s.jsx)(s.Fragment,{}),"PICKUP"===g?"Pickup from:":(0,s.jsx)(s.Fragment,{}),"CURBSIDE_PICKUP"===g?"Curbside Pickup from":(0,s.jsx)(s.Fragment,{})]}),g&&(b||v||j)&&!_?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===g||"CURBSIDE_PICKUP"===g?(0,s.jsx)("p",{className:"font-medium text-sm custom-header-bar-text-color truncate min-w-0",children:O?.treez?z?.address:(0,u.formatPickupAddress)(w,y,N,k)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===g?(0,s.jsx)("p",{className:"font-medium text-sm custom-header-bar-text-color truncate min-w-0",children:v}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"min-w-0",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})}),(0,s.jsx)("p",{className:"shrink-0",children:(0,s.jsx)(eF.CaretDown,{size:18,className:"custom-header-bar-text-color"})})]})}),F!==e_.PROVIDER_ECOMMERCE&&F!==e_.PROVIDER_SHOWCASE&&!B&&!$&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:W})})]})]})},t1=({siteLogo:e,handleRedirectToPath:t,searchMenuType:a,setOpenSearch:r,token:l,setOpenSignPop:o,wishlist:i,unSeen:n,notificationCount:c,toggleRecommendedBar:d,orderType:m,selectedPickupAddress:u,selectedCurbsideAddress:h,selectedDeliveryAddress:x,line1:p,city:f,state:g,postalCode:b,widgetData:j,handleMenuRedirectURL:v,setSidebar:w,openSearch:y,searchPageCms:N,isNavLoading:k,provider:C,isStickyHeader:S,headerFooterSettingsCms:P,isStickyMenuWidget:D,setOpenPopupIndex:L})=>k?(0,s.jsx)(t_,{}):(0,s.jsx)(s.Fragment,{children:S||!D?(0,s.jsx)(t2,{siteLogo:e,handleRedirectToPath:t,searchMenuType:a,setOpenSearch:r,token:l,setOpenSignPop:o,wishlist:i,unSeen:n,notificationCount:c,toggleRecommendedBar:d,orderType:m,selectedPickupAddress:u,selectedCurbsideAddress:h,selectedDeliveryAddress:x,line1:p,city:f,state:g,postalCode:b,widgetData:j,handleMenuRedirectURL:v,setSidebar:w,openSearch:y,searchPageCms:N,isNavLoading:k,provider:C,isStickyHeader:S,headerFooterSettingsCms:P,isStickyMenuWidget:D,setOpenPopupIndex:L}):(0,s.jsx)(t3,{siteLogo:e,handleRedirectToPath:t,searchMenuType:a,setOpenSearch:r,token:l,setOpenSignPop:o,wishlist:i,unSeen:n,notificationCount:c,toggleRecommendedBar:d,orderType:m,selectedPickupAddress:u,selectedCurbsideAddress:h,selectedDeliveryAddress:x,line1:p,city:f,state:g,postalCode:b,widgetData:j,handleMenuRedirectURL:v,setSidebar:w,openSearch:y,searchPageCms:N,isNavLoading:k,provider:C,isStickyHeader:S,headerFooterSettingsCms:P,isStickyMenuWidget:D,setOpenPopupIndex:L})}),t2=({siteLogo:e,handleRedirectToPath:t,searchMenuType:r,setOpenSearch:l,token:o,setOpenSignPop:i,wishlist:c,unSeen:d,notificationCount:h,toggleRecommendedBar:x,orderType:f,selectedPickupAddress:g,selectedCurbsideAddress:b,selectedDeliveryAddress:j,line1:v,city:w,state:y,postalCode:N,widgetData:k,handleMenuRedirectURL:C,setSidebar:S,openSearch:P,searchPageCms:D,isNavLoading:L,provider:R,isStickyHeader:E,headerFooterSettingsCms:F,isStickyMenuWidget:I,setOpenPopupIndex:A})=>{let{setIsOpenPreferenceDrawerNew:H}=(0,eD.useModalStore)(),T=(0,M.useRouter)(),{retailerDetails:z,providerSettingsCms:O,isProviderLoading:_,retailerId:B,isDefaultHomePage:$,setIsDefaultHomePage:W}=(0,a.useGlobalStore)(),V=eG();return(0,s.jsx)("div",{className:`md:hidden shadow bg-transparent ${E?"sticky top-0 !z-[21]":""} ${F?.headerFooterSettings?.isHeaderFour?"min-h-[124px]":F?.headerFooterSettings?.isHeaderSix?(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[180px]"):F?.headerFooterSettings?.isHeaderSeven?(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[165px]"):(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[187px]")} h-fit`,children:(0,s.jsx)("div",{className:"w-full overflow-x-hidden",children:(0,s.jsxs)("div",{className:`shadow ${(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[165px]")} h-fit`,children:[(0,s.jsxs)("div",{className:"header-background ",children:[((0,m.providerWithSameFlow)(R)||(0,m.isProviderIFrame)(R))&&B&&(0,s.jsxs)("div",{className:"h-[49px] w-full flex flex-col gap-2 p-3 mb-3",children:[(0,s.jsxs)("p",{className:"text-xs font-semibold header-font-color",children:["DELIVERY"===f?"Delivery:":(0,s.jsx)(s.Fragment,{}),"PICKUP"===f?"Pickup:":(0,s.jsx)(s.Fragment,{}),"CURBSIDE_PICKUP"===f?"Curbside Pickup from":(0,s.jsx)(s.Fragment,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>H(!0),children:[(0,s.jsx)("p",{children:(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-700"})}),f&&(g||j||b)&&!_?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===f||"CURBSIDE_PICKUP"===f?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color truncate",children:O?.treez?z?.address:(0,u.formatPickupAddress)(v,w,y,N)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===f?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color",children:j}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})}),(0,s.jsx)("p",{children:(0,s.jsx)(eF.CaretDown,{size:18,className:"header-font-color"})})]})]}),R!==e_.PROVIDER_ECOMMERCE&&R!==e_.PROVIDER_SHOWCASE&&!B&&!$&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:W})}),(0,s.jsxs)("div",{className:"flex items-center gap-3 p-3",children:[R!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex items-center bg-white rounded-full px-2 py-1.5 gap-2 border flex-1",children:[(0,s.jsx)(th.MagnifyingGlass,{size:24,className:"text-gray-600"}),(0,s.jsx)("input",{type:"text",placeholder:"Search",onClick:()=>{(0,tu.usesLiveSearchOverlay)(r)?l(!0):T.push("/search")},readOnly:!0,className:"w-full focus:outline-none focus:ring-0 focus:border-transparent placeholder-gray-900 placeholder:text-sm"}),(0,tu.usesLiveSearchOverlay)(r)?(0,s.jsx)(tm.default,{setOpenSearch:l,openSearch:P,searchPageCms:D}):(0,s.jsx)(s.Fragment,{})]})}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[V&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",children:(0,s.jsxs)(p.default,{href:o?"/your-list":"",onClick:()=>{o?t("/your-list"):i(!0),(0,u.handleDefaultHomePage)(B,$,W)},children:[o&&c?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:c?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"text-black-600"})]})}),R!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",onClick:()=>{o?t("/notification"):i(!0),(0,u.handleDefaultHomePage)(B,$,W)},children:[o&&(d?.data?.unseenCount>0||h)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+d?.data?.unseenCount+ +h}):null,(0,s.jsx)(eV.Bell,{onClick:x,className:"text-black-600"})]}),(0,s.jsx)(t$,{})]})]})]}),(0,s.jsx)("div",{className:"bg-custom-header-bar-color custom-header-bar-text-color",children:(0,s.jsx)("div",{className:" w-full grid grid-cols-1 items-center",children:(0,s.jsx)("div",{className:"relative h-[40px] flex flex-col items-center justify-center center-header-menu-slider-items",children:(0,s.jsxs)(tz,{slidesPerView:"auto",children:[k?.links?.length>0?k?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsxs)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:[r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>A(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{C(a),(0,u.handleDefaultHomePage)(B,$,W)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})}),0===t&&(0,s.jsx)("div",{className:"absolute bg-primary h-1.5 -bottom-2 left-0 right-0 rounded-full transition-all duration-300",style:{width:"100%"}})]},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t)),(0,s.jsx)("div",{className:"h-2 bg-gray-100"})]})})})})]})})})},t3=({siteLogo:e,handleRedirectToPath:t,searchMenuType:r,setOpenSearch:l,token:o,setOpenSignPop:i,wishlist:c,unSeen:d,notificationCount:h,toggleRecommendedBar:x,orderType:f,selectedPickupAddress:g,selectedCurbsideAddress:b,selectedDeliveryAddress:j,line1:v,city:w,state:y,postalCode:N,widgetData:k,handleMenuRedirectURL:C,setSidebar:S,openSearch:P,searchPageCms:D,isNavLoading:L,provider:R,isStickyHeader:E,headerFooterSettingsCms:F,isStickyMenuWidget:I,setOpenPopupIndex:A})=>{let{setIsOpenPreferenceDrawerNew:H}=(0,eD.useModalStore)(),T=(0,M.useRouter)(),{retailerDetails:z,providerSettingsCms:O,isProviderLoading:_,retailerId:B,isDefaultHomePage:$,setIsDefaultHomePage:W}=(0,a.useGlobalStore)(),V=eG();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"header-background md:hidden",children:[((0,m.providerWithSameFlow)(R)||(0,m.isProviderIFrame)(R))&&B&&(0,s.jsxs)("div",{className:"h-[49px] w-full flex flex-col gap-2 p-3 mb-3",children:[(0,s.jsxs)("p",{className:"text-xs font-semibold header-font-color",children:["DELIVERY"===f?"Delivery:":(0,s.jsx)(s.Fragment,{}),"PICKUP"===f?"Pickup:":(0,s.jsx)(s.Fragment,{}),"CURBSIDE_PICKUP"===f?"Curbside Pickup from":(0,s.jsx)(s.Fragment,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>H(!0),children:[(0,s.jsx)("p",{children:(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-700"})}),f&&(g||j||b)&&!_?(0,s.jsxs)(s.Fragment,{children:["PICKUP"===f||"CURBSIDE_PICKUP"===f?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color truncate",children:O?.treez?z?.address:(0,u.formatPickupAddress)(v,w,y,N)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===f?(0,s.jsx)("p",{className:"font-medium text-sm  header-font-color",children:j}):(0,s.jsx)(s.Fragment,{})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})}),(0,s.jsx)("p",{children:(0,s.jsx)(eF.CaretDown,{size:18,className:"header-font-color"})})]})]}),R!==e_.PROVIDER_ECOMMERCE&&R!==e_.PROVIDER_SHOWCASE&&!B&&!$&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:W})}),(0,s.jsxs)("div",{className:"flex items-center gap-3 p-3",children:[R!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex items-center bg-white rounded-full px-2 py-1.5 gap-2 border flex-1",children:[(0,s.jsx)(th.MagnifyingGlass,{size:24,className:"text-gray-600"}),(0,s.jsx)("input",{type:"text",placeholder:"Search",onClick:()=>{(0,tu.usesLiveSearchOverlay)(r)?l(!0):T.push("/search")},readOnly:!0,className:"w-full focus:outline-none focus:ring-0 focus:border-transparent placeholder-gray-900 placeholder:text-sm"}),(0,tu.usesLiveSearchOverlay)(r)?(0,s.jsx)(tm.default,{setOpenSearch:l,openSearch:P,searchPageCms:D}):(0,s.jsx)(s.Fragment,{})]})}),(0,s.jsxs)("div",{className:"flex gap-5 ",children:[V&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",children:(0,s.jsxs)(p.default,{href:o?"/your-list":"",onClick:()=>{o?t("/your-list"):i(!0),(0,u.handleDefaultHomePage)(B,$,W)},children:[o&&c?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:c?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"text-black-600"})]})}),R!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 border rounded-full bg-white",onClick:()=>{o?t("/notification"):i(!0),(0,u.handleDefaultHomePage)(B,$,W)},children:[o&&(d?.data?.unseenCount>0||h)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+d?.data?.unseenCount+ +h}):null,(0,s.jsx)(eV.Bell,{onClick:x,className:"text-black-600"})]}),(0,s.jsx)(t$,{})]})]})]}),(0,s.jsx)("div",{className:"bg-custom-header-bar-color custom-header-bar-text-color sticky top-0 !z-[21] md:hidden",children:(0,s.jsx)("div",{className:" w-full grid grid-cols-1 items-center",children:(0,s.jsx)("div",{className:"relative h-[40px] flex flex-col items-center justify-center center-header-menu-slider-items",children:(0,s.jsxs)(tz,{slidesPerView:"auto",children:[k?.links?.length>0?k?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsxs)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:[r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>A(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{C(a),(0,u.handleDefaultHomePage)(B,$,W)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})}),0===t&&(0,s.jsx)("div",{className:"absolute bg-primary h-1.5 -bottom-2 left-0 right-0 rounded-full transition-all duration-300",style:{width:"100%"}})]},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t)),(0,s.jsx)("div",{className:"h-2 bg-gray-100"})]})})})})]})},t5=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,widgetData:g,handleMenuRedirectURL:b,setSidebar:j,isNavLoading:v,provider:w,isStickyHeader:y,headerFooterSettingsCms:N,isStickyMenuWidget:k,setOpenPopupIndex:C})=>v?(0,s.jsx)(t_,{}):(0,s.jsx)(s.Fragment,{children:y||!k?(0,s.jsx)(t4,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,widgetData:g,handleMenuRedirectURL:b,setSidebar:j,isNavLoading:v,provider:w,isStickyHeader:y,headerFooterSettingsCms:N,isStickyMenuWidget:k,setOpenPopupIndex:C}):(0,s.jsx)(t6,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:n,wishlist:c,unSeen:d,notificationCount:m,toggleRecommendedBar:u,orderType:h,selectedPickupAddress:x,selectedCurbsideAddress:p,selectedDeliveryAddress:f,widgetData:g,handleMenuRedirectURL:b,setSidebar:j,isNavLoading:v,provider:w,isStickyHeader:y,headerFooterSettingsCms:N,isStickyMenuWidget:k,setOpenPopupIndex:C})}),t4=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:c,setOpenSignPop:d,wishlist:h,unSeen:x,notificationCount:f,toggleRecommendedBar:g,orderType:b,selectedPickupAddress:j,selectedCurbsideAddress:v,selectedDeliveryAddress:w,widgetData:y,handleMenuRedirectURL:N,setSidebar:k,provider:C,isStickyHeader:S,headerFooterSettingsCms:P,setOpenPopupIndex:D})=>{let{setIsOpenPreferenceDrawerNew:L}=(0,eD.useModalStore)(),{menuType:R,retailerName:M,retailerId:E,isDefaultHomePage:F,setIsDefaultHomePage:I}=(0,a.useGlobalStore)(),A=eG();return(0,s.jsx)("div",{className:`md:hidden shadow bg-transparent ${S?"sticky top-0 !z-[21]":""} ${P?.headerFooterSettings?.isHeaderFour?"min-h-[124px]":P?.headerFooterSettings?.isHeaderSix?(0,m.isProviderDutchieOrDispense)(C)?"min-h-[180px]":(0,m.isProviderIFrame)(C)?"min-h-[1
118px]":"":P?.headerFooterSettings?.isHeaderSeven?(0,m.isProviderDutchieOrDispense)(C)?"min-h-[165px]":(0,m.isProviderIFrame)(C)?"min-h-[118px]":"":(0,m.isProviderDutchieOrDispense)(C)?"min-h-[187px]":(0,m.isProviderIFrame)(C)?"min-h-[118px]":""} h-fit`,children:(0,s.jsx)("div",{className:"w-full overflow-x-hidden",children:(0,s.jsxs)("div",{className:"shadow min-h-[118px] h-fit",children:[(0,s.jsxs)("div",{className:"flex items-center header-background  w-full justify-between p-3 !z-[9]",children:[(0,s.jsx)(tt.List,{onClick:()=>{k(!0)},size:24,className:"header-font-color"}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l}),(0,s.jsxs)("div",{className:"flex gap-5",children:[C!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(o)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>i(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(E,F,I)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{L(!0)},children:(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color"})}),A&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:c?"/your-list":"",onClick:()=>{c?l("/your-list"):d(!0),(0,u.handleDefaultHomePage)(E,F,I)},children:[c&&h?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:h?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{c?l("/notification"):d(!0),(0,u.handleDefaultHomePage)(E,F,I)},children:[c&&(x?.data?.unseenCount>0||f)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+x?.data?.unseenCount+ +f}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:g})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsx)("div",{className:"bg-custom-header-bar-color",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 items-center",children:[(0,s.jsx)("div",{className:"h-[35px] w-full center-header-menu-slider-items",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:y?.links?.length>0?y?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>D(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{N(a),(0,u.handleDefaultHomePage)(E,F,I)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})}),C!==e_.PROVIDER_ECOMMERCE&&C!==e_.PROVIDER_SHOWCASE&&E&&(0,s.jsx)("div",{className:"h-[49px] w-full flex justify-start items-center px-2",children:(0,s.jsxs)("div",{className:"flex justify-start items-center gap-2 min-w-0 flex-1",onClick:()=>{L(!0)},children:[(0,s.jsx)(Z.MapPin,{size:16,className:"text-red-700"}),(0,s.jsxs)("div",{className:"flex items-end gap-1 cursor-pointer min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"space-y-0.5 custom-header-bar-text-color min-w-0 
1w-full",children:[(0,s.jsx)("p",{className:"text-xs font-medium custom-header-bar-text-color truncate",children:`You're Shopping ${R} at ${M}`}),b&&(j||w||v)?(0,s.jsx)(s.Fragment,{children:"DELIVERY"===b?(0,s.jsx)("p",{className:"font-medium text-sm  custom-header-bar-text-color",children:w}):(0,s.jsx)(s.Fragment,{})}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})})]}),(0,s.jsx)(eF.CaretDown,{size:18,className:"custom-header-bar-text-color"})]})]})}),C!==e_.PROVIDER_ECOMMERCE&&C!==e_.PROVIDER_SHOWCASE&&!E&&!F&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:I})})]})})]})})})},t6=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:c,setOpenSignPop:d,wishlist:m,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedCurbsideAddress:j,selectedDeliveryAddress:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,provider:k,setOpenPopupIndex:C})=>{let{setIsOpenPreferenceDrawerNew:S}=(0,eD.useModalStore)(),{menuType:P,retailerName:D,retailerId:L,isDefaultHomePage:R,setIsDefaultHomePage:M}=(0,a.useGlobalStore)(),E=eG();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"md:hidden flex items-center header-background  w-full justify-between p-3 !z-[9]",children:[(0,s.jsx)(tt.List,{onClick:()=>{N(!0)},size:24,className:"header-font-color"}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l}),(0,s.jsxs)("div",{className:"flex gap-5",children:[k!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(o)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>i(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(L,R,M)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{S(!0)},children:(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color"})}),E&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:c?"/your-list":"",onClick:()=>{c?l("/your-list"):d(!0),(0,u.handleDefaultHomePage)(L,R,M)},children:[c&&m?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:m?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{c?l("/notification"):d(!0),(0,u.handleDefaultHomePage)(L,R,M)},children:[c&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:f})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsx)("div",{className:"md:hidden grid grid-cols-1 items-center bg-custom-header-bar-color sticky top-0 !z-[21]",children:(0,s.jsx)("div",{className:"h-[35px] w-full py-1 center-header-menu-slider-items",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:w?.links?.length>0?w?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>C(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{y(a),(0,u.handleDefaultHomePage)(L,R,M)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})}),(0,s.jsxs)("div",{className:"md:hidden grid grid-cols-1 items-center bg-custom-header-bar-color",children:[k!==e_.PROVIDER_ECOMMERCE&&k!==e_.PROVIDER_SHOWCASE&&L&&(0,s.jsx)("div",{className:"h-[49px] w-full flex justify-start items-center px-3",children:(0,s.jsxs)("div",{className:"flex justify-start items-center gap-2 min-w-0 flex-1",onClick:()=>{S(!0)},children:[(0,s.jsx)(Z.MapPin,{size:20,className:"text-red-700"}),(0,s.jsxs)("div",{className:"flex items-end gap-1 cursor-pointer min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"space-y-0.5 custom-header-bar-text-color min-w-0 
1w-full",children:[(0,s.jsx)("p",{className:"text-xs font-medium custom-header-bar-text-color truncate",children:`You're Shopping ${P} at ${D}`}),g&&(b||v||j)?(0,s.jsx)(s.Fragment,{children:"DELIVERY"===g?(0,s.jsx)("p",{className:"font-medium text-sm  custom-header-bar-text-color",children:v}):(0,s.jsx)(s.Fragment,{})}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})})]}),(0,s.jsx)(eF.CaretDown,{size:18,className:"custom-header-bar-text-color"})]})]})}),k!==e_.PROVIDER_ECOMMERCE&&k!==e_.PROVIDER_SHOWCASE&&!L&&!R&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-5",children:(0,s.jsx)(eB,{setIsDefaultHomePage:M})})]})]})},t8=({isStickyHeader:e,isStickyMenuWidget:t,headerFooterSettingsCms:a,siteLogo:r,logoTitle:l,logoAlt:o,searchMenuType:i,setOpenSearch:n,handleRedirectToPath:c,provider:d,retailerId:m,isDefaultHomePage:u,setIsDefaultHomePage:h,setOpenSignInRequiredModal:x,unseenNotificationCount:p,notificationCount:f,toggleRecommendedBar:g,isNavLoading:b,widgetData:j,handleMenuRedirectURL:v,setIsOpenPreferenceDrawerNew:w,orderType:y,selectedPickupAddress:N,selectedDeliveryAddress:k,selectedCurbsideAddress:C,isProviderLoading:S,providerSettingsCms:P,retailerDetails:D,line1:L,city:R,state:M,postalCode:E,setOpenPopupIndex:F})=>(0,s.jsx)(s.Fragment,{children:e||!t?(0,s.jsx)(t7,{isStickyHeader:e,isStickyMenuWidget:t,headerFooterSettingsCms:a,provider:d,handleRedirectToPath:c,siteLogo:r,logoTitle:l,logoAlt:o,searchMenuType:i,setOpenSearch:n,retailerId:m,isDefaultHomePage:u,setIsDefaultHomePage:h,setOpenSignInRequiredModal:x,unseenNotificationCount:p,notificationCount:f,toggleRecommendedBar:g,isNavLoading:b,widgetData:j,handleMenuRedirectURL:v,setIsOpenPreferenceDrawerNew:w,orderType:y,selectedPickupAddress:N,selectedDeliveryAddress:k,selectedCurbsideAddress:C,isProviderLoading:S,providerSettingsCms:P,retailerDetails:D,line1:L,city:R,state:M,postalCode:E,setOpenPopupIndex:F}):(0,s.jsx)(t9,{isStickyHeader:e,isStickyMenuWidget:t,headerFooterSettingsCms:a,provider:d,handleRedirectToPath:c,siteLogo:r,logoTitle:l,logoAlt:o,searchMenuType:i,setOpenSearch:n,retailerId:m,isDefaultHomePage:u,setIsDefaultHomePage:h,setOpenSignInRequiredModal:x,unseenNotificationCount:p,notificationCount:f,toggleRecommendedBar:g,isNavLoading:b,widgetData:j,handleMenuRedirectURL:v,setIsOpenPreferenceDrawerNew:w,orderType:y,selectedPickupAddress:N,selectedDeliveryAddress:k,selectedCurbsideAddress:C,isProviderLoading:S,providerSettingsCms:P,retailerDetails:D,line1:L,city:R,state:M,postalCode:E,setOpenPopupIndex:F})}),t7=({isStickyHeader:e,headerFooterSettingsCms:t,provider:a,handleRedirectToPath:r,siteLogo:l,logoTitle:o,logoAlt:i,setOpenSearch:c,searchMenuType:d,retailerId:h,isDefaultHomePage:x,setIsDefaultHomePage:f,setOpenSignInRequiredModal:g,unseenNotificationCount:b,notificationCount:j,toggleRecommendedBar:v,isNavLoading:w,widgetData:y,handleMenuRedirectURL:N,setIsOpenPreferenceDrawerNew:k,orderType:C,selectedPickupAddress:S,selectedDeliveryAddress:P,selectedCurbsideAddress:D,isProviderLoading:L,providerSettingsCms:R,retailerDetails:M,line1:E,city:F,state:I,postalCode:A,setOpenPopupIndex:H})=>{let{token:T}=(0,eR.useUserData)(),{wishlist:z}=(0,eM.useWishlistStore)(),O=eG();return(0,s.jsx)("div",{className:(0,ei.cn)(`md:hidden shadow bg-transparent ${e?"sticky top-0 !z-[21]":""} ${t?.headerFooterSettings?.isHeaderFour?"min-h-[124px]":t?.headerFooterSettings?.isHeaderSix?(0,m.getHeaderChromeMinHeightClass)(a,"min-h-[180px]"):t?.headerFooterSettings?.isHeaderSeven?(0,m.getHeaderChromeMinHeightClass)(a,"min-h-[165px]"):(0,m.getHeaderChromeMinHeightClass)(a,"min-h-[187px]")} h-fit`),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center header-background w-full justify-between p-3 !z-[9]",children:[(0,s.jsx)(tg.default,{siteLogo:l,logoTitle:o,logoAlt:i,handleRedirectToPath:r}),(0,s.jsxs)("div",{className:"flex gap-5 pr-5",children:[a!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(d)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>c(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(h,x,f)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),O&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:T?"/your-list":"",onClick:()=>{T?r("/your-list"):g(!0),(0,u.handleDefaultHomePage)(h,x,f)},children:[T&&z?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:z?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color  rounded-full",onClick:()=>{T?r("/notification"):g(!0),(0,u.handleDefaultHomePage)(h,x,f)},children:[T&&(b>0||j)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+b+ +j}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:v})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsxs)("div",{className:"pt-3 bg-custom-header-bar-color custom-header-bar-text-color",children:[(0,s.jsx)("div",{className:"grid grid-cols-1",children:(0,s.jsx)("div",{className:"h-[35px] w-full center-header-menu-slider-items overflow-hidden",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:w?[...Array(6)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",style:{width:"auto"},children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"nav-loading-skeleton-mobile-"+t)):y?.links?.length>0?y?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>H(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:14,className:"text-b50"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{N(a),(0,u.handleDefaultHomePage)(h,x,f)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",style:{width:"auto"},children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})}),a!==e_.PROVIDER_ECOMMERCE&&a!==e_.PROVIDER_SHOWCASE&&h&&(0,s.jsx)("div",{className:"h-[49px] w-full bg-custom-header-bar-color flex justify-start items-center px-3",children:(0,s.jsxs)("div",{className:"flex justify-start items-center gap-2",onClick:()=>k(!0),children:[(0,s.jsx)(Z.MapPin,{size:20,className:"text-black-600 custom-header-bar-text-color"}),C&&(S||P||D)&&!L?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-sm md:text-sm font-medium custom-header-bar-text-color shrink-0 min-w-0",children:["DELIVERY"===C?"Delivery to":(0,s.jsx)(s.Fragment,{}),"PICKUP"===C?"Pickup from":(0,s.jsx)(s.Fragment,{}),"CURBSIDE_PICKUP"===C?"Curbside Pickup from":(0,s.jsx)(s.Fragment,{})]}),"PICKUP"===C||"CURBSIDE_PICKUP"===C?(0,s.jsx)("p",{className:"font-medium truncate text-sm md:text-sm ml-2 custom-header-bar-text-color",children:R?.treez?M?.address:(0,u.formatPickupAddress)(E,F,I,A)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===C?(0,s.jsx)("p",{className:"font-medium text-[10px] md:text-sm ml-2 custom-header-bar-text-color",children:P}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(eF.CaretDown,{size:12,className:"custom-header-bar-text-color"})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})})]})}),a!==e_.PROVIDER_ECOMMERCE&&a!==e_.PROVIDER_SHOWCASE&&!h&&!x&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-4",children:(0,s.jsx)(eB,{setIsDefaultHomePage:f})})]})]})})},t9=({isStickyHeader:e,isStickyMenuWidget:t,headerFooterSettingsCms:a,provider:r,handleRedirectToPath:l,siteLogo:o,logoTitle:i,logoAlt:c,setOpenSearch:d,searchMenuType:m,retailerId:h,isDefaultHomePage:x,setIsDefaultHomePage:f,setOpenSignInRequiredModal:g,unseenNotificationCount:b,notificationCount:j,toggleRecommendedBar:v,isNavLoading:w,widgetData:y,handleMenuRedirectURL:N,setIsOpenPreferenceDrawerNew:k,orderType:C,selectedPickupAddress:S,selectedDeliveryAddress:P,selectedCurbsideAddress:D,isProviderLoading:L,providerSettingsCms:R,retailerDetails:M,line1:E,city:F,state:I,postalCode:A,setOpenPopupIndex:H})=>{let{token:T}=(0,eR.useUserData)(),{wishlist:z}
1=(0,eM.useWishlistStore)(),O=eG();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center header-background w-full justify-between p-3 !z-[9] md:hidden",children:[(0,s.jsx)(tg.default,{siteLogo:o,logoTitle:i,logoAlt:c,handleRedirectToPath:l}),(0,s.jsxs)("div",{className:"flex gap-5 pr-5",children:[r!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(m)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>d(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(h,x,f)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),O&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:T?"/your-list":"",onClick:()=>{T?l("/your-list"):g(!0),(0,u.handleDefaultHomePage)(h,x,f)},children:[T&&z?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:z?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color  rounded-full",onClick:()=>{T?l("/notification"):g(!0),(0,u.handleDefaultHomePage)(h,x,f)},children:[T&&(b>0||j)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+b+ +j}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:v})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsx)("div",{className:(0,ei.cn)("pt-1 bg-custom-header-bar-color custom-header-bar-text-color md:hidden",t?"sticky top-0 !z-[21]":""),children:(0,s.jsx)("div",{className:"grid grid-cols-1",children:(0,s.jsx)("div",{className:"h-[35px] w-full center-header-menu-slider-items overflow-hidden",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:w?[...Array(6)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",style:{width:"auto"},children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"nav-loading-skeleton-mobile-"+t)):y?.links?.length>0?y?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":t===y.links.length-1?"":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>H(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:14,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{N(a),(0,u.handleDefaultHomePage)(h,x,f)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",style:{width:"auto"},children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})})}),(0,s.jsxs)("div",{className:(0,ei.cn)("bg-custom-header-bar-color custom-header-bar-text-color md:hidden"),children:[r!==e_.PROVIDER_ECOMMERCE&&r!==e_.PROVIDER_SHOWCASE&&h&&(0,s.jsx)("div",{className:"h-[49px] w-full bg-custom-header-bar-color flex justify-start items-center px-3",children:(0,s.jsxs)("div",{className:"flex justify-start items-center gap-2",onClick:()=>k(!0),children:[(0,s.jsx)(Z.MapPin,{size:20,className:"text-black-600 custom-header-bar-text-color"}),C&&(S||P||D)&&!L?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-sm md:text-sm font-medium custom-header-bar-text-color shrink-0 min-w-0",children:["DELIVERY"===C?"Delivery to":(0,s.jsx)(s.Fragment,{}),"PICKUP"===C?"Pickup from":(0,s.jsx)(s.Fragment,{}),"CURBSIDE_PICKUP"===C?"Curbside Pickup from":(0,s.jsx)(s.Fragment,{})]}),"PICKUP"===C||"CURBSIDE_PICKUP"===C?(0,s.jsx)("p",{className:"font-medium text-sm truncate md:text-sm ml-2 custom-header-bar-text-color",children:R?.treez?M?.address:(0,u.formatPickupAddress)(E,F,I,A)}):(0,s.jsx)(s.Fragment,{}),"DELIVERY"===C?(0,s.jsx)("p",{className:"font-medium text-[10px] md:text-sm ml-2 custom-header-bar-text-color",children:P}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(eF.CaretDown,{size:12,className:"custom-header-bar-text-color"})]}):(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"w-[250px] h-[20px] bg-slate-200 animate-pulse"})})]})}),r!==e_.PROVIDER_ECOMMERCE&&r!==e_.PROVIDER_SHOWCASE&&!h&&!x&&(0,s.jsx)("div",{className:"flex items-center justify-start px-3 py-4",children:(0,s.jsx)(eB,{setIsDefaultHomePage:f})})]})]})},se=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,isNavLoading:k,isStickyHeader:C,headerFooterSettingsCms:S,provider:P,setIsDefaultHomePage:D,isStickyMenuWidget:L,setOpenPopupIndex:R})=>{let{retailerId:M,isDefaultHomePage:E}=(0,a.useGlobalStore)();return k?(0,s.jsx)(t_,{}):(0,s.jsx)(s.Fragment,{children:C||!L?(0,s.jsx)(st,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,isNavLoading:k,isStickyHeader:C,headerFooterSettingsCms:S,provider:P,retailerId:M,isDefaultHomePage:E,setIsDefaultHomePage:D,isStickyMenuWidget:L,setOpenPopupIndex:R}):(0,s.jsx)(ss,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:n,setOpenSignPop:c,wishlist:d,unSeen:m,notificationCount:u,toggleRecommendedBar:h,orderType:x,selectedPickupAddress:p,selectedDeliveryAddress:f,line1:g,city:b,state:j,postalCode:v,widgetData:w,handleMenuRedirectURL:y,setSidebar:N,isNavLoading:k,isStickyHeader:C,headerFooterSettingsCms:S,provider:P,retailerId:M,isDefaultHomePage:E,setIsDefaultHomePage:D,isStickyMenuWidget:L,setOpenPopupIndex:R})})},st=({siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r,searchMenuType:l,setOpenSearch:o,token:i,setOpenSignPop:c,wishlist:d,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedDeliveryAddress:j,line1:v,city:w,state:y,postalCode:N,widgetData:k,handleMenuRedirectURL:C,setSidebar:S,isNavLoading:P,isStickyHeader:D,headerFooterSettingsCms:L,provider:R,retailerId:M,isDefaultHomePage:E,setIsDefaultHomePage:F,setOpenPopupIndex:I})=>{let{setIsOpenPreferenceDrawerNew:A}=(0,eD.useModalStore)(),H=eG();return(0,s.jsx)("div",{className:`md:hidden shadow bg-transparent ${D?"sticky top-0 !z-[21]":""} ${L?.headerFooterSettings?.isHeaderFour?"min-h-[124px]":L?.headerFooterSettings?.isHeaderSix?(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[180px]"):L?.headerFooterSettings?.isHeaderSeven?(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[165px]"):(0,m.getHeaderChromeMinHeightClass)(R,"min-h-[187px]")} h-fit`,children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsxs)("div",{className:" shadow bg-white min-h-[118px] h-fit",children:[(0,s.jsxs)("div",{className:"flex items-center header-background w-full justify-between p-3 !z-[9]",children:[(0,s.jsx)(tt.List,{onClick:()=>{S(!0)},size:24,className:"header-font-color"}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:a,handleRedirectToPath:r}),(0,s.jsxs)("div",{className:"flex gap-3",children:[R!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(l)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>o(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(M,E,F)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>A(!0),children:(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color"})}),H&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:i?"/your-list":"",onClick:()=>{i?r("/your-list"):c(!0),(0,u.handleDefaultHomePage)(M,E,F)},children:[i&&d?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:d?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{i?r("/notification"):c(!0),(0,u.handleDefaultHomePage)(M,E,F)},children:[i&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:f})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsx)("div",{className:"bg-custom-header-bar-color custom-header-bar-text-color",children:(0,s.jsx)("div",{className:"flex items-center h-[35px] center-header-menu-slider-items",children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:k?.links?.length>0?k?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>I(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{C(a),(0,u.handleDefaultHomePage)(M,E,F)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})})})]})})})},ss=({siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l,searchMenuType:o,setOpenSearch:i,token:c,setOpenSignPop:d,wishlist:m,unSeen:h,notificationCount:x,toggleRecommendedBar:f,orderType:g,selectedPickupAddress:b,selectedDeliveryAddress:j,line1:v,city:w,state:y,postalCode:N,widgetData:k,handleMenuRedirectURL:C,setSidebar:S,isNavLoading:P,isStickyHeader:D,headerFooterSettingsCms:L,provider:R,setIsDefaultHomePage:M,setOpenPopupIndex:E})=>{let{setIsOpenPreferenceDrawerNew:F}=(0,eD.useModalStore)(),{retailerId:I,isDefaultHomePage:A}=(0,a.useGlobalStore)(),H=eG();return P?(0,s.jsx)(t_,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center header-background w-full justify-between p-3 !z-[9] md:hidden",children:[(0,s.jsx)(tt.List,{onClick:()=>{S(!0)},size:24,className:"header-font-color"}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:l}),(0,s.jsxs)("div",{className:"flex gap-3",children:[R!==e_.PROVIDER_IFRAME&&(0,s.jsx)(s.Fragment,{children:(0,tu.usesLiveSearchOverlay)(o)?(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color roun
1ded-full",onClick:()=>i(!0),children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})}):(0,s.jsx)(p.default,{href:"/search",onClick:()=>{(0,u.handleDefaultHomePage)(I,A,M)},children:(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,className:"header-font-color"})})})}),(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>F(!0),children:(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color"})}),H&&(0,s.jsx)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",children:(0,s.jsxs)(p.default,{href:c?"/your-list":"",onClick:()=>{c?l("/your-list"):d(!0),(0,u.handleDefaultHomePage)(I,A,M)},children:[c&&m?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:m?.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]})}),(0,s.jsxs)("div",{className:"h-[35px] w-[35px] relative cursor-pointer p-2 header-mobile-icon-border-color rounded-full",onClick:()=>{c?l("/notification"):d(!0),(0,u.handleDefaultHomePage)(I,A,M)},children:[c&&(h?.data?.unseenCount>0||x)?(0,s.jsx)("span",{className:"w-[22px] h-[22px] rounded-full bg-[#34A203] text-white absolute text-xs top-[-11px] left-[17px] flex items-center justify-center",children:+h?.data?.unseenCount+ +x}):null,(0,s.jsx)(eV.Bell,{className:"header-font-color",onClick:f})]}),(0,s.jsx)(t$,{})]})]}),(0,s.jsx)("div",{className:"bg-custom-header-bar-color custom-header-bar-text-color sticky top-0 !z-[21] md:hidden",children:(0,s.jsx)("div",{className:"flex items-center h-[35px] center-header-menu-slider-items",children:(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(tz,{slidesPerView:"auto",children:k?.links?.length>0?k?.links?.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=e?.subLinks?.length>0||!!e?.enableResourceMegaMenu;return e?.isCategory?null:(0,s.jsx)(n.SwiperSlide,{style:{width:"auto"},className:0===t?"ml-3 !mr-5":"!mr-5",children:r?(0,s.jsxs)("button",{className:"flex items-center gap-1 mb-1 custom-header-bar-text-color outline-none custom-link-font",onClick:()=>E(t),children:[(0,s.jsx)("span",{className:"text-sm font-medium custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:16,className:"text-b50 custom-link-font"})]}):(0,s.jsx)(p.default,{className:"mb-1 custom-header-bar-text-color",href:a,onClick:()=>{C(a),(0,u.handleDefaultHomePage)(I,A,M)},children:(0,s.jsx)("span",{className:"text-sm font-medium",children:e.label})})},"navbar-phone-top-slide"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)(n.SwiperSlide,{className:"text-center",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"navbar-phone-top-slide"+t))})})})})]})};var sa=e.i(346503);let sr=({isOpen:e,onClose:t,onLinkClick:a})=>{let r=(0,M.usePathname)(),l=(0,b.useRef)(null),{data:o}=tl();(0,b.useEffect)(()=>{e?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[e]),(0,b.useEffect)(()=>{null!==l.current&&l.current!==r&&e&&(t(),(0,ei.handleRemoveOverflowHidden)()),l.current=r},[r,e,t]);let i=!!o?.columns?.length,n=()=>{t(),(0,ei.handleRemoveOverflowHidden)()};return(0,s.jsx)(ta.AnimatePresence,{children:e&&(0,s.jsxs)("div",{className:"fixed inset-0 z-[25] md:hidden",children:[(0,s.jsx)(tr.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 bg-black/50",onClick:n}),(0,s.jsx)("div",{className:"fixed inset-x-3 top-16 z-[26] max-h-[75dvh] overflow-y-auto rounded-md",children:(0,s.jsx)(tr.motion.div,{initial:{opacity:0,y:-24},animate:{opacity:1,y:0},exit:{opacity:0,y:-24},transition:{duration:.2,ease:"easeOut"},children:i&&o?(0,s.jsx)(ti,{data:o,onClose:n,onLinkClick:e=>{n(),a(e)},columnsClassName:"grid-cols-1"}):(0,s.jsx)("div",{className:"rounded-2xl bg-[var(--mega-menu-bg-color)] p-6 text-center text-sm text-[var(--mega-menu-close-icon-color)] shadow-2xl",children:"Nothing to show here yet."})})})]})})},sl=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,headerFooterSettingsCms:o,handleDrawer:i,isStickyHeader:n=!1,isStickyMenuWidget:c=!1,provider:d})=>{let m=(0,eC.useNavigationLoading)(l),{token:h}=(0,eR.useUserData)(),x=(0,M.usePathname)(),{setRouteLoader:p,searchMenuType:f,setOpenSignInRequiredModal:g,providerSettingsCms:j,retailerId:v,isDefaultHomePage:w,setIsDefaultHomePage:y,unseenNotificationCount:N}=(0,a.useGlobalStore)(),[k,C]=(0,b.useState)(null),S=(0,M.useRouter)(),[P,D]=b.default.useState(!1),[L,R]=b.default.useState(!1),E=x?.includes("/product/"),[,F]=(0,b.useState)(!0),{wishlist:I}=(0,eM.useWishlistStore)(),{notificationCount:A,setNotificationCount:H}=(0,eL.useNotificationStore)(),{data:T}=(0,tv.useQuery)({queryKey:["searchPageCms"],queryFn:async()=>{let e=await (0,el.getData)({url:tj.default.cms.searchPageCms,throwError:!0});return e?.data?.length?e.data[0]:null},enabled:"Elastic Search"===f}),z=()=>{0===window.scrollY?F(!0):F(!1)};(0,b.useEffect)(()=>(window.addEventListener("scroll",z),()=>{window.removeEventListener("scroll",z)}),[]);let O=e=>{_(e)};function _(e){if(e==x)return!1;p(!0),S.push(e)}let{orderType:B,selectedPickupAddress:$,selectedPickupAddressObject:W,selectedCurbsideAddress:V,selectedCurbsideAddressObject:U,selectedDeliveryAddress:G,retailerDetails:K,isProviderLoading:Y}=(0,a.useGlobalStore)(),{setIsOpenPreferenceDrawerNew:Z}=(0,eD.useModalStore)(),q=["/cart","/shop","/brands","/specials","/your-order","/buy-again","/account-new","/profile","/account/login-and-security","/account/close-your-account","/keep-shopping-for","/your-list","/save-for-later","/notification-settings","/permission-settings","/deals-alert","/account/request-your-information","/career","/category"].some(e=>{let t=RegExp(`^${e}(/.*)?$`);return x&&t.test(x)}),X="/chat-with-retailer"===x,J=x&&/^\/chat-with-retailer\/[^\/]+$/.test(x),Q=["/faq","/categories","/about","/blog","/education","/contact","/privacy-policy","/terms-and-conditions","/customer-support","/create-ticket","/deals","/shop-cannabis-near-me","/shop-cannabis-near-me/shop-by-price","/search/categories","/notification","/career"].some(e=>{let t=RegExp(`^${e}(/.*)?$`);return x&&t.test(x)})||J,ee=["/search","/search/deals","/search/brands","/chat-with-retailer"].some(e=>{if("/chat-with-retailer"===e)return X;let t=RegExp(`^${e}(/.*)?$`);return x&&t.test(x)}),{line1:et,postalCode:es,city:ea,state:er}=(0,u.isTruthyObject)(W)?W:(0,u.isTruthyObject)(U)?U:{},eo=()=>{H(0)},ei="";if(x&&/^\/[a-z]+(-[A-Za-z]+)*$/.test(x)){let e=x?.replace(/-/g," ").substring(1);ei=e=e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}return"/terms-and-conditions"===x&&(ei="Terms & Condition"),"/faq"===x&&(ei="FAQ"),"/find-a-dispensary"===x&&(ei="Find a Dispensary"),"/create-ticket"===x&&(ei="Create Support Ticket"),x&&/\/blog\/.*/.test(x)&&(ei="Blog Details"),x&&/\/education\/.*/.test(x)&&(ei="Education Details"),"/deals"===x&&(ei="Shop Deals by Category"),"/shop-cannabis-near-me"===x&&(ei="Shop By"),"/shop-cannabis-near-me/shop-by-price"===x&&(ei="Shop By Price"),"/search/categories"===x&&(ei="Categories"),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(s.Fragment,{children:[q?(0,s.jsx)(tf,{searchPageCms:T}):Q?(0,s.jsx)("div",{className:"px-2 py-3 md:hidden sticky top-0 header-background z-20",children:x&&(/^\/deals\/.+$/.test(x)||/^\/search\/categories\/[^\/]+$/.test(x))?"":(0,s.jsx)(tb,{siteLogo:e,logoTitle:t,logoAlt:r,title:ei,unseenCount:N,searchPageCms:T})}):ee||x&&/^\/deals\/.+$/.test(x)||x&&/^\/deals-collection\/.+$/.test(x)?(0,s.jsx)(s.Fragment,{}):E?(0,s.jsx)("div",{className:"mt-5",children:(0,s.jsx)(tA,{open:P,setOpen:D})}):(0,s.jsx)(s.Fragment,{children:o?.headerFooterSettings?.isHeaderOne?(0,s.jsx)(t8,{isStickyHeader:n,isStickyMenuWidget:c,headerFooterSettingsCms:o,provider:d,handleRedirectToPath:_,siteLogo:e,logoTitle:t,logoAlt:r,searchMenuType:f,setOpenSearch:R,retailerId:v,isDefaultHomePage:w,setIsDefaultHomePage:y,setOpenSignInRequiredModal:g,unseenNotificationCount:N,notificationCount:A,toggleRecommendedBar:eo,isNavLoading:m,widgetData:l,handleMenuRedirectURL:O,setIsOpenPreferenceDrawerNew:Z,orderType:B,selectedPickupAddress:$,selectedDeliveryAddress:G,selectedCurbsideAddress:V,isProviderLoading:Y,providerSettingsCms:j,retailerDetails:K,line1:et,city:ea,state:er,postalCode:es,setOpenPopupIndex:C}):o?.headerFooterSettings?.isHeaderTwo?(0,s.jsx)(tW,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:_,searchMenuType:f,setOpenSearch:R,token:h,setOpenSignPop:g,wishlist:I,unSeen:N,notificationCount:A,toggleRecommendedBar:eo,orderType:B,selectedPickupAddress:$,selectedCurbsideAddress:V,selectedDeliveryAddress:G,line1:et,city:ea,state:er,postalCode:es,widgetData:l,handleMenuRedirectURL:O,isNavLoading:m,provider:d,isStickyHeader:n,isStickyMenuWidget:c,isDefaultHomePage:w,setIsDefaultHomePage:y,setIsOpenPreferenceDrawerNew:Z,isProviderLoading:Y,providerSettingsCms:j,retailerDetails:K,retailerId:v,setOpenPopupIndex:C}):o?.headerFooterSettings?.isHeaderThree?(0,s.jsx)(tG,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:_,searchMenuType:f,setOpenSearch:R,token:h,setOpenSignPop:g,wishlist:I,unSeen:N,notificationCount:A,toggleRecommendedBar:eo,orderType:B,selectedPickupAddress:$,selectedCurbsideAddress:V,selectedDeliveryAddress:G,line1:et,city:ea,state:er,postalCode:es,widgetData:l,handleMenuRedirectURL:O,isNavLoading:m,provider:d,isStickyHeader:n,headerFooterSettingsCms:o,retailerId:v,isDefaultHomePage:w,setIsDefaultHomePage:y,setIsOpenPreferenceDrawerNew:Z,isProviderLoading:Y,providerSettingsCms:j,retailerDetails:K,isStickyMenuWidget:c,setOpenPopupIndex:C}):o?.headerFooterSettings?.isHeaderFour?(0,s.jsx)(se,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:_,searchMenuType:f,setOpenSearch:R,token:h,setOpenSignPop:g,wishlist:I,unSeen:N,notificationCount:A,toggleRecommendedBar:eo,orderType:B,selectedPickupAddress:$,selectedDeliveryAddress:G,line1:et,city:ea,state:er,postalCode:es,widgetData:l,handleMenuRedirectURL:O,setSidebar:i,isNavLoading:m,headerFooterSettingsCms:o,isStickyHeader:n,provider:d,retailerId:v,isDefaultHomePage:w,setIsDefaultHomePage:y,isStickyMenuWidget:c,setOpenPopupIndex:C}):o?.headerFooterSettings?.isHeaderFive?(0,s.jsx)(tZ,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:_,searchMenuType:f,setOpenSearch:R,token:h,setOpenSignPop:g,wishlist:I,unSeen:N,notificationCount:A,toggleRecommendedBar:eo,orderType:B,selectedPickupAddress:$,selectedCurbsideAddress:V,selectedDeliveryAddress:G,line1:et,city:ea,state:er,postalCode:es,widgetData:l,handleMenuRedirectURL:O,setSidebar:i,isNavLoading:m,provider:d,headerFooterSettingsCms:o,isStickyHeader:n,isStickyMenuWidget:c,setOpenPopupIndex:C}):o?.headerFooterSettings?.isHeaderSix?(0,s.jsx)(tJ,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:_,searchMenuType:f,setOpenSearch:R,token:h,setOpenSignPop:g,wishlist:I,unSeen:N,notificationCount:A,toggleRecommendedBar:eo,orderType:B,selectedPickupAddress:$,selectedCurbsideAddress:V,selectedDeliveryAddress:G,line1:et,city:ea,state:er,postalCode:es,widgetData:l,handleMenuRedirectURL:O,setSidebar:i,openSearch:L,headerFooterSettingsCms:o,searchPageCms:T,isNavLoading:m,provider:d,isStickyHeader:n,isStickyMenuWidget:c,setOpenPopupIndex:C}):o?.headerFooterSettings?.isHeaderSeven?(0,s.jsx)(t1,{siteLogo:e,handleRedirectToPath:_,searchMenuType:f,setOpenSearch:R,token:h,setOpenSignPop:g,wishlist:I,unSeen:N,notificationCount:A,toggleRecommendedBar:eo,orderType:B,selectedPickupAddress:$,selectedCurbsideAddress:V,selectedDeliveryAddress:G,line1:et,city:ea,state:er,postalCode:es,widgetData:l,handleMenuRedirectURL:O,setSidebar:i,openSearch:L,searchPageCms:T,isNavLoading:m,provider:d,isStickyHeader:n,headerFooterSettingsCms:o,isStickyMenuWidget:!0,setOpenPopupIndex:C}):o?.headerFooterSettings?.isHeaderEight?(0,s.jsx)(t5,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:_,searchMenuType:f,setOpenSearch:R,token:h,setOpenSignPop:g,wishlist:I,unSeen:N,notificationCount:A,toggleRecommendedBar:eo,orderType:B,selectedPickupAddress:$,selectedCurbsideAddress:V,selectedDeliveryAddress:G,widgetData:l,handleMenuRedirectURL:O,setSidebar:i,isNavLoading:m,provider:d,isStickyHeader:n,headerFooterSettingsCms:o,isStickyMenuWidget:c,setOpenPopupIndex:C}):(0,s.jsx)(t8,{isStickyHeader:n,isStickyMenuWidget:c,headerFooterSettingsCms:o,provider:d,handleRedirectToPath:_,siteLogo:e,logoTitle:t,logoAlt:r,searchMenuType:f,setOpenSearch:R,retailerId:v,isDefaultHomePage:w,setIsDefaultHomePage:y,setOpenSignInRequiredModal:g,unseenNotificationCount:N,notificationCount:A,toggleRecommendedBar:eo,isNavLoading:m,widgetData:l,handleMenuRedirectURL:O,setIsOpenPreferenceDrawerNew:Z,orderType:B,selectedPickupAddress:$,selectedDeliveryAddress:G,selectedCurbsideAddress:V,isProviderLoading:Y,providerSettingsCms:j,retailerDetails:K,line1:et,city:ea,state:er,postalCode:es,setOpenPopupIndex:C})}),(0,tu.usesLiveSearchOverlay)(f)?(0,s.jsx)(tm.default,{setOpenSearch:R,openSearch:L,searchPageCms:T}):(0,s.jsx)(s.Fragment,{})]}),null!=k&&l?.links?.[k]?.enableResourceMegaMenu&&(0,s.jsx)(sr,{isOpen:"number"==typeof k,onClose:()=>C(null),onLinkClick:e=>{O(e),(0,u.handleDefaultHomePage)(v,w,y)}}),null!=k&&!l?.links?.[k]?.enableResourceMegaMenu&&(0,s.jsx)(sa.default,{isOpen:"number"==typeof k&&!!l?.links?.[k]?.subLinks?.length,onClose:()=>C(null),title:"number"==typeof k&&l?.links?.[k]?.label||"",subLinks:"number"==typeof k&&l?.links?.[k]?.subLinks||[],handleMenuRedirectURL:O,retailerId:v,isDefaultHomePage:w,setIsDefaultHomePage:y,keyPrefix:"mobile-popup-sublink-sticky",roundedClass:"rounded-t-2xl"})]})};var so=e.i(75379),si=e.i(980195),sn=e.i(851579),sc=e.i(923916),sd=e.i(115578),sm=e.i(363178);let su=({isMenuOpen:e,setIsMenuOpen:t,handleMenuClick:r,setSubMenuData:l,handleRedirect:o,commonCMSData:i,setShowSubMenuModal:n,showSubMenuModal:d,handleRouteChange:m,provider:h})=>{let f=(0,M.usePathname)(),{customProductCategoryData:g,setIsDefaultHomePage:j,isDefaultHomePage:v,retailerId:w,isShopPageTwo:y}=(0,a.useGlobalStore)(),{displayCategoryName:N}=(0,c.default)(),k=i?.menuLinkWidgetCmsData?.links||[],[C,S]=(0,b.useState)("explore"),{theme:P}=(0,sm.useTheme)(),[D,L]=(0,b.useState)(!1);(0,b.useEffect)(()=>{L(!0)},[]);let E=D&&"dark"===P;return(0,b.useEffect)(()=>{e||d?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[e,d]),(0,b.useEffect)(()=>{e||S("explore")},[e]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 border shadow-xl h-full flex flex-col bg-[var(--website-cards-bg-color)] border-[var(--website-cards-border-color)]",children:[(0,s.jsxs)("div",{className:"px-6 py-4 flex justify-between items-center bg-[var(--website-cards-bg-color)]",children:[(0,s.jsx)("p",{className:"website-cards-text-color text-xl font-bold",children:"Menu"}),(0,s.jsx)("button",{type:"button","aria-label":"Close menu",onClick:()=>{r()},className:`w-8 h-8 rounded-full flex items-center justify-center ${E?"bg-[var(--fill-header-search-bg-color)]":"bg-[var(--website-cards-bg-color)]"}`,children:(0,s.jsx)("i",{className:`fa fa-times text-lg ${E?"text-[var(--fill-header-search-font-color)]":"text-[var(--website-cards-text-color)]"}`,"aria-hidden":!0})})]}),(0,s.jsx)("div",{className:"pt-2 bg-[var(--website-cards-bg-color)]",children:(0,s.jsxs)("div",{className:"flex gap-0",children:[(0,s.jsxs)("button",{onClick:()=>S("explore"),className:`
2                    flex-1 flex flex-col items-center justify-center relative
3                    h-[74px] px-2
4                    ${"explore"===C?`rounded-t-3xl border-t border-l border-r ${E?"fill-button border-[var(--website-cards-border-color)]":"fill-button border-gray-300"}`:`border-b ${E?"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-gray-300"}`}
5                  `,children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)("i",{className:"fa fa-compass text-xl"})}),(0,s.jsx)("span",{className:"text-sm font-bold",children:"Explore"})]}),h!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("button",{onClick:()=>S("shop"),className:`
6                    flex-1 flex flex-col items-center justify-center relative
7                    h-[74px] px-2
8                    ${"shop"===C?`fill-button rounded-t-3xl border-t border-l border-r ${E?"border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] border-gray-300"}`:`border-b ${E?"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-gray-300"}`}
9                  `,children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)("i",{className:"fa fa-shopping-bag text-xl"})}),(0,s.jsx)("span",{className:"text-sm font-bold",children:"Shop"})]}),(0,s.jsxs)("button",{onClick:()=>S("location"),className:`
10                    flex-1 flex flex-col items-center justify-center relative
11                    h-[74px] px-2
12                    ${"location"===C?`fill-button rounded-t-3xl border-t border-l border-r ${E?"border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] border-gray-300"}`:`border-b ${E?"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-gray-300"}`}
13                  `,children:[(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)("i",{className:"fa-solid fa-location-dot text-xl"})}),(0,s.jsx)("span",{className:"text-sm font-bold",children:"Location"})]})]})}),"explore"===C&&(0,s.jsxs)("div",{className:"px-4 py-6 space-y-2 max-h-[calc(100dvh-260px)] overflow-y-auto sb-footer",children:[k?.map((e,a)=>e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{n(!0),l(e),t(!1)},className:`rounded-xl p-4 flex items-center justify-between space-x-3 border cursor-pointer sidebar-menu-font-family ${f===e.url?"button-primary":`${E?"bg-[var(--website-cards-bg-color)] border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] website-cards-text-color"}`}`,children:[(0,s.jsx)("p",{className:"sidebar-menu-font-family",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:E?"text-[var(--website-cards-text-color)]":""})]},"nav-link"+a):(0,s.jsx)(p.default,{href:o(e),onClick:()=>{m(e.url),(0,u.handleDefaultHomePage)(w,v,j)},className:`rounded-xl p-4 flex items-center space-x-3 border sidebar-menu-font-family ${f===e.url?"button-primary":`${E?"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] text-[var(--website-cards-text-color)] border-gray-200"}`}`,children:(0,s.jsx)("span",{className:"sidebar-menu-font-family",children:e.label})},"nav-link"+a)),g&&g?.length>0&&h!==e_.PROVIDER_IFRAME&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:`font-bold text-xl pt-2 ${E?"text-[var(--global-heading-color)]":"text-gray-900"}`,children:"Shop your Categories"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2",children:g?.map((e,t)=>(0,s.jsxs)(p.default,{href:`/category/${(0,u.urlSlug)(e.categoryName)}`,onClick:()=>{(0,u.handleDefaultHomePage)(w,v,j)},className:`border rounded-xl p-2 flex items-center space-x-3 ${E?"bg-[var(--website-cards-bg-color)] border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] border-gray-200"}`,children:[e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",alt:"logo",width:"40",height:"40",className:"object-contain"}),(0,s.jsx)("span",{classN
13ame:`!ml-[6px] ${E?"text-[var(--website-cards-text-color)]":"text-gray-800"}`,children:N(e)})]},"shop-key-"+t))}),(0,s.jsx)(p.default,{href:y?"/shop-cannabis-near-me":(0,ep.withStore)(),onClick:()=>{t(!1),(0,u.handleDefaultHomePage)(w,v,j)},children:(0,s.jsxs)("button",{className:`!w-full border rounded-full p-1 flex items-center space-x-3 justify-center mt-[20px] gap-2 ${E?"bg-[var(--website-cards-bg-color)] border-[var(--website-cards-border-color)] text-[var(--website-cards-text-color)]":"bg-[var(--website-cards-bg-color)] border-gray-200"}`,children:["Shop all"," ",(0,s.jsx)(A.ArrowRight,{size:20,className:E?"text-[var(--website-cards-text-color)]":""})]})})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),"shop"===C&&(0,s.jsxs)("div",{className:"px-4 py-6 space-y-2 max-h-[calc(100dvh-260px)] overflow-y-auto sb-footer",children:[g?.map((e,t)=>(0,s.jsxs)(p.default,{href:`/category/${(0,u.urlSlug)(e.categoryName)}`,onClick:()=>{(0,u.handleDefaultHomePage)(w,v,j)},className:`border rounded-xl p-4 flex items-center space-x-3 ${E?"bg-[var(--website-cards-bg-color)] border-[var(--website-cards-border-color)]":"bg-[var(--website-cards-bg-color)] border-gray-200"}`,children:[e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",alt:"logo",width:"40",height:"40",className:"mt-0.5 object-contain"}),(0,s.jsx)("span",{className:"website-cards-text-color",children:N(e)})]},"shop-key-tab"+t)),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),"location"===C&&(0,s.jsxs)("div",{className:"px-4 mt-[2px] pb-6 space-y-2 max-h-[calc(100dvh-260px)] overflow-y-auto sb-footer",children:[(0,s.jsx)(sd.default,{setIsMenuOpen:t}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsx)("p",{className:"mt-auto shrink-0 text-xs font-medium text-center pt-3 pb-[max(1rem,env(safe-area-inset-bottom))]",children:(0,s.jsx)(R.default,{placement:"hamburger"})})]})})};var sh=e.i(10282),sx=e.i(695263),sp=e.i(512105),sf=e.i(934448),sg=e.i(258643);let sb=({open:e,handleClose:t,menuLinkWidgetCmsData:r,setShowSubMenuModal:l,setSubMenuData:o,handleRedirect:i,handleDefaultHomePage:n,handleRouteChange:c,retailerId:d,isDefaultHomePage:m,setIsDefaultHomePage:u,setSidebar5:h,siteLogo:f})=>{let{commonCMSData:g}=(0,a.useGlobalStore)(),j=g?.portfolioMenuVersionFiveCMS??{image:null,video:null,title:"Get High, Stay high",description:"Be the first to know about all things about Mitten.",buttontext:"Get Started",buttonlink:"/",isVideo:!1};return(0,b.useEffect)(()=>{e?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[e]),(0,s.jsxs)("div",{className:`fixed inset-0 z-[60] transition-opacity duration-500 ease-in-out ${e?"opacity-100":"opacity-0 pointer-events-none"}`,children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/80",onClick:()=>{t(),(0,ei.handleRemoveOverflowHidden)()}}),(0,s.jsx)("div",{className:"absolute top-0 left-0 w-full pt-5 px-5 flex items-start justify-center",children:e&&(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsxs)("div",{className:"hidden lg:block backdrop-blur-xl rounded-lg px-20 py-20 transition-all duration-500 ease-in-out max-h-[90vh] overflow-y-auto bg-black/30",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4 border-b border-gray-700 pb-10",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[f&&(0,s.jsx)(x.default,{src:f||"",alt:"logo",width:100,height:100,className:"cursor-pointer"}),(0,s.jsx)(e9.XIcon,{size:30,className:"buddy-sidebar-menu-close-icon cursor-pointer",onClick:()=>{t(),(0,ei.handleRemoveOverflowHidden)()}})]})," ",j?.isVideo&&j?.video&&(0,s.jsx)("video",{src:j?.video,autoPlay:!0,muted:!0,loop:!0,className:"mt-auto w-[375px] h-[375px] object-cover rounded-md"},`video-${j?.video}`),j?.image&&!j?.isVideo&&(0,s.jsx)(x.default,{src:j?.image||"",alt:"banner",width:300,height:100,className:"mt-auto w-[375px] h-[375px] object-cover rounded-md"})]}),(0,s.jsxs)("div",{className:"w-full space-y-12",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,s.jsx)("div",{className:"space-y-1 uppercase text-3xl font-bold text-white",children:r?.slice(0,5)?.map((e,t)=>e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{l(!0),o(e)},className:"group relative flex items-center transition-all duration-300",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,s.jsx)(p.default,{href:"/",className:"buddy-sidebar-menu-link-title group-hover:translate-x-2 transition-all duration-300",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"buddy-sidebar-menu-sublink-chevron"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:i(e),onClick:()=>{h(!1),n(d,m,u),c(e.url)},className:"flex items-center justify-between py-4 cursor-pointer",children:(0,s.jsxs)("div",{className:"group relative flex items-center transition-all duration-300 group-hover:translate-x-6",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100  transition-opacity duration-300"}),(0,s.jsx)("span",{className:"buddy-sidebar-menu-link-title group-hover:translate-x-2 transition-all duration-300",children:e.label})]})},"nav-link"+t))}),(0,s.jsx)("div",{className:"space-y-1 uppercase text-xl font-bold text-white",children:r?.slice(5)?.map((e,t)=>e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{l(!0),o(e)},className:"group relative flex items-center transition-all duration-300",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,s.jsxs)(p.default,{href:"/",className:"buddy-sidebar-menu-link-title group-hover:translate-x-2 transition-all duration-300",children:[e.label,(0,s.jsx)(ef.CaretRight,{size:20,className:"buddy-sidebar-menu-sublink-chevron"})]})]},"nav-link"+t):(0,s.jsx)(p.default,{href:i(e),onClick:()=>{h(!1),n(d,m,u),c(e.url)},className:"flex items-center justify-between py-1 cursor-pointer",children:(0,s.jsxs)("div",{className:"group relative flex items-center transition-all duration-300",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,s.jsx)("span",{className:"buddy-sidebar-menu-link-title group-hover:translate-x-2 transition-all duration-300",children:e.label})]})},"nav-link"+t))})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 text-[var(--sidebar-menu-title-text-color)]",children:[j?.title&&(0,s.jsx)("h2",{className:"text-4xl font-bold",children:j?.title}),j?.description&&(0,s.jsx)("p",{className:"text-lg",children:j?.description}),(0,s.jsx)("div",{className:"grid grid-cols-1 mt-3",children:(0,s.jsx)(p.default,{href:j?.buttonlink||"/",className:"w-full border border-[var(--sidebar-menu-title-text-color)] rounded-full px-6 py-3 text-[var(--sidebar-menu-title-text-color)] font-medium cursor-pointer text-center hover:bg-[var(--sidebar-menu-title-text-color)] hover:text-[var(--sidebar-menu-background-color)] transition-all duration-300",children:j?.buttontext||"Get Started"})})]}),(0,s.jsxs)("div",{className:"space-y-2 flex flex-col text-bold text-white",children:[(0,s.jsx)(p.default,{href:"/privacy-policy",className:"text-[var(--sidebar-menu-title-text-color)] hover:text-[var(--sidebar-menu-footer-link-text-color)] transition-colors",children:"Privacy Policy"}),(0,s.jsx)(p.default,{href:"/terms-and-conditions",className:"text-[var(--sidebar-menu-title-text-color)] hover:text-[var(--sidebar-menu-footer-link-text-color)] transition-colors",children:"Terms of Service"})]})]})]})]}),(0,s.jsx)("p",{className:"text-sm pt-3 buddy-sidebar-menu-footer-link",children:(0,s.jsx)(R.default,{placement:"hamburger",useBrandingColor:!0})})]}),(0,s.jsxs)("div",{className:"lg:hidden bg-black/20 backdrop-blur-md rounded-lg px-6 py-6 shadow-lg relative",children:[(0,s.jsx)(e9.XIcon,{size:30,className:"buddy-sidebar-menu-close-icon cursor-pointer absolute top-1 right-5",onClick:()=>
13{t(),(0,ei.handleRemoveOverflowHidden)()}}),(0,s.jsxs)("div",{className:"border-b border-gray-700 pb-6",children:[(0,s.jsx)("div",{className:"space-y-1 uppercase text-xl font-bold text-white border-b border-white pb-4 mb-4",children:r?.slice(0,5)?.map((e,t)=>e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{l(!0),o(e)},className:"group relative flex items-center transition-all duration-300",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,s.jsx)(p.default,{href:"/",className:"buddy-sidebar-menu-link-title group-hover:translate-x-2 transition-all duration-300",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"buddy-sidebar-menu-sublink-chevron"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:i(e),onClick:()=>{h(!1),n(d,m,u),c(e.url)},className:"flex items-center justify-between py-2 cursor-pointer",children:(0,s.jsxs)("div",{className:"group relative flex items-center transition-all duration-300",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,s.jsx)(p.default,{href:"/",className:"buddy-sidebar-menu-link-title group-hover:translate-x-2 transition-all duration-300",children:e.label})]})},"nav-link"+t))}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 uppercase text-base font-bold text-white border-b border-white pb-4 mb-4",children:r?.slice(5)?.map((e,t)=>e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"group relative flex items-center transition-all duration-300",onClick:()=>{l(!0),o(e)},children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,s.jsx)("span",{className:"buddy-sidebar-menu-link-title",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"buddy-sidebar-menu-sublink-chevron"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:i(e),onClick:()=>{h(!1),n(d,m,u),c(e.url)},className:"flex items-center justify-between py-2 cursor-pointer",children:(0,s.jsxs)("div",{className:"group relative flex items-center transition-all duration-300",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-white opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,s.jsx)("span",{className:"buddy-sidebar-menu-link-title",children:e.label})]})},"nav-link"+t))}),(0,s.jsxs)("div",{className:"text-white",children:[(0,s.jsxs)("div",{className:"space-y-1 mb-5",children:[j?.title&&(0,s.jsx)("h2",{className:"text-2xl font-bold",children:j?.title}),j?.description&&(0,s.jsx)("p",{className:"text-sm",children:j?.description})]}),(0,s.jsx)("div",{className:"grid grid-cols-1",children:(0,s.jsx)(p.default,{href:j?.buttonlink||"/",className:"w-full border border-white rounded-full text-sm px-3 py-2 text-white font-medium cursor-pointer text-center hover:bg-white hover:text-black transition-all duration-300",children:j?.buttontext||"Get Started"})})]})]}),(0,s.jsx)("p",{className:"text-center text-sm pt-3 buddy-sidebar-menu-footer-link",children:(0,s.jsx)(R.default,{placement:"hamburger",useBrandingColor:!0})})]})]})})]})};var sj=e.i(973300);let sv=({open:e,handleClose:t,menuLinkWidgetCmsData:r,setShowSubMenuModal:l,setSubMenuData:o,handleRedirect:i,handleDefaultHomePage:n,handleRouteChange:c,retailerId:d,isDefaultHomePage:m,setIsDefaultHomePage:u,setSidebar6:h,siteLogo:f})=>{let{commonCMSData:g}=(0,a.useGlobalStore)(),j=g?.headerWidgetCmsData??{},v=j?.isShowSocialIcon??!1,w=j?.showcaseHeaderSocialIconLink?.trim()||"",y=j?.showcaseHeaderSocialIcon?.trim()||"InstagramLogo",N=(0,sj.getPhosphorIcon)(y,"InstagramLogo");return(0,b.useEffect)(()=>{e?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[e]),(0,s.jsxs)("div",{className:`fixed inset-0 z-[60] transition-opacity duration-500 ease-in-out ${e?"opacity-100":"opacity-0 pointer-events-none"}`,children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[var(--sidebar-menu-background-color)]",onClick:()=>
13{t(),(0,ei.handleRemoveOverflowHidden)()}}),(0,s.jsx)("div",{className:"relative z-10 h-dvh overflow-y-auto",children:e&&(0,s.jsxs)("div",{className:"_container flex min-h-full flex-col justify-between py-6 md:py-8",id:"full-screen-menu-overlay",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,s.jsxs)("div",{className:"flex items-center gap-5 md:gap-7",children:[(0,s.jsx)("button",{type:"button","aria-label":"Close menu",onClick:t,className:"text-[var(--fill-header-font-color)] hover:opacity-80 transition-all cursor-pointer transform hover:scale-110 active:scale-95 flex items-center justify-center p-1",id:"btn-close-menu",children:(0,s.jsx)(sw,{className:"text-[var(--fill-header-font-color)] hover:opacity-80 transition-all cursor-pointer transform hover:scale-110 active:scale-95 flex items-center justify-center p-1"})}),(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(x.default,{width:120,height:80,src:f,alt:"Jungle Juice Logo",className:"h-20 w-auto object-contain select-none filter drop-shadow-lg",referrerPolicy:"no-referrer"})})]}),v&&(0,s.jsx)(p.default,{href:w,target:"_blank",rel:"noopener noreferrer",className:"text-[var(--fill-header-font-color)] hover:opacity-80 transition-colors p-2",id:"social-ig-link",children:(0,s.jsx)(N,{size:40,className:"text-[--fill-header-font-color)] hover:opacity-80 transition-all cursor-pointer transform hover:scale-110 active:scale-95 flex items-center justify-center p-1"})})]}),(0,s.jsx)("div",{className:"py-6 px-4 md:px-6",children:(0,s.jsx)("nav",{className:"flex flex-col gap-2 text-left pl-2 md:pl-6",children:r&&r?.length>0&&r.map((e,t)=>e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"group relative flex items-center transition-all duration-700",onClick:()=>{l(!0),o(e)},children:[(0,s.jsx)("span",{className:"text-left select-none text-[2rem] font-mono font-black text-[var(--sidebar-menu-title-text-color)] hover:text-[var(--sidebar-menu-title-hover-text-color)] transition-all duration-700 cursor-pointer focus:outline-none uppercase block w-fit",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:40,className:"text-left select-none text-[2rem] font-mono font-black text-[var(--sidebar-menu-title-text-color)] hover:text-[var(--sidebar-menu-title-hover-text-color)] group-hover:text-[var(--sidebar-menu-title-hover-text-color)] transition-all duration-700 cursor-pointer focus:outline-none uppercase block w-fit"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:i(e),onClick:()=>{h(!1),n(d,m,u),c(e.url)},className:"flex items-center justify-between cursor-pointer",children:(0,s.jsx)("div",{className:"group relative flex items-center transition-all duration-700",children:(0,s.jsx)("span",{className:"text-left select-none text-[2rem] font-mono font-black text-[var(--sidebar-menu-title-text-color)] hover:text-[var(--sidebar-menu-title-hover-text-color)] tracking-wider transition-all duration-700 cursor-pointer focus:outline-none uppercase block w-fit",children:e.label})})},"nav-link"+t))})})]}),(0,s.jsx)("p",{className:"relative z-10 shrink-0 text-xs font-medium text-center mt-auto pt-8 pb-[max(1.5rem,env(safe-area-inset-bottom))] md:pt-12 md:pb-16 buddy-sidebar-menu-footer-link",children:(0,s.jsx)(R.default,{placement:"hamburger",useBrandingColor:!0})})]})})]})},sw=({className:e="",size:t=48})=>{let a="number"==typeof t?`${t}px`:t||"28px";return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:a,height:a,className:`fill-current ${e}`,children:(0,s.jsx)("path",{d:"M114.57,76.07a45.71,45.71,0,0,0-67.51-6.41c-17.58,16.18-19,43.52-4.75,62.77l91.78,123L41.76,379.58c-14.23,19.25-13.11,46.59,4.74,62.77A45.71,45.71,0,0,0,114,435.94L242.89,262.7a12.14,12.14,0,0,0,0-14.23ZM470.24,379.58,377.91,255.45l91.78-123c14.22-19.25,12.83-46.59-4.75-62.77a45.71,45.71,0,0,0-67.51,6.41l-128,172.12a12.14,12.14,0,0,0,0,14.23L398,435.94a45.71,45.71,0,0,0,67.51,6.41C483.35,426.17,484.47,398.83,470.24,379.58Z"})})};var sy=e.i(510512),sN=e.i(889127);let sk=(0,h.default)(()=>e.A(126451),{loadableGenerated:{modules:[159140]}}),sC=({sidebar:e,setSidebar:t,sidebar2:r,setSidebar2:l,sidebar3:o,setSidebar3:i,sidebar4:n,setSidebar4:m,handleDrawer:h,handleRedirect:f,handleRouteChange:g,menuVersionData:j,sidebar5:v,setSidebar5:w,provider:y,sidebar6:N,setSidebar6:k})=>{let{commonCMSData:C,customProductCategoryData:S,todaySpecialsValue:P,setIsDefaultHomePage:D,isDefaultHomePage:L,retailerId:E,isShopPageTwo:F,menuType:I,janeStoreId:H,showcaseSelectedStateName:T}=(0,a.useGlobalStore)(),z=(0,M.usePathname)(),[O,_]=(0,b.useState)(!1),[B,$]=(0,b.useState)(null),{displayCategoryName:W}=(0,c.default)(),V=C?.headerWidgetCmsData,U=C?.menuLinkWidgetCmsData?.links||[],G=C?.homeDealsSectionCmsData,[Y,Z]=(0,b.useState)(""),[q,X]=(0,b.useState)([]),[J,Q]=(0,b.useState)("Main menu"),{isEnable:ee}=(0,sy.useJaneDM)(),et=y==e_.PROVIDER_SHOWCASE,es=()=>{t(!1),l(!1),i(!1),m(!1),_(!1),w(!1),k(!1)},ea=e=>{_(e)};
13async function er(){let e=(0,d.decryptFromCookies)("provider"),t=await (0,el.postData)({url:tj.default.productService.filtered,body:{limit:20,offset:0,menuType:e_.ECOMMERCE_PORTFOLIO_MENU_TYPE,retailerId:e_.ECOMMERCE_RETAILER_ID,provider:e,filter:{...T&&{states:(0,eo.sanitizeArray)([T])||[]}}}});if(t?.error)throw Error(t.error);return t?.menu?.products}let{data:ei}=(0,tv.useQuery)({queryKey:["fetchPortfolioMenuProducts",E,I,o,r,e,n],queryFn:()=>er(),refetchOnMount:!0,refetchOnWindowFocus:!1,enabled:!!et&&(!!e||!!r||!!o||!!n)});return(0,b.useEffect)(()=>{X(P)},[P]),(0,b.useEffect)(()=>{m(!1),es()},[z]),(0,s.jsxs)(s.Fragment,{children:[et?(0,s.jsx)(sh.default,{open:e,handleClose:h,active:J,setActive:Q,menuLinkWidgetCmsData:U,setShowSubMenuModal:ea,setSubMenuData:$,handleRedirect:f,handleDefaultHomePage:u.handleDefaultHomePage,handleRouteChange:g,setSidebar2:l,retailerId:E,isDefaultHomePage:L,setIsDefaultHomePage:D,portfolioMenuProducts:ei,handleCloseAllDrawer:es}):(0,s.jsxs)(sk,{open:e,handleClose:h,anchor:"left",tw:sx.SIDEBAR_MENU_DRAWER_TW,classes:"p-5 !overflow-y-auto md:w-[400px] 2xl:w-[507px]",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(e9.X,{onClick:()=>t(!1),className:"website-cards-text-color text-2xl ml-auto cursor-pointer"}),V?.logo?(0,s.jsx)(x.default,{src:V?.logo||"",width:507,height:80,sizes:"(max-width: 767px) 100vw, (max-width: 1535px) 400px, 507px",className:"w-full h-[80px] object-contain",alt:"logo"}):(0,s.jsx)("div",{className:"animate-pulse bg-slate-200 rounded-lg w-[300px] h-[70px]"}),(0,s.jsx)("br",{}),(0,s.jsx)("p",{className:"_sb2 text-gray-800 global-heading-color",children:"Main Menu"}),(0,s.jsx)("br",{}),U?.map((e,a)=>e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{ea(!0),$(e)},className:"flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:[(0,s.jsx)("p",{className:"text-lg font-medium website-cards-text-color",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"website-cards-text-color"})]},"nav-link"+a):(0,s.jsx)(p.default,{href:f(e),onClick:()=>{t(!1),(0,u.handleDefaultHomePage)(E,L,D),g(e.url)},className:"flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:(0,s.jsx)("div",{className:"text-lg font-medium website-cards-text-color",children:e.label})},"nav-link"+a)),y!==e_.PROVIDER_IFRAME&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"_sb2 text-gray-800 global-heading-color",children:"Category Menu"}),(0,s.jsx)("br",{}),S?.map((e,a)=>(0,s.jsx)("div",{className:"cursor-pointer",onClick:()=>t(!1),children:(0,s.jsx)(p.default,{href:`/category/${(0,u.urlSlug)(e.categoryName)}`,onClick:()=>{g(`/category/${(0,u.urlSlug)(e.categoryName)}`),(0,u.handleDefaultHomePage)(E,L,D)},children:(0,s.jsxs)("div",{className:"flex text-lg gap-2 items-center mb-4 global-body-color",children:[e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",alt:"logo",width:40,height:40,sizes:"40px",className:"mt-0.5 object-contain"}),W(e)]})})},"nav-radio"+a)),(0,s.jsx)(si.default,{todaySpecialsValue:P,customProductCategoryData:S,todaysDealsCmsData:G,setSidebar:t})]})]}),(0,s.jsx)("p",{className:"text-xs font-medium text-center mt-auto pt-12 pb-5",children:(0,s.jsx)(R.default,{placement:"hamburger"})})]}),et?(0,s.jsx)(sp.default,{open:r,handleClose:es,menuLinkWidgetCmsData:U,setShowSubMenuModal:ea,setSubMenuData:$,siteLogo:V?.logo||"",handleRedirect:f}):(0,s.jsxs)(sk,{open:r,handleClose:h,anchor:"left",tw:sx.SIDEBAR_MENU_DRAWER_TW,classes:"pt-5 !overflow-y-auto md:w-[400px] 2xl:w-[507px] relative",children:[(0,s.jsxs)("div",{className:" relative",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-5",children:[(0,s.jsx)("p",{className:"font-bold text-xl website-cards-text-color",children:"Menu"}),(0,s.jsx)(e9.X,{onClick:()=>l(!1),className:"website-cards-text-color text-2xl cursor-pointer"})]}),(0,s.jsx)("div",{className:"flex items-center gap-5 justify-center pt-5 px-6 border-b website-cards-border-color mb-5",children:y!==e_.PROVIDER_IFRAME&&["Main menu","Categories","Deals",...ee&&H?["Featured"]:[]].map(e=>(0,s.jsx)("div",{onClick:()=>Q(e),className:`text-sm font-medium cursor-pointer pb-4 px-4 ${J===e?"text-teal-700 dark:text-[#818cf8] border-b border-teal-700 dark:border-[#818cf8]":"global-body-color border-b border-transparent"}`,children:(0,s.jsx)("p",{children:e})},e))}),"Main menu"===J&&(0,s.jsx)("div",{className:" px-5",children:U?.map((e,t)=>e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{ea(!0),$(e)},className:"flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:[(0,s.jsx)("p",{className:"text-lg font-medium website-cards-text-color",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"website-cards-text-color"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:f(e),onClick:()=>{l(!1),(0,u.handleDefaultHomePage)(E,L,D),g(e.url)},className:"flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:(0,s.jsx)("div",{className:"text-lg font-medium website-cards-text-color",children:e.label})},"nav-link"+t))}),"Categories"===J&&(0,s.jsxs)("div",{className:"px-5",children:[(0,s.jsx)("div",{className:" pt-7 grid grid-cols-3 gap-x-2 gap-y-5 ",children:S?.map((e,t)=>(0,s.jsx)("div",{className:"min-w-0 cursor-pointer",onClick:()=>l(!1),children:(0,s.jsxs)(p.default,{href:`/category/${(0,u.urlSlug)(e.categoryName)}`,className:"block min-w-0",onClick:()=>{(0,u.handleDefaultHomePage)(E,L,D),g(`/category/${(0,u.urlSlug)(e.categoryName)}`)},children:[(0,s.jsx)("div",{className:"w-[88px] h-[88px] flex items-center justify-center mx-auto rounded-full bg-gray-50 product-card-background-color",children:e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",className:"object-cover mx-auto rounded-full w-[60px] h-[60px]",width:50,height:50,alt:"img"})}),(0,s.jsx)("h2",{className:"mt-2 w-full min-w-0 px-0.5 text-center text-sm font-medium leading-tight break-words whitespace-normal website-cards-text-color",children:W(e)})]})},"nav-radio"+t))}
13),(0,s.jsx)(p.default,{href:F?"/shop-cannabis-near-me":(0,ep.withStore)(),onClick:()=>{l(!1),(0,u.handleDefaultHomePage)(E,L,D)},children:(0,s.jsxs)("button",{className:"_button_input_two mt-[52px] flex justify-center items-center gap-3 rounded-full outlined-button-hover !px-3 !shadow-none !py-1 md:!py-2 !w-full",children:["Shop all ",(0,s.jsx)(A.ArrowRight,{size:20})]})})]}),"Featured"===J&&(0,s.jsx)(sN.TopOfMenuRow,{}),"Deals"===J&&(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"px-5 pt-2 ",children:[(0,s.jsxs)("div",{className:"relative mb-2.5",children:[(0,s.jsx)("input",{className:"appearance-none border pl-10 website-cards-border-color hover:border-gray-400 transition-colors rounded-lg w-full py-3 px-3 global-body-color leading-tight focus:outline-none focus:border-gray-400 focus:shadow-outline product-card-background-color ",name:"searchDeals",type:"text",placeholder:"Search deals",value:Y,onChange:e=>{let t=e.target.value?e.target.value?.toLowerCase():"";Z(t),t?X(P?.filter(e=>e?.menuDisplayConfiguration?.name?.toLowerCase()?.includes(t?.trim()))):X(P)}}),(0,s.jsx)("div",{className:"absolute left-0 inset-y-0 flex items-center",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 ml-3 text-gray-400 hover:text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]}),q&&q?.length!==0?(0,s.jsxs)(s.Fragment,{children:[q?.slice(0,10)?.map((e,t)=>(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"pb-4",children:(0,s.jsx)(sn.default,{categoryName:"",special:e,setSidebar:l,isDealsPage:!0,enableHeading:!1})})},"today-deals"+t)),(0,s.jsx)("div",{className:"product-card-background-color sticky w-full py-4 bottom-0",children:(0,s.jsx)(p.default,{href:"/search/deals",onClick:()=>{l(!1),(0,u.handleDefaultHomePage)(E,L,D)},children:(0,s.jsx)(K.default,{className:"w-[60%] mx-auto",children:"All Deals"})})})]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"hidden md:grid grid-cols-1 gap-2",children:(0,s.jsx)("div",{className:"pb-4 text-red-600 text-center",children:"Not found!"})})})]})})]}),(0,s.jsx)("p",{className:"text-xs font-medium text-center mt-auto pt-12 pb-16",children:(0,s.jsx)(R.default,{placement:"hamburger"})})]}),et?(0,s.jsx)(sf.default,{open:o,handleClose:es,menuLinkWidgetCmsData:U,setShowSubMenuModal:ea,setSubMenuData:$,handleRedirect:f,portfolioMenuProducts:ei}):(0,s.jsxs)(sk,{open:o,handleClose:h,anchor:"left",tw:sx.SIDEBAR_MENU_DRAWER_TW,classes:"py-5 !overflow-y-auto md:w-[400px] 2xl:w-[507px] relative mb-5",children:[(0,s.jsxs)("div",{className:" ",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-5",children:[(0,s.jsx)("p",{className:"font-bold text-xl website-cards-text-color",children:"Menu"}),(0,s.jsx)(e9.X,{onClick:()=>i(!1),className:"website-cards-text-color text-2xl cursor-pointer"})]}),(0,s.jsx)("div",{className:"border-b website-cards-border-color pt-6"}),y!==e_.PROVIDER_IFRAME&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"px-5",children:[(0,s.jsx)("p",{className:" mb-6 font-bold text-xl website-cards-text-color pt-6",children:"Shop your Categories"}),(0,s.jsx)("div",{className:" grid grid-cols-4 justify-between gap-y-6 gap-x-3.5",children:S&&S?.length>0&&S.map((e,t)=>(0,s.jsx)("div",{className:"cursor-pointer",onClick:()=>i(!1),children:(0,s.jsxs)(p.default,{href:`/category/${(0,u.urlSlug)(e.categoryName)}`,onClick:()=>{(0,u.handleDefaultHomePage)(E,L,D),g(`/category/${(0,u.urlSlug)(e.categoryName)}`)},children:[e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",width:90,height:90,className:"mx-auto rounded-full w-[70px] h-[70px]",alt:""}),(0,s.jsx)("p",{className:" font-medium text-xs website-cards-text-color mt-3 text-center",children:W(e)})]})},"nav-radio"+t))}
13),(0,s.jsx)(p.default,{href:F?"/shop-cannabis-near-me":(0,ep.withStore)(),onClick:()=>{i(!1),(0,u.handleDefaultHomePage)(E,L,D)},children:(0,s.jsxs)("button",{className:"_button_input_two mt-[52px] flex justify-center items-center gap-3 rounded-full outlined-button-hover !px-3 !shadow-none !py-1 md:!py-2 !w-full",children:["Shop all ",(0,s.jsx)(A.ArrowRight,{size:20})]})})]}),(0,s.jsx)("div",{className:"pt-6"}),(0,s.jsx)("div",{className:"border-b website-cards-border-color"}),(0,s.jsx)("div",{className:"px-5 pt-5",children:(0,s.jsx)(si.default,{todaySpecialsValue:P,customProductCategoryData:S,todaysDealsCmsData:G,setSidebar:i})}),(0,s.jsx)("div",{className:"border-b website-cards-border-color pt-6"})]}),(0,s.jsxs)("div",{className:" px-5 pt-5",children:[(0,s.jsx)("p",{className:"m-0 font-bold text-xl website-cards-text-color",children:"Main Menu"}),U?.map((e,t)=>e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{ea(!0),$(e)},className:"flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:[(0,s.jsx)("p",{className:"text-lg font-medium website-cards-text-color",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"website-cards-text-color"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:f(e),onClick:()=>{i(!1),(0,u.handleDefaultHomePage)(E,L,D),g(e.url)},children:(0,s.jsx)("div",{className:" flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:(0,s.jsx)("span",{className:"text-lg font-medium website-cards-text-color",children:e.label})})},"nav-link"+t))]})]}),(0,s.jsx)("p",{className:"text-xs font-medium text-center mt-auto pt-12 pb-16",children:(0,s.jsx)(R.default,{placement:"hamburger"})})]}),et?(0,s.jsx)(sg.default,{open:n,handleClose:es,menuLinkWidgetCmsData:U,setShowSubMenuModal:ea,setSubMenuData:$,handleRedirect:f,handleDefaultHomePage:u.handleDefaultHomePage,handleRouteChange:g,retailerId:E,isDefaultHomePage:L,setIsDefaultHomePage:D}):(0,s.jsx)(sk,{open:n,handleClose:h,anchor:"left",tw:sx.SIDEBAR_MENU_DRAWER_TW,classes:"py-5 !overflow-y-auto md:w-[400px] 2xl:w-[507px] relative mb-5",children:(0,s.jsx)(su,{isMenuOpen:n,setIsMenuOpen:m,handleMenuClick:h,setSubMenuData:$,handleRedirect:f,commonCMSData:C,setShowSubMenuModal:ea,showSubMenuModal:O,handleRouteChange:g,provider:y||""})}),et?(0,s.jsx)(sb,{open:v,handleClose:es,menuLinkWidgetCmsData:U,setShowSubMenuModal:ea,setSubMenuData:$,handleRedirect:f,handleDefaultHomePage:u.handleDefaultHomePage,handleRouteChange:g,retailerId:E,isDefaultHomePage:L,setIsDefaultHomePage:D,setSidebar5:w,siteLogo:V?.logo||""}):(0,s.jsxs)(sk,{open:v,handleClose:h,anchor:"left",tw:sx.SIDEBAR_MENU_DRAWER_TW,classes:"p-5 !overflow-y-auto md:w-[400px] 2xl:w-[507px]",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(e9.X,{onClick:()=>w(!1),className:"buddy-sidebar-menu-close-icon text-2xl ml-auto cursor-pointer"}),V?.logo?(0,s.jsx)(x.default,{src:V?.logo||"",width:507,height:80,sizes:"(max-width: 767px) 100vw, (max-width: 1535px) 400px, 507px",className:"w-full h-[80px] object-contain",alt:"logo"}):(0,s.jsx)("div",{className:"animate-pulse bg-slate-200 rounded-lg w-[300px] h-[70px]"}),(0,s.jsx)("br",{}),(0,s.jsx)("p",{className:"_sb2 text-gray-800 global-heading-color",children:"Main Menu"}),(0,s.jsx)("br",{}),U?.map((e,t)=>e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{ea(!0),$(e)},className:"flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:[(0,s.jsx)("p",{className:"text-lg font-medium global-body-color",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"buddy-sidebar-menu-sublink-chevron"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:f(e),onClick:()=>{w(!1),(0,u.handleDefaultHomePage)(E,L,D),g(e.url)},className:"flex items-center justify-between border-b website-cards-border-color py-4 cursor-pointer sidebar-menu-font-family",children:(0,s.jsx)("div",{className:"text-lg font-medium global-body-color",children:e.label})},"nav-link"+t)),(0,s.jsx)("p",{className:"_sb2 text-gray-800 global-heading-color",children:"Category Menu"}),(0,s.jsx)("br",{}),S?.map((e,t)=>(0,s.jsx)("div",{className:"cursor-pointer",onClick:()=>w(!1),children:(0,s.jsx)(p.default,{href:`/category/${(0,u.urlSlug)(e.categoryName)}`,onClick:()=>{g(`/category/${(0,u.urlSlug)(e.categoryName)}`),(0,u.handleDefaultHomePage)(E,L,D)},children:(0,s.jsxs)("div",{className:"flex text-lg gap-2 items-center mb-4 global-body-color",children:[e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",alt:"logo",width:40,height:40,sizes:"40px",className:"mt-0.5 object-contain"}),W(e)]})})},"nav-radio"+t)),(0,s.jsx)(si.default,{todaySpecialsValue:P,customProductCategoryData:S,todaysDealsCmsData:G,setSidebar:w})]}),(0,s.jsx)("p",{className:"text-xs font-medium text-center mt-auto pt-12 pb-5",children:(0,s.jsx)(R.default,{placement:"hamburger"})})]}),et?(0,s.jsx)(sv,{open:N,handleClose:es,menuLinkWidgetCmsData:U,setShowSubMenuModal:ea,setSubMenuData:$,handleRedirect:f,handleDefaultHomePage:u.handleDefaultHomePage,handleRouteChange:g,retailerId:E,isDefaultHomePage:L,setIsDefaultHomePage:D,setSidebar6:k,siteLogo:V?.logo||""}):(0,s.jsxs)(sk,{open:N,handleClose:h,anchor:"left",tw:sx.SIDEBAR_MENU_DRAWER_TW,classes:"p-5 !overflow-y-auto md:w-[400px] 2xl:w-[507px]",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(e9.X,{onClick:()=>k(!1),className:"buddy-sidebar-menu-close-icon text-2xl ml-auto cursor-pointer"}),V?.logo?(0,s.jsx)(x.default,{src:V?.logo||"",width:507,height:80,sizes:"(max-width: 767px) 100v
13w, (max-width: 1535px) 400px, 507px",className:"w-full h-[80px] object-contain",alt:"logo"}):(0,s.jsx)("div",{className:"animate-pulse bg-slate-200 rounded-lg w-[300px] h-[70px]"}),(0,s.jsx)("br",{}),(0,s.jsx)("p",{className:"_sb2 text-gray-800",children:"Main Menu"}),(0,s.jsx)("br",{}),U?.map((e,t)=>e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{onClick:()=>{ea(!0),$(e)},className:"flex items-center justify-between border-b border-gray-200 py-4 cursor-pointer sidebar-menu-font-family",children:[(0,s.jsx)("p",{className:"text-lg font-medium text-gray-600",children:e.label}),(0,s.jsx)(ef.CaretRight,{size:20,className:"buddy-sidebar-menu-sublink-chevron"})]},"nav-link"+t):(0,s.jsx)(p.default,{href:f(e),onClick:()=>{k(!1),(0,u.handleDefaultHomePage)(E,L,D),g(e.url)},className:"flex items-center justify-between border-b border-gray-200 py-4 cursor-pointer sidebar-menu-font-family",children:(0,s.jsx)("div",{className:"text-lg font-medium text-gray-600",children:e.label})},"nav-link"+t)),(0,s.jsx)("p",{className:"_sb2 text-gray-800",children:"Category Menu"}),(0,s.jsx)("br",{}),S?.map((e,t)=>(0,s.jsx)("div",{className:"cursor-pointer",onClick:()=>k(!1),children:(0,s.jsx)(p.default,{href:`/category/${(0,u.urlSlug)(e.categoryName)}`,onClick:()=>{g(`/category/${(0,u.urlSlug)(e.categoryName)}`),(0,u.handleDefaultHomePage)(E,L,D)},children:(0,s.jsxs)("div",{className:"flex text-lg gap-2 items-center mb-4",children:[e?.image&&(0,s.jsx)(x.default,{src:e?.image||"",alt:"logo",width:40,height:40,sizes:"40px",className:"mt-0.5 object-contain"}),W(e)]})})},"nav-radio"+t)),(0,s.jsx)(si.default,{todaySpecialsValue:P,customProductCategoryData:S,todaysDealsCmsData:G,setSidebar:k})]}),(0,s.jsx)("p",{className:"text-xs font-medium text-center mt-auto pt-12 pb-5",children:(0,s.jsx)(R.default,{placement:"hamburger"})})]}),(0,s.jsx)(sc.default,{showSubMenuModal:O,setShowSubMenuModal:ea,subMenuData:B,handleRedirect:f,handleCloseAllDrawer:es,handleRouteChange:g,setIsMenuOpen:j?.isMenuOne?t:j?.isMenuTwo?l:j?.isMenuThree?i:j?.isMenuFour?m:j?.isMenuFive&&et?w:j?.isMenuSix&&et?k:t})]})};var sS=e.i(215461),sP=e.i(43161),sD=e.i(25843),sL=e.i(8014),sR=e.i(244156),sM=e.i(587658),sE=e.i(743296),sF=e.i(331991),sI=e.i(881886);let sA=()=>{let{retailerId:e,orderType:t,commonCMSData:r,retailerList:l}=(0,a.useGlobalStore)(),{setIsOpenPreferencePopup:o}=(0,eD.useModalStore)(),[i,n]=(0,b.useState)("PICKUP"),c=(0,b.useRef)(null),m=r?.preferenceModalCmsData||{},h=r?.stateSelectionSettingsCMS?.enableStateSelector,x=!r?.deliverySettingsCMS?.turnOffCurbsidePickup,{title:p,subtitle:g,deliverytext:j,pickuptext:v,deliveryicon:w,deliverytitle:y,deliverysubtitle:N}=m,[k,C]=(0,b.useState)([]),[S,P]=(0,b.useState)(""),[D,L]=(0,b.useState)(!1),R=(0,d.decryptFromCookies)("canUserSelectedState")||"";(0,b.useEffect)(()=>{R&&h?C(l?.filter(e=>e.addressObject?.state===R)):C(l),P(R)},[l,R,h]);let M=(0,u.sortArrayStateAlphabetically)(l)?.reduce((e,t)=>{let s=t?.addressObject?.state;return e[s]||(e[s]=[]),e[s].push(t),e},{}),E=M?Object.keys(M):[],F=e=>{let t=l?.filter(t=>t.addressObject?.state===e);n("PICKUP"),P(e),C(t),L(!1)};return(0,b.useEffect)(()=>{n("CURBSIDE_PICKUP"===t?"CURBSIDE":t)},[t]),(0,s.jsxs)("div",{className:"py-8 md:px-12",ref:c,children:[e?(0,s.jsx)(e9.X,{onClick:()=>o(!1),className:"absolute top-3 right-5 text-3xl bg-white z-10 p-1 cursor-pointer hidden"}):null,(0,s.jsx)("div",{className:"h-[570px] overflow-y-auto pr-2",children:!h||S||e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"font-semibold text-gray-800 mb-5 ",children:"How do you want to shop?"}),(0,s.jsxs)("div",{className:"mb-5 flex  h-[81px] w-full md:w-[398px] bg-[#EBF6E6] rounded-md items-center py-7 px-4 gap-4",children:[(0,s.jsx)(Z.MapPin,{size:24,className:"text-[#34A203]"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:" text-md md:text-base font-semibold primary-text",children:p}),(0,s.jsx)("p",{className:" text-sm text-secondary_text text-gray-600",children:g})]})]}),h&&e&&(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{className:"font-medium mb-2 inline-block",children:"Select a State"}),(0,s.jsxs)("div",{className:"w-full rounded-md flex items-center justify-between px-4 py-2 border border-primary hover:bg-primary hover:text-white transition-all cursor-pointer",onClick:()=>L(e=>!e),children:[sM.default.find(e=>e.code===S)?.name,D?(0,s.jsx)(sF.CaretUp,{size:16}):(0,s.jsx)(eF.CaretDown,{size:16})]}),D&&(0,s.jsx)("div",{className:"mt-2 rounded-md bg-white p-4 border",children:E?.length>0&&(0,u.sortArrayStateAlphabeticallyAfterFilter)(E)?.map((e,t)=>{let a=sM.default.filter(t=>t.code==e);return(0,s.jsxs)("div",{className:"flex justify-between items-center mt-2 rounded-full border shadow px-4 py-3 transition-all cursor-pointer secondary-button-hover",onClick:()=>F(e),children:[(0,s.jsxs)("span",{className:"w-full flex items-center gap-8",children:[(0,s.jsx)("span",{children:(0,s.jsx)(Z.MapPin,{size:20})}),(0,s.jsx)("span",{className:"me-4 font-medium text-sm",children:a?.[0]?.name})]}),(0,s.jsx)(sI.ArrowCircleRight,{size:20})]},"landing-map-one-item"+t)})})]}),(0,s.jsxs)("div",{className:(0,ei.cn)("grid grid-cols-1 gap-5 mb-6",(x||!r?.deliverySettingsCMS?.hideDeliveryBtn)&&"grid-cols-2",x&&!r?.deliverySettingsCMS?.hideDeliveryBtn&&"grid-cols-3"),children:[(0,s.jsx)(sH,{title:"PICKUP",active:i,setActive:n}),x&&(0,s.jsx)(sH,{title:"CURBSIDE",active:i,setActive:n}),r?.deliverySettingsCMS?.hideDeliveryBtn?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(sH,{title:"DELIVERY",active:i,setActive:n})]}),"PICKUP"===i&&(0,s.jsx)(sR.default,{pickuptext:v,scrollTopRef:c.current,allRetailer:k}),"CURBSIDE"===i&&x&&(0,s.jsx)(sE.default,{pickuptext:v,scrollTopRef:c.current,allRetailer:k}),"DELIVERY"===i&&r&&r?.deliverySettingsCMS&&(r?.deliverySettingsCMS?.isActive?(0,s.jsx)(sL.default,{deliverytext:j,deliveryicon:w,deliverytitle:y,deliverysubtitle:N}):(0,s.jsx)("div",{className:"flex justify-center items-center",children:(0,s.jsx)("p",{className:"text-xl md:text-2xl font-semibold text-gray-800 text-center mt-5",children:"Sorry, delivery is currently unavailable."})}))]}):(0,s.jsxs)("div",{className:"flex flex-col gap-4 justify-center",children:[(0,s.jsx)("div",{className:"w-full border-b py-4",children:(0,s.jsx)("p",{className:"text-xl font-semibold text-center",children:"Select a State"})}),(0,s.jsx)("div",{children:E?.length>0?(0,u.sortArrayStateAlphabeticallyAfterFilter)(E)?.map((e,t)=>{let a=sM.default.filter(t=>t.code==e);return(0,s.jsxs)("div",{className:"flex justify-between items-center mt-2 rounded-full border shadow px-4 py-2 hover:bg-gray-200 transition-all cursor-pointer text-gray-800",onClick:()=>F(e),children:[(0,s.jsxs)("span",{className:"w-full flex items-center gap-8",children:[(0,s.jsx)("span",{children:(0,s.jsx)(Z.MapPin,{size:20})}),(0,s.jsx)("span",{className:"me-4 font-medium text-lg",children:a?.[0]?.name})]}),(0,s.jsx)(sI.ArrowCircleRight,{size:20})]},"landing-map-one-item"+t)}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.default,{style:{width:"100%",height:"50px",borderRadius:"50px"}}),(0,s.jsx)(f.default,{style:{width:"100%",height:"50px",borderRadius:"50px"}}),(0,s.jsx)(f.default,{style:{width:"100%",height:"50px",borderRadius:"50px"}})]})})]})})]})},sH=({title:e,active:t,setActive:a})=>(0,s.jsx)("div",{className:` flex justify-center items-center gap-2 border-2 rounded-full p-2 py-3 bg-white duration-500 group cursor-pointer ${t===e?"fill-button":" outlined-button"}`,onClick:()=>a(e),children:(0,s.jsx)("p",{className:"text-xs md:text-base font-semibold text-center ",children:(0,u.makeTitleCase)(e)})});var sT=e.i(595593),sz=e.i(95724),sO=e.i(139154),s_=e.i(378295),sB=e.i(503718),s$=e.i(655613);let sW=({activeVersionCms:e})=>{let{isOpenPreferenceDrawerNew:t,setIsOpenPreferenceDrawerNew:a}=(0,eD.useModalStore)(),{retailerId:r,commonCMSData:l,canSelectedRetailerId:o,setIsOpenPreferencePopup:i,active:n,setActive:c,scrollTopRef:d,canStateSelect:m,isCurbsidePickup:u,modalCmsData:h,allRetailer:x,selectedState:p,setSelectedState:f,stateNameGroup:g,handleRetailerStateSet:b,togglePreferencePopup:j}=(0,sD.default)();return(0,s.jsx)(s.Fragment,{children:e?.isRetailerVersionFive?(0,s.jsx)(s_.default,{preferenceBar:t,handlePreferenceDrawer:()=>a(!1)}):e?.isRetailerVersionTwo?(0,s.jsx)(sT.default,{preferenceBar:t,handlePreferenceDrawer:()=>a(!1)}):e?.isRetailerVersionThree?(0,s.jsx)(sz.default,{preferenceBar:t,handlePreferenceDrawer:()=>a(!1)}):e?.isRetailerVersionFour?(0,s.jsx)(s$.Modal,{open:t,handleClose:()=>a(!1),className:" md:w-[700px] md:rounded-lg sb w-[100%] !max-h-[90%] rounded-lg",padding:"px-[17px]",children:(0,s.jsx)(sO.default,{retailerId:r,commonCMSData:l,canSelectedRetailerId:o??!1,setIsOpenPreferencePopup:i,active:n,setActive:c,scrollTopRef:d,canStateSelect:m,isCurbsidePickup:u,modalCmsData:h,selectedState:p,setSelectedState:f,stateNameGroup:g,allRetailer:x,handleRetailerStateSet:b,togglePreferencePopup:j})}):(0,s.jsxs)(sB.default,{open:t,handleClose:()=>a(!1),children:[(0,s.jsx)("button",{className:"absolute top-3 right-5 text-3xl bg-white z-10 p-1 cursor-pointer",onClick:()=>a(!1),children:(0,s.jsx)(e9.X,{size:20})}),(0,s.jsx)(sA,{})]})})};var sV=e.i(199854),sU=e.i(306203),sG=e.i(505539),sK=e.i(24633),sY=e.i(32193),sZ=e.i(710793),sq=e.i(161652),sX=e.i(264459),sJ=e.i(652987),sQ=e.i(21074),s0=e.i(446691);let s1=()=>{let e=(0,M.useRouter)(),{token:t}=(0,eR.useUserData)(),{setRouteLoader:r,setOpenSignInRequiredModal:l,storeOpenStatus:o,commonCMSData:i}=(0,a.useGlobalStore)(),{setIsOpenWishlist:n,setCurrentWishlistItem:c}
13=(0,eM.useWishlistStore)(),u=(0,d.decryptFromCookies)("provider"),h=i?.cartProductSectionCmsData?.enableShowSimilarProductBtn,{handleShowSimilarProducts:f,similarProducts:g,isLoading:j,showSimilarProductsModalOpen:v,setShowSimilarProductsModalOpen:w}=(0,sJ.default)({enableShowSimilarProductBtn:h,provider:u}),{handleQuantityChange:y,showPrice:N,showPriceForECommerce:k,handleRemoveItem:C,isCartSidebarOpen:S,setIsCartSidebarOpen:P,cartList:D,isAddingToCart:L,handleCheckout:R,subtotal:E,taxAmount:F,discountAmount:I,totalAmount:A,cartCounter:H,handleClearAll:T,isOpenOfferModal:z,handleConditionalCheckout:O,handleCloseOfferModal:_}=(0,sG.default)(),[B,$]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{S&&!B&&$(!0)},[S,B]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tw.default,{open:S,tw:"w-full md:!w-[500px]",handleClose:()=>P(!1),children:(0,s.jsxs)("div",{className:"relative h-full",children:[(0,s.jsxs)("div",{className:"min-h-[130px]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-5 px-3 border-b border-gray-200 ",children:[(0,s.jsx)("p",{className:"text-xl font-bold website-cards-text-color",children:"Shopping Cart"})," ",(0,s.jsx)(e9.X,{size:20,className:"cursor-pointer website-cards-text-color",onClick:()=>P(!1)})]}),i?.cartProductSectionCmsData?.isShowLocation&&(0,m.isProviderWithManagedCart)(u)?(0,s.jsx)(sU.default,{cls:"px-3 py-7"}):(0,s.jsx)(s.Fragment,{}),(0,s.jsxs)("div",{className:" flex items-center justify-between pb-3 border-b border-gray-200 px-3 mt-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 font-semibold",children:[(0,s.jsx)("p",{className:"website-cards-text-color",children:"Your Items"}),(0,s.jsxs)("span",{className:"website-cards-text-color",children:["(",H,")"]})]}),D?.length>=1&&(0,s.jsx)("span",{onClick:T,className:"flex items-center gap-2 text-xs font-medium text-gray-800 cursor-pointer",children:"Clear all"})]})]}),(0,s.jsxs)("div",{className:(0,ei.cn)(D?.length>=1?"h-[calc(100dvh-450px)]":"h-auto","overflow-y-auto"),children:[B&&(0,s.jsx)(tp.default,{zoneId:"7TGo1",pageSize:1,className:"_container",mode:["desktop","tablet"]}
13),D?.length>=1?(0,s.jsx)("div",{className:"px-1",children:D?.map((a,r)=>(0,s.jsxs)("div",{className:"flex items-start justify-between px-4 gap-3 pb-5 border-b border-gray-200 pt-4 ",children:[(0,s.jsxs)("div",{className:"flex justify-start gap-3 items-start w-[85%]",children:[(0,s.jsx)(sZ.default,{onClick:()=>{e.push(`/product/${a?.product?.slug}`),P(!1)},src:a?.product?.image||"",showPlaceholder:!0,width:75,height:75,sizes:"75px",className:"cursor-pointer object-contain",alt:a?.product?.name||"Product"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{onClick:()=>{e.push(`/product/${a?.product?.slug}`),P(!1)},className:"text-[16px] text-gray-800 font-medium mb-1 cursor-pointer custom-heading-font",children:a?.product?.name}),"N/A"!==(0,sK.formatWeight)(a?.option)&&a?.product?.category!=="EDIBLES"&&(0,s.jsxs)("p",{className:"text-xs text-gray-700 font-medium mb-1",children:["Weight : ",(0,sK.formatWeight)(a.option)]}),(0,m.isProviderWithPosCartLinePrice)(u)&&(0,s.jsxs)("p",{className:"text-xs text-gray-700 font-medium",children:["Price : $",N(a)]}),(0,m.isProviderEcommerce)(u??null)&&(0,s.jsxs)("p",{className:"text-xs text-gray-700 font-medium",children:["Price : $",k(a)]}),a?.specialDiscount?.specialName&&(0,s.jsxs)(p.default,{href:`/specials?specialSlug=${a?.specialDiscount?.specialSlug}`,className:"text-sm text-[#C81E1E] font-medium flex items-center gap-1 mt-1",onClick:()=>P(!1),children:[(0,s.jsx)(tR.Tag,{}),a?.specialDiscount?.specialName]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mt-4",children:[(0,s.jsx)(sY.default,{className:"py-1 px-2 w-[115px] text-xs",quantity:Math.max(a?.quantity??1,1),maxQuantity:(0,eP.getProductVariantMaxQuantity)(a?.option,a?.product),onQuantityChange:e=>y(r,e)}),h&&(0,s.jsx)(s0.default,{onClick:()=>f?.(a?.product)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-start mt-5 gap-5",children:[(0,s.jsx)("button",{className:"text-sm font-semibold text-gray-800 underline",onClick:()=>t?void(c({...a?.product}),n(!0)):l(!0),children:"Move to Wishlist"}),(0,s.jsx)("button",{className:"text-sm text-[#1C64F2] font-semibold btn-save-for-later-custom-color",onClick:()=>t?C(a,!0):l(!0),children:"Save for Later"})]})]})]}),(0,s.jsx)(sq.Trash,{className:"text-[#C81E1E] text-xl cursor-pointer self-center",onClick:()=>C(a)})]},"product"+r))}):(0,s.jsx)(s.Fragment,{children:L?(0,s.jsxs)(s.Fragment,{children:[[1,2].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center px-7 gap-3 pb-5 border-b border-gray-200 pt-4",children:[(0,s.jsx)("div",{className:"bg-gray-300 rounded w-36 h-28"}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("div",{className:"bg-gray-300 h-4 w-full mb-2"}),(0,s.jsx)("div",{className:"bg-gray-300 h-4 w-48 mb-2"}),(0,s.jsx)("div",{className:"bg-gray-300 h-4 w-48 mb-2"}),(0,s.jsxs)("div",{className:"flex gap-5",children:[(0,s.jsx)("div",{className:"bg-gray-300 h-8 w-8 rounded-full"}),(0,s.jsx)("div",{className:"bg-gray-300 h-6 w-2 self-center"}),(0,s.jsx)("div",{className:"bg-gray-300 h-8 w-8 rounded-full"})]})]})]},"cartItemS"+t)),(0,s.jsxs)("div",{className:"w-full bg-white fixed 2xl:bottom-5 px-3 py-3 !bottom-0",children:[(0,s.jsxs)("div",{className:"flex justify-between gap-5 items-center mb-2 px-7",children:[(0,s.jsx)("p",{className:"bg-gray-300 h-4 mb-1 w-1/3 rounded-full"}),(0,s.jsx)("p",{className:"bg-gray-300 h-4 mb-1 w-12 rounded-full"})]}),(0,s.jsxs)("div",{className:"flex justify-between gap-5 items-center mb-2 px-7",children:[(0,s.jsx)("p",{className:"bg-gray-300 h-4 mb-1 w-1/3 rounded-full"}),(0,s.jsx)("p",{className:"bg-gray-300 h-4 mb-1 w-12 rounded-full"})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"flex justify-between gap-5 items-center py-3 px-7",children:[(0,s.jsx)("p",{className:"bg-gray-300 h-4 mb-1 w-1/3 rounded-full"}),(0,s.jsx)("p",{className:"bg-gray-300 h-4 mb-1 w-12 rounded-full"})]}),(0,s.jsxs)("div",{className:"mx-6 flex items-center gap-8 mt-4",children:[(0,s.jsx)("div",{className:"bg-gray-300 h-8 rounded-full w-1/2"}),(0,s.jsx)("div",{className:"bg-gray-300 h-8 rounded-full w-1/2"})]})]})]}):(0,s.jsxs)("div",{className:"flex justify-center items-center mt-6 flex-col py-[15%] h-[60dvh] overflow-y-auto",children:[(0,s.jsx)("div",{children:(0,s.jsx)(x.default,{src:"/images/empty-cart.svg",alt:"img",width:180,height:180,sizes:"180px",className:"w-[180px] h-[180px] object-contain"})}),(0,s.jsx)("p",{className:"text-xl font-semibold text-center mt-3 website-cards-text-color",children:"Shopping cart is empty!"}),(0,s.jsx)(K.default,{className:"w-full mt-3 !px-12 md:!px-16 whitespace-nowrap fill-button-hover border border-gray-200 rounded-full transition-colors duration-300",path:"/cart",onClick:()=>{r(!0),P(!1)},children:"View Cart"})]})})]}),D?.length>=1?(0,s.jsxs)("div",{className:"w-full h-[220px] bg-gray-50 fixed 2xl:bottom-5 px-3 py-3 !bottom-0",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-2 px-7 text-lg font-bold",children:[(0,s.jsxs)("p",{className:"website-cards-text-color",children:["Item (",H,")"]}),(0,s.jsxs)("p",{className:"website-cards-text-color",children:["$",E.toFixed(2)]})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center mb-2 px-7",children:[(0,s.jsx)("p",{className:"website-cards-text-color",children:"Taxes"}),(0,s.jsxs)("p",{className:"website-cards-text-color",children:["$",F]})]}),I>0&&(0,s.jsxs)("div",{className:"flex justify-between items-center mb-2 px-7",children:[(0,s.jsx)("p",{className:"website-cards-text-color",children:"Discount"}),(0,s.jsxs)("p",{className:"website-cards-text-color",children:["-$",I.toFixed(2)]})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"flex justify-between items-center py-3 px-7 text-lg font-bold",children:[(0,s.jsx)("p",{className:"website-cards-text-color",children:"Total Price"}),(0,s.jsxs)("p",{className:"website-cards-text-color",children:["$",A]})]}),(0,s.jsxs)("div",{className:"mx-6 flex items-center justify-center md:justify-start gap-8",children:[(0,s.jsx)(K.default,{className:"w-full !px-12 md:!px-16 whitespace-nowrap bg-transparent border border-gray-200 rounded-full outlined-button-hover duration-300",path:"/cart",onClick:()=>{r(!0),P(!1)},children:"View Cart"}),(0,s.jsx)(K.default,{className:"w-full my-4 sm:!px-8 fill-button-hover",onClick:O,disabled:i?.retailerClosePopupCMS?.isTurnOn&&!o,children:"Checkout"})]})]}):(0,s.jsx)(s.Fragment,{children:L&&(0,s.jsxs)("div",{className:"mt-52 md:mt-0",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center gap-2 py-3 px-7",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"}),(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"flex justify-between items-center gap-2 py-3 px-7",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"}),(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"flex justify-between items-center gap-2 py-3 px-7",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"}),(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"flex justify-between items-center gap-2 py-3 px-7",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"}),(0,s.jsx)("div",{className:"h-4 bg-gray-300 rounded w-1/2 animate-pulse"})]}),(0,s.jsx)("hr",{}),(0,s.jsxs)("div",{className:"mx-6",children:[(0,s.jsx)("div",{className:"w-full my-4 h-12 bg-gray-300 rounded-full animate-pulse"}),(0,s.jsx)("div",{className:"w-full h-12 bg-gray-300 rounded-full animate-pulse"})]})]})})]})}),(0,s.jsx)(sX.default,{isOpen:z,handleClose:_,handleCheckout:R,setRouteLoader:r,setIsCartSidebarOpen:P}),v&&(0,s.jsx)(sQ.default,{open:v,handleClose:()=>w(!1),products:g,isLoading:j})]})};var s2=e.i(105267),s3=e.i(16820),s5=e.i(475537),s4=e.i(337223);let s6=()=>{let e=(0,M.useRouter)(),{setRouteLoader:t,storeOpenStatus:r,commonCMSData:l}=(0,a.useGlobalStore)(),o=(0,eP.useCartStore)(e=>e.feesAmount),i=(0,eP.useCartStore)(e=>e.flowhubPurchaseLimitPercentage),n=(0,s4.isFlowhubCheckoutBlockedByPurchaseLimit)(i),{handleQuantityChange:c,handleRemoveItem:d,isCartSidebarOpen:m,setIsCartSidebarOpen:u,cartList:h,isAddingToCart:p,handleCheckout:f,subtotal:g,taxAmount:j,discountAmount:v,totalAmount:w,cartCounter:y,handleClearAll:N,isOpenOfferModal:k,handleConditionalCheckout:C,handleCloseOfferModal:S}=(0,sG.default)(),[P,D]=(0,b.useState)(!1),L=(0,s2.FlowhubCartSummaryRows)({subtotal:g,taxAmount:j,discountAmount:v,feesAmount:o,totalAmount:w,cartCounter:y});return(0,b.useEffect)(()=>{m&&!P&&D(!0)},[m,P]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tw.default,{open:m,tw:"w-full md:!w-[500px]",handleClose:()=>u(!1),children:(0,s.jsxs)("div",{className:"relative h-full flex flex-col",children:[(0,s.jsxs)("div",{className:"min-h-[130px]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-5 px-3 border-b border-gray-200",children:[(0,s.jsx)("p",{className:"text-xl font-bold website-cards-text-color",children:"Shopping Cart"}),(0,s.jsx)(e9.X,{size:20,className:"cursor-pointer website-cards-text-color",onClick:()=>u(!1)})]}),h?.length>=1&&(0,s.jsx)(s5.default,{variant:"inline",className:"mx-3 mt-3 shadow-none"}),(0,s.jsxs)("div",{className:"flex items-center justify-between pb-3 border-b border-gray-200 px-3 mt-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 font-semibold",children:[(0,s.jsx)("p",{className:"website-cards-text-color",children:"Your Items"}),(0,s.jsxs)("span",{className:"website-cards-text-color",children:["(",y,")"]})]}),h?.length>=1&&(0,s.jsx)("span",{onClick:N,className:"flex items-center gap-2 text-xs font-medium text-gray-800 cursor-pointer",children:"Clear all"})]})]}),(0,s.jsxs)("div",{className:(0,ei.cn)(h?.length>=1?"h-[calc(100dvh-450px)]":"h-auto","overflow-y-auto"),children:[P&&(0,s.jsx)(tp.default,{zoneId:"7TGo1",pageSize:1,className:"_container",mode:["desktop","tablet"]}
13),h?.length>=1?(0,s.jsx)("div",{className:"px-1",children:h.map((t,a)=>(0,s.jsx)(s3.default,{item:t,index:a,onProductClick:()=>{let s;(s=t?.product?.slug)&&(e.push(`/product/${s}`),u(!1))},onQuantityChange:c,onRemove:d},`flowhub-cart-${t.id??t.productId}-${a}`))}):p?(0,s.jsx)(s.Fragment,{children:[1,2].map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center px-7 gap-3 pb-5 border-b border-gray-200 pt-4",children:[(0,s.jsx)("div",{className:"bg-gray-300 rounded w-36 h-28"}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("div",{className:"bg-gray-300 h-4 w-full mb-2"}),(0,s.jsx)("div",{className:"bg-gray-300 h-4 w-48 mb-2"}),(0,s.jsx)("div",{className:"bg-gray-300 h-4 w-48 mb-2"})]})]},`flowhub-cart-skeleton-${t}`))}):(0,s.jsxs)("div",{className:"flex justify-center items-center mt-6 flex-col py-[25%]",children:[(0,s.jsx)(x.default,{src:"/images/empty-cart.svg",alt:"Empty cart",width:180,height:180,sizes:"180px",className:"w-[180px] h-[180px] object-contain"}),(0,s.jsx)("p",{className:"text-xl font-semibold text-center mt-3 website-cards-text-color",children:"Shopping cart is empty!"}),(0,s.jsx)(K.default,{className:"w-full mt-3 !px-12 md:!px-16 whitespace-nowrap fill-button-hover border border-gray-200 rounded-full transition-colors duration-300",path:"/cart",onClick:()=>{t(!0),u(!1)},children:"View Cart"})]})]}),h?.length>=1?(0,s.jsxs)("div",{className:"mt-auto w-full border-t border-gray-200 bg-gradient-to-b from-gray-50 to-white px-3 py-4",children:[(0,s.jsx)("div",{className:"rounded-xl border border-gray-100 bg-white px-4 py-3 shadow-sm",children:L.map((e,t)=>(0,s.jsxs)("div",{children:[e.emphasized&&t>0&&(0,s.jsx)("div",{className:"my-2 border-t border-gray-100"}),(0,s.jsxs)("div",{className:(0,ei.cn)("flex items-center justify-between",e.emphasized?"py-1 text-base font-bold text-gray-900":"mb-1.5 text-sm font-medium text-gray-600"),children:[(0,s.jsx)("p",{children:e.label}),(0,s.jsxs)("p",{children:["$",e.value]})]})]},e.label))}),n&&(0,s.jsx)("p",{className:"mt-2 px-1 text-center text-[10px] text-red-600",children:s4.FLOWHUB_PURCHASE_LIMIT_CHECKOUT_BLOCKED_MESSAGE}),(0,s.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[(0,s.jsx)(K.default,{className:"w-full fill-button-hover whitespace-nowrap border border-gray-200 rounded-full duration-300",path:"/cart",onClick:()=>{t(!0),u(!1)},children:"View Cart"}),(0,s.jsx)(K.default,{className:"w-full fill-button-hover",onClick:C,disabled:n||l?.retailerClosePopupCMS?.isTurnOn&&!r,children:"Checkout"})]})]}):null]})}),(0,s.jsx)(sX.default,{isOpen:k,handleClose:S,handleCheckout:f,setRouteLoader:t,setIsCartSidebarOpen:u})]})};var s8=e.i(320887);let s7=()=>{let{showcaseSelectedStateName:e,commonCMSData:t,setShowcaseSelectedStatePopup:r}=(0,a.useGlobalStore)(),l=t?.stateShowingSettingsCMS;return l?.isEnabled?(0,s.jsxs)("div",{className:"flex items-center gap-1 xl:gap-2 md:ml-5",onClick:()=>r(!0),children:[(0,s.jsx)(Z.MapPin,{className:"md:text-xl xl:text-2xl header-font-color"}),(0,s.jsx)("div",{className:"cursor-pointer max-md:flex items-center flex-1",children:(0,s.jsx)("p",{className:"_button_input xl:-mb-1 md:pb-1 text-gray-600 header-font-color",children:e||"Select a state"})})]}):null};function s9(e){return!e||!1!==e.isShowMenuOnHeader}let ae="showcase-header-nav-link-row";function at(e){return{columnGapPx:function(e,t=24){let s=Number(e);if(!Number.isFinite(s))return t;let a=Math.round(s);return a<0?0:a>96?96:a}(e?.showcaseHeaderNavLinkGap),rowGapPx:4}}function as(e){let{columnGapPx:t,rowGapPx:s}=at(e);return{columnGap:t,rowGap:s,"--showcase-header-nav-link-column-gap":`${t}px`,"--showcase-header-nav-link-row-gap":`${s}px`}}function aa(e){let t=e?.showcaseHeaderBackgroundStyle;return"image"===t||"video"===t?t:"plain"}function ar(e){let t=aa(e);return"image"===t?!!String(e?.showcaseHeaderBackgroundImageUrl??"").trim():"video"===t&&!!String(e?.showcaseHeaderBackgroundVideoUrl??"").trim()}function al(e,t){if(!ar(e))return t;let s=t.replace(/\bheader-background\b/g,"").replace(/\bbg-white\b/g,"").replace(/\s+/g," ").trim(),a=/\b(?:fixed|sticky|relative|absolute)\b/.test(s);return(0,ei.cn)(s,a?"":"relative")}function ao(e,t){return ar(e)&&t&&null!=t.backgroundColor?{...t,backgroundColor:"transparent"}:t}function ai({headerWidgetCms:e}
13){let t=aa(e),a=String(e?.showcaseHeaderBackgroundImageUrl??"").trim(),r=String(e?.showcaseHeaderBackgroundVideoUrl??"").trim();return"video"===t&&r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("video",{src:r,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"pointer-events-none absolute inset-0 z-0 h-full w-full object-cover","aria-hidden":!0}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 z-0 bg-black/40","aria-hidden":!0})]}):"image"===t&&a?a.startsWith("data:")||a.startsWith("blob:")?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("img",{src:a,alt:"",className:"pointer-events-none absolute inset-0 z-0 h-full w-full object-cover"}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 z-0 bg-black/30","aria-hidden":!0})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.default,{src:a,alt:"",fill:!0,sizes:"100vw",className:"pointer-events-none z-0 object-cover",priority:!0}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 z-0 bg-black/30","aria-hidden":!0})]}):null}function an({headerWidgetCms:e,children:t,className:a}){return ar(e)?(0,s.jsx)("div",{className:(0,ei.cn)("relative z-[1] w-full",a),children:t}):(0,s.jsx)(s.Fragment,{children:t})}let ac=(0,h.default)(()=>e.A(545339),{loadableGenerated:{modules:[931679]},ssr:!1}),ad=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),am=({isStickyHeader:e=!1,siteLogo:t,logoTitle:r,logoAlt:l,searchPageCms:o,widgetData:i,onMenuClick:n})=>{let[c,d]=(0,b.useState)(!1),m=(0,M.useRouter)(),[h,x]=(0,b.useState)(!1),f=(0,M.usePathname)(),{setRouteLoader:g,retailerId:j,isDefaultHomePage:v,setIsDefaultHomePage:w,commonCMSData:y}=(0,a.useGlobalStore)(),N=y?.generalSettingsComponentUiData?.enableDarkModeToggle??!1,C=y?.headerWidgetCmsData??{},S=s9(C),P=C?.isShowLocationIconOrText??!0,D=C?.isShowLocationTextOnMobile??!1,L=C?.isShowcaseSearchBar??!0;function R(e){return(0,k.pushNavHref)({path:e,pathname:f,router:m,setRouteLoader:g})}let E=()=>{x(!0)},F=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:F,className:al(C,(0,ei.cn)("hidden lg:block border-b border-gray-200 header-background",e?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:C}),(0,s.jsx)(an,{headerWidgetCms:C,children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"grid grid-cols-12 py-5 gap-x-3",children:[(0,s.jsxs)("div",{className:"col-span-2 flex items-center gap-2",children:[S&&(0,s.jsx)("button",{onClick:()=>{n?n():d(!c)},className:"p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),t&&(0,s.jsx)(tg.default,{siteLogo:t,logoTitle:r,logoAlt:l,handleRedirectToPath:R,className:"col-span-1 flex items-center"}),(0,s.jsx)(s7,{})]}),(0,s.jsx)("nav",{className:`${ae} col-span-8 flex items-center justify-center flex-wrap`,style:as(C),children:i?.links&&i.links.length>0?i.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=f===a||f?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer\n                              \n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                              ",children:[(0,s.jsx)("span",{className:"header-font-color custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50 header-font-color"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.
13subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(j,v,w)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{R(a),(0,u.handleDefaultHomePage)(j,v,w)},passHref:!0,className:`
14      relative inline-block cursor-pointer
15      text-lg font-medium tracking-[0.1em]
16      header-font-color py-2
17      before:content-['']
18      before:absolute before:left-0 before:-bottom-1
19      before:h-[2px] before:w-full
20      before:bg-current
21      before:origin-left
22      before:scale-x-0
23      before:transition-transform before:duration-300 before:ease-out
24      hover:before:scale-x-100
25      ${r?"before:scale-x-100":""}
26    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:"col-span-2 flex items-center justify-end gap-3",children:[L&&(0,s.jsx)("button",{onClick:E,className:"p-1 hover:opacity-70 transition-opacity duration-200","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,weight:"regular",className:"header-font-color"})}),P&&(0,s.jsxs)(p.default,{href:C?.showcaseHeaderLocationLink||"",className:"flex items-center gap-2 hover:opacity-70 transition-opacity duration-200","aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color"}),(0,s.jsx)("span",{className:"text-lg font-medium header-font-color tracking-[0.1em]",children:C?.showcaseHeaderLocationLinkText})]}),N&&(0,s.jsx)(ad,{size:20})]})]})})})})]}),(0,s.jsxs)("header",{className:al(C,(0,ei.cn)("lg:hidden border-b border-gray-200 header-background",e?"sticky top-0 !z-[21] header-background":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:C}),(0,s.jsx)(an,{headerWidgetCms:C,children:(0,s.jsx)("div",{className:"px-4",children:(0,s.jsxs)("div",{className:"flex items-center justify-between h-[60px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[S&&(0,s.jsx)("button",{onClick:n,className:"p-1 hover:opacity-70 transition-all duration-300","aria-label":"Menu",children:(0,s.jsx)(tt.List,{size:24,weight:"regular",className:"header-font-color"})}),t&&(0,s.jsx)(tg.default,{siteLogo:t,logoTitle:r,logoAlt:l,handleRedirectToPath:R,className:"flex items-center"}),(0,s.jsx)(s7,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[L&&(0,s.jsx)("button",{onClick:E,className:"p-1 hover:opacity-70 transition-opacity duration-200","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,weight:"regular",className:"header-font-color"})}),P&&(0,s.jsxs)(p.default,{href:C?.showcaseHeaderLocationLink||"",className:(0,ei.cn)("hover:opacity-70 transition-all duration-300",D?"flex items-center gap-1.5 p-1":"p-1"),"aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color shrink-0"}),D?(0,s.jsx)("span",{className:"text-sm font-medium header-font-color tracking-[0.05em] max-w-[min(40vw,140px)] truncate",children:C?.showcaseHeaderLocationLinkText}):null]}),N&&(0,s.jsx)(ad,{size:20})]})]})})})]}),(0,s.jsx)(ac,{openSearch:h,setOpenSearch:x,searchPageCms:o})]})},au=(0,h.default)(()=>e.A(545339),{loadableGenerated:{modules:[931679]},ssr:!1}),ah=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),ax=({siteLogo:e,logoTitle:t="Logo",logoAlt:r="Logo",onStoreClick:l,onMenuClick:o,searchPageCms:i,searchPlaceholder:n="Search for products, Strains...",widgetData:c,isStickyHeader:d=!1})=>{let[m,h]=(0,b.useState)(!1),[x,f]=(0,b.useState)(!1),g=(0,M.usePathname)(),j=(0,M.useRouter)(),{setRouteLoader:v,retailerId:w,isDefaultHomePage:y,setIsDefaultHomePage:N,commonCMSData:C}=(0,a.useGlobalStore)(),S=C?.generalSettingsComponentUiData?.enableDarkModeToggle,P=C?.headerWidgetCmsData??{},D=s9(P),L=P?.isShowcaseSearchBar??!0,R=P?.isShowLocationIconOrText??!0,E=P?.isShowLocationTextOnMobile??!1,F=()=>{o?o():h(!m)},I=()=>{f(!0)},A=()=>{l&&l()};function H(e){return(0,k.pushNavHref)({path:e,pathname:g,router:j,setRouteLoader:v})}let T=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:T,className:al(P,(0,ei.cn)("hidden md:block border-b border-gray-200 header-background",d?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:P}),(0,s.jsx)(an,{headerWidgetCms:P,children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"px-6 lg:px-12 xl:px-20",children:[(0,s.jsxs)("div",{className:"grid grid-cols-12 py-3 border-b items-center border-gray-100",children:[(0,s.jsx)("nav",{className:`${ae} col-span-11 flex items-center flex-wrap`,style:as(P),children:c?.links&&c.links.length>0?c.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=g===a||g?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2\n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                              ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.
26subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(w,y,N)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{H(a),(0,u.handleDefaultHomePage)(w,y,N)},passHref:!0,className:`
27      relative inline-block cursor-pointer
28      text-base font-medium tracking-[0.1em]
29      header-font-color py-2
30      before:content-['']
31      before:absolute before:left-0 before:-bottom-1
32      before:h-[2px] before:w-full
33      before:bg-current
34      before:origin-left
35      before:scale-x-0
36      before:transition-transform before:duration-300 before:ease-out
37      hover:before:scale-x-100
38      flex-shrink-0
39      ${r?"before:scale-x-100":""}
40    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:"col-span-1 flex items-center justify-end",children:[R&&(0,s.jsxs)(p.default,{href:P?.showcaseHeaderLocationLink||"",onClick:A,className:"flex items-center gap-2 text-sm font-medium header-font-color hover:text-gray-900 transition-colors duration-200","aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:16,weight:"regular"}),(0,s.jsx)("span",{children:P?.showcaseHeaderLocationLinkText})]}),S&&(0,s.jsx)(ah,{size:16})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-12 py-5 gap-6 items-center",children:[(0,s.jsxs)("div",{className:"col-span-3 flex items-center gap-3",children:[D&&(0,s.jsx)("button",{onClick:F,className:"p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:H,className:"col-span-1 flex items-center"}),(0,s.jsx)(s7,{})]}),L&&(0,s.jsx)("div",{className:"col-span-9 cursor-pointer",onClick:I,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-4 flex items-center pointer-events-none",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,weight:"regular",className:"header-search-font-color"})}),(0,s.jsx)("div",{className:"w-full pl-12 pr-4 py-3 header-search-background-color-no-round border border-gray-200 rounded-full text-base font-medium header-font-color hover:border-gray-300 hover:bg-gray-100 transition-all duration-200 header-search-font-color",children:n})]})})]})]})})})]}),(0,s.jsxs)("header",{className:al(P,(0,ei.cn)("md:hidden border-b border-gray-200 header-background",d?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:P}),(0,s.jsx)(an,{headerWidgetCms:P,children:(0,s.jsxs)("div",{className:"px-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between h-[56px]",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[D&&(0,s.jsx)("button",{onClick:F,className:"p-2 -ml-2 hover:opacity-70 transition-all duration-300","aria-label":"Menu",children:(0,s.jsx)(tt.List,{size:24,weight:"regular",className:"header-font-color"})}),(0,s.jsx)(s7,{})]}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:H,className:"absolute left-1/2 transform -translate-x-1/2"}),R&&(0,s.jsxs)(p.default,{href:P?.showcaseHeaderLocationLink||"",onClick:A,className:(0,ei.cn)("p-2 -mr-2 hover:opacity-70 transition-all duration-300",E&&"flex items-center gap-1.5"),"aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color shrink-0"}),E?(0,s.jsx)("span",{className:"text-xs font-medium header-font-color max-w-[min(38vw,120px)] truncate",children:P?.showcaseHeaderLocationLinkText}):null]}),S&&(0,s.jsx)(ah,{size:20})]}),L&&(0,s.jsx)("div",{className:"pb-3",children:(0,s.jsx)("div",{className:"cursor-pointer",onClick:I,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none",children:(0,s.jsx)(th.MagnifyingGlass,{size:16,weight:"regular",className:"header-search-font-color"})}),(0,s.jsx)("div",{className:"w-full pl-9 pr-4 py-2.5 header-search-background-color-no-round border border-gray-200 text-sm header-font-color header-search-font-color !rounded-full",children:n})]})})})]})})]}),(0,s.jsx)(au,{openSearch:x,setOpenSearch:f,searchPageCms:i})]})},ap=(0,h.default)(()=>
40e.A(545339),{loadableGenerated:{modules:[931679]},ssr:!1}),af=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),ag=({siteLogo:e,logoTitle:t="Logo",logoAlt:r="Logo",onStoreClick:l,onMenuClick:o,searchPageCms:i,searchPlaceholder:n="Search for products, Strains...",widgetData:c,isStickyHeader:d=!1})=>{let[m,h]=(0,b.useState)(!1),[x,f]=(0,b.useState)(!1),g=(0,M.usePathname)(),j=(0,M.useRouter)(),{setRouteLoader:v,commonCMSData:w,retailerId:y,isDefaultHomePage:N,setIsDefaultHomePage:C}=(0,a.useGlobalStore)(),S=w?.generalSettingsComponentUiData?.enableDarkModeToggle,P=w?.headerWidgetCmsData??{},D=s9(P),L=P?.isShowcaseSearchBar??!0,R=P?.isShowLocationIconOrText??!0,E=P?.isShowLocationTextOnMobile??!1,F=()=>{o?o():h(!m)},I=()=>{f(!0)},A=e=>{H(e)};function H(e){return(0,k.pushNavHref)({path:e,pathname:g,router:j,setRouteLoader:v})}let T=(c?.links??[]).filter(e=>e?.isCategory!==!0),z=Math.ceil(T.length/2),O=T.slice(0,z),_=T.slice(z),B=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:B,className:al(P,(0,ei.cn)("hidden md:block border-b border-[var(--fill-header-border-color)] header-background",d?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:P}),(0,s.jsx)(an,{headerWidgetCms:P,children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)("div",{className:"grid grid-cols-12 items-center py-2.5 border-b border-[var(--fill-header-border-color)]",children:[(0,s.jsx)("div",{className:"col-span-1",children:R&&(0,s.jsxs)(p.default,{href:P?.showcaseHeaderLocationLink||"",className:"flex items-center gap-2 text-sm header-font-color hover:text-gray-900 transition-colors duration-200","aria-label":"Find a Retailer",children:[(0,s.jsx)(Z.MapPin,{size:16,weight:"regular"}),(0,s.jsx)("span",{children:P?.showcaseHeaderLocationLinkText})]})}),(0,s.jsx)("div",{className:"col-span-10 text-center",children:(0,s.jsx)("span",{className:"text-base font-medium tracking-[0.2em] custom-header-bar-text-color",children:P?.showcaseHeaderTopText})}),(0,s.jsxs)("div",{className:"col-span-1 flex justify-end items-center gap-3",children:[L&&(0,s.jsx)("button",{onClick:I,className:"p-1 hover:opacity-70 transition-opacity duration-200","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,weight:"regular",className:"header-font-color"})}),S&&(0,s.jsx)(af,{size:18})]})]}),(0,s.jsxs)("div",{className:"relative grid grid-cols-12 items-center py-5",children:[D&&(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)("button",{onClick:F,className:"p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})})}),(0,s.jsx)("nav",{className:`${ae} col-span-4 flex items-center flex-wrap gap-y-1`,style:as(P),children:O&&O?.length>0?O.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=g===a||g?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2\n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                        ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(y,N,C)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{A(a),(0,u.handleDefaultHomePage)(y,N,C)},passHref:!0,className:`
41      relative inline-block cursor-pointer
42      text-base font-medium tracking-[0.1em]
43      header-font-color py-2
44      before:content-['']
45      before:absolute before:left-0 before:-bottom-1
46      before:h-[2px] before:w-full
47      before:bg-current
48      before:origin-left
49      before:scale-x-0
50      before:transition-transform before:duration-300 before:ease-out
51      hover:before:scale-x-100
52      flex-shrink-0
53      ${r?"before:scale-x-100":""}
54    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:"col-span-2 flex justify-center items-center",children:[e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:H,className:"flex items-center"}),(0,s.jsx)(s7,{})]}),(0,s.jsx)("nav",{className:`${ae} col-span-5 flex items-center justify-end flex-wrap gap-y-1`,style:as(P),children:_&&_.length>0?_.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=g===a||g?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2\n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                        ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.
54subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(y,N,C)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{A(a),(0,u.handleDefaultHomePage)(y,N,C)},passHref:!0,className:`
55      relative inline-block cursor-pointer
56      text-base font-medium tracking-[0.1em]
57      header-font-color py-2
58      before:content-['']
59      before:absolute before:left-0 before:-bottom-1
60      before:h-[2px] before:w-full
61      before:bg-current
62      before:origin-left
63      before:scale-x-0
64      before:transition-transform before:duration-300 before:ease-out
65      hover:before:scale-x-100
66      flex-shrink-0
67      ${r?"before:scale-x-100":""}
68    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))})]})]})})})]}),(0,s.jsxs)("header",{className:al(P,(0,ei.cn)("md:hidden border-b border-[var(--fill-header-border-color)] header-background",d?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:P}),(0,s.jsxs)(an,{headerWidgetCms:P,children:[(0,s.jsx)("div",{className:"grid grid-cols-12 items-center py-2 border-b border-[var(--fill-header-border-color)]",children:(0,s.jsx)("span",{className:"col-span-12 text-center text-xs font-medium tracking-[0.15em] custom-header-bar-text-color",children:P?.showcaseHeaderTopText})}),(0,s.jsxs)("div",{className:"px-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between h-[56px]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[D&&(0,s.jsx)("button",{onClick:F,className:"p-1 -ml-1 hover:opacity-70 transition-all duration-300","aria-label":"Menu",children:(0,s.jsx)(tt.List,{size:22,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:H,className:"flex-shrink-0"}),(0,s.jsx)(s7,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[L&&(0,s.jsx)("button",{onClick:I,className:"p-2 hover:opacity-70 transition-opacity duration-200","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,weight:"regular",className:"header-font-color"})}),R&&(0,s.jsxs)(p.default,{href:P?.showcaseHeaderLocationLink||"",className:(0,ei.cn)("p-2 -mr-2 hover:opacity-70 transition-all duration-300",E&&"flex items-center gap-1.5"),"aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color shrink-0"}),E?(0,s.jsx)("span",{className:"text-xs font-medium header-font-color max-w-[min(38vw,120px)] truncate",children:P?.showcaseHeaderLocationLinkText}):null]}),S&&(0,s.jsx)(af,{size:20})]})]}),L&&(0,s.jsx)("div",{className:"pb-3",children:(0,s.jsx)("div",{className:"cursor-pointer",onClick:I,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none",children:(0,s.jsx)(th.MagnifyingGlass,{size:16,weight:"regular",className:"header-search-font-color"})}),(0,s.jsx)("div",{className:"w-full pl-9 pr-4 py-2.5 header-search-background-color-no-round border border-gray-200 text-sm header-font-color header-search-font-color !rounded-full",children:n})]})})})]})]})]}),(0,s.jsx)(ap,{openSearch:x,setOpenSearch:f,searchPageCms:i})]})};var ab=e.i(704743),aj=e.i(652973),av=e.i(816034),aw=e.i(565909);let ay=(0,h.default)(()=>e.A(545339),{loadableGenerated:{modules:[931679]},ssr:!1}),aN=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),ak=({siteLogo:e,logoTitle:t="Logo",logoAlt:r="Logo",showCategories:l=!1,onStoreClick:o,onMenuClick:i,onFilterClick:c,searchPageCms:d,searchPlaceholder:m="Search for products, Strains...",widgetData:h,isStickyHeader:x=!1})=>{let[f,g]=(0,b.useState)(!1),[j,v]=(0,b.useState)(!1),[w,y]=(0,b.useState)(l),N=(0,M.usePathname)(),{commonCMSData:C,customProductCategoryData:S,retailerId:P,isDefaultHomePage:D,setIsDefaultHomePage:L,setRouteLoader:R}=(0,a.useGlobalStore)(),E=C?.generalSettingsComponentUiData?.enableDarkModeToggle,F=C?.headerWidgetCmsData??{},I=s9(F),A=F?.isShowcaseSearchBar??!0,H=F?.isShowLocationIconOrText??!0,T=F?.isShowLocationTextOnMobile??!1,z=()=>{i?i():g(!f)},O=()=>{o&&o()};function _(e){return(0,k.pushNavHref)({path:e,pathname:N,router:aw.default,setRouteLoader:R})}let B=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:B,className:al(F,(0,ei.cn)("hidden md:block border-b border-[var(--fill-header-border-color)] header-background",x?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:F}),(0,s.jsx)(an,{headerWidgetCms:F,children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between py-4 border-b border-[var(--fill-header-border-color)]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[I&&(0,s.jsx)("button",{onClick:z,className:"p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"flex-shrink-0",handleRedirectToPath:_}),(0,s.jsx)(s7,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[A&&(0,s.jsx)("div",{className:"w-[280px] lg:w-[320px] cursor-pointer",onClick:()=>{v(!0)},children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none",children:(0,s.jsx)(th.MagnifyingGlass,{size:16,weight:"regular",className:"header-search-font-color"})}),(0,s.jsx)("div",{className:"w-full pl-9 pr-4 py-3 header-search-background-color-no-round border border-gray-200 rounded-full text-sm header-font-color header-search-font-color hover:border-gray-300 transition-all duration-200",children:m})]})}),H&&(0,s.jsxs)(p.default,{href:F?.showcaseHeaderLocationLink||"",onClick:O,className:"flex items-center gap-2 text-sm header-font-color hover:text-gray-900 transition-colors duration-200","aria-label":"Find a Retailer",children:[(0,s.jsx)(Z.MapPin,{size:18,weight:"regular",className:"header-font-color"}),(0,s.jsx)("span",{children:F?.showcaseHeaderLocationLinkText})]}),E&&(0,s.jsx)(aN,{size:18})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-12 items-center gap-3 py-3",children:[(0,s.jsx)("nav",{className:`${ae} flex items-center gap-y-1 flex-wrap col-span-11`,style:as(F),children:h?.links&&h.links.length>0?h.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=N===a||N?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2\n                                                    \n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                    ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.
68subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(P,D,L)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{_(a),(0,u.handleDefaultHomePage)(P,D,L)},passHref:!0,className:`
69      relative inline-block cursor-pointer
70      text-base font-medium tracking-[0.1em]
71      header-font-color py-2
72      before:content-['']
73      before:absolute before:left-0 before:-bottom-1
74      before:h-[2px] before:w-full
75      before:bg-current
76      before:origin-left
77      before:scale-x-0
78      before:transition-transform before:duration-300 before:ease-out
79      hover:before:scale-x-100
80      flex-shrink-0
81      ${r?"before:scale-x-100":""}
82    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsx)("div",{className:"col-span-1 flex justify-end",children:(0,s.jsxs)("button",{onClick:()=>{y(!w),c&&c()},className:`flex items-center gap-2 px-5 py-2.5 text-sm font-medium rounded-lg transition-colors duration-200 ${w?"bg-gray-900 text-white hover:bg-gray-800":"fill-button border border-gray-300 hover:border-gray-400"}`,children:[(0,s.jsx)(ab.Funnel,{size:16,weight:"regular"}),(0,s.jsx)("span",{children:"Filter"})]})})]}),(0,s.jsx)("div",{className:`overflow-hidden transition-all duration-300 ease-in-out ${w?"max-h-20 opacity-100":"max-h-0 opacity-0"}`,children:S.length>0&&(0,s.jsx)("div",{className:"flex items-center gap-4 py-3 border-t border-[--fill-header-border-color]",children:S.map((e,t)=>{let a=N===`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`||N?.startsWith(e?.categoryName+"/");return(0,s.jsx)(p.default,{href:`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`,className:`text-sm transition-colors duration-200 border border-gray-200 rounded-full px-5 py-2.5 bg-gray-50 ${a?"fill-button font-medium":"outlined-button-hover text-gray-500 hover:text-gray-900"}`,children:(0,u.makeTitleCase)(e?.categoryName?.replace(/_/g," "))},t)})})})]})})]}),(0,s.jsxs)("header",{className:al(F,(0,ei.cn)("md:hidden border-b border-[var(--fill-header-border-color)] header-background",x?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:F}),(0,s.jsxs)(an,{headerWidgetCms:F,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between h-[56px] px-4 border-b border-[var(--fill-header-border-color)]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[I&&(0,s.jsx)("button",{onClick:z,className:"p-1 -ml-1 hover:opacity-70 transition-all duration-300","aria-label":"Menu",children:(0,s.jsx)(tt.List,{size:22,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"flex-shrink-0",handleRedirectToPath:_}),(0,s.jsx)(s7,{})]}),H&&(0,s.jsxs)(p.default,{href:F?.showcaseHeaderLocationLink||"",onClick:O,className:(0,ei.cn)("p-2 -mr-2 hover:opacity-70 transition-all duration-300",T&&"flex items-center gap-1.5"),"aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color shrink-0"}),T?(0,s.jsx)("span",{className:"text-xs font-medium header-font-color max-w-[min(38vw,120px)] truncate",children:F?.showcaseHeaderLocationLinkText}):null]}),E&&(0,s.jsx)(aN,{size:20})]}),S?.length>0&&(0,s.jsxs)("div",{className:"jsx-62991eafcc69060f relative py-3 pb-5",children:[(0,s.jsx)(n.Swiper,{modules:[aj.FreeMode,av.Scrollbar],freeMode:!0,slidesPerView:"auto",spaceBetween:12,scrollbar:{hide:!1,draggable:!0},className:"!px-4 ShowcaseHeaderVersionFour-category-swiper",children:S?.map((e,t)=>{let a=N===`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`||N?.startsWith(e?.categoryName+"/");return(0,s.jsx)(n.SwiperSlide,{className:"!w-auto !pb-1",children:(0,s.jsx)(p.default,{href:`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`,className:`inline-block text-sm font-medium border border-gray-200 rounded-full px-3 py-1.5 bg-gray-50 transition-all duration-200 ${a?"text-gray-900 underline underline-offset-4 fill-button":"outlined-button-hover text-gray-500 hover:text-gray-900"}`,children:(0,u.makeTitleCase)(e?.categoryName?.replace(/_/g," "))})},t)})}),(0,s.jsx)("div",{className:"jsx-62991eafcc69060f absolute right-0 top-0 bottom-8 w-8 pointer-events-none z-10"}),(0,s.jsx)(tT.default,{id:"62991eafcc69060f",children:".ShowcaseHeaderVersionFour-category-swiper .swiper-scrollbar{background:#e5e7eb;width:calc(100% - 32px);height:3px;bottom:0;left:16px;right:16px}.ShowcaseHeaderVersionFour-category-swiper .swiper-scrollbar-drag{background:#9ca3af;border-radius:4px}"})]})]})]}),(0,s.jsx)(ay,{openSearch:j,setOpenSearch:v,searchPageCms:d})]})},aC=(0,h.default)(()=>
82e.A(545339),{loadableGenerated:{modules:[931679]},ssr:!1}),aS=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),aP=({siteLogo:e,logoTitle:t="Logo",logoAlt:r="Logo",onStoreClick:l,onMenuClick:o,searchPageCms:d,widgetData:m,isStickyHeader:h=!1})=>{let{displayCategoryName:x}=(0,c.default)(),[f,g]=(0,b.useState)(!1),[j,v]=(0,b.useState)(!1),w=(0,M.useRouter)(),y=(0,M.usePathname)(),{retailerId:N,isDefaultHomePage:C,setIsDefaultHomePage:S,commonCMSData:P,customProductCategoryData:D,setRouteLoader:L}=(0,a.useGlobalStore)(),R=P?.generalSettingsComponentUiData?.enableDarkModeToggle,E=P?.headerWidgetCmsData??{},F=s9(E),I=E?.isShowcaseSearchBar??!0,A=E?.isShowLocationIconOrText??!0,H=E?.isShowLocationTextOnMobile??!1,T=()=>{o?o():g(!f)},z=()=>{l&&l()};function O(e){return(0,k.pushNavHref)({path:e,pathname:y,router:w,setRouteLoader:L})}let _=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:_,className:al(E,(0,ei.cn)("hidden md:block border-b border-[var(--fill-header-border-color)] header-background",h?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:E}),(0,s.jsx)(an,{headerWidgetCms:E,children:(0,s.jsxs)("div",{className:"_container",children:[I&&(0,s.jsxs)("div",{className:"flex items-center justify-between py-3 border-b border-[var(--fill-header-border-color)]",children:[(0,s.jsx)("span",{className:"text-sm font-medium tracking-[0.15em] custom-header-bar-text-color uppercase",children:E?.showcaseHeaderTopText}),(0,s.jsx)("button",{onClick:()=>{v(!0)},className:"p-1 hover:opacity-70 transition-opacity duration-200","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,weight:"regular",className:"header-font-color"})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-12 items-center gap-3 py-5",children:[(0,s.jsxs)("div",{className:"col-span-2 flex items-center gap-2",children:[F&&(0,s.jsx)("button",{onClick:T,className:"p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"flex-shrink-0",handleRedirectToPath:O}),(0,s.jsx)(s7,{})]}),(0,s.jsx)("nav",{className:`${ae} flex items-center gap-y-1 flex-wrap col-span-8 justify-center`,style:as(E),children:m?.links&&m.links.length>0?m.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=y===a||y?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2 text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                    ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(N,C,S)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{a&&O(a),(0,u.handleDefaultHomePage)(N,C,S)},passHref:!0,className:`
83      relative inline-block cursor-pointer
84      text-base font-medium tracking-[0.1em]
85      header-font-color py-2
86      before:content-['']
87      before:absolute before:left-0 before:-bottom-1
88      before:h-[2px] before:w-full
89      before:bg-current
90      before:origin-left
91      before:scale-x-0
92      before:transition-transform before:duration-300 before:ease-out
93      hover:before:scale-x-100
94      flex-shrink-0
95      ${r?"before:scale-x-100":""}
96    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:"col-span-2 flex justify-end",children:[A&&(0,s.jsxs)(p.default,{href:E?.showcaseHeaderLocationLink||"",onClick:z,className:"flex items-center gap-2 text-sm font-medium tracking-wide header-font-color hover:opacity-70 transition-opacity duration-200","aria-label":"Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular"}),(0,s.jsx)("span",{children:E?.showcaseHeaderLocationLinkText})]}),R&&(0,s.jsx)(aS,{size:20})]})]}),D.length>0&&(0,s.jsx)("div",{className:"flex items-center  border-t border-[var(--fill-header-border-color)] w-full overflow-x-auto",style:{gridTemplateColumns:`repeat(${D.length}, 1fr)`},children:(0,s.jsx)(i.default,{sliderOffset:100,slidesPerView:5,showScrollbar:!1,cls:"!mx-0",children:D.map((e,t)=>{let a=y===`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`||y?.startsWith(e?.categoryName+"/"),r=t===D.length-1;return(0,s.jsx)(n.SwiperSlide,{className:0===t?"ml-3 !w-fit !mr-5":"!w-fit !mr-5",children:(0,s.jsx)(p.default,{href:`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`,className:`flex items-center px-4  py-4 text-base font-medium tracking-wider transition-all duration-200 flex-shrink-0 uppercase ${!r?"border-r border-[var(--fill-header-border-color)]":""} ${a?"header-font-color":"text-[var(--fill-header-font-color)] hover:text-gray-900 hover:bg-gray-50"}`,children:x(e)},t)},"navbar-phone-top-slide"+t)})})})]})})]}),(0,s.jsxs)("header",{className:al(E,(0,ei.cn)("md:hidden border-b border-[var(--fill-header-border-color)] header-background",h?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:E}
96),(0,s.jsxs)(an,{headerWidgetCms:E,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between h-[56px] px-4 border-b border-[var(--fill-header-border-color)]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[F&&(0,s.jsx)("button",{onClick:T,className:"p-1 -ml-1 hover:opacity-70 transition-all duration-300","aria-label":"Menu",children:(0,s.jsx)(tt.List,{size:22,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"flex-shrink-0",handleRedirectToPath:O}),(0,s.jsx)(s7,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[A&&(0,s.jsxs)(p.default,{href:E?.showcaseHeaderLocationLink||"",onClick:z,className:(0,ei.cn)("p-2 -mr-2 hover:opacity-70 transition-all duration-300",H&&"flex items-center gap-1.5"),"aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color shrink-0"}),H?(0,s.jsx)("span",{className:"text-xs font-medium header-font-color max-w-[min(38vw,120px)] truncate",children:E?.showcaseHeaderLocationLinkText}):null]}),R&&(0,s.jsx)(aS,{size:18})]})]}),D.length>0&&(0,s.jsxs)("div",{className:"jsx-51f46d42cfea204c relative border-b border-[var(--fill-header-border-color)] pb-1",children:[(0,s.jsx)(n.Swiper,{modules:[aj.FreeMode,av.Scrollbar],freeMode:!0,slidesPerView:"auto",spaceBetween:0,scrollbar:{hide:!1,draggable:!0},className:"ShowcaseHeaderVersionFive-category-swiper",children:D.map((e,t)=>{let a=y===`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`||y?.startsWith(e?.categoryName+"/");return(0,s.jsx)(n.SwiperSlide,{className:"!w-auto",children:(0,s.jsx)(p.default,{href:`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`,className:`inline-block px-5 py-3 text-xs font-medium tracking-wider border-r border-[var(--fill-header-border-color)] transition-all duration-200 ${a?"header-font-color":"text-[var(--fill-header-font-color)] hover:text-gray-900"}`,children:(0,u.makeTitleCase)(e?.categoryName?.replace(/_/g," "))})},t)})}),(0,s.jsx)(tT.default,{id:"51f46d42cfea204c",children:".ShowcaseHeaderVersionFive-category-swiper .swiper-scrollbar{background:#e5e7eb;width:100%;height:3px;bottom:0;left:0;right:0}.ShowcaseHeaderVersionFive-category-swiper .swiper-scrollbar-drag{background:#9ca3af;border-radius:4px}"})]})]})]}),(0,s.jsx)(aC,{openSearch:j,setOpenSearch:v,searchPageCms:d})]})},aD=(0,h.default)(()=>e.A(545339),{loadableGenerated:{modules:[931679]},ssr:!1}),aL=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),aR=[{label:"Collections",url:"/collections"},{label:"Strains",url:"/strains"},{label:"Lifestyle",url:"/lifestyle"},{label:"Locations",url:"/locations"},{label:"About",url:"/about"}],aM=[{label:"New In",url:"/new-in"},{label:"Bestsellers",url:"/bestsellers"},{label:"Trending",url:"/trending"},{label:"Limited Edition",url:"/limited-edition"},{label:"On Sale",url:"/on-sale"}],aE=({siteLogo:e,logoTitle:t="Logo",logoAlt:r="Logo",navLinks:l=aR,categoryTags:o=aM,onMenuClick:i,searchPageCms:c,searchPlaceholder:d="Search for products, Strains...",widgetData:m,isStickyHeader:h=!1})=>{let[x,f]=(0,b.useState)(!1),[g,j]=(0,b.useState)(!1),v=(0,M.usePathname)(),w=(0,M.useRouter)(),y=()=>{i?i():f(!x)},N=()=>{j(!0)},{retailerId:C,isDefaultHomePage:S,setIsDefaultHomePage:P,commonCMSData:D,customProductCategoryData:L,setRouteLoader:R}=(0,a.useGlobalStore)(),E=D?.generalSettingsComponentUiData?.enableDarkModeToggle,F=D?.headerWidgetCmsData??{},I=s9(F),A=F?.isShowcaseSearchBar??!0;function H(e){return(0,k.pushNavHref)({path:e,pathname:v,router:w,setRouteLoader:R})}let T=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:T,className:al(F,(0,ei.cn)("hidden md:block border-b border-[var(--fill-header-border-color)] header-background",h?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:F}),(0,s.jsx)(an,{headerWidgetCms:F,children:(0,s.jsxs)("div",{className:"_container",children:[(0,s.jsxs)("div",{className:"grid grid-cols-12 items-center py-5 border-b border-[var(--fill-header-border-color)]",children:[(0,s.jsxs)("div",{className:(0,ei.cn)("grid grid-cols-12 items-center gap-x-6 gap-y-1 flex-wrap",A?"col-span-5":"col-span-3"),children:[(0,s.jsxs)("div",{className:"col-span-5 flex items-center gap-2",children:[I&&(0,s.jsx)("button",{onClick:y,className:"p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"flex-shrink-0",handleRedirectToPath:H}),(0,s.jsx)(s7,{}),E&&(0,s.jsx)(aL,{size:20,className:"ml-4"})]}),(0,s.jsx)("div",{className:"col-span-7",children:A&&(0,s.jsx)("div",{className:"w-[320px] lg:w-[400px] cursor-pointer",onClick:N,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-4 flex items-center pointer-events-none",children:(0,s.jsx)(th.MagnifyingGlass,{size:16,weight:"regular",className:"text-gray-400"})}),(0,s.jsx)("div",{className:"w-full pl-10 pr-6 py-3 bg-gray-100 border border-gray-200 rounded-full text-sm text-gray-400 hover:border-gray-300 transition-all duration-200",children:d})]})})})]}),(0,s.jsx)("nav",{className:(0,ei.cn)(ae,"flex items-center justify-end gap-y-1 flex-wrap",A?"col-span-7":"col-span-9"),style:as(F),children:m?.links&&m.links.length>0?m.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=v===a||v?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2\n                                                    \n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                    ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.
96subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(C,S,P)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{a&&H(a),(0,u.handleDefaultHomePage)(C,S,P)},passHref:!0,className:`
97      relative inline-block cursor-pointer
98      text-base font-medium tracking-[0.1em]
99      header-font-color py-2
100      before:content-['']
101      before:absolute before:left-0 before:-bottom-1
102      before:h-[2px] before:w-full
103      before:bg-current
104      before:origin-left
105      before:scale-x-0
106      before:transition-transform before:duration-300 before:ease-out
107      hover:before:scale-x-100
108      flex-shrink-0
109      ${r?"before:scale-x-100":""}
110    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))})]}),L?.length>0&&(0,s.jsx)("div",{className:"flex items-center  gap-3 py-4",children:L?.map((e,t)=>{let a=v===`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`||v?.startsWith(e?.categoryName+"/");return(0,s.jsx)(p.default,{href:`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`,className:`px-5 py-2 text-sm font-medium rounded-full border transition-all duration-200 !bg-gray-50 ${a?"fill-button text-white border-gray-900":"outlined-button-hover text-gray-600 border-gray-200 hover:border-gray-400 hover:text-gray-900"}`,children:(0,u.makeTitleCase)(e?.categoryName?.replace(/_/g," "))},t)})})]})})]}),(0,s.jsxs)("header",{className:al(F,(0,ei.cn)("md:hidden border-b border-[var(--fill-header-border-color)] header-background",h?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:F}),(0,s.jsxs)(an,{headerWidgetCms:F,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between h-[56px] px-4 border-b border-[var(--fill-header-border-color)]",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[I&&(0,s.jsx)("button",{onClick:y,className:"p-1 -ml-1 hover:opacity-70 transition-all duration-300","aria-label":"Menu",children:(0,s.jsx)(tt.List,{size:22,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"flex-shrink-0",handleRedirectToPath:H}),(0,s.jsx)(s7,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[A&&(0,s.jsx)("button",{onClick:N,className:"p-2 -mr-2 hover:opacity-70 transition-opacity duration-200 w-8 h-8 flex items-center justify-center rounded-lg header-search-background-color","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,weight:"regular",className:"header-search-font-color"})}),E&&(0,s.jsx)(aL,{size:20})]})]}),A&&(0,s.jsx)("div",{className:"px-4 py-3 border-b border-[var(--fill-header-border-color)]",children:(0,s.jsx)("div",{className:"cursor-pointer",onClick:N,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none",children:(0,s.jsx)(th.MagnifyingGlass,{size:16,weight:"regular",className:"text-gray-400"})}),(0,s.jsx)("div",{className:"w-full pl-9 pr-4 py-2.5 bg-gray-50 border border-gray-200 rounded-full text-sm text-gray-400",children:d})]})})}),L.length>0&&(0,s.jsxs)("div",{className:"jsx-54b4b563e009095e relative pb-3",children:[(0,s.jsx)(n.Swiper,{modules:[aj.FreeMode,av.Scrollbar],freeMode:!0,slidesPerView:"auto",spaceBetween:8,scrollbar:{hide:!1,draggable:!0},className:"!px-4 category-swiper",children:L.map((e,t)=>{let a=v===`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`||v?.startsWith(e?.categoryName+"/");return(0,s.jsx)(n.SwiperSlide,{className:"!w-auto",children:(0,s.jsx)(p.default,{href:`/search/categories/${(0,u.urlSlug)(e?.categoryName||e)}`,className:`inline-block px-4 py-1.5 text-xs font-medium rounded-full border transition-all duration-200 mb-2 ${a?"bg-gray-900 text-white border-gray-900":"bg-white text-gray-600 border-gray-200 hover:border-gray-400"}`,children:(0,u.makeTitleCase)(e?.categoryName?.replace(/_/g," "))})},t)})}),(0,s.jsx)(tT.default,{id:"54b4b563e009095e",children:".category-swiper .swiper-scrollbar{background:#e5e7eb;width:calc(100% - 32px);height:3px;bottom:0;left:16px;right:16px}.category-swiper .swiper-scrollbar-drag{background:#9ca3af;border-radius:4px}"})]})]})]}),(0,s.jsx)(aD,{openSearch:g,setOpenSearch:j,searchPageCms:c})]})},aF=(0,h.default)(()=>
110e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),aI=[{label:"COLLECTIONS",url:"/collections"},{label:"PRODUCTS",url:"/products"},{label:"STORIES",url:"/stories"},{label:"ABOUT",url:"/about"}],aA=({siteLogo:e,logoTitle:t="Logo",logoAlt:r="Logo",navLinks:l=aI,onStoreClick:o,onMenuClick:i,widgetData:n})=>{let[c,d]=(0,b.useState)(!1),m=(0,M.useRouter)(),h=(0,M.usePathname)(),{retailerId:x,isDefaultHomePage:f,setIsDefaultHomePage:g,commonCMSData:j,setRouteLoader:v}=(0,a.useGlobalStore)(),w=j?.generalSettingsComponentUiData?.enableDarkModeToggle,y=j?.headerWidgetCmsData??{},N=s9(y),C=y?.isShowLocationIconOrText??!0,S=()=>{i?i():d(!c)},P=()=>{o&&o()};function D(e){return(0,k.pushNavHref)({path:e,pathname:h,router:m,setRouteLoader:v})}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tT.default,{id:"3a360afa39d756ad",children:"@media (width>=768px){body{padding:0 0 0 160px!important}}"}),(0,s.jsxs)("aside",{className:"jsx-3a360afa39d756ad "+(al(y,"hidden md:flex fixed left-0 top-0 h-screen w-[180px] bg-white header-background border-r border-[var(--fill-header-border-color)] flex-col z-50 items-center")||""),children:[(0,s.jsx)(ai,{headerWidgetCms:y}),(0,s.jsxs)(an,{headerWidgetCms:y,children:[(0,s.jsxs)("div",{className:"jsx-3a360afa39d756ad py-8 px-2 flex items-center gap-2",children:[w&&(0,s.jsx)("div",{className:"jsx-3a360afa39d756ad py-6",children:(0,s.jsx)(aF,{size:24})}),N&&(0,s.jsx)("button",{onClick:S,className:"jsx-3a360afa39d756ad p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"block",handleRedirectToPath:D})]}),(0,s.jsx)("div",{className:"jsx-3a360afa39d756ad pl-6",children:(0,s.jsx)(s7,{})}),(0,s.jsxs)("nav",{className:"jsx-3a360afa39d756ad flex-1 flex flex-col justify-center items-center px-8 max-h-screen overflow-y-auto special-scrollbar pt-[200px]",children:[n?.links&&n.links.length>0?n.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=h===a||h?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"jsx-3a360afa39d756ad relative group py-6",children:[(0,s.jsxs)("div",{className:"jsx-3a360afa39d756ad relative flex cursor-pointer",children:[(0,s.jsx)("span",{className:"jsx-3a360afa39d756ad w-[3px] h-0 bg-[var(--fill-header-font-color)] group-hover:h-full transition-all duration-300"}),(0,s.jsx)("span",{style:{writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(180deg)"},className:"jsx-3a360afa39d756ad ml-4 text-lg font-medium tracking-[0.2em] header-font-color custom-link-font",children:e.label})]}),(0,s.jsx)("div",{style:{left:"calc(var(--nav-left) + var(--nav-width) + 1rem)",top:"var(--nav-top)"},onMouseEnter:e=>{let t=e.currentTarget.parentElement?.querySelector(".relative.flex.cursor-pointer");if(t){let s=t.getBoundingClientRect();e.currentTarget.style.setProperty("--nav-left",`${s.right}px`),e.currentTarget.style.setProperty("--nav-top",`${s.top}px`),e.currentTarget.style.setProperty("--nav-width","0px")}},className:"jsx-3a360afa39d756ad fixed w-72 max-h-[80vh] bg-white border border-gray-200 shadow-2xl rounded-lg overflow-hidden opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 ease-out z-50",children:(0,s.jsx)("div",{className:"jsx-3a360afa39d756ad py-2 overflow-y-auto max-h-[80vh] special-scrollbar",children:e?.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(x,f,g)},className:"block mx-2 px-4 py-3 rounded-lg text-gray-700 hover:bg-gray-50 transition-colors duration-200 border-l-2 border-transparent hover:border-gray-900 hover:text-gray-900",children:e.label},t))})})]},t):(0,s.jsxs)(p.default,{href:a??"",onClick:()=>{a&&D(a),(0,u.handleDefaultHomePage)(x,f,g)},passHref:!0,className:"group relative py-6 flex",children:[(0,s.jsx)("p",{className:`jsx-3a360afa39d756ad w-[3px] absolute -right-3 top-1/2 -translate-y-1/2 transition-all duration-300 ease-out
111                          ${r?"h-full bg-[var(--fill-header-font-color)]":"h-0 group-hover:h-full bg-[var(--fill-header-font-color)]"}
112                      `}),(0,s.jsx)("span",{style:{writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(180deg)"},className:`jsx-3a360afa39d756ad ml-4 text-lg font-medium tracking-[0.2em]
113                          header-font-color
114                      `,children:e.label})]},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"jsx-3a360afa39d756ad h-20 w-6 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t)),C&&(0,s.jsx)(p.default,{href:y?.showcaseHeaderLocationLink??"/",onClick:P,className:"group relative py-6 w-full text-left",children:(0,s.jsxs)("div",{className:"jsx-3a360afa39d756ad flex items-center",children:[(0,s.jsx)("span",{className:"jsx-3a360afa39d756ad w-[3px] absolute -right-3 top-1/2 -translate-y-1/2 h-0 group-hover:h-full bg-[var(--fill-header-font-color)] transition-all duration-300 ease-out"}),(0,s.jsxs)("span",{style:{writingMode:"vertical-rl",textOrientation:"mixed"},className:"jsx-3a360afa39d756ad ml-4 flex items-center gap-2 text-lg font-medium tracking-[0.2em] header-font-color transition-colors duration-200",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular"}),(0,s.jsx)("span",{className:"jsx-3a360afa39d756ad rotate-180",children:y?.showcaseHeaderLocationLinkText})]})]})})]})]})]}),(0,s.jsxs)("header",{className:"jsx-3a360afa39d756ad "+(al(y,"md:hidden header-background border-b border-[var(--fill-header-border-color)]")||""),children:[(0,s.jsx)(ai,{headerWidgetCms:y}),(0,s.jsx)(an,{headerWidgetCms:y,children:(0,s.jsxs)("div",{className:"jsx-3a360afa39d756ad flex items-center justify-between h-[60px] px-4",children:[(0,s.jsxs)("div",{className:"jsx-3a360afa39d756ad flex items-center",children:[N&&(0,s.jsx)("button",{onClick:S,"aria-label":"Menu",className:"jsx-3a360afa39d756ad p-2 -ml-2 hover:opacity-70 transition-all duration-300",children:(0,s.jsx)(tt.List,{size:24,weight:"regular",className:"header-font-color"})}),(0,s.jsx)(s7,{})]}),e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"absolute left-1/2 transform -translate-x-1/2",handleRedirectToPath:D}),(0,s.jsx)(p.default,{href:y?.showcaseHeaderLocationLink??"/",onClick:P,className:"p-2 -mr-2 hover:opacity-70 transition-all duration-300","aria-label":"Find 
114Stores",children:(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color"})}),w&&(0,s.jsx)(aF,{size:20})]})})]})]})},aH=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),aT=({siteLogo:e,logoTitle:t,logoAlt:r,onMenuClick:l,widgetData:o})=>{let[i,n]=(0,b.useState)(!0),[c,d]=(0,b.useState)(0),[m,h]=(0,b.useState)(!1),x=(0,M.useRouter)(),f=(0,M.usePathname)(),g="/"===f,{retailerId:j,isDefaultHomePage:v,setIsDefaultHomePage:w,commonCMSData:y,setRouteLoader:N}=(0,a.useGlobalStore)(),C=y?.generalSettingsComponentUiData?.enableDarkModeToggle,S=y?.headerWidgetCmsData??{},P=s9(S),D=S?.isShowLocationIconOrText??!0,L=()=>{l?l():h(!m)};function R(e){return(0,k.pushNavHref)({path:e,pathname:f,router:x,setRouteLoader:N})}(0,b.useEffect)(()=>{if(!g)return void n(!0);let e=()=>{let e=window.scrollY;if(e<=0){n(!0),d(e);return}e>c&&e>100?n(!1):e<c&&n(!0),d(e)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[g,c]);let E=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:E,className:(0,ei.cn)("top-0 z-50 hidden w-full lg:block pt-5 px-5 transition-transform duration-300 ease-in-out",g?"fixed left-0 4xl:max-w-[1900px] 4xl:left-1/2 4xl:right-1/2 4xl:-translate-x-1/2":"sticky left-0 4xl:mx-auto 4xl:max-w-[1900px]",g&&!i?"-translate-y-full":"translate-y-0"),children:(0,s.jsxs)("div",{className:al(S,"backdrop-blur-md rounded-full py-5 px-14 flex items-center justify-between relative z-30"),style:ao(S,{backgroundColor:`${(0,ei.convertHEXToRGBA)(y?.generalSettingsComponentUiData?.headerBgColor,.4)}`}),children:[(0,s.jsx)(ai,{headerWidgetCms:S}),(0,s.jsxs)(an,{headerWidgetCms:S,className:"flex w-full items-center justify-between gap-4",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-5",children:[e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t||"",logoAlt:r||"",handleRedirectToPath:R}),P&&(0,s.jsx)(tt.ListIcon,{size:30,className:"text-[var(--fill-header-font-color)] cursor-pointer",onClick:L}),(0,s.jsx)(s7,{})]}),(0,s.jsx)("nav",{className:`${ae} flex shrink-0 items-center justify-center gap-y-1 flex-wrap`,style:as(S),children:o?.links&&o.links.length>0?o.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=f===a||f?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2 text-base font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                    ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(j,v,w)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{a&&R(a),(0,u.handleDefaultHomePage)(j,v,w)},passHref:!0,className:`
115      relative inline-block cursor-pointer
116      text-base font-medium tracking-[0.1em]
117      header-font-color py-2
118      before:content-['']
119      before:absolute before:left-0 before:-bottom-1
120      before:h-[2px] before:w-full
121      before:bg-current
122      before:origin-left
123      before:scale-x-0
124      before:transition-transform before:duration-300 before:ease-out
125      hover:before:scale-x-100
126      flex-shrink-0
127      ${r?"before:scale-x-100":""}
128    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-center justify-end gap-4",children:[D&&(0,s.jsxs)(p.default,{href:S?.showcaseHeaderLocationLink||"",className:"group relative border border-[var(--fill-header-font-color)] rounded-full px-6 py-3 text-[var(--fill-header-font-color)] font-medium cursor-pointer overflow-hidden",children:[(0,s.jsx)("span",{className:"relative z-10 transition-colors duration-300 group-hover:text-[var(--fill-header-background-color)]",children:S?.showcaseHeaderLocationLinkText||"Get Started"}),(0,s.jsx)("span",{className:"absolute inset-0 bg-[var(--fill-header-font-color)] transform translate-y-full transition-transform duration-300 ease-in-out group-hover:translate-y-0"})]}),C&&(0,s.jsx)(aH,{size:30})]})]})]})}),(0,s.jsx)("div",{className:(0,ei.cn)("top-0 z-50 w-full pt-3 px-3 transition-transform duration-300 ease-in-out lg:hidden",g?"fixed left-0":"sticky left-0",g&&!i?"-translate-y-full":"translate-y-0"),children:(0,s.jsxs)("div",{className:al(S,"backdrop-blur-md rounded-full py-3 px-3 flex items-center justify-between"),style:ao(S,{backgroundColor:`${(0,ei.convertHEXToRGBA)(y?.generalSettingsComponentUiData?.headerBgColor,.4)}`}),children:[(0,s.jsx)(ai,{headerWidgetCms:S}),(0,s.jsxs)(an,{headerWidgetCms:S,className:"flex w-full items-center justify-between gap-3",children:[e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t||"",logoAlt:r||"",handleRedirectToPath:R}),P&&(0,s.jsx)(tt.ListIcon,{size:26,className:"text-[var(--fill-header-font-color)] cursor-pointer",onClick:L}),(0,s.jsx)(s7,{}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[D&&(0,s.jsx)(p.default,{href:S?.showcaseHeaderLocationLink||"",className:"border border-[var(--fill-header-font-color)] rounded-full px-3 py-2 text-xs text-[var(--fill-header-font-color)] font-medium cursor-pointer group-hover:text-[var(--fill-header-background-color)]",children:S?.showcaseHeaderLocationLinkText||"Get Startead"}),C&&(0,s.jsx)(aH,{size:26})]})]})]})})]})};var az=e.i(356530);let aO=(0,h.default)(()=>
128e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),a_=({siteLogo:e,logoTitle:t,logoAlt:r,onStoreClick:l,onMenuClick:o,searchPageCms:i,widgetData:n,isStickyHeader:c=!1})=>{let d=(0,M.useRouter)(),m=(0,M.usePathname)(),{setRouteLoader:h,retailerId:x,isDefaultHomePage:f,setIsDefaultHomePage:g,commonCMSData:j}=(0,a.useGlobalStore)(),v=j?.generalSettingsComponentUiData?.enableDarkModeToggle,w=e=>{y(e)};function y(e){return(0,k.pushNavHref)({path:e,pathname:m,router:d,setRouteLoader:h})}let N=()=>{l&&l()},C=n?.links??[],S=Math.ceil(C.length/2),P=C.slice(0,S),D=C.slice(S),L=(0,b.useRef)(null),R=j?.headerWidgetCmsData??{},E=R?.isShowLocationIconOrText??!0,F=s9(R);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{ref:L,className:al(R,`w-full hidden lg:block bg-[var(--fill-header-background-color)] header-background ${c?"sticky top-0 !z-[21]":""}`),children:[(0,s.jsx)(ai,{headerWidgetCms:R}),(0,s.jsx)(an,{headerWidgetCms:R,children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"py-5 grid grid-cols-12 items-center gap-3 relative z-30",children:[F?(0,s.jsxs)("div",{className:"col-span-1 flex items-center gap-1 cursor-pointer text-[var(--fill-header-font-color)] hover:text-[var(--fill-header-font-color)] transition-colors duration-300",onClick:o,children:[(0,s.jsx)(az.PlusIcon,{size:20,className:"text-[var(--fill-header-font-color)]"}),(0,s.jsx)("p",{className:"text-base font-medium header-font-color",children:"Menu"})]}):(0,s.jsx)("div",{className:"col-span-1","aria-hidden":!0}),(0,s.jsx)("nav",{className:`${ae} col-span-4 flex items-center flex-wrap justify-end gap-y-1`,style:as(R),children:P&&P?.length>0?P.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=m===a||m?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2\n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                    ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(x,f,g)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{w(a),(0,u.handleDefaultHomePage)(x,f,g)},passHref:!0,className:`
129      relative inline-block cursor-pointer
130      text-base font-medium tracking-[0.1em]
131      header-font-color py-2
132      before:content-['']
133      before:absolute before:left-0 before:-bottom-1
134      before:h-[2px] before:w-full
135      before:bg-current
136      before:origin-left
137      before:scale-x-0
138      before:transition-transform before:duration-300 before:ease-out
139      hover:before:scale-x-100
140      flex-shrink-0
141      ${r?"before:scale-x-100":""}
142    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:`col-span-2 flex items-center justify-center ${j?.stateShowingSettingsCMS?.isEnabled?"gap-2":""}`,children:[e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t||"",logoAlt:r||"",handleRedirectToPath:y,className:"flex items-center"}),(0,s.jsx)(s7,{})]}),(0,s.jsx)("nav",{className:`${ae} col-span-4 flex items-center flex-wrap gap-y-1`,style:as(R),children:D&&D.length>0?D.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=m===a||m?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer pb-2\n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                                                    ",children:[(0,s.jsx)("span",{className:"custom-link-font",children:e.label}),(0,s.jsx)(eF.CaretDown,{size:20,className:"text-b50"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.
142subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(x,f,g)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{w(a),(0,u.handleDefaultHomePage)(x,f,g)},passHref:!0,className:`
143      relative inline-block cursor-pointer
144      text-base font-medium tracking-[0.1em]
145      header-font-color py-2
146      before:content-['']
147      before:absolute before:left-0 before:-bottom-1
148      before:h-[2px] before:w-full
149      before:bg-current
150      before:origin-left
151      before:scale-x-0
152      before:transition-transform before:duration-300 before:ease-out
153      hover:before:scale-x-100
154      flex-shrink-0
155      ${r?"before:scale-x-100":""}
156    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:"col-span-1 flex justify-end gap-2 items-center",children:[E&&(0,s.jsxs)(p.default,{href:R?.showcaseHeaderLocationLink||"",onClick:N,className:"min-w-[100px] text-center group relative border border-[var(--fill-header-font-color)] rounded-full px-3 py-2 text-[var(--fill-header-font-color)] font-medium cursor-pointer overflow-hidden",children:[(0,s.jsx)("span",{className:"text-nowrap relative z-10 text-sm transition-colors duration-300 group-hover:text-[var(--fill-header-background-color)]",children:R?.showcaseHeaderLocationLinkText||"Get Started"}),(0,s.jsx)("span",{className:"absolute inset-0 bg-[var(--fill-header-font-color)] transform translate-y-full transition-transform duration-300 ease-in-out group-hover:translate-y-0"})]}),v&&(0,s.jsx)(aO,{size:20})]})]})})})]}),(0,s.jsxs)("div",{className:al(R,`lg:hidden w-full bg-[var(--fill-header-background-color)] header-background ${c?"sticky top-0 !z-[21]":""}`),children:[(0,s.jsx)(ai,{headerWidgetCms:R}),(0,s.jsx)(an,{headerWidgetCms:R,children:(0,s.jsxs)("div",{className:"py-5 px-6 flex items-center justify-between gap-2",children:[(0,s.jsx)("div",{className:"flex-1",children:F&&(0,s.jsxs)("div",{onClick:o,className:"flex items-center gap-1 w-fit",children:[(0,s.jsx)(az.PlusIcon,{size:18,className:"text-[var(--fill-header-font-color)] cursor-pointer"}),(0,s.jsx)("p",{className:"text-[var(--fill-header-font-color)] text-sm font-medium",children:"Menu"})]})}),(0,s.jsx)("div",{className:"flex justify-center items-center shrink-0",children:e&&(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t||"",logoAlt:r||"",handleRedirectToPath:y,className:"flex items-center"})}),(0,s.jsxs)("div",{className:"flex-1 flex justify-end items-center gap-2",children:[(0,s.jsx)(s7,{}),E&&(0,s.jsx)(p.default,{href:R?.showcaseHeaderLocationLink||"",onClick:N,className:"text-xs text-[var(--fill-header-font-color)] font-medium cursor-pointer",children:(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color shrink-0"})}),v&&(0,s.jsx)(aO,{size:18})]})]})})]})]})};var aB=e.i(49006);let a$="__megamenu_sub_";function aW(e){let t=e.trim().toLowerCase();return!t||"undefined"===t||"null"===t}function aV(e){if(!e)return null;let t=e.categoryKey?.trim(),s=null!=e.id?String(e.id).trim():"",a=t&&!aW(t)?t:s;return aW(a)?null:a}function aU(e,t){if(!t||"all"===t)return;if(t.startsWith(a$)){let s=Number(t.slice(a$.length));return Number.isInteger(s)&&s>=0&&s<e.length?e[s]:void 0}let s=e.find(e=>null!=e.id&&String(e.id).trim()===t);if(s)return s;let a=e.find(e=>null!=e.categoryKey&&e.categoryKey===t);return a||e.find(e=>aV(e)===t)}function aG(e){return[...new Set((e.productSlugs??[]).filter(e=>!!String(e).trim()).map(e=>String(e).trim()))]}function aK(e,t){let s=e.subCategoryLinks??[];if(!s.length||"all"===t)return aG(e);let a=aU(s,t);return a?aG(a):[]}function aY(e){let t=e.trim();return t?"prerolls"===t.toLowerCase().replace(/[\s_-]+/g,"")?"PRE_ROLLS":t.toUpperCase().replace(/[\s-]+/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""):""}let aZ={offset:0,limit:4},aq={direction:"DESC",key:"POPULAR"};async function aX(e){let t=await (0,el.postData)({url:tj.default.productService.filtered,body:e});return t?.error?{products:[],productsCount:0,error:t.error}:{products:t?.menu?.products??[],productsCount:t?.menu?.productsCount??0,error:void 0}}async function aJ(e,t,s,a){let r,l,o,i,{pagination:n,sort:c,search:d,filterExtras:m}=(r=a?.pagination??aZ,l=a?.sort??aq,o=a?.search,i={...a?.extraFilter??{}},a?.menuSection&&(i.menuSection=a.menuSection),{pagination:r,sort:l,search:o,filterExtras:i}),u=(0,eo.sanitizeArray)(s),h={categories:(0,eo.sanitizeArray)(t),...m};return u.length>0?h.productIds=u:"slugs"in h||(h.slugs=[]),aX({retailerId:e.retailerId,menuType:e.menuType,provider:e.provider,f
156ilter:h,pagination:n,sort:c,...void 0!==d?{search:d??""}:{}})}let aQ={offset:0,limit:12};async function a0(e,t,s,a,r){if(!s||!e?.label?.trim())return[];let l=(0,d.decryptFromCookies)("provider")??e_.PROVIDER_SHOWCASE,o={retailerId:a||e_.ECOMMERCE_RETAILER_ID,menuType:s,provider:l},i=aK(e,t),n=e.subCategoryLinks??[],c=n.length>0,m=aY(e.categoryKey||e.label),u=r?.pagination??aQ,h=r?.allowEmptyProductIdsFallback??!0;if(i.length>0){let e={...r?.extraFilter??{},slugs:(0,eo.sanitizeArray)(i)},{products:t,error:s}=await aJ(o,[m],[],{...r,pagination:u,extraFilter:e});if(s)return[];if((t??[]).length>0)return t??[];if(!h)return[];let a={...r?.extraFilter??{}};delete a.slugs,delete a.subcategories;let l=await aJ(o,[m],[],{...r,pagination:{offset:0,limit:Math.max(u.limit??12,250)},extraFilter:a});if(l.error)return[];let n=l.products??[];if(!n.length)return[];let c=new Set(i.map(e=>String(e).trim()).filter(Boolean).map(e=>e.toLowerCase()));return n.filter(e=>[e?._id,e?.id,e?.productId,e?.slug,e?.productSlug].filter(Boolean).map(e=>String(e).trim().toLowerCase()).some(e=>c.has(e)))}if(c&&"all"!==t){let e=aV(aU(n,t))??(aW(String(t))?null:String(t).trim());if(!e)return[];let s=aY(e);if(!s)return[];let{products:a,error:l}=await aJ(o,[m],[],{...r,pagination:u,extraFilter:{...r?.extraFilter??{},subcategories:(0,eo.sanitizeArray)([s])}});return l?[]:a??[]}let{products:x,error:p}=await aJ(o,[m],[],{...r,pagination:u});return p?[]:x??[]}let a1=new Map([["bold",b.createElement(b.Fragment,null,b.createElement("path",{d:"M225.6,62.64l-88-48.17a19.91,19.91,0,0,0-19.2,0l-88,48.17A20,20,0,0,0,20,80.19v95.62a20,20,0,0,0,10.4,17.55l88,48.17a19.89,19.89,0,0,0,19.2,0l88-48.17A20,20,0,0,0,236,175.81V80.19A20,20,0,0,0,225.6,62.64ZM128,36.57,200,76,178.57,87.73l-72-39.42Zm0,78.83L56,76,81.56,62l72,39.41ZM44,96.79l72,39.4v76.67L44,173.44Zm96,116.07V136.19l24-13.13V152a12,12,0,0,0,24,0V109.92l24-13.13v76.65Z"}))],["duotone",b.createElement(b.Fragment,null,b.createElement("path",{d:"M128,129.09V232a8,8,0,0,1-3.84-1l-88-48.18a8,8,0,0,1-4.16-7V80.18a8,8,0,0,1,.7-3.25Z",opacity:"0.2"}),b.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"}))],["fill",b.createElement(b.Fragment,null,b.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.35,44L178.57,92.29l-80.35-44Zm0,88L47.65,76,81.56,57.43l80.35,44Zm88,55.85h0l-80,43.79V133.83l32-17.51V152a8,8,0,0,0,16,0V107.56l32-17.51v85.76Z"}))],["light",b.createElement(b.Fragment,null,b.createElement("path",{d:"M222.72,67.91l-88-48.18a13.9,13.9,0,0,0-13.44,0l-88,48.18A14,14,0,0,0,26,80.18v95.64a14,14,0,0,0,7.28,12.27l88,48.18a13.92,13.92,0,0,0,13.44,0l88-48.18A14,14,0,0,0,230,175.82V80.18A14,14,0,0,0,222.72,67.91ZM127,30.25a2,2,0,0,1,1.92,0L212.51,76,178.57,94.57,94.05,48.31ZM122,223,39,177.57a2,2,0,0,1-1-1.75V86.66l84,46ZM43.49,76,81.56,55.15l84.51,46.26L128,122.24ZM218,175.82a2,2,0,0,1-1,1.75h0L134,223V132.64l36-19.71V152a6,6,0,0,0,12,0V106.37l36-19.71Z"}))],["regular",b.createElement(b.Fragment,null,b.createElement("path",{d:"M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z"}))],["thin",b.createElement(b.Fragment,null,b.createElement("path",{d:"M221.76,69.66l-88-48.18a12,12,0,0,0-11.52,0l-88,48.18A12,12,0,0,0,28,80.18v95.64a12,12,0,0,0,6.24,10.52l88,48.18a11.95,11.95,0,0,0,11.52,0l88-48.18A12,12,0,0,0,228,175.82V80.18A12,12,0,0,0,221.76,69.66ZM126.08,28.5a3.94,3.94,0,0,1,3.84,0L216.67,76,178.5,96.89a4,4,0,0,0-.58-.4l-88-48.18Zm1.92,96L39.33,76,81.56,52.87l88.67,48.54Zm-89.92,54.8a4,4,0,0,1-2.08-3.5V83.29l88,48.16v94.91Zm179.84,0h0l-85.92,47V131.45l40-21.89V152a4,4,0,0,0,8,0V105.18l40-21.89v92.53A4,4,0,0,1,217.92,179.32Z"}))]]),a2=b.forwardRef((e,t)=>
156b.createElement(tk.default,{ref:t,...e,weights:a1}));a2.displayName="PackageIcon";let a3=({activeLabel:e,onCtaClick:t})=>(0,s.jsx)("div",{className:"flex min-h-[280px] w-full items-center justify-center rounded-xl border-2 border-dashed border-gray-200 bg-gray-50/80 px-6 py-10",children:(0,s.jsxs)("div",{className:"max-w-md text-center",children:[(0,s.jsx)("div",{className:"mb-4 flex justify-center text-gray-400",children:(0,s.jsx)("div",{className:"w-20 h-20 rounded-full shadow-md flex items-center justify-center",children:(0,s.jsx)(a2,{className:"h-12 w-12",weight:"duotone","aria-hidden":!0})})}),(0,s.jsxs)("h3",{className:"text-base md:text-lg font-bold text-gray-900",children:["No Products In ",e]}),(0,s.jsx)("p",{className:"mt-2 text-xs md:text-sm text-gray-500",children:"Try another subcategory or browse the full collection."}),(0,s.jsx)("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:(0,s.jsxs)(p.default,{href:"/shop",onClick:()=>t?.(),className:"inline-flex min-h-[40px] items-center justify-center gap-1 rounded-full bg-black px-5 text-xs md:text-sm font-semibold text-white transition hover:bg-gray-900",children:["Shop All",(0,s.jsx)(A.ArrowRight,{className:"h-4 w-4",weight:"bold","aria-hidden":!0})]})})]})});var a5=((t={}).LATEST="latest",t.POPULAR="popular",t);function a4(e){return e?.label?.toLowerCase()!=="deals"||e?.url?e.url?(0,k.normalizeNavHref)(e.url):"":"/deals"}var a6=e.i(489219),a8=e.i(796323);async function a7(e,t,s,a,r){return a0(e,t,s,a,{pagination:{offset:0,limit:12},allowEmptyProductIdsFallback:!1,sort:r===a5.POPULAR?{key:"POPULAR",direction:"DESC"}:{key:"RECENTLY_ADDED",direction:"DESC"}})}function a9({skipProductFetch:e,viewAllHref:t,products:a,showProductSkeleton:r,activeLabelForEmpty:l,onViewAllClick:o,dropdownContentSection:i}){let n=!r&&0===a.length;return(0,s.jsxs)("div",{className:"flex min-h-0 flex-col",children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-wrap items-end justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-500",children:i?.subtitle??"Just in"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-medium text-gray-900 md:text-2xl",children:i?.mainTitle??"New Arrivals"})]}),(0,s.jsxs)(p.default,{href:t,className:"inline-flex min-h-[40px] items-center justify-center rounded-full border border-gray-200 bg-white px-4 text-sm font-medium text-gray-800 transition hover:border-gray-300",children:[i?.buttonLabel??"View all",(0,s.jsx)(A.ArrowRight,{className:"ml-1 h-4 w-4",weight:"bold","aria-hidden":!0})]})]}),e||n?(0,s.jsx)(a3,{activeLabel:l,onCtaClick:o}):r?(0,s.jsx)("div",{className:"min-h-0 pr-1",children:(0,s.jsx)("ul",{className:"grid grid-cols-1 gap-4 pb-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Array.from({length:8}).map((e,t)=>(0,s.jsx)("li",{className:"list-none",children:(0,s.jsx)(a8.ProductCardSkeleton,{},`mega-skel-${t}`)},`mega-skel-${t}`))})}):(0,s.jsx)("div",{className:"min-h-0 pr-1 border-l",children:(0,s.jsx)("ul",{className:"grid grid-cols-1 gap-4 pb-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:a.map((e,t)=>(0,s.jsx)("li",{className:"min-h-0 list-none",children:(0,s.jsx)(aB.default,{productData:e,isListView:!1,brand:"",selectedCategory:{},selectedSpecial:{}})},`${e?.id??e?.slug??"p"}-${t}`))})})]})}let re=({categoryLink:e,itemKey:t,fallbackSort:r,headerElementRef:l,onItemActivate:o,renderTrigger:i,dropdownContentSection:n})=>{let c=(0,M.usePathname)(),{retailerId:d,menuType:m}=(0,a.useGlobalStore)(),[u,h]=(0,b.useState)(!1),x=(0,b.useRef)(null),[p,f]=(0,b.useState)(null),[g,j]=(0,b.useState)(!1),v=(0,b.useRef)(!1),w=(0,b.useRef)(null),y=(0,b.useCallback)(()=>{null!=w.current&&(clearTimeout(w.current),w.current=null)},[]),N=(0,b.useCallback)(()=>{y(),w.current=setTimeout(()=>{w.current=null,h(!1)},160)},[y]),k=(0,b.useCallback)(()=>{y(),h(!0)},[y]);(0,b.useEffect)(()=>()=>y(),[y]);let C=(0,b.useCallback)(()=>{if(!u)return;let e=l?.current;if(!e)return;let t=e.getBoundingClientRect().bottom,s=x.current;if(!s)return void f({headerBottom:t,bridgeTop:t,bridgeHeight:0,bridgeLeft:0,bridgeWidth:0});let a=s.getBoundingClientRect(),r=a.bottom,o=Math.max(0,t-r),i=Math.max(0,a.left-12),n=Math.max(a.width+24,48);n=Math.min(n,Math.max(0,window.innerWidth-i)),f({headerBottom:t,bridgeTop:r,bridgeHeight:o,bridgeLeft:i,bridgeWidth:n})},[u,l]);(0,b.useLayoutEffect)(()=>{u?C():f(null)},[u,C,e.label]),(0,b.useEffect)(()=>
156{if(u)return C(),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C)}},[u,C]),(0,b.useLayoutEffect)(()=>{if(!u){v.current=!1,j(!1);return}if(!p)return;let e=!v.current;if(v.current=!0,window.matchMedia("(prefers-reduced-motion: reduce)").matches||!e)return void j(!0);j(!1);let t=0,s=0;return t=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>j(!0))}),()=>{cancelAnimationFrame(t),cancelAnimationFrame(s)}},[u,p]),(0,b.useEffect)(()=>{y(),h(!1)},[c,y]);let S=e.subCategoryLinks??[],P=S.length>0,[D,L]=(0,b.useState)("all");(0,b.useEffect)(()=>{u&&L("all")},[u,e.label]);let R=(0,b.useMemo)(()=>aK(e,P?D:"all"),[e,P,D]),E=R.join("|"),F=0===R.length,{data:I=[],isFetching:H,isLoading:T}=(0,tv.useQuery)({queryKey:["showcase-v10-megamenu-products",e.label,P?D:"all",E,d,m,r],queryFn:()=>a7(e,P?D:"all",m,d,r),enabled:u&&!!d&&!!m&&!!e.label&&!F,staleTime:6e4}),z=F?[]:I,O=u&&!F&&(H||T)&&!I?.length,_=(0,b.useMemo)(()=>"all"===D?e.label:aU(S,D)?.label??e.label,[D,e.label,S]),B=`/category/${(0,a6.urlSlug)(e?.label)}`,$=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),h(e=>!e))};return(0,s.jsxs)("div",{className:"relative","data-v10-mega":!0,"data-item-key":String(t),onMouseEnter:k,onMouseLeave:N,children:[i?i({open:u,triggerRef:x,label:e.label,triggerProps:{role:"button",tabIndex:0,"aria-haspopup":!0,"aria-expanded":u,onKeyDown:$}}):(0,s.jsxs)("div",{ref:x,className:`flex cursor-pointer select-none items-center gap-1.5 rounded-full border border-transparent px-3 py-2 text-sm font-bold uppercase tracking-wide text-[var(--fill-header-font-color,#000000)] transition-colors ${u?"border-[var(--fill-header-menu-hover-pill-bg-color)] bg-[var(--fill-header-menu-hover-pill-bg-color)] text-[var(--fill-header-menu-hover-pill-text-color)]":"hover:border-[var(--fill-header-menu-hover-pill-bg-color)] hover:bg-[var(--fill-header-menu-hover-pill-bg-color)] hover:text-[var(--fill-header-menu-hover-pill-text-color)]"}`,role:"button",tabIndex:0,"aria-haspopup":"true","aria-expanded":u,onKeyDown:$,children:[(0,s.jsx)("span",{className:"whitespace-nowrap",children:e.label}),(0,s.jsxs)("span",{className:"relative h-3.5 w-3.5 shrink-0",children:[(0,s.jsx)(sF.CaretUp,{size:14,weight:"bold",className:`absolute inset-0 text-current ${u?"block":"hidden"}`,"aria-hidden":!0}),(0,s.jsx)(eF.CaretDown,{size:14,weight:"bold",className:`absolute inset-0 text-current ${u?"hidden":"block"}`,"aria-hidden":!0})]})]}),u&&null!==p&&(0,s.jsxs)(s.Fragment,{children:[p.bridgeHeight>0&&(0,s.jsx)("div",{className:"fixed z-[31] bg-transparent",style:{left:p.bridgeLeft,width:p.bridgeWidth,top:p.bridgeTop,height:p.bridgeHeight},"aria-hidden":!0,onMouseEnter:k,onMouseLeave:N}),(0,s.jsx)("div",{className:`fixed left-0 right-0 z-[32] h-auto w-full overflow-x-hidden overflow-y-auto border-t border-gray-100 bg-white shadow-[0_24px_48px_rgba(0,0,0,0.12)] transition-[opacity,transform] duration-300 [transition-timing-function:cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none motion-reduce:opacity-100 motion-reduce:translate-y-0 ${g?"translate-y-0 opacity-100":"translate-y-3 opacity-0"}`,style:{top:p.headerBottom,maxHeight:`calc(100dvh - ${p.headerBottom}px)`},role:"region","aria-label":`${e.label} menu`,onMouseEnter:k,onMouseLeave:N,children:(0,s.jsx)("div",{className:"_container min-h-0 py-6 md:py-8",children:P?(0,s.jsxs)("div",{className:"grid min-h-0 grid-cols-1 gap-8 md:grid-cols-12 md:gap-10",children:[(0,s.jsxs)("nav",{className:"md:col-span-3 lg:col-span-2","aria-label":"Browse subcategories",children:[(0,s.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-500",children:n?.browseHeading??"Browse"}),(0,s.jsxs)("ul",{className:"mt-4 space-y-0",children:[(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",onClick:()=>{y(),L("all")},className:`flex w-full items-center justify-between py-2.5 pl-3 text-left text-sm font-normal transition ${"all"===D?"border-l-2 border-black pl-[10px] text-black":"border-l-2 border-transparent pl-[10px] text-gray-600 hover:text-black"}`,children:[(0,s.jsxs)("span",{children:["All ",e.label]}),"all"===D&&(0,s.jsx)(A.ArrowRight,{className:"h-4 w-4 shrink-0",weight:"bold","aria-hidden":!0})]})}),S.map((e,t)=>{let a=function(e,t){if(null!=e.id){let t=String(e.id).trim();if(t&&!aW(t))return t}let s=e.categoryKey?.trim();if(s&&!aW(s))return s;let a=aV(e);return a||`${a$}${t}`}(e,t),r=D===a;return(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",onClick:()=>{y(),L(a)},className:`flex w-full items-center justify-between py-1.5 pl-3 text-left text-sm font-normal transition ${r?"border-l-2 border-black pl-[
15610px] text-black":"border-l-2 border-transparent pl-[10px] text-gray-600 hover:text-black"}`,children:[(0,s.jsx)("span",{children:e.label}),r&&(0,s.jsx)(A.ArrowRight,{className:"h-4 w-4 shrink-0",weight:"bold","aria-hidden":!0})]})},a)})]})]}),(0,s.jsx)("div",{className:"min-h-0 md:col-span-9 lg:col-span-10",children:(0,s.jsx)(a9,{viewAllHref:B,products:z,showProductSkeleton:O,activeLabelForEmpty:_,onViewAllClick:o,skipProductFetch:F,dropdownContentSection:n})})]}):(0,s.jsx)(a9,{viewAllHref:B,products:z,showProductSkeleton:O,activeLabelForEmpty:e.label,onViewAllClick:o,skipProductFetch:F,dropdownContentSection:n})})})]})]})},rt=({item:e,itemKey:t,onSubLinkActivate:a})=>{let r=e.subLinks??[];return e.label?(0,s.jsxs)("div",{className:"group relative","data-v10-dropdown":!0,children:[(0,s.jsxs)("div",{className:"custom-link-font flex cursor-pointer items-center gap-1.5 rounded-full border border-transparent px-3 py-2 text-sm font-bold uppercase tracking-wide text-[var(--fill-header-font-color,#000000)] transition-colors group-hover:border-[var(--fill-header-menu-hover-pill-bg-color)] group-hover:bg-[var(--fill-header-menu-hover-pill-bg-color)] group-hover:text-[var(--fill-header-menu-hover-pill-text-color)]",role:"button",tabIndex:0,"aria-haspopup":"true",children:[(0,s.jsx)("span",{className:"custom-link-font whitespace-nowrap",children:e.label}),(0,s.jsxs)("span",{className:"relative h-3.5 w-3.5 shrink-0",children:[(0,s.jsx)(sF.CaretUp,{size:14,weight:"bold",className:"absolute inset-0 hidden text-current group-hover:block","aria-hidden":!0}),(0,s.jsx)(eF.CaretDown,{size:14,weight:"bold",className:"absolute inset-0 text-current group-hover:hidden","aria-hidden":!0})]})]}),(0,s.jsx)("div",{className:"invisible absolute left-1/2 top-full z-50 mt-1 max-h-80 min-w-72 -translate-x-1/2 translate-y-2 overflow-y-auto overflow-x-hidden rounded-lg bg-white py-3 text-left opacity-0 shadow-xl transition-[opacity,transform,visibility] duration-300 ease-out group-hover:visible group-hover:translate-y-0 group-hover:opacity-100",children:(0,s.jsx)(rs,{items:r,depth:0,onItemActivate:a},String(t))})]}):null};function rs({items:e,depth:t,onItemActivate:a}){return(0,s.jsx)("ul",{className:t>0?"mt-1 space-y-0.5 border-l border-gray-100 pl-3":"space-y-0",children:e.map((e,r)=>{let l=!!e?.subLinks?.length,o=a4(e);return(0,s.jsx)("li",{children:l?(0,s.jsxs)("div",{children:[o?(0,s.jsx)(p.default,{href:o,onClick:a,className:"relative flex overflow-hidden rounded-lg p-2 text-left text-sm font-medium text-black hover:bg-gray-50",children:e.label}):(0,s.jsx)("div",{className:"px-2 py-2 text-xs font-bold uppercase tracking-wide text-gray-500",children:e.label}),(0,s.jsx)(rs,{items:e.subLinks??[],depth:t+1,onItemActivate:a})]}):(0,s.jsx)(p.default,{href:o,onClick:a,className:"relative flex overflow-hidden rounded-lg p-3 text-left text-sm text-black hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label})},r)})})}let ra=({headerElementRef:e,links:t,fallbackSort:a,isNavLoading:r,pathname:l,onMainLinkNavigate:o,onSubLinkActivate:i,dropdownContentSection:n,headerWidgetCms:c})=>r?(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[...Array(6)].map((e,t)=>(0,s.jsx)("div",{className:"h-6 w-20 animate-pulse rounded bg-gray-200"},"nav-v10-skeleton-"+t))}):(0,s.jsx)("nav",{className:`${ae} flex w-full min-w-0 flex-wrap items-center justify-center gap-y-1`,style:as(c),"aria-label":"Main",children:t.map((t,r)=>{if(t?.isCategory)return t?.productSlugs&&0===t.productSlugs.length&&t?.subCategoryLinks&&t?.subCategoryLinks?.length===0?null:(0,s.jsx)(re,{itemKey:r,categoryLink:t,fallbackSort:a,headerElementRef:e,onItemActivate:i,dropdownContentSection:n},"v10-cat-"+t.label+"-"+r);let c=a4(t);if(t.subLinks?.length)return(0,s.jsx)(rt,{itemKey:r,item:t,onSubLinkActivate:i},r);let d=!!c&&(l===c||(l?.startsWith(c+"/")??!1));return(0,s.jsx)(p.default,{href:c,onClick:()=>o(c),className:`flex-shrink-0 whitespace-nowrap rounded-full border border-transparent px-3 py-2 text-sm font-bold uppercase tracking-wide text-[var(--fill-header-font-color,#000000)] transition-colors hover:bg-[var(--fill-header-menu-hover-pill-bg-color)] hover:text-[var(--fill-header-menu-hover-pill-text-color)] ${d?"bg-[var(--fill-header-menu-hover-pill-bg-color)] text-[var(--fill-header-menu-hover-pill-text-color)]":""}`,children:t.label},"v10-link-"+r)})});var rr=e.i(865232);let rl=({siteLogo:e="",logoTitle:t="Logo",logoAlt:r="Logo",widgetData:l,onMenuClick:o,isStickyHeader:i,searchPageCms:n})=>{let c=(0,M.useRouter)(),d=(0,M.usePathname)(),{setRouteLoader:m,retailerId:h,isDefaultHomePage:x,setIsDefaultHomePage:p,commonCMSData:f}=(0,a.useGlobalStore)(),g=f?.headerWidgetCmsData??{},j=s9(g),[v,w]=(0,b.useState)(!1),y=l?.links??[],N=l?.fallbackSort,C=l?.dropdownContentSection??{browseHeading:"Browse",buttonLabel:"View all",mainTitle:"New Arrivals",subtitle:"Just in"},S=e=>(0,k.pushNavHref)({path:e,pathname:d,router:c,setRouteLoader:m}),P=(0,b.useRef)(null),D=g?.isShowcaseSearchBar??!0,L=f?.generalSettingsComponentUiData?.enableDarkModeToggle??!1;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:P,className:al(g,`w-full border-b border-[var(--fill-header-border-color)] header-background ${i?"sticky top-0 !z-[21]":""}`),children:[(0,s.jsx)(ai,{headerWidgetCms:g}),(0,s.jsx)(an,{headerWidgetCms:g,children:(0,s.jsx)("div",{className:"_container py-4 md:py-5",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 items-center gap-4 md:grid-cols-12 md:gap-x-4 md:gap-y-0",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2 md:col-span-2 md:justify-start",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[j&&(0,s.jsx)("button",{type:"button",onClick:()=>{o?.()},className:"shrink-0 p-1 transition-opacity duration-200 hover:opacity-70","aria-label":"Open menu",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),(0,s.jsx)("div",{className:"flex min-w-0 items-center justify-start",children:e?(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"flex",handleRedirectToPath:S}):(0,s.jsx)("div",{className:"h-10 w-32 max-w-full animate-pulse rounded-md bg-gray-200"})}),(0,s.jsx)(s7,{})]}),(0,s.jsx)("div",{className:"shrink-0 md:hidden",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[D&&(0,s.jsx)("div",{className:"flex items-center justify-end",children:(0,s.jsx)("button",{type:"button",onClick:()=>w(!0),className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full border border-[var(--fill-header-search-border-color)] bg-transparent text-[var(--fill-header-search-font-color)] transition-opacity hover:opacity-80","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,weight:"regular",className:"header-search-font-color"})})}),L&&(0,s.jsx)("div",{className:"py-6",children:(0,s.jsx)(rr.default,{size:24})})]})})]}),(0,s.jsx)("div",{className:"min-w-0 md:col-span-8 hidden md:block",children:(0,s.jsx)("div",{className:"-mx-2 overflow-x-auto px-2 md:mx-0 md:overflow-visible hidden md:block",children:(0,s.jsx)(ra,{headerElementRef:P,links:y,fallbackSort:N,isNavLoading:!1,pathname:d,onMainLinkNavigate:e=>{e&&S(e),(0,u.handleDefaultHomePage)(h,x,p)},onSubLinkActivate:()=>{(0,u.handleDefaultHomePage)(h,x,p)},dropdownContentSection:C,headerWidgetCms:g})})}),(0,s.jsxs)("div",{className:"hidden justify-end md:col-span-2 md:flex",children:[D&&(0,s.jsx)("div",{className:"flex items-center justify-end",children:(0,s.jsx)("button",{type:"button",onClick:()=>w(!0),className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full border border-[var(--fill-header-search-border-color)] bg-transparent text-[var(--fill-header-font-color)] transition-opacity hover:opacity-80","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:18,weight:"regular",className:"header-search-font-color"})})}),L&&(0,s.jsx)("div",{className:"py-6",children:(0,s.jsx)(rr.default,{size:24})})]})]})})})]}),(0,s.jsx)(tm.default,{openSearch:v,setOpenSearch:w,searchPageCms:n})]})},ro=(0,h.default)(()=>
156e.A(545339),{loadableGenerated:{modules:[931679]},ssr:!1}),ri=({isStickyHeader:e=!1,siteLogo:t,logoTitle:r,logoAlt:l,searchPageCms:o,widgetData:i,onMenuClick:n})=>{let[c,d]=(0,b.useState)(!1),m=(0,M.useRouter)(),[h,x]=(0,b.useState)(!1),f=(0,M.usePathname)(),{setRouteLoader:g,retailerId:j,isDefaultHomePage:v,setIsDefaultHomePage:w,commonCMSData:y}=(0,a.useGlobalStore)(),N=y?.headerWidgetCmsData??{},C=s9(N),S=N?.isShowLocationIconOrText??!0,P=N?.isShowLocationTextOnMobile??!1,D=N?.isShowLocationIconOnMobile??!0,L=N?.isShowcaseSearchBar??!0,R=y?.generalSettingsComponentUiData?.enableDarkModeToggle??!1;function E(e){return(0,k.pushNavHref)({path:e,pathname:f,router:m,setRouteLoader:g})}let F=()=>{x(!0)},I=(0,b.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{ref:I,className:al(N,(0,ei.cn)("hidden lg:block border-b border-gray-200 header-background",e?"sticky top-0 !z-[21]":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:N}),(0,s.jsx)(an,{headerWidgetCms:N,children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsx)("div",{className:"",children:(0,s.jsxs)("div",{className:"grid grid-cols-12 py-5 gap-x-3",children:[(0,s.jsxs)("div",{className:"col-span-3 flex items-center gap-2",children:[C&&(0,s.jsx)("button",{onClick:()=>{n?n():d(!c)},className:"p-1 hover:opacity-70 transition-opacity duration-200",children:(0,s.jsx)(tt.List,{size:30,weight:"regular",className:"header-font-color"})}),t&&(0,s.jsx)(tg.default,{siteLogo:t,logoTitle:r,logoAlt:l,handleRedirectToPath:E,className:"col-span-1 flex items-center"}),(0,s.jsx)(s7,{})]}),(0,s.jsx)("nav",{className:`${ae} col-span-6 flex items-center justify-center flex-wrap`,style:as(N),children:i?.links&&i.links.length>0?i.links.map((e,t)=>{let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals",r=f===a||f?.startsWith(a+"/");return e?.isCategory?null:e?.subLinks&&e?.subLinks?.length?(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsxs)("div",{className:"relative w-full px-2 flex items-center justify-center gap-2 cursor-pointer\n                              \n      text-lg font-medium tracking-[0.1em] custom-link-font\n      header-font-color py-2\n      before:content-['']\n      before:absolute before:left-0 before:-bottom-1\n      before:h-[2px] before:w-full\n      before:bg-current\n      before:origin-left\n      before:scale-x-0\n      before:transition-transform before:duration-300 before:ease-out\n      hover:before:scale-x-100\n                              ",children:[(0,s.jsx)("span",{className:"header-font-color custom-link-font",children:e.label}),(0,s.jsx)(s8.CaretDown,{size:20,className:"text-b50 header-font-color"})]}),(0,s.jsx)("div",{className:"absolute w-72 max-h-80 top-20 bg-white group-hover:top-[50px] overflow-hidden transition-all invisible group-hover:visible group-hover:opacity-100 duration-500 opacity-0 z-50 shadow-xl rounded-lg py-3 overflow-y-auto",children:e?.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url?e?.url:"",onClick:()=>{(0,u.handleDefaultHomePage)(j,v,w)},className:"relative overflow-hidden flex mx-2 p-3 rounded-lg text-black dark:text-white hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))})]},t):(0,s.jsx)(p.default,{href:a??"",onClick:()=>{E(a),(0,u.handleDefaultHomePage)(j,v,w)},passHref:!0,className:`
157      relative inline-block cursor-pointer
158      text-lg font-medium tracking-[0.1em]
159      header-font-color py-2
160      before:content-['']
161      before:absolute before:left-0 before:-bottom-1
162      before:h-[2px] before:w-full
163      before:bg-current
164      before:origin-left
165      before:scale-x-0
166      before:transition-transform before:duration-300 before:ease-out
167      hover:before:scale-x-100
168      ${r?"before:scale-x-100":""}
169    `,children:e.label},"deals-"+t)}):[...Array(9)].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"},"topBar-pc-category-skeleton"+t))}),(0,s.jsxs)("div",{className:"col-span-3 flex items-center justify-end gap-3",children:[L&&(0,s.jsxs)("button",{onClick:F,className:(0,ei.cn)("flex items-center justify-end rounded-full header-search-background-color-no-round header-search-font-color px-3 py-1.5 shadow-sm transition-opacity duration-200 hover:opacity-90 header-search-border-color gap-1.5","w-[210px]"),"aria-label":"Open search",type:"button",children:[(0,s.jsx)("span",{className:"text-xs header-search-font-color uppercase tracking-[0.12em]",children:"Search"}),(0,s.jsx)(th.MagnifyingGlass,{size:18,weight:"regular",className:"header-search-font-color"})]}),S&&(0,s.jsxs)(p.default,{href:N?.showcaseHeaderLocationLink||"",className:"flex items-center gap-2 hover:opacity-70 transition-opacity duration-200","aria-label":"Find 
169Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color"}),(0,s.jsx)("span",{className:"text-lg font-medium header-font-color tracking-[0.1em]",children:N?.showcaseHeaderLocationLinkText})]}),R&&(0,s.jsx)("div",{className:"py-6",children:(0,s.jsx)(rr.default,{size:24})})]})]})})})})]}),(0,s.jsxs)("header",{className:al(N,(0,ei.cn)("lg:hidden border-b border-gray-200 header-background",e?"sticky top-0 !z-[21] header-background":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:N}),(0,s.jsx)(an,{headerWidgetCms:N,children:(0,s.jsx)("div",{className:"px-4",children:(0,s.jsxs)("div",{className:"flex items-center h-[60px]",children:[C&&(0,s.jsx)("button",{onClick:n,className:(0,ei.cn)("p-1 hover:opacity-70 transition-all duration-300 shrink-0",S&&D?"mr-2":""),"aria-label":"Menu",children:(0,s.jsx)(tt.List,{size:28,weight:"regular",className:"header-font-color"})}),t&&(0,s.jsxs)("div",{className:(0,ei.cn)("flex items-center gap-2 flex-1",S&&D?"justify-start":"justify-center"),children:[(0,s.jsx)(tg.default,{siteLogo:t,logoTitle:r,logoAlt:l,handleRedirectToPath:E,className:"flex items-center"}),(0,s.jsx)(s7,{})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[L&&(0,s.jsx)("button",{onClick:F,className:"p-1 hover:opacity-70 transition-opacity duration-200","aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,weight:"regular",className:"header-font-color"})}),S&&D&&(0,s.jsxs)(p.default,{href:N?.showcaseHeaderLocationLink||"",className:(0,ei.cn)("hover:opacity-70 transition-all duration-300",P?"flex items-center gap-1.5 p-1":"p-1"),"aria-label":"Find Stores",children:[(0,s.jsx)(Z.MapPin,{size:20,weight:"regular",className:"header-font-color shrink-0"}),P?(0,s.jsx)("span",{className:"text-sm font-medium header-font-color tracking-[0.05em] max-w-[min(40vw,140px)] truncate",children:N?.showcaseHeaderLocationLinkText}):null]}),R&&(0,s.jsx)("div",{className:"py-6",children:(0,s.jsx)(rr.default,{size:24})})]})]})})})]}),(0,s.jsx)(ro,{openSearch:h,setOpenSearch:x,searchPageCms:o})]})};function rn({size:e,className:t}){return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:e,height:e,fill:"currentColor",className:(0,ei.cn)("header-font-color shrink-0",t),"aria-hidden":!0,children:(0,s.jsx)("path",{d:"M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"})})}function rc(e,t){let s="number"==typeof e?e:Number.parseInt(String(e??""),10);return Number.isFinite(s)?Math.min(64,Math.max(12,s)):t}let rd=({siteLogo:e,logoTitle:t,logoAlt:r,onMenuClick:l})=>{let[o,i]=(0,b.useState)(!1),n=(0,M.useRouter)(),c=(0,M.usePathname)(),{setRouteLoader:d,commonCMSData:m}=(0,a.useGlobalStore)(),u=(0,b.useRef)(null),h=m?.headerWidgetCmsData??{},x=s9(h),f=h?.isShowLocationIconOrText??!0,g=h?.isShowSocialIcon??!1,j=rc(h?.showcaseHeaderMenuIconSizeMobile,28),v=rc(h?.showcaseHeaderMenuIconSizeDesktop,28),w=h?.showcaseHeaderSocialIcon?.trim()||"InstagramLogo",y=rc(h?.showcaseHeaderSocialIconSizeMobile,26),N=rc(h?.showcaseHeaderSocialIconSizeDesktop,26),C=h?.showcaseHeaderSocialIconLink?.trim()||"",S=h?.showcaseHeaderLocationLink?.trim()||"",P=h?.showcaseHeaderLocationLinkText?.trim()||"",D=(0,sj.getPhosphorIcon)(w,"InstagramLogo");(0,b.useEffect)(()=>{let e=()=>{i(window.scrollY>8)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let L=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(D,{size:y,weight:"regular",className:"header-font-color md:hidden","aria-hidden":!0}),(0,s.jsx)(D,{size:N,weight:"regular",className:"header-font-color hidden md:block","aria-hidden":!0})]}),R="/"===(0,M.usePathname)(),E=m?.generalSettingsComponentUiData?.enableDarkModeToggle??!1;return(0,s.jsxs)("header",{ref:u,className:al(h,(0,ei.cn)("top-0 left-0 right-0 z-[21] transition-[background-color,box-shadow] duration-300 ease-in-out md:py-6",o?"header-background shadow-sm":"bg-transparent",R?"fixed":"",!R&&o?"sticky":"")),children:[(0,s.jsx)(ai,{headerWidgetCms:h}),(0,s.jsx)(an,{headerWidgetCms:h,children:(0,s.jsx)("div",{className:"_container",children:(0,s.jsxs)("div",{className:"flex h-[68px] items-center justify-between gap-3 py-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[x&&(0,s.jsxs)("button",{type:"button",onClick:()=>{l?.()},className:"flex-shrink-0 p-1 transition-opacity duration-200 hover:opacity-80","aria-label":"Open menu",children:[(0,s.jsx)(rn,{size:j,className:"md:hidden"}),(0,s.jsx)(rn,{size:v,className:"hidden md:block"})]}),e?(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,className:"block min-w-0",handleRedirectToPath:function(e){return(0,k.pushNavHref)({path:e,pathname:c,router:n,setRouteLoader:d})}}):null,(0,s.jsx)(s7,{})]}),(0,s.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-3 sm:gap-4",children:[(()=>{if(!f)return null;let e=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Z.MapPin,{size:22,weight:"regular",className:"header-font-color flex-shrink-0"}),P?(0,s.jsx)("span",{className:"text-sm font-medium header-font-color truncate max-w-[140px] sm:max-w-[200px]",children:P}):null]});return S?(0,s.jsx)(p.default,{href:S,className:"flex items-center gap-1.5 transition-opacity duration-200 hover:opacity-80",children:e}):(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:e})})(),g?C?(0,s.jsx)("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1 transition-opacity duration-200 hover:opacity-80","aria-label":"Social link",children:L()}):(0,s.jsx)("span",{className:"flex items-center justify-center p-1","aria-hidden":!0,
169children:L()}):null,E&&(0,s.jsx)("div",{className:"py-6",children:(0,s.jsx)(rr.default,{size:24})})]})]})})})]})};function rm({headerWidgetCms:e}){let t=(0,a.useGlobalStore)(e=>e.commonCMSData?.headerWidgetCmsData),r=function(e){let{columnGapPx:t,rowGapPx:s}=at(e);return`
170header nav.${ae},
171nav.${ae} {
172  column-gap: ${t}px !important;
173  row-gap: ${s}px !important;
174  gap: ${s}px ${t}px !important;
175}
176`.trim()}(e??t);return(0,s.jsx)("style",{"data-showcase-nav-link-gap-override":!0,dangerouslySetInnerHTML:{__html:r}})}let ru=({siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,headerFooterSettingsCms:l,isStickyHeader:o,onMenuClick:i,preloadedTickerData:n})=>{let{headerFooterSettings:c}=l;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rm,{}),(0,s.jsx)(so.default,{preloadedTickerData:n}),c?.isShowcaseHeaderVersionOne?(0,s.jsx)(am,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionTwo?(0,s.jsx)(ax,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionThree?(0,s.jsx)(ag,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionFour?(0,s.jsx)(ak,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionFive?(0,s.jsx)(aP,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionSix?(0,s.jsx)(aE,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionSeven?(0,s.jsx)(aA,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i}):c?.isShowcaseHeaderVersionEight?(0,s.jsx)(aT,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i}):c?.isShowcaseHeaderVersionNine?(0,s.jsx)(a_,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionTen?(0,s.jsx)(rl,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionEleven?(0,s.jsx)(ri,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o}):c?.isShowcaseHeaderVersionTwelve?(0,s.jsx)(rd,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i}):(0,s.jsx)(am,{siteLogo:e,logoTitle:t,logoAlt:a,widgetData:r,onMenuClick:i,isStickyHeader:o})]})};var rh=e.i(524331);let rx="overflow-x-auto overflow-y-hidden overscroll-x-contain scrollbar-hidden",rp="select-none";function rf(e=208){let t=(0,b.useRef)(null),[s,a]=(0,b.useState)(!1),[r,l]=(0,b.useState)(!1),[o,i]=(0,b.useState)(null),n=(0,b.useRef)(null),c=(0,b.useRef)(!1),d=(0,b.useRef)(0),m=(0,b.useRef)(0),u=(0,b.useRef)(!1),h=(0,b.useRef)(null),x=s||r,p=(0,b.useCallback)(()=>i(e=>e?null:e),[]),f=(0,b.useCallback)(()=>{n.current&&(clearTimeout(n.current),n.current=null)},[]),g=(0,b.useCallback)(()=>{f(),n.current=setTimeout(()=>i(null),150)},[f]),j=(0,b.useCallback)((t,s)=>{f();let a=s.getBoundingClientRect();i({index:t,top:a.bottom,left:Math.max(12,Math.min(a.left,window.innerWidth-e-12))})},[f,e]);(0,b.useEffect)(()=>f,[f]);let v=(0,b.useCallback)(()=>{let e=t.current;e&&(p(),a(e.scrollLeft>1),l(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[p]);(0,b.useEffect)(()=>{let e=t.current;if(!e)return;v();let s=new ResizeObserver(v);s.observe(e);let a=new MutationObserver(v);return a.observe(e,{childList:!0,subtree:!0}),e.addEventListener("scroll",v,{passive:!0}),window.addEventListener("resize",v),()=>{s.disconnect(),a.disconnect(),e.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[v]),(0,b.useEffect)(()=>(window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)),[p]),(0,b.useEffect)(()=>{let e=t.current;if(!e)return;let s=t=>{if(t.ctrlKey||Math.abs(t.deltaY)<=Math.abs(t.deltaX))return;let s=e.scrollWidth-e.clientWidth;if(s<=1)return;let a=t.deltaMode===WheelEvent.DOM_DELTA_LINE?16*t.deltaY:t.deltaY,r=Math.min(Math.max(e.scrollLeft+a,0),s);r!==e.scrollLeft&&(t.preventDefault(),e.scrollLeft=r)};return e.addEventListener("wheel",s,{passive:!1}),()=>e.removeEventListener("wheel",s)},[]);let w=(0,b.useCallback)(e=>{let s=t.current;s&&!(s.scrollWidth<=s.clientWidth)&&(c.current=!0,u.current=!1,d.current=e.pageX,m.current=s.scrollLeft)},[]),y=(0,b.useCallback)(e=>{let s=t.current;if(!c.current||!s)return;e.preventDefault();let a=e.pageX-d.current;Math.abs(a)>4&&(u.current=!0),s.scrollLeft=m.current-a},[]),N=(0,b.useCallback)(()=>{c.current=!1},[]),k=x?`linear-gradient(to right, ${s?"transparent 0, black 24px":"black 0"}, ${r?"black calc(100% - 24px), transparent 100%":"black 100%"})`:void 0,C=(0,b.useCallback)(e=>{let s=t.current;if(!s)return;null!==h.current&&(cancelAnimationFrame(h.current),h.current=null);
176let a=s.scrollWidth-s.clientWidth,r=.8*s.clientWidth,l=s.scrollLeft,o=Math.min(Math.max(l+("left"===e?-r:r),0),a)-l;if(0===o)return;let i=performance.now(),n=e=>{let t=Math.min((e-i)/450,1);s.scrollLeft=l+o*(t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2),h.current=t<1?requestAnimationFrame(n):null};h.current=requestAnimationFrame(n)},[]);return(0,b.useEffect)(()=>()=>{null!==h.current&&cancelAnimationFrame(h.current)},[]),{navStripRef:t,navStripProps:{ref:t,style:{maskImage:k,WebkitMaskImage:k},onMouseDown:w,onMouseMove:y,onMouseUp:N,onMouseLeave:N},isOverflowing:x,showLeftFade:s,showRightFade:r,scrollNavStrip:C,hasDraggedRef:u,openSubMenu:o,openSubMenuFrom:j,closeSubMenu:p,cancelSubMenuClose:f,scheduleSubMenuClose:g}}var rg=e.i(338984);let rb=[{id:2,name:"Your Order",link:"/your-order"},{id:3,name:"Your List",link:"/your-list"},{id:4,name:"Chat with Retailer",link:"/chat-with-retailer"},{id:5,name:"Keep Shopping For",link:"/keep-shopping-for"},{id:6,name:"Blog",link:"/blog"},{id:7,name:"Contact Us",link:"/contact"},{id:8,name:"Location",link:"/find-a-dispensary"},{id:9,name:"Request Your Information",link:"/account/request-your-information"},{id:10,name:"Login & Security",link:"/account/login-and-security"},{id:11,name:"Terms & Condition",link:"/terms-and-conditions"},{id:12,name:"Privacy Policy",link:"/privacy-policy"},{id:13,name:"Customer Support",link:"/ticket-list"},{id:14,name:"Close Your Account",link:"/account/close-your-account"},{id:15,name:"Sign Out",link:""}],rj=({isShowSignInButton:e,iconSize:t=20,triggerClassName:r})=>{let[l,o]=(0,b.useState)(!1),[i,n]=(0,b.useState)(!1),c=(0,M.usePathname)(),d=(0,M.useRouter)(),{user:m,token:h}=(0,eR.useUserData)(),{wishlist:x}=(0,eM.useWishlistStore)(),{setIsOpenLogoutConfirm:f}=(0,eD.useModalStore)(),{chatPlatformCms:g,retailerId:j,isDefaultHomePage:v,setIsDefaultHomePage:w}=(0,a.useGlobalStore)();function y(e){if(e===c)return!1;d.push(e)}let N=()=>{n(!1),(0,u.handleDefaultHomePage)(j,v,w)};return h?(0,s.jsxs)("div",{className:rg.default.hover_container,children:[(0,s.jsxs)("button",{type:"button",className:(0,ei.cn)("w-max cursor-pointer flex items-center gap-2 flex-nowrap",r),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onClick:()=>{d.push("/account"),o(!1)},children:[(0,s.jsx)(e$.User,{size:t,className:"header-font-color shrink-0"}),(0,s.jsxs)("div",{className:"flex-1 flex-grow text-start header-font-color",children:[(0,s.jsx)("span",{className:"text-start text-sm font-semibold block",children:m?.firstName}),(0,s.jsx)("span",{className:"text-xs header-font-color block",children:"Account & List"})]})]}),l&&(0,s.jsxs)("div",{className:(0,ei.cn)(rg.default.hover_div,"website-cards-bg-color"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-lg bg-[#EBF6E6] border",children:[(0,s.jsxs)("p",{className:"text-base font-medium website-cards-heading-color",children:[m?.firstName," ",m?.lastName]}),(0,s.jsxs)(p.default,{className:"text-base font-medium website-cards-text-color flex items-center gap-1",href:"/profile",onClick:()=>{y("/profile"),N()},children:["View Profile ",(0,s.jsx)(ef.CaretRight,{size:24})]})]}),(0,s.jsx)("br",{}),(0,s.jsxs)("div",{className:"grid grid-cols-2",children:[(0,s.jsxs)("div",{className:"border-r border-r-gray-200 pr-5",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold global-heading-color mb-3",children:"Your List"}),x?.wishlistItems?.map((e,t)=>(0,s.jsx)("div",{className:"mb-2",children:(0,s.jsx)(p.default,{href:`/your-list/${e?.slug}`,onClick:()=>{y(`/your-list/${e?.slug}`),N()},className:"text-sm font-medium text-gray-600 hover:text-[#34A203] dark:hover:text-[var(--primary-text-color)] duration-300 transition-all",children:e?.listName||"No name"})},"account-menu-wish-list-link"+t)),(0,s.jsx)("hr",{className:"my-5"}),(0,s.jsx)("div",{children:(0,s.jsx)(p.default,{className:"text-sm font-medium text-[#1C64F2] hover:text-gray-600 duration-300 transition-all underline",href:"/your-list",onClick:N,children:"Create a Your List"})})]}),(0,s.jsxs)("div",{className:"pl-5",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold global-heading-color mb-3",children:"Your Account"}),rb.map(e=>g||"/chat-with-retailer"!==e.link?(0,s.jsx)("div",{children:"Sign Out"===e.name?(0,s.jsx)("button",{type:"button",className:"text-sm font-medium text-gray-600 hover-text duration-300 transition-all mb-3 block",onClick:()=>{o(!1),f(!0)},children:e.name}):(0,s.jsx)(p.default,{className:"text-sm font-medium website-cards-text-color hover-text duration-300 transition-all mb-3 block",href:e.link,onClick:N,children:e.name})},"account-menu-link"+e.id):null)]})]})]})]}):e?(0,s.jsxs)("div",{className:"relative cursor-pointer flex items-center gap-2 flex-nowrap",onClick:()=>n(e=>!e),children:[(0,s.jsx)(e$.User,{size:t,className:"header-font-color shrink-0"}),(0,s.jsx)(p.default,{href:"/sign-in",onClick:()=>y("/sign-in"),children:(0,s.jsx)("span",{className:"header-font-color text-sm font-semibold uppercase tracking-wide whitespace-nowrap",children:"Sign In"})})]}):null};var rv=e.i(590961);let rw="absolute top-1/2 -translate-y-1/2 z-10 flex items-center justify-center h-6 w-6 p-0.5 rounded-full shadow-md backdrop-blur-sm bg-[color-mix(in_srgb,var(--fill-button-background-color)_40%,transparent)] text-[var(--fill-button-font-color)] transition-all duration-200 ease-out hover:scale-110 active:scale-90",ry=({navStripProps:e,stripClassName:t,wrapperClassName:a,showLeftFade:r,showRightFade:l,scrollNavStrip:o,children:i})=>(0,s.jsxs)("div",{className:(0,ei.cn)("relative group/nav-strip",a),children:[(0,s.jsx)("button",{type:"button",onClick:()=>o("left"),"aria-label":"Scroll menu left",tabIndex:r?0:-1,className:(0,ei.cn)(rw,"left-1",r?"opacity-0 pointer-events-none group-hover/nav-strip:opacity-100 group-hover/nav-strip:pointer-events-auto":"opacity-0 pointer-events-none -translate-x-1"),children:(0,s.jsx)(rv.CaretLeftIcon,{size:20})}),(0,s.jsx)("div",{...e,className:t,children:i}),(0,s.jsx)("button",{type:"button",onClick:()=>o("right"),"aria-label":"Scroll menu right",tabIndex:l?0:-1,className:(0,ei.cn)(rw,"right-1",l?"opacity-0 pointer-events-none group-hover/nav-strip:opacity-100 group-hover/nav-strip:pointer-events-auto":"opacity-0 pointer-events-none translate-x-1"),children:(0,s.jsx)(ef.CaretRightIcon,{size:20})})]}),rN=(0,h.default)(()=>
176e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),rk=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,handleDrawer:o,handlePreferenceDrawer:i,provider:n,isShowSignInButton:c})=>{let d=(0,M.usePathname)(),m=(0,M.useRouter)(),{token:h}=(0,eR.useUserData)(),{wishlist:x}=(0,eM.useWishlistStore)(),{cartCounter:f,isCartSidebarOpen:g,setIsCartSidebarOpen:j}=(0,eP.useCartStore)(),{setRouteLoader:v,setOpenSignInRequiredModal:w,retailerId:y,isDefaultHomePage:N,setIsDefaultHomePage:C,commonCMSData:S,searchMenuType:P,orderType:D,selectedDeliveryAddress:L,selectedPickupAddress:R,selectedPickupAddressObject:E,selectedCurbsideAddress:F,selectedCurbsideAddressObject:I,retailerDetails:A,providerSettingsCms:H,isProviderLoading:T}=(0,a.useGlobalStore)(),z=eG(),O=(0,eC.useNavigationLoading)(l),{navStripProps:_,isOverflowing:B,showLeftFade:$,showRightFade:W,scrollNavStrip:V,hasDraggedRef:U,openSubMenu:G,openSubMenuFrom:K,closeSubMenu:Y,cancelSubMenuClose:q,scheduleSubMenuClose:X}=rf(224),[J,Q]=(0,b.useState)(!1);function ee(e){return e!==d&&(0,k.pushNavHref)({path:e,pathname:d,router:m,setRouteLoader:v})}let et=e=>{ee(e),(0,u.handleDefaultHomePage)(y,N,C)},{line1:es,postalCode:ea,city:er,state:el}=(0,u.isTruthyObject)(E)?E:(0,u.isTruthyObject)(I)?I:{},eo="DELIVERY"===D?L:"PICKUP"===D||"CURBSIDE_PICKUP"===D?H?.treez?A?.address:(0,u.formatPickupAddress)(es,er,el,ea):"",en=!!D&&!!(R||L||F)&&!T;return(0,s.jsx)("div",{className:(0,ei.cn)("max-md:hidden sticky top-4 z-30 mx-4 lg:mx-8 rounded-lg shadow-lg backdrop-blur-md","bg-[color-mix(in_srgb,var(--fill-header-background-color)_70%,transparent)]"),children:(0,s.jsxs)("nav",{className:"flex items-stretch justify-between gap-5 w-full min-h-20",children:[(0,s.jsxs)("div",{className:"flex items-stretch min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 pl-6 pr-6 shrink-0 border-r",children:[(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:ee}),(0,s.jsx)(tt.List,{onClick:o,size:24,className:"header-font-color cursor-pointer shrink-0"})]}),(0,s.jsx)(ry,{navStripProps:_,wrapperClassName:"flex items-stretch min-w-0",stripClassName:(0,ei.cn)("flex items-stretch min-w-0",rx,B&&rp),showLeftFade:$,showRightFade:W,scrollNavStrip:V,children:O?[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"flex items-center px-6 shrink-0",children:(0,s.jsx)("div",{className:"h-4 w-16 bg-gray-300 animate-pulse rounded"})},"desktop-header-v2-nav-skeleton-"+t)):l?.links?.map((e,t)=>{if(e?.isCategory)return null;let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals";if(e?.enableResourceMegaMenu)return(0,s.jsx)("div",{className:"flex items-stretch shrink-0",children:(0,s.jsx)(tn,{item:e,onLinkClick:et})},t);let r=!!a&&("/"===a?"/"===d:!!d?.startsWith(a)),l=!!e?.subLinks?.length,o=G?.index===t;return(0,s.jsxs)("div",{className:(0,ei.cn)("relative group flex items-stretch shrink-0 border-r",r&&"bg-black/10 dark:bg-white/10"),onMouseEnter:l?e=>K(t,e.currentTarget):void 0,onMouseLeave:l?X:void 0,children:[(0,s.jsx)(p.default,{href:a??"",draggable:!1,onClick:e=>{U.current?e.preventDefault():et(a)},className:"flex items-center justify-center px-6 whitespace-nowrap text-sm font-semibold uppercase tracking-wide header-font-color",children:e.label}),(0,s.jsx)("span",{className:(0,ei.cn)("absolute bottom-0 inset-x-4 h-[2px] bg-[var(--fill-header-font-color)] transition-opacity duration-200",r?"opacity-100":"opacity-0")}),l&&o&&"u">typeof document&&(0,ts.createPortal)((0,s.jsx)("div",{style:{position:"fixed",top:G.top+8,left:G.left},className:"w-56 bg-[var(--website-cards-bg-color)] z-50 shadow-xl rounded-lg py-3 animate-in fade-in duration-300",onMouseEnter:q,onMouseLeave:X,children:e.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url??"",onClick:()=>{Y(),et(e?.url)},className:"block px-5 py-3 text-sm font-semibold text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))}),document.body)]},t)})})]}),(0,s.jsxs)("div",{className:"flex items-stretch gap-6 shrink-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-6 pr-6 shrink-0 border-r",children:[n!==e_.PROVIDER_ECOMMERCE&&n!==e_.PROVIDER_SHOWCASE&&y&&(0,s.jsxs)("button",{type:"button",onClick:i,className:"flex items-center gap-2 rounded-full bg-[var(--website-cards-bg-color)] pl-3 pr-2.5 py-1.5 
176shrink-0",children:[(0,s.jsx)(Z.MapPin,{size:16,className:"header-font-color shrink-0"}),en?(0,s.jsxs)("div",{className:"flex flex-col items-start leading-none text-left",children:[(0,s.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide opacity-60 header-font-color",children:"DELIVERY"===D?"Delivery":"PICKUP"===D?"Pickup":"CURBSIDE_PICKUP"===D?"Curbside Pickup":""}),(0,s.jsx)("span",{className:"text-sm font-semibold header-font-color truncate max-w-[180px]",children:eo})]}):(0,s.jsx)("div",{className:"h-[26px] w-[110px] bg-gray-300 animate-pulse rounded"}),(0,s.jsx)(eF.CaretDown,{size:14,className:"header-font-color shrink-0"})]}),n!==e_.PROVIDER_IFRAME&&((0,tu.usesLiveSearchOverlay)(P)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>Q(!0),"aria-label":"Search",className:"shrink-0",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color cursor-pointer"})}),(0,s.jsx)(tm.default,{setOpenSearch:Q,openSearch:J})]}):(0,s.jsx)(p.default,{href:"/search","aria-label":"Search",onClick:()=>(0,u.handleDefaultHomePage)(y,N,C),children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color cursor-pointer"})})),z&&(0,s.jsxs)(p.default,{href:h?"/your-list":"",onClick:()=>{h?ee("/your-list"):w(!0),(0,u.handleDefaultHomePage)(y,N,C)},className:"relative",children:[h&&x?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[18px] w-[18px] rounded-full bg-primary text-white text-[10px] flex items-center justify-center",children:x.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:20,className:"header-font-color"})]}),S?.generalSettingsComponentUiData?.enableDarkModeToggle&&(0,s.jsx)(rN,{size:20})]}),(0,s.jsx)("div",{className:"flex items-center shrink-0",children:(0,s.jsx)(rj,{isShowSignInButton:c})}),n!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("button",{type:"button",onClick:()=>j(!g),className:"bg-[var(--fill-button-background-color)] text-[var(--fill-button-font-color)] flex flex-col items-center justify-center gap-1 px-8 shrink-0 rounded-r-lg",children:[(0,s.jsxs)("span",{className:"relative",children:[(0,s.jsx)(eU.Handbag,{size:22}),f?(0,s.jsx)("span",{className:"absolute -top-2 -right-3 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:f}):null]}),(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wide",children:"Cart"})]})]})]})})};var rC=e.i(759500);let rS=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),rP=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,handleDrawer:o,handlePreferenceDrawer:i,provider:n,isShowSignInButton:c})=>{let d=(0,M.usePathname)(),m=(0,M.useRouter)(),{token:h}=(0,eR.useUserData)(),{wishlist:x}=(0,eM.useWishlistStore)(),{cartCounter:f,isCartSidebarOpen:g,setIsCartSidebarOpen:j}=(0,eP.useCartStore)(),{setRouteLoader:v,setOpenSignInRequiredModal:w,retailerId:y,isDefaultHomePage:N,setIsDefaultHomePage:C,commonCMSData:S,searchMenuType:P,orderType:D,selectedDeliveryAddress:L,selectedPickupAddress:R,selectedPickupAddressObject:E,selectedCurbsideAddress:F,selectedCurbsideAddressObject:I,retailerDetails:A,providerSettingsCms:H,isProviderLoading:T}=(0,a.useGlobalStore)(),z=eG(),O=(0,eC.useNavigationLoading)(l),{navStripProps:_,isOverflowing:B,showLeftFade:$,showRightFade:W,scrollNavStrip:V,hasDraggedRef:U,openSubMenu:G,openSubMenuFrom:K,closeSubMenu:Y,cancelSubMenuClose:q,scheduleSubMenuClose:X}=rf(),[J,Q]=(0,b.useState)(!1);function ee(e){return e!==d&&(0,k.pushNavHref)({path:e,pathname:d,router:m,setRouteLoader:v})}let et=e=>{ee(e),(0,u.handleDefaultHomePage)(y,N,C)},{line1:es,postalCode:ea,city:er,state:el}=(0,u.isTruthyObject)(E)?E:(0,u.isTruthyObject)(I)?I:{},eo="DELIVERY"===D?L:"PICKUP"===D||"CURBSIDE_PICKUP"===D?H?.treez?A?.address:(0,u.formatPickupAddress)(es,er,el,ea):"",en=!!D&&!!(R||L||F)&&!T;return(0,s.jsx)("div",{className:"max-md:hidden sticky top-0 z-30 header-background border-b",children:(0,s.jsxs)("nav",{className:"flex items-center justify-between gap-5 w-full min-h-20 _container",children:[(0,s.jsxs)("div",{className:"flex items-center gap-7 flex-1 min-w-0",children:[(0,s.jsx)(tt.List,{onClick:o,size:24,className:"header-font-color cursor-pointer shrink-0"}),(0,s.jsx)(ry,{navStripProps:_,wrapperClassName:"flex-1 min-w-0 flex items-center",stripClassName:(0,ei.cn)("flex items-center gap-7 flex-1 min-w-0 py-2",rx,B&&rp),showLeftFade:$,showRightFade:W,scrollNavStrip:V,children:O?[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-14 bg-gray-300 animate-pulse rounded shrink-0"},"desktop-header-v3-nav-skeleton-"+t)):l?.links?.map((e,t)=>{if(e?.isCategory)return null;let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals";if(e?.enableResourceMegaMenu)return(0,s.jsx)("div",{className:"flex items-center shrink-0",children:(0,s.jsx)(tn,{item:e,onLinkClick:et})},t);let r=!!a&&("/"===a?"/"===d:!!d?.startsWith(a)),l=!!e?.subLinks?.length,o=G?.index===t;return(0,s.jsxs)("div",{className:"relative group flex items-center shrink-0",onMouseEnter:l?e=>K(t,e.currentTarget):void 0,onMouseLeave:l?X:void 0,children:[(0,s.jsxs)(p.default,{href:a??"",draggable:!1,onClick:e=>{U.current?e.preventDefault():et(a)},className:"flex items-center gap-1 whitespace-nowrap text-base font-semibold header-font-color py-1",children:[e.label,l&&(0,s.jsx)(eF.CaretDown,{size:12})]}),(0,s.jsx)("span",{className:(0,ei.cn)("absolute -bottom-1.5 left-0 right-0 h-[2px] bg-[var(--fill-header-font-color)] transition-opacity duration-200",r?"opacity-100":"opacity-0 group-hover:opacity-100")}),l&&o&&"u">typeof document&&(0,ts.createPortal)((0,s.jsx)("div",{style:{position:"fixed",top:G.top+8,left:G.left},className:"w-52 border bg-[var(--website-cards-bg-color)] z-50 shadow-xl rounded-lg py-3 animate-in fade-in duration-300",onMouseEnter:q,onMouseLeave:X,children:e.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url??"",onClick:()=>{Y(),et(e?.url)},className:"block px-5 py-2.5 text-sm font-medium text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))}),document.body)]},t)})})]}),(0,s.jsx)("div",{className:"flex items-center justify-center shrink-0",children:(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:ee})}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-5 flex-1 min-w-0",children:[n!==e_.PROVIDER_ECOMMERCE&&n!==e_.PROVIDER_SHOWCASE&&y&&(0,s.jsxs)("button",{type:"button",onClick:i,className:"flex items-center gap-1.5 shrink-0",children:[(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color shrink-0"}),en?(0,s.jsxs)("div",{className:"flex flex-col items-start leading-none text-left",children:[(0,s.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide opacity-60 header-font-color",children:"DELIVERY"===D?"Delivery":"PICKUP"===D?"Pickup":"CURBSIDE_PICKUP"===D?"Curbside Pickup":""}),(0,s.jsx)("span",{className:"text-sm font-semibold header-font-color truncate max-w-[180px]",children:eo})]}):(0,s.jsx)("div",{className:"h-[26px] w-[110px] bg-gray-300 animate-pulse rounded"}),(0,s.jsx)(eF.CaretDown,{size:12,className:"header-font-color shrink-0"})]}),z&&(0,s.jsxs)(p.default,{href:h?"/your-list":"",onClick:()=>{h?ee("/your-list"):w(!0),(0,u.handleDefaultHomePage)(y,N,C)},className:"relative shrink-0",children:[h&&x?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:x.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:20,className:"header-font-color"})]}),n!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("button",{type:"button",onClick:()=>j(!g),className:"relative shrink-0",children:[(0,s.jsx)(rC.ShoppingCartSimpleIcon,{size:20,className:"header-font-color"}),f?(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:f}):null]}),S?.generalSettingsComponentUiData?.enableDarkModeToggle&&(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(rS,{size:20})}),c&&(0,s.jsx)("div",{className:"flex items-center pl-5 border-l",children:(0,s.jsx)(rj,{isShowSignInButton:c})}),n!==e_.PROVIDER_IFRAME&&((0,tu.usesLiveSearchOverlay)(P)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>Q(!0),"aria-label":"Search",className:"flex items-center justify-center h-9 w-9 rounded-full bg-[var(--fill-button-background-color)] text-[var(--fill-button-font-color)] shrink-0",children:(0,s.jsx)(th.MagnifyingGlass,{size:20})}),(0,s.jsx)(tm.default,{setOpenSearch:Q,openSearch:J})]}):(0,s.jsx)(p.default,{href:"/search","aria-label":"Search",onClick:()=>(0,u.handleDefaultHomePage)(y,N,C),className:"flex items-center justify-center h-9 w-9 rounded-full bg-[var(--fill-button-background-color)] text-[var(--fill-button-font-color)] shrink-0",children:(0,s.jsx)(th.MagnifyingGlass,{size:20})}))]})]})})},rD=(0,h.default)(()=>
176e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),rL=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,handleDrawer:o,handlePreferenceDrawer:i,provider:n,isShowSignInButton:c})=>{let d=(0,M.usePathname)(),m=(0,M.useRouter)(),{token:h}=(0,eR.useUserData)(),{wishlist:x}=(0,eM.useWishlistStore)(),{cartCounter:f,isCartSidebarOpen:g,setIsCartSidebarOpen:j}=(0,eP.useCartStore)(),{setRouteLoader:v,setOpenSignInRequiredModal:w,retailerId:y,isDefaultHomePage:N,setIsDefaultHomePage:C,commonCMSData:S,searchMenuType:P,orderType:D,selectedDeliveryAddress:L,selectedPickupAddress:R,selectedPickupAddressObject:E,selectedCurbsideAddress:F,selectedCurbsideAddressObject:I,retailerDetails:A,providerSettingsCms:H,isProviderLoading:T}=(0,a.useGlobalStore)(),z=eG(),O=(0,eC.useNavigationLoading)(l),{navStripProps:_,isOverflowing:B,showLeftFade:$,showRightFade:W,scrollNavStrip:V,hasDraggedRef:U,openSubMenu:G,openSubMenuFrom:K,closeSubMenu:Y,cancelSubMenuClose:q,scheduleSubMenuClose:X}=rf(),[J,Q]=(0,b.useState)(!1);function ee(e){return e!==d&&(0,k.pushNavHref)({path:e,pathname:d,router:m,setRouteLoader:v})}let et=e=>{ee(e),(0,u.handleDefaultHomePage)(y,N,C)},{line1:es,postalCode:ea,city:er,state:el}=(0,u.isTruthyObject)(E)?E:(0,u.isTruthyObject)(I)?I:{},eo="DELIVERY"===D?L:"PICKUP"===D||"CURBSIDE_PICKUP"===D?H?.treez?A?.address:(0,u.formatPickupAddress)(es,er,el,ea):"",en=!!D&&!!(R||L||F)&&!T;return(0,s.jsx)("div",{className:(0,ei.cn)("max-md:hidden sticky top-4 z-30 mx-4 lg:mx-8 rounded-full shadow-lg header-font-color backdrop-blur-md","bg-[color-mix(in_srgb,var(--fill-header-background-color)_80%,transparent)]"),children:(0,s.jsxs)("nav",{className:"flex items-center justify-between w-full min-h-20 _container gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-6 flex-1 min-w-0",children:[(0,s.jsx)(tt.List,{onClick:o,size:24,className:"header-font-color cursor-pointer shrink-0"}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:ee,className:"shrink-0"}),(0,s.jsx)(ry,{navStripProps:_,wrapperClassName:"flex items-center rounded-full border header-background px-2 py-0.5 min-w-0",stripClassName:(0,ei.cn)("flex items-center gap-1 min-w-0",rx,B&&rp),showLeftFade:$,showRightFade:W,scrollNavStrip:V,children:O?[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-14 mx-2 bg-gray-300 animate-pulse rounded shrink-0"},"desktop-header-v4-nav-skeleton-"+t)):l?.links?.map((e,t)=>{if(e?.isCategory)return null;let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals";if(e?.enableResourceMegaMenu)return(0,s.jsx)("div",{className:"flex items-center shrink-0",children:(0,s.jsx)(tn,{item:e,onLinkClick:et,textColorClassName:"font-normal header-font-color"})},t);let r=!!a&&("/"===a?"/"===d:!!d?.startsWith(a)),l=!!e?.subLinks?.length,o=G?.index===t;return(0,s.jsxs)("div",{className:"relative group flex items-center shrink-0",onMouseEnter:l?e=>K(t,e.currentTarget):void 0,onMouseLeave:l?X:void 0,children:[(0,s.jsxs)(p.default,{href:a??"",draggable:!1,onClick:e=>{U.current?e.preventDefault():et(a)},className:(0,ei.cn)("relative flex flex-col items-center whitespace-nowrap text-base header-font-color rounded-full px-4 py-2.5 transition-colors",r?"font-semibold":"font-normal"),children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[e.label,l&&(0,s.jsx)(eF.CaretDown,{size:12})]}),(0,s.jsx)("span",{className:(0,ei.cn)("absolute bottom-1.5 left-4 right-4 h-[2px] bg-[var(--fill-header-font-color)] transition-opacity duration-200",r?"opacity-100":"opacity-0 group-hover:opacity-100")})]}),l&&o&&"u">typeof document&&(0,ts.createPortal)((0,s.jsx)("div",{style:{position:"fixed",top:G.top+8,left:G.left},className:"border w-52 bg-[var(--website-cards-bg-color)] z-50 shadow-xl rounded-lg py-3 animate-in fade-in duration-300",onMouseEnter:q,onMouseLeave:X,children:e.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url??"",onClick:()=>{Y(),et(e?.url)},className:"block px-5 py-2.5 text-sm font-medium text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))}),document.body)]},t)})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[n!==e_.PROVIDER_ECOMMERCE&&n!==e_.PROVIDER_SHOWCASE&&y&&(0,s.jsxs)("button",{type:"button",onClick:i,className:"flex items-center gap-2 border rounded-full bg-[var(--website-cards-bg-color)] pl-3 pr-2.5 py-1 shrink-0",children:[(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color shrink-0"}),en?(0,s.jsxs)("div",{className:"flex flex-col items-start leading-none text-left",children:[(0,s.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide opacity-60 header-font-color",children:"DELIVERY"===D?"Delivery":"PICKUP"===D?"Pickup":"CURBSIDE_PICKUP"===D?"Curbside Pickup":""}),(0,s.jsx)("span",{className:"text-sm font-semibold header-font-color truncate max-w-[180px]",children:eo})]}):(0,s.jsx)("div",{className:"h-[26px] w-[110px] bg-gray-300 animate-pulse rounded"}),(0,s.jsx)(eF.CaretDown,{size:14,className:"header-font-color shrink-0"})]}
176),(0,s.jsxs)("div",{className:"flex items-center gap-4 rounded-full header-background border px-6 py-3 shrink-0",children:[n!==e_.PROVIDER_IFRAME&&((0,tu.usesLiveSearchOverlay)(P)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>Q(!0),"aria-label":"Search",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color cursor-pointer"})}),(0,s.jsx)(tm.default,{setOpenSearch:Q,openSearch:J})]}):(0,s.jsx)(p.default,{href:"/search","aria-label":"Search",onClick:()=>(0,u.handleDefaultHomePage)(y,N,C),children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color cursor-pointer"})})),z&&(0,s.jsxs)(p.default,{href:h?"/your-list":"",onClick:()=>{h?ee("/your-list"):w(!0),(0,u.handleDefaultHomePage)(y,N,C)},className:"relative",children:[h&&x?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:x.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:18,className:"header-font-color"})]}),n!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("button",{type:"button",onClick:()=>j(!g),className:"relative",children:[(0,s.jsx)(rC.ShoppingCartSimpleIcon,{size:20,className:"header-font-color"}),f?(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:f}):null]})]}),S?.generalSettingsComponentUiData?.enableDarkModeToggle&&(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(rD,{size:20})}),(0,s.jsx)("div",{className:"shrink-0 border bg-[var(--website-cards-bg-color)] rounded-full px-4 py-2",children:(0,s.jsx)(rj,{isShowSignInButton:c})})]})]})})},rR=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),rM=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,handleDrawer:o,handlePreferenceDrawer:i,provider:n,isShowSignInButton:c})=>{let d=(0,M.usePathname)(),m=(0,M.useRouter)(),{token:h}=(0,eR.useUserData)(),{wishlist:x}=(0,eM.useWishlistStore)(),{cartCounter:f,isCartSidebarOpen:g,setIsCartSidebarOpen:j}=(0,eP.useCartStore)(),{setRouteLoader:v,setOpenSignInRequiredModal:w,retailerId:y,isDefaultHomePage:N,setIsDefaultHomePage:C,commonCMSData:S,searchMenuType:P,orderType:D,selectedDeliveryAddress:L,selectedPickupAddress:R,selectedPickupAddressObject:E,selectedCurbsideAddress:F,selectedCurbsideAddressObject:I,retailerDetails:A,providerSettingsCms:H,isProviderLoading:T}=(0,a.useGlobalStore)(),z=eG(),O=(0,eC.useNavigationLoading)(l),[_,B]=(0,b.useState)(!1),[$,W]=(0,b.useState)(!1),V="/"===d,{navStripProps:U,isOverflowing:G,showLeftFade:K,showRightFade:Y,scrollNavStrip:q,hasDraggedRef:X,openSubMenu:J,openSubMenuFrom:Q,closeSubMenu:ee,cancelSubMenuClose:et,scheduleSubMenuClose:es}=rf();function ea(e){return e!==d&&(0,k.pushNavHref)({path:e,pathname:d,router:m,setRouteLoader:v})}(0,b.useEffect)(()=>{let e=()=>{W(window.scrollY>8)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let er=e=>{ea(e),(0,u.handleDefaultHomePage)(y,N,C)},{line1:el,postalCode:eo,city:en,state:ec}=(0,u.isTruthyObject)(E)?E:(0,u.isTruthyObject)(I)?I:{},ed="DELIVERY"===D?L:"PICKUP"===D||"CURBSIDE_PICKUP"===D?H?.treez?A?.address:(0,u.formatPickupAddress)(el,en,ec,eo):"",em=!!D&&!!(R||L||F)&&!T;return(0,s.jsx)("div",{className:(0,ei.cn)("max-md:hidden z-30 w-full header-font-color transition-[background-color,box-shadow,backdrop-filter] duration-300 ease-in-out",$?"header-background shadow-sm border-b":"backdrop-blur-md border-b",V?"fixed top-0 left-0 right-0":$?"sticky top-0":"relative"),children:(0,s.jsxs)("nav",{className:"flex items-center justify-between w-full min-h-20 _container gap-12",children:[(0,s.jsx)(ry,{navStripProps:U,wrapperClassName:"flex-1 min-w-0 flex items-center",stripClassName:(0,ei.cn)("flex items-center gap-6 flex-1 min-w-0 py-1",rx,G&&rp),showLeftFade:K,showRightFade:Y,scrollNavStrip:q,children:O?[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-14 bg-gray-300 animate-pulse rounded shrink-0"},"desktop-header-v5-nav-skeleton-"+t)):l?.links?.map((e,t)=>{if(e?.isCategory)return null;let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals";if(e?.enableResourceMegaMenu)return(0,s.jsx)("div",{className:"flex items-center shrink-0",children:(0,s.jsx)(tn,{item:e,onLinkClick:er})},t);let r=!!a&&("/"===a?"/"===d:!!d?.startsWith(a)),l=!!e?.subLinks?.length,o=J?.index===t;return(0,s.jsxs)("div",{className:"relative group flex items-center shrink-0",onMouseEnter:l?e=>Q(t,e.currentTarget):void 0,onMouseLeave:l?es:void 0,children:[(0,s.jsxs)(p.default,{href:a??"",draggable:!1,onClick:e=>{X.current?e.preventDefault():er(a)},className:"relative flex flex-col items-center whitespace-nowrap text-sm font-semibold header-font-color uppercase tracking-wide py-1",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[e.label,l&&(0,s.jsx)(eF.CaretDown,{size:12})]}),(0,s.jsx)("span",{className:(0,ei.cn)("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--fill-header-font-color)] transition-opacity duration-200",r?"opacity-100":"opacity-0 group-hover:opacity-100")})]}),l&&o&&"u">typeof document&&(0,ts.createPortal)((0,s.jsx)("div",{style:{position:"fixed",top:J.top+8,left:J.left},className:"border w-52 bg-[var(--website-cards-bg-color)] z-50 shadow-xl rounded-lg py-3 animate-in fade-in duration-300",onMouseEnter:et,onMouseLeave:es,children:e.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url??"",onClick:()=>{ee(),er(e?.url)},className:"block px-5 py-2.5 text-sm font-medium text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))}),document.body)]},t)})}),(0,s.jsx)("div",{className:"flex items-center justify-center shrink-0",children:(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:ea})}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-4 flex-1 min-w-0",children:[n!==e_.PROVIDER_ECOMMERCE&&n!==e_.PROVIDER_SHOWCASE&&y&&(0,s.jsxs)("button",{type:"button",onClick:i,className:"flex items-center gap-1.5 border rounded-full bg-[var(--website-cards-bg-color)] pl-3 pr-2.5 py-1.5 
176shrink-0",children:[(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color shrink-0"}),em?(0,s.jsx)("span",{className:"text-sm font-semibold header-font-color truncate max-w-[180px]",children:ed}):(0,s.jsx)("div",{className:"h-[18px] w-[110px] bg-gray-300 animate-pulse rounded"}),(0,s.jsx)(eF.CaretDown,{size:12,className:"header-font-color shrink-0"})]}),n!==e_.PROVIDER_IFRAME&&((0,tu.usesLiveSearchOverlay)(P)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>B(!0),"aria-label":"Search",className:"shrink-0",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color cursor-pointer"})}),(0,s.jsx)(tm.default,{setOpenSearch:B,openSearch:_})]}):(0,s.jsx)(p.default,{href:"/search","aria-label":"Search",onClick:()=>(0,u.handleDefaultHomePage)(y,N,C),className:"shrink-0",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color"})})),z&&(0,s.jsxs)(p.default,{href:h?"/your-list":"",onClick:()=>{h?ea("/your-list"):w(!0),(0,u.handleDefaultHomePage)(y,N,C)},className:"relative shrink-0",children:[h&&x?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:x.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:20,className:"header-font-color"})]}),n!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("button",{type:"button",onClick:()=>j(!g),className:"relative shrink-0",children:[(0,s.jsx)(rC.ShoppingCartSimpleIcon,{size:20,className:"header-font-color"}),f?(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:f}):null]}),S?.generalSettingsComponentUiData?.enableDarkModeToggle&&(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(rR,{size:20})}),c&&(0,s.jsx)("div",{className:"flex items-center pl-4 border-l shrink-0",children:(0,s.jsx)(rj,{isShowSignInButton:c})}),(0,s.jsx)(tt.List,{onClick:o,size:22,className:"header-font-color cursor-pointer shrink-0"})]})]})})},rE=(0,h.default)(()=>e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),rF=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,handleDrawer:o,handlePreferenceDrawer:i,provider:n,isShowSignInButton:c})=>{let d=(0,M.usePathname)(),m=(0,M.useRouter)(),{token:h}=(0,eR.useUserData)(),{wishlist:x}=(0,eM.useWishlistStore)(),{cartCounter:f,isCartSidebarOpen:g,setIsCartSidebarOpen:j}=(0,eP.useCartStore)(),{setRouteLoader:v,setOpenSignInRequiredModal:w,retailerId:y,isDefaultHomePage:N,setIsDefaultHomePage:C,commonCMSData:S,searchMenuType:P,orderType:D,selectedDeliveryAddress:L,selectedPickupAddress:R,selectedPickupAddressObject:E,selectedCurbsideAddress:F,selectedCurbsideAddressObject:I,retailerDetails:A,providerSettingsCms:H,isProviderLoading:T}=(0,a.useGlobalStore)(),z=eG(),O=(0,eC.useNavigationLoading)(l),[_,B]=(0,b.useState)(!1),[$,W]=(0,b.useState)(!1),V="/"===d,{navStripProps:U,isOverflowing:G,showLeftFade:K,showRightFade:Y,scrollNavStrip:q,hasDraggedRef:X,openSubMenu:J,openSubMenuFrom:Q,closeSubMenu:ee,cancelSubMenuClose:et,scheduleSubMenuClose:es}=rf();function ea(e){return e!==d&&(0,k.pushNavHref)({path:e,pathname:d,router:m,setRouteLoader:v})}(0,b.useEffect)(()=>{let e=()=>{W(window.scrollY>8)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let er=e=>{ea(e),(0,u.handleDefaultHomePage)(y,N,C)},{line1:el,postalCode:eo,city:en,state:ec}=(0,u.isTruthyObject)(E)?E:(0,u.isTruthyObject)(I)?I:{},ed="DELIVERY"===D?L:"PICKUP"===D||"CURBSIDE_PICKUP"===D?H?.treez?A?.address:(0,u.formatPickupAddress)(el,en,ec,eo):"",em=!!D&&!!(R||L||F)&&!T;return(0,s.jsx)("div",{className:(0,ei.cn)("max-md:hidden z-30 w-full header-font-color transition-[background-color,box-shadow,backdrop-filter] duration-300 ease-in-out",$?"header-background shadow-sm border-b":"backdrop-blur-md",V?"fixed top-0 left-0 right-0":$?"sticky top-0":"relative"),children:(0,s.jsxs)("nav",{className:"flex items-center justify-between w-full min-h-20 _container gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-6 flex-1 min-w-0",children:[(0,s.jsx)(tt.List,{onClick:o,size:24,className:"header-font-color cursor-pointer shrink-0"}),(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:ea,className:"shrink-0"}),n!==e_.PROVIDER_ECOMMERCE&&n!==e_.PROVIDER_SHOWCASE&&y&&(0,s.jsxs)("button",{type:"button",onClick:i,className:"flex items-center gap-1.5 shrink-0",children:[(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color shrink-0"}),em?(0,s.jsxs)("div",{className:"flex flex-col items-start leading-none text-left",children:[(0,s.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide opacity-60 header-font-color",children:"DELIVERY"===D?"Delivery":"PICKUP"===D?"Pickup":"CURBSIDE_PICKUP"===D?"Curbside Pickup":""}),(0,s.jsx)("span",{className:"text-sm font-semibold header-font-color truncate max-w-[180px]",children:ed})]}):(0,s.jsx)("div",{className:"h-[26px] w-[110px] bg-gray-300 animate-pulse rounded"}),(0,s.jsx)(eF.CaretDown,{size:12,className:"header-font-color shrink-0"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-6 shrink-0",children:[(0,s.jsx)(ry,{navStripProps:U,wrapperClassName:"flex items-center min-w-0",stripClassName:(0,ei.cn)("max-w-[280px] lg:max-w-[420px] xl:max-w-[560px] 2xl:max-w-[720px]","flex items-center gap-6 min-w-0 py-1",rx,G&&rp),showLeftFade:K,showRightFade:Y,scrollNavStrip:q,children:O?[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-14 bg-gray-300 animate-pulse rounded shrink-0"},"desktop-header-v6-nav-skeleton-"+t)):l?.links?.map((e,t)=>{if(e?.isCategory)return null;let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals";if(e?.enableResourceMegaMenu)return(0,s.jsx)("div",{className:"flex items-center shrink-0",children:(0,s.jsx)(tn,{item:e,onLinkClick:er})},t);let r=!!a&&("/"===a?"/"===d:!!d?.startsWith(a)),l=!!e?.subLinks?.length,o=J?.index===t;return(0,s.jsxs)("div",{className:"relative group flex items-center shrink-0",onMouseEnter:l?e=>Q(t,e.currentTarget):void 0,onMouseLeave:l?es:void 0,children:[(0,s.jsxs)(p.default,{href:a??"",draggable:!1,onClick:e=>{X.current?e.preventDefault():er(a)},className:"relative flex flex-col items-center whitespace-nowrap text-sm font-semibold header-font-color uppercase tracking-wide py-1",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[e.label,l&&(0,s.jsx)(eF.CaretDown,{size:12})]}),(0,s.jsx)("span",{className:(0,ei.cn)("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--fill-header-font-color)] transition-opacity duration-200",r||o?"opacity-100":"opacity-0 group-hover:opacity-100")})]}),l&&o&&"u">typeof document&&(0,ts.createPortal)((0,s.jsx)("div",{style:{position:"fixed",top:J.top+8,left:J.left},className:"border w-52 bg-[var(--website-cards-bg-color)] z-50 shadow-xl rounded-lg py-3",onMouseEnter:et,onMouseLeave:es,children:e.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url??"",onClick:()=>{ee(),er(e?.url)},className:"block px-5 py-2.5 text-sm font-medium text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))}),document.body)]},t)})}),n!==e_.PROVIDER_IFRAME&&((0,tu.usesLiveSearchOverlay)(P)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>B(!0),"aria-label":"Search",className:"shrink-0",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color cursor-pointer"})}),(0,s.jsx)(tm.default,{setOpenSearch:B,openSearch:_})]}):(0,s.jsx)(p.default,{href:"/search","aria-label":"Search",onClick:()=>(0,u.handleDefaultHomePage)(y,N,C),className:"shrink-0",children:(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color"})})),z&&(0,s.jsxs)(p.default,{href:h?"/your-list":"",onClick:()=>{h?ea("/your-list"):w(!0),(0,u.handleDefaultHomePage)(y,N,C)},className:"relative shrink-0",children:[h&&x?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:x.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:20,className:"header-font-color"})]}),n!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("button",{type:"button",onClick:()=>j(!g),className:"relative shrink-0",children:[(0,s.jsx)(rC.ShoppingCartSimpleIcon,{size:20,className:"header-font-color"}),f?(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:f}):null]}),S?.generalSettingsComponentUiData?.enableDarkModeToggle&&(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(rE,{size:20})}),(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(rj,{isShowSignInButton:c})})]})]})})},rI=(0,h.default)(()=>
176e.A(239883),{loadableGenerated:{modules:[859544]},ssr:!1}),rA=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,handleDrawer:o,handlePreferenceDrawer:i,provider:n,isShowSignInButton:c})=>{let d=(0,M.usePathname)(),m=(0,M.useRouter)(),{token:h}=(0,eR.useUserData)(),{wishlist:x}=(0,eM.useWishlistStore)(),{cartCounter:f,isCartSidebarOpen:g,setIsCartSidebarOpen:b}=(0,eP.useCartStore)(),{setRouteLoader:j,setOpenSignInRequiredModal:v,retailerId:w,isDefaultHomePage:y,setIsDefaultHomePage:N,commonCMSData:C,searchMenuType:S,orderType:P,selectedDeliveryAddress:D,selectedPickupAddress:L,selectedPickupAddressObject:R,selectedCurbsideAddress:E,selectedCurbsideAddressObject:F,retailerDetails:I,providerSettingsCms:A,isProviderLoading:H}=(0,a.useGlobalStore)(),T=eG(),z=(0,eC.useNavigationLoading)(l),{navStripProps:O,isOverflowing:_,showLeftFade:B,showRightFade:$,scrollNavStrip:W,hasDraggedRef:V,openSubMenu:U,openSubMenuFrom:G,closeSubMenu:K,cancelSubMenuClose:Y,scheduleSubMenuClose:q}=rf();function X(e){return e!==d&&(0,k.pushNavHref)({path:e,pathname:d,router:m,setRouteLoader:j})}let J=e=>{X(e),(0,u.handleDefaultHomePage)(w,y,N)},{line1:Q,postalCode:ee,city:et,state:es}=(0,u.isTruthyObject)(R)?R:(0,u.isTruthyObject)(F)?F:{},ea="DELIVERY"===P?D:"PICKUP"===P||"CURBSIDE_PICKUP"===P?A?.treez?I?.address:(0,u.formatPickupAddress)(Q,et,es,ee):"",er=!!P&&!!(L||D||E)&&!H;return(0,s.jsxs)("div",{className:"max-md:hidden sticky top-0 z-30 header-background header-font-color border-b",children:[(0,s.jsx)("div",{className:"border-b pb-2",children:(0,s.jsxs)("div",{className:"flex items-center justify-between w-full _container",children:[(0,s.jsxs)("div",{className:"flex items-center gap-6 flex-1 min-w-0",children:[(0,s.jsx)(tt.List,{onClick:o,size:24,className:"header-font-color cursor-pointer shrink-0"}),n!==e_.PROVIDER_ECOMMERCE&&n!==e_.PROVIDER_SHOWCASE&&w&&(0,s.jsxs)("button",{type:"button",onClick:i,className:"flex items-center gap-1.5 shrink-0",children:[(0,s.jsx)("div",{className:"w-10 h-10 rounded-full flex items-center justify-center bg-[var(--secondary-button-background-color)]",children:(0,s.jsx)(Z.MapPin,{size:18,className:"header-font-color shrink-0"})}),er?(0,s.jsxs)("div",{className:"flex flex-col items-start leading-none text-left",children:[(0,s.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide opacity-60 header-font-color",children:"DELIVERY"===P?"Delivery":"PICKUP"===P?"Pickup":"CURBSIDE_PICKUP"===P?"Curbside Pickup":""}),(0,s.jsx)("span",{className:"text-sm font-semibold header-font-color truncate max-w-[220px]",children:ea})]}):(0,s.jsx)("div",{className:"h-[26px] w-[110px] bg-gray-300 animate-pulse rounded"}),(0,s.jsx)(eF.CaretDown,{size:12,className:"header-font-color shrink-0"})]})]}),(0,s.jsx)("div",{className:"flex items-center justify-center shrink-0",children:(0,s.jsx)(tg.default,{siteLogo:e,logoTitle:t,logoAlt:r,handleRedirectToPath:X})}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-5 flex-1 min-w-0",children:[C?.generalSettingsComponentUiData?.enableDarkModeToggle&&(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(rI,{size:20})}),(0,s.jsx)("div",{className:"shrink-0",children:(0,s.jsx)(rj,{isShowSignInButton:c})})]})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-[1fr_minmax(0,50%)_1fr] items-center _container w-full gap-6 py-4",children:[(0,s.jsx)("div",{className:"min-w-0 max-w-xs overflow-visible",children:n!==e_.PROVIDER_IFRAME&&((0,tu.usesLiveSearchOverlay)(S)?(0,s.jsxs)("div",{className:"flex items-center gap-2 overflow-visible border rounded-full bg-[var(--secondary-button-background-color)] px-4 py-2",children:[(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color opacity-60 shrink-0"}),(0,s.jsx)(ez.default,{variant:"pill",panelAlign:"start",panelWidth:"sm",fallback:null})]}):(0,s.jsxs)("div",{className:"flex items-center gap-2 border rounded-full bg-[var(--secondary-button-background-color)] px-4 py-2",children:[(0,s.jsx)(th.MagnifyingGlass,{size:20,className:"header-font-color opacity-60 shrink-0"}),(0,s.jsx)("input",{type:"text",readOnly:!0,placeholder:"Type here to search product",onClick:()=>{X("/search")},className:"w-full bg-transparent header-font-color text-base placeholder:opacity-50 focus:outline-none cursor-pointer"})]}))}
176),(0,s.jsx)(ry,{navStripProps:O,wrapperClassName:"ms-6 min-w-0 w-full flex items-center",stripClassName:(0,ei.cn)("flex items-center gap-6 min-w-0 w-full py-1",rx,_&&rp),showLeftFade:B,showRightFade:$,scrollNavStrip:W,children:z?[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"h-4 w-14 bg-gray-300 animate-pulse rounded shrink-0"},"desktop-header-v7-nav-skeleton-"+t)):l?.links?.map((e,t)=>{if(e?.isCategory)return null;let a=e?.label?.toLowerCase()!=="deals"||e?.url?e.url:"/deals";if(e?.enableResourceMegaMenu)return(0,s.jsx)("div",{className:"flex items-center shrink-0",children:(0,s.jsx)(tn,{item:e,onLinkClick:J})},t);let r=!!a&&("/"===a?"/"===d:!!d?.startsWith(a)),l=!!e?.subLinks?.length,o=U?.index===t;return(0,s.jsxs)("div",{className:"relative group flex items-center shrink-0",onMouseEnter:l?e=>G(t,e.currentTarget):void 0,onMouseLeave:l?q:void 0,children:[(0,s.jsxs)(p.default,{href:a??"",draggable:!1,onClick:e=>{V.current?e.preventDefault():J(a)},className:"relative flex flex-col items-center whitespace-nowrap text-base font-semibold header-font-color py-1",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[e.label,l&&(0,s.jsx)(eF.CaretDown,{size:12})]}),(0,s.jsx)("span",{className:(0,ei.cn)("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--fill-header-font-color)] transition-opacity duration-200",r?"opacity-100":"opacity-0 group-hover:opacity-100")})]}),l&&o&&"u">typeof document&&(0,ts.createPortal)((0,s.jsx)("div",{style:{position:"fixed",top:U.top+8,left:U.left},className:"border w-52 bg-[var(--website-cards-bg-color)] z-50 shadow-xl rounded-lg py-3 animate-in fade-in duration-300",onMouseEnter:Y,onMouseLeave:q,children:e.subLinks.map((e,t)=>(0,s.jsx)(p.default,{href:e?.url??"",onClick:()=>{K(),J(e?.url)},className:"block px-5 py-2.5 text-sm font-medium text-[var(--website-cards-text-color)] hover:bg-[var(--fill-button-background-color)] hover:text-[var(--fill-button-font-color)]",children:e.label},t))}),document.body)]},t)})}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-5 min-w-0",children:[T&&(0,s.jsxs)(p.default,{href:h?"/your-list":"",onClick:()=>{h?X("/your-list"):v(!0),(0,u.handleDefaultHomePage)(w,y,N)},className:"relative shrink-0",children:[h&&x?.wishlistProductsCount>0&&(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:x.wishlistProductsCount}),(0,s.jsx)(eW.Heart,{size:20,className:"header-font-color"})]}),n!==e_.PROVIDER_IFRAME&&(0,s.jsxs)("button",{type:"button",onClick:()=>b(!g),className:"relative shrink-0",children:[(0,s.jsx)(rC.ShoppingCartSimpleIcon,{size:20,className:"header-font-color"}),f?(0,s.jsx)("span",{className:"absolute -top-2 -right-2 h-[16px] min-w-[16px] px-1 rounded-full bg-primary text-white text-[9px] flex items-center justify-center",children:f}):null]})]})]})]})},rH={isMenuOne:!0,isMenuTwo:!1,isMenuThree:!1,isMenuFour:!1},rT=({siteLogo:e,logoTitle:t,logoAlt:r,widgetData:l,headerFooterSettingsCms:o,provider:i,isStickyHeader:n,isStickyMenuWidget:c,isShowSignInButton:u,preloadedTickerData:h,headerCustomBuilder:x})=>{let{togglePreferenceDrawer:p,preferenceBar:f,CurrentRetailerDrawerSelector:g}=(0,sS.default)(),{isMobile:j}=(0,sV.default)(),[v,w]=(0,b.useState)(rH),y=(0,M.useRouter)(),{activeVersionCms:N,dealsVersion:C,isShopPageTwo:S,setRouteLoader:P}=(0,a.useGlobalStore)(),D=(0,M.usePathname)(),[L,R]=(0,b.useState)(!1),[E,F]=(0,b.useState)(!1),[I,A]=(0,b.useState)(!1),[H,T]=(0,b.useState)(!1),[z,O]=(0,b.useState)(!1),[_,B]=(0,b.useState)(!1),$=()=>{v.isMenuOne?R(e=>!e):v.isMenuTwo?F(e=>!e):v.isMenuThree?A(e=>!e):v.isMenuFour?T(e=>!e):v.isMenuFive&&(0,m.isProviderShowcase)(i)?O(e=>!e):v.isMenuSix&&(0,m.isProviderShowcase)(i)?B(e=>!e):R(e=>!e)};function W(e){let t=e;return t==(0,ep.withStore)()&&(t=S&&!(0,m.isProviderShowcase)(i)?"/shop-cannabis-near-me":(0,ep.withStore)()),(0,k.pushNavHref)({path:t,pathname:D,router:y,setRouteLoader:P})}(0,b.useEffect)(()=>{w(N)},[N]);let V=!!["/checkout","/ecommerce-checkout"].includes(D)&&!(0,m.isProviderDutchieOrDispense)(i??""),U=(0,m.isProviderShowcase)(i),G=(0,b.useMemo)(()=>(0,k.normalizeWidgetNavLinks)(l),[l]);return(0,s.jsxs)(s.Fragment,{children:[U?(0,s.jsx)(s.Fragment,{children:x?(0,s.jsx)(rh.default,{provider:i,config:x,preloadedT
176ickerData:h,onHamburgerMenuClick:$,widgetData:G}):(0,s.jsx)(ru,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,headerFooterSettingsCms:o,provider:i,isStickyHeader:n,isStickyMenuWidget:c,preloadedTickerData:h,onMenuClick:$})}):(0,s.jsx)(s.Fragment,{children:V?(0,s.jsx)(s.Fragment,{}):x?(0,s.jsx)(rh.default,{provider:i,config:x,preloadedTickerData:h,onHamburgerMenuClick:$,widgetData:G}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(so.default,{preloadedTickerData:h}),o?.headerFooterSettings?.isDesktopHeaderSeven?(0,s.jsx)(rA,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,handleDrawer:$,handleRouteChange:W,handlePreferenceDrawer:p,provider:i,isShowSignInButton:u}):o?.headerFooterSettings?.isDesktopHeaderSix?(0,s.jsx)(rF,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,handleDrawer:$,handleRouteChange:W,handlePreferenceDrawer:p,provider:i,isShowSignInButton:u}):o?.headerFooterSettings?.isDesktopHeaderFive?(0,s.jsx)(rM,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,handleDrawer:$,handleRouteChange:W,handlePreferenceDrawer:p,provider:i,isShowSignInButton:u}):o?.headerFooterSettings?.isDesktopHeaderFour?(0,s.jsx)(rL,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,handleDrawer:$,handleRouteChange:W,handlePreferenceDrawer:p,provider:i,isShowSignInButton:u}):o?.headerFooterSettings?.isDesktopHeaderThree?(0,s.jsx)(rP,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,handleDrawer:$,handleRouteChange:W,handlePreferenceDrawer:p,provider:i,isShowSignInButton:u}):o?.headerFooterSettings?.isDesktopHeaderTwo?(0,s.jsx)(rk,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,handleDrawer:$,handleRouteChange:W,handlePreferenceDrawer:p,provider:i,isShowSignInButton:u}):(0,s.jsx)(tc,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,handleDrawer:$,handleRouteChange:W,handlePreferenceDrawer:p,provider:i,isShowSignInButton:u}),(0,s.jsx)(sl,{siteLogo:e,logoTitle:t,logoAlt:r,widgetData:G,headerFooterSettingsCms:o,handleDrawer:$,isStickyHeader:n,provider:i,isStickyMenuWidget:c})]})}),(0,s.jsx)(sC,{sidebar:L,setSidebar:R,sidebar2:E,setSidebar2:F,sidebar3:I,setSidebar3:A,sidebar4:H,setSidebar4:T,handleDrawer:$,handleRedirect:e=>{let t="";return t="Deals"!==e.label||(0,m.isProviderIFrame)(i??"")||(0,m.isProviderFlowhub)(i??"")?"Shop"!==e.label&&"Shop All"!==e.label||(0,m.isProviderShowcase)(i)?e.url:!S||(0,m.isProviderShowcase)(i)||(0,m.isProviderIFrame)(i??"")?(0,ep.withStore)():"/shop-cannabis-near-me":"v2"===C?"/deals-category":"/deals",(0,k.normalizeNavHref)(t)},handleRouteChange:W,menuVersionData:v,sidebar5:z,setSidebar5:O,provider:i,sidebar6:_,setSidebar6:B}),j?(0,s.jsx)(sW,{preferenceBar:f,activeVersionCms:N,isMobile:j}):(0,s.jsx)(s.Fragment,{children:g?(0,s.jsx)(g,{preferenceBar:f,handlePreferenceDrawer:p}):(0,s.jsx)(sP.default,{opeModal:f})}),(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(ey,{})}),(0,m.isProviderFlowhub)((0,d.decryptFromCookies)("provider"))?(0,s.jsx)(s6,{}):(0,s.jsx)(s1,{})]})};var rz=e.i(283415);let rO=()=>{let[e,t]=(0,b.useState)(!1),{commonCMSData:r,showStoreClosedModal:l,setShowStoreClosedModal:o}=(0,a.useGlobalStore)();return(0,b.useEffect)(()=>{l&&t(!0)},[l]),(0,s.jsx)("div",{className:"_container",children:(0,s.jsx)(s$.Modal,{open:e,handleClose:()=>t(!1),className:" max-w-[400px]",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex items-center justify-between p-6 border-b",children:(0,s.jsxs)("h5",{className:"flex items-center gap-2 text-lg font-semibold text-[#F05252]",children:[(0,s.jsx)(x.default,{src:"/images/store-lock.svg",width:25,height:25,className:"size-6 bg-[#F05252] rounded-full p-1.5",alt:""}),r?.retailerClosePopupCMS?.alertTitle||"Store Closed"]})}),(0,s.jsx)("div",{className:"p-6 border-b",children:(0,s.jsx)("p",{className:"text-gray-800 text-center",children:r?.retailerClosePopupCMS?.alertDescription||"Our store is currently closed. You can browse, but checkout is disabled"})}),(0,s.jsx)("div",{className:"flex justify-center p-6",children:(0,s.jsx)("button",{className:"bg-[#F05252] text-white text-sm font-bold rounded-lg px-4 py-2.5",onClick:()=>{t(!1),o(!1)},children:r?.retailerClosePopupCMS?.buttonText||"Close"})})]})})})};var r_=e.i(724458),rB=e.i(170319),r$=e.i(499683),rW=e.i(201796),rV=e.i(284831);let rU=({selectedFiles:e,onFilesSelected:t})=>(0,s.jsx)(rV.default,{label:"Attachments",description:"Up to 3 files, 3MB each. Please don't include personal or medical data.",accept:".jpg,.jpeg,.png,.gif,.webp,.heic,.mp4,.mov,.webm,.pdf,image/*,video/*,application/pdf",selectedFiles:e,onFilesSelected:t,maxFileSize:3145728,maxFiles:3,onRejected:(e,t)=>{"size"===t?rB.toast.warning(`${e.name} is larger than 3MB and was skipped.`):"count"===t?rB.toast.warning(`Only 3 attachments are allowed. ${e.name} was skipped.`):rB.toast.warning(`${e.name} isn't a supported file type.`)}}),rG=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/,rK=/^[0-9+\-\s()]{7,20}$/,rY=r$.object().shape({email:r$.string().test("valid-email","Please enter a valid email address",e=>
176!e||rG.test(e)),phoneNumber:r$.string().test("valid-phone","Please enter a valid phone number",e=>!e||rK.test(e)),message:r$.string().trim().required("Please tell us your feedback")}),rZ=[{value:"love_it",emoji:"😍",label:"Love it!"},{value:"okay",emoji:"😐",label:"Okay"},{value:"not_great",emoji:"😞",label:"Not great"}],rq=[{value:"bug",label:"Something's not working"},{value:"change_request",label:"What I'd like to change"},{value:"like",label:"What I like"}],rX={fullName:"",email:"",phoneCountryCode:"+1",phoneNumber:"",mood:void 0,category:void 0,message:""},rJ=e=>{let t=[e?.firstName,e?.lastName].filter(Boolean).join(" ").trim(),s=String(e?.phone||"").trim(),a="+1",r="";if(s){let e=(0,u.removeUSCountryCode)(s);if(e)r=e;else{let e=s.match(/^(\+\d{1,3})\s*(.*)$/);e?(a=e[1],r=e[2].replace(/\D/g,"")||e[2]):r=s.replace(/\D/g,"")||s}}return{...rX,fullName:t||"",email:e?.email||"",phoneCountryCode:a,phoneNumber:r}};async function rQ(e){let t=new FormData;t.append("file",e);let s=await (0,el.postFormData)({url:tj.default.userFeedback.upload,body:t});if(!s?.data?.fileUrl)throw Error(s?.message||`Failed to upload ${e.name}. Please try again.`);return s.data}let r0=({open:e,onClose:t})=>{let{token:a,user:r}=(0,eR.useUserData)(),[l,o]=(0,b.useState)(rX),[i,n]=(0,b.useState)([]),[c,d]=(0,b.useState)(!1),[m,u]=(0,b.useState)({});(0,b.useEffect)(()=>{e&&(o(rJ(r)),n([]),d(!1),u({}))},[e,r]);let h=async(e,t)=>{try{await rY.fields[e].validate(t),u(t=>({...t,[e]:void 0}))}catch(t){t instanceof r$.ValidationError&&u(s=>({...s,[e]:t.message}))}},x=()=>{t()},p=(0,es.useMutation)({mutationFn:async()=>{let e=i.length?await Promise.all(i.map(e=>rQ(e))):[],t=await (0,el.postData)({url:tj.default.userFeedback.create,token:a,body:{fullName:l.fullName||void 0,email:l.email||void 0,phoneCountryCode:l.phoneNumber?l.phoneCountryCode:void 0,phoneNumber:l.phoneNumber||void 0,mood:l.mood,category:l.category,message:l.message,attachments:e}});if(!t?.data)throw Error("Failed to submit feedback");return t},onSuccess:()=>{d(!0)},onError:()=>{rB.toast.error("Something went wrong sending your feedback. Please try again.")}}),f=async e=>{e.preventDefault();try{await rY.validate({email:l.email,phoneNumber:l.phoneNumber,message:l.message},{abortEarly:!1})}catch(e){if(e instanceof r$.ValidationError){let t=e.inner.reduce((e,t)=>({...e,[String(t.path)]:t.message}),{});u(t),t.message&&rB.toast.warning(t.message)}return}u({}),p.mutate()};return(0,s.jsx)(s$.Modal,{open:e,handleClose:x,animation:!0,className:"!max-w-md !rounded-2xl !p-0 dark:!bg-[#0B0E12]",children:(0,s.jsxs)("div",{className:"relative max-h-[85vh] overflow-y-auto px-6 pb-6 pt-5",children:[(0,s.jsx)("button",{type:"button",onClick:x,"aria-label":"Close",className:"absolute right-4 top-4 text-gray-400 dark:text-[#7E8791] hover:text-gray-600 dark:hover:text-[#ECEFF3]",children:(0,s.jsx)(e9.X,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{className:"pr-8",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-[#ECEFF3]",children:"How was your experience?"}),(0,s.jsx)("p",{className:"mt-1 text-sm font-normal !not-italic text-gray-500 dark:text-[#A9B0B9]",children:"This goes straight to the team that builds this site — not the store."})]}),c?(0,s.jsxs)("div",{className:"flex flex-col items-center pt-10 pb-2 text-center",children:[(0,s.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-[#E8F5EE] dark:bg-emerald-500/10",children:(0,s.jsx)(rW.Check,{weight:"bold",className:"h-5 w-5 text-[#0F6B4C] dark:text-emerald-400","aria-hidden":!0})}),(0,s.jsxs)("div",{className:"mt-5 space-y-1",children:[(0,s.jsx)("h3",{className:"text-base font-semibold text-gray-900 dark:text-[#ECEFF3]",children:"Thanks for telling us"}),(0,s.jsx)("p",{className:"text-sm font-normal !not-italic text-gray-500 dark:text-[#A9B0B9]",children:"The team that builds this site has your feedback."})]}),(0,s.jsx)("button",{type:"button",onClick:()=>{o(rJ(r)),n([]),d(!1),u({})},className:"mt-8 rounded-lg border border-gray-300 dark:border-[#22262E] bg-white dark:bg-transparent\n                px-5 py-2.5 text-sm font-medium text-gray-900 dark:text-[#ECEFF3]\n                hover:bg-gray-50 dark:hover:bg-[#161A21] transition-colors",children:"Send another"})]}):(0,s.jsxs)("form",{onSubmit:f,className:"mt-4 flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-sm font-medium text-gray-700 dark:text-[#ECEFF3]",children:"Full name"}),(0,s.jsx)("input",{type:"text",value:l.fullName,onChange:e=>o(t=>({...t,fullName:e.target.value})),placeholder:"John Doe",className:"w-full rounded-lg border border-gray-300 dark:border-[#22262E]\n                  bg-gray-50 dark:bg-[#161A21] p-3 text-gray-900 dark:text-[#ECEFF3]\n                  placeholder:text-gray-400 dark:placeholder:text-[#7E8791]\n                  focus:outline-none focus:ring-1 focus:ring-gray-400 dark:focus:ring-[#22C55E]"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-sm font-medium text-gray-700 dark:text-[#ECEFF3]",children:"Email"}),(0,s.jsx)("input",{type:"email",value:l.email,onChange:e=>{let t=e.target.value;o(e=>({...e,email:t})),h("email",t)},placeholder:"[email protected]","aria-invalid":!!m.email,className:(0,ei.cn)(`w-full rounded-lg border bg-gray-50 dark:bg-[#161A21] p-3
177                  text-gray-900 dark:text-[#ECEFF3]
178                  placeholder:text-gray-400 dark:placeholder:text-[#7E8791]
179                  focus:outline-none focus:ring-1`,m.email?"border-red-400 focus:ring-red-400":"border-gray-300 dark:border-[#22262E] focus:ring-gray-400 dark:focus:ring-[#22C55E]")}),m.email&&(0,s.jsx)("p",{className:"mt-1 text-xs text-red-500",children:m.email})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-sm font-medium text-gray-700 dark:text-[#ECEFF3]",children:"Phone number"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:l.phoneCountryCode,onChange:e=>o(t=>({...t,phoneCountryCode:e.target.value})),className:"w-16 rounded-lg border border-gray-300 dark:border-[#22262E]\n                    bg-gray-50 dark:bg-[#161A21] p-3 text-center text-gray-900 dark:text-[#ECEFF3]\n                    focus:outline-none focus:ring-1 focus:ring-gray-400 dark:focus:ring-[#22C55E]"}),(0,s.jsx)("input",{type:"tel",value:l.phoneNumber,onChange:e=>{let t=e.target.value;o(e=>({...e,phoneNumber:t})),h("phoneNumber",t)}
179,placeholder:"(555) 123-4567","aria-invalid":!!m.phoneNumber,className:(0,ei.cn)(`flex-1 rounded-lg border bg-gray-50 dark:bg-[#161A21] p-3
180                    text-gray-900 dark:text-[#ECEFF3]
181                    placeholder:text-gray-400 dark:placeholder:text-[#7E8791]
182                    focus:outline-none focus:ring-1`,m.phoneNumber?"border-red-400 focus:ring-red-400":"border-gray-300 dark:border-[#22262E] focus:ring-gray-400 dark:focus:ring-[#22C55E]")})]}),m.phoneNumber&&(0,s.jsx)("p",{className:"mt-1 text-xs text-red-500",children:m.phoneNumber})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-2 block text-sm font-medium text-gray-700 dark:text-[#ECEFF3]",children:"How was your experience? (optional)"}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-2",children:rZ.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>o(t=>({...t,mood:t.mood===e.value?void 0:e.value})),className:(0,ei.cn)("flex flex-col items-center gap-1 rounded-lg border p-3 text-xs",l.mood===e.value?"border-primary bg-primary/5 dark:border-[#22C55E] dark:bg-[#22C55E]/10":"border-gray-200 dark:border-[#22262E] hover:border-gray-300 dark:hover:border-[#3a3f47]"),children:[(0,s.jsx)("span",{className:"text-2xl",children:e.emoji}),(0,s.jsx)("span",{className:"text-gray-600 dark:text-[#A9B0B9]",children:e.label})]},e.value))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-2 block text-sm font-medium text-gray-700 dark:text-[#ECEFF3]",children:"What’s this about? (optional)"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:rq.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>o(t=>({...t,category:t.category===e.value?void 0:e.value})),className:(0,ei.cn)("rounded-full border px-3 py-1.5 text-xs font-medium",l.category===e.value?"border-primary bg-primary/5 text-primary dark:border-[#22C55E] dark:bg-[#22C55E]/10 dark:text-[#4ade80]":"border-gray-200 dark:border-[#22262E] text-gray-600 dark:text-[#A9B0B9] hover:border-gray-300 dark:hover:border-[#3a3f47]"),children:e.label},e.value))})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"mb-1 block text-sm font-medium text-gray-700 dark:text-[#ECEFF3]",children:["Your feedback ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("textarea",{required:!0,value:l.message,maxLength:500,onChange:e=>{let t=e.target.value;o(e=>({...e,message:t})),m.message&&h("message",t)},placeholder:"Tell us your feedback","aria-invalid":!!m.message,className:(0,ei.cn)(`h-28 w-full rounded-lg border bg-gray-50 dark:bg-[#161A21] p-3
183                  text-gray-900 dark:text-[#ECEFF3]
184                  placeholder:text-gray-400 dark:placeholder:text-[#7E8791]
185                  focus:outline-none focus:ring-1`,m.message?"border-red-400 focus:ring-red-400":"border-gray-300 dark:border-[#22262E] focus:ring-gray-400 dark:focus:ring-[#22C55E]")}),(0,s.jsxs)("div",{className:"mt-1 flex items-start justify-between gap-2",children:[m.message?(0,s.jsx)("p",{className:"text-xs text-red-500",children:m.message}):(0,s.jsx)("span",{}),(0,s.jsxs)("p",{className:"shrink-0 text-right text-xs text-gray-400 dark:text-[#7E8791]",children:[l.message.length,"/",500]})]})]}),(0,s.jsx)(rU,{selectedFiles:i,onFilesSelected:n}),(0,s.jsx)("button",{type:"submit",disabled:p.isPending,className:"fill-button w-full rounded-lg py-3 text-sm font-medium\n                disabled:cursor-not-allowed disabled:opacity-60",children:p.isPending?"Sending...":"Send feedback"})]})]})})},r1=({enabled:e,buttonTextColor:t,buttonBackgroundColor:a})=>{let[r,l]=(0,b.useState)(!1);return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>l(!0),"aria-label":"Send feedback",className:"fixed right-0 top-1/2 -translate-y-1/2 z-[25] flex items-center\n          justify-center rounded-l-md md:rounded-l-lg\n          px-1.5 py-3 md:px-2 md:py-4 shadow-lg\n          cursor-pointer select-none transition-transform duration-200\n          hover:-translate-x-1",style:{backgroundColor:a||"#000000"},children:(0,s.jsx)("span",{className:"text-[10px] md:text-xs font-semibold uppercase tracking-wide whitespace-nowrap",style:{writingMode:"vertical-rl",transform:"rotate(180deg)",color:t||"#FFFFFF"},children:"Feedback"})}),(0,s.jsx)(r0,{open:r,onClose:()=>l(!1)})]}):null},r2=({open:e,handleClose:t,onConfirm:a,userName:r,headlineTemplate:l,description:o})=>{let i,n,c=(i=l?.trim()||"You're all set, {{userName}}",n=r?.trim(),i.includes("{{userName}}")?n?i.replace(/\{\{userName\}\}/g,n):i.replace(/\s*\{\{userName\}\}\s*/g,"").replace(/\s*,\s*,/g,",").replace(/^\s*,\s*/,"").replace(/\s*,\s*$/,"").replace(/\s{2,}/g," ").trim():i),d=o?.trim()||"Your account is ready. Show your ID at pickup.";return(0,s.jsx)(s$.Modal,{open:e,handleClose:t,overlayClassName:"backdrop-blur-sm",className:"md:max-w-[540px] max-w-[380px] rounded-xl transition-all duration-300 ease-out",animation:!0,children:(0,s.jsxs)("div",{className:"relative w-full p-5 md:p-10",children:[(0,s.jsx)(e9.X,{onClick:t,className:"absolute right-5 top-5 cursor-pointer text-xs md:text-sm text-gray-500 transition-colors hover:text-gray-700",tabIndex:0,role:"button","aria-label":"Close welcome modal",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&t()}}),(0,s.jsx)("div",{className:"mx-auto mb-3 flex h-[84px] w-[84px] items-center justify-center rounded-full bg-[#DEF7EC]",children:(0,s.jsx)(rW.CheckIcon,{size:36,className:"text-[#046C4E]"})}),(0,s.jsxs)("div",{className:"space-y-1.5 mb-6",children:[(0,s.jsx)("h2",{className:"text-center text-xl md:text-2xl font-semibold text-gray-900",children:c}),(0,s.jsx)("p",{className:"text-center text-xs md:text-sm text-gray-500",children:d})]}),(0,s.jsx)(K.default,{onClick:a,className:"w-full primary-background !rounded-lg py-3 md:py-3.5",children:"Start Shopping"})]})})};var r3=e.i(165008),r5=e.i(908406),r4=e.i(673635),r6=e.i(817389);function r8(){let{toasts:e}=(0,r5.useToast)();return(0,s.jsxs)(r4.ToastProvider,{children:[e.map(function({id:e,title:t,description:a,action:r,...l}){return(0,s.jsxs)(r4.Toast,{...l,children:[(0,s.jsxs)("div",{className:"flex w-full items-center justify-between gap-3 pr-2",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,s.jsx)(r6.CheckCircle,{size:28,weight:"fill",className:"text-black shrink-0"}),t&&(0,s.jsx)(r4.ToastTitle,{children:t}),a&&(0,s.jsx)(r4.ToastDescription,{children:a})]}
185),r?(0,s.jsx)("div",{className:"shrink-0",children:r}):null]}),(0,s.jsx)(r4.ToastClose,{})]},e)}),(0,s.jsx)(r4.ToastViewport,{})]})}let r7=(e,t=!0,s={})=>{let a=`abandonedCart_${s?.email||"anonymous"}`,r={cartId:e,emailScheduled:t,timestamp:Date.now()};localStorage.setItem(a,JSON.stringify(r))};var r9=e.i(434864);let le=(0,h.default)(()=>e.A(997675),{loadableGenerated:{modules:[750601]},ssr:!1});function lt({children:e,initial:t,headerFooterSettingsCms:r,siteSystemData:l,layoutCommonCms:o,headerCustomBuilder:i}){let{retailerId:n,menuType:c,storeOpenStatus:h,ageGateVisited:x,setShowStoreClosedModal:p,setIsFloatingChatWidgetActive:f,siteSystemData:g}=(0,a.useGlobalStore)(),{isMobile:j}=(0,sV.default)(),{isOpenPreferencePopup:v,isOpenPreferenceDrawerNew:w,isRegistrationConfirmOpen:y,registrationConfirmUserName:N,registrationConfirmHeadline:k,registrationConfirmDescription:C,setIsRegistrationConfirmOpen:S}=(0,eD.useModalStore)(),P=(0,M.useRouter)();(()=>{let{retailerId:e,prevRetailerId:t}=(0,a.useGlobalStore)(),s=(0,b.useRef)(!1),r=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!s.current){s.current=!0;return}if(e&&t!==e){let{retailerChangeRefreshContext:e,setRetailerChangeRefreshContext:s}=a.useGlobalStore.getState(),l=e?.retailer,o=e?.isCustomUrlRedirect,i=e?.customRedirectUrl||l?.customRedirectUrl?.trim()||null,n=e?.isHardRedirectUrl??(!!i&&(i.startsWith("http://")||i.startsWith("https://"))),c=!!o||n||!!i;if(!t&&!c)return void s(null);r.current&&clearTimeout(r.current);let d=l?.redirectUrlTarget==="_blank",m=e=>{d?window.open(e,"_blank"):window.location.href=e};r.current=setTimeout(()=>{n&&i?m(i):(o||i)&&i?(i.split("?")[0]?.split("#")[0]||"/")===window.location.pathname?window.location.reload():m(i):window.location.pathname.startsWith("/shop/")||window.location.reload(),s(null)},100)}return()=>{r.current&&clearTimeout(r.current)}},[e,t])})(),function(){let{commonCMSData:e}=(0,a.useGlobalStore)(),{cartCounter:t}=(0,eP.useCartStore)();(0,b.useEffect)(()=>{if(window?.progressier){let e=localStorage.getItem("visitor"),t=null;e&&(t=JSON.parse(e)),window?.progressier?.add({id:t?._id})}},[]),(0,b.useEffect)(()=>{let s=setTimeout(async()=>{try{if(Number(localStorage.getItem("abandonmentCartCounter")||0)===t)return;let s=e?.abandonedCartNotificationSettingsCms,a=t>0,r=localStorage.getItem("visitor"),l=null;r&&(l=JSON.parse(r)),s?.isActive&&a&&l?._id&&window.Notification&&"granted"===window.Notification.permission&&(await (0,el.postData)({url:`${tj.default?.cms?.abandonedCartStatus}/${l?._id}`,body:{cartItemCount:t,abandonAfterMs:Number(s?.delay)}}),localStorage.setItem("abandonmentCartCounter",String(t)))}catch(e){console.error("Abandonment check failed:",e)}},1e3);return()=>clearTimeout(s)},[t,e?.abandonedCartNotificationSettingsCms])}(),(({provider:e,retailerId:t})=>{let{cartList:s}=(0,eP.useCartStore)(),{user:r,token:l}=(0,eR.useUserData)(),{commonCMSData:o,checkoutId:i,orderType:n,menuType:c,hasQuantityChanged:u,setHasQuantityChanged:h}=(0,a.useGlobalStore)(),{handlePOST:x,postMutation:p}=(0,er.useCRUD)(),f=(0,b.useRef)(!1),g=(0,M.usePathname)(),j=g?.includes("cart-abandonment"),v=o?.abandonedCartCampaignSettingsCms??null,w=()=>{let e=`abandonedCart_${r?.email||"anonymous"}`,t=localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch{}return{cartId:"",emailScheduled:!1,timestamp:0}},y=async e=>{r?.email&&await x({url:tj.default.cms.abandonedCartEmailStatus,body:e,mutation:p,requiredFields:[],showToast:!1,token:l})},N=a=>({abandonAfterMs:v?.triggerTiming,customerEmail:r?.email,cartItems:s,firstName:r?.firstName,lastName:r?.lastName,fullName:r?.fullName,mobile:r?.phone,cartId:a,checkoutId:(0,m.isProviderDutchie)(e)?(0,d.decryptFromCookies)("canCheckoutId")??i:null,retailerId:t,provider:e,orderType:n,menuType:c,token:l,userId:r?._id}),k=async e=>{if(e)try{let t=N(e);await y(t)}catch(e){console.error("Failed to clear abandoned cart cache:",e)}};(0,b.useEffect)(()=>{if(!r?.email)return;let e=w();s?.length>0&&(f.current=!0),f.current&&s?.length===0&&e?.cartId&&(k(e?.cartId),r7("",!1,r))},[s?.length,r?.email,j]),(0,b.useEffect)(()=>{let e=setTimeout(async()=>{try{if(!v?.isActive||!r?.email||s?.length===0)return;let e=(e=>{if(e?.length===0)return"";let t=e.map(e=>({productId:e?.productId||"",option:e?.option||"",quantity:e?.quantity||0})).filter(e=>e?.productId&&e?.option).sort((e,t)=>
185e?.productId?.localeCompare(t?.productId)).map(e=>`${e?.productId}:${e?.option}:${e?.quantity}`).join("|"),s=0;for(let e=0;e<t?.length;e++)s=(s<<5)-s+t?.charCodeAt(e),s&=s;return`cart_${Math.abs(s)?.toString(36)}_${e?.length}`})(s),t=w();if(t?.emailScheduled&&t?.cartId===e)return;if(""===e){t?.cartId&&!j&&await k(t.cartId),r7("",!1,r);return}let a=N(e);j?u&&(await y(a),r7(e,!0,r)):(await y(a),r7(e,!0,r))}catch(e){console.error("Failed to schedule abandoned cart email:",e)}finally{h(!1)}},5e3);return()=>clearTimeout(e)},[s,r?.email,v,j,u]),(0,b.useEffect)(()=>{r?.email&&Object.keys(localStorage).filter(e=>e.startsWith("abandonedCart_")&&!e.includes(r.email)).forEach(e=>localStorage.removeItem(e))},[r?.email]),(0,b.useEffect)(()=>{let e=()=>{let e=Date.now();Object.keys(localStorage).forEach(t=>{if(t.startsWith("abandonedCart_"))try{let s=JSON.parse(localStorage.getItem(t)||"{}");s.timestamp&&e-s.timestamp>864e5&&localStorage.removeItem(t)}catch{localStorage.removeItem(t)}})};e();let t=setInterval(e,36e5);return()=>clearInterval(t)},[])})({provider:t?.provider||"",retailerId:t?.canSelectedRetailerId||n||""});let[D,L]=(0,b.useState)(!1);(0,b.useEffect)(()=>{L(!(0,r9.default)())},[]),(0,b.useEffect)(()=>{(async()=>{let e=localStorage.getItem("cartList");e&&"undefined"!==e&&(0,m.isProviderDutchieOrFlowhub)(t?.provider??e_.PROVIDER_DUTCHIE)&&!JSON.parse(e).length&&t?.checkoutCreationTime&&(0,rz.has24HoursPassed)(Number(t?.checkoutCreationTime))&&await (0,u.createCheckoutForProvider)(t?.provider??e_.PROVIDER_DUTCHIE,{retailerId:t?.canSelectedRetailerId||n,menuType:t?.canMenuType||c})})()},[t,c,n]),(0,b.useEffect)(()=>{(v||w)&&p(!1)},[v,w,p]),(0,b.useEffect)(()=>{f(!!r?.headerFooterSettings?.isFloatingChatWidgetActive)},[r,f]);let R=o?.headerWidgetCmsData,E=R?.retailerHeaderWidgetData?.find(e=>e?.retailerId===(t?.canSelectedRetailerId||n))??{},F=(0,u.pickRetailerHeaderBoolean)(E?.isStickyHeader,R?.isStickyHeader),I=(0,u.pickRetailerHeaderBoolean)(E?.isStickyMenuWidget,R?.isStickyMenuWidget),A=(0,u.pickRetailerHeaderBoolean)(E?.isShowSignInButton,R?.isShowSignInButton),H=n&&g?.headerLinkWidgetCmsData?.links?.length?g?.headerLinkWidgetCmsData:l?.headerLinkWidgetCmsData?.links?.length?l?.headerLinkWidgetCmsData:{},T=(0,u.pickRetailerHeaderField)(E?.logo,R?.logo),z=(0,u.pickRetailerHeaderField)(E?.logoTitle,R?.logoTitle),O=(0,u.pickRetailerHeaderField)(E?.logoAlt,R?.logoAlt),[_,B]=(0,b.useState)(null);(0,b.useEffect)(()=>{B((0,d.decryptFromCookies)("canUserSelectedState"))},[]);let $=(0,b.useMemo)(()=>{if(!r||!_)return r;let e=r?.headerFooterSettings,t=e?.stateHeaderFooterSettingsData?.find(e=>e.stateCode===_);if(!t)return r;let{stateCode:s,...a}=t;return{...r,headerFooterSettings:{...e,...a}}},[r,_]),W=(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(rT,{siteLogo:T,logoTitle:z,logoAlt:O,widgetData:H,headerFooterSettingsCms:$,provider:t?.provider,isStickyHeader:F,isStickyMenuWidget:I,isShowSignInButton:A,preloadedTickerData:o?.tickerPageData,headerCustomBuilder:i})}),V=n&&g?.footerWidgetCmsData?g.footerWidgetCmsData:l?.footerWidgetCmsData||{},U=n&&g?.socialLinkCMSData?g.socialLinkCMSData:l?.socialLinkCMSData||{},G=n&&g?.footerLinkWidgetCmsData?g.footerLinkWidgetCmsData:l?.footerLinkWidgetCmsData||{},K=V?.retailerFooterWidgetData?.find(e=>e?.retailerId===(t?.canSelectedRetailerId||n))??{},Y={logo:(0,u.pickRetailerHeaderField)(K?.logo,V?.logo),logoTitle:(0,u.pickRetailerHeaderField)(K?.logoTitle,V?.logoTitle),logoAlt:(0,u.pickRetailerHeaderField)(K?.logoAlt,V?.logoAlt),subtext:(0,u.pickRetailerHeaderField)(K?.subtext,V?.subtext),additionalSectionBgColor:(0,u.pickRetailerHeaderField)(K?.additionalSectionBgColor,V?.additionalSectionBgColor),darkAdditionalSectionBgColor:(0,u.pickRetailerHeaderField)(K?.darkAdditionalSectionBgColor,V?.darkAdditionalSectionBgColor),enableAdditionalSection:(0,u.pickRetailerHeaderBoolean)(K?.enableAdditionalSection,V?.enableAdditionalSection)},Z=(0,b.useMemo)(()=>{let e=l?.showcaseFooterCmsData;if(!e||!_)return e||{};let t=e?.stateShowcaseModeFooterData?.find(e=>e.stateCode===_);if(!t)return e;let{stateCode:s,...a}=t;return{...e,...a}},[l?.showcaseFooterCmsData,_]),q=(0,b.useMemo)(()=>
185{if(!r||!_)return r;let e=r?.showcaseFooterDesignModes?.[0];if(!e?.stateShowcaseFooterDesignModeData)return r;let t=e.stateShowcaseFooterDesignModeData.find(e=>e.stateCode===_);if(!t)return r;let{stateCode:s,...a}=t;return{...r,showcaseFooterDesignModes:[{...e,...a}]}},[r,_]),X=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eh,{cmsData:{...Y,retailers:K?.retailers?.length>0?K?.retailers:l?.footerWidgetCmsData?.retailers??[]},socialLinkData:U,quickLinks:G,provider:t?.provider,showcaseFooterData:Z,headerFooterSettingsCms:q,preloadedCustomProductCategoryData:o?.productCategoryCustomData,preloadedTodaySpecialsValue:o?.todaySpecialsForFooter,preloadedSocialLinksCms:o?.socialLinksCms,preferredSourceSettings:l?.preferredSourceSettings}),(0,s.jsx)(ex.default,{headerFooterSettingsCms:$,layoutCommonCms:o}),(0,s.jsx)(r_.default,{enableFloatingChat:$?.headerFooterSettings?.isFloatingChatWidgetActive??!1,backgroundColor:$?.generalSettingsComponentUiData?.floatingChatWidgetBgColor||"#000000",textColor:$?.generalSettingsComponentUiData?.floatingChatWidgetTextColor||"#ffffff",iconColor:$?.generalSettingsComponentUiData?.floatingChatWidgetIconColor||"#ffffff",floatingChatWidgetText:$?.stickyFooterWidgetCmsData?.floatingChatWidgetText||"What can we help you find?",floatingChatWidgetIcon:$?.stickyFooterWidgetCmsData?.floatingChatWidgetIcon||"fa-solid fa-comment-dots",floatingChatWidgetCustomId:$?.stickyFooterWidgetCmsData?.floatingChatWidgetCustomId||void 0,headerFooterSettings:$?.headerFooterSettings}),(0,s.jsx)(r1,{enabled:o?.userFeedbackSettingsCms?.isEnabled===!0,buttonTextColor:o?.userFeedbackSettingsCms?.buttonTextColor,buttonBackgroundColor:o?.userFeedbackSettingsCms?.buttonBackgroundColor})]}),J=o?.retailerClosePopupCMS?.isTurnOn&&n&&t.provider!==e_.PROVIDER_ECOMMERCE&&t.provider!==e_.PROVIDER_SHOWCASE&&!h&&t?.canAgeConsent&&!x&&t?.isVisitedCustomerChoicePage;return(0,s.jsxs)(s.Fragment,{children:[W,J&&(0,s.jsx)(rO,{}),(0,s.jsx)("main",{className:$?.headerFooterSettings?.isFloatingChatWidgetActive&&j?"max-md:py-[20px]":"",children:e}
185),X,(0,s.jsx)(r3.PopupCampaignProvider,{retailerId:n,children:D&&(0,s.jsx)(le,{})}),(0,s.jsx)(r2,{open:y,handleClose:()=>S(!1),onConfirm:()=>{S(!1),P.push("/")},userName:N,headlineTemplate:k,description:C}),(0,s.jsx)(r8,{})]})}var ls=e.i(733365),la=e.i(595815);e.s(["default",0,function({initial:e,children:t}){let a=(0,ls.useLayoutData)(),r=a?.siteSystemData??{},l=a?.commonCmsFull,o={...a?.headerFooterSettingsCms??{},generalSettingsComponentUiData:l?.generalSettingsComponentUiData},i=l?{headerWidgetCmsData:l.headerWidgetCmsData,menuLinkWidgetCmsData:l.menuLinkWidgetCmsData,homeDealsSectionCmsData:l.homeDealsSectionCmsData,retailerClosePopupCMS:l.retailerClosePopupCMS,tickerPageData:l.tickerPageData,socialLinksCms:l.socialLinksCms,productCategoryCustomData:l.productCategoryCustomData,todaySpecialsForFooter:l.todaySpecialsForFooter,userFeedbackSettingsCms:l.userFeedbackSettingsCms}:void 0,n=e.provider??(0,la.default)(l?.providerSettingsCms)??null;return(0,s.jsxs)(lt,{initial:{...e,provider:n},headerFooterSettingsCms:o,siteSystemData:r,layoutCommonCms:i,headerCustomBuilder:a?.headerCustomBuilder??null,children:[t,(0,s.jsx)(r8,{})]})}],216766)}]);

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.