quirk-ui 0.0.460 → 0.0.461

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),c=require("react"),ie=require("../Modal/index.cjs"),q=require("../../../index-DpYgzTme.cjs"),ce=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-By_lBPb-.cjs"),D=require("../../../external-link-DDShu-48.cjs"),Ne=require("../../../x-Dft9NVe_.cjs"),G=require("../../../createLucideIcon-DpotSgUx.cjs"),$e=require("../../../chevron-down-DfK1XBl3.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),ie=require("../Modal/index.cjs"),q=require("../../../index-DpYgzTme.cjs"),ce=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-By_lBPb-.cjs"),D=require("../../../external-link-DDShu-48.cjs"),Ne=require("../../../x-Dft9NVe_.cjs"),G=require("../../../createLucideIcon-DpotSgUx.cjs"),$e=require("../../../chevron-down-DfK1XBl3.cjs");/**
2
2
  * @license lucide-react v0.488.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -13,4 +13,4 @@
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const _e=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Se=G.createLucideIcon("search",_e),Me={standard:e.styles.standard,transparent:e.styles.transparent},Ee={left:e.styles.left,center:e.styles.center,right:e.styles.right},Ae=({spotlight:a,renderText:b})=>{var t,C,v,p,j,L,x,_,S,M,y;const w=(t=a.image)==null?void 0:t.asset.altText,m=((C=a.callToAction.linkOptions)==null?void 0:C.linkType)==="external";let u="#";return((v=a.callToAction.linkOptions)==null?void 0:v.linkType)==="external"&&((p=a.callToAction.linkOptions)!=null&&p.externalUrl)?u=(j=a.callToAction.linkOptions)==null?void 0:j.externalUrl:((L=a.callToAction.linkOptions)==null?void 0:L.linkType)==="internal"&&((_=(x=a.callToAction.linkOptions)==null?void 0:x.internalUrl)!=null&&_.slug.current)&&(u=`/${(M=(S=a.callToAction.linkOptions)==null?void 0:S.internalUrl)==null?void 0:M.slug.current}`),s.jsxs("div",{className:e.styles.spotlight,children:[a.image&&s.jsx("div",{className:e.styles.imageWrapper,children:s.jsx("img",{src:(a==null?void 0:a.image.imageUrl)??"",alt:w||a.image.asset.description||"Content image",width:600,height:400})}),s.jsxs("div",{className:e.styles.content,children:[a.title&&s.jsx("div",{className:e.styles.title,children:b==null?void 0:b(a.title,e.styles.title)}),a.description&&s.jsx("div",{className:e.styles.description,children:b==null?void 0:b(a.description,e.styles.description)})]}),((y=a.callToAction)==null?void 0:y.linkOptions)&&s.jsx("div",{className:e.styles.actions,children:s.jsx(q.CallToAction,{as:"a",variant:a.callToAction.variant??"primary",href:u,target:m?"_blank":"_self",rel:m?"noopener noreferrer":"","aria-label":a.callToAction.ariaLabel||a.callToAction.label,children:a.callToAction.label})})]})};function Te({renderText:a,title:b,logo:w,items:m,groups:u,utilityItems:t,isSticky:C=!1,showSearch:v=!0,showLocaleSelect:p=!0,alignment:j="right",variant:L="standard",navigationType:x="default",searchComponent:_,localeSelectComponent:S,className:M}){const[y,U]=c.useState(!1),[X,E]=c.useState(!1),[H,f]=c.useState(null),[re,oe]=c.useState(0),[de,ye]=c.useState(!1),[ue,he]=c.useState(null),[o,N]=c.useState([]),[A,B]=c.useState(0),[be,V]=c.useState(null),[$,fe]=c.useState(!1),[T,O]=c.useState("forward"),F=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ie.Modal,{className:e.styles.searchModal,onOpen:()=>E(!0),onClose:()=>E(!1),trigger:s.jsx("button",{title:"Search","aria-label":"Search",className:e.styles.search,children:s.jsx(Se,{size:16})}),content:_})})}),J=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} `,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ie.Modal,{className:e.styles.localeModal,onOpen:()=>E(!0),onClose:()=>E(!1),trigger:s.jsx("button",{title:"Locale Select","aria-label":"Locale Select",role:"menuitem",className:e.styles.locale,children:s.jsx(we,{size:16})}),content:S})})});c.useEffect(()=>{if(typeof window<"u"){const n=()=>{const l=window.innerWidth<768;fe(l)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}},[]);const me=()=>{N([])},xe=n=>{O("forward"),N([{title:n.title,primary:n.primaryItems??[],secondary:n.secondaryItems??[],description:""}])},K=n=>{O("forward"),N(l=>[...l,{title:n.label,primary:n.sublinks??[],secondary:[],description:n.description}])},ve=()=>{O("backward"),N(n=>n.slice(0,-1))},W=c.useRef(null),g=c.useRef(null),I=c.useRef(new Map),je=()=>{U(n=>{const l=!n;return l||(N([]),O("forward"),f(null)),l})},Q=n=>{const l=I.current.get(n);if(l&&g.current){const d=l.getBoundingClientRect(),h=g.current.getBoundingClientRect(),r=d.left-h.left+d.width/2;he(r)}},ke=n=>{f(l=>l===n?null:n)},Y=c.useCallback(n=>{W.current&&!W.current.contains(n.target)&&f(null)},[]),Z=c.useCallback(()=>{P(),typeof window<"u"&&window.innerWidth>768&&(U(!1),f(null),typeof document<"u"&&(document.body.style.overflow=""))},[]),P=c.useCallback(()=>{if(g.current){const n=g.current.getBoundingClientRect().width;oe(n),ye(!0)}},[]);c.useEffect(()=>{const n=typeof window<"u",l=typeof document<"u";return n&&window.addEventListener("resize",Z),l&&document.addEventListener("click",Y),P(),()=>{n&&window.removeEventListener("resize",Z),l&&document.removeEventListener("click",Y)}},[]),c.useEffect(()=>{if(typeof document<"u")return document.body.style.overflow=y?"hidden":"",()=>{document.body.style.overflow=""}},[y]),c.useEffect(()=>{if(typeof document<"u")return document.body.style.overflow=X?"hidden":"",()=>{document.body.style.overflow=""}},[X]);const pe=n=>n.map((l,d)=>{var ee,se,ne,le,ae;const h=`group-${d}`,z=be===d,r=(ee=l.primaryItems)==null?void 0:ee[A??0];return s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{V(d),f(h),Q(h)},onMouseLeave:()=>{V(null),B(0),f(null)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:i=>{I.current.set(h,i)},role:"menuitem","aria-haspopup":"true","aria-expanded":z,"aria-controls":`submenu-${d}`,className:`${e.styles.sublinkToggle} ${z?e.styles.open:""} `,children:[l.title,s.jsx($e.ChevronDown,{size:18,className:e.styles.chevron})]})}),s.jsx("div",{id:`submenu-${d}`,className:`${e.styles.sublinks} ${z?e.styles.show:""}`,role:"menu","aria-label":`${l.title} submenu`,children:s.jsx("div",{children:s.jsxs("div",{className:`${e.styles.sublinksInner} ${l.spotlight?e.styles.withSpotlight:e.styles.withoutSpotlight}`,children:[s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.primaryColumn}`,children:[s.jsx("div",{className:e.styles.linkItem}),(se=l.primaryItems)==null?void 0:se.map((i,k)=>i.href?s.jsxs("a",{href:i.href,className:`${e.styles.link} ${A===k?e.styles.open:""}`,target:i.isExternal?"_blank":"_self",rel:i.isExternal?"noopener noreferrer":void 0,onClick:()=>{var te;f(null),(te=i.onClick)==null||te.call(i)},onMouseEnter:()=>i.sublinks?B(k):null,role:"menuitem",children:[s.jsxs("span",{className:e.styles.linkContent,children:[i.label,i.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:i.subtitle})]}),i.isExternal&&s.jsx(D.ExternalLink,{className:e.styles.newTabIcon,size:16})]},i._key??k):s.jsx("button",{className:`${e.styles.sublinkToggle} ${A===k?e.styles.open:""}`,onMouseEnter:()=>B(k),children:s.jsxs("span",{className:e.styles.linkContent,children:[i.label,i.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:i.subtitle})]})},i._key??k))]}),(r==null?void 0:r.sublinks)&&((ne=r==null?void 0:r.sublinks)==null?void 0:ne.length)>0&&s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.fadeInFromLeft}`,children:[(r==null?void 0:r.description)&&s.jsxs("div",{className:e.styles.sublinksDescription,children:[s.jsx("p",{children:"TEXT HERE"}),a==null?void 0:a(r.description)]}),(r==null?void 0:r.sublinks)&&R(r.sublinks,`${h}-${A}`)]},`${r.label}-${(le=r==null?void 0:r.sublinks)==null?void 0:le.length}`),(l==null?void 0:l.secondaryItems)&&((ae=l==null?void 0:l.secondaryItems)==null?void 0:ae.length)>0&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.secondaryColumn}`,children:l.secondaryItems&&l.secondaryItems.length>0&&R(l.secondaryItems,`${h}-secondary`)}),l.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:s.jsx(Ae,{spotlight:l.spotlight,renderText:a??(i=>String(i))})})]})})})]},l._key??`group-${d}`)}),R=(n,l="")=>n.map(d=>{const h=`${l}/${d.label}`;return s.jsx(e.NavLink,{link:d,path:h,parentPath:l,openPath:H,togglePath:ke,updateTriangleIndicator:Q,setOpenPath:f,renderLinks:R,buttonRefs:I},d._key??h)});return s.jsx("header",{ref:W,className:`${M??""} ${Ee[j]} ${Me[L]} ${e.styles.navbar} ${C?e.styles.sticky:""} ${u&&u.length?e.styles.advanced:e.styles.default}`,"aria-label":"Main navigation",children:s.jsxs("div",{className:`${e.styles.container} ${(!t||t.length===0)&&j!=="center"?e.styles.twoColumn:""}`,children:[w?s.jsx("div",{className:e.styles.logo,children:w}):s.jsx("div",{className:e.styles.title,children:b}),s.jsx("nav",{ref:g,style:{left:j==="center"?`calc(50% - ${re/2}px)`:"0"},className:`${e.styles.nav} ${y?e.styles.open:""} ${de?e.styles.visible:e.styles.hidden}`,id:"main-menu",role:"menubar","aria-label":"Main navigation",children:s.jsxs("div",{className:e.styles.navInner,children:[s.jsx("svg",{style:{left:`${ue}px`},className:`${e.styles.triangle} ${H?e.styles.show:""}`,width:16,height:12,viewBox:"0 0 100 75",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("polygon",{points:"50,5 95,70 5,70",strokeLinejoin:"round",fill:"white",stroke:"white"})}),x==="default"&&m&&s.jsxs("div",{className:e.styles.grid,children:[m&&m.length>0&&R(m),v&&!$&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(F,{})]}),p&&s.jsx(J,{})]}),!$&&x==="advanced"&&u&&s.jsxs("div",{className:e.styles.grid,children:[u.length>0&&pe(u),v&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(F,{})]}),p&&s.jsx(J,{})]}),$&&x==="advanced"&&y&&o.length===0&&u&&s.jsx("div",{className:`${e.styles.mobileMenu}`,children:u.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>xe(n),children:n.title})},n._key??l))}),$&&x==="advanced"&&y&&o.length>0&&s.jsxs("div",{className:`${e.styles.mobileMenuSlide} `,children:[s.jsx("button",{className:e.styles.back,onClick:o.length===1?me:ve,children:s.jsx(q.ChevronLeft,{size:18,"aria-hidden":"true",focusable:"false"})}),o[o.length-1].description&&s.jsx("div",{className:`${e.styles.sublinksDescription} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:a==null?void 0:a(o[o.length-1].description)}),o[o.length-1].primary.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>K(n),children:s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]})}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,role:"menuitem",children:[s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]}),n.isExternal&&s.jsx(D.ExternalLink,{className:e.styles.newTabIcon,size:16})]})},n._key??`primary-${l}`)),o[o.length-1].secondary.length>0&&s.jsx("hr",{className:e.styles.groupDivider}),o[o.length-1].secondary.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>K(n),children:n.label}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,role:"menuitem",children:[n.label,n.isExternal&&s.jsx(D.ExternalLink,{className:e.styles.newTabIcon,size:16})]})},n._key??`secondary-${l}`))]},`stack-${o.length}`)]})}),t&&t.length>0&&s.jsx("nav",{className:e.styles.utility,"aria-label":"Utility navigation",children:s.jsx(ce.ButtonGroup,{children:t.map((n,l)=>s.jsx(q.CallToAction,{as:"a",href:n.href??"/",variant:n.variant??"primary",displayType:n.displayType??"text",imageSrc:n.imageSrc,imageAlt:n.imageAlt,"aria-label":n.ariaLabel??n.label,icon:n.icon,iconAlignment:n.iconAlignment,children:n.imageSrc?s.jsx("img",{src:n.imageSrc,alt:n.imageAlt??n.ariaLabel??n.label}):n.label},n._key||l))})}),t&&t.length>0&&s.jsx("nav",{"aria-label":"Utility navigation",className:`${e.styles.utilityMobile} ${y?e.styles.open:""}`,children:s.jsx(ce.ButtonGroup,{alignment:"center",children:s.jsx(q.CallToAction,{as:"a",href:t[1].href??"/",variant:t[1].variant??"primary",displayType:t[1].displayType??"text",imageSrc:t[1].imageSrc,imageAlt:t[1].imageAlt,"aria-label":t[1].ariaLabel??t[1].label,icon:t[1].icon,iconAlignment:t[1].iconAlignment,children:t[1].imageSrc?s.jsx("img",{src:t[1].imageSrc,"aria-label":t[1].imageAlt??t[1].ariaLabel??t[1].label}):t[1].label})})}),s.jsxs("div",{className:e.styles.mobileButtons,children:[$&&v&&s.jsx(F,{}),s.jsx("button",{className:e.styles.menuToggle,onClick:je,"aria-label":y?"Close menu":"Open menu","aria-expanded":y,"aria-controls":"main-menu",children:y?s.jsx(Ne.X,{size:24}):s.jsx(Le,{size:24})})]})]})})}exports.Navbar=Te;
16
+ */const _e=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Se=G.createLucideIcon("search",_e),Me={standard:e.styles.standard,transparent:e.styles.transparent},Ee={left:e.styles.left,center:e.styles.center,right:e.styles.right},Ae=({spotlight:a,renderText:b})=>{var t,C,j,p,k,L,m,_,S,M,y;const w=(t=a.image)==null?void 0:t.asset.altText,x=((C=a.callToAction.linkOptions)==null?void 0:C.linkType)==="external";let u="#";return((j=a.callToAction.linkOptions)==null?void 0:j.linkType)==="external"&&((p=a.callToAction.linkOptions)!=null&&p.externalUrl)?u=(k=a.callToAction.linkOptions)==null?void 0:k.externalUrl:((L=a.callToAction.linkOptions)==null?void 0:L.linkType)==="internal"&&((_=(m=a.callToAction.linkOptions)==null?void 0:m.internalUrl)!=null&&_.slug.current)&&(u=`/${(M=(S=a.callToAction.linkOptions)==null?void 0:S.internalUrl)==null?void 0:M.slug.current}`),s.jsxs("div",{className:e.styles.spotlight,children:[a.image&&s.jsx("div",{className:e.styles.imageWrapper,children:s.jsx("img",{src:(a==null?void 0:a.image.imageUrl)??"",alt:w||a.image.asset.description||"Content image",width:600,height:400})}),s.jsxs("div",{className:e.styles.content,children:[a.title&&s.jsx("div",{className:e.styles.title,children:b==null?void 0:b(a.title,e.styles.title)}),a.description&&s.jsx("div",{className:e.styles.description,children:b==null?void 0:b(a.description,e.styles.description)})]}),((y=a.callToAction)==null?void 0:y.linkOptions)&&s.jsx("div",{className:e.styles.actions,children:s.jsx(q.CallToAction,{as:"a",variant:a.callToAction.variant??"primary",href:u,target:x?"_blank":"_self",rel:x?"noopener noreferrer":"","aria-label":a.callToAction.ariaLabel||a.callToAction.label,children:a.callToAction.label})})]})};function Te({renderText:a,title:b,logo:w,items:x,groups:u,utilityItems:t,isSticky:C=!1,showSearch:j=!0,showLocaleSelect:p=!0,alignment:k="right",variant:L="standard",navigationType:m="default",searchComponent:_,localeSelectComponent:S,className:M}){const[y,U]=r.useState(!1),[X,E]=r.useState(!1),[H,f]=r.useState(null),[re,oe]=r.useState(0),[de,ye]=r.useState(!1),[ue,he]=r.useState(null),[o,N]=r.useState([]),[A,B]=r.useState(0),[be,V]=r.useState(null),[$,fe]=r.useState(!1),[T,O]=r.useState("forward"),F=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ie.Modal,{className:e.styles.searchModal,onOpen:()=>E(!0),onClose:()=>E(!1),trigger:s.jsx("button",{title:"Search","aria-label":"Search",className:e.styles.search,children:s.jsx(Se,{size:16})}),content:_})})}),J=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} `,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ie.Modal,{className:e.styles.localeModal,onOpen:()=>E(!0),onClose:()=>E(!1),trigger:s.jsx("button",{title:"Locale Select","aria-label":"Locale Select",role:"menuitem",className:e.styles.locale,children:s.jsx(we,{size:16})}),content:S})})});r.useEffect(()=>{if(typeof window<"u"){const n=()=>{const l=window.innerWidth<768;fe(l)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}},[]);const xe=()=>{N([])},me=n=>{O("forward"),N([{title:n.title,primary:n.primaryItems??[],secondary:n.secondaryItems??[],description:""}])},K=n=>{O("forward"),N(l=>[...l,{title:n.label,primary:n.sublinks??[],secondary:[],description:n.description}])},je=()=>{O("backward"),N(n=>n.slice(0,-1))},W=r.useRef(null),g=r.useRef(null),I=r.useRef(new Map),ke=()=>{U(n=>{const l=!n;return l||(N([]),O("forward"),f(null)),l})},Q=n=>{const l=I.current.get(n);if(l&&g.current){const d=l.getBoundingClientRect(),h=g.current.getBoundingClientRect(),c=d.left-h.left+d.width/2;he(c)}},ve=n=>{f(l=>l===n?null:n)},Y=r.useCallback(n=>{W.current&&!W.current.contains(n.target)&&f(null)},[]),Z=r.useCallback(()=>{P(),typeof window<"u"&&window.innerWidth>768&&(U(!1),f(null),typeof document<"u"&&(document.body.style.overflow=""))},[]),P=r.useCallback(()=>{if(g.current){const n=g.current.getBoundingClientRect().width;oe(n),ye(!0)}},[]);r.useEffect(()=>{const n=typeof window<"u",l=typeof document<"u";return n&&window.addEventListener("resize",Z),l&&document.addEventListener("click",Y),P(),()=>{n&&window.removeEventListener("resize",Z),l&&document.removeEventListener("click",Y)}},[]),r.useEffect(()=>{if(typeof document<"u")return document.body.style.overflow=y||X?"hidden":"",()=>{document.body.style.overflow=""}},[y,X]);const pe=n=>n.map((l,d)=>{var ee,se,ne,le,ae;const h=`group-${d}`,z=be===d,c=(ee=l.primaryItems)==null?void 0:ee[A??0];return s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{V(d),f(h),Q(h)},onMouseLeave:()=>{V(null),B(0),f(null)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:i=>{I.current.set(h,i)},role:"menuitem","aria-haspopup":"true","aria-expanded":z,"aria-controls":`submenu-${d}`,className:`${e.styles.sublinkToggle} ${z?e.styles.open:""} `,children:[l.title,s.jsx($e.ChevronDown,{size:18,className:e.styles.chevron})]})}),s.jsx("div",{id:`submenu-${d}`,className:`${e.styles.sublinks} ${z?e.styles.show:""}`,role:"menu","aria-label":`${l.title} submenu`,children:s.jsx("div",{children:s.jsxs("div",{className:`${e.styles.sublinksInner} ${l.spotlight?e.styles.withSpotlight:e.styles.withoutSpotlight}`,children:[s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.primaryColumn}`,children:[s.jsx("div",{className:e.styles.linkItem}),(se=l.primaryItems)==null?void 0:se.map((i,v)=>i.href?s.jsxs("a",{href:i.href,className:`${e.styles.link} ${A===v?e.styles.open:""}`,target:i.isExternal?"_blank":"_self",rel:i.isExternal?"noopener noreferrer":void 0,onClick:()=>{var te;f(null),(te=i.onClick)==null||te.call(i)},onMouseEnter:()=>i.sublinks?B(v):null,role:"menuitem",children:[s.jsxs("span",{className:e.styles.linkContent,children:[i.label,i.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:i.subtitle})]}),i.isExternal&&s.jsx(D.ExternalLink,{className:e.styles.newTabIcon,size:16})]},i._key??v):s.jsx("button",{className:`${e.styles.sublinkToggle} ${A===v?e.styles.open:""}`,onMouseEnter:()=>B(v),children:s.jsxs("span",{className:e.styles.linkContent,children:[i.label,i.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:i.subtitle})]})},i._key??v))]}),(c==null?void 0:c.sublinks)&&((ne=c==null?void 0:c.sublinks)==null?void 0:ne.length)>0&&s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.fadeInFromLeft}`,children:[(c==null?void 0:c.description)&&s.jsxs("div",{className:e.styles.sublinksDescription,children:[s.jsx("p",{children:"TEXT HERE"}),a==null?void 0:a(c.description)]}),(c==null?void 0:c.sublinks)&&R(c.sublinks,`${h}-${A}`)]},`${c.label}-${(le=c==null?void 0:c.sublinks)==null?void 0:le.length}`),(l==null?void 0:l.secondaryItems)&&((ae=l==null?void 0:l.secondaryItems)==null?void 0:ae.length)>0&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.secondaryColumn}`,children:l.secondaryItems&&l.secondaryItems.length>0&&R(l.secondaryItems,`${h}-secondary`)}),l.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:s.jsx(Ae,{spotlight:l.spotlight,renderText:a??(i=>String(i))})})]})})})]},l._key??`group-${d}`)}),R=(n,l="")=>n.map(d=>{const h=`${l}/${d.label}`;return s.jsx(e.NavLink,{link:d,path:h,parentPath:l,openPath:H,togglePath:ve,updateTriangleIndicator:Q,setOpenPath:f,renderLinks:R,buttonRefs:I},d._key??h)});return s.jsx("header",{ref:W,className:`${M??""} ${Ee[k]} ${Me[L]} ${e.styles.navbar} ${C?e.styles.sticky:""} ${u&&u.length?e.styles.advanced:e.styles.default}`,"aria-label":"Main navigation",children:s.jsxs("div",{className:`${e.styles.container} ${(!t||t.length===0)&&k!=="center"?e.styles.twoColumn:""}`,children:[w?s.jsx("div",{className:e.styles.logo,children:w}):s.jsx("div",{className:e.styles.title,children:b}),s.jsx("nav",{ref:g,style:{left:k==="center"?`calc(50% - ${re/2}px)`:"0"},className:`${e.styles.nav} ${y?e.styles.open:""} ${de?e.styles.visible:e.styles.hidden}`,id:"main-menu",role:"menubar","aria-label":"Main navigation",children:s.jsxs("div",{className:e.styles.navInner,children:[s.jsx("svg",{style:{left:`${ue}px`},className:`${e.styles.triangle} ${H?e.styles.show:""}`,width:16,height:12,viewBox:"0 0 100 75",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("polygon",{points:"50,5 95,70 5,70",strokeLinejoin:"round",fill:"white",stroke:"white"})}),m==="default"&&x&&s.jsxs("div",{className:e.styles.grid,children:[x&&x.length>0&&R(x),j&&!$&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(F,{})]}),p&&s.jsx(J,{})]}),!$&&m==="advanced"&&u&&s.jsxs("div",{className:e.styles.grid,children:[u.length>0&&pe(u),j&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(F,{})]}),p&&s.jsx(J,{})]}),$&&m==="advanced"&&y&&o.length===0&&u&&s.jsx("div",{className:`${e.styles.mobileMenu}`,children:u.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>me(n),children:n.title})},n._key??l))}),$&&m==="advanced"&&y&&o.length>0&&s.jsxs("div",{className:`${e.styles.mobileMenuSlide} `,children:[s.jsx("button",{className:e.styles.back,onClick:o.length===1?xe:je,children:s.jsx(q.ChevronLeft,{size:18,"aria-hidden":"true",focusable:"false"})}),o[o.length-1].description&&s.jsx("div",{className:`${e.styles.sublinksDescription} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:a==null?void 0:a(o[o.length-1].description)}),o[o.length-1].primary.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>K(n),children:s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]})}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,role:"menuitem",children:[s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]}),n.isExternal&&s.jsx(D.ExternalLink,{className:e.styles.newTabIcon,size:16})]})},n._key??`primary-${l}`)),o[o.length-1].secondary.length>0&&s.jsx("hr",{className:e.styles.groupDivider}),o[o.length-1].secondary.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${T==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>K(n),children:n.label}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,role:"menuitem",children:[n.label,n.isExternal&&s.jsx(D.ExternalLink,{className:e.styles.newTabIcon,size:16})]})},n._key??`secondary-${l}`))]},`stack-${o.length}`)]})}),t&&t.length>0&&s.jsx("nav",{className:e.styles.utility,"aria-label":"Utility navigation",children:s.jsx(ce.ButtonGroup,{children:t.map((n,l)=>s.jsx(q.CallToAction,{as:"a",href:n.href??"/",variant:n.variant??"primary",displayType:n.displayType??"text",imageSrc:n.imageSrc,imageAlt:n.imageAlt,"aria-label":n.ariaLabel??n.label,icon:n.icon,iconAlignment:n.iconAlignment,children:n.imageSrc?s.jsx("img",{src:n.imageSrc,alt:n.imageAlt??n.ariaLabel??n.label}):n.label},n._key||l))})}),t&&t.length>0&&s.jsx("nav",{"aria-label":"Utility navigation",className:`${e.styles.utilityMobile} ${y?e.styles.open:""}`,children:s.jsx(ce.ButtonGroup,{alignment:"center",children:s.jsx(q.CallToAction,{as:"a",href:t[1].href??"/",variant:t[1].variant??"primary",displayType:t[1].displayType??"text",imageSrc:t[1].imageSrc,imageAlt:t[1].imageAlt,"aria-label":t[1].ariaLabel??t[1].label,icon:t[1].icon,iconAlignment:t[1].iconAlignment,children:t[1].imageSrc?s.jsx("img",{src:t[1].imageSrc,"aria-label":t[1].imageAlt??t[1].ariaLabel??t[1].label}):t[1].label})})}),s.jsxs("div",{className:e.styles.mobileButtons,children:[$&&j&&s.jsx(F,{}),s.jsx("button",{className:e.styles.menuToggle,onClick:ke,"aria-label":y?"Close menu":"Open menu","aria-expanded":y,"aria-controls":"main-menu",children:y?s.jsx(Ne.X,{size:24}):s.jsx(Le,{size:24})})]})]})})}exports.Navbar=Te;
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as c, Fragment as de } from "react/jsx-runtime";
2
- import { useState as f, useEffect as B, useRef as G, useCallback as X } from "react";
2
+ import { useState as f, useEffect as U, useRef as G, useCallback as X } from "react";
3
3
  import { Modal as he } from "../Modal/index.mjs";
