@anker-in/headless-ui 1.1.17 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/biz-components/AccordionCards/index.d.ts +17 -0
- package/dist/cjs/biz-components/AccordionCards/index.js +1 -1
- package/dist/cjs/biz-components/AccordionCards/index.js.map +3 -3
- package/dist/cjs/biz-components/HeaderNavigation/index.js +1 -1
- package/dist/cjs/biz-components/HeaderNavigation/index.js.map +3 -3
- package/dist/cjs/biz-components/HeaderNavigation/types.d.ts +2 -0
- package/dist/cjs/biz-components/HeaderNavigation/types.js +1 -1
- package/dist/cjs/biz-components/HeaderNavigation/types.js.map +2 -2
- package/dist/cjs/components/board.d.ts +3 -1
- package/dist/cjs/components/board.js +1 -1
- package/dist/cjs/components/board.js.map +3 -3
- package/dist/cjs/components/brand-strip.d.ts +26 -0
- package/dist/cjs/components/brand-strip.js +2 -0
- package/dist/cjs/components/brand-strip.js.map +7 -0
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/components/index.js.map +3 -3
- package/dist/cjs/stories/accordionCards.stories.d.ts +21 -0
- package/dist/cjs/stories/accordionCards.stories.js +1 -1
- package/dist/cjs/stories/accordionCards.stories.js.map +3 -3
- package/dist/cjs/stories/brandStrip.stories.d.ts +12 -0
- package/dist/cjs/stories/brandStrip.stories.js +2 -0
- package/dist/cjs/stories/brandStrip.stories.js.map +7 -0
- package/dist/esm/biz-components/AccordionCards/index.d.ts +17 -0
- package/dist/esm/biz-components/AccordionCards/index.js +1 -1
- package/dist/esm/biz-components/AccordionCards/index.js.map +3 -3
- package/dist/esm/biz-components/HeaderNavigation/index.js +1 -1
- package/dist/esm/biz-components/HeaderNavigation/index.js.map +3 -3
- package/dist/esm/biz-components/HeaderNavigation/types.d.ts +2 -0
- package/dist/esm/biz-components/HeaderNavigation/types.js +1 -1
- package/dist/esm/biz-components/HeaderNavigation/types.js.map +2 -2
- package/dist/esm/components/board.d.ts +3 -1
- package/dist/esm/components/board.js +1 -1
- package/dist/esm/components/board.js.map +3 -3
- package/dist/esm/components/brand-strip.d.ts +26 -0
- package/dist/esm/components/brand-strip.js +2 -0
- package/dist/esm/components/brand-strip.js.map +7 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/index.js.map +2 -2
- package/dist/esm/stories/accordionCards.stories.d.ts +21 -0
- package/dist/esm/stories/accordionCards.stories.js +1 -1
- package/dist/esm/stories/accordionCards.stories.js.map +3 -3
- package/dist/esm/stories/brandStrip.stories.d.ts +12 -0
- package/dist/esm/stories/brandStrip.stories.js +2 -0
- package/dist/esm/stories/brandStrip.stories.js.map +7 -0
- package/package.json +1 -1
- package/style.css +62 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{Fragment as X,jsx as e,jsxs as n}from"react/jsx-runtime";import Me,{forwardRef as ee,useCallback as K,useEffect as B,useImperativeHandle as Le,useMemo as M,useRef as F,useState as L}from"react";import{Picture as Q,Text as h,Button as T,Container as te,Link as O,Heading as de}from"../../components/index.js";import{withLayout as Pe}from"../../shared/Styles.js";import{cn as N,atobID as ze}from"../../helpers/utils.js";import He,{useNavContext as I}from"./NavProvider.js";import{HeaderNavigationMenu as $,HeaderNavigationBlockType as W,HeaderNavigationActionBlockType as _}from"./types.js";import{debounce as Be}from"es-toolkit";import Ee from"jump.js";import{useGSAP as se}from"@gsap/react";import{gsap as ie}from"gsap";import{WithSidebar as ue,WithSupports as me,WithMulticol as pe,WithGroupCategory as be}from"./withCategory.js";import{Menu as Te,Close as fe,User as $e,RightArrow as Ae,LeftArrow as Re,DownArrow as ae,Polygon as je}from"./icons/index.js";import Fe from"../NavigationSearch/index.js";const ve=ee((t,a)=>{const{data:{headerNavigation:l}={},buildProps:c,event:r,profile:b,theme:d="light",isTop:u=!1,searchResult:i,onSearch:k,isSearching:s,keywords:w,onPrimaryNavClick:x,onSeriesProductClick:f,onSidebarNavClick:v,headerId:g,cartCount:m}=t,o=F(null),[p,C]=L(!1),[S,z]=L(!1),[D,U]=L(!1),[J,P]=L(!1),A=F(null),R=()=>{const G=document?.querySelector("body")?.offsetWidth||0;P(G<=1440)};B(()=>(R(),window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[]),Le(a,()=>A.current),B(()=>{A.current&&u&&Ee(A.current,{duration:0,offset:A.current?.getBoundingClientRect()?.bottom||0})},[u]),B(()=>{r&&(r.search=()=>C(!0))},[r]),se(()=>{o?.current&&p&&ie.fromTo(o.current,{height:0},{height:"auto",duration:.3})},[p]),B(()=>{document.documentElement.style.overflow=p?"hidden":"auto"},[p]);const ne=M(()=>l?.headerBar?.actions?.find(G=>G?.blockType===_.Search)?.searchBar?.[0]||{},[l]);return e(He,{buildProps:c,profile:b,isMobile:J,event:r,payloadData:l,onSidebarNavClick:v,onSeriesProductClick:f,cartCount:m,children:e("header",{id:g||"header","data-ui-component-id":"HeaderNavigation",className:"relative z-[100] bg-white",ref:A,children:n("div",{className:N("hover:bg-white hover:text-black",d==="light"?"text-black":"text-white",{}),onClick:()=>U(!0),children:[e(ge,{data:l,className:"desktop:block hidden !bg-white",theme:d,onNavItemClick:()=>U(!0),onPrimaryNavClick:x}),e(Ne,{data:l,className:"desktop:hidden block !bg-white",onPrimaryNavClick:x}),p&&n("div",{className:"absolute left-0 top-0 z-[60] flex w-full flex-col bg-black/70",style:{height:`calc(100dvh - ${A?.current?.getBoundingClientRect()?.top}px)`},children:[e("div",{ref:o,className:N("overflow-y-auto",{}),children:e(Fe,{data:ne,keywords:w,isSearching:s,searchResult:i,onSearch:G=>{k?.(G)},onClose:()=>{k?.(),C(!1)}})}),e("div",{className:"flex-1 bg-transparent",onClick:()=>C(!1)})]})]})})})}),ge=ee((t,a)=>{const{data:l,onNavItemClick:c,className:r,theme:b,onPrimaryNavClick:d}=t,{event:u,profile:i}=I(),[k,s]=L(!1),w=M(()=>be(l?.categories?.filter(y=>y?.pcShow)),[l]),[x,f]=L(null),[v,g]=L([]),m=F(null),[o,p]=L(!1),C=F(null),S=F(null),z=F(w.map(y=>Array(y?.length||0).fill(null)));B(()=>{w?.length&&g(w?.map((y,H)=>y?.map((E,j)=>({groupIndex:H,index:j,open:!1}))))},[w]);const D=M(()=>{let y=null;for(const H of v){for(const E of H)if(E.open){y=E;break}if(y)break}return y},[v]);B(()=>{document.documentElement.style.overflow=D?.open||o?"hidden":"auto"},[D?.open,o]);const U=(y,H,E)=>{if(p(!1),x?.components?.[0]?.blockType===W.Links)x?.components?.[0]?.url&&window.open(x?.components?.[0]?.url);else{const j=w?.flat()||[],q=j?.findIndex(re=>re?.id===w[H][E]?.id);y.stopPropagation(),c?.(),d?.(j[q],q),f(w[H][E]),g(re=>re.map(De=>De.map(Y=>Y.groupIndex===H&&Y.index===E?{...Y,open:!Y.open}:{...Y,open:!1})))}},J=()=>{g(y=>y.map(H=>H.map(E=>({...E,open:!1}))))},P=M(()=>{if(x)return x?.components?.[0]?.blockType},[x]),A=ue(ye,x),R=pe(_e,x),ne=me(Oe,{categoriesItem:x,currentNavItemRef:z.current?.[D?.groupIndex||0]?.[D?.index||0]}),G=M(()=>{switch(P){case W.Sidebar:return e(A,{});case W.Supports:return e(ne,{});case W.Multicol:return e(R,{});default:return null}},[P,x]),le=M(()=>l?.headerBar?.actions?.filter(y=>y?.pcShow),[l]),V=M(()=>le?.find(y=>y?.blockType===_.Profile),[le]),oe=K(()=>{p(y=>!y)},[]);return B(()=>{if(m?.current){const y=m.current;return y.addEventListener("click",oe),()=>{y.removeEventListener("click",oe)}}},[oe]),se(()=>{D?.open&&ie.fromTo(S?.current,{height:0},{height:"auto"})},[D?.open]),n(te,{className:N("relative h-[96px]",r),children:[n("div",{ref:C,onClick:J,className:"flex h-full flex-col justify-end gap-4",children:[n("div",{className:"flex items-center justify-between",children:[e(Ce,{}),e(ce,{ref:m,actions:le,activeStatus:o})]}),e("div",{className:"flex justify-between",children:w?.map((y,H)=>e("div",{className:"flex gap-3",children:y?.map((E,j)=>e("div",{ref:q=>{z.current[H][j]=q},className:"group cursor-pointer",children:n("div",{className:"relative",children:[n("div",{className:"flex items-center gap-1 pb-4",onClick:q=>U(q,H,j),children:[e(h,{html:E.text,className:"text-sm font-bold leading-[1.4]"}),e(ae,{className:N("size-4 opacity-0 transition-opacity duration-500 group-hover:opacity-100",{"rotate-180":D?.groupIndex===H&&D?.index===j,"opacity-100":k&&D?.groupIndex===H&&D?.index===j})})]}),e("div",{className:N("absolute bottom-0 left-0 h-[2px] w-0 transition-all duration-500",{"w-[calc(100%-20px)]":D?.groupIndex===H&&D?.index===j},b==="dark"?"bg-white":"bg-[#080A0F]")})]})},E.id))},`groupCategory-${H}`))})]}),n("div",{className:N("absolute left-0 top-full z-[999] flex w-full flex-col overflow-hidden border-t border-b-[#E4E5E6] bg-black/70 text-black",{hidden:!(D?.open&&x)}),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),style:{height:`calc(100dvh - ${C?.current?.getBoundingClientRect()?.bottom}px)`},children:[e("div",{ref:S,className:N("relative z-50",{"overflow-hidden":P!==W.Supports}),children:G}),e("div",{className:"flex-1 bg-transparent",onClick:J})]}),o&&n("div",{className:"absolute left-0 top-full z-[999] flex h-dvh w-full bg-black/70",children:[e("div",{className:"absolute w-[272px] bg-white p-4",style:{right:`calc(100% - ${m?.current?.getBoundingClientRect()?.right}px)`,top:"-36px"},children:i?.email?n(X,{children:[e(h,{html:i?.nick_name||V?.welcome,className:"text-sm font-bold"}),e("div",{className:"mt-2 h-px bg-[#D9D9D9]"}),e("div",{className:"mt-2",children:V?.profiles?.map(y=>e(Z,{className:"py-2",label:y?.title,href:y?.url},y.id))})]}):n(X,{children:[e(je,{className:"absolute -top-2 right-[46px] z-30 text-white"}),e(h,{html:V?.benefits_title,className:"text-sm font-bold leading-[1.4]"}),e("div",{className:"mt-2 flex flex-col gap-1",children:V?.benefits?.map(y=>n("div",{className:"flex items-center gap-[6px]",children:[e(Q,{source:y.benefitIcon?.url,className:"size-4",alt:y.benefit,width:16,height:16}),e(h,{html:y.benefit,className:"text-sm font-bold leading-[1.4]"})]},y.id))}),n("div",{className:"mt-4 flex items-center gap-2",children:[e(T,{variant:"secondary",size:"lg",onClick:()=>u?.join?.(),children:e(h,{html:V?.primaryButton||"Join Now",className:"font-bold"})}),e(T,{variant:"primary",size:"lg",onClick:()=>u?.login?.(),children:e(h,{html:V?.secondaryButton||"Log In",className:"font-bold"})})]})]})}),e("div",{className:"flex-1 bg-transparent",onClick:()=>p(!1)})]})]})}),ye=Me.memo(({sidebarCategoriesMetadata:t,seriesMetadata:a})=>{const{buildProps:l,onSidebarNavClick:c}=I(),[r,b]=L([]),[d,u]=L(-1),i=F(null),k=K(()=>{const f=t?.subcategories;if(!f?.length)return;const v=f.findIndex(o=>!!o?.subSubCategories),g=f.findIndex(o=>!o?.subSubCategories),m=f.map((o,p)=>({index:p,open:v===p||g===p}));b(m)},[t]);B(()=>{k()},[k]);const s=M(()=>{const f=t?.subcategories?.[r?.find(g=>g.open)?.index||0],v=a?.find(g=>g?.label?.toLowerCase()===f?.label?.toLowerCase())||{};if(f?.collections){const g=l?.categories?.[f?.collections]||{};return{label:v?.label,isCollection:!0,banner:v?.banner,primary:v?.primary,series:[{products:g?.products}]}}else if(f?.subSubCategories){const g=f?.subSubCategories?.[d],m=a?.find(o=>o?.label?.toLowerCase()===g?.label?.toLowerCase())||{};if(g?.collections){const o=l?.categories?.[g?.collections]||{};return{label:m?.label,isCollection:!0,banner:m?.banner,primary:m?.primary,series:[{products:o?.products}]}}else return m}else return v},[t,r,d,a]),w=K((f,v)=>{if(v?.subSubCategories?.length>0?u(0):u(-1),v?.subSubCategories?.length>0)b(g=>g.map(m=>m.index===f?{...m,open:!0}:{...m,open:!1}));else{const m=t?.subcategories?.findIndex(o=>!!o?.subSubCategories);b(o=>o.map(p=>({...p,open:p.index===f||p.index===m})))}},[t,k]),x=(f,v)=>{b(g=>g.map(m=>m.index===f?{...m,open:!0}:{...m,open:!1})),u(v)};return n(te,{childClassName:"lg-desktop:gap-12 flex bg-white gap-8",children:[n("div",{className:"lg-desktop:basis-[356px] flex basis-[284px] flex-col gap-4 py-4",style:{userSelect:"none"},ref:i,children:[e("div",{className:"desktop:h-[416px] flex flex-col overflow-y-auto",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:t?.subcategories?.map((f,v)=>{const g=Array.isArray(f?.subSubCategories)&&f?.subSubCategories?.length>0;return n("div",{children:[n("div",{className:N("flex cursor-pointer items-center justify-between",{"bg-[#F5F5F7]":!g&&r?.find(m=>m.index===v)?.open}),onClick:()=>{w(v,f),c?.(f,v)},children:[e(h,{html:f.label,className:"p-4 text-sm font-bold leading-[1.4]"}),g&&e(ae,{className:N("size-4",{"rotate-180":r?.find(m=>m.index===v)?.open})})]}),r?.find(m=>m.index===v)?.open&&e("div",{className:"flex flex-col",children:f.subSubCategories?.map((m,o)=>e(h,{html:m.label,onClick:()=>{x(v,o),c?.(m,o)},className:N("cursor-pointer px-6 py-4 text-sm font-bold leading-[1.4] text-[#6D6D6F] hover:bg-[#F5F5F7]",{"bg-[#F5F5F7]":d===o})},`subSubItem-${v}-${o}`))})]},`subcategoryItem-${v}`)})}),t&&e("div",{className:"flex",children:n("div",{className:"flex flex-col gap-4",children:[t?.primary&&e(T,{as:"a",href:`${t?.primary?.url}?ref=${t?.primary?.label}_shopall`,variant:"primary",size:"lg",className:"lg-desktop:text-base text-sm",children:t?.primary?.label}),t?.secondary&&e(T,{as:"a",href:t?.secondary?.url,variant:"link",size:"lg",className:"lg-desktop:text-base justify-start !p-0 text-sm",children:t?.secondary?.label})]})})]}),n("div",{className:"flex-1 py-4",children:[Reflect.ownKeys(s).length>0&&n("div",{className:"mb-4 flex items-center justify-between",children:[n("div",{className:"flex items-center gap-2",children:[e(h,{html:s?.label,className:"lg-desktop:text-2xl text-xl font-bold leading-[1.4]"}),s?.primary&&!s?.primary?.hide&&e(T,{as:"a",href:`${s?.primary?.url}?ref=${s?.label}_viewmore`,variant:"link",size:"lg",className:"lg-desktop:text-base justify-start !p-0 text-sm font-bold leading-[1.2] no-underline",children:s?.primary?.label})]}),e(O,{href:s?.guide?.url,className:"lg-desktop:text-base text-sm leading-[1.2] text-[#6D6D6F]",children:s?.guide?.label})]}),e("div",{className:"flex h-[426px] flex-col gap-4 overflow-y-auto",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:s?.series?.map((f,v)=>n("div",{children:[f.label&&e(h,{html:f.label,className:"mb-2 text-sm font-bold leading-[1.4] text-[#6D6D6F]"}),n("div",{className:"grid grid-cols-3 gap-4",children:[!!s?.banner&&e(O,{asChild:!s?.banner?.href,href:s?.banner?.href,children:n("div",{className:"[&_img]:hover:duration-600 relative [&_img]:hover:scale-110 [&_img]:hover:transition-all",children:[e(Q,{source:s?.banner?.imageUrl,className:"laptop:h-[120px] h-[114px]",imgClassName:"object-cover h-full"}),n("div",{className:"absolute inset-x-0 bottom-0 p-4",children:[e(de,{size:2,html:s?.banner?.title||"Buy in Guide",className:"font-bold text-white"}),e(h,{html:s?.banner?.desc||"20.000mAh",className:"text-sm font-bold text-white"})]})]})}),f.products?.map((g,m)=>e(he,{seriesLabel:s?.label,product:g,isCollection:s?.isCollection},`seriesProductItem-${m}`))]})]},`seriesItem-${v}`))})]})]})}),_e=({multicolMetadata:t})=>{const a=F(null);return e("div",{ref:a,children:e(te,{childClassName:"bg-white",className:"h-full",children:e("div",{className:"flex gap-4 py-4",children:t?.map((l,c)=>e("div",{className:"w-1/4",children:e(xe,{item:l})},`multicolItem-${l?.label}-${c}`))})})})},Oe=({supportsMetadata:t,currentNavItemRef:a})=>{const l=F(null),[c,r]=L(null),[b,d]=L(0);B(()=>{if(l?.current){const i=l?.current?.getBoundingClientRect();d(i.height)}},[l]);const u=Be(()=>{if(a){const i=a.getBoundingClientRect();r(i)}},500);return B(()=>(u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}),[u]),B(()=>{if(a){const i=a.getBoundingClientRect();r(i)}},[a]),e("div",{className:"absolute top-0 h-full overflow-hidden bg-white transition-all duration-500",style:{right:`calc(100% - ${c?.right}px)`,height:b},children:e("div",{ref:l,className:"p-4",children:t?.map(i=>e("div",{className:"py-2",children:e(O,{href:i.url,className:"text-sm font-bold leading-[1.4] no-underline",children:i.label})},i.id))})})},he=({product:t,isCollection:a,position:l,seriesLabel:c})=>{const{buildProps:r,onSeriesProductClick:b}=I();let d=a?t:r?.products?.find(s=>s.handle===t.handle);const u=d?.variants?.find(s=>s.sku===t.sku)||d?.variants?.[0],i=M(()=>`/products/${d?.handle}?variant=${ze(u?.id)}`,[d?.handle,u?.id]),k=M(()=>d?.tags?.filter?.(s=>s?.startsWith?.("CLtag"))?.map?.(s=>s?.replace?.("CLtag:",""))?.slice?.(0,2),[d?.tags]);return u?.availableForSale?e(O,{href:i,onClick:s=>{s.preventDefault(),window.open(i),b?.(d,l||0,c)},className:"no-underline hover:text-current",children:n("div",{className:"flex shrink-0 items-center gap-4 bg-[#F5F5F7] px-4 py-3 [&_img]:hover:scale-110",children:[e("div",{className:"shrink-0",children:e(Q,{source:`${u?.image?.url||t?.images?.[0]?.url}}`,width:90,height:90,className:"size-[96px]",imgClassName:"object-contain h-full"})}),n("div",{className:"relative",children:[e("div",{className:"flex gap-1",children:Array.isArray(k)&&k?.map((s,w)=>e(h,{as:"p",html:s,className:"text-brand-0 mb-1 inline-block h-[24px] whitespace-nowrap rounded-full border-[1.6px] border-[#00BEFA] px-[6px] text-sm font-bold !leading-[22px]"},w))}),e(h,{className:"lg-desktop:h-[44px] lg-desktop:text-base line-clamp-2 h-[40px] text-sm font-bold leading-[1.4]",html:d?.title||t?.name}),t?.desc&&e(h,{as:"p",html:t?.desc,className:"lg-desktop:text-sm mt-1 line-clamp-1 text-xs font-bold leading-[1.4] text-[#6D6D6F]"})]})]})}):null},xe=({item:t,allPicture:a})=>n(X,{children:[t?.columns&&n(X,{children:[e(h,{html:t.label,as:"div",className:"my-2 text-sm font-bold leading-[1.4] text-[#6D6D6F]"}),e("div",{className:"mt-2 flex flex-col",children:t.columns?.map(l=>n("div",{className:"flex items-center gap-1 py-2",children:[e(O,{href:`${l.url}?ref=navMenu`,asChild:!l.url,className:"text-sm font-bold leading-[1.4] no-underline",children:l.label}),l?.badge&&e(h,{as:"p",html:l?.badge||"badge",className:"text-brand-0 h-[24px] rounded-full border-[1.6px] border-[var(--brand-color-0)] px-[6px] text-sm font-bold !leading-[22px]"})]},l.label))})]}),t?.imageUrl&&e("div",{className:N("laptop:h-[280px] desktop:h-[224px] lg-desktop:h-[280px] tablet:max-w-[346px] laptop:max-w-[440px] desktop:w-full relative h-[240px] max-w-[358px] overflow-hidden",{"tablet:max-w-none laptop:max-w-none":a}),children:n(O,{href:`${t.url}?ref=navMenu`,asChild:!t.url,children:[e(Q,{source:t.imageUrl,width:404,height:280,className:"size-full",imgClassName:"object-cover h-full hover:scale-105 transition-all duration-300"}),n("div",{className:"absolute bottom-4 left-4 z-10 flex flex-col justify-end no-underline",children:[e(h,{html:t.title,className:N("lg-desktop:text-2xl text-xl font-bold leading-[1.2] text-white",{"text-black":t?.theme==="dark"})}),t.subtitle&&e(h,{html:t.subtitle,className:N("text-sm font-bold leading-[1.4] text-white",{"text-black":t?.theme==="dark"})}),t?.primary?.label&&e(T,{as:"a",href:t?.primary?.url,variant:"link",size:"lg",className:N("mr-auto !p-0 text-sm font-bold leading-[1.4] text-white",{"text-black":t?.theme==="dark"}),children:t?.primary?.label||"more"})]})]})})]}),Ne=ee(({data:t,className:a,onPrimaryNavClick:l},c)=>{const r=M(()=>be(t?.categories?.filter(P=>P?.mobileShow)),[t]),{currentMenu:b,setCurrentMenu:d,subSubCategory:u}=I(),[i,k]=L(!1),[s,w]=L(0),[x,f]=L(null),v=F(null);B(()=>{if(v?.current&&i){const P=v?.current?.getBoundingClientRect();w(window?.innerHeight-(P?.bottom||0))}},[i]),se(()=>{ie.fromTo(v.current,{height:0},{height:s,duration:.3})},[s]),B(()=>{document.documentElement.style.overflow=i?"hidden":"auto"},[i]);const g=M(()=>x?.components?.[0]?.blockType,[x]),m=me(Ue,{categoriesItem:x}),o=ue(We,x),p=pe(Ge,x),C=M(()=>{switch(g){case W.Sidebar:return e(o,{});case W.Supports:return e(m,{});case W.Multicol:return e(p,{});default:return null}},[g,x,m]),S=K(()=>{k(!1),w(0),d&&d($.Primary)},[k,w,d]),z=M(()=>t?.headerBar?.actions?.filter(P=>P?.mobileShow&&P?.blockType!==_.Profile),[t]),D=M(()=>t?.headerBar?.actions?.find(P=>P?.mobileShow&&P?.blockType===_.Profile)||{},[t]),U=M(()=>{switch(b){case $.Primary:return e(Je,{actions:z,menuOpen:i,onMenuOpenClose:()=>{k(!1),w(0)},onMenuOpenClick:()=>k(!0)});case $.Secondary:return e(Se,{title:x?.text,onMenuOpenClose:S,onMenuBackClick:()=>d?.($.Primary)});case $.Third:return e(Se,{title:u?.label,onMenuOpenClose:S,onMenuBackClick:()=>d?.($.Secondary)});default:return null}},[i,b,d,x,z,u,S]),J=K((P,A)=>{const R=Array.isArray(r)?Array.isArray(r[P])?r[P][A]:{}:{};f(R),R?.components?.[0]?.blockType===W.Links?R?.components?.[0]?.url&&window.open(R?.components?.[0]?.url):d?.($.Secondary)},[r,d]);return n(te,{className:N("relative h-[52px]",a),children:[U,i&&e("div",{ref:v,className:"absolute left-0 top-full z-[999] w-full overflow-y-auto border-t border-[#E4E5E6] bg-white text-black",style:{height:s},children:b===$.Primary?e(Ie,{categories:r,onPrimaryMenuClick:J,onPrimaryNavClick:l,profileAction:D}):C})]})}),Ie=({categories:t,onPrimaryMenuClick:a,profileAction:l,onPrimaryNavClick:c})=>{const{onSidebarNavClick:r}=I();return n("div",{className:"flex h-full flex-col justify-between",children:[e("div",{className:"tablet:px-8 laptop:px-16 p-4",children:t?.map((b,d)=>n("div",{className:"",children:[b?.map((u,i)=>e(Z,{label:u.text,onClick:()=>{const s=(t?.flat()||[])?.findIndex(w=>w?.id===t[d][i]?.id);a(d,i),c?.(u,s)},icon:u.components?.[0]?.icon},u.id)),e("div",{className:N("my-2 h-px w-full bg-[#E5E5E7]",{hidden:d===t.length-1})})]},`groupCategory-${d}`))}),e(Ke,{profileAction:l})]})},We=({sidebarCategoriesMetadata:t,seriesMetadata:a})=>{const{currentMenu:l,setCurrentMenu:c,subSubCategory:r,setSubSubCategory:b,setCurrentSeriesMetadata:d,currentSeriesMetadata:u,buildProps:i,onSidebarNavClick:k}=I(),[s,w]=L([]),[x,f]=L([]);B(()=>{t?.subcategories?.length&&w(t?.subcategories?.map((o,p)=>({index:p,open:!1})))},[t]),B(()=>{r?.subSubCategories?.length&&f(r?.subSubCategories?.map((o,p)=>({index:p,open:p===0})))},[r]);const v=K((o,p)=>{c&&c($.Third),b?.(o);const C=a?.find(S=>p!==void 0?o?.subSubCategories?.[p]?.label?.toLowerCase()===S.label?.toLowerCase():o?.label?.toLowerCase()===S.label?.toLowerCase())||{};if(o?.collections){const S=i?.categories?.[o?.collections]||{};d?.({label:C?.label,isCollection:!0,banner:C?.banner,primary:C?.primary,series:[{products:S?.products}]})}else d?.(C)},[a,t,c,b,d]),g=M(()=>a?.find(o=>!!o?.guide)?.guide,[a,t]);return M(()=>{switch(l){case $.Secondary:return n("div",{className:"tablet:px-8 laptop:px-16 tablet:justify-start tablet:gap-16 flex h-full flex-col justify-between p-4",children:[e("div",{children:t?.subcategories?.map((o,p)=>e("div",{children:e(Z,{label:o?.label,active:s.find(C=>C.index===p)?.open,onClick:()=>{v(o),k?.(o,p)}})},`${o.label}-${p}`))}),n("div",{className:"tablet:items-start flex flex-col items-center gap-4",children:[t?.primary&&e(T,{as:"a",href:`${t?.primary?.url}?ref=${t?.primary?.label}_shopall`,variant:"primary",size:"lg",className:"tablet:w-auto w-full text-base",children:t?.primary?.label}),t?.secondary&&e(T,{as:"a",href:t?.secondary?.url,variant:"link",size:"lg",className:"tablet:w-auto tablet:px-0 w-full py-0 text-base",children:t?.secondary?.label})]})]});case $.Third:return n("div",{className:"tablet:px-8 laptop:px-16 p-4",children:[r?.subSubCategories?r?.subSubCategories?.map((o,p)=>{const C=a?.find(z=>z.label.toLowerCase()===o?.label?.toLowerCase())||{};let S={};if(o?.collections){const z=i?.categories?.[o?.collections]||{};S={label:C?.label,isCollection:!0,banner:C?.banner,primary:C?.primary,series:[{products:z?.products}]}}else S=C;return n("div",{children:[Reflect.ownKeys(o).length>0&&e(ke,{matchSeriesMetadata:S,onSubSubCategoryItemClick:()=>{k?.(o,p),f(z=>z.map((D,U)=>({...D,open:U===p?!D.open:D.open})))},expanded:!!x?.find(z=>z.index===p)?.open}),x?.find(z=>z.index===p)?.open&&n(X,{children:[e(we,{matchSeriesMetadata:S}),S?.primary&&e("div",{className:"my-4 text-center",children:e(T,{as:"a",href:S?.primary?.url,className:"text-base leading-[1.2] no-underline",variant:"secondary",size:"base",children:S?.primary?.label})})]})]},`${o.label}-${p}`)}):n(X,{children:[Reflect.ownKeys(u).length>0&&e(ke,{matchSeriesMetadata:u}),e(we,{matchSeriesMetadata:u}),u?.primary&&e("div",{className:"my-4 text-center ",children:e(T,{as:"a",href:`${u?.primary?.url}?ref=${u?.label}_viewmore`,variant:"secondary",size:"base",className:"text-base leading-[1.2] no-underline",children:u?.primary?.label})})]}),g&&e(O,{href:g?.url,children:e("div",{className:"mt-4",children:e(h,{html:g?.label,className:"text-sm font-bold leading-[1.2] text-[#6D6D6F]"})})})]});default:return null}},[l,t,c,a,s,x,b,r,d,u])},ke=({matchSeriesMetadata:t,onSubSubCategoryItemClick:a,expanded:l})=>n("div",{className:"tablet:pt-0 flex items-center justify-between py-4",onClick:a,children:[t?.label&&e(h,{html:t?.label,className:"text-sm font-bold leading-[1.4]"}),a&&e(ae,{className:N("size-5",{"rotate-180":l})})]}),we=({matchSeriesMetadata:t})=>e("div",{className:"laptop:gap-3 flex flex-col gap-2",children:!!t?.series?.length&&t?.series?.map((a,l)=>n("div",{children:[a.label&&e(h,{html:a.label,className:"mb-2 text-sm font-bold leading-[1.4] text-[#3D3D3F]"}),n("div",{className:"laptop:grid-cols-3 laptop:gap-4 tablet:grid tablet:grid-cols-2 tablet:gap-3 flex flex-col gap-2",children:[!!t?.banner&&e(O,{asChild:!t?.banner?.href,href:t?.banner?.href,children:n("div",{className:"[&_img]:hover:duration-600 relative [&_img]:hover:scale-110 [&_img]:hover:transition-all",children:[e(Q,{source:t?.banner?.imageUrl,className:"laptop:h-[120px] h-[114px]",imgClassName:"object-cover h-full"}),n("div",{className:"absolute inset-x-0 bottom-0 p-4",children:[e(de,{size:2,html:t?.banner?.title||"Buy in Guide",className:N("font-bold text-white",{"text-black":t?.banner?.theme==="dark"})}),e(h,{html:t?.banner?.desc||"20.000mAh",className:N("text-sm font-bold text-white",{"text-black":t?.banner?.theme==="dark"})})]})]})}),a.products?.map((c,r)=>e(he,{position:r,product:c,seriesLabel:t?.label,isCollection:t?.isCollection},`seriesProductItem-${l}-${r}`))]})]},`seriesItem-${l}`))}),Ue=({supportsMetadata:t})=>e("div",{className:"tablet:px-8 laptop:px-16 p-4",children:t?.map(a=>e(Z,{href:a.url,label:a.label,onClick:()=>{}},a.id))}),Ge=({multicolMetadata:t})=>{const a=M(()=>!t?.some(l=>!!l.columns),[t]);return e("div",{className:N("tablet:py-4 tablet:px-8 laptop:px-16 tablet:gap-6 flex flex-col gap-4 p-4",{"tablet:grid tablet:grid-cols-2 tablet:gap-3 laptop:gap-4":a}),children:t?.map((l,c)=>e("div",{children:e(xe,{item:l,allPicture:a})},`multicolItem-${l?.label}-${c}`))})},Ke=({profileAction:t})=>{const[a,l]=L(!1),{profile:c,event:r}=I();return n("div",{className:N("tablet:px-8 laptop:px-16 bg-[#F5F5F7] px-4 py-6",{"p-4":a}),children:[n("div",{className:"flex items-center justify-between",onClick:()=>l(!a),children:[n("div",{className:"flex items-center gap-[14px]",children:[e("div",{className:"flex size-[40px] shrink-0 items-center justify-center rounded-full bg-white",children:e($e,{})}),e(h,{html:c?.nick_name||t?.welcome,className:"text-base font-bold leading-[1.4]"})]}),!c?.email&&e(ae,{className:N("laptop:size-4 size-5",{"rotate-180":a})})]}),c?.email&&e("div",{className:"mt-4",children:t?.profiles?.map(b=>e(Z,{label:b?.title,href:b?.url},b.id))}),a&&!c?.email&&n("div",{className:"mt-4",children:[e(h,{html:t?.benefits_title,className:"text-sm font-bold leading-[1.4]"}),e("div",{className:"mt-2 flex flex-col gap-1",children:t?.benefits?.map(b=>n("div",{className:"flex items-center gap-[6px]",children:[e(Q,{source:b.benefitIcon?.url,className:"size-4",alt:b.benefit,width:16,height:16}),e(h,{html:b.benefit,className:"text-sm font-bold leading-[1.4]"})]},b.id))})]}),!c?.email&&n("div",{className:"mt-4 flex items-center gap-3",children:[e(T,{className:"tablet:flex-none flex-1",variant:"secondary",size:"base",onClick:()=>r?.join?.(),children:e(h,{html:t?.primaryButton||"Join Now",className:"text-sm font-bold leading-[1.4]"})}),e(T,{className:"tablet:flex-none flex-1",variant:"primary",size:"base",onClick:()=>r?.login?.(),children:e(h,{html:t?.secondaryButton||"Log In",className:"text-sm font-bold leading-[1.4]"})})]})]})},Je=({menuOpen:t,onMenuOpenClose:a,onMenuOpenClick:l,actions:c})=>n("div",{className:"flex h-full items-center justify-between gap-4",children:[e(Ce,{}),n("div",{className:"desktop:gap-6 flex items-center gap-4",children:[e(ce,{actions:c}),t?e(fe,{className:"size-5",onClick:()=>a()}):e(Te,{className:"size-5",onClick:()=>l()})]})]}),Ce=()=>{const{payloadData:t,isMobile:a}=I();return e("div",{className:"hover:text-brand-0 cursor-pointer [&>svg]:w-full",onClick:()=>{window.location.href="/"},dangerouslySetInnerHTML:{__html:a?t?.headerBar?.mobileLogo:t?.headerBar?.desktopLogo}})},ce=ee(({actions:t,activeStatus:a=!1},l)=>{const{event:c,cartCount:r}=I(),[b,d]=L(null),u=K((i,k)=>{switch(d(k),i?.blockType){case _.Search:c?.search?.();break;case _.Cart:c?.cart?.();break;case _.Profile:c?.profile?.();break;case _.Livestream:c?.livestream?.();break;default:return()=>{}}},[c]);return e("div",{className:"desktop:gap-6 flex items-center gap-4",children:Array.isArray(t)&&t?.map((i,k)=>n("div",{className:"relative",ref:i.blockType===_.Profile?l:null,onClick:()=>u(i,k),children:[e(h,{html:i.icon,className:N("size-5 cursor-pointer",{"text-brand-0":a&&b===k})}),i.blockType===_.Cart&&r>0&&e("div",{className:"bg-brand-0 absolute right-[-12px] top-[calc(100%-16px)] z-[1] flex min-h-5 min-w-5 items-center justify-center rounded-full px-[2px]",children:e(h,{html:r?.toString(),className:"text-sm font-bold leading-[1.2] text-white"})})]},i.id))})}),Se=({title:t,onMenuOpenClose:a,onMenuBackClick:l})=>n("div",{className:"flex h-full items-center gap-3",children:[e(Re,{className:"size-5",onClick:()=>l()}),e(h,{html:t,className:"flex-1 text-center text-base font-bold leading-[1.4]"}),e(fe,{className:"size-5",onClick:()=>a()})]}),Z=({label:t,href:a,onClick:l,active:c,icon:r,className:b})=>e("div",{className:N("flex cursor-pointer items-center justify-between py-4",b),onClick:l,children:n(O,{href:a,asChild:!a,className:"flex w-full items-center justify-between no-underline",children:[n("div",{className:"flex items-center gap-4",children:[e(h,{html:t,className:N("text-sm font-bold leading-[1.4]",{underline:r})}),r&&e(h,{html:r})]}),e(Ae,{className:N("laptop:size-4 size-5",{"rotate-90":c})})]})});Ne.displayName="MobileNavigation",ce.displayName="Actions",ve.displayName="HeaderNavigation",ge.displayName="DesktopNavigation",ye.displayName="SidebarDropdown";var st=Pe(ve);export{st as default};
|
|
1
|
+
"use client";import{Fragment as Y,jsx as e,jsxs as n}from"react/jsx-runtime";import Me,{forwardRef as te,useCallback as J,useEffect as B,useImperativeHandle as Le,useMemo as M,useRef as F,useState as L}from"react";import{Picture as X,Text as y,Button as T,Container as ae,Link as I,Heading as de,BrandStrip as Pe}from"../../components/index.js";import{withLayout as ze}from"../../shared/Styles.js";import{cn as N,atobID as He}from"../../helpers/utils.js";import Be,{useNavContext as W}from"./NavProvider.js";import{HeaderNavigationMenu as $,HeaderNavigationBlockType as U,HeaderNavigationActionBlockType as _}from"./types.js";import{debounce as Ee}from"es-toolkit";import Te from"jump.js";import{useGSAP as se}from"@gsap/react";import{gsap as ie}from"gsap";import{WithSidebar as ue,WithSupports as me,WithMulticol as pe,WithGroupCategory as be}from"./withCategory.js";import{Menu as $e,Close as fe,User as Ae,RightArrow as Re,LeftArrow as je,DownArrow as ne,Polygon as Fe}from"./icons/index.js";import _e from"../NavigationSearch/index.js";const ve=te((t,a)=>{const{data:{headerNavigation:l}={},buildProps:c,event:d,profile:m,theme:f="light",isTop:s=!1,searchResult:p,onSearch:x,isSearching:r,keywords:w,onPrimaryNavClick:k,onSeriesProductClick:i,onSidebarNavClick:h,headerId:b,cartCount:u,menuData:o}=t,v=F(null),[C,S]=L(!1),[P,D]=L(!1),[V,G]=L(!1),[K,z]=L(!1),A=F(null),R=()=>{const O=document?.querySelector("body")?.offsetWidth||0;z(O<=1440)};B(()=>(R(),window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[]),Le(a,()=>A.current),B(()=>{A.current&&s&&Te(A.current,{duration:0,offset:A.current?.getBoundingClientRect()?.bottom||0})},[s]),B(()=>{d&&(d.search=()=>S(!0))},[d]),se(()=>{v?.current&&C&&ie.fromTo(v.current,{height:0},{height:"auto",duration:.3})},[C]),B(()=>{document.documentElement.style.overflow=C?"hidden":"auto"},[C]);const le=M(()=>l?.headerBar?.actions?.find(O=>O?.blockType===_.Search)?.searchBar?.[0]||{},[l]);return e(Be,{buildProps:c,profile:m,isMobile:K,event:d,payloadData:l,onSidebarNavClick:h,onSeriesProductClick:i,cartCount:u,children:e("header",{id:b||"header","data-ui-component-id":"HeaderNavigation",className:"relative z-[100] bg-white",ref:A,children:n("div",{className:N("hover:bg-white hover:text-black",f==="light"?"text-black":"text-white",{}),onClick:()=>G(!0),children:[e(ge,{data:l,className:"desktop:block hidden !bg-white",theme:f,onNavItemClick:()=>G(!0),onPrimaryNavClick:k}),e(Ne,{data:l,menuData:o,className:"desktop:hidden block !bg-white",onPrimaryNavClick:k}),C&&n("div",{className:"absolute left-0 top-0 z-[60] flex w-full flex-col bg-black/70",style:{height:`calc(100dvh - ${A?.current?.getBoundingClientRect()?.top}px)`},children:[e("div",{ref:v,className:N("overflow-y-auto",{}),children:e(_e,{data:le,keywords:w,isSearching:r,searchResult:p,onSearch:O=>{x?.(O)},onClose:()=>{x?.(),S(!1)}})}),e("div",{className:"flex-1 bg-transparent",onClick:()=>S(!1)})]})]})})})}),ge=te((t,a)=>{const{data:l,onNavItemClick:c,className:d,theme:m,onPrimaryNavClick:f}=t,{event:s,profile:p}=W(),[x,r]=L(!1),w=M(()=>be(l?.categories?.filter(g=>g?.pcShow)),[l]),[k,i]=L(null),[h,b]=L([]),u=F(null),[o,v]=L(!1),C=F(null),S=F(null),P=F(w.map(g=>Array(g?.length||0).fill(null)));B(()=>{w?.length&&b(w?.map((g,H)=>g?.map((E,j)=>({groupIndex:H,index:j,open:!1}))))},[w]);const D=M(()=>{let g=null;for(const H of h){for(const E of H)if(E.open){g=E;break}if(g)break}return g},[h]);B(()=>{document.documentElement.style.overflow=D?.open||o?"hidden":"auto"},[D?.open,o]);const V=(g,H,E)=>{if(v(!1),k?.components?.[0]?.blockType===U.Links)k?.components?.[0]?.url&&window.open(k?.components?.[0]?.url);else{const j=w?.flat()||[],Q=j?.findIndex(re=>re?.id===w[H][E]?.id);g.stopPropagation(),c?.(),f?.(j[Q],Q),i(w[H][E]),b(re=>re.map(De=>De.map(Z=>Z.groupIndex===H&&Z.index===E?{...Z,open:!Z.open}:{...Z,open:!1})))}},G=()=>{b(g=>g.map(H=>H.map(E=>({...E,open:!1}))))},K=M(()=>{if(k)return k?.components?.[0]?.blockType},[k]),z=ue(ye,k),A=pe(Oe,k),R=me(Ie,{categoriesItem:k,currentNavItemRef:P.current?.[D?.groupIndex||0]?.[D?.index||0]}),le=M(()=>{switch(K){case U.Sidebar:return e(z,{});case U.Supports:return e(R,{});case U.Multicol:return e(A,{});default:return null}},[K,k]),O=M(()=>l?.headerBar?.actions?.filter(g=>g?.pcShow),[l]),q=M(()=>O?.find(g=>g?.blockType===_.Profile),[O]),oe=J(()=>{v(g=>!g)},[]);return B(()=>{if(u?.current){const g=u.current;return g.addEventListener("click",oe),()=>{g.removeEventListener("click",oe)}}},[oe]),se(()=>{D?.open&&ie.fromTo(S?.current,{height:0},{height:"auto"})},[D?.open]),n(ae,{className:N("relative h-[96px]",d),children:[n("div",{ref:C,onClick:G,className:"flex h-full flex-col justify-end gap-4",children:[n("div",{className:"flex items-center justify-between",children:[e(Ce,{}),e(ce,{ref:u,actions:O,activeStatus:o})]}),e("div",{className:"flex justify-between",children:w?.map((g,H)=>e("div",{className:"flex gap-3",children:g?.map((E,j)=>e("div",{ref:Q=>{P.current[H][j]=Q},className:"group cursor-pointer",children:n("div",{className:"relative",children:[n("div",{className:"flex items-center gap-1 pb-4",onClick:Q=>V(Q,H,j),children:[e(y,{html:E.text,className:"text-sm font-bold leading-[1.4]"}),e(ne,{className:N("size-4 opacity-0 transition-opacity duration-500 group-hover:opacity-100",{"rotate-180":D?.groupIndex===H&&D?.index===j,"opacity-100":x&&D?.groupIndex===H&&D?.index===j})})]}),e("div",{className:N("absolute bottom-0 left-0 h-[2px] w-0 transition-all duration-500",{"w-[calc(100%-20px)]":D?.groupIndex===H&&D?.index===j},m==="dark"?"bg-white":"bg-[#080A0F]")})]})},E.id))},`groupCategory-${H}`))})]}),n("div",{className:N("absolute left-0 top-full z-[999] flex w-full flex-col overflow-hidden border-t border-b-[#E4E5E6] bg-black/70 text-black",{hidden:!(D?.open&&k)}),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),style:{height:`calc(100dvh - ${C?.current?.getBoundingClientRect()?.bottom}px)`},children:[e("div",{ref:S,className:N("relative z-50",{"overflow-hidden":K!==U.Supports}),children:le}),e("div",{className:"flex-1 bg-transparent",onClick:G})]}),o&&n("div",{className:"absolute left-0 top-full z-[999] flex h-dvh w-full bg-black/70",children:[e("div",{className:"absolute w-[272px] bg-white p-4",style:{right:`calc(100% - ${u?.current?.getBoundingClientRect()?.right}px)`,top:"-36px"},children:p?.email?n(Y,{children:[e(y,{html:p?.nick_name||q?.welcome,className:"text-sm font-bold"}),e("div",{className:"mt-2 h-px bg-[#D9D9D9]"}),e("div",{className:"mt-2",children:q?.profiles?.map(g=>e(ee,{className:"py-2",label:g?.title,href:g?.url},g.id))})]}):n(Y,{children:[e(Fe,{className:"absolute -top-2 right-[46px] z-30 text-white"}),e(y,{html:q?.benefits_title,className:"text-sm font-bold leading-[1.4]"}),e("div",{className:"mt-2 flex flex-col gap-1",children:q?.benefits?.map(g=>n("div",{className:"flex items-center gap-[6px]",children:[e(X,{source:g.benefitIcon?.url,className:"size-4",alt:g.benefit,width:16,height:16}),e(y,{html:g.benefit,className:"text-sm font-bold leading-[1.4]"})]},g.id))}),n("div",{className:"mt-4 flex items-center gap-2",children:[e(T,{variant:"secondary",size:"lg",onClick:()=>s?.join?.(),children:e(y,{html:q?.primaryButton||"Join Now",className:"font-bold"})}),e(T,{variant:"primary",size:"lg",onClick:()=>s?.login?.(),children:e(y,{html:q?.secondaryButton||"Log In",className:"font-bold"})})]})]})}),e("div",{className:"flex-1 bg-transparent",onClick:()=>v(!1)})]})]})}),ye=Me.memo(({sidebarCategoriesMetadata:t,seriesMetadata:a})=>{const{buildProps:l,onSidebarNavClick:c}=W(),[d,m]=L([]),[f,s]=L(-1),p=F(null),x=J(()=>{const i=t?.subcategories;if(!i?.length)return;const h=i.findIndex(o=>!!o?.subSubCategories),b=i.findIndex(o=>!o?.subSubCategories),u=i.map((o,v)=>({index:v,open:h===v||b===v}));m(u)},[t]);B(()=>{x()},[x]);const r=M(()=>{const i=t?.subcategories?.[d?.find(b=>b.open)?.index||0],h=a?.find(b=>b?.label?.toLowerCase()===i?.label?.toLowerCase())||{};if(i?.collections){const b=l?.categories?.[i?.collections]||{};return{label:h?.label,isCollection:!0,banner:h?.banner,primary:h?.primary,series:[{products:b?.products}]}}else if(i?.subSubCategories){const b=i?.subSubCategories?.[f],u=a?.find(o=>o?.label?.toLowerCase()===b?.label?.toLowerCase())||{};if(b?.collections){const o=l?.categories?.[b?.collections]||{};return{label:u?.label,isCollection:!0,banner:u?.banner,primary:u?.primary,series:[{products:o?.products}]}}else return u}else return h},[t,d,f,a]),w=J((i,h)=>{if(h?.subSubCategories?.length>0?s(0):s(-1),h?.subSubCategories?.length>0)m(b=>b.map(u=>u.index===i?{...u,open:!0}:{...u,open:!1}));else{const u=t?.subcategories?.findIndex(o=>!!o?.subSubCategories);m(o=>o.map(v=>({...v,open:v.index===i||v.index===u})))}},[t,x]),k=(i,h)=>{m(b=>b.map(u=>u.index===i?{...u,open:!0}:{...u,open:!1})),s(h)};return n(ae,{childClassName:"lg-desktop:gap-12 flex bg-white gap-8",children:[n("div",{className:"lg-desktop:basis-[356px] flex basis-[284px] flex-col gap-4 py-4",style:{userSelect:"none"},ref:p,children:[e("div",{className:"desktop:h-[416px] flex flex-col overflow-y-auto",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:t?.subcategories?.map((i,h)=>{const b=Array.isArray(i?.subSubCategories)&&i?.subSubCategories?.length>0;return n("div",{children:[n("div",{className:N("flex cursor-pointer items-center justify-between",{"bg-[#F5F5F7]":!b&&d?.find(u=>u.index===h)?.open}),onClick:()=>{w(h,i),c?.(i,h)},children:[e(y,{html:i.label,className:"p-4 text-sm font-bold leading-[1.4]"}),b&&e(ne,{className:N("size-4",{"rotate-180":d?.find(u=>u.index===h)?.open})})]}),d?.find(u=>u.index===h)?.open&&e("div",{className:"flex flex-col",children:i.subSubCategories?.map((u,o)=>e(y,{html:u.label,onClick:()=>{k(h,o),c?.(u,o)},className:N("cursor-pointer px-6 py-4 text-sm font-bold leading-[1.4] text-[#6D6D6F] hover:bg-[#F5F5F7]",{"bg-[#F5F5F7]":f===o})},`subSubItem-${h}-${o}`))})]},`subcategoryItem-${h}`)})}),t&&e("div",{className:"flex",children:n("div",{className:"flex flex-col gap-4",children:[t?.primary&&e(T,{as:"a",href:`${t?.primary?.url}?ref=${t?.primary?.label}_shopall`,variant:"primary",size:"lg",className:"lg-desktop:text-base text-sm",children:t?.primary?.label}),t?.secondary&&e(T,{as:"a",href:t?.secondary?.url,variant:"link",size:"lg",className:"lg-desktop:text-base justify-start !p-0 text-sm",children:t?.secondary?.label})]})})]}),n("div",{className:"flex-1 py-4",children:[Reflect.ownKeys(r).length>0&&n("div",{className:"mb-4 flex items-center justify-between",children:[n("div",{className:"flex items-center gap-2",children:[e(y,{html:r?.label,className:"lg-desktop:text-2xl text-xl font-bold leading-[1.4]"}),r?.primary&&!r?.primary?.hide&&e(T,{as:"a",href:`${r?.primary?.url}?ref=${r?.label}_viewmore`,variant:"link",size:"lg",className:"lg-desktop:text-base justify-start !p-0 text-sm font-bold leading-[1.2] no-underline",children:r?.primary?.label})]}),e(I,{href:r?.guide?.url,className:"lg-desktop:text-base text-sm leading-[1.2] text-[#6D6D6F]",children:r?.guide?.label})]}),e("div",{className:"flex h-[426px] flex-col gap-4 overflow-y-auto",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:r?.series?.map((i,h)=>n("div",{children:[i.label&&e(y,{html:i.label,className:"mb-2 text-sm font-bold leading-[1.4] text-[#6D6D6F]"}),n("div",{className:"grid grid-cols-3 gap-4",children:[!!r?.banner&&e(I,{asChild:!r?.banner?.href,href:r?.banner?.href,children:n("div",{className:"[&_img]:hover:duration-600 relative [&_img]:hover:scale-110 [&_img]:hover:transition-all",children:[e(X,{source:r?.banner?.imageUrl,className:"laptop:h-[120px] h-[114px]",imgClassName:"object-cover h-full"}),n("div",{className:"absolute inset-x-0 bottom-0 p-4",children:[e(de,{size:2,html:r?.banner?.title||"Buy in Guide",className:"font-bold text-white"}),e(y,{html:r?.banner?.desc||"20.000mAh",className:"text-sm font-bold text-white"})]})]})}),i.products?.map((b,u)=>e(he,{seriesLabel:r?.label,product:b,isCollection:r?.isCollection},`seriesProductItem-${u}`))]})]},`seriesItem-${h}`))})]})]})}),Oe=({multicolMetadata:t})=>{const a=F(null);return e("div",{ref:a,children:e(ae,{childClassName:"bg-white",className:"h-full",children:e("div",{className:"flex gap-4 py-4",children:t?.map((l,c)=>e("div",{className:"w-1/4",children:e(xe,{item:l})},`multicolItem-${l?.label}-${c}`))})})})},Ie=({supportsMetadata:t,currentNavItemRef:a})=>{const l=F(null),[c,d]=L(null),[m,f]=L(0);B(()=>{if(l?.current){const p=l?.current?.getBoundingClientRect();f(p.height)}},[l]);const s=Ee(()=>{if(a){const p=a.getBoundingClientRect();d(p)}},500);return B(()=>(s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}),[s]),B(()=>{if(a){const p=a.getBoundingClientRect();d(p)}},[a]),e("div",{className:"absolute top-0 h-full overflow-hidden bg-white transition-all duration-500",style:{right:`calc(100% - ${c?.right}px)`,height:m},children:e("div",{ref:l,className:"p-4",children:t?.map(p=>e("div",{className:"py-2",children:e(I,{href:p.url,className:"text-sm font-bold leading-[1.4] no-underline",children:p.label})},p.id))})})},he=({product:t,isCollection:a,position:l,seriesLabel:c})=>{const{buildProps:d,onSeriesProductClick:m}=W();let f=a?t:d?.products?.find(r=>r.handle===t.handle);const s=f?.variants?.find(r=>r.sku===t.sku)||f?.variants?.[0],p=M(()=>`/products/${f?.handle}?variant=${He(s?.id)}`,[f?.handle,s?.id]),x=M(()=>f?.tags?.filter?.(r=>r?.startsWith?.("CLtag"))?.map?.(r=>r?.replace?.("CLtag:",""))?.slice?.(0,2),[f?.tags]);return s?.availableForSale?e(I,{href:p,onClick:r=>{r.preventDefault(),window.open(p),m?.(f,l||0,c)},className:"no-underline hover:text-current",children:n("div",{className:"flex shrink-0 items-center gap-4 bg-[#F5F5F7] px-4 py-3 [&_img]:hover:scale-110",children:[e("div",{className:"shrink-0",children:e(X,{source:`${s?.image?.url||t?.images?.[0]?.url}}`,width:90,height:90,className:"size-[96px]",imgClassName:"object-contain h-full"})}),n("div",{className:"relative",children:[e("div",{className:"flex gap-1",children:Array.isArray(x)&&x?.map((r,w)=>e(y,{as:"p",html:r,className:"text-brand-0 mb-1 inline-block h-[24px] whitespace-nowrap rounded-full border-[1.6px] border-[#00BEFA] px-[6px] text-sm font-bold !leading-[22px]"},w))}),e(y,{className:"lg-desktop:h-[44px] lg-desktop:text-base line-clamp-2 h-[40px] text-sm font-bold leading-[1.4]",html:f?.title||t?.name}),t?.desc&&e(y,{as:"p",html:t?.desc,className:"lg-desktop:text-sm mt-1 line-clamp-1 text-xs font-bold leading-[1.4] text-[#6D6D6F]"})]})]})}):null},xe=({item:t,allPicture:a})=>n(Y,{children:[t?.columns&&n(Y,{children:[e(y,{html:t.label,as:"div",className:"my-2 text-sm font-bold leading-[1.4] text-[#6D6D6F]"}),e("div",{className:"mt-2 flex flex-col",children:t.columns?.map(l=>n("div",{className:"flex items-center gap-1 py-2",children:[e(I,{href:`${l.url}?ref=navMenu`,asChild:!l.url,className:"text-sm font-bold leading-[1.4] no-underline",children:l.label}),l?.badge&&e(y,{as:"p",html:l?.badge||"badge",className:"text-brand-0 h-[24px] rounded-full border-[1.6px] border-[var(--brand-color-0)] px-[6px] text-sm font-bold !leading-[22px]"})]},l.label))})]}),t?.imageUrl&&e("div",{className:N("laptop:h-[280px] desktop:h-[224px] lg-desktop:h-[280px] tablet:max-w-[346px] laptop:max-w-[440px] desktop:w-full relative h-[240px] max-w-[358px] overflow-hidden",{"tablet:max-w-none laptop:max-w-none":a}),children:n(I,{href:`${t.url}?ref=navMenu`,asChild:!t.url,children:[e(X,{source:t.imageUrl,width:404,height:280,className:"size-full",imgClassName:"object-cover h-full hover:scale-105 transition-all duration-300"}),n("div",{className:"absolute bottom-4 left-4 z-10 flex flex-col justify-end no-underline",children:[e(y,{html:t.title,className:N("lg-desktop:text-2xl text-xl font-bold leading-[1.2] text-white",{"text-black":t?.theme==="dark"})}),t.subtitle&&e(y,{html:t.subtitle,className:N("text-sm font-bold leading-[1.4] text-white",{"text-black":t?.theme==="dark"})}),t?.primary?.label&&e(T,{as:"a",href:t?.primary?.url,variant:"link",size:"lg",className:N("mr-auto !p-0 text-sm font-bold leading-[1.4] text-white",{"text-black":t?.theme==="dark"}),children:t?.primary?.label||"more"})]})]})})]}),Ne=te(({data:t,menuData:a,className:l,onPrimaryNavClick:c},d)=>{const m=M(()=>be(t?.categories?.filter(z=>z?.mobileShow)),[t]),{currentMenu:f,setCurrentMenu:s,subSubCategory:p}=W(),[x,r]=L(!1),[w,k]=L(0),[i,h]=L(null),b=F(null);B(()=>{if(b?.current&&x){const z=b?.current?.getBoundingClientRect();k(window?.innerHeight-(z?.bottom||0))}},[x]),se(()=>{ie.fromTo(b.current,{height:0},{height:w,duration:.3})},[w]),B(()=>{document.documentElement.style.overflow=x?"hidden":"auto"},[x]);const u=M(()=>i?.components?.[0]?.blockType,[i]),o=me(Ge,{categoriesItem:i}),v=ue(Ue,i),C=pe(Ke,i),S=M(()=>{switch(u){case U.Sidebar:return e(v,{});case U.Supports:return e(o,{});case U.Multicol:return e(C,{});default:return null}},[u,i,o]),P=J(()=>{r(!1),k(0),s&&s($.Primary)},[r,k,s]),D=M(()=>t?.headerBar?.actions?.filter(z=>z?.mobileShow&&z?.blockType!==_.Profile),[t]),V=M(()=>t?.headerBar?.actions?.find(z=>z?.mobileShow&&z?.blockType===_.Profile)||{},[t]),G=M(()=>{switch(f){case $.Primary:return e(Ve,{actions:D,menuOpen:x,onMenuOpenClose:()=>{r(!1),k(0)},onMenuOpenClick:()=>r(!0)});case $.Secondary:return e(Se,{title:i?.text,onMenuOpenClose:P,onMenuBackClick:()=>s?.($.Primary)});case $.Third:return e(Se,{title:p?.label,onMenuOpenClose:P,onMenuBackClick:()=>s?.($.Secondary)});default:return null}},[x,f,s,i,D,p,P]),K=J((z,A)=>{const R=Array.isArray(m)?Array.isArray(m[z])?m[z][A]:{}:{};h(R),R?.components?.[0]?.blockType===U.Links?R?.components?.[0]?.url&&window.open(R?.components?.[0]?.url):s?.($.Secondary)},[m,s]);return n(ae,{className:N("relative h-[52px]",l),children:[G,x&&n("div",{ref:b,className:"absolute left-0 top-full z-[999] w-full overflow-y-auto border-t border-[#E4E5E6] bg-white text-black",style:{height:w},children:[f===$.Primary?e("div",{className:"pt-4",children:e(Pe,{data:a})}):null,f===$.Primary?e(We,{categories:m,onPrimaryMenuClick:K,onPrimaryNavClick:c,profileAction:V}):S]})]})}),We=({categories:t,onPrimaryMenuClick:a,profileAction:l,onPrimaryNavClick:c})=>{const{onSidebarNavClick:d}=W();return n("div",{className:"flex h-full flex-col justify-between",children:[e("div",{className:"tablet:px-8 laptop:px-16 p-4",children:t?.map((m,f)=>n("div",{className:"",children:[e("div",{className:N("my-2 h-px w-full bg-[#E5E5E7]")}),m?.map((s,p)=>e(ee,{label:s.text,onClick:()=>{const r=(t?.flat()||[])?.findIndex(w=>w?.id===t[f][p]?.id);a(f,p),c?.(s,r)},icon:s.components?.[0]?.icon},s.id))]},`groupCategory-${f}`))}),e(Je,{profileAction:l})]})},Ue=({sidebarCategoriesMetadata:t,seriesMetadata:a})=>{const{currentMenu:l,setCurrentMenu:c,subSubCategory:d,setSubSubCategory:m,setCurrentSeriesMetadata:f,currentSeriesMetadata:s,buildProps:p,onSidebarNavClick:x}=W(),[r,w]=L([]),[k,i]=L([]);B(()=>{t?.subcategories?.length&&w(t?.subcategories?.map((o,v)=>({index:v,open:!1})))},[t]),B(()=>{d?.subSubCategories?.length&&i(d?.subSubCategories?.map((o,v)=>({index:v,open:v===0})))},[d]);const h=J((o,v)=>{c&&c($.Third),m?.(o);const C=a?.find(S=>v!==void 0?o?.subSubCategories?.[v]?.label?.toLowerCase()===S.label?.toLowerCase():o?.label?.toLowerCase()===S.label?.toLowerCase())||{};if(o?.collections){const S=p?.categories?.[o?.collections]||{};f?.({label:C?.label,isCollection:!0,banner:C?.banner,primary:C?.primary,series:[{products:S?.products}]})}else f?.(C)},[a,t,c,m,f]),b=M(()=>a?.find(o=>!!o?.guide)?.guide,[a,t]);return M(()=>{switch(l){case $.Secondary:return n("div",{className:"tablet:px-8 laptop:px-16 tablet:justify-start tablet:gap-16 flex h-full flex-col justify-between p-4",children:[e("div",{children:t?.subcategories?.map((o,v)=>e("div",{children:e(ee,{label:o?.label,active:r.find(C=>C.index===v)?.open,onClick:()=>{h(o),x?.(o,v)}})},`${o.label}-${v}`))}),n("div",{className:"tablet:items-start flex flex-col items-center gap-4",children:[t?.primary&&e(T,{as:"a",href:`${t?.primary?.url}?ref=${t?.primary?.label}_shopall`,variant:"primary",size:"lg",className:"tablet:w-auto w-full text-base",children:t?.primary?.label}),t?.secondary&&e(T,{as:"a",href:t?.secondary?.url,variant:"link",size:"lg",className:"tablet:w-auto tablet:px-0 w-full py-0 text-base",children:t?.secondary?.label})]})]});case $.Third:return n("div",{className:"tablet:px-8 laptop:px-16 p-4",children:[d?.subSubCategories?d?.subSubCategories?.map((o,v)=>{const C=a?.find(P=>P.label.toLowerCase()===o?.label?.toLowerCase())||{};let S={};if(o?.collections){const P=p?.categories?.[o?.collections]||{};S={label:C?.label,isCollection:!0,banner:C?.banner,primary:C?.primary,series:[{products:P?.products}]}}else S=C;return n("div",{children:[Reflect.ownKeys(o).length>0&&e(ke,{matchSeriesMetadata:S,onSubSubCategoryItemClick:()=>{x?.(o,v),i(P=>P.map((D,V)=>({...D,open:V===v?!D.open:D.open})))},expanded:!!k?.find(P=>P.index===v)?.open}),k?.find(P=>P.index===v)?.open&&n(Y,{children:[e(we,{matchSeriesMetadata:S}),S?.primary&&e("div",{className:"my-4 text-center",children:e(T,{as:"a",href:S?.primary?.url,className:"text-base leading-[1.2] no-underline",variant:"secondary",size:"base",children:S?.primary?.label})})]})]},`${o.label}-${v}`)}):n(Y,{children:[Reflect.ownKeys(s).length>0&&e(ke,{matchSeriesMetadata:s}),e(we,{matchSeriesMetadata:s}),s?.primary&&e("div",{className:"my-4 text-center ",children:e(T,{as:"a",href:`${s?.primary?.url}?ref=${s?.label}_viewmore`,variant:"secondary",size:"base",className:"text-base leading-[1.2] no-underline",children:s?.primary?.label})})]}),b&&e(I,{href:b?.url,children:e("div",{className:"mt-4",children:e(y,{html:b?.label,className:"text-sm font-bold leading-[1.2] text-[#6D6D6F]"})})})]});default:return null}},[l,t,c,a,r,k,m,d,f,s])},ke=({matchSeriesMetadata:t,onSubSubCategoryItemClick:a,expanded:l})=>n("div",{className:"tablet:pt-0 flex items-center justify-between py-4",onClick:a,children:[t?.label&&e(y,{html:t?.label,className:"text-sm font-bold leading-[1.4]"}),a&&e(ne,{className:N("size-5",{"rotate-180":l})})]}),we=({matchSeriesMetadata:t})=>e("div",{className:"laptop:gap-3 flex flex-col gap-2",children:!!t?.series?.length&&t?.series?.map((a,l)=>n("div",{children:[a.label&&e(y,{html:a.label,className:"mb-2 text-sm font-bold leading-[1.4] text-[#3D3D3F]"}),n("div",{className:"laptop:grid-cols-3 laptop:gap-4 tablet:grid tablet:grid-cols-2 tablet:gap-3 flex flex-col gap-2",children:[!!t?.banner&&e(I,{asChild:!t?.banner?.href,href:t?.banner?.href,children:n("div",{className:"[&_img]:hover:duration-600 relative [&_img]:hover:scale-110 [&_img]:hover:transition-all",children:[e(X,{source:t?.banner?.imageUrl,className:"laptop:h-[120px] h-[114px]",imgClassName:"object-cover h-full"}),n("div",{className:"absolute inset-x-0 bottom-0 p-4",children:[e(de,{size:2,html:t?.banner?.title||"Buy in Guide",className:N("font-bold text-white",{"text-black":t?.banner?.theme==="dark"})}),e(y,{html:t?.banner?.desc||"20.000mAh",className:N("text-sm font-bold text-white",{"text-black":t?.banner?.theme==="dark"})})]})]})}),a.products?.map((c,d)=>e(he,{position:d,product:c,seriesLabel:t?.label,isCollection:t?.isCollection},`seriesProductItem-${l}-${d}`))]})]},`seriesItem-${l}`))}),Ge=({supportsMetadata:t})=>e("div",{className:"tablet:px-8 laptop:px-16 p-4",children:t?.map(a=>e(ee,{href:a.url,label:a.label,onClick:()=>{}},a.id))}),Ke=({multicolMetadata:t})=>{const a=M(()=>!t?.some(l=>!!l.columns),[t]);return e("div",{className:N("tablet:py-4 tablet:px-8 laptop:px-16 tablet:gap-6 flex flex-col gap-4 p-4",{"tablet:grid tablet:grid-cols-2 tablet:gap-3 laptop:gap-4":a}),children:t?.map((l,c)=>e("div",{children:e(xe,{item:l,allPicture:a})},`multicolItem-${l?.label}-${c}`))})},Je=({profileAction:t})=>{const[a,l]=L(!1),{profile:c,event:d}=W();return n("div",{className:N("tablet:px-8 laptop:px-16 bg-[#F5F5F7] px-4 py-6",{"p-4":a}),children:[n("div",{className:"flex items-center justify-between",onClick:()=>l(!a),children:[n("div",{className:"flex items-center gap-[14px]",children:[e("div",{className:"flex size-[40px] shrink-0 items-center justify-center rounded-full bg-white",children:e(Ae,{})}),e(y,{html:c?.nick_name||t?.welcome,className:"text-base font-bold leading-[1.4]"})]}),!c?.email&&e(ne,{className:N("laptop:size-4 size-5",{"rotate-180":a})})]}),c?.email&&e("div",{className:"mt-4",children:t?.profiles?.map(m=>e(ee,{label:m?.title,href:m?.url},m.id))}),a&&!c?.email&&n("div",{className:"mt-4",children:[e(y,{html:t?.benefits_title,className:"text-sm font-bold leading-[1.4]"}),e("div",{className:"mt-2 flex flex-col gap-1",children:t?.benefits?.map(m=>n("div",{className:"flex items-center gap-[6px]",children:[e(X,{source:m.benefitIcon?.url,className:"size-4",alt:m.benefit,width:16,height:16}),e(y,{html:m.benefit,className:"text-sm font-bold leading-[1.4]"})]},m.id))})]}),!c?.email&&n("div",{className:"mt-4 flex items-center gap-3",children:[e(T,{className:"tablet:flex-none flex-1",variant:"secondary",size:"base",onClick:()=>d?.join?.(),children:e(y,{html:t?.primaryButton||"Join Now",className:"text-sm font-bold leading-[1.4]"})}),e(T,{className:"tablet:flex-none flex-1",variant:"primary",size:"base",onClick:()=>d?.login?.(),children:e(y,{html:t?.secondaryButton||"Log In",className:"text-sm font-bold leading-[1.4]"})})]})]})},Ve=({menuOpen:t,onMenuOpenClose:a,onMenuOpenClick:l,actions:c})=>n("div",{className:"flex h-full items-center justify-between gap-4",children:[e(Ce,{}),n("div",{className:"desktop:gap-6 flex items-center gap-4",children:[e(ce,{actions:c}),t?e(fe,{className:"size-5",onClick:()=>a()}):e($e,{className:"size-5",onClick:()=>l()})]})]}),Ce=()=>{const{payloadData:t,isMobile:a}=W();return e("div",{className:"hover:text-brand-0 cursor-pointer [&>svg]:w-full",onClick:()=>{window.location.href="/"},dangerouslySetInnerHTML:{__html:a?t?.headerBar?.mobileLogo:t?.headerBar?.desktopLogo}})},ce=te(({actions:t,activeStatus:a=!1},l)=>{const{event:c,cartCount:d}=W(),[m,f]=L(null),s=J((p,x)=>{switch(f(x),p?.blockType){case _.Search:c?.search?.();break;case _.Cart:c?.cart?.();break;case _.Profile:c?.profile?.();break;case _.Livestream:c?.livestream?.();break;default:return()=>{}}},[c]);return e("div",{className:"desktop:gap-6 flex items-center gap-4",children:Array.isArray(t)&&t?.map((p,x)=>n("div",{className:"relative",ref:p.blockType===_.Profile?l:null,onClick:()=>s(p,x),children:[e(y,{html:p.icon,className:N("size-5 cursor-pointer",{"text-brand-0":a&&m===x})}),p.blockType===_.Cart&&d>0&&e("div",{className:"bg-brand-0 absolute right-[-12px] top-[calc(100%-16px)] z-[1] flex min-h-5 min-w-5 items-center justify-center rounded-full px-[2px]",children:e(y,{html:d?.toString(),className:"text-sm font-bold leading-[1.2] text-white"})})]},p.id))})}),Se=({title:t,onMenuOpenClose:a,onMenuBackClick:l})=>n("div",{className:"flex h-full items-center gap-3",children:[e(je,{className:"size-5",onClick:()=>l()}),e(y,{html:t,className:"flex-1 text-center text-base font-bold leading-[1.4]"}),e(fe,{className:"size-5",onClick:()=>a()})]}),ee=({label:t,href:a,onClick:l,active:c,icon:d,className:m})=>e("div",{className:N("flex cursor-pointer items-center justify-between py-4",m),onClick:l,children:n(I,{href:a,asChild:!a,className:"flex w-full items-center justify-between no-underline",children:[n("div",{className:"flex items-center gap-4",children:[e(y,{html:t,className:N("text-sm font-bold leading-[1.4]",{underline:d})}),d&&e(y,{html:d})]}),e(Re,{className:N("laptop:size-4 size-5",{"rotate-90":c})})]})});Ne.displayName="MobileNavigation",ce.displayName="Actions",ve.displayName="HeaderNavigation",ge.displayName="DesktopNavigation",ye.displayName="SidebarDropdown";var it=ze(ve);export{it as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|