@stackshift-ui/navigation 1.0.0 → 2.0.1

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.
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-KQFO7OZP.mjs";import{Button as b}from"@stackshift-ui/button";import{Container as x}from"@stackshift-ui/container";import{Flex as d}from"@stackshift-ui/flex";import{Image as f}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as h}from"@stackshift-ui/section";import{Text as u}from"@stackshift-ui/text";import v from"react";import{jsx as a,jsxs as n}from"react/jsx-runtime";function N({links:e,primaryButton:l,secondaryButton:i,logo:t}){let[r,s]=v.useState(!1),m=()=>{s(g=>!g)};return n(h,{className:"bg-background",children:[a("nav",{className:"relative py-6",children:a(x,{maxWidth:1e3,children:n(d,{align:"center",justify:"between",children:[a(p,{logo:t}),a(k,{showMenu:m}),a(w,{links:e}),a(R,{primaryButton:l,secondaryButton:i})]})})}),a(F,{menu:r,showMenu:m,links:e,primaryButton:l,secondaryButton:i})]})}function p({logo:e}){var l;return e?a(c,{"aria-label":`Go to ${o(e)==="/"?"home page":o(e)}`,className:"text-3xl font-bold leading-none",href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(f,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function w({links:e}){return e?a("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,i)=>n(v.Fragment,{children:[(l==null?void 0:l.label)&&a(L,{link:l},i),e.length!==i+1?a(M,{}):null]},i))}):null}function L({link:e}){return e?a("li",{children:a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function M(){return a("li",{className:"text-gray-500",children:a("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function R({primaryButton:e,secondaryButton:l}){return n(v.Fragment,{children:[(e==null?void 0:e.label)&&a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&a(b,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function k({showMenu:e}){return a("div",{className:"lg:hidden",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[a("title",{children:"Mobile menu"}),a("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function F({menu:e,showMenu:l,links:i,primaryButton:t,secondaryButton:r}){return a(v.Fragment,{children:n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[a("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[a("div",{className:"flex items-center mb-8",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:a("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),i&&a("ul",{children:i==null?void 0:i.map((s,m)=>a("li",{className:"mb-1",children:a(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m))}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&a(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(r==null?void 0:r.label)&&a(b,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label})]}),a(u,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:a("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}export{N as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-KQFO7OZP.mjs";import x from"react";import{Button as o}from"@stackshift-ui/button";import{Text as g}from"@stackshift-ui/text";import{Link as f}from"@stackshift-ui/link";import{Image as u}from"@stackshift-ui/image";import{Section as c}from"@stackshift-ui/section";import{Flex as b}from"@stackshift-ui/flex";import{jsx as l,jsxs as n}from"react/jsx-runtime";function h({links:e,primaryButton:a,secondaryButton:i,logo:t}){let[r,s]=x.useState(!1),v=()=>{s(d=>!d)};return n(c,{className:"bg-background",children:[n(b,{align:"center",justify:"between",className:"px-6 py-6",children:[l(p,{logo:t}),l(w,{links:e}),l(k,{primaryButton:a,secondaryButton:i}),l(R,{showMenu:v})]}),l(M,{menu:r,showMenu:v,links:e,primaryButton:a,secondaryButton:i})]})}function p({logo:e}){var a;return e?l(f,{"aria-label":`Go to ${m(e)==="/"?"home page":m(e)}`,className:"text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:l(u,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function N(){return l("li",{className:"text-gray-500",children:l("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function w({links:e}){return e?l(b,{children:l("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,i)=>n(x.Fragment,{children:[l(L,{link:a},a._key),e.length!==i+1?l(N,{}):null]},i))})}):null}function L({link:e}){return e!=null&&e.label?l("li",{children:l(o,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function M({menu:e,showMenu:a,links:i,primaryButton:t,secondaryButton:r}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[l("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),n(b,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[l(F,{showMenu:a}),l("div",{className:"w-full",children:i?l("ul",{children:i==null?void 0:i.map((s,v)=>l("li",{className:"mb-1",children:l(o,{as:"link",ariaLabel:s==null?void 0:s.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:s,children:s==null?void 0:s.label})},v))}):null}),n("div",{className:"w-full mt-auto",children:[n(b,{direction:"col",className:"pt-6 space-x-2",children:[t!=null&&t.label?l(o,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}):null,r!=null&&r.label?l(o,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null]}),l(g,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:l("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function R({showMenu:e}){return l("div",{className:"lg:hidden",children:l(o,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[l("title",{children:"Mobile menu"}),l("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function k({primaryButton:e,secondaryButton:a}){return n(b,{gap:4,children:[e!=null&&e.label?l(o,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-gray hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?l(o,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function F({showMenu:e}){return l("div",{className:"flex items-center mb-8",children:l(o,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:l("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})})}export{h as a};
1
+ import{a as m}from"./chunk-KQFO7OZP.mjs";import{Button as o}from"@stackshift-ui/button";import{Flex as b}from"@stackshift-ui/flex";import{Image as g}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as f}from"@stackshift-ui/section";import{Text as u}from"@stackshift-ui/text";import x from"react";import{jsx as l,jsxs as n}from"react/jsx-runtime";function h({links:e,primaryButton:a,secondaryButton:i,logo:t}){let[r,s]=x.useState(!1),v=()=>{s(d=>!d)};return n(f,{className:"bg-background",children:[n(b,{align:"center",justify:"between",className:"px-6 py-6",children:[l(p,{logo:t}),l(w,{links:e}),l(k,{primaryButton:a,secondaryButton:i}),l(R,{showMenu:v})]}),l(M,{menu:r,showMenu:v,links:e,primaryButton:a,secondaryButton:i})]})}function p({logo:e}){var a;return e?l(c,{"aria-label":`Go to ${m(e)==="/"?"home page":m(e)}`,className:"text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:l(g,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function N(){return l("li",{className:"text-gray-500",children:l("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function w({links:e}){return e?l(b,{children:l("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,i)=>n(x.Fragment,{children:[l(L,{link:a},a._key),e.length!==i+1?l(N,{}):null]},i))})}):null}function L({link:e}){return e!=null&&e.label?l("li",{children:l(o,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function M({menu:e,showMenu:a,links:i,primaryButton:t,secondaryButton:r}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[l("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),n(b,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[l(F,{showMenu:a}),l("div",{className:"w-full",children:i?l("ul",{children:i==null?void 0:i.map((s,v)=>l("li",{className:"mb-1",children:l(o,{as:"link",ariaLabel:s==null?void 0:s.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:s,children:s==null?void 0:s.label})},v))}):null}),n("div",{className:"w-full mt-auto",children:[n(b,{direction:"col",className:"pt-6 space-x-2",children:[t!=null&&t.label?l(o,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}):null,r!=null&&r.label?l(o,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null]}),l(u,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:l("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function R({showMenu:e}){return l("div",{className:"lg:hidden",children:l(o,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[l("title",{children:"Mobile menu"}),l("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function k({primaryButton:e,secondaryButton:a}){return n(b,{gap:4,children:[e!=null&&e.label?l(o,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-secondary hover:bg-secondary/50 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?l(o,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function F({showMenu:e}){return l("div",{className:"flex items-center mb-8",children:l(o,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:l("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})})}export{h as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-KQFO7OZP.mjs";import{Button as b}from"@stackshift-ui/button";import{Container as d}from"@stackshift-ui/container";import{Flex as x}from"@stackshift-ui/flex";import{Image as f}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as h}from"@stackshift-ui/section";import{Text as N}from"@stackshift-ui/text";import v from"react";import{jsx as l,jsxs as n}from"react/jsx-runtime";function u({links:e,primaryButton:a,secondaryButton:r,logo:t}){let[i,s]=v.useState(!1),m=()=>{s(g=>!g)};return n(h,{className:"bg-background",children:[l("nav",{className:"relative py-6",children:l(d,{maxWidth:1280,children:n(x,{align:"center",children:[l(p,{links:e}),l(M,{logo:t}),l(k,{primaryButton:a,secondaryButton:r}),l(R,{showMenu:m})]})})}),l(z,{menu:i,showMenu:m,links:e,primaryButton:a,secondaryButton:r})]})}function p({links:e}){return e?l("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,r)=>n(v.Fragment,{children:[(a==null?void 0:a.label)&&l(w,{link:a}),e.length!==r+1?l(L,{}):null]},r))}):null}function w({link:e}){return e?l("li",{children:l(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function L(){return l("li",{className:"text-gray-500",children:l("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function M({logo:e}){var a;return e?l("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:l(c,{"aria-label":`Go to ${o(e)==="/"?"home page":o(e)}`,className:"text-3xl font-bold leading-none",href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:l(f,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function k({primaryButton:e,secondaryButton:a}){return n("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&l(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&l(b,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function R({showMenu:e}){return l("div",{className:"ml-auto lg:hidden",children:l(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[l("title",{children:"Mobile menu"}),l("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function z({menu:e,showMenu:a,links:r,primaryButton:t,secondaryButton:i}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[l("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[l("div",{className:"flex items-center mb-8",children:l(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:l("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),l("div",{children:l("ul",{children:r&&(r==null?void 0:r.map((s,m)=>l("li",{className:"mb-1",children:l(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m)))})}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&l(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(i==null?void 0:i.label)&&l(b,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),l(N,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:l("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}export{u as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-KQFO7OZP.mjs";import{Button as b}from"@stackshift-ui/button";import{Container as d}from"@stackshift-ui/container";import{Flex as x}from"@stackshift-ui/flex";import{Image as f}from"@stackshift-ui/image";import{Link as c}from"@stackshift-ui/link";import{Section as h}from"@stackshift-ui/section";import{Text as N}from"@stackshift-ui/text";import v from"react";import{jsx as a,jsxs as n}from"react/jsx-runtime";function p({links:e,primaryButton:l,secondaryButton:s,logo:t}){let[i,r]=v.useState(!1),m=()=>{r(g=>!g)};return n(h,{className:"bg-background",children:[a("nav",{className:"relative px-6 py-6",children:a(d,{maxWidth:1e3,children:n(x,{align:"center",children:[a(u,{links:e}),a(k,{logo:t}),a(M,{primaryButton:l,secondaryButton:s}),a(R,{showMenu:m})]})})}),a(z,{menu:i,showMenu:m,links:e,primaryButton:l,secondaryButton:s})]})}function u({links:e}){return e?a("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((l,s)=>n(v.Fragment,{children:[(l==null?void 0:l.label)&&a(w,{link:l}),e.length!==s+1&&a(L,{})]},s))}):null}function w({link:e}){return e?a("li",{children:a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function L(){return a("li",{className:"text-gray-500",children:a("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function k({logo:e}){var l;return e?a("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:a(c,{"aria-label":`Go to ${o(e)==="/"?"home page":o(e)}`,className:"text-3xl font-bold leading-none",href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(f,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function M({primaryButton:e,secondaryButton:l}){return n(v.Fragment,{children:[(e==null?void 0:e.label)&&a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secoondary hover:bg-secoondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&a(b,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function R({showMenu:e}){return a("div",{className:"ml-auto lg:hidden",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[a("title",{children:"Mobile menu"}),a("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function z({menu:e,showMenu:l,links:s,primaryButton:t,secondaryButton:i}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[a("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[a("div",{className:"flex items-center mb-8",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:a("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),a("div",{children:a("ul",{children:s&&(s==null?void 0:s.map((r,m)=>a("li",{className:"mb-1",children:a(b,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:r==null?void 0:r.label})},m)))})}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&a(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(i==null?void 0:i.label)&&a(b,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),a(N,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:a("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}export{p as a};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var he=Object.create;var M=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var h=(e,a)=>()=>(e&&(a=e(e=0)),a);var p=(e,a)=>{for(var t in a)M(e,t,{get:a[t],enumerable:!0})},Y=(e,a,t,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of Ne(a))!we.call(e,l)&&l!==t&&M(e,l,{get:()=>a[l],enumerable:!(r=pe(a,l))||r.enumerable});return e};var k=(e,a,t)=>(t=e!=null?he(Le(e)):{},Y(a||!e||!e.__esModule?M(t,"default",{value:e,enumerable:!0}):t,e)),Me=e=>Y(M({},"__esModule",{value:!0}),e);var v,N=h(()=>{"use strict";v=e=>{var a,t,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(a=e==null?void 0:e.internalLink)==null?void 0:a.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"}});var Q={};p(Q,{Navigation_A:()=>F,default:()=>F});function F({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=z.default.useState(!1),m=()=>{o(x=>!x)};return(0,s.jsxs)(O.Section,{className:"bg-background",children:[(0,s.jsxs)(u.Flex,{align:"center",justify:"between",className:"px-6 py-6",children:[(0,s.jsx)(ke,{logo:r}),(0,s.jsx)(ze,{links:e}),(0,s.jsx)(Se,{primaryButton:a,secondaryButton:t}),(0,s.jsx)(We,{showMenu:m})]}),(0,s.jsx)(Ce,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function ke({logo:e}){var a;return e?(0,s.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,s.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function Re(){return(0,s.jsx)("li",{className:"text-gray-500",children:(0,s.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function ze({links:e}){return e?(0,s.jsx)(u.Flex,{children:(0,s.jsx)("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,s.jsxs)(z.default.Fragment,{children:[(0,s.jsx)(Fe,{link:a},a._key),e.length!==t+1?(0,s.jsx)(Re,{}):null]},t))})}):null}function Fe({link:e}){return e!=null&&e.label?(0,s.jsx)("li",{children:(0,s.jsx)(g.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Ce({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,s.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,s.jsxs)(u.Flex,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,s.jsx)(Pe,{showMenu:a}),(0,s.jsx)("div",{className:"w-full",children:t?(0,s.jsx)("ul",{children:t==null?void 0:t.map((o,m)=>(0,s.jsx)("li",{className:"mb-1",children:(0,s.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:o,children:o==null?void 0:o.label})},m))}):null}),(0,s.jsxs)("div",{className:"w-full mt-auto",children:[(0,s.jsxs)(u.Flex,{direction:"col",className:"pt-6 space-x-2",children:[r!=null&&r.label?(0,s.jsx)(g.Button,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null,l!=null&&l.label?(0,s.jsx)(g.Button,{as:"link",link:l,ariaLabel:l==null?void 0:l.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label}):null]}),(0,s.jsx)(E.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,s.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function We({showMenu:e}){return(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,s.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"Mobile menu"}),(0,s.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Se({primaryButton:e,secondaryButton:a}){return(0,s.jsxs)(u.Flex,{gap:4,children:[e!=null&&e.label?(0,s.jsx)(g.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-gray hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?(0,s.jsx)(g.Button,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function Pe({showMenu:e}){return(0,s.jsx)("div",{className:"flex items-center mb-8",children:(0,s.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:(0,s.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})})}var z,g,E,q,J,O,u,s,C=h(()=>{"use strict";z=k(require("react")),g=require("@stackshift-ui/button"),E=require("@stackshift-ui/text"),q=require("@stackshift-ui/link"),J=require("@stackshift-ui/image"),O=require("@stackshift-ui/section"),u=require("@stackshift-ui/flex");N();s=require("react/jsx-runtime")});var ae={};p(ae,{Navigation_B:()=>W,default:()=>W});function W({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=L.default.useState(!1),m=()=>{o(x=>!x)};return(0,b.jsxs)(O.Section,{className:"bg-background",children:[(0,b.jsx)("nav",{className:"relative py-6",children:(0,b.jsx)(B.Container,{maxWidth:1e3,children:(0,b.jsxs)(u.Flex,{align:"center",justify:"between",children:[(0,b.jsx)(Te,{logo:r}),(0,b.jsx)(He,{showMenu:m}),(0,b.jsx)(Ie,{links:e}),(0,b.jsx)($e,{primaryButton:a,secondaryButton:t})]})})}),(0,b.jsx)(Ve,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Te({logo:e}){var a;return e?(0,b.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,b.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function Ie({links:e}){return e?(0,b.jsx)("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-O-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,b.jsxs)(L.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,b.jsx)(Ke,{link:a},t),e.length!==t+1?(0,b.jsx)(_e,{}):null]},t))}):null}function Ke({link:e}){return e?(0,b.jsx)("li",{children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function _e(){return(0,b.jsx)("li",{className:"text-gray-500",children:(0,b.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function $e({primaryButton:e,secondaryButton:a}){return(0,b.jsxs)(L.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function He({showMenu:e}){return(0,b.jsx)("div",{className:"lg:hidden",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,b.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)("title",{children:"Mobile menu"}),(0,b.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Ve({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,b.jsx)(L.default.Fragment,{children:(0,b.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,b.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,b.jsx)("div",{className:"flex items-center mb-8",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,b.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),t&&(0,b.jsx)("ul",{children:t==null?void 0:t.map((o,m)=>(0,b.jsx)("li",{className:"mb-1",children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m))}),(0,b.jsxs)("div",{className:"mt-auto",children:[(0,b.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,b.jsx)(E.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,b.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}var L,g,E,q,J,O,B,u,b,S=h(()=>{"use strict";L=k(require("react")),B=require("@stackshift-ui/container");N();b=require("react/jsx-runtime")});var be={};p(be,{Navigation_C:()=>T,default:()=>T});function T({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=P.default.useState(!1),m=()=>{o(x=>!x)};return(0,i.jsxs)(O.Section,{className:"bg-background",children:[(0,i.jsx)("nav",{className:"relative py-6",children:(0,i.jsx)(B.Container,{maxWidth:1280,children:(0,i.jsxs)(u.Flex,{align:"center",children:[(0,i.jsx)(je,{links:e}),(0,i.jsx)(Ge,{logo:r}),(0,i.jsx)(Ye,{primaryButton:a,secondaryButton:t}),(0,i.jsx)(Ee,{showMenu:m})]})})}),(0,i.jsx)(qe,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function je({links:e}){return e?(0,i.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,i.jsxs)(P.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,i.jsx)(Ae,{link:a}),e.length!==t+1?(0,i.jsx)(De,{}):null]},t))}):null}function Ae({link:e}){return e?(0,i.jsx)("li",{children:(0,i.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function De(){return(0,i.jsx)("li",{className:"text-gray-500",children:(0,i.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ge({logo:e}){var a;return e?(0,i.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-O-1/2 lg:transform",children:(0,i.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function Ye({primaryButton:e,secondaryButton:a}){return(0,i.jsxs)("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ee({showMenu:e}){return(0,i.jsx)("div",{className:"ml-auto lg:hidden",children:(0,i.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,i.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("title",{children:"Mobile menu"}),(0,i.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function qe({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,i.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,i.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,i.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,i.jsx)("div",{className:"flex items-center mb-8",children:(0,i.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,i.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),(0,i.jsx)("div",{children:(0,i.jsx)("ul",{children:t&&(t==null?void 0:t.map((o,m)=>(0,i.jsx)("li",{className:"mb-1",children:(0,i.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m)))})}),(0,i.jsxs)("div",{className:"mt-auto",children:[(0,i.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,i.jsx)(E.Text,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:(0,i.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var P,g,E,q,J,O,B,u,i,I=h(()=>{"use strict";P=k(require("react"));N();i=require("react/jsx-runtime")});var fe={};p(fe,{Navigation_D:()=>K,default:()=>K});function K({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=R.default.useState(!1),m=()=>{o(x=>!x)};return(0,n.jsxs)(O.Section,{className:"bg-background",children:[(0,n.jsx)("nav",{className:"relative px-6 py-6",children:(0,n.jsx)(B.Container,{maxWidth:1e3,children:(0,n.jsxs)(u.Flex,{align:"center",children:[(0,n.jsx)(Je,{links:e}),(0,n.jsx)(Ue,{logo:r}),(0,n.jsx)(Xe,{primaryButton:a,secondaryButton:t}),(0,n.jsx)(Ze,{showMenu:m})]})})}),(0,n.jsx)(ye,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Je({links:e}){return e?(0,n.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((a,t)=>(0,n.jsxs)(R.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,n.jsx)(Oe,{link:a}),e.length!==t+1&&(0,n.jsx)(Qe,{})]},t))}):null}function Oe({link:e}){return e?(0,n.jsx)("li",{children:(0,n.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Qe(){return(0,n.jsx)("li",{className:"text-gray-500",children:(0,n.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ue({logo:e}){var a;return e?(0,n.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-O-1/2 lg:transform",children:(0,n.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function Xe({primaryButton:e,secondaryButton:a}){return(0,n.jsxs)(R.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ze({showMenu:e}){return(0,n.jsx)("div",{className:"ml-auto lg:hidden",children:(0,n.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,n.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Mobile menu"}),(0,n.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function ye({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,n.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,n.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,n.jsx)("div",{className:"flex items-center mb-8",children:(0,n.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,n.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),(0,n.jsx)("div",{children:(0,n.jsx)("ul",{children:t&&(t==null?void 0:t.map((o,m)=>(0,n.jsx)("li",{className:"mb-1",children:(0,n.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m)))})}),(0,n.jsxs)("div",{className:"mt-auto",children:[(0,n.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,n.jsx)(E.Text,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:(0,n.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var R,g,E,q,J,O,B,u,n,_=h(()=>{"use strict";R=k(require("react"));N();n=require("react/jsx-runtime")});var ea={};p(ea,{Navigation:()=>ce,Navigation_A:()=>F,Navigation_B:()=>W,Navigation_C:()=>T,Navigation_D:()=>K});module.exports=Me(ea);var w=require("react"),ue=require("react/jsx-runtime"),$={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(C(),Q))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(S(),ae))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>(I(),be))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(_(),fe)))},Be="Navigation",ce=({data:e})=>{var l,o,m,x,H,V,j,A,D,G;let a=e==null?void 0:e.variant,t=a&&($==null?void 0:$[a]),r={logo:(o=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?o:void 0,links:(x=(m=e==null?void 0:e.variants)==null?void 0:m.routes)!=null?x:void 0,primaryButton:(V=(H=e==null?void 0:e.variants)==null?void 0:H.primaryButton)!=null?V:void 0,secondaryButton:(A=(j=e==null?void 0:e.variants)==null?void 0:j.secondaryButton)!=null?A:void 0,banner:(G=(D=e==null?void 0:e.variants)==null?void 0:D.banner)!=null?G:void 0};return t?(0,ue.jsx)(t,{...r}):null};ce.displayName=Be;C();S();I();_();0&&(module.exports={Navigation,Navigation_A,Navigation_B,Navigation_C,Navigation_D});
2
+ "use strict";var he=Object.create;var M=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var h=(e,a)=>()=>(e&&(a=e(e=0)),a);var p=(e,a)=>{for(var t in a)M(e,t,{get:a[t],enumerable:!0})},Y=(e,a,t,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of Ne(a))!we.call(e,l)&&l!==t&&M(e,l,{get:()=>a[l],enumerable:!(r=pe(a,l))||r.enumerable});return e};var k=(e,a,t)=>(t=e!=null?he(Le(e)):{},Y(a||!e||!e.__esModule?M(t,"default",{value:e,enumerable:!0}):t,e)),Me=e=>Y(M({},"__esModule",{value:!0}),e);var v,N=h(()=>{"use strict";v=e=>{var a,t,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(a=e==null?void 0:e.internalLink)==null?void 0:a.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"}});var Q={};p(Q,{Navigation_A:()=>F,default:()=>F});function F({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,b]=z.default.useState(!1),m=()=>{b(x=>!x)};return(0,s.jsxs)(J.Section,{className:"bg-background",children:[(0,s.jsxs)(u.Flex,{align:"center",justify:"between",className:"px-6 py-6",children:[(0,s.jsx)(ke,{logo:r}),(0,s.jsx)(ze,{links:e}),(0,s.jsx)(Se,{primaryButton:a,secondaryButton:t}),(0,s.jsx)(We,{showMenu:m})]}),(0,s.jsx)(Ce,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function ke({logo:e}){var a;return e?(0,s.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,s.jsx)(E.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function Re(){return(0,s.jsx)("li",{className:"text-gray-500",children:(0,s.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function ze({links:e}){return e?(0,s.jsx)(u.Flex,{children:(0,s.jsx)("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,s.jsxs)(z.default.Fragment,{children:[(0,s.jsx)(Fe,{link:a},a._key),e.length!==t+1?(0,s.jsx)(Re,{}):null]},t))})}):null}function Fe({link:e}){return e!=null&&e.label?(0,s.jsx)("li",{children:(0,s.jsx)(d.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Ce({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,s.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,s.jsxs)(u.Flex,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-q-auto bg-white border-r",children:[(0,s.jsx)(Pe,{showMenu:a}),(0,s.jsx)("div",{className:"w-full",children:t?(0,s.jsx)("ul",{children:t==null?void 0:t.map((b,m)=>(0,s.jsx)("li",{className:"mb-1",children:(0,s.jsx)(d.Button,{as:"link",ariaLabel:b==null?void 0:b.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:b,children:b==null?void 0:b.label})},m))}):null}),(0,s.jsxs)("div",{className:"w-full mt-auto",children:[(0,s.jsxs)(u.Flex,{direction:"col",className:"pt-6 space-x-2",children:[r!=null&&r.label?(0,s.jsx)(d.Button,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null,l!=null&&l.label?(0,s.jsx)(d.Button,{as:"link",link:l,ariaLabel:l==null?void 0:l.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label}):null]}),(0,s.jsx)(O.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,s.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function We({showMenu:e}){return(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)(d.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,s.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"Mobile menu"}),(0,s.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Se({primaryButton:e,secondaryButton:a}){return(0,s.jsxs)(u.Flex,{gap:4,children:[e!=null&&e.label?(0,s.jsx)(d.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-secondary hover:bg-secondary/50 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?(0,s.jsx)(d.Button,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function Pe({showMenu:e}){return(0,s.jsx)("div",{className:"flex items-center mb-8",children:(0,s.jsx)(d.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:(0,s.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})})}var d,u,E,q,J,O,z,s,C=h(()=>{"use strict";d=require("@stackshift-ui/button"),u=require("@stackshift-ui/flex"),E=require("@stackshift-ui/image"),q=require("@stackshift-ui/link"),J=require("@stackshift-ui/section"),O=require("@stackshift-ui/text"),z=k(require("react"));N();s=require("react/jsx-runtime")});var ae={};p(ae,{Navigation_B:()=>W,default:()=>W});function W({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,b]=L.default.useState(!1),m=()=>{b(x=>!x)};return(0,o.jsxs)(J.Section,{className:"bg-background",children:[(0,o.jsx)("nav",{className:"relative py-6",children:(0,o.jsx)(U.Container,{maxWidth:1e3,children:(0,o.jsxs)(u.Flex,{align:"center",justify:"between",children:[(0,o.jsx)(Te,{logo:r}),(0,o.jsx)(He,{showMenu:m}),(0,o.jsx)(Ie,{links:e}),(0,o.jsx)($e,{primaryButton:a,secondaryButton:t})]})})}),(0,o.jsx)(Ve,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Te({logo:e}){var a;return e?(0,o.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,o.jsx)(E.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function Ie({links:e}){return e?(0,o.jsx)("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-q-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,o.jsxs)(L.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,o.jsx)(Ke,{link:a},t),e.length!==t+1?(0,o.jsx)(_e,{}):null]},t))}):null}function Ke({link:e}){return e?(0,o.jsx)("li",{children:(0,o.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function _e(){return(0,o.jsx)("li",{className:"text-gray-500",children:(0,o.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function $e({primaryButton:e,secondaryButton:a}){return(0,o.jsxs)(L.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,o.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,o.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function He({showMenu:e}){return(0,o.jsx)("div",{className:"lg:hidden",children:(0,o.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,o.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"Mobile menu"}),(0,o.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Ve({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,o.jsx)(L.default.Fragment,{children:(0,o.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,o.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,o.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-q-auto bg-white border-r",children:[(0,o.jsx)("div",{className:"flex items-center mb-8",children:(0,o.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,o.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),t&&(0,o.jsx)("ul",{children:t==null?void 0:t.map((b,m)=>(0,o.jsx)("li",{className:"mb-1",children:(0,o.jsx)(g.Button,{as:"link",ariaLabel:b==null?void 0:b.label,link:b,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:b==null?void 0:b.label})},m))}),(0,o.jsxs)("div",{className:"mt-auto",children:[(0,o.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,o.jsx)(g.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,o.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,o.jsx)(O.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,o.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}var g,U,u,E,q,J,O,L,o,S=h(()=>{"use strict";g=require("@stackshift-ui/button"),U=require("@stackshift-ui/container"),L=k(require("react"));N();o=require("react/jsx-runtime")});var oe={};p(oe,{Navigation_C:()=>T,default:()=>T});function T({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,b]=P.default.useState(!1),m=()=>{b(x=>!x)};return(0,i.jsxs)(J.Section,{className:"bg-background",children:[(0,i.jsx)("nav",{className:"relative py-6",children:(0,i.jsx)(U.Container,{maxWidth:1280,children:(0,i.jsxs)(u.Flex,{align:"center",children:[(0,i.jsx)(je,{links:e}),(0,i.jsx)(Ge,{logo:r}),(0,i.jsx)(Ye,{primaryButton:a,secondaryButton:t}),(0,i.jsx)(Ee,{showMenu:m})]})})}),(0,i.jsx)(qe,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function je({links:e}){return e?(0,i.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,i.jsxs)(P.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,i.jsx)(Ae,{link:a}),e.length!==t+1?(0,i.jsx)(De,{}):null]},t))}):null}function Ae({link:e}){return e?(0,i.jsx)("li",{children:(0,i.jsx)(f.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function De(){return(0,i.jsx)("li",{className:"text-gray-500",children:(0,i.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ge({logo:e}){var a;return e?(0,i.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-q-1/2 lg:transform",children:(0,i.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(E.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function Ye({primaryButton:e,secondaryButton:a}){return(0,i.jsxs)("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&(0,i.jsx)(f.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,i.jsx)(f.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ee({showMenu:e}){return(0,i.jsx)("div",{className:"ml-auto lg:hidden",children:(0,i.jsx)(f.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,i.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("title",{children:"Mobile menu"}),(0,i.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function qe({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,i.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,i.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,i.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-q-auto bg-white border-r",children:[(0,i.jsx)("div",{className:"flex items-center mb-8",children:(0,i.jsx)(f.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,i.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,i.jsx)("div",{children:(0,i.jsx)("ul",{children:t&&(t==null?void 0:t.map((b,m)=>(0,i.jsx)("li",{className:"mb-1",children:(0,i.jsx)(f.Button,{as:"link",ariaLabel:b==null?void 0:b.label,link:b,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:b==null?void 0:b.label})},m)))})}),(0,i.jsxs)("div",{className:"mt-auto",children:[(0,i.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,i.jsx)(f.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,i.jsx)(f.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,i.jsx)(O.Text,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:(0,i.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var f,U,u,E,q,J,O,P,i,I=h(()=>{"use strict";f=require("@stackshift-ui/button"),P=k(require("react"));N();i=require("react/jsx-runtime")});var fe={};p(fe,{Navigation_D:()=>K,default:()=>K});function K({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,b]=R.default.useState(!1),m=()=>{b(x=>!x)};return(0,n.jsxs)(J.Section,{className:"bg-background",children:[(0,n.jsx)("nav",{className:"relative px-6 py-6",children:(0,n.jsx)(U.Container,{maxWidth:1e3,children:(0,n.jsxs)(u.Flex,{align:"center",children:[(0,n.jsx)(Je,{links:e}),(0,n.jsx)(Ue,{logo:r}),(0,n.jsx)(Xe,{primaryButton:a,secondaryButton:t}),(0,n.jsx)(Ze,{showMenu:m})]})})}),(0,n.jsx)(ye,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Je({links:e}){return e?(0,n.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((a,t)=>(0,n.jsxs)(R.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,n.jsx)(Oe,{link:a}),e.length!==t+1&&(0,n.jsx)(Qe,{})]},t))}):null}function Oe({link:e}){return e?(0,n.jsx)("li",{children:(0,n.jsx)(c.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Qe(){return(0,n.jsx)("li",{className:"text-gray-500",children:(0,n.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ue({logo:e}){var a;return e?(0,n.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-q-1/2 lg:transform",children:(0,n.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(E.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function Xe({primaryButton:e,secondaryButton:a}){return(0,n.jsxs)(R.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secoondary hover:bg-secoondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ze({showMenu:e}){return(0,n.jsx)("div",{className:"ml-auto lg:hidden",children:(0,n.jsx)(c.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,n.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Mobile menu"}),(0,n.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function ye({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,n.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,n.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-q-auto bg-white border-r",children:[(0,n.jsx)("div",{className:"flex items-center mb-8",children:(0,n.jsx)(c.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,n.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,n.jsx)("div",{children:(0,n.jsx)("ul",{children:t&&(t==null?void 0:t.map((b,m)=>(0,n.jsx)("li",{className:"mb-1",children:(0,n.jsx)(c.Button,{as:"link",ariaLabel:b==null?void 0:b.label,link:b,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:b==null?void 0:b.label})},m)))})}),(0,n.jsxs)("div",{className:"mt-auto",children:[(0,n.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,n.jsx)(O.Text,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:(0,n.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var c,U,u,E,q,J,O,R,n,_=h(()=>{"use strict";c=require("@stackshift-ui/button"),R=k(require("react"));N();n=require("react/jsx-runtime")});var ea={};p(ea,{Navigation:()=>ce,Navigation_A:()=>F,Navigation_B:()=>W,Navigation_C:()=>T,Navigation_D:()=>K});module.exports=Me(ea);var w=require("react"),ue=require("react/jsx-runtime"),$={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(C(),Q))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(S(),ae))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>(I(),oe))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(_(),fe)))},Be="Navigation",ce=({data:e})=>{var l,b,m,x,H,V,j,A,D,G;let a=e==null?void 0:e.variant,t=a&&($==null?void 0:$[a]),r={logo:(b=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?b:void 0,links:(x=(m=e==null?void 0:e.variants)==null?void 0:m.routes)!=null?x:void 0,primaryButton:(V=(H=e==null?void 0:e.variants)==null?void 0:H.primaryButton)!=null?V:void 0,secondaryButton:(A=(j=e==null?void 0:e.variants)==null?void 0:j.secondaryButton)!=null?A:void 0,banner:(G=(D=e==null?void 0:e.variants)==null?void 0:D.banner)!=null?G:void 0};return t?(0,ue.jsx)(t,{...r}):null};ce.displayName=Be;C();S();I();_();0&&(module.exports={Navigation,Navigation_A,Navigation_B,Navigation_C,Navigation_D});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as f}from"./chunk-3DFREOSA.mjs";import{a as o}from"./chunk-6Y7ZEVQW.mjs";import{a as r}from"./chunk-52BNTFA3.mjs";import{a as e}from"./chunk-YFDMEEFC.mjs";import{a as t}from"./chunk-INJUL3VL.mjs";import"./chunk-KQFO7OZP.mjs";export{f as Navigation,o as Navigation_A,r as Navigation_B,e as Navigation_C,t as Navigation_D};
2
+ "use strict";import{a as f}from"./chunk-VBF2K5RT.mjs";import{a as o}from"./chunk-6VK3JWSX.mjs";import{a as r}from"./chunk-23NHI3AW.mjs";import{a as e}from"./chunk-FNK6EXKZ.mjs";import{a as t}from"./chunk-OZI66SXQ.mjs";import"./chunk-KQFO7OZP.mjs";export{f as Navigation,o as Navigation_A,r as Navigation_B,e as Navigation_C,t as Navigation_D};
@@ -1 +1 @@
1
- "use strict";var he=Object.create;var M=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var h=(e,a)=>()=>(e&&(a=e(e=0)),a);var p=(e,a)=>{for(var t in a)M(e,t,{get:a[t],enumerable:!0})},_=(e,a,t,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of Ne(a))!we.call(e,l)&&l!==t&&M(e,l,{get:()=>a[l],enumerable:!(i=pe(a,l))||i.enumerable});return e};var k=(e,a,t)=>(t=e!=null?he(Le(e)):{},_(a||!e||!e.__esModule?M(t,"default",{value:e,enumerable:!0}):t,e)),Me=e=>_(M({},"__esModule",{value:!0}),e);var v,N=h(()=>{"use strict";v=e=>{var a,t,i;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(a=e==null?void 0:e.internalLink)==null?void 0:a.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"}});var D={};p(D,{Navigation_A:()=>A,default:()=>A});function A({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,m]=z.default.useState(!1),o=()=>{m(x=>!x)};return(0,s.jsxs)(j.Section,{className:"bg-background",children:[(0,s.jsxs)(u.Flex,{align:"center",justify:"between",className:"px-6 py-6",children:[(0,s.jsx)(ke,{logo:i}),(0,s.jsx)(ze,{links:e}),(0,s.jsx)(Se,{primaryButton:a,secondaryButton:t}),(0,s.jsx)(We,{showMenu:o})]}),(0,s.jsx)(Ce,{menu:l,showMenu:o,links:e,primaryButton:a,secondaryButton:t})]})}function ke({logo:e}){var a;return e?(0,s.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,s.jsx)(V.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function Re(){return(0,s.jsx)("li",{className:"text-gray-500",children:(0,s.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function ze({links:e}){return e?(0,s.jsx)(u.Flex,{children:(0,s.jsx)("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,s.jsxs)(z.default.Fragment,{children:[(0,s.jsx)(Fe,{link:a},a._key),e.length!==t+1?(0,s.jsx)(Re,{}):null]},t))})}):null}function Fe({link:e}){return e!=null&&e.label?(0,s.jsx)("li",{children:(0,s.jsx)(g.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Ce({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,s.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,s.jsxs)(u.Flex,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-$-auto bg-white border-r",children:[(0,s.jsx)(Pe,{showMenu:a}),(0,s.jsx)("div",{className:"w-full",children:t?(0,s.jsx)("ul",{children:t==null?void 0:t.map((m,o)=>(0,s.jsx)("li",{className:"mb-1",children:(0,s.jsx)(g.Button,{as:"link",ariaLabel:m==null?void 0:m.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:m,children:m==null?void 0:m.label})},o))}):null}),(0,s.jsxs)("div",{className:"w-full mt-auto",children:[(0,s.jsxs)(u.Flex,{direction:"col",className:"pt-6 space-x-2",children:[i!=null&&i.label?(0,s.jsx)(g.Button,{as:"link",link:i,ariaLabel:i==null?void 0:i.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}):null,l!=null&&l.label?(0,s.jsx)(g.Button,{as:"link",link:l,ariaLabel:l==null?void 0:l.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label}):null]}),(0,s.jsx)($.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,s.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function We({showMenu:e}){return(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,s.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"Mobile menu"}),(0,s.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Se({primaryButton:e,secondaryButton:a}){return(0,s.jsxs)(u.Flex,{gap:4,children:[e!=null&&e.label?(0,s.jsx)(g.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-gray hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?(0,s.jsx)(g.Button,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function Pe({showMenu:e}){return(0,s.jsx)("div",{className:"flex items-center mb-8",children:(0,s.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:(0,s.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})})}var z,g,$,H,V,j,u,s,G=h(()=>{"use strict";z=k(require("react")),g=require("@stackshift-ui/button"),$=require("@stackshift-ui/text"),H=require("@stackshift-ui/link"),V=require("@stackshift-ui/image"),j=require("@stackshift-ui/section"),u=require("@stackshift-ui/flex");N();s=require("react/jsx-runtime")});var X={};p(X,{Navigation_B:()=>U,default:()=>U});function U({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,m]=L.default.useState(!1),o=()=>{m(x=>!x)};return(0,b.jsxs)(j.Section,{className:"bg-background",children:[(0,b.jsx)("nav",{className:"relative py-6",children:(0,b.jsx)(O.Container,{maxWidth:1e3,children:(0,b.jsxs)(u.Flex,{align:"center",justify:"between",children:[(0,b.jsx)(Te,{logo:i}),(0,b.jsx)(He,{showMenu:o}),(0,b.jsx)(Ie,{links:e}),(0,b.jsx)($e,{primaryButton:a,secondaryButton:t})]})})}),(0,b.jsx)(Ve,{menu:l,showMenu:o,links:e,primaryButton:a,secondaryButton:t})]})}function Te({logo:e}){var a;return e?(0,b.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,b.jsx)(V.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function Ie({links:e}){return e?(0,b.jsx)("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-$-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,b.jsxs)(L.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,b.jsx)(Ke,{link:a},t),e.length!==t+1?(0,b.jsx)(_e,{}):null]},t))}):null}function Ke({link:e}){return e?(0,b.jsx)("li",{children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function _e(){return(0,b.jsx)("li",{className:"text-gray-500",children:(0,b.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function $e({primaryButton:e,secondaryButton:a}){return(0,b.jsxs)(L.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function He({showMenu:e}){return(0,b.jsx)("div",{className:"lg:hidden",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,b.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)("title",{children:"Mobile menu"}),(0,b.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Ve({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,b.jsx)(L.default.Fragment,{children:(0,b.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,b.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-$-auto bg-white border-r",children:[(0,b.jsx)("div",{className:"flex items-center mb-8",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,b.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),t&&(0,b.jsx)("ul",{children:t==null?void 0:t.map((m,o)=>(0,b.jsx)("li",{className:"mb-1",children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:m==null?void 0:m.label,link:m,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:m==null?void 0:m.label})},o))}),(0,b.jsxs)("div",{className:"mt-auto",children:[(0,b.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(l==null?void 0:l.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,b.jsx)($.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,b.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}var L,g,$,H,V,j,O,u,b,Z=h(()=>{"use strict";L=k(require("react")),O=require("@stackshift-ui/container");N();b=require("react/jsx-runtime")});var re={};p(re,{Navigation_C:()=>ie,default:()=>ie});function ie({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,m]=F.default.useState(!1),o=()=>{m(x=>!x)};return(0,r.jsxs)(j.Section,{className:"bg-background",children:[(0,r.jsx)("nav",{className:"relative py-6",children:(0,r.jsx)(O.Container,{maxWidth:1280,children:(0,r.jsxs)(u.Flex,{align:"center",children:[(0,r.jsx)(je,{links:e}),(0,r.jsx)(Ge,{logo:i}),(0,r.jsx)(Ye,{primaryButton:a,secondaryButton:t}),(0,r.jsx)(Ee,{showMenu:o})]})})}),(0,r.jsx)(qe,{menu:l,showMenu:o,links:e,primaryButton:a,secondaryButton:t})]})}function je({links:e}){return e?(0,r.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,r.jsxs)(F.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,r.jsx)(Ae,{link:a}),e.length!==t+1?(0,r.jsx)(De,{}):null]},t))}):null}function Ae({link:e}){return e?(0,r.jsx)("li",{children:(0,r.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function De(){return(0,r.jsx)("li",{className:"text-gray-500",children:(0,r.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ge({logo:e}){var a;return e?(0,r.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-$-1/2 lg:transform",children:(0,r.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,r.jsx)(V.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function Ye({primaryButton:e,secondaryButton:a}){return(0,r.jsxs)("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&(0,r.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,r.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ee({showMenu:e}){return(0,r.jsx)("div",{className:"ml-auto lg:hidden",children:(0,r.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,r.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:"Mobile menu"}),(0,r.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function qe({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,r.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,r.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-$-auto bg-white border-r",children:[(0,r.jsx)("div",{className:"flex items-center mb-8",children:(0,r.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,r.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),(0,r.jsx)("div",{children:(0,r.jsx)("ul",{children:t&&(t==null?void 0:t.map((m,o)=>(0,r.jsx)("li",{className:"mb-1",children:(0,r.jsx)(g.Button,{as:"link",ariaLabel:m==null?void 0:m.label,link:m,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:m==null?void 0:m.label})},o)))})}),(0,r.jsxs)("div",{className:"mt-auto",children:[(0,r.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,r.jsx)(g.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(l==null?void 0:l.label)&&(0,r.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,r.jsx)($.Text,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:(0,r.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var F,g,$,H,V,j,O,u,r,ne=h(()=>{"use strict";F=k(require("react"));N();r=require("react/jsx-runtime")});var de={};p(de,{Navigation_D:()=>ge,default:()=>ge});function ge({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,m]=R.default.useState(!1),o=()=>{m(x=>!x)};return(0,n.jsxs)(j.Section,{className:"bg-background",children:[(0,n.jsx)("nav",{className:"relative px-6 py-6",children:(0,n.jsx)(O.Container,{maxWidth:1e3,children:(0,n.jsxs)(u.Flex,{align:"center",children:[(0,n.jsx)(Je,{links:e}),(0,n.jsx)(Ue,{logo:i}),(0,n.jsx)(Xe,{primaryButton:a,secondaryButton:t}),(0,n.jsx)(Ze,{showMenu:o})]})})}),(0,n.jsx)(ye,{menu:l,showMenu:o,links:e,primaryButton:a,secondaryButton:t})]})}function Je({links:e}){return e?(0,n.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((a,t)=>(0,n.jsxs)(R.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,n.jsx)(Oe,{link:a}),e.length!==t+1&&(0,n.jsx)(Qe,{})]},t))}):null}function Oe({link:e}){return e?(0,n.jsx)("li",{children:(0,n.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Qe(){return(0,n.jsx)("li",{className:"text-gray-500",children:(0,n.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ue({logo:e}){var a;return e?(0,n.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-$-1/2 lg:transform",children:(0,n.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(V.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function Xe({primaryButton:e,secondaryButton:a}){return(0,n.jsxs)(R.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ze({showMenu:e}){return(0,n.jsx)("div",{className:"ml-auto lg:hidden",children:(0,n.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,n.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Mobile menu"}),(0,n.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function ye({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,n.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,n.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-$-auto bg-white border-r",children:[(0,n.jsx)("div",{className:"flex items-center mb-8",children:(0,n.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,n.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),(0,n.jsx)("div",{children:(0,n.jsx)("ul",{children:t&&(t==null?void 0:t.map((m,o)=>(0,n.jsx)("li",{className:"mb-1",children:(0,n.jsx)(g.Button,{as:"link",ariaLabel:m==null?void 0:m.label,link:m,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:m==null?void 0:m.label})},o)))})}),(0,n.jsxs)("div",{className:"mt-auto",children:[(0,n.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(l==null?void 0:l.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,n.jsx)($.Text,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:(0,n.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var R,g,$,H,V,j,O,u,n,fe=h(()=>{"use strict";R=k(require("react"));N();n=require("react/jsx-runtime")});var ea={};p(ea,{Navigation:()=>ce});module.exports=Me(ea);var w=require("react"),ue=require("react/jsx-runtime"),C={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(G(),D))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(Z(),X))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>(ne(),re))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(fe(),de)))},Be="Navigation",ce=({data:e})=>{var l,m,o,x,W,S,P,T,I,K;let a=e==null?void 0:e.variant,t=a&&(C==null?void 0:C[a]),i={logo:(m=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?m:void 0,links:(x=(o=e==null?void 0:e.variants)==null?void 0:o.routes)!=null?x:void 0,primaryButton:(S=(W=e==null?void 0:e.variants)==null?void 0:W.primaryButton)!=null?S:void 0,secondaryButton:(T=(P=e==null?void 0:e.variants)==null?void 0:P.secondaryButton)!=null?T:void 0,banner:(K=(I=e==null?void 0:e.variants)==null?void 0:I.banner)!=null?K:void 0};return t?(0,ue.jsx)(t,{...i}):null};ce.displayName=Be;0&&(module.exports={Navigation});
1
+ "use strict";var he=Object.create;var M=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var h=(e,a)=>()=>(e&&(a=e(e=0)),a);var p=(e,a)=>{for(var t in a)M(e,t,{get:a[t],enumerable:!0})},_=(e,a,t,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of Ne(a))!we.call(e,l)&&l!==t&&M(e,l,{get:()=>a[l],enumerable:!(i=pe(a,l))||i.enumerable});return e};var k=(e,a,t)=>(t=e!=null?he(Le(e)):{},_(a||!e||!e.__esModule?M(t,"default",{value:e,enumerable:!0}):t,e)),Me=e=>_(M({},"__esModule",{value:!0}),e);var v,N=h(()=>{"use strict";v=e=>{var a,t,i;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(a=e==null?void 0:e.internalLink)==null?void 0:a.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"}});var D={};p(D,{Navigation_A:()=>A,default:()=>A});function A({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,o]=z.default.useState(!1),m=()=>{o(x=>!x)};return(0,s.jsxs)(V.Section,{className:"bg-background",children:[(0,s.jsxs)(u.Flex,{align:"center",justify:"between",className:"px-6 py-6",children:[(0,s.jsx)(ke,{logo:i}),(0,s.jsx)(ze,{links:e}),(0,s.jsx)(Se,{primaryButton:a,secondaryButton:t}),(0,s.jsx)(We,{showMenu:m})]}),(0,s.jsx)(Ce,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function ke({logo:e}){var a;return e?(0,s.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,s.jsx)($.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function Re(){return(0,s.jsx)("li",{className:"text-gray-500",children:(0,s.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function ze({links:e}){return e?(0,s.jsx)(u.Flex,{children:(0,s.jsx)("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,s.jsxs)(z.default.Fragment,{children:[(0,s.jsx)(Fe,{link:a},a._key),e.length!==t+1?(0,s.jsx)(Re,{}):null]},t))})}):null}function Fe({link:e}){return e!=null&&e.label?(0,s.jsx)("li",{children:(0,s.jsx)(d.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Ce({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,s.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,s.jsxs)(u.Flex,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-Y-auto bg-white border-r",children:[(0,s.jsx)(Pe,{showMenu:a}),(0,s.jsx)("div",{className:"w-full",children:t?(0,s.jsx)("ul",{children:t==null?void 0:t.map((o,m)=>(0,s.jsx)("li",{className:"mb-1",children:(0,s.jsx)(d.Button,{as:"link",ariaLabel:o==null?void 0:o.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:o,children:o==null?void 0:o.label})},m))}):null}),(0,s.jsxs)("div",{className:"w-full mt-auto",children:[(0,s.jsxs)(u.Flex,{direction:"col",className:"pt-6 space-x-2",children:[i!=null&&i.label?(0,s.jsx)(d.Button,{as:"link",link:i,ariaLabel:i==null?void 0:i.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}):null,l!=null&&l.label?(0,s.jsx)(d.Button,{as:"link",link:l,ariaLabel:l==null?void 0:l.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label}):null]}),(0,s.jsx)(j.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,s.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function We({showMenu:e}){return(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)(d.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,s.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"Mobile menu"}),(0,s.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Se({primaryButton:e,secondaryButton:a}){return(0,s.jsxs)(u.Flex,{gap:4,children:[e!=null&&e.label?(0,s.jsx)(d.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-secondary hover:bg-secondary/50 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?(0,s.jsx)(d.Button,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function Pe({showMenu:e}){return(0,s.jsx)("div",{className:"flex items-center mb-8",children:(0,s.jsx)(d.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:(0,s.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})})}var d,u,$,H,V,j,z,s,G=h(()=>{"use strict";d=require("@stackshift-ui/button"),u=require("@stackshift-ui/flex"),$=require("@stackshift-ui/image"),H=require("@stackshift-ui/link"),V=require("@stackshift-ui/section"),j=require("@stackshift-ui/text"),z=k(require("react"));N();s=require("react/jsx-runtime")});var X={};p(X,{Navigation_B:()=>U,default:()=>U});function U({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,o]=L.default.useState(!1),m=()=>{o(x=>!x)};return(0,b.jsxs)(V.Section,{className:"bg-background",children:[(0,b.jsx)("nav",{className:"relative py-6",children:(0,b.jsx)(Y.Container,{maxWidth:1e3,children:(0,b.jsxs)(u.Flex,{align:"center",justify:"between",children:[(0,b.jsx)(Te,{logo:i}),(0,b.jsx)(He,{showMenu:m}),(0,b.jsx)(Ie,{links:e}),(0,b.jsx)($e,{primaryButton:a,secondaryButton:t})]})})}),(0,b.jsx)(Ve,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Te({logo:e}){var a;return e?(0,b.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,b.jsx)($.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function Ie({links:e}){return e?(0,b.jsx)("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-Y-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,b.jsxs)(L.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,b.jsx)(Ke,{link:a},t),e.length!==t+1?(0,b.jsx)(_e,{}):null]},t))}):null}function Ke({link:e}){return e?(0,b.jsx)("li",{children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function _e(){return(0,b.jsx)("li",{className:"text-gray-500",children:(0,b.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function $e({primaryButton:e,secondaryButton:a}){return(0,b.jsxs)(L.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function He({showMenu:e}){return(0,b.jsx)("div",{className:"lg:hidden",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,b.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)("title",{children:"Mobile menu"}),(0,b.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Ve({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,b.jsx)(L.default.Fragment,{children:(0,b.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,b.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-Y-auto bg-white border-r",children:[(0,b.jsx)("div",{className:"flex items-center mb-8",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,b.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),t&&(0,b.jsx)("ul",{children:t==null?void 0:t.map((o,m)=>(0,b.jsx)("li",{className:"mb-1",children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m))}),(0,b.jsxs)("div",{className:"mt-auto",children:[(0,b.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(l==null?void 0:l.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,b.jsx)(j.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,b.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}var g,Y,u,$,H,V,j,L,b,Z=h(()=>{"use strict";g=require("@stackshift-ui/button"),Y=require("@stackshift-ui/container"),L=k(require("react"));N();b=require("react/jsx-runtime")});var re={};p(re,{Navigation_C:()=>ie,default:()=>ie});function ie({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,o]=F.default.useState(!1),m=()=>{o(x=>!x)};return(0,r.jsxs)(V.Section,{className:"bg-background",children:[(0,r.jsx)("nav",{className:"relative py-6",children:(0,r.jsx)(Y.Container,{maxWidth:1280,children:(0,r.jsxs)(u.Flex,{align:"center",children:[(0,r.jsx)(je,{links:e}),(0,r.jsx)(Ge,{logo:i}),(0,r.jsx)(Ye,{primaryButton:a,secondaryButton:t}),(0,r.jsx)(Ee,{showMenu:m})]})})}),(0,r.jsx)(qe,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function je({links:e}){return e?(0,r.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,r.jsxs)(F.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,r.jsx)(Ae,{link:a}),e.length!==t+1?(0,r.jsx)(De,{}):null]},t))}):null}function Ae({link:e}){return e?(0,r.jsx)("li",{children:(0,r.jsx)(f.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function De(){return(0,r.jsx)("li",{className:"text-gray-500",children:(0,r.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ge({logo:e}){var a;return e?(0,r.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-Y-1/2 lg:transform",children:(0,r.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,r.jsx)($.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function Ye({primaryButton:e,secondaryButton:a}){return(0,r.jsxs)("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&(0,r.jsx)(f.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,r.jsx)(f.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ee({showMenu:e}){return(0,r.jsx)("div",{className:"ml-auto lg:hidden",children:(0,r.jsx)(f.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,r.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:"Mobile menu"}),(0,r.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function qe({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,r.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,r.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,r.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-Y-auto bg-white border-r",children:[(0,r.jsx)("div",{className:"flex items-center mb-8",children:(0,r.jsx)(f.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,r.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,r.jsx)("div",{children:(0,r.jsx)("ul",{children:t&&(t==null?void 0:t.map((o,m)=>(0,r.jsx)("li",{className:"mb-1",children:(0,r.jsx)(f.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m)))})}),(0,r.jsxs)("div",{className:"mt-auto",children:[(0,r.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,r.jsx)(f.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(l==null?void 0:l.label)&&(0,r.jsx)(f.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,r.jsx)(j.Text,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:(0,r.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var f,Y,u,$,H,V,j,F,r,ne=h(()=>{"use strict";f=require("@stackshift-ui/button"),F=k(require("react"));N();r=require("react/jsx-runtime")});var ge={};p(ge,{Navigation_D:()=>de,default:()=>de});function de({links:e,primaryButton:a,secondaryButton:t,logo:i}){let[l,o]=R.default.useState(!1),m=()=>{o(x=>!x)};return(0,n.jsxs)(V.Section,{className:"bg-background",children:[(0,n.jsx)("nav",{className:"relative px-6 py-6",children:(0,n.jsx)(Y.Container,{maxWidth:1e3,children:(0,n.jsxs)(u.Flex,{align:"center",children:[(0,n.jsx)(Je,{links:e}),(0,n.jsx)(Ue,{logo:i}),(0,n.jsx)(Xe,{primaryButton:a,secondaryButton:t}),(0,n.jsx)(Ze,{showMenu:m})]})})}),(0,n.jsx)(ye,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Je({links:e}){return e?(0,n.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((a,t)=>(0,n.jsxs)(R.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,n.jsx)(Oe,{link:a}),e.length!==t+1&&(0,n.jsx)(Qe,{})]},t))}):null}function Oe({link:e}){return e?(0,n.jsx)("li",{children:(0,n.jsx)(c.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Qe(){return(0,n.jsx)("li",{className:"text-gray-500",children:(0,n.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ue({logo:e}){var a;return e?(0,n.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-Y-1/2 lg:transform",children:(0,n.jsx)(H.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)($.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function Xe({primaryButton:e,secondaryButton:a}){return(0,n.jsxs)(R.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secoondary hover:bg-secoondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ze({showMenu:e}){return(0,n.jsx)("div",{className:"ml-auto lg:hidden",children:(0,n.jsx)(c.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,n.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Mobile menu"}),(0,n.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function ye({menu:e,showMenu:a,links:t,primaryButton:i,secondaryButton:l}){return(0,n.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,n.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-Y-auto bg-white border-r",children:[(0,n.jsx)("div",{className:"flex items-center mb-8",children:(0,n.jsx)(c.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,n.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,n.jsx)("div",{children:(0,n.jsx)("ul",{children:t&&(t==null?void 0:t.map((o,m)=>(0,n.jsx)("li",{className:"mb-1",children:(0,n.jsx)(c.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m)))})}),(0,n.jsxs)("div",{className:"mt-auto",children:[(0,n.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(l==null?void 0:l.label)&&(0,n.jsx)(c.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,n.jsx)(j.Text,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:(0,n.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var c,Y,u,$,H,V,j,R,n,fe=h(()=>{"use strict";c=require("@stackshift-ui/button"),R=k(require("react"));N();n=require("react/jsx-runtime")});var ea={};p(ea,{Navigation:()=>ce});module.exports=Me(ea);var w=require("react"),ue=require("react/jsx-runtime"),C={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(G(),D))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(Z(),X))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>(ne(),re))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(fe(),ge)))},Be="Navigation",ce=({data:e})=>{var l,o,m,x,W,S,P,T,I,K;let a=e==null?void 0:e.variant,t=a&&(C==null?void 0:C[a]),i={logo:(o=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?o:void 0,links:(x=(m=e==null?void 0:e.variants)==null?void 0:m.routes)!=null?x:void 0,primaryButton:(S=(W=e==null?void 0:e.variants)==null?void 0:W.primaryButton)!=null?S:void 0,secondaryButton:(T=(P=e==null?void 0:e.variants)==null?void 0:P.secondaryButton)!=null?T:void 0,banner:(K=(I=e==null?void 0:e.variants)==null?void 0:I.banner)!=null?K:void 0};return t?(0,ue.jsx)(t,{...i}):null};ce.displayName=Be;0&&(module.exports={Navigation});
@@ -1 +1 @@
1
- import{a}from"./chunk-3DFREOSA.mjs";export{a as Navigation};
1
+ import{a}from"./chunk-VBF2K5RT.mjs";export{a as Navigation};
@@ -1 +1 @@
1
- "use strict";var w=Object.create;var m=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var R=(e,l)=>{for(var t in l)m(e,t,{get:l[t],enumerable:!0})},f=(e,l,t,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of g(l))!k.call(e,i)&&i!==t&&m(e,i,{get:()=>l[i],enumerable:!(r=o(l,i))||r.enumerable});return e};var F=(e,l,t)=>(t=e!=null?w(M(e)):{},f(l||!e||!e.__esModule?m(t,"default",{value:e,enumerable:!0}):t,e)),z=e=>f(m({},"__esModule",{value:!0}),e);var _={};R(_,{Navigation_A:()=>L,default:()=>L});module.exports=z(_);var d=F(require("react")),s=require("@stackshift-ui/button"),u=require("@stackshift-ui/text"),c=require("@stackshift-ui/link"),h=require("@stackshift-ui/image"),p=require("@stackshift-ui/section"),b=require("@stackshift-ui/flex");var v=e=>{var l,t,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"};var a=require("react/jsx-runtime");function L({links:e,primaryButton:l,secondaryButton:t,logo:r}){let[i,n]=d.default.useState(!1),x=()=>{n(N=>!N)};return(0,a.jsxs)(p.Section,{className:"bg-background",children:[(0,a.jsxs)(b.Flex,{align:"center",justify:"between",className:"px-6 py-6",children:[(0,a.jsx)(C,{logo:r}),(0,a.jsx)(S,{links:e}),(0,a.jsx)($,{primaryButton:l,secondaryButton:t}),(0,a.jsx)(W,{showMenu:x})]}),(0,a.jsx)(T,{menu:i,showMenu:x,links:e,primaryButton:l,secondaryButton:t})]})}function C({logo:e}){var l;return e?(0,a.jsx)(c.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function I(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function S({links:e}){return e?(0,a.jsx)(b.Flex,{children:(0,a.jsx)("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,t)=>(0,a.jsxs)(d.default.Fragment,{children:[(0,a.jsx)(P,{link:l},l._key),e.length!==t+1?(0,a.jsx)(I,{}):null]},t))})}):null}function P({link:e}){return e!=null&&e.label?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function T({menu:e,showMenu:l,links:t,primaryButton:r,secondaryButton:i}){return(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)(b.Flex,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)(H,{showMenu:l}),(0,a.jsx)("div",{className:"w-full",children:t?(0,a.jsx)("ul",{children:t==null?void 0:t.map((n,x)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:n,children:n==null?void 0:n.label})},x))}):null}),(0,a.jsxs)("div",{className:"w-full mt-auto",children:[(0,a.jsxs)(b.Flex,{direction:"col",className:"pt-6 space-x-2",children:[r!=null&&r.label?(0,a.jsx)(s.Button,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null,i!=null&&i.label?(0,a.jsx)(s.Button,{as:"link",link:i,ariaLabel:i==null?void 0:i.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}):null]}),(0,a.jsx)(u.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function W({showMenu:e}){return(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function $({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)(b.Flex,{gap:4,children:[e!=null&&e.label?(0,a.jsx)(s.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-gray hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,l!=null&&l.label?(0,a.jsx)(s.Button,{as:"link",link:l,ariaLabel:l==null?void 0:l.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label}):null]})}function H({showMenu:e}){return(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})})}0&&(module.exports={Navigation_A});
1
+ "use strict";var w=Object.create;var m=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var R=(e,l)=>{for(var t in l)m(e,t,{get:l[t],enumerable:!0})},f=(e,l,t,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of g(l))!k.call(e,i)&&i!==t&&m(e,i,{get:()=>l[i],enumerable:!(r=o(l,i))||r.enumerable});return e};var F=(e,l,t)=>(t=e!=null?w(M(e)):{},f(l||!e||!e.__esModule?m(t,"default",{value:e,enumerable:!0}):t,e)),z=e=>f(m({},"__esModule",{value:!0}),e);var _={};R(_,{Navigation_A:()=>L,default:()=>L});module.exports=z(_);var s=require("@stackshift-ui/button"),b=require("@stackshift-ui/flex"),u=require("@stackshift-ui/image"),c=require("@stackshift-ui/link"),h=require("@stackshift-ui/section"),p=require("@stackshift-ui/text"),d=F(require("react"));var v=e=>{var l,t,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"};var a=require("react/jsx-runtime");function L({links:e,primaryButton:l,secondaryButton:t,logo:r}){let[i,n]=d.default.useState(!1),x=()=>{n(N=>!N)};return(0,a.jsxs)(h.Section,{className:"bg-background",children:[(0,a.jsxs)(b.Flex,{align:"center",justify:"between",className:"px-6 py-6",children:[(0,a.jsx)(C,{logo:r}),(0,a.jsx)(S,{links:e}),(0,a.jsx)($,{primaryButton:l,secondaryButton:t}),(0,a.jsx)(W,{showMenu:x})]}),(0,a.jsx)(T,{menu:i,showMenu:x,links:e,primaryButton:l,secondaryButton:t})]})}function C({logo:e}){var l;return e?(0,a.jsx)(c.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(u.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function I(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function S({links:e}){return e?(0,a.jsx)(b.Flex,{children:(0,a.jsx)("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,t)=>(0,a.jsxs)(d.default.Fragment,{children:[(0,a.jsx)(P,{link:l},l._key),e.length!==t+1?(0,a.jsx)(I,{}):null]},t))})}):null}function P({link:e}){return e!=null&&e.label?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function T({menu:e,showMenu:l,links:t,primaryButton:r,secondaryButton:i}){return(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)(b.Flex,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)(H,{showMenu:l}),(0,a.jsx)("div",{className:"w-full",children:t?(0,a.jsx)("ul",{children:t==null?void 0:t.map((n,x)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:n,children:n==null?void 0:n.label})},x))}):null}),(0,a.jsxs)("div",{className:"w-full mt-auto",children:[(0,a.jsxs)(b.Flex,{direction:"col",className:"pt-6 space-x-2",children:[r!=null&&r.label?(0,a.jsx)(s.Button,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null,i!=null&&i.label?(0,a.jsx)(s.Button,{as:"link",link:i,ariaLabel:i==null?void 0:i.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}):null]}),(0,a.jsx)(p.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function W({showMenu:e}){return(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function $({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)(b.Flex,{gap:4,children:[e!=null&&e.label?(0,a.jsx)(s.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-secondary hover:bg-secondary/50 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,l!=null&&l.label?(0,a.jsx)(s.Button,{as:"link",link:l,ariaLabel:l==null?void 0:l.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label}):null]})}function H({showMenu:e}){return(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})})}0&&(module.exports={Navigation_A});
@@ -1 +1 @@
1
- import{a}from"./chunk-6Y7ZEVQW.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_A,a as default};
1
+ import{a}from"./chunk-6VK3JWSX.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_A,a as default};
@@ -1 +1 @@
1
- "use strict";var w=Object.create;var v=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var F=(e,l)=>{for(var t in l)v(e,t,{get:l[t],enumerable:!0})},f=(e,l,t,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of k(l))!R.call(e,i)&&i!==t&&v(e,i,{get:()=>l[i],enumerable:!(r=o(l,i))||r.enumerable});return e};var z=(e,l,t)=>(t=e!=null?w(M(e)):{},f(l||!e||!e.__esModule?v(t,"default",{value:e,enumerable:!0}):t,e)),C=e=>f(v({},"__esModule",{value:!0}),e);var K={};F(K,{Navigation_B:()=>L,default:()=>L});module.exports=C(K);var m=z(require("react")),s=require("@stackshift-ui/button"),d=require("@stackshift-ui/text"),c=require("@stackshift-ui/link"),h=require("@stackshift-ui/image"),u=require("@stackshift-ui/section"),g=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex");var x=e=>{var l,t,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"};var a=require("react/jsx-runtime");function L({links:e,primaryButton:l,secondaryButton:t,logo:r}){let[i,n]=m.default.useState(!1),b=()=>{n(N=>!N)};return(0,a.jsxs)(u.Section,{className:"bg-background",children:[(0,a.jsx)("nav",{className:"relative py-6",children:(0,a.jsx)(g.Container,{maxWidth:1e3,children:(0,a.jsxs)(p.Flex,{align:"center",justify:"between",children:[(0,a.jsx)(W,{logo:r}),(0,a.jsx)($,{showMenu:b}),(0,a.jsx)(S,{links:e}),(0,a.jsx)(T,{primaryButton:l,secondaryButton:t})]})})}),(0,a.jsx)(H,{menu:i,showMenu:b,links:e,primaryButton:l,secondaryButton:t})]})}function W({logo:e}){var l;return e?(0,a.jsx)(c.Link,{"aria-label":`Go to ${x(e)==="/"?"home page":x(e)}`,className:"text-3xl font-bold leading-none",href:x(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function S({links:e}){return e?(0,a.jsx)("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,t)=>(0,a.jsxs)(m.default.Fragment,{children:[(l==null?void 0:l.label)&&(0,a.jsx)(I,{link:l},t),e.length!==t+1?(0,a.jsx)(P,{}):null]},t))}):null}function I({link:e}){return e?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function P(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function T({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)(m.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function $({showMenu:e}){return(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function H({menu:e,showMenu:l,links:t,primaryButton:r,secondaryButton:i}){return(0,a.jsx)(m.default.Fragment,{children:(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),t&&(0,a.jsx)("ul",{children:t==null?void 0:t.map((n,b)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,link:n,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:n==null?void 0:n.label})},b))}),(0,a.jsxs)("div",{className:"mt-auto",children:[(0,a.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(i==null?void 0:i.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),(0,a.jsx)(d.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}0&&(module.exports={Navigation_B});
1
+ "use strict";var w=Object.create;var v=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var F=(e,l)=>{for(var t in l)v(e,t,{get:l[t],enumerable:!0})},f=(e,l,t,r)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of k(l))!R.call(e,i)&&i!==t&&v(e,i,{get:()=>l[i],enumerable:!(r=o(l,i))||r.enumerable});return e};var z=(e,l,t)=>(t=e!=null?w(M(e)):{},f(l||!e||!e.__esModule?v(t,"default",{value:e,enumerable:!0}):t,e)),C=e=>f(v({},"__esModule",{value:!0}),e);var K={};F(K,{Navigation_B:()=>L,default:()=>L});module.exports=C(K);var s=require("@stackshift-ui/button"),d=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),h=require("@stackshift-ui/image"),u=require("@stackshift-ui/link"),g=require("@stackshift-ui/section"),p=require("@stackshift-ui/text"),m=z(require("react"));var x=e=>{var l,t,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"};var a=require("react/jsx-runtime");function L({links:e,primaryButton:l,secondaryButton:t,logo:r}){let[i,n]=m.default.useState(!1),b=()=>{n(N=>!N)};return(0,a.jsxs)(g.Section,{className:"bg-background",children:[(0,a.jsx)("nav",{className:"relative py-6",children:(0,a.jsx)(d.Container,{maxWidth:1e3,children:(0,a.jsxs)(c.Flex,{align:"center",justify:"between",children:[(0,a.jsx)(W,{logo:r}),(0,a.jsx)($,{showMenu:b}),(0,a.jsx)(S,{links:e}),(0,a.jsx)(T,{primaryButton:l,secondaryButton:t})]})})}),(0,a.jsx)(H,{menu:i,showMenu:b,links:e,primaryButton:l,secondaryButton:t})]})}function W({logo:e}){var l;return e?(0,a.jsx)(u.Link,{"aria-label":`Go to ${x(e)==="/"?"home page":x(e)}`,className:"text-3xl font-bold leading-none",href:x(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function S({links:e}){return e?(0,a.jsx)("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,t)=>(0,a.jsxs)(m.default.Fragment,{children:[(l==null?void 0:l.label)&&(0,a.jsx)(I,{link:l},t),e.length!==t+1?(0,a.jsx)(P,{}):null]},t))}):null}function I({link:e}){return e?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function P(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function T({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)(m.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function $({showMenu:e}){return(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function H({menu:e,showMenu:l,links:t,primaryButton:r,secondaryButton:i}){return(0,a.jsx)(m.default.Fragment,{children:(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),t&&(0,a.jsx)("ul",{children:t==null?void 0:t.map((n,b)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,link:n,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:n==null?void 0:n.label})},b))}),(0,a.jsxs)("div",{className:"mt-auto",children:[(0,a.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(i==null?void 0:i.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),(0,a.jsx)(p.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}0&&(module.exports={Navigation_B});
@@ -1 +1 @@
1
- import{a}from"./chunk-52BNTFA3.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_B,a as default};
1
+ import{a}from"./chunk-23NHI3AW.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_B,a as default};
@@ -1 +1 @@
1
- "use strict";var w=Object.create;var b=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var C=(e,l)=>{for(var t in l)b(e,t,{get:l[t],enumerable:!0})},x=(e,l,t,i)=>{if(l&&typeof l=="object"||typeof l=="function")for(let r of k(l))!R.call(e,r)&&r!==t&&b(e,r,{get:()=>l[r],enumerable:!(i=o(l,r))||i.enumerable});return e};var z=(e,l,t)=>(t=e!=null?w(M(e)):{},x(l||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),W=e=>x(b({},"__esModule",{value:!0}),e);var K={};C(K,{Navigation_C:()=>N,default:()=>N});module.exports=W(K);var d=z(require("react")),s=require("@stackshift-ui/button"),f=require("@stackshift-ui/text"),c=require("@stackshift-ui/link"),h=require("@stackshift-ui/image"),g=require("@stackshift-ui/section"),u=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex");var v=e=>{var l,t,i;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"};var a=require("react/jsx-runtime");function N({links:e,primaryButton:l,secondaryButton:t,logo:i}){let[r,n]=d.default.useState(!1),m=()=>{n(L=>!L)};return(0,a.jsxs)(g.Section,{className:"bg-background",children:[(0,a.jsx)("nav",{className:"relative py-6",children:(0,a.jsx)(u.Container,{maxWidth:1280,children:(0,a.jsxs)(p.Flex,{align:"center",children:[(0,a.jsx)(F,{links:e}),(0,a.jsx)(P,{logo:i}),(0,a.jsx)(T,{primaryButton:l,secondaryButton:t}),(0,a.jsx)($,{showMenu:m})]})})}),(0,a.jsx)(H,{menu:r,showMenu:m,links:e,primaryButton:l,secondaryButton:t})]})}function F({links:e}){return e?(0,a.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,t)=>(0,a.jsxs)(d.default.Fragment,{children:[(l==null?void 0:l.label)&&(0,a.jsx)(S,{link:l}),e.length!==t+1?(0,a.jsx)(I,{}):null]},t))}):null}function S({link:e}){return e?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function I(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function P({logo:e}){var l;return e?(0,a.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:(0,a.jsx)(c.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function T({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function $({showMenu:e}){return(0,a.jsx)("div",{className:"ml-auto lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function H({menu:e,showMenu:l,links:t,primaryButton:i,secondaryButton:r}){return(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,a.jsx)("div",{children:(0,a.jsx)("ul",{children:t&&(t==null?void 0:t.map((n,m)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,link:n,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:n==null?void 0:n.label})},m)))})}),(0,a.jsxs)("div",{className:"mt-auto",children:[(0,a.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(r==null?void 0:r.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label})]}),(0,a.jsx)(f.Text,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}0&&(module.exports={Navigation_C});
1
+ "use strict";var w=Object.create;var b=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var C=(e,l)=>{for(var t in l)b(e,t,{get:l[t],enumerable:!0})},x=(e,l,t,i)=>{if(l&&typeof l=="object"||typeof l=="function")for(let r of k(l))!R.call(e,r)&&r!==t&&b(e,r,{get:()=>l[r],enumerable:!(i=o(l,r))||i.enumerable});return e};var z=(e,l,t)=>(t=e!=null?w(M(e)):{},x(l||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),W=e=>x(b({},"__esModule",{value:!0}),e);var K={};C(K,{Navigation_C:()=>N,default:()=>N});module.exports=W(K);var s=require("@stackshift-ui/button"),f=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),h=require("@stackshift-ui/image"),g=require("@stackshift-ui/link"),u=require("@stackshift-ui/section"),p=require("@stackshift-ui/text"),d=z(require("react"));var v=e=>{var l,t,i;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"};var a=require("react/jsx-runtime");function N({links:e,primaryButton:l,secondaryButton:t,logo:i}){let[r,n]=d.default.useState(!1),m=()=>{n(L=>!L)};return(0,a.jsxs)(u.Section,{className:"bg-background",children:[(0,a.jsx)("nav",{className:"relative py-6",children:(0,a.jsx)(f.Container,{maxWidth:1280,children:(0,a.jsxs)(c.Flex,{align:"center",children:[(0,a.jsx)(F,{links:e}),(0,a.jsx)(P,{logo:i}),(0,a.jsx)(T,{primaryButton:l,secondaryButton:t}),(0,a.jsx)($,{showMenu:m})]})})}),(0,a.jsx)(H,{menu:r,showMenu:m,links:e,primaryButton:l,secondaryButton:t})]})}function F({links:e}){return e?(0,a.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,t)=>(0,a.jsxs)(d.default.Fragment,{children:[(l==null?void 0:l.label)&&(0,a.jsx)(S,{link:l}),e.length!==t+1?(0,a.jsx)(I,{}):null]},t))}):null}function S({link:e}){return e?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function I(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function P({logo:e}){var l;return e?(0,a.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:(0,a.jsx)(g.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function T({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secondary hover:bg-secondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function $({showMenu:e}){return(0,a.jsx)("div",{className:"ml-auto lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function H({menu:e,showMenu:l,links:t,primaryButton:i,secondaryButton:r}){return(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,a.jsx)("div",{children:(0,a.jsx)("ul",{children:t&&(t==null?void 0:t.map((n,m)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,link:n,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:n==null?void 0:n.label})},m)))})}),(0,a.jsxs)("div",{className:"mt-auto",children:[(0,a.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(r==null?void 0:r.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label})]}),(0,a.jsx)(p.Text,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}0&&(module.exports={Navigation_C});
@@ -1 +1 @@
1
- import{a}from"./chunk-YFDMEEFC.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_C,a as default};
1
+ import{a}from"./chunk-FNK6EXKZ.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_C,a as default};
@@ -1 +1 @@
1
- "use strict";var w=Object.create;var b=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var z=(e,l)=>{for(var t in l)b(e,t,{get:l[t],enumerable:!0})},d=(e,l,t,i)=>{if(l&&typeof l=="object"||typeof l=="function")for(let r of k(l))!R.call(e,r)&&r!==t&&b(e,r,{get:()=>l[r],enumerable:!(i=o(l,r))||i.enumerable});return e};var C=(e,l,t)=>(t=e!=null?w(M(e)):{},d(l||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),F=e=>d(b({},"__esModule",{value:!0}),e);var K={};z(K,{Navigation_D:()=>L,default:()=>L});module.exports=F(K);var x=C(require("react")),s=require("@stackshift-ui/button"),f=require("@stackshift-ui/text"),c=require("@stackshift-ui/link"),h=require("@stackshift-ui/image"),g=require("@stackshift-ui/section"),u=require("@stackshift-ui/container"),p=require("@stackshift-ui/flex");var v=e=>{var l,t,i;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"};var a=require("react/jsx-runtime");function L({links:e,primaryButton:l,secondaryButton:t,logo:i}){let[r,n]=x.default.useState(!1),m=()=>{n(N=>!N)};return(0,a.jsxs)(g.Section,{className:"bg-background",children:[(0,a.jsx)("nav",{className:"relative px-6 py-6",children:(0,a.jsx)(u.Container,{maxWidth:1e3,children:(0,a.jsxs)(p.Flex,{align:"center",children:[(0,a.jsx)(W,{links:e}),(0,a.jsx)(P,{logo:i}),(0,a.jsx)(T,{primaryButton:l,secondaryButton:t}),(0,a.jsx)($,{showMenu:m})]})})}),(0,a.jsx)(H,{menu:r,showMenu:m,links:e,primaryButton:l,secondaryButton:t})]})}function W({links:e}){return e?(0,a.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((l,t)=>(0,a.jsxs)(x.default.Fragment,{children:[(l==null?void 0:l.label)&&(0,a.jsx)(S,{link:l}),e.length!==t+1&&(0,a.jsx)(I,{})]},t))}):null}function S({link:e}){return e?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function I(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function P({logo:e}){var l;return e?(0,a.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:(0,a.jsx)(c.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function T({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)(x.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function $({showMenu:e}){return(0,a.jsx)("div",{className:"ml-auto lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function H({menu:e,showMenu:l,links:t,primaryButton:i,secondaryButton:r}){return(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,a.jsx)("div",{children:(0,a.jsx)("ul",{children:t&&(t==null?void 0:t.map((n,m)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,link:n,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:n==null?void 0:n.label})},m)))})}),(0,a.jsxs)("div",{className:"mt-auto",children:[(0,a.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(r==null?void 0:r.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label})]}),(0,a.jsx)(f.Text,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}0&&(module.exports={Navigation_D});
1
+ "use strict";var w=Object.create;var b=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var z=(e,l)=>{for(var t in l)b(e,t,{get:l[t],enumerable:!0})},x=(e,l,t,i)=>{if(l&&typeof l=="object"||typeof l=="function")for(let r of k(l))!R.call(e,r)&&r!==t&&b(e,r,{get:()=>l[r],enumerable:!(i=o(l,r))||i.enumerable});return e};var C=(e,l,t)=>(t=e!=null?w(M(e)):{},x(l||!e||!e.__esModule?b(t,"default",{value:e,enumerable:!0}):t,e)),F=e=>x(b({},"__esModule",{value:!0}),e);var K={};z(K,{Navigation_D:()=>L,default:()=>L});module.exports=F(K);var s=require("@stackshift-ui/button"),f=require("@stackshift-ui/container"),c=require("@stackshift-ui/flex"),h=require("@stackshift-ui/image"),u=require("@stackshift-ui/link"),p=require("@stackshift-ui/section"),g=require("@stackshift-ui/text"),d=C(require("react"));var v=e=>{var l,t,i;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(l=e==null?void 0:e.internalLink)==null?void 0:l.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(i=e==null?void 0:e.externalLink)!=null?i:"/"};var a=require("react/jsx-runtime");function L({links:e,primaryButton:l,secondaryButton:t,logo:i}){let[r,n]=d.default.useState(!1),m=()=>{n(N=>!N)};return(0,a.jsxs)(p.Section,{className:"bg-background",children:[(0,a.jsx)("nav",{className:"relative px-6 py-6",children:(0,a.jsx)(f.Container,{maxWidth:1e3,children:(0,a.jsxs)(c.Flex,{align:"center",children:[(0,a.jsx)(W,{links:e}),(0,a.jsx)(P,{logo:i}),(0,a.jsx)(T,{primaryButton:l,secondaryButton:t}),(0,a.jsx)($,{showMenu:m})]})})}),(0,a.jsx)(H,{menu:r,showMenu:m,links:e,primaryButton:l,secondaryButton:t})]})}function W({links:e}){return e?(0,a.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((l,t)=>(0,a.jsxs)(d.default.Fragment,{children:[(l==null?void 0:l.label)&&(0,a.jsx)(S,{link:l}),e.length!==t+1&&(0,a.jsx)(I,{})]},t))}):null}function S({link:e}){return e?(0,a.jsx)("li",{children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function I(){return(0,a.jsx)("li",{className:"text-gray-500",children:(0,a.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function P({logo:e}){var l;return e?(0,a.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:(0,a.jsx)(u.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,a.jsx)(h.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function T({primaryButton:e,secondaryButton:l}){return(0,a.jsxs)(d.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-secoondary hover:bg-secoondary/50 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function $({showMenu:e}){return(0,a.jsx)("div",{className:"ml-auto lg:hidden",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,a.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Mobile menu"}),(0,a.jsx)("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function H({menu:e,showMenu:l,links:t,primaryButton:i,secondaryButton:r}){return(0,a.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),(0,a.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,a.jsx)("div",{className:"flex items-center mb-8",children:(0,a.jsx)(s.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:(0,a.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),(0,a.jsx)("div",{children:(0,a.jsx)("ul",{children:t&&(t==null?void 0:t.map((n,m)=>(0,a.jsx)("li",{className:"mb-1",children:(0,a.jsx)(s.Button,{as:"link",ariaLabel:n==null?void 0:n.label,link:n,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:n==null?void 0:n.label})},m)))})}),(0,a.jsxs)("div",{className:"mt-auto",children:[(0,a.jsxs)("div",{className:"pt-6",children:[(i==null?void 0:i.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label}),(r==null?void 0:r.label)&&(0,a.jsx)(s.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label})]}),(0,a.jsx)(g.Text,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:(0,a.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}0&&(module.exports={Navigation_D});
@@ -1 +1 @@
1
- import{a}from"./chunk-INJUL3VL.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_D,a as default};
1
+ import{a}from"./chunk-OZI66SXQ.mjs";import"./chunk-KQFO7OZP.mjs";export{a as Navigation_D,a as default};
@@ -1 +1 @@
1
- "use strict";var b=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var P=(e,r)=>{for(var a in r)b(e,a,{get:r[a],enumerable:!0})},T=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of R(r))!F.call(e,s)&&s!==a&&b(e,s,{get:()=>r[s],enumerable:!(n=M(r,s))||n.enumerable});return e};var E=e=>T(b({},"__esModule",{value:!0}),e);var G={};P(G,{Navigation_E:()=>S,default:()=>S});module.exports=E(G);var o=require("react"),u=require("@stackshift-ui/button"),v=require("@stackshift-ui/link"),g=require("@stackshift-ui/image"),k=require("@stackshift-ui/section"),p=require("@stackshift-ui/flex");var C=require("@stackshift-ui/text"),c=require("react/jsx-runtime"),L={block:{normal:({children:e})=>(0,c.jsx)(C.Text,{fontSize:"xs",weight:"bold",className:"text-white ",children:e})},code:({value:e})=>(0,c.jsx)("pre",{"data-language":e.language,children:(0,c.jsx)("code",{children:e.code})}),marks:{strong:({children:e})=>(0,c.jsx)("strong",{children:e}),em:({children:e})=>(0,c.jsx)("em",{children:e}),code:({children:e})=>(0,c.jsx)("code",{children:e}),link:({children:e,value:r})=>{var a;return(0,c.jsx)("a",{"aria-label":(a=r==null?void 0:r.href)!=null?a:"external link",className:"text-primary-foreground hover:text-secondary-foreground",href:r==null?void 0:r.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};var N=require("@portabletext/react");var m=e=>{var r,a,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(a=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&a.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};function S({banner:e,logo:r,links:a}){let[n,s]=(0,o.useState)(!1),[d,w]=(0,o.useState)(!1),[l,i]=(0,o.useState)(""),f=(0,o.useRef)("");(0,o.useEffect)(()=>{f.current=l},[l]);let h=()=>s(!n),x=B=>{B.preventDefault();let y=document.getElementById("query");y&&(i(y.value),window.location.href=`/search?q=${l}`)};return(0,c.jsxs)(k.Section,{className:"relative bg-background",children:[(0,c.jsx)(H,{banner:e}),(0,c.jsxs)(p.Flex,{as:"nav",justify:"between",className:"relative",children:[(0,c.jsxs)(p.Flex,{align:"center",className:"w-full px-12 py-8",children:[(0,c.jsx)(I,{logo:r}),(0,c.jsx)(q,{links:a})]}),(0,c.jsxs)("div",{className:"items-center justify-end hidden mt-6 mr-12 lg:flex",children:[(0,c.jsx)(j,{showSearchBar:d,setShowSearchBar:w}),(0,c.jsx)(W,{showSearchBar:d,handleSearchRouting:x,productQuery:l,setProductQuery:i}),(0,c.jsx)(Z,{}),(0,c.jsx)(A,{})]}),(0,c.jsx)($,{showMenu:h})]}),(0,c.jsx)(z,{logo:r,links:a,menu:n,showMenu:h,handleSearchRouting:x,productQuery:l,setProductQuery:i})]})}function H({banner:e}){return e?(0,c.jsx)("div",{className:"py-2 bg-primary",children:(0,c.jsxs)(p.Flex,{align:"center",justify:"center",children:[(0,c.jsxs)("svg",{className:"mr-2",width:18,height:11,viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("rect",{y:"3.07129",width:4,height:10,rx:2,transform:"rotate(-45 0 3.07129)",fill:"white"}),(0,c.jsx)("rect",{x:8,y:"2.82861",width:4,height:10,rx:2,transform:"rotate(-45 8 2.82861)",fill:"white"})]}),(0,c.jsx)(N.PortableText,{value:e,components:L,onMissingComponent:!1})]})}):null}function I({logo:e}){var r;return e?(0,c.jsx)(v.Link,{"aria-label":`Go to ${m(e)==="/"?"home page":m(e)}`,className:"text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,c.jsx)(g.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function q({links:e}){return e?(0,c.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((r,a)=>(0,c.jsx)(o.Fragment,{children:(0,c.jsx)(Q,{link:r})},a))}):null}function Q({link:e}){return e?(0,c.jsx)("li",{children:(0,c.jsx)(u.Button,{as:"link",variant:"link",ariaLabel:e==null?void 0:e.label,link:e,className:(e==null?void 0:e.type)==="linkInternal"?"xl:mr-12 lg:mr-8 font-bold font-heading hover:text-gray-600 no-underline text-black":"mr-12 font-bold font-heading hover:text-gray-600 no-underline text-black",children:e==null?void 0:e.label})}):null}function j({showSearchBar:e,setShowSearchBar:r}){return(0,c.jsx)(u.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",type:"button",onClick:()=>r(!e),children:(0,c.jsx)("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",children:(0,c.jsx)("path",{d:"M15.853 16.56c-1.683 1.517-3.911 2.44-6.353 2.44-5.243 0-9.5-4.257-9.5-9.5s4.257-9.5 9.5-9.5 9.5 4.257 9.5 9.5c0 2.442-.923 4.67-2.44 6.353l7.44 7.44-.707.707-7.44-7.44zm-6.353-15.56c4.691 0 8.5 3.809 8.5 8.5s-3.809 8.5-8.5 8.5-8.5-3.809-8.5-8.5 3.809-8.5 8.5-8.5z"})})})}function W({showSearchBar:e,handleSearchRouting:r,productQuery:a,setProductQuery:n}){return e?(0,c.jsxs)("form",{id:"form",className:"flex items-center pl-8 mb-10 mr-auto bg-white lg:mb-0",method:"get",role:"search",onSubmit:r,children:[(0,c.jsx)("input",{id:"query",name:"query","aria-label":"Search...",className:"inline-block w-40 h-full p-2 mt-1 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground",placeholder:"Search...",onChange:s=>n(s.target.value),type:"search"}),(0,c.jsx)(u.Button,{as:"button",variant:"unstyled",ariaLabel:"Submit product search",className:`mt-1 inline-flex h-[35px] w-10 items-center justify-center bg-primary ${a===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:a==="",type:"submit",children:(0,c.jsx)("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}):null}function $({showMenu:e}){return(0,c.jsx)(u.Button,{variant:"unstyled",as:"button",ariaLabel:"Nav Sidebar",className:"self-center mr-12 navbar-burger lg:hidden",onClick:e,children:(0,c.jsx)("svg",{width:20,height:12,viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M1 2H19C19.2652 2 19.5196 1.89464 19.7071 1.70711C19.8946 1.51957 20 1.26522 20 1C20 0.734784 19.8946 0.48043 19.7071 0.292893C19.5196 0.105357 19.2652 0 19 0H1C0.734784 0 0.48043 0.105357 0.292893 0.292893C0.105357 0.48043 0 0.734784 0 1C0 1.26522 0.105357 1.51957 0.292893 1.70711C0.48043 1.89464 0.734784 2 1 2ZM19 10H1C0.734784 10 0.48043 10.1054 0.292893 10.2929C0.105357 10.4804 0 10.7348 0 11C0 11.2652 0.105357 11.5196 0.292893 11.7071C0.48043 11.8946 0.734784 12 1 12H19C19.2652 12 19.5196 11.8946 19.7071 11.7071C19.8946 11.5196 20 11.2652 20 11C20 10.7348 19.8946 10.4804 19.7071 10.2929C19.5196 10.1054 19.2652 10 19 10ZM19 5H1C0.734784 5 0.48043 5.10536 0.292893 5.29289C0.105357 5.48043 0 5.73478 0 6C0 6.26522 0.105357 6.51957 0.292893 6.70711C0.48043 6.89464 0.734784 7 1 7H19C19.2652 7 19.5196 6.89464 19.7071 6.70711C19.8946 6.51957 20 6.26522 20 6C20 5.73478 19.8946 5.48043 19.7071 5.29289C19.5196 5.10536 19.2652 5 19 5Z",fill:"currentColor"})})})}function Z(){return(0,c.jsxs)("div",{className:"mx-10 cart-icon cart-link",children:[(0,c.jsx)("div",{"data-icon":"BAG",className:"ec-cart-widget"}),(0,c.jsx)("a",{className:"cart-link",href:"/cart?store-page=cart","aria-label":"Cart"})]})}function A(){return(0,c.jsx)("a",{href:"/cart?store-page=account",children:(0,c.jsxs)("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function z({logo:e,links:r,menu:a,showMenu:n,handleSearchRouting:s,productQuery:d,setProductQuery:w}){var l;return(0,c.jsxs)("div",{className:`${a?null:"hidden"} mobile-nav fixed bottom-0 right-0 top-0 w-5/6 max-w-sm`,style:{zIndex:60},children:[(0,c.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25",onClick:n}),(0,c.jsxs)("nav",{className:"relative flex flex-col w-full h-full px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,c.jsxs)("div",{className:"flex items-center mb-8",children:[e&&(0,c.jsx)(v.Link,{"aria-label":`Go to ${m(e)==="/"?"home page":m(e)}`,className:"text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,c.jsx)(g.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}),(0,c.jsx)(u.Button,{variant:"unstyled",as:"button",ariaLabel:"Close navigation menu",className:"ml-auto",onClick:n,children:(0,c.jsx)("svg",{className:"w-2 h-2 text-gray-500 cursor-pointer",width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M9.00002 1L1 9.00002M1.00003 1L9.00005 9.00002",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,c.jsxs)("form",{id:"form",className:"flex mt-3 bg-white",method:"get",role:"search",onSubmit:s,children:[(0,c.jsx)("input",{id:"query",name:"query","aria-label":"Search product",className:"inline-block w-full h-full p-2 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground sm:w-60",placeholder:"Search...",onChange:i=>w(i.target.value),type:"search"}),(0,c.jsx)(u.Button,{variant:"unstyled",as:"button",ariaLabel:"Submit product search",className:`inline-flex h-full w-10 items-center justify-center bg-primary ${d===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:d==="",type:"submit",children:(0,c.jsx)("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}),(0,c.jsx)("ul",{className:"mt-10 mb-5",children:r&&r.map((i,f)=>{var h;return(0,c.jsx)(o.Fragment,{children:(0,c.jsx)("li",{className:"mb-8",children:(0,c.jsx)(u.Button,{as:"link",variant:"link",ariaLabel:(h=i==null?void 0:i.label)!=null?h:`navigation link ${f+1}`,link:i,className:"font-bold text-black no-underline font-heading hover:text-gray-600",children:i==null?void 0:i.label})})},f)})}),(0,c.jsx)("hr",{}),(0,c.jsxs)("div",{className:"flex items-center mx-auto mt-3",children:[(0,c.jsxs)("a",{className:"flex mr-10 cart-icon cart-link","aria-label":"Cart",href:"/cart?store-page=cart",children:[(0,c.jsx)("div",{"data-icon":"BAG",className:"ec-cart-widget"}),(0,c.jsx)("span",{className:"my-auto text-sm",children:"Cart"})]}),(0,c.jsxs)("a",{className:"flex","aria-label":"Account",href:"/cart?store-page=account",children:[(0,c.jsxs)("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,c.jsx)("span",{className:"my-auto text-sm",children:"Account"})]})]})]})]})}0&&(module.exports={Navigation_E});
1
+ "use strict";var b=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var P=(e,r)=>{for(var a in r)b(e,a,{get:r[a],enumerable:!0})},T=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of R(r))!F.call(e,s)&&s!==a&&b(e,s,{get:()=>r[s],enumerable:!(n=M(r,s))||n.enumerable});return e};var E=e=>T(b({},"__esModule",{value:!0}),e);var G={};P(G,{Navigation_E:()=>S,default:()=>S});module.exports=E(G);var k=require("@portabletext/react"),u=require("@stackshift-ui/button"),p=require("@stackshift-ui/flex"),v=require("@stackshift-ui/image"),g=require("@stackshift-ui/link"),N=require("@stackshift-ui/section"),o=require("react");var m=e=>{var r,a,n;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(a=(r=e==null?void 0:e.internalLink)==null?void 0:r.toLowerCase())!=null&&a.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(n=e==null?void 0:e.externalLink)!=null?n:"/"};var C=require("@stackshift-ui/text"),c=require("react/jsx-runtime"),L={block:{normal:({children:e})=>(0,c.jsx)(C.Text,{fontSize:"xs",weight:"bold",className:"text-white ",children:e})},code:({value:e})=>(0,c.jsx)("pre",{"data-language":e.language,children:(0,c.jsx)("code",{children:e.code})}),marks:{strong:({children:e})=>(0,c.jsx)("strong",{children:e}),em:({children:e})=>(0,c.jsx)("em",{children:e}),code:({children:e})=>(0,c.jsx)("code",{children:e}),link:({children:e,value:r})=>{var a;return(0,c.jsx)("a",{"aria-label":(a=r==null?void 0:r.href)!=null?a:"external link",className:"text-primary-foreground hover:text-secondary-foreground",href:r==null?void 0:r.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};function S({banner:e,logo:r,links:a}){let[n,s]=(0,o.useState)(!1),[d,w]=(0,o.useState)(!1),[l,i]=(0,o.useState)(""),f=(0,o.useRef)("");(0,o.useEffect)(()=>{f.current=l},[l]);let h=()=>s(!n),x=B=>{B.preventDefault();let y=document.getElementById("query");y&&(i(y.value),window.location.href=`/search?q=${l}`)};return(0,c.jsxs)(N.Section,{className:"relative bg-background",children:[(0,c.jsx)(H,{banner:e}),(0,c.jsxs)(p.Flex,{as:"nav",justify:"between",className:"relative",children:[(0,c.jsxs)(p.Flex,{align:"center",className:"w-full px-12 py-8",children:[(0,c.jsx)(I,{logo:r}),(0,c.jsx)(q,{links:a})]}),(0,c.jsxs)("div",{className:"items-center justify-end hidden mt-6 mr-12 lg:flex",children:[(0,c.jsx)(j,{showSearchBar:d,setShowSearchBar:w}),(0,c.jsx)(W,{showSearchBar:d,handleSearchRouting:x,productQuery:l,setProductQuery:i}),(0,c.jsx)(Z,{}),(0,c.jsx)(A,{})]}),(0,c.jsx)($,{showMenu:h})]}),(0,c.jsx)(z,{logo:r,links:a,menu:n,showMenu:h,handleSearchRouting:x,productQuery:l,setProductQuery:i})]})}function H({banner:e}){return e?(0,c.jsx)("div",{className:"py-2 bg-primary",children:(0,c.jsxs)(p.Flex,{align:"center",justify:"center",children:[(0,c.jsxs)("svg",{className:"mr-2",width:18,height:11,viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("rect",{y:"3.07129",width:4,height:10,rx:2,transform:"rotate(-45 0 3.07129)",fill:"white"}),(0,c.jsx)("rect",{x:8,y:"2.82861",width:4,height:10,rx:2,transform:"rotate(-45 8 2.82861)",fill:"white"})]}),(0,c.jsx)(k.PortableText,{value:e,components:L,onMissingComponent:!1})]})}):null}function I({logo:e}){var r;return e?(0,c.jsx)(g.Link,{"aria-label":`Go to ${m(e)==="/"?"home page":m(e)}`,className:"text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,c.jsx)(v.Image,{src:e==null?void 0:e.image,alt:(r=e==null?void 0:e.alt)!=null?r:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function q({links:e}){return e?(0,c.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((r,a)=>(0,c.jsx)(o.Fragment,{children:(0,c.jsx)(Q,{link:r})},a))}):null}function Q({link:e}){return e?(0,c.jsx)("li",{children:(0,c.jsx)(u.Button,{as:"link",variant:"link",ariaLabel:e==null?void 0:e.label,link:e,className:(e==null?void 0:e.type)==="linkInternal"?"xl:mr-12 lg:mr-8 font-bold font-heading hover:text-gray-600 no-underline text-black":"mr-12 font-bold font-heading hover:text-gray-600 no-underline text-black",children:e==null?void 0:e.label})}):null}function j({showSearchBar:e,setShowSearchBar:r}){return(0,c.jsx)(u.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",type:"button",onClick:()=>r(!e),children:(0,c.jsx)("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",children:(0,c.jsx)("path",{d:"M15.853 16.56c-1.683 1.517-3.911 2.44-6.353 2.44-5.243 0-9.5-4.257-9.5-9.5s4.257-9.5 9.5-9.5 9.5 4.257 9.5 9.5c0 2.442-.923 4.67-2.44 6.353l7.44 7.44-.707.707-7.44-7.44zm-6.353-15.56c4.691 0 8.5 3.809 8.5 8.5s-3.809 8.5-8.5 8.5-8.5-3.809-8.5-8.5 3.809-8.5 8.5-8.5z"})})})}function W({showSearchBar:e,handleSearchRouting:r,productQuery:a,setProductQuery:n}){return e?(0,c.jsxs)("form",{id:"form",className:"flex items-center pl-8 mb-10 mr-auto bg-white lg:mb-0",method:"get",role:"search",onSubmit:r,children:[(0,c.jsx)("input",{id:"query",name:"query","aria-label":"Search...",className:"inline-block w-40 h-full p-2 mt-1 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground",placeholder:"Search...",onChange:s=>n(s.target.value),type:"search"}),(0,c.jsx)(u.Button,{as:"button",variant:"unstyled",ariaLabel:"Submit product search",className:`mt-1 inline-flex h-[35px] w-10 items-center justify-center bg-primary ${a===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:a==="",type:"submit",children:(0,c.jsx)("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}):null}function $({showMenu:e}){return(0,c.jsx)(u.Button,{variant:"unstyled",as:"button",ariaLabel:"Nav Sidebar",className:"self-center mr-12 navbar-burger lg:hidden",onClick:e,children:(0,c.jsx)("svg",{width:20,height:12,viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M1 2H19C19.2652 2 19.5196 1.89464 19.7071 1.70711C19.8946 1.51957 20 1.26522 20 1C20 0.734784 19.8946 0.48043 19.7071 0.292893C19.5196 0.105357 19.2652 0 19 0H1C0.734784 0 0.48043 0.105357 0.292893 0.292893C0.105357 0.48043 0 0.734784 0 1C0 1.26522 0.105357 1.51957 0.292893 1.70711C0.48043 1.89464 0.734784 2 1 2ZM19 10H1C0.734784 10 0.48043 10.1054 0.292893 10.2929C0.105357 10.4804 0 10.7348 0 11C0 11.2652 0.105357 11.5196 0.292893 11.7071C0.48043 11.8946 0.734784 12 1 12H19C19.2652 12 19.5196 11.8946 19.7071 11.7071C19.8946 11.5196 20 11.2652 20 11C20 10.7348 19.8946 10.4804 19.7071 10.2929C19.5196 10.1054 19.2652 10 19 10ZM19 5H1C0.734784 5 0.48043 5.10536 0.292893 5.29289C0.105357 5.48043 0 5.73478 0 6C0 6.26522 0.105357 6.51957 0.292893 6.70711C0.48043 6.89464 0.734784 7 1 7H19C19.2652 7 19.5196 6.89464 19.7071 6.70711C19.8946 6.51957 20 6.26522 20 6C20 5.73478 19.8946 5.48043 19.7071 5.29289C19.5196 5.10536 19.2652 5 19 5Z",fill:"currentColor"})})})}function Z(){return(0,c.jsxs)("div",{className:"mx-10 cart-icon cart-link",children:[(0,c.jsx)("div",{"data-icon":"BAG",className:"ec-cart-widget"}),(0,c.jsx)("a",{className:"cart-link",href:"/cart?store-page=cart","aria-label":"Cart"})]})}function A(){return(0,c.jsx)("a",{href:"/cart?store-page=account",children:(0,c.jsxs)("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function z({logo:e,links:r,menu:a,showMenu:n,handleSearchRouting:s,productQuery:d,setProductQuery:w}){var l;return(0,c.jsxs)("div",{className:`${a?null:"hidden"} mobile-nav fixed bottom-0 right-0 top-0 w-5/6 max-w-sm`,style:{zIndex:60},children:[(0,c.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25",onClick:n}),(0,c.jsxs)("nav",{className:"relative flex flex-col w-full h-full px-6 py-6 overflow-y-auto bg-white border-r",children:[(0,c.jsxs)("div",{className:"flex items-center mb-8",children:[e&&(0,c.jsx)(g.Link,{"aria-label":`Go to ${m(e)==="/"?"home page":m(e)}`,className:"text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,c.jsx)(v.Image,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}),(0,c.jsx)(u.Button,{variant:"unstyled",as:"button",ariaLabel:"Close navigation menu",className:"ml-auto",onClick:n,children:(0,c.jsx)("svg",{className:"w-2 h-2 text-gray-500 cursor-pointer",width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M9.00002 1L1 9.00002M1.00003 1L9.00005 9.00002",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,c.jsxs)("form",{id:"form",className:"flex mt-3 bg-white",method:"get",role:"search",onSubmit:s,children:[(0,c.jsx)("input",{id:"query",name:"query","aria-label":"Search product",className:"inline-block w-full h-full p-2 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground sm:w-60",placeholder:"Search...",onChange:i=>w(i.target.value),type:"search"}),(0,c.jsx)(u.Button,{variant:"unstyled",as:"button",ariaLabel:"Submit product search",className:`inline-flex h-full w-10 items-center justify-center bg-primary ${d===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:d==="",type:"submit",children:(0,c.jsx)("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}),(0,c.jsx)("ul",{className:"mt-10 mb-5",children:r&&r.map((i,f)=>{var h;return(0,c.jsx)(o.Fragment,{children:(0,c.jsx)("li",{className:"mb-8",children:(0,c.jsx)(u.Button,{as:"link",variant:"link",ariaLabel:(h=i==null?void 0:i.label)!=null?h:`navigation link ${f+1}`,link:i,className:"font-bold text-black no-underline font-heading hover:text-gray-600",children:i==null?void 0:i.label})})},f)})}),(0,c.jsx)("hr",{}),(0,c.jsxs)("div",{className:"flex items-center mx-auto mt-3",children:[(0,c.jsxs)("a",{className:"flex mr-10 cart-icon cart-link","aria-label":"Cart",href:"/cart?store-page=cart",children:[(0,c.jsx)("div",{"data-icon":"BAG",className:"ec-cart-widget"}),(0,c.jsx)("span",{className:"my-auto text-sm",children:"Cart"})]}),(0,c.jsxs)("a",{className:"flex","aria-label":"Account",href:"/cart?store-page=account",children:[(0,c.jsxs)("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,c.jsx)("span",{className:"my-auto text-sm",children:"Account"})]})]})]})]})}0&&(module.exports={Navigation_E});
@@ -1 +1 @@
1
- import{a as b}from"./chunk-IMQB7ODR.mjs";import{a as l}from"./chunk-KQFO7OZP.mjs";import{Fragment as x,useEffect as N,useRef as S,useState as p}from"react";import{Button as c}from"@stackshift-ui/button";import{Link as y}from"@stackshift-ui/link";import{Image as C}from"@stackshift-ui/image";import{Section as k}from"@stackshift-ui/section";import{Flex as g}from"@stackshift-ui/flex";import{PortableText as B}from"@portabletext/react";import{jsx as t,jsxs as r}from"react/jsx-runtime";function M({banner:e,logo:a,links:o}){let[s,u]=p(!1),[m,f]=p(!1),[i,n]=p(""),h=S("");N(()=>{h.current=i},[i]);let d=()=>u(!s),v=L=>{L.preventDefault();let w=document.getElementById("query");w&&(n(w.value),window.location.href=`/search?q=${i}`)};return r(k,{className:"relative bg-background",children:[t(R,{banner:e}),r(g,{as:"nav",justify:"between",className:"relative",children:[r(g,{align:"center",className:"w-full px-12 py-8",children:[t(F,{logo:a}),t(P,{links:o})]}),r("div",{className:"items-center justify-end hidden mt-6 mr-12 lg:flex",children:[t(H,{showSearchBar:m,setShowSearchBar:f}),t(j,{showSearchBar:m,handleSearchRouting:v,productQuery:i,setProductQuery:n}),t(I,{}),t(Q,{})]}),t(q,{showMenu:d})]}),t(T,{logo:a,links:o,menu:s,showMenu:d,handleSearchRouting:v,productQuery:i,setProductQuery:n})]})}function R({banner:e}){return e?t("div",{className:"py-2 bg-primary",children:r(g,{align:"center",justify:"center",children:[r("svg",{className:"mr-2",width:18,height:11,viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{y:"3.07129",width:4,height:10,rx:2,transform:"rotate(-45 0 3.07129)",fill:"white"}),t("rect",{x:8,y:"2.82861",width:4,height:10,rx:2,transform:"rotate(-45 8 2.82861)",fill:"white"})]}),t(B,{value:e,components:b,onMissingComponent:!1})]})}):null}function F({logo:e}){var a;return e?t(y,{"aria-label":`Go to ${l(e)==="/"?"home page":l(e)}`,className:"text-3xl font-bold leading-none",href:l(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(C,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function P({links:e}){return e?t("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((a,o)=>t(x,{children:t(E,{link:a})},o))}):null}function E({link:e}){return e?t("li",{children:t(c,{as:"link",variant:"link",ariaLabel:e==null?void 0:e.label,link:e,className:(e==null?void 0:e.type)==="linkInternal"?"xl:mr-12 lg:mr-8 font-bold font-heading hover:text-gray-600 no-underline text-black":"mr-12 font-bold font-heading hover:text-gray-600 no-underline text-black",children:e==null?void 0:e.label})}):null}function H({showSearchBar:e,setShowSearchBar:a}){return t(c,{as:"button",variant:"unstyled",ariaLabel:"Search button",type:"button",onClick:()=>a(!e),children:t("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",children:t("path",{d:"M15.853 16.56c-1.683 1.517-3.911 2.44-6.353 2.44-5.243 0-9.5-4.257-9.5-9.5s4.257-9.5 9.5-9.5 9.5 4.257 9.5 9.5c0 2.442-.923 4.67-2.44 6.353l7.44 7.44-.707.707-7.44-7.44zm-6.353-15.56c4.691 0 8.5 3.809 8.5 8.5s-3.809 8.5-8.5 8.5-8.5-3.809-8.5-8.5 3.809-8.5 8.5-8.5z"})})})}function j({showSearchBar:e,handleSearchRouting:a,productQuery:o,setProductQuery:s}){return e?r("form",{id:"form",className:"flex items-center pl-8 mb-10 mr-auto bg-white lg:mb-0",method:"get",role:"search",onSubmit:a,children:[t("input",{id:"query",name:"query","aria-label":"Search...",className:"inline-block w-40 h-full p-2 mt-1 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground",placeholder:"Search...",onChange:u=>s(u.target.value),type:"search"}),t(c,{as:"button",variant:"unstyled",ariaLabel:"Submit product search",className:`mt-1 inline-flex h-[35px] w-10 items-center justify-center bg-primary ${o===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:o==="",type:"submit",children:t("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}):null}function q({showMenu:e}){return t(c,{variant:"unstyled",as:"button",ariaLabel:"Nav Sidebar",className:"self-center mr-12 navbar-burger lg:hidden",onClick:e,children:t("svg",{width:20,height:12,viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M1 2H19C19.2652 2 19.5196 1.89464 19.7071 1.70711C19.8946 1.51957 20 1.26522 20 1C20 0.734784 19.8946 0.48043 19.7071 0.292893C19.5196 0.105357 19.2652 0 19 0H1C0.734784 0 0.48043 0.105357 0.292893 0.292893C0.105357 0.48043 0 0.734784 0 1C0 1.26522 0.105357 1.51957 0.292893 1.70711C0.48043 1.89464 0.734784 2 1 2ZM19 10H1C0.734784 10 0.48043 10.1054 0.292893 10.2929C0.105357 10.4804 0 10.7348 0 11C0 11.2652 0.105357 11.5196 0.292893 11.7071C0.48043 11.8946 0.734784 12 1 12H19C19.2652 12 19.5196 11.8946 19.7071 11.7071C19.8946 11.5196 20 11.2652 20 11C20 10.7348 19.8946 10.4804 19.7071 10.2929C19.5196 10.1054 19.2652 10 19 10ZM19 5H1C0.734784 5 0.48043 5.10536 0.292893 5.29289C0.105357 5.48043 0 5.73478 0 6C0 6.26522 0.105357 6.51957 0.292893 6.70711C0.48043 6.89464 0.734784 7 1 7H19C19.2652 7 19.5196 6.89464 19.7071 6.70711C19.8946 6.51957 20 6.26522 20 6C20 5.73478 19.8946 5.48043 19.7071 5.29289C19.5196 5.10536 19.2652 5 19 5Z",fill:"currentColor"})})})}function I(){return r("div",{className:"mx-10 cart-icon cart-link",children:[t("div",{"data-icon":"BAG",className:"ec-cart-widget"}),t("a",{className:"cart-link",href:"/cart?store-page=cart","aria-label":"Cart"})]})}function Q(){return t("a",{href:"/cart?store-page=account",children:r("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function T({logo:e,links:a,menu:o,showMenu:s,handleSearchRouting:u,productQuery:m,setProductQuery:f}){var i;return r("div",{className:`${o?null:"hidden"} mobile-nav fixed bottom-0 right-0 top-0 w-5/6 max-w-sm`,style:{zIndex:60},children:[t("div",{className:"fixed inset-0 bg-gray-800 opacity-25",onClick:s}),r("nav",{className:"relative flex flex-col w-full h-full px-6 py-6 overflow-y-auto bg-white border-r",children:[r("div",{className:"flex items-center mb-8",children:[e&&t(y,{"aria-label":`Go to ${l(e)==="/"?"home page":l(e)}`,className:"text-3xl font-bold leading-none",href:l(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(C,{src:e==null?void 0:e.image,alt:(i=e==null?void 0:e.alt)!=null?i:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}),t(c,{variant:"unstyled",as:"button",ariaLabel:"Close navigation menu",className:"ml-auto",onClick:s,children:t("svg",{className:"w-2 h-2 text-gray-500 cursor-pointer",width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M9.00002 1L1 9.00002M1.00003 1L9.00005 9.00002",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r("form",{id:"form",className:"flex mt-3 bg-white",method:"get",role:"search",onSubmit:u,children:[t("input",{id:"query",name:"query","aria-label":"Search product",className:"inline-block w-full h-full p-2 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground sm:w-60",placeholder:"Search...",onChange:n=>f(n.target.value),type:"search"}),t(c,{variant:"unstyled",as:"button",ariaLabel:"Submit product search",className:`inline-flex h-full w-10 items-center justify-center bg-primary ${m===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:m==="",type:"submit",children:t("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}),t("ul",{className:"mt-10 mb-5",children:a&&a.map((n,h)=>{var d;return t(x,{children:t("li",{className:"mb-8",children:t(c,{as:"link",variant:"link",ariaLabel:(d=n==null?void 0:n.label)!=null?d:`navigation link ${h+1}`,link:n,className:"font-bold text-black no-underline font-heading hover:text-gray-600",children:n==null?void 0:n.label})})},h)})}),t("hr",{}),r("div",{className:"flex items-center mx-auto mt-3",children:[r("a",{className:"flex mr-10 cart-icon cart-link","aria-label":"Cart",href:"/cart?store-page=cart",children:[t("div",{"data-icon":"BAG",className:"ec-cart-widget"}),t("span",{className:"my-auto text-sm",children:"Cart"})]}),r("a",{className:"flex","aria-label":"Account",href:"/cart?store-page=account",children:[r("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),t("span",{className:"my-auto text-sm",children:"Account"})]})]})]})]})}export{M as Navigation_E,M as default};
1
+ import{a as b}from"./chunk-IMQB7ODR.mjs";import{a as l}from"./chunk-KQFO7OZP.mjs";import{PortableText as N}from"@portabletext/react";import{Button as c}from"@stackshift-ui/button";import{Flex as g}from"@stackshift-ui/flex";import{Image as x}from"@stackshift-ui/image";import{Link as y}from"@stackshift-ui/link";import{Section as S}from"@stackshift-ui/section";import{Fragment as C,useEffect as k,useRef as B,useState as p}from"react";import{jsx as t,jsxs as r}from"react/jsx-runtime";function M({banner:e,logo:a,links:o}){let[s,u]=p(!1),[m,f]=p(!1),[i,n]=p(""),h=B("");k(()=>{h.current=i},[i]);let d=()=>u(!s),v=L=>{L.preventDefault();let w=document.getElementById("query");w&&(n(w.value),window.location.href=`/search?q=${i}`)};return r(S,{className:"relative bg-background",children:[t(R,{banner:e}),r(g,{as:"nav",justify:"between",className:"relative",children:[r(g,{align:"center",className:"w-full px-12 py-8",children:[t(F,{logo:a}),t(P,{links:o})]}),r("div",{className:"items-center justify-end hidden mt-6 mr-12 lg:flex",children:[t(H,{showSearchBar:m,setShowSearchBar:f}),t(j,{showSearchBar:m,handleSearchRouting:v,productQuery:i,setProductQuery:n}),t(I,{}),t(Q,{})]}),t(q,{showMenu:d})]}),t(T,{logo:a,links:o,menu:s,showMenu:d,handleSearchRouting:v,productQuery:i,setProductQuery:n})]})}function R({banner:e}){return e?t("div",{className:"py-2 bg-primary",children:r(g,{align:"center",justify:"center",children:[r("svg",{className:"mr-2",width:18,height:11,viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("rect",{y:"3.07129",width:4,height:10,rx:2,transform:"rotate(-45 0 3.07129)",fill:"white"}),t("rect",{x:8,y:"2.82861",width:4,height:10,rx:2,transform:"rotate(-45 8 2.82861)",fill:"white"})]}),t(N,{value:e,components:b,onMissingComponent:!1})]})}):null}function F({logo:e}){var a;return e?t(y,{"aria-label":`Go to ${l(e)==="/"?"home page":l(e)}`,className:"text-3xl font-bold leading-none",href:l(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(x,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function P({links:e}){return e?t("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((a,o)=>t(C,{children:t(E,{link:a})},o))}):null}function E({link:e}){return e?t("li",{children:t(c,{as:"link",variant:"link",ariaLabel:e==null?void 0:e.label,link:e,className:(e==null?void 0:e.type)==="linkInternal"?"xl:mr-12 lg:mr-8 font-bold font-heading hover:text-gray-600 no-underline text-black":"mr-12 font-bold font-heading hover:text-gray-600 no-underline text-black",children:e==null?void 0:e.label})}):null}function H({showSearchBar:e,setShowSearchBar:a}){return t(c,{as:"button",variant:"unstyled",ariaLabel:"Search button",type:"button",onClick:()=>a(!e),children:t("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",children:t("path",{d:"M15.853 16.56c-1.683 1.517-3.911 2.44-6.353 2.44-5.243 0-9.5-4.257-9.5-9.5s4.257-9.5 9.5-9.5 9.5 4.257 9.5 9.5c0 2.442-.923 4.67-2.44 6.353l7.44 7.44-.707.707-7.44-7.44zm-6.353-15.56c4.691 0 8.5 3.809 8.5 8.5s-3.809 8.5-8.5 8.5-8.5-3.809-8.5-8.5 3.809-8.5 8.5-8.5z"})})})}function j({showSearchBar:e,handleSearchRouting:a,productQuery:o,setProductQuery:s}){return e?r("form",{id:"form",className:"flex items-center pl-8 mb-10 mr-auto bg-white lg:mb-0",method:"get",role:"search",onSubmit:a,children:[t("input",{id:"query",name:"query","aria-label":"Search...",className:"inline-block w-40 h-full p-2 mt-1 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground",placeholder:"Search...",onChange:u=>s(u.target.value),type:"search"}),t(c,{as:"button",variant:"unstyled",ariaLabel:"Submit product search",className:`mt-1 inline-flex h-[35px] w-10 items-center justify-center bg-primary ${o===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:o==="",type:"submit",children:t("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}):null}function q({showMenu:e}){return t(c,{variant:"unstyled",as:"button",ariaLabel:"Nav Sidebar",className:"self-center mr-12 navbar-burger lg:hidden",onClick:e,children:t("svg",{width:20,height:12,viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M1 2H19C19.2652 2 19.5196 1.89464 19.7071 1.70711C19.8946 1.51957 20 1.26522 20 1C20 0.734784 19.8946 0.48043 19.7071 0.292893C19.5196 0.105357 19.2652 0 19 0H1C0.734784 0 0.48043 0.105357 0.292893 0.292893C0.105357 0.48043 0 0.734784 0 1C0 1.26522 0.105357 1.51957 0.292893 1.70711C0.48043 1.89464 0.734784 2 1 2ZM19 10H1C0.734784 10 0.48043 10.1054 0.292893 10.2929C0.105357 10.4804 0 10.7348 0 11C0 11.2652 0.105357 11.5196 0.292893 11.7071C0.48043 11.8946 0.734784 12 1 12H19C19.2652 12 19.5196 11.8946 19.7071 11.7071C19.8946 11.5196 20 11.2652 20 11C20 10.7348 19.8946 10.4804 19.7071 10.2929C19.5196 10.1054 19.2652 10 19 10ZM19 5H1C0.734784 5 0.48043 5.10536 0.292893 5.29289C0.105357 5.48043 0 5.73478 0 6C0 6.26522 0.105357 6.51957 0.292893 6.70711C0.48043 6.89464 0.734784 7 1 7H19C19.2652 7 19.5196 6.89464 19.7071 6.70711C19.8946 6.51957 20 6.26522 20 6C20 5.73478 19.8946 5.48043 19.7071 5.29289C19.5196 5.10536 19.2652 5 19 5Z",fill:"currentColor"})})})}function I(){return r("div",{className:"mx-10 cart-icon cart-link",children:[t("div",{"data-icon":"BAG",className:"ec-cart-widget"}),t("a",{className:"cart-link",href:"/cart?store-page=cart","aria-label":"Cart"})]})}function Q(){return t("a",{href:"/cart?store-page=account",children:r("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function T({logo:e,links:a,menu:o,showMenu:s,handleSearchRouting:u,productQuery:m,setProductQuery:f}){var i;return r("div",{className:`${o?null:"hidden"} mobile-nav fixed bottom-0 right-0 top-0 w-5/6 max-w-sm`,style:{zIndex:60},children:[t("div",{className:"fixed inset-0 bg-gray-800 opacity-25",onClick:s}),r("nav",{className:"relative flex flex-col w-full h-full px-6 py-6 overflow-y-auto bg-white border-r",children:[r("div",{className:"flex items-center mb-8",children:[e&&t(y,{"aria-label":`Go to ${l(e)==="/"?"home page":l(e)}`,className:"text-3xl font-bold leading-none",href:l(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:t(x,{src:e==null?void 0:e.image,alt:(i=e==null?void 0:e.alt)!=null?i:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}),t(c,{variant:"unstyled",as:"button",ariaLabel:"Close navigation menu",className:"ml-auto",onClick:s,children:t("svg",{className:"w-2 h-2 text-gray-500 cursor-pointer",width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M9.00002 1L1 9.00002M1.00003 1L9.00005 9.00002",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r("form",{id:"form",className:"flex mt-3 bg-white",method:"get",role:"search",onSubmit:u,children:[t("input",{id:"query",name:"query","aria-label":"Search product",className:"inline-block w-full h-full p-2 text-sm bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:border-primary-foreground focus:outline-none focus:ring-1 focus:ring-primary-foreground sm:w-60",placeholder:"Search...",onChange:n=>f(n.target.value),type:"search"}),t(c,{variant:"unstyled",as:"button",ariaLabel:"Submit product search",className:`inline-flex h-full w-10 items-center justify-center bg-primary ${m===""?"cursor-not-allowed opacity-50":"transition duration-200 hover:bg-primary-foreground"}`,disabled:m==="",type:"submit",children:t("svg",{width:7,height:12,viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M4.125 6.00252L0 1.87752L1.17801 0.699219L6.48102 6.00252L1.17801 11.3058L0 10.1275L4.125 6.00252Z",fill:"white"})})})]}),t("ul",{className:"mt-10 mb-5",children:a&&a.map((n,h)=>{var d;return t(C,{children:t("li",{className:"mb-8",children:t(c,{as:"link",variant:"link",ariaLabel:(d=n==null?void 0:n.label)!=null?d:`navigation link ${h+1}`,link:n,className:"font-bold text-black no-underline font-heading hover:text-gray-600",children:n==null?void 0:n.label})})},h)})}),t("hr",{}),r("div",{className:"flex items-center mx-auto mt-3",children:[r("a",{className:"flex mr-10 cart-icon cart-link","aria-label":"Cart",href:"/cart?store-page=cart",children:[t("div",{"data-icon":"BAG",className:"ec-cart-widget"}),t("span",{className:"my-auto text-sm",children:"Cart"})]}),r("a",{className:"flex","aria-label":"Account",href:"/cart?store-page=account",children:[r("svg",{width:32,height:31,viewBox:"0 0 32 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M16.0006 16.3154C19.1303 16.3154 21.6673 13.799 21.6673 10.6948C21.6673 7.59064 19.1303 5.07422 16.0006 5.07422C12.871 5.07422 10.334 7.59064 10.334 10.6948C10.334 13.799 12.871 16.3154 16.0006 16.3154Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M24.4225 23.8963C23.6678 22.3507 22.4756 21.0445 20.9845 20.1298C19.4934 19.2151 17.7647 18.7295 15.9998 18.7295C14.2349 18.7295 12.5063 19.2151 11.0152 20.1298C9.52406 21.0445 8.33179 22.3507 7.57715 23.8963",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),t("span",{className:"my-auto text-sm",children:"Account"})]})]})]})]})}export{M as Navigation_E,M as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/navigation",
3
3
  "description": "",
4
- "version": "1.0.0",
4
+ "version": "2.0.1",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -28,20 +28,20 @@
28
28
  "typescript": "^5.6.2",
29
29
  "vite-tsconfig-paths": "^5.0.1",
30
30
  "vitest": "^2.1.1",
31
- "@stackshift-ui/eslint-config": "1.0.0",
32
- "@stackshift-ui/typescript-config": "2.0.0"
31
+ "@stackshift-ui/typescript-config": "2.0.0",
32
+ "@stackshift-ui/eslint-config": "1.0.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "@portabletext/react": "^3.1.0",
36
- "@stackshift-ui/button": "1.0.0",
37
36
  "@stackshift-ui/system": "2.0.0",
37
+ "@stackshift-ui/text": "1.0.0",
38
38
  "@stackshift-ui/link": "1.0.0",
39
+ "@stackshift-ui/button": "1.0.0",
39
40
  "@stackshift-ui/image": "1.0.0",
40
- "@stackshift-ui/text": "1.0.0",
41
- "@stackshift-ui/flex": "1.0.0",
42
- "@stackshift-ui/scripts": "1.0.0",
43
41
  "@stackshift-ui/section": "1.0.0",
44
- "@stackshift-ui/container": "1.0.0"
42
+ "@stackshift-ui/scripts": "1.0.0",
43
+ "@stackshift-ui/container": "1.0.0",
44
+ "@stackshift-ui/flex": "1.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@stackshift-ui/system": ">=0.0.0",
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-KQFO7OZP.mjs";import v from"react";import{Button as b}from"@stackshift-ui/button";import{Text as x}from"@stackshift-ui/text";import{Link as d}from"@stackshift-ui/link";import{Image as f}from"@stackshift-ui/image";import{Section as c}from"@stackshift-ui/section";import{Container as h}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{jsx as a,jsxs as n}from"react/jsx-runtime";function N({links:e,primaryButton:l,secondaryButton:i,logo:t}){let[r,s]=v.useState(!1),m=()=>{s(g=>!g)};return n(c,{className:"bg-background",children:[a("nav",{className:"relative py-6",children:a(h,{maxWidth:1e3,children:n(u,{align:"center",justify:"between",children:[a(p,{logo:t}),a(k,{showMenu:m}),a(w,{links:e}),a(R,{primaryButton:l,secondaryButton:i})]})})}),a(F,{menu:r,showMenu:m,links:e,primaryButton:l,secondaryButton:i})]})}function p({logo:e}){var l;return e?a(d,{"aria-label":`Go to ${o(e)==="/"?"home page":o(e)}`,className:"text-3xl font-bold leading-none",href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(f,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function w({links:e}){return e?a("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,i)=>n(v.Fragment,{children:[(l==null?void 0:l.label)&&a(L,{link:l},i),e.length!==i+1?a(M,{}):null]},i))}):null}function L({link:e}){return e?a("li",{children:a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function M(){return a("li",{className:"text-gray-500",children:a("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function R({primaryButton:e,secondaryButton:l}){return n(v.Fragment,{children:[(e==null?void 0:e.label)&&a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&a(b,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function k({showMenu:e}){return a("div",{className:"lg:hidden",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[a("title",{children:"Mobile menu"}),a("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function F({menu:e,showMenu:l,links:i,primaryButton:t,secondaryButton:r}){return a(v.Fragment,{children:n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[a("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[a("div",{className:"flex items-center mb-8",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:a("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),i&&a("ul",{children:i==null?void 0:i.map((s,m)=>a("li",{className:"mb-1",children:a(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m))}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&a(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(r==null?void 0:r.label)&&a(b,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label})]}),a(x,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:a("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}export{N as a};
@@ -1 +0,0 @@
1
- import{a as v}from"./chunk-KQFO7OZP.mjs";import o from"react";import{Button as b}from"@stackshift-ui/button";import{Text as d}from"@stackshift-ui/text";import{Link as x}from"@stackshift-ui/link";import{Image as f}from"@stackshift-ui/image";import{Section as c}from"@stackshift-ui/section";import{Container as h}from"@stackshift-ui/container";import{Flex as N}from"@stackshift-ui/flex";import{jsx as a,jsxs as n}from"react/jsx-runtime";function p({links:e,primaryButton:l,secondaryButton:r,logo:t}){let[i,s]=o.useState(!1),m=()=>{s(g=>!g)};return n(c,{className:"bg-background",children:[a("nav",{className:"relative px-6 py-6",children:a(h,{maxWidth:1e3,children:n(N,{align:"center",children:[a(u,{links:e}),a(k,{logo:t}),a(M,{primaryButton:l,secondaryButton:r}),a(R,{showMenu:m})]})})}),a(z,{menu:i,showMenu:m,links:e,primaryButton:l,secondaryButton:r})]})}function u({links:e}){return e?a("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((l,r)=>n(o.Fragment,{children:[(l==null?void 0:l.label)&&a(w,{link:l}),e.length!==r+1&&a(L,{})]},r))}):null}function w({link:e}){return e?a("li",{children:a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function L(){return a("li",{className:"text-gray-500",children:a("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function k({logo:e}){var l;return e?a("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:a(x,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(f,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function M({primaryButton:e,secondaryButton:l}){return n(o.Fragment,{children:[(e==null?void 0:e.label)&&a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&a(b,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function R({showMenu:e}){return a("div",{className:"ml-auto lg:hidden",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[a("title",{children:"Mobile menu"}),a("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function z({menu:e,showMenu:l,links:r,primaryButton:t,secondaryButton:i}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[a("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[a("div",{className:"flex items-center mb-8",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:a("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),a("div",{children:a("ul",{children:r&&(r==null?void 0:r.map((s,m)=>a("li",{className:"mb-1",children:a(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m)))})}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&a(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(i==null?void 0:i.label)&&a(b,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),a(d,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:a("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}export{p as a};
@@ -1 +0,0 @@
1
- import{a as v}from"./chunk-KQFO7OZP.mjs";import o from"react";import{Button as b}from"@stackshift-ui/button";import{Text as d}from"@stackshift-ui/text";import{Link as x}from"@stackshift-ui/link";import{Image as f}from"@stackshift-ui/image";import{Section as h}from"@stackshift-ui/section";import{Container as c}from"@stackshift-ui/container";import{Flex as N}from"@stackshift-ui/flex";import{jsx as l,jsxs as n}from"react/jsx-runtime";function u({links:e,primaryButton:a,secondaryButton:r,logo:t}){let[i,s]=o.useState(!1),m=()=>{s(g=>!g)};return n(h,{className:"bg-background",children:[l("nav",{className:"relative py-6",children:l(c,{maxWidth:1280,children:n(N,{align:"center",children:[l(p,{links:e}),l(M,{logo:t}),l(k,{primaryButton:a,secondaryButton:r}),l(R,{showMenu:m})]})})}),l(z,{menu:i,showMenu:m,links:e,primaryButton:a,secondaryButton:r})]})}function p({links:e}){return e?l("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,r)=>n(o.Fragment,{children:[(a==null?void 0:a.label)&&l(w,{link:a}),e.length!==r+1?l(L,{}):null]},r))}):null}function w({link:e}){return e?l("li",{children:l(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function L(){return l("li",{className:"text-gray-500",children:l("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function M({logo:e}){var a;return e?l("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:l(x,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:l(f,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function k({primaryButton:e,secondaryButton:a}){return n("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&l(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&l(b,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function R({showMenu:e}){return l("div",{className:"ml-auto lg:hidden",children:l(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[l("title",{children:"Mobile menu"}),l("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function z({menu:e,showMenu:a,links:r,primaryButton:t,secondaryButton:i}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[l("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[l("div",{className:"flex items-center mb-8",children:l(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:l("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),l("div",{children:l("ul",{children:r&&(r==null?void 0:r.map((s,m)=>l("li",{className:"mb-1",children:l(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m)))})}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&l(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(i==null?void 0:i.label)&&l(b,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),l(d,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:l("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}export{u as a};
File without changes