4
4
  import { a as Ee, C as V } from "../../../index-CIb65n0z.js";
5
5
  import { ButtonGroup as me } from "../ButtonGroup/index.mjs";
@@ -55,12 +55,12 @@ const Te = [
55
55
  right: e.right
56
56
  }, je = ({
57
57
  spotlight: s,
58
- renderText: b
58
+ renderText: u
59
59
  }) => {
60
- var i, E, N, y, $, A, k, _, S, O, h;
61
- const L = (i = s.image) == null ? void 0 : i.asset.altText, p = ((E = s.callToAction.linkOptions) == null ? void 0 : E.linkType) === "external";
60
+ var i, E, N, w, $, A, p, _, S, O, h;
61
+ const L = (i = s.image) == null ? void 0 : i.asset.altText, k = ((E = s.callToAction.linkOptions) == null ? void 0 : E.linkType) === "external";
62
62
  let m = "#";
63
- return ((N = s.callToAction.linkOptions) == null ? void 0 : N.linkType) === "external" && ((y = s.callToAction.linkOptions) != null && y.externalUrl) ? m = ($ = s.callToAction.linkOptions) == null ? void 0 : $.externalUrl : ((A = s.callToAction.linkOptions) == null ? void 0 : A.linkType) === "internal" && ((_ = (k = s.callToAction.linkOptions) == null ? void 0 : k.internalUrl) != null && _.slug.current) && (m = `/${(O = (S = s.callToAction.linkOptions) == null ? void 0 : S.internalUrl) == null ? void 0 : O.slug.current}`), /* @__PURE__ */ c("div", { className: e.spotlight, children: [
63
+ return ((N = s.callToAction.linkOptions) == null ? void 0 : N.linkType) === "external" && ((w = s.callToAction.linkOptions) != null && w.externalUrl) ? m = ($ = s.callToAction.linkOptions) == null ? void 0 : $.externalUrl : ((A = s.callToAction.linkOptions) == null ? void 0 : A.linkType) === "internal" && ((_ = (p = s.callToAction.linkOptions) == null ? void 0 : p.internalUrl) != null && _.slug.current) && (m = `/${(O = (S = s.callToAction.linkOptions) == null ? void 0 : S.internalUrl) == null ? void 0 : O.slug.current}`), /* @__PURE__ */ c("div", { className: e.spotlight, children: [
64
64
  s.image && /* @__PURE__ */ a("div", { className: e.imageWrapper, children: /* @__PURE__ */ a(
65
65
  "img",
66
66
  {
@@ -71,8 +71,8 @@ const Te = [
71
71
  }
72
72
  ) }),
73
73
  /* @__PURE__ */ c("div", { className: e.content, children: [
74
- s.title && /* @__PURE__ */ a("div", { className: e.title, children: b == null ? void 0 : b(s.title, e.title) }),
75
- s.description && /* @__PURE__ */ a("div", { className: e.description, children: b == null ? void 0 : b(s.description, e.description) })
74
+ s.title && /* @__PURE__ */ a("div", { className: e.title, children: u == null ? void 0 : u(s.title, e.title) }),
75
+ s.description && /* @__PURE__ */ a("div", { className: e.description, children: u == null ? void 0 : u(s.description, e.description) })
76
76
  ] }),
77
77
  ((h = s.callToAction) == null ? void 0 : h.linkOptions) && /* @__PURE__ */ a("div", { className: e.actions, children: /* @__PURE__ */ a(
78
78
  V,
@@ -80,8 +80,8 @@ const Te = [
80
80
  as: "a",
81
81
  variant: s.callToAction.variant ?? "primary",
82
82
  href: m,
83
- target: p ? "_blank" : "_self",
84
- rel: p ? "noopener noreferrer" : "",
83
+ target: k ? "_blank" : "_self",
84
+ rel: k ? "noopener noreferrer" : "",
85
85
  "aria-label": s.callToAction.ariaLabel || s.callToAction.label,
86
86
  children: s.callToAction.label
87
87
  }
@@ -90,24 +90,24 @@ const Te = [
90
90
  };
91
91
  function Qe({
92
92
  renderText: s,
93
- title: b,
93
+ title: u,
94
94
  logo: L,
95
- items: p,
95
+ items: k,
96
96
  groups: m,
97
97
  utilityItems: i,
98
98
  isSticky: E = !1,
99
99
  showSearch: N = !0,
100
- showLocaleSelect: y = !0,
100
+ showLocaleSelect: w = !0,
101
101
  alignment: $ = "right",
102
102
  variant: A = "standard",
103
- navigationType: k = "default",
103
+ navigationType: p = "default",
104
104
  searchComponent: _,
105
105
  localeSelectComponent: S,
106
106
  className: O
107
107
  }) {
108
- const [h, J] = f(!1), [K, z] = f(!1), [Q, v] = f(null), [fe, ue] = f(0), [be, ve] = f(!1), [pe, ke] = f(null), [t, w] = f([]), [x, j] = f(
108
+ const [h, J] = f(!1), [K, z] = f(!1), [Q, v] = f(null), [fe, be] = f(0), [ue, ve] = f(!1), [ke, pe] = f(null), [t, y] = f([]), [x, B] = f(
109
109
  0
110
- ), [Ne, Y] = f(null), [C, $e] = f(!1), [R, T] = f("forward"), D = () => /* @__PURE__ */ a(
110
+ ), [Ne, Y] = f(null), [C, $e] = f(!1), [R, T] = f("forward"), j = () => /* @__PURE__ */ a(
111
111
  "div",
112
112
  {
113
113
  className: `${e.linkWrapper} ${e.parent} ${e.searchWrapper}`,
@@ -149,7 +149,7 @@ function Qe({
149
149
  content: S
150
150
  }
151
151
  ) }) });
152
- B(() => {
152
+ U(() => {
153
153
  if (typeof window < "u") {
154
154
  const n = () => {
155
155
  const l = window.innerWidth < 768;
@@ -159,9 +159,9 @@ function Qe({
159
159
  }
160
160
  }, []);
161
161
  const ge = () => {
162
- w([]);
163
- }, ye = (n) => {
164
- T("forward"), w([
162
+ y([]);
163
+ }, we = (n) => {
164
+ T("forward"), y([
165
165
  {
166
166
  title: n.title,
167
167
  primary: n.primaryItems ?? [],
@@ -170,7 +170,7 @@ function Qe({
170
170
  }
171
171
  ]);
172
172
  }, P = (n) => {
173
- T("forward"), w((l) => [
173
+ T("forward"), y((l) => [
174
174
  ...l,
175
175
  {
176
176
  title: n.label,
@@ -179,66 +179,61 @@ function Qe({
179
179
  description: n.description
180
180
  }
181
181
  ]);
182
- }, we = () => {
183
- T("backward"), w((n) => n.slice(0, -1));
184
- }, I = G(null), M = G(null), U = G(/* @__PURE__ */ new Map()), Ce = () => {
182
+ }, ye = () => {
183
+ T("backward"), y((n) => n.slice(0, -1));
184
+ }, D = G(null), M = G(null), I = G(/* @__PURE__ */ new Map()), Ce = () => {
185
185
  J((n) => {
186
186
  const l = !n;
187
- return l || (w([]), T("forward"), v(null)), l;
187
+ return l || (y([]), T("forward"), v(null)), l;
188
188
  });
189
189
  }, ee = (n) => {
190
- const l = U.current.get(n);
190
+ const l = I.current.get(n);
191
191
  if (l && M.current) {
192
- const d = l.getBoundingClientRect(), u = M.current.getBoundingClientRect(), o = d.left - u.left + d.width / 2;
193
- ke(o);
192
+ const d = l.getBoundingClientRect(), b = M.current.getBoundingClientRect(), o = d.left - b.left + d.width / 2;
193
+ pe(o);
194
194
  }
195
195
  }, Me = (n) => {
196
196
  v((l) => l === n ? null : n);
197
197
  }, ne = X((n) => {
198
- I.current && !I.current.contains(n.target) && v(null);
198
+ D.current && !D.current.contains(n.target) && v(null);
199
199
  }, []), ae = X(() => {
200
200
  le(), typeof window < "u" && window.innerWidth > 768 && (J(!1), v(null), typeof document < "u" && (document.body.style.overflow = ""));
201
201
  }, []), le = X(() => {
202
202
  if (M.current) {
203
203
  const n = M.current.getBoundingClientRect().width;
204
- ue(n), ve(!0);
204
+ be(n), ve(!0);
205
205
  }
206
206
  }, []);
207
- B(() => {
207
+ U(() => {
208
208
  const n = typeof window < "u", l = typeof document < "u";
209
209
  return n && window.addEventListener("resize", ae), l && document.addEventListener("click", ne), le(), () => {
210
210
  n && window.removeEventListener("resize", ae), l && document.removeEventListener("click", ne);
211
211
  };
212
- }, []), B(() => {
212
+ }, []), U(() => {
213
213
  if (typeof document < "u")
214
- return document.body.style.overflow = h ? "hidden" : "", () => {
214
+ return document.body.style.overflow = h || K ? "hidden" : "", () => {
215
215
  document.body.style.overflow = "";
216
216
  };
217
- }, [h]), B(() => {
218
- if (typeof document < "u")
219
- return document.body.style.overflow = K ? "hidden" : "", () => {
220
- document.body.style.overflow = "";
221
- };
222
- }, [K]);
217
+ }, [h, K]);
223
218
  const Le = (n) => n.map((l, d) => {
224
219
  var se, ie, ce, re, oe;
225
- const u = `group-${d}`, F = Ne === d, o = (se = l.primaryItems) == null ? void 0 : se[x ?? 0];
220
+ const b = `group-${d}`, F = Ne === d, o = (se = l.primaryItems) == null ? void 0 : se[x ?? 0];
226
221
  return /* @__PURE__ */ c(
227
222
  "div",
228
223
  {
229
224
  className: `${e.linkWrapper} ${e.parent}`,
230
225
  onMouseEnter: () => {
231
- Y(d), v(u), ee(u);
226
+ Y(d), v(b), ee(b);
232
227
  },
233
228
  onMouseLeave: () => {
234
- Y(null), j(0), v(null);
229
+ Y(null), B(0), v(null);
235
230
  },
236
231
  children: [
237
232
  /* @__PURE__ */ a("div", { className: e.linkItem, children: /* @__PURE__ */ c(
238
233
  "button",
239
234
  {
240
235
  ref: (r) => {
241
- U.current.set(u, r);
236
+ I.current.set(b, r);
242
237
  },
243
238
  role: "menuitem",
244
239
  "aria-haspopup": "true",
@@ -281,7 +276,7 @@ function Qe({
281
276
  var te;
282
277
  v(null), (te = r.onClick) == null || te.call(r);
283
278
  },
284
- onMouseEnter: () => r.sublinks ? j(g) : null,
279
+ onMouseEnter: () => r.sublinks ? B(g) : null,
285
280
  role: "menuitem",
286
281
  children: [
287
282
  /* @__PURE__ */ c("span", { className: e.linkContent, children: [
@@ -302,7 +297,7 @@ function Qe({
302
297
  "button",
303
298
  {
304
299
  className: `${e.sublinkToggle} ${x === g ? e.open : ""}`,
305
- onMouseEnter: () => j(g),
300
+ onMouseEnter: () => B(g),
306
301
  children: /* @__PURE__ */ c("span", { className: e.linkContent, children: [
307
302
  r.label,
308
303
  r.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: r.subtitle })
@@ -325,7 +320,7 @@ function Qe({
325
320
  ] }),
326
321
  (o == null ? void 0 : o.sublinks) && W(
327
322
  o.sublinks,
328
- `${u}-${x}`
323
+ `${b}-${x}`
329
324
  )
330
325
  ]
331
326
  },
@@ -335,7 +330,7 @@ function Qe({
335
330
  "div",
336
331
  {
337
332
  className: `${e.sublinksColumn} ${e.secondaryColumn}`,
338
- children: l.secondaryItems && l.secondaryItems.length > 0 && W(l.secondaryItems, `${u}-secondary`)
333
+ children: l.secondaryItems && l.secondaryItems.length > 0 && W(l.secondaryItems, `${b}-secondary`)
339
334
  }
340
335
  ),
341
336
  l.spotlight && /* @__PURE__ */ a(
@@ -361,27 +356,27 @@ function Qe({
361
356
  l._key ?? `group-${d}`
362
357
  );
363
358
  }), W = (n, l = "") => n.map((d) => {
364
- const u = `${l}/${d.label}`;
359
+ const b = `${l}/${d.label}`;
365
360
  return /* @__PURE__ */ a(
366
361
  Ae,
367
362
  {
368
363
  link: d,
369
- path: u,
364
+ path: b,
370
365
  parentPath: l,
371
366
  openPath: Q,
372
367
  togglePath: Me,
373
368
  updateTriangleIndicator: ee,
374
369
  setOpenPath: v,
375
370
  renderLinks: W,
376
- buttonRefs: U
371
+ buttonRefs: I
377
372
  },
378
- d._key ?? u
373
+ d._key ?? b
379
374
  );
380
375
  });
381
376
  return /* @__PURE__ */ a(
382
377
  "header",
383
378
  {
384
- ref: I,
379
+ ref: D,
385
380
  className: `${O ?? ""} ${Be[$]} ${Fe[A]} ${e.navbar} ${E ? e.sticky : ""} ${m && m.length ? e.advanced : e.default}`,
386
381
  "aria-label": "Main navigation",
387
382
  children: /* @__PURE__ */ c(
@@ -389,7 +384,7 @@ function Qe({
389
384
  {
390
385
  className: `${e.container} ${(!i || i.length === 0) && $ !== "center" ? e.twoColumn : ""}`,
391
386
  children: [
392
- L ? /* @__PURE__ */ a("div", { className: e.logo, children: L }) : /* @__PURE__ */ a("div", { className: e.title, children: b }),
387
+ L ? /* @__PURE__ */ a("div", { className: e.logo, children: L }) : /* @__PURE__ */ a("div", { className: e.title, children: u }),
393
388
  /* @__PURE__ */ a(
394
389
  "nav",
395
390
  {
@@ -397,7 +392,7 @@ function Qe({
397
392
  style: {
398
393
  left: $ === "center" ? `calc(50% - ${fe / 2}px)` : "0"
399
394
  },
400
- className: `${e.nav} ${h ? e.open : ""} ${be ? e.visible : e.hidden}`,
395
+ className: `${e.nav} ${h ? e.open : ""} ${ue ? e.visible : e.hidden}`,
401
396
  id: "main-menu",
402
397
  role: "menubar",
403
398
  "aria-label": "Main navigation",
@@ -405,7 +400,7 @@ function Qe({
405
400
  /* @__PURE__ */ a(
406
401
  "svg",
407
402
  {
408
- style: { left: `${pe}px` },
403
+ style: { left: `${ke}px` },
409
404
  className: `${e.triangle} ${Q ? e.show : ""}`,
410
405
  width: 16,
411
406
  height: 12,
@@ -422,23 +417,23 @@ function Qe({
422
417
  )
423
418
  }
424
419
  ),
425
- k === "default" && p && /* @__PURE__ */ c("div", { className: e.grid, children: [
426
- p && p.length > 0 && W(p),
420
+ p === "default" && k && /* @__PURE__ */ c("div", { className: e.grid, children: [
421
+ k && k.length > 0 && W(k),
427
422
  N && !C && /* @__PURE__ */ c(de, { children: [
428
423
  /* @__PURE__ */ a("span", { className: e.separator }),
429
- /* @__PURE__ */ a(D, {})
424
+ /* @__PURE__ */ a(j, {})
430
425
  ] }),
431
- y && /* @__PURE__ */ a(Z, {})
426
+ w && /* @__PURE__ */ a(Z, {})
432
427
  ] }),
433
- !C && k === "advanced" && m && /* @__PURE__ */ c("div", { className: e.grid, children: [
428
+ !C && p === "advanced" && m && /* @__PURE__ */ c("div", { className: e.grid, children: [
434
429
  m.length > 0 && Le(m),
435
430
  N && /* @__PURE__ */ c(de, { children: [
436
431
  /* @__PURE__ */ a("span", { className: e.separator }),
437
- /* @__PURE__ */ a(D, {})
432
+ /* @__PURE__ */ a(j, {})
438
433
  ] }),
439
- y && /* @__PURE__ */ a(Z, {})
434
+ w && /* @__PURE__ */ a(Z, {})
440
435
  ] }),
441
- C && k === "advanced" && h && t.length === 0 && m && /* @__PURE__ */ a("div", { className: `${e.mobileMenu}`, children: m.map((n, l) => /* @__PURE__ */ a(
436
+ C && p === "advanced" && h && t.length === 0 && m && /* @__PURE__ */ a("div", { className: `${e.mobileMenu}`, children: m.map((n, l) => /* @__PURE__ */ a(
442
437
  "div",
443
438
  {
444
439
  className: `${e.mobileMenuItem} ${R === "forward" ? e.fadeInFromLeft : e.fadeInFromRight}`,
@@ -446,14 +441,14 @@ function Qe({
446
441
  "button",
447
442
  {
448
443
  className: e.sublinkToggle,
449
- onClick: () => ye(n),
444
+ onClick: () => we(n),
450
445
  children: n.title
451
446
  }
452
447
  )
453
448
  },
454
449
  n._key ?? l
455
450
  )) }),
456
- C && k === "advanced" && h && t.length > 0 && /* @__PURE__ */ c(
451
+ C && p === "advanced" && h && t.length > 0 && /* @__PURE__ */ c(
457
452
  "div",
458
453
  {
459
454
  className: `${e.mobileMenuSlide} `,
@@ -462,7 +457,7 @@ function Qe({
462
457
  "button",
463
458
  {
464
459
  className: e.back,
465
- onClick: t.length === 1 ? ge : we,
460
+ onClick: t.length === 1 ? ge : ye,
466
461
  children: /* @__PURE__ */ a(
467
462
  Ee,
468
463
  {
@@ -617,7 +612,7 @@ function Qe({
617
612
  }
618
613
  ),
619
614
  /* @__PURE__ */ c("div", { className: e.mobileButtons, children: [
620
- C && N && /* @__PURE__ */ a(D, {}),
615
+ C && N && /* @__PURE__ */ a(j, {}),
621
616
  /* @__PURE__ */ a(
622
617
  "button",
623
618
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.460",
4
+ "version": "0.0.461",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {