cortex-react-components 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AYOLIWMA.mjs → chunk-4LYK6VPP.mjs} +1 -1
- package/dist/{chunk-3JTJE3CH.mjs → chunk-56XJMQVR.mjs} +1 -1
- package/dist/{chunk-XBGHKEWQ.mjs → chunk-7ZPEE4NV.mjs} +1 -1
- package/dist/{chunk-4LIC6MZK.mjs → chunk-C34U2N2O.mjs} +1 -1
- package/dist/{chunk-CU7IGMOR.mjs → chunk-C4W4JBZN.mjs} +1 -1
- package/dist/{chunk-LKMZ5ROU.mjs → chunk-E7J5XS32.mjs} +1 -1
- package/dist/{chunk-WMZYFRHZ.mjs → chunk-GCBC75DA.mjs} +1 -1
- package/dist/chunk-I2GY5WTT.mjs +4 -0
- package/dist/chunk-INXPK24X.mjs +4 -0
- package/dist/{chunk-M62IIIAN.mjs → chunk-LZII3MF4.mjs} +1 -1
- package/dist/{chunk-NUOP7T5Z.mjs → chunk-RFWJV4YU.mjs} +1 -1
- package/dist/chunk-SABHLBUI.mjs +4 -0
- package/dist/chunk-SQC52R4J.mjs +4 -0
- package/dist/{chunk-4RF3TPM7.mjs → chunk-VPMCRWSX.mjs} +1 -1
- package/dist/{chunk-NC75G3JN.mjs → chunk-VQWGXZ5A.mjs} +1 -1
- package/dist/{chunk-XWTX2W5V.mjs → chunk-WASENCYA.mjs} +1 -1
- package/dist/{chunk-KW7X3P7R.mjs → chunk-WTZ6GABZ.mjs} +1 -1
- package/dist/{chunk-7YKANUOC.mjs → chunk-WWXGKYL4.mjs} +1 -1
- package/dist/{chunk-QQIP4XUL.mjs → chunk-WZMQHIAK.mjs} +1 -1
- package/dist/components/Blocks/Insight.js +1 -1
- package/dist/components/Blocks/Insight.mjs +1 -1
- package/dist/components/Blocks/Insight.stories.js +1 -1
- package/dist/components/Blocks/Insight.stories.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.js +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/ServiceCard.js +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.stories.js +1 -1
- package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/HeaderFooter/AppLauncher.js +1 -1
- package/dist/components/HeaderFooter/AppLauncher.mjs +1 -1
- package/dist/components/HeaderFooter/AppLauncher.stories.js +1 -1
- package/dist/components/HeaderFooter/AppLauncher.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.d.ts +3 -1
- package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.js +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.js +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.js +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.d.ts +2 -3
- package/dist/components/HeaderFooter/HeaderMobile.js +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.js +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.js +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.js +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.d.ts +3 -1
- package/dist/components/HeaderFooter/VideoHeader.js +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.d.ts +2 -0
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Images/DynamicIcon.js +1 -1
- package/dist/components/Images/DynamicIcon.mjs +1 -1
- package/dist/components/Images/DynamicIcon.stories.js +1 -1
- package/dist/components/Images/DynamicIcon.stories.mjs +1 -1
- package/dist/components/Images/index.js +1 -1
- package/dist/components/Images/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.js +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.js +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.js +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Pages/Documentation.js +1 -1
- package/dist/components/Pages/Documentation.mjs +1 -1
- package/dist/components/Pages/Documentation.stories.js +1 -1
- package/dist/components/Pages/Documentation.stories.mjs +1 -1
- package/dist/components/Pages/IndexPage.js +1 -1
- package/dist/components/Pages/IndexPage.mjs +1 -1
- package/dist/components/Pages/IndexPage.stories.js +1 -1
- package/dist/components/Pages/IndexPage.stories.mjs +1 -1
- package/dist/components/Pages/Intranet.js +1 -1
- package/dist/components/Pages/Intranet.mjs +1 -1
- package/dist/components/Pages/Intranet.stories.js +1 -1
- package/dist/components/Pages/Intranet.stories.mjs +1 -1
- package/dist/components/Pages/LandingPage.js +1 -1
- package/dist/components/Pages/LandingPage.mjs +1 -1
- package/dist/components/Pages/LandingPage.stories.js +192 -192
- package/dist/components/Pages/LandingPage.stories.mjs +1 -1
- package/dist/components/Pages/Page.js +1 -1
- package/dist/components/Pages/Page.mjs +1 -1
- package/dist/components/Pages/Page.stories.js +1 -1
- package/dist/components/Pages/Page.stories.mjs +1 -1
- package/dist/components/Pages/Website.js +1 -1
- package/dist/components/Pages/Website.mjs +1 -1
- package/dist/components/Pages/Website.stories.js +187 -187
- package/dist/components/Pages/Website.stories.mjs +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +4 -5
- package/dist/index.mjs +1 -4
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/sections/AboutSection.d.ts +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.js +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.js +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/index.d.ts +1 -0
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5VW5YOZB.mjs +0 -4
- package/dist/chunk-H3G73HG7.mjs +0 -4
- package/dist/chunk-TP4XDQAI.mjs +0 -4
- package/dist/chunk-XMMVD3EW.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var Me=Object.create;var V=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var Ae=Object.getPrototypeOf,Le=Object.prototype.hasOwnProperty;var Re=(e,t)=>{for(var r in t)V(e,r,{get:t[r],enumerable:!0})},ce=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ie(t))!Le.call(e,s)&&s!==r&&V(e,s,{get:()=>t[s],enumerable:!(o=Se(t,s))||o.enumerable});return e};var de=(e,t,r)=>(r=e!=null?Me(Ae(e)):{},ce(t||!e||!e.__esModule?V(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>ce(V({},"__esModule",{value:!0}),e);var mt={};Re(mt,{HeaderMobile:()=>ut});module.exports=Te(mt);var I=require("react"),w=require("@headlessui/react"),G=require("@heroicons/react/24/outline"),B=require("@heroicons/react/20/solid");var g=require("react/jsx-runtime"),Ge=({name:e,items:t,actions:r=[],href:o})=>!t&&o?(0,g.jsxs)("a",{href:o,className:"relative inline-block text-sm font-semibold text-foreground group",children:[e,(0,g.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}):(0,g.jsxs)(w.Popover,{children:[(0,g.jsxs)(w.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,g.jsxs)("span",{className:"relative",children:[e,(0,g.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,g.jsx)(B.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,g.jsxs)(w.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,g.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(s=>(0,g.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,g.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,g.jsx)(s.icon,{"aria-hidden":"true",size:"6x"})}),(0,g.jsxs)("a",{href:s.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[s.name,(0,g.jsx)("span",{className:"absolute inset-0"})]}),(0,g.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:s.description})]},s.name))}),r.length>0&&(0,g.jsx)("div",{className:"bg-gray-50",children:(0,g.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,g.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:r.map(s=>(0,g.jsxs)("a",{href:s.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,g.jsx)(s.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),s.name]},s.name))})})})]})]}),ue=Ge;var me=de(require("next/link"));function ge({children:e,href:t,openNewTab:r,...o}){return(0,g.jsx)(me.default,{href:t,target:r?"_blank":"_self",...o,children:e})}var Q=de(require("next/image"));var Ce=require("clsx");var Z="-",Ee=e=>{let t=_e(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let l=i.split(Z);return l[0]===""&&l.length!==1&&l.shift(),xe(l,t)||De(i)},getConflictingClassGroupIds:(i,l)=>{let p=r[i]||[];return l&&o[i]?[...p,...o[i]]:p}}},xe=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?xe(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Z);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},fe=/^\[(.+)\]$/,De=e=>{if(fe.test(e)){let t=fe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_e=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return He(Object.entries(e.classGroups),r).forEach(([a,i])=>{K(i,o,a,t)}),o},K=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:he(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(je(s)){K(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,i])=>{K(i,he(t,a),r,o)})})},he=(e,t)=>{let r=e;return t.split(Z).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},je=e=>e.isThemeGetter,He=(e,t)=>t?e.map(([r,o])=>{let s=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[t+i,l])):a);return[r,s]}):e,Be=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return s(a,i),i},set(a,i){r.has(a)?r.set(a,i):s(a,i)}}},ye="!",We=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],a=t.length,i=l=>{let p=[],h=0,x=0,v;for(let b=0;b<l.length;b++){let y=l[b];if(h===0){if(y===s&&(o||l.slice(b,b+a)===t)){p.push(l.slice(x,b)),x=b+a;continue}if(y==="/"){v=b;continue}}y==="["?h++:y==="]"&&h--}let k=p.length===0?l:l.substring(x),N=k.startsWith(ye),d=N?k.substring(1):k,f=v&&v>x?v-x:void 0;return{modifiers:p,hasImportantModifier:N,baseClassName:d,maybePostfixModifierPosition:f}};return r?l=>r({className:l,parseClassName:i}):i},Ue=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Oe=e=>({cache:Be(e.cacheSize),parseClassName:We(e),...Ee(e)}),Ve=/\s+/,$e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,a=[],i=e.trim().split(Ve),l="";for(let p=i.length-1;p>=0;p-=1){let h=i[p],{modifiers:x,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:N}=r(h),d=!!N,f=o(d?k.substring(0,N):k);if(!f){if(!d){l=h+(l.length>0?" "+l:l);continue}if(f=o(k),!f){l=h+(l.length>0?" "+l:l);continue}d=!1}let b=Ue(x).join(":"),y=v?b+ye:b,C=y+f;if(a.includes(C))continue;a.push(C);let E=s(f,d);for(let A=0;A<E.length;++A){let W=E[A];a.push(y+W)}l=h+(l.length>0?" "+l:l)}return l};function Fe(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ve(t))&&(o&&(o+=" "),o+=r);return o}var ve=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ve(e[o]))&&(r&&(r+=" "),r+=t);return r};function Xe(e,...t){let r,o,s,a=i;function i(p){let h=t.reduce((x,v)=>v(x),e());return r=Oe(h),o=r.cache.get,s=r.cache.set,a=l,l(p)}function l(p){let h=o(p);if(h)return h;let x=$e(p,r);return s(p,x),x}return function(){return a(Fe.apply(null,arguments))}}var u=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},we=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ye=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ke=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>R(e)||qe.has(e)||Ye.test(e),M=e=>T(e,"length",it),R=e=>!!e&&!Number.isNaN(Number(e)),J=e=>T(e,"number",R),_=e=>!!e&&Number.isInteger(Number(e)),tt=e=>e.endsWith("%")&&R(e.slice(0,-1)),c=e=>we.test(e),S=e=>Je.test(e),rt=new Set(["length","size","percentage"]),ot=e=>T(e,rt,ke),nt=e=>T(e,"position",ke),st=new Set(["image","url"]),at=e=>T(e,st,dt),lt=e=>T(e,"",ct),j=()=>!0,T=(e,t,r)=>{let o=we.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},it=e=>Ke.test(e)&&!Ze.test(e),ke=()=>!1,ct=e=>Qe.test(e),dt=e=>et.test(e);var pt=()=>{let e=u("colors"),t=u("spacing"),r=u("blur"),o=u("brightness"),s=u("borderColor"),a=u("borderRadius"),i=u("borderSpacing"),l=u("borderWidth"),p=u("contrast"),h=u("grayscale"),x=u("hueRotate"),v=u("invert"),k=u("gap"),N=u("gradientColorStops"),d=u("gradientColorStopPositions"),f=u("inset"),b=u("margin"),y=u("opacity"),C=u("padding"),E=u("saturate"),A=u("scale"),W=u("sepia"),re=u("skew"),oe=u("space"),ne=u("translate"),F=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",c,t],m=()=>[c,t],se=()=>["",z,M],U=()=>["auto",R,c],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",c],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[R,c];return{cacheSize:500,separator:":",theme:{colors:[j],spacing:[z,M],blur:["none","",S,c],brightness:P(),borderColor:[e],borderRadius:["none","","full",S,c],borderSpacing:m(),borderWidth:se(),contrast:P(),grayscale:D(),hueRotate:P(),invert:D(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[tt,M],inset:Y(),margin:Y(),opacity:P(),padding:m(),saturate:P(),scale:P(),sepia:D(),skew:P(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),c]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,c]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",_,c]}],"grid-cols":[{"grid-cols":[j]}],"col-start-end":[{col:["auto",{span:["full",_,c]},c]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[j]}],"row-start-end":[{row:["auto",{span:[_,c]},c]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],B:[{B:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",J]}],"font-family":[{font:[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",R,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,M]}],"underline-offset":[{"underline-offset":["auto",z,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),nt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ot]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},at]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[d]}],"gradient-via-pos":[{via:[d]}],"gradient-to-pos":[{to:[d]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:O()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[z,c]}],"outline-w":[{outline:[z,M]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[z,M]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,lt]}],"shadow-color":[{shadow:[j]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":le()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",S,c]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[v]}],saturate:[{saturate:[E]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[_,c]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","g-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-B":[{"scroll-B":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,M,J]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","B","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-B","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ne=Xe(pt);function Pe(...e){return Ne((0,Ce.clsx)(e))}function ee({logoLight:e,logoDark:t,mobile:r=!1}){return(0,g.jsxs)(ge,{href:"/",className:Pe(r?"py-1":"py-2"),children:[(0,g.jsx)(Q.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}}),(0,g.jsx)(Q.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}})]})}var $=require("lucide-react"),te=["light","dark"];function ut({title:e,logoLight:t,logoDark:r,menuItems:o,isMenuOpen:s=!0}){let[a,i]=(0,I.useState)(!1),[l,p]=(0,I.useState)(!1),[h,x]=(0,I.useState)(!1),[v,k]=(0,I.useState)("light");(0,I.useEffect)(()=>{let d=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]),(0,I.useEffect)(()=>{let d=localStorage.getItem("theme")||"light";k(d),document.documentElement.setAttribute("class",d)},[]);let N=()=>{let d=te[(te.indexOf(v)+1)%te.length];k(d),document.documentElement.setAttribute("class",d),localStorage.setItem("theme",d)};return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${a||s?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,g.jsx)("nav",{className:"backdrop-blur-sm text-white p-0",children:(0,g.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,g.jsx)(ee,{logoDark:r,logoLight:t,mobile:!0}),(0,g.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,g.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,g.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,g.jsx)(G.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,g.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:N,children:(0,g.jsxs)("div",{className:"relative",children:[(0,g.jsx)($.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,g.jsx)($.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,g.jsxs)(w.Dialog,{open:l,onClose:p,className:"lg:hidden",children:[(0,g.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,g.jsxs)(w.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between",children:[(0,g.jsx)("a",{href:"/",className:"-m-1.5 p-1.5 outline-none",children:(0,g.jsx)(ee,{logoDark:r,logoLight:t,mobile:!0})}),(0,g.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,g.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,g.jsx)(G.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,g.jsx)("div",{className:"mt-6 flow-root",children:(0,g.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,g.jsx)("div",{className:"space-y-2 py-6",children:o.map(d=>(0,g.jsx)(ze,{...d},d.name))})})})]})]})]})})}function ze({name:e,items:t,actions:r,href:o}){return!t&&o?(0,g.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,g.jsxs)(w.Disclosure,{as:"div",className:"-mx-3",children:[(0,g.jsx)(w.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,g.jsx)(w.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(s=>(0,g.jsx)(w.DisclosureButton,{as:"a",href:s.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:s.name},s.name))})]})}0&&(module.exports={HeaderMobile});
|
|
4
|
+
"use strict";"use client";var ve=Object.create;var W=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty;var Me=(e,r)=>{for(var t in r)W(e,t,{get:r[t],enumerable:!0})},le=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Ce(r))!ze.call(e,a)&&a!==t&&W(e,a,{get:()=>r[a],enumerable:!(o=ke(r,a))||o.enumerable});return e};var ie=(e,r,t)=>(t=e!=null?ve(Se(e)):{},le(r||!e||!e.__esModule?W(t,"default",{value:e,enumerable:!0}):t,e)),Ne=e=>le(W({},"__esModule",{value:!0}),e);var lr={};Me(lr,{HeaderMobile:()=>sr});module.exports=Ne(lr);var P=require("react"),C=require("@headlessui/react"),V=require("@heroicons/react/24/outline");var ce=ie(require("next/link")),pe=require("react/jsx-runtime");function de({children:e,href:r,openNewTab:t,...o}){return(0,pe.jsx)(ce.default,{href:r,target:t?"_blank":"_self",...o,children:e})}var K=ie(require("next/image"));var we=require("clsx");var J="-",Pe=e=>{let r=Ie(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(J);return s[0]===""&&s.length!==1&&s.shift(),ge(s,r)||Ae(l)},getConflictingClassGroupIds:(l,s)=>{let b=t[l]||[];return s&&o[l]?[...b,...o[l]]:b}}},ge=(e,r)=>{var l;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?ge(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let n=e.join(J);return(l=r.validators.find(({validator:s})=>s(n)))==null?void 0:l.classGroupId},ue=/^\[(.+)\]$/,Ae=e=>{if(ue.test(e)){let r=ue.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Ie=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Re(Object.entries(e.classGroups),t).forEach(([n,l])=>{q(l,o,n,r)}),o},q=(e,r,t,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?r:be(r,a);n.classGroupId=t;return}if(typeof a=="function"){if(Le(a)){q(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([n,l])=>{q(l,be(r,n),t,o)})})},be=(e,r)=>{let t=e;return r.split(J).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Le=e=>e.isThemeGetter,Re=(e,r)=>r?e.map(([t,o])=>{let a=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[r+l,s])):n);return[t,a]}):e,Te=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,a=(n,l)=>{t.set(n,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let l=t.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){t.has(n)?t.set(n,l):a(n,l)}}},me="!",Ge=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],n=r.length,l=s=>{let b=[],m=0,f=0,x;for(let g=0;g<s.length;g++){let y=s[g];if(m===0){if(y===a&&(o||s.slice(g,g+n)===r)){b.push(s.slice(f,g)),f=g+n;continue}if(y==="/"){x=g;continue}}y==="["?m++:y==="]"&&m--}let w=b.length===0?s:s.substring(f),u=w.startsWith(me),k=u?w.substring(1):w,h=x&&x>f?x-f:void 0;return{modifiers:b,hasImportantModifier:u,baseClassName:k,maybePostfixModifierPosition:h}};return t?s=>t({className:s,parseClassName:l}):l},Ee=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},_e=e=>({cache:Te(e.cacheSize),parseClassName:Ge(e),...Pe(e)}),De=/\s+/,Be=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,n=[],l=e.trim().split(De),s="";for(let b=l.length-1;b>=0;b-=1){let m=l[b],{modifiers:f,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:u}=t(m),k=!!u,h=o(k?w.substring(0,u):w);if(!h){if(!k){s=m+(s.length>0?" "+s:s);continue}if(h=o(w),!h){s=m+(s.length>0?" "+s:s);continue}k=!1}let g=Ee(f).join(":"),y=x?g+me:g,v=y+h;if(n.includes(v))continue;n.push(v);let R=a(h,k);for(let A=0;A<R.length;++A){let D=R[A];n.push(y+D)}s=m+(s.length>0?" "+s:s)}return s};function je(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=fe(r))&&(o&&(o+=" "),o+=t);return o}var fe=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=fe(e[o]))&&(t&&(t+=" "),t+=r);return t};function We(e,...r){let t,o,a,n=l;function l(b){let m=r.reduce((f,x)=>x(f),e());return t=_e(m),o=t.cache.get,a=t.cache.set,n=s,s(b)}function s(b){let m=o(b);if(m)return m;let f=Be(b,t);return a(b,f),f}return function(){return n(je.apply(null,arguments))}}var d=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},he=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ue=/^\d+\/\d+$/,Ve=new Set(["px","full","screen"]),$e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,He=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Oe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Fe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)pe-?((\d+)?\.?(\d+)[a-z]+|0)/,Xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>I(e)||Ve.has(e)||Ue.test(e),M=e=>L(e,"length",rr),I=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>L(e,"number",I),G=e=>!!e&&Number.isInteger(Number(e)),Ye=e=>e.endsWith("%")&&I(e.slice(0,-1)),i=e=>he.test(e),N=e=>$e.test(e),qe=new Set(["length","size","percentage"]),Je=e=>L(e,qe,ye),Ke=e=>L(e,"position",ye),Ze=new Set(["image","url"]),Qe=e=>L(e,Ze,or),er=e=>L(e,"",tr),E=()=>!0,L=(e,r,t)=>{let o=he.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},rr=e=>He.test(e)&&!Oe.test(e),ye=()=>!1,tr=e=>Fe.test(e),or=e=>Xe.test(e);var nr=()=>{let e=d("colors"),r=d("spacing"),t=d("blur"),o=d("brightness"),a=d("borderColor"),n=d("borderRadius"),l=d("borderSpacing"),s=d("borderWidth"),b=d("contrast"),m=d("grayscale"),f=d("hueRotate"),x=d("invert"),w=d("gap"),u=d("gradientColorStops"),k=d("gradientColorStopPositions"),h=d("inset"),g=d("margin"),y=d("opacity"),v=d("padding"),R=d("saturate"),A=d("scale"),D=d("sepia"),ee=d("skew"),re=d("space"),te=d("translate"),H=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,r],p=()=>[i,r],oe=()=>["",z,M],B=()=>["auto",I,i],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",i],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[I,i];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[z,M],blur:["none","",N,i],brightness:S(),borderColor:[e],borderRadius:["none","","full",N,i],borderSpacing:p(),borderWidth:oe(),contrast:S(),grayscale:T(),hueRotate:S(),invert:T(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[Ye,M],inset:F(),margin:F(),opacity:S(),padding:p(),saturate:S(),scale:S(),sepia:T(),skew:S(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ne(),i]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",G,i]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",G,i]},i]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[G,i]},i]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[N]},N]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",N,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[E]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",I,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,M]}],"underline-offset":[{"underline-offset":["auto",z,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),Ke]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Je]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Qe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:j()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[z,i]}],"outline-w":[{outline:[z,M]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[z,M]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,er]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",N,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[x]}],saturate:[{saturate:[R]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[G,i]}],"translate-x":[{"translate-x":[te]}],"translate-y":[{"translate-y":[te]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,M,Y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var xe=We(nr);function U(...e){return xe((0,we.clsx)(e))}function Z({logoLight:e,logoDark:r,mobile:t=!1}){return(0,pe.jsxs)(de,{href:"/",className:U(t?"py-1":"py-2"),children:[(0,pe.jsx)(K.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:t?35:50}}),(0,pe.jsx)(K.default,{className:"logo-dark hidden dark:block",src:r.src,width:r.width,height:r.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:t?35:50}})]})}var $=require("lucide-react");var Q=["light","dark"];function sr({logoLight:e,logoDark:r,menuItems:t,isMenuOpen:o=!0}){let[a,n]=(0,P.useState)(!1),[l,s]=(0,P.useState)(!1),[b,m]=(0,P.useState)(!1),[f,x]=(0,P.useState)("light");(0,P.useEffect)(()=>{let u=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,P.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";x(u),document.documentElement.setAttribute("class",u)},[]);let w=()=>{let u=Q[(Q.indexOf(f)+1)%Q.length];x(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u)};return(0,pe.jsx)(pe.Fragment,{children:(0,pe.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${a||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,pe.jsx)("nav",{className:U("backdrop-blur-sm text-white p-0",l&&"hidden"),children:(0,pe.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&pe.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,pe.jsx)(Z,{logoDark:r,logoLight:e,mobile:!0}),(0,pe.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,pe.jsxs)("button",{type:"button",onClick:()=>s(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,pe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,pe.jsx)(V.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,pe.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:w,children:(0,pe.jsxs)("div",{className:"relative",children:[(0,pe.jsx)($.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,pe.jsx)($.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,pe.jsxs)(C.Dialog,{open:l,onClose:s,className:"lg:hidden",children:[(0,pe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,pe.jsxs)(C.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,pe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,pe.jsx)(Z,{logoDark:r,logoLight:e,mobile:!0}),(0,pe.jsxs)("button",{type:"button",onClick:()=>s(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,pe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,pe.jsx)(V.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,pe.jsx)("div",{className:"mt-6 flow-root",children:(0,pe.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,pe.jsx)("div",{className:"space-y-2 px-2 py-6",children:t&&t.map(u=>(0,pe.jsx)(ar,{...u},u.name))})})})]})]})]})})}function ar({name:e,items:r,actions:t,href:o}){return!r&&o?(0,pe.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,pe.jsxs)(C.Disclosure,{as:"div",className:"-mx-3",children:[(0,pe.jsx)(C.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,pe.jsx)(C.DisclosurePanel,{className:"mt-2 space-y-2",children:r&&r.map(a=>(0,pe.jsx)(C.DisclosureButton,{as:"a",href:a.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:a.name},a.name))})]})}0&&(module.exports={HeaderMobile});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-I2GY5WTT.mjs";import"../../chunk-HAYRX2WO.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.mjs";export{a as HeaderMobile};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var Le=Object.create;var W=Object.defineProperty;var Ee=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Fe=Object.getPrototypeOf,Je=Object.prototype.hasOwnProperty;var Be=(e,t)=>{for(var r in t)W(e,r,{get:t[r],enumerable:!0})},pe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ae(t))!Je.call(e,s)&&s!==r&&W(e,s,{get:()=>t[s],enumerable:!(o=Ee(t,s))||o.enumerable});return e};var ue=(e,t,r)=>(r=e!=null?Le(Fe(e)):{},pe(t||!e||!e.__esModule?W(r,"default",{value:e,enumerable:!0}):r,e)),Oe=e=>pe(W({},"__esModule",{value:!0}),e);var It={};Be(It,{Primary:()=>Ct,default:()=>Nt});module.exports=Oe(It);var G=require("react"),w=require("@headlessui/react"),L=require("@heroicons/react/24/outline"),_=require("@heroicons/react/20/solid");var g=require("react/jsx-runtime"),_e=({name:e,items:t,actions:r=[],href:o})=>!t&&o?(0,g.jsxs)("a",{href:o,className:"relative inline-block text-sm font-semibold text-foreground group",children:[e,(0,g.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}):(0,g.jsxs)(w.Popover,{children:[(0,g.jsxs)(w.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,g.jsxs)("span",{className:"relative",children:[e,(0,g.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,g.jsx)(_.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,g.jsxs)(w.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,g.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(s=>(0,g.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,g.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,g.jsx)(s.icon,{"aria-hidden":"true",size:"6x"})}),(0,g.jsxs)("a",{href:s.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[s.name,(0,g.jsx)("span",{className:"absolute inset-0"})]}),(0,g.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:s.description})]},s.name))}),r.length>0&&(0,g.jsx)("div",{className:"bg-gray-50",children:(0,g.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,g.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:r.map(s=>(0,g.jsxs)("a",{href:s.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,g.jsx)(s.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),s.name]},s.name))})})})]})]}),ge=_e;var be=ue(require("next/link"));function fe({children:e,href:t,openNewTab:r,...o}){return(0,g.jsx)(be.default,{href:t,target:r?"_blank":"_self",...o,children:e})}var te=ue(require("next/image"));var Pe=require("clsx");var ee="-",Ue=e=>{let t=Xe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(ee);return i[0]===""&&i.length!==1&&i.shift(),ve(i,t)||je(l)},getConflictingClassGroupIds:(l,i)=>{let p=r[l]||[];return i&&o[l]?[...p,...o[l]]:p}}},ve=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?ve(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(ee);return(l=t.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},xe=/^\[(.+)\]$/,je=e=>{if(xe.test(e)){let t=xe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Xe=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ye(Object.entries(e.classGroups),r).forEach(([a,l])=>{Z(l,o,a,t)}),o},Z=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:ye(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(We(s)){Z(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,l])=>{Z(l,ye(t,a),r,o)})})},ye=(e,t)=>{let r=e;return t.split(ee).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},We=e=>e.isThemeGetter,Ye=(e,t)=>t?e.map(([r,o])=>{let s=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[t+l,i])):a);return[r,s]}):e,Ve=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(a,l)=>{r.set(a,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let l=r.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return s(a,l),l},set(a,l){r.has(a)?r.set(a,l):s(a,l)}}},we="!",$e=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],a=t.length,l=i=>{let p=[],h=0,x=0,v;for(let b=0;b<i.length;b++){let y=i[b];if(h===0){if(y===s&&(o||i.slice(b,b+a)===t)){p.push(i.slice(x,b)),x=b+a;continue}if(y==="/"){v=b;continue}}y==="["?h++:y==="]"&&h--}let N=p.length===0?i:i.substring(x),k=N.startsWith(we),d=k?N.substring(1):N,f=v&&v>x?v-x:void 0;return{modifiers:p,hasImportantModifier:k,baseClassName:d,maybePostfixModifierPosition:f}};return r?i=>r({className:i,parseClassName:l}):l},Ke=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},qe=e=>({cache:Ve(e.cacheSize),parseClassName:$e(e),...Ue(e)}),Qe=/\s+/,Ze=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,a=[],l=e.trim().split(Qe),i="";for(let p=l.length-1;p>=0;p-=1){let h=l[p],{modifiers:x,hasImportantModifier:v,baseClassName:N,maybePostfixModifierPosition:k}=r(h),d=!!k,f=o(d?N.substring(0,k):N);if(!f){if(!d){i=h+(i.length>0?" "+i:i);continue}if(f=o(N),!f){i=h+(i.length>0?" "+i:i);continue}d=!1}let b=Ke(x).join(":"),y=v?b+we:b,C=y+f;if(a.includes(C))continue;a.push(C);let A=s(f,d);for(let M=0;M<A.length;++M){let U=A[M];a.push(y+U)}i=h+(i.length>0?" "+i:i)}return i};function et(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ne(t))&&(o&&(o+=" "),o+=r);return o}var Ne=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ne(e[o]))&&(r&&(r+=" "),r+=t);return r};function tt(e,...t){let r,o,s,a=l;function l(p){let h=t.reduce((x,v)=>v(x),e());return r=qe(h),o=r.cache.get,s=r.cache.set,a=i,i(p)}function i(p){let h=o(p);if(h)return h;let x=Ze(p,r);return s(p,x),x}return function(){return a(et.apply(null,arguments))}}var u=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ke=/^\[(?:([a-z-]+):)?(.+)\]$/i,rt=/^\d+\/\d+$/,ot=new Set(["px","full","screen"]),nt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,st=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,at=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,it=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>T(e)||ot.has(e)||rt.test(e),z=e=>H(e,"length",ft),T=e=>!!e&&!Number.isNaN(Number(e)),Q=e=>H(e,"number",T),J=e=>!!e&&Number.isInteger(Number(e)),ct=e=>e.endsWith("%")&&T(e.slice(0,-1)),c=e=>ke.test(e),S=e=>nt.test(e),dt=new Set(["length","size","percentage"]),pt=e=>H(e,dt,Ce),ut=e=>H(e,"position",Ce),mt=new Set(["image","url"]),gt=e=>H(e,mt,xt),bt=e=>H(e,"",ht),B=()=>!0,H=(e,t,r)=>{let o=ke.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ft=e=>st.test(e)&&!at.test(e),Ce=()=>!1,ht=e=>it.test(e),xt=e=>lt.test(e);var yt=()=>{let e=u("colors"),t=u("spacing"),r=u("blur"),o=u("brightness"),s=u("borderColor"),a=u("borderRadius"),l=u("borderSpacing"),i=u("borderWidth"),p=u("contrast"),h=u("grayscale"),x=u("hueRotate"),v=u("invert"),N=u("gap"),k=u("gradientColorStops"),d=u("gradientColorStopPositions"),f=u("inset"),b=u("margin"),y=u("opacity"),C=u("padding"),A=u("saturate"),M=u("scale"),U=u("sepia"),ne=u("skew"),se=u("space"),ae=u("translate"),V=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",c,t],m=()=>[c,t],ie=()=>["",P,z],j=()=>["auto",T,c],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",c],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[T,c];return{cacheSize:500,separator:":",theme:{colors:[B],spacing:[P,z],blur:["none","",S,c],brightness:I(),borderColor:[e],borderRadius:["none","","full",S,c],borderSpacing:m(),borderWidth:ie(),contrast:I(),grayscale:F(),hueRotate:I(),invert:F(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[ct,z],inset:K(),margin:K(),opacity:I(),padding:m(),saturate:I(),scale:I(),sepia:F(),skew:I(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),c]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",J,c]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",J,c]}],"grid-cols":[{"grid-cols":[B]}],"col-start-end":[{col:["auto",{span:["full",J,c]},c]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[B]}],"row-start-end":[{row:["auto",{span:[J,c]},c]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],_:[{_:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Q]}],"font-family":[{font:[B]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",T,Q]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,z]}],"underline-offset":[{"underline-offset":["auto",P,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),ut]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[d]}],"gradient-via-pos":[{via:[d]}],"gradient-to-pos":[{to:[d]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:X()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[P,c]}],"outline-w":[{outline:[P,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[P,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,bt]}],"shadow-color":[{shadow:[B]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",S,c]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[v]}],saturate:[{saturate:[A]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[J,c]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","g-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-_":[{"scroll-_":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,z,Q]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","_","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-_","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ie=tt(yt);function ze(...e){return Ie((0,Pe.clsx)(e))}function re({logoLight:e,logoDark:t,mobile:r=!1}){return(0,g.jsxs)(fe,{href:"/",className:ze(r?"py-1":"py-2"),children:[(0,g.jsx)(te.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}}),(0,g.jsx)(te.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}})]})}var Y=require("lucide-react"),oe=["light","dark"];function Ge({title:e,logoLight:t,logoDark:r,menuItems:o,isMenuOpen:s=!0}){let[a,l]=(0,G.useState)(!1),[i,p]=(0,G.useState)(!1),[h,x]=(0,G.useState)(!1),[v,N]=(0,G.useState)("light");(0,G.useEffect)(()=>{let d=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]),(0,G.useEffect)(()=>{let d=localStorage.getItem("theme")||"light";N(d),document.documentElement.setAttribute("class",d)},[]);let k=()=>{let d=oe[(oe.indexOf(v)+1)%oe.length];N(d),document.documentElement.setAttribute("class",d),localStorage.setItem("theme",d)};return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${a||s?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,g.jsx)("nav",{className:"backdrop-blur-sm text-white p-0",children:(0,g.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,g.jsx)(re,{logoDark:r,logoLight:t,mobile:!0}),(0,g.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,g.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,g.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,g.jsx)(L.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,g.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:k,children:(0,g.jsxs)("div",{className:"relative",children:[(0,g.jsx)(Y.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,g.jsx)(Y.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,g.jsxs)(w.Dialog,{open:i,onClose:p,className:"lg:hidden",children:[(0,g.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,g.jsxs)(w.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between",children:[(0,g.jsx)("a",{href:"/",className:"-m-1.5 p-1.5 outline-none",children:(0,g.jsx)(re,{logoDark:r,logoLight:t,mobile:!0})}),(0,g.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,g.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,g.jsx)(L.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,g.jsx)("div",{className:"mt-6 flow-root",children:(0,g.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,g.jsx)("div",{className:"space-y-2 py-6",children:o.map(d=>(0,g.jsx)(Se,{...d},d.name))})})})]})]})]})})}function Se({name:e,items:t,actions:r,href:o}){return!t&&o?(0,g.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,g.jsxs)(w.Disclosure,{as:"div",className:"-mx-3",children:[(0,g.jsx)(w.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,g.jsx)(w.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(s=>(0,g.jsx)(w.DisclosureButton,{as:"a",href:s.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:s.name},s.name))})]})}var Re=({type:e="solid",iconName:t="cloud",size:r="lg",className:o})=>{let s="fa-"+e+" ",a="fa-"+t,l=o!=null?o:"",i=s+a+" fa-"+r+" "+l;return(0,g.jsx)("i",{className:i})};var De="../../cortex-reply-light-27IMI3G7.png";var Te="../../cortex-reply-dark-XPAJJJYY.png";var Nt={title:"Header/HeaderMobile",component:Ge},kt=e=>(0,g.jsx)(Re,{iconName:"github",type:"brands",...e}),Ct={args:{title:"Your Company",logoDark:Te,logoLight:De,menuItems:[{name:"Product",items:[{name:"Analytics",description:"Understand your traffic",href:"#",icon:L.ChartPieIcon},{name:"Engagement",description:"Interact with customers",href:"#",icon:L.CursorArrowRaysIcon},{name:"Security",description:"Protect your data",href:"#",icon:L.FingerPrintIcon}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:L.ChartPieIcon},{name:"API Reference",href:"#",icon:L.CursorArrowRaysIcon},{name:"Github",href:"#",icon:kt}],actions:[{name:"Watch demo",href:"#",icon:_.PlayCircleIcon},{name:"Contact sales",href:"#",icon:_.PhoneIcon},{name:"View all products",href:"#",icon:_.RectangleGroupIcon}]},{name:"Company",href:"#"}]}};0&&(module.exports={Primary});
|
|
4
|
+
"use strict";var Ge=Object.create;var _=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var Me=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Te=Object.prototype.hasOwnProperty;var Le=(e,t)=>{for(var r in t)_(e,r,{get:t[r],enumerable:!0})},ce=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Me(t))!Te.call(e,a)&&a!==r&&_(e,a,{get:()=>t[a],enumerable:!(o=Re(t,a))||o.enumerable});return e};var de=(e,t,r)=>(r=e!=null?Ge(De(e)):{},ce(t||!e||!e.__esModule?_(r,"default",{value:e,enumerable:!0}):r,e)),Ee=e=>ce(_({},"__esModule",{value:!0}),e);var xt={};Le(xt,{Primary:()=>yt,default:()=>ft});module.exports=Ee(xt);var P=require("react"),C=require("@headlessui/react"),X=require("@heroicons/react/24/outline");var pe=de(require("next/link")),me=require("react/jsx-runtime");function ue({children:e,href:t,openNewTab:r,...o}){return(0,me.jsx)(pe.default,{href:t,target:r?"_blank":"_self",...o,children:e})}var Z=de(require("next/image"));var ke=require("clsx");var Q="-",Ae=e=>{let t=He(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(Q);return s[0]===""&&s.length!==1&&s.shift(),fe(s,t)||Fe(i)},getConflictingClassGroupIds:(i,s)=>{let m=r[i]||[];return s&&o[i]?[...m,...o[i]]:m}}},fe=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?fe(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(Q);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},ge=/^\[(.+)\]$/,Fe=e=>{if(ge.test(e)){let t=ge.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},He=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Be(Object.entries(e.classGroups),r).forEach(([n,i])=>{q(i,o,n,t)}),o},q=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:be(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Je(a)){q(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{q(i,be(t,n),r,o)})})},be=(e,t)=>{let r=e;return t.split(Q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Je=e=>e.isThemeGetter,Be=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Oe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},he="!",_e=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{let m=[],b=0,f=0,x;for(let g=0;g<s.length;g++){let y=s[g];if(b===0){if(y===a&&(o||s.slice(g,g+n)===t)){m.push(s.slice(f,g)),f=g+n;continue}if(y==="/"){x=g;continue}}y==="["?b++:y==="]"&&b--}let w=m.length===0?s:s.substring(f),u=w.startsWith(he),k=u?w.substring(1):w,h=x&&x>f?x-f:void 0;return{modifiers:m,hasImportantModifier:u,baseClassName:k,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:i}):i},Ue=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Xe=e=>({cache:Oe(e.cacheSize),parseClassName:_e(e),...Ae(e)}),We=/\s+/,je=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(We),s="";for(let m=i.length-1;m>=0;m-=1){let b=i[m],{modifiers:f,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:u}=r(b),k=!!u,h=o(k?w.substring(0,u):w);if(!h){if(!k){s=b+(s.length>0?" "+s:s);continue}if(h=o(w),!h){s=b+(s.length>0?" "+s:s);continue}k=!1}let g=Ue(f).join(":"),y=x?g+he:g,v=y+h;if(n.includes(v))continue;n.push(v);let L=a(h,k);for(let R=0;R<L.length;++R){let J=L[R];n.push(y+J)}s=b+(s.length>0?" "+s:s)}return s};function Ve(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ye(t))&&(o&&(o+=" "),o+=r);return o}var ye=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ye(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ye(e,...t){let r,o,a,n=i;function i(m){let b=t.reduce((f,x)=>x(f),e());return r=Xe(b),o=r.cache.get,a=r.cache.set,n=s,s(m)}function s(m){let b=o(m);if(b)return b;let f=je(m,r);return a(m,f),f}return function(){return n(Ve.apply(null,arguments))}}var d=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,Ke=new Set(["px","full","screen"]),qe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,et=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>M(e)||Ke.has(e)||$e.test(e),S=e=>D(e,"length",ct),M=e=>!!e&&!Number.isNaN(Number(e)),K=e=>D(e,"number",M),A=e=>!!e&&Number.isInteger(Number(e)),rt=e=>e.endsWith("%")&&M(e.slice(0,-1)),l=e=>xe.test(e),z=e=>qe.test(e),ot=new Set(["length","size","percentage"]),nt=e=>D(e,ot,we),st=e=>D(e,"position",we),at=new Set(["image","url"]),it=e=>D(e,at,pt),lt=e=>D(e,"",dt),F=()=>!0,D=(e,t,r)=>{let o=xe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ct=e=>Qe.test(e)&&!Ze.test(e),we=()=>!1,dt=e=>et.test(e),pt=e=>tt.test(e);var ut=()=>{let e=d("colors"),t=d("spacing"),r=d("blur"),o=d("brightness"),a=d("borderColor"),n=d("borderRadius"),i=d("borderSpacing"),s=d("borderWidth"),m=d("contrast"),b=d("grayscale"),f=d("hueRotate"),x=d("invert"),w=d("gap"),u=d("gradientColorStops"),k=d("gradientColorStopPositions"),h=d("inset"),g=d("margin"),y=d("opacity"),v=d("padding"),L=d("saturate"),R=d("scale"),J=d("sepia"),re=d("skew"),oe=d("space"),ne=d("translate"),j=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",l,t],p=()=>[l,t],se=()=>["",N,S],B=()=>["auto",M,l],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",l],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[M,l];return{cacheSize:500,separator:":",theme:{colors:[F],spacing:[N,S],blur:["none","",z,l],brightness:I(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:p(),borderWidth:se(),contrast:I(),grayscale:E(),hueRotate:I(),invert:E(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[rt,S],inset:Y(),margin:Y(),opacity:I(),padding:p(),saturate:I(),scale:I(),sepia:E(),skew:I(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),l]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",A,l]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",A,l]}],"grid-cols":[{"grid-cols":[F]}],"col-start-end":[{col:["auto",{span:["full",A,l]},l]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[F]}],"row-start-end":[{row:["auto",{span:[A,l]},l]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",z,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"font-family":[{font:[F]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",M,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,S]}],"underline-offset":[{"underline-offset":["auto",N,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),st]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},it]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:O()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[N,l]}],"outline-w":[{outline:[N,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[N,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,lt]}],"shadow-color":[{shadow:[F]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[x]}],saturate:[{saturate:[L]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[A,l]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,S,K]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ve=Ye(ut);function U(...e){return ve((0,ke.clsx)(e))}function ee({logoLight:e,logoDark:t,mobile:r=!1}){return(0,me.jsxs)(ue,{href:"/",className:U(r?"py-1":"py-2"),children:[(0,me.jsx)(Z.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}}),(0,me.jsx)(Z.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:r?35:50}})]})}var W=require("lucide-react");var te=["light","dark"];function Ce({logoLight:e,logoDark:t,menuItems:r,isMenuOpen:o=!0}){let[a,n]=(0,P.useState)(!1),[i,s]=(0,P.useState)(!1),[m,b]=(0,P.useState)(!1),[f,x]=(0,P.useState)("light");(0,P.useEffect)(()=>{let u=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,P.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";x(u),document.documentElement.setAttribute("class",u)},[]);let w=()=>{let u=te[(te.indexOf(f)+1)%te.length];x(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u)};return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${a||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,me.jsx)("nav",{className:U("backdrop-blur-sm text-white p-0",i&&"hidden"),children:(0,me.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,me.jsx)(ee,{logoDark:t,logoLight:e,mobile:!0}),(0,me.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,me.jsxs)("button",{type:"button",onClick:()=>s(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,me.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,me.jsx)(X.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,me.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:w,children:(0,me.jsxs)("div",{className:"relative",children:[(0,me.jsx)(W.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,me.jsx)(W.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,me.jsxs)(C.Dialog,{open:i,onClose:s,className:"lg:hidden",children:[(0,me.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,me.jsxs)(C.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,me.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,me.jsx)(ee,{logoDark:t,logoLight:e,mobile:!0}),(0,me.jsxs)("button",{type:"button",onClick:()=>s(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,me.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,me.jsx)(X.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,me.jsx)("div",{className:"mt-6 flow-root",children:(0,me.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,me.jsx)("div",{className:"space-y-2 px-2 py-6",children:r&&r.map(u=>(0,me.jsx)(mt,{...u},u.name))})})})]})]})]})})}function mt({name:e,items:t,actions:r,href:o}){return!t&&o?(0,me.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,me.jsxs)(C.Disclosure,{as:"div",className:"-mx-3",children:[(0,me.jsx)(C.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,me.jsx)(C.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(a=>(0,me.jsx)(C.DisclosureButton,{as:"a",href:a.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:a.name},a.name))})]})}var T=require("@heroicons/react/20/solid");var Ie=({type:e="solid",iconName:t="cloud",size:r="lg",className:o})=>{let a=e.includes("fa-")?e+" ":"fa-"+e+" ",n="fa-"+t,i=o!=null?o:"",s=a+n+" fa-"+r+" "+i;return(0,me.jsx)("i",{className:s})};var Se="../../cortex-reply-light-27IMI3G7.png";var ze="../../cortex-reply-dark-XPAJJJYY.png";var ft={title:"Header/HeaderMobile",component:Ce},ht=e=>(0,me.jsx)(Ie,{iconName:"github",type:"brands",...e}),yt={args:{logoDark:ze,logoLight:Se,menuItems:[{name:"Product",items:[{name:"Analytics",description:"Understand your traffic",href:"#",icon:X.ChartPieIcon},{name:"Engagement",description:"Interact with customers",href:"#",icon:X.CursorArrowRaysIcon},{name:"Security",description:"Protect your data",href:"#",icon:X.FingerPrintIcon}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:X.ChartPieIcon},{name:"API Reference",href:"#",icon:X.CursorArrowRaysIcon},{name:"Github",href:"#",icon:ht}],actions:[{name:"Watch demo",href:"#",icon:T.PlayCircleIcon},{name:"Contact sales",href:"#",icon:T.PhoneIcon},{name:"View all products",href:"#",icon:T.RectangleGroupIcon}]},{name:"Company",href:"#"}]}};0&&(module.exports={Primary});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"../../chunk-WU3JMLSC.mjs";import{a as t}from"../../chunk-BZAYEKYC.mjs";import{a as e}from"../../chunk-
|
|
1
|
+
import{a as r}from"../../chunk-WU3JMLSC.mjs";import{a as t}from"../../chunk-BZAYEKYC.mjs";import{a as e}from"../../chunk-I2GY5WTT.mjs";import"../../chunk-HAYRX2WO.mjs";import{a as o}from"../../chunk-SABHLBUI.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-D2WXBUVJ.mjs";import{ChartPieIcon as n,CursorArrowRaysIcon as a,FingerPrintIcon as c}from"@heroicons/react/24/outline";import{PhoneIcon as m,PlayCircleIcon as f,RectangleGroupIcon as s}from"@heroicons/react/20/solid";import{jsx as y}from"react/jsx-runtime";var I={title:"Header/HeaderMobile",component:e},p=i=>y(o,{iconName:"github",type:"brands",...i}),P={args:{logoDark:r,logoLight:t,menuItems:[{name:"Product",items:[{name:"Analytics",description:"Understand your traffic",href:"#",icon:n},{name:"Engagement",description:"Interact with customers",href:"#",icon:a},{name:"Security",description:"Protect your data",href:"#",icon:c}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:n},{name:"API Reference",href:"#",icon:a},{name:"Github",href:"#",icon:p}],actions:[{name:"Watch demo",href:"#",icon:f},{name:"Contact sales",href:"#",icon:m},{name:"View all products",href:"#",icon:s}]},{name:"Company",href:"#"}]}};export{P as Primary,I as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var h=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var I=(r,a)=>{for(var l in a)h(r,l,{get:a[l],enumerable:!0})},$=(r,a,l,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of D(a))!H.call(r,t)&&t!==l&&h(r,t,{get:()=>a[t],enumerable:!(i=M(a,t))||i.enumerable});return r};var C=r=>$(h({},"__esModule",{value:!0}),r);var z={};I(z,{SimpleHeader:()=>B});module.exports=C(z);var m=require("react"),n=require("@headlessui/react"),f=require("@heroicons/react/24/outline"),d=require("@heroicons/react/20/solid");var s=require("react/jsx-runtime"),T=({name:r,items:a,actions:l=[],href:i})=>!a&&i?(0,s.jsxs)("a",{href:i,className:"relative inline-block text-sm font-semibold text-foreground group",children:[r,(0,s.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}):(0,s.jsxs)(n.Popover,{children:[(0,s.jsxs)(n.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,s.jsxs)("span",{className:"relative",children:[r,(0,s.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,s.jsx)(d.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,s.jsxs)(n.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,s.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:a&&a.map(t=>(0,s.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,s.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,s.jsx)(t.icon,{"aria-hidden":"true",size:"6x"})}),(0,s.jsxs)("a",{href:t.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[t.name,(0,s.jsx)("span",{className:"absolute inset-0"})]}),(0,s.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:t.description})]},t.name))}),l.length>0&&(0,s.jsx)("div",{className:"bg-gray-50",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,s.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:l.map(t=>(0,s.jsxs)("a",{href:t.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,s.jsx)(t.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),t.name]},t.name))})})})]})]}),w=T;var g=["light","dark","green"];function B({title:r,logo:a,menuItems:l}){let[i,t]=(0,m.useState)(!1),[j,E]=(0,m.useState)(!1),[x,b]=(0,m.useState)("light"),p=a==null?void 0:a.split(".")[0],u=a==null?void 0:a.split(".")[1],[P,v]=(0,m.useState)(`${p}.${u}`),y=o=>{g.includes(o)?v(o==="light"?`${p}.${u}`:`${p}-${o}.${u}`):v(`${p}.${u}`)};(0,m.useEffect)(()=>{let o=localStorage.getItem("theme")||"light";console.log("storedTheme",o),b(o),document.documentElement.setAttribute("class",o),y(o)},[]);let k=()=>{let o=g[(g.indexOf(x)+1)%g.length];b(o),document.documentElement.setAttribute("class",o),localStorage.setItem("theme",o),y(o)};return(0,s.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,s.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,s.jsx)("div",{className:"flex lg:flex-1",children:(0,s.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:r}),(0,s.jsx)("img",{alt:r,src:P,className:"h-9 w-auto"})]})}),(0,s.jsx)("div",{className:"flex lg:hidden",children:(0,s.jsxs)("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,s.jsx)(f.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,s.jsx)(n.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:l.map(o=>(0,s.jsx)(w,{...o},o.name))}),(0,s.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,s.jsx)("button",{onClick:k,className:"p-2 text-gray-700 outline-none",children:x==="dark"?(0,s.jsx)(d.SunIcon,{className:"h-6 w-6"}):x==="green"?(0,s.jsx)(d.MoonIcon,{className:"h-6 w-6"}):(0,s.jsx)(d.SunIcon,{className:"h-6 w-6"})})})]}),(0,s.jsxs)(n.Dialog,{open:i,onClose:t,className:"lg:hidden",children:[(0,s.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,s.jsxs)(n.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,s.jsx)("img",{alt:r,src:a,className:"h-8 w-auto"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,s.jsx)(f.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,s.jsx)("div",{className:"mt-6 flow-root",children:(0,s.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,s.jsx)("div",{className:"space-y-2 py-6",children:l.map(o=>(0,s.jsx)(S,{...o},o.name))})})})]})]})]})}function S({name:r,items:a,actions:l,href:i}){return!a&&i?(0,s.jsx)("a",{href:i,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:r}):(0,s.jsxs)(n.Disclosure,{as:"div",className:"-mx-3",children:[(0,s.jsx)(n.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:r}),(0,s.jsx)(n.DisclosurePanel,{className:"mt-2 space-y-2",children:a&&a.map(t=>(0,s.jsx)(n.DisclosureButton,{as:"a",href:t.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:t.name},t.name))})]})}0&&(module.exports={SimpleHeader});
|
|
4
|
+
"use strict";"use client";var h=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var I=(r,a)=>{for(var l in a)h(r,l,{get:a[l],enumerable:!0})},$=(r,a,l,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of D(a))!H.call(r,t)&&t!==l&&h(r,t,{get:()=>a[t],enumerable:!(i=M(a,t))||i.enumerable});return r};var C=r=>$(h({},"__esModule",{value:!0}),r);var z={};I(z,{SimpleHeader:()=>B});module.exports=C(z);var m=require("react"),n=require("@headlessui/react"),f=require("@heroicons/react/24/outline"),d=require("@heroicons/react/20/solid");var s=require("react/jsx-runtime"),T=({name:r,items:a,actions:l=[],href:i})=>!a&&i?(0,s.jsxs)("a",{href:i,className:"relative inline-block text-sm font-semibold text-foreground group",children:[r,(0,s.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}):(0,s.jsxs)(n.Popover,{children:[(0,s.jsxs)(n.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,s.jsxs)("span",{className:"relative",children:[r,(0,s.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,s.jsx)(d.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,s.jsxs)(n.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,s.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:a&&a.map(t=>(0,s.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,s.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,s.jsx)(t.icon,{"aria-hidden":"true",size:"6x"})}),(0,s.jsxs)("a",{href:t.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[t.name,(0,s.jsx)("span",{className:"absolute inset-0"})]}),(0,s.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:t.description})]},t.name))}),l.length>0&&(0,s.jsx)("div",{className:"bg-gray-50",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,s.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:l.map(t=>(0,s.jsxs)("a",{href:t.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,s.jsx)(t.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),t.name]},t.name))})})})]})]}),w=T;var g=["light","dark","green"];function B({title:r,logo:a,menuItems:l}){let[i,t]=(0,m.useState)(!1),[j,E]=(0,m.useState)(!1),[x,b]=(0,m.useState)("light"),p=a==null?void 0:a.split(".")[0],u=a==null?void 0:a.split(".")[1],[P,v]=(0,m.useState)(`${p}.${u}`),y=o=>{g.includes(o)?v(o==="light"?`${p}.${u}`:`${p}-${o}.${u}`):v(`${p}.${u}`)};(0,m.useEffect)(()=>{let o=localStorage.getItem("theme")||"light";console.log("storedTheme",o),b(o),document.documentElement.setAttribute("class",o),y(o)},[]);let k=()=>{let o=g[(g.indexOf(x)+1)%g.length];b(o),document.documentElement.setAttribute("class",o),localStorage.setItem("theme",o),y(o)};return(0,s.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,s.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,s.jsx)("div",{className:"flex lg:flex-1",children:(0,s.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:r}),(0,s.jsx)("img",{alt:r,src:P,className:"h-9 w-auto"})]})}),(0,s.jsx)("div",{className:"flex lg:hidden",children:(0,s.jsxs)("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,s.jsx)(f.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,s.jsx)(n.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:l.map(o=>(0,s.jsx)(w,{...o},o.name))}),(0,s.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,s.jsx)("button",{onClick:k,className:"p-2 text-gray-700 outline-none",children:x==="dark"?(0,s.jsx)(d.SunIcon,{className:"h-6 w-6"}):x==="green"?(0,s.jsx)(d.MoonIcon,{className:"h-6 w-6"}):(0,s.jsx)(d.SunIcon,{className:"h-6 w-6"})})})]}),(0,s.jsxs)(n.Dialog,{open:i,onClose:t,className:"lg:hidden",children:[(0,s.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,s.jsxs)(n.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,s.jsx)("img",{alt:r,src:a,className:"h-8 w-auto"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,s.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,s.jsx)(f.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,s.jsx)("div",{className:"mt-6 flow-root",children:(0,s.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,s.jsx)("div",{className:"space-y-2 py-6",children:l.map(o=>(0,s.jsx)(S,{...o},o.name))})})})]})]})]})}function S({name:r,items:a,actions:l,href:i}){return!a&&i?(0,s.jsx)("a",{href:i,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:r}):(0,s.jsxs)(n.Disclosure,{as:"div",className:"-mx-3",children:[(0,s.jsx)(n.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:r}),(0,s.jsx)(n.DisclosurePanel,{className:"mt-2 space-y-2",children:a&&a.map(t=>(0,s.jsx)(n.DisclosureButton,{as:"a",href:t.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:t.name},t.name))})]})}0&&(module.exports={SimpleHeader});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-WASENCYA.mjs";import"../../chunk-LZII3MF4.mjs";import"../../chunk-D2WXBUVJ.mjs";export{a as SimpleHeader};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var b=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var E=(
|
|
4
|
+
"use strict";var b=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var E=(o,a)=>{for(var i in a)b(o,i,{get:a[i],enumerable:!0})},G=(o,a,i,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let t of z(a))!B.call(o,t)&&t!==i&&b(o,t,{get:()=>a[t],enumerable:!(s=$(a,t))||s.enumerable});return o};var O=o=>G(b({},"__esModule",{value:!0}),o);var Y={};E(Y,{Primary:()=>W,default:()=>L});module.exports=O(Y);var m=require("react"),l=require("@headlessui/react"),y=require("@heroicons/react/24/outline"),g=require("@heroicons/react/20/solid");var r=require("react/jsx-runtime"),j=({name:o,items:a,actions:i=[],href:s})=>!a&&s?(0,r.jsxs)("a",{href:s,className:"relative inline-block text-sm font-semibold text-foreground group",children:[o,(0,r.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}):(0,r.jsxs)(l.Popover,{children:[(0,r.jsxs)(l.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,r.jsxs)("span",{className:"relative",children:[o,(0,r.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,r.jsx)(g.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,r.jsxs)(l.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,r.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:a&&a.map(t=>(0,r.jsxs)("div",{className:"group relative rounded-lg g-6 text-sm/6 box-border",children:[(0,r.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-lg bg-popover text-foreground group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,r.jsx)(t.icon,{"aria-hidden":"true",size:"6x"})}),(0,r.jsxs)("a",{href:t.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[t.name,(0,r.jsx)("span",{className:"absolute inset-0"})]}),(0,r.jsx)("g",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:t.description})]},t.name))}),i.length>0&&(0,r.jsx)("div",{className:"bg-gray-50",children:(0,r.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,r.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:i.map(t=>(0,r.jsxs)("a",{href:t.href,className:"flex items-center justify-center gap-x-2.5 g-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,r.jsx)(t.icon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-gray-400"}),t.name]},t.name))})})})]})]}),D=j;var h=["light","dark","green"];function M({title:o,logo:a,menuItems:i}){let[s,t]=(0,m.useState)(!1),[N,P]=(0,m.useState)(!1),[u,I]=(0,m.useState)("light"),f=a==null?void 0:a.split(".")[0],x=a==null?void 0:a.split(".")[1],[R,v]=(0,m.useState)(`${f}.${x}`),w=n=>{h.includes(n)?v(n==="light"?`${f}.${x}`:`${f}-${n}.${x}`):v(`${f}.${x}`)};(0,m.useEffect)(()=>{let n=localStorage.getItem("theme")||"light";console.log("storedTheme",n),I(n),document.documentElement.setAttribute("class",n),w(n)},[]);let T=()=>{let n=h[(h.indexOf(u)+1)%h.length];I(n),document.documentElement.setAttribute("class",n),localStorage.setItem("theme",n),w(n)};return(0,r.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,r.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between g-3 lg:px-8",children:[(0,r.jsx)("div",{className:"flex lg:flex-1",children:(0,r.jsxs)("a",{href:"#",className:"-m-1.5 g-1.5 outline-none",children:[(0,r.jsx)("span",{className:"sr-only",children:o}),(0,r.jsx)("img",{alt:o,src:R,className:"h-9 w-auto"})]})}),(0,r.jsx)("div",{className:"flex lg:hidden",children:(0,r.jsxs)("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md g-2.5 text-gray-700 outline-none",children:[(0,r.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,r.jsx)(y.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,r.jsx)(l.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:i.map(n=>(0,r.jsx)(D,{...n},n.name))}),(0,r.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,r.jsx)("button",{onClick:T,className:"g-2 text-gray-700 outline-none",children:u==="dark"?(0,r.jsx)(g.SunIcon,{className:"h-6 w-6"}):u==="green"?(0,r.jsx)(g.MoonIcon,{className:"h-6 w-6"}):(0,r.jsx)(g.SunIcon,{className:"h-6 w-6"})})})]}),(0,r.jsxs)(l.Dialog,{open:s,onClose:t,className:"lg:hidden",children:[(0,r.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,r.jsxs)(l.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("a",{href:"#",className:"-m-1.5 g-1.5 outline-none",children:[(0,r.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,r.jsx)("img",{alt:o,src:a,className:"h-8 w-auto"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 rounded-md g-2.5 text-gray-700 outline-none",children:[(0,r.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,r.jsx)(y.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,r.jsx)("div",{className:"mt-6 flow-root",children:(0,r.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,r.jsx)("div",{className:"space-y-2 py-6",children:i.map(n=>(0,r.jsx)(A,{...n},n.name))})})})]})]})]})}function A({name:o,items:a,actions:i,href:s}){return!a&&s?(0,r.jsx)("a",{href:s,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:o}):(0,r.jsxs)(l.Disclosure,{as:"div",className:"-mx-3",children:[(0,r.jsx)(l.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:o}),(0,r.jsx)(l.DisclosurePanel,{className:"mt-2 space-y-2",children:a&&a.map(t=>(0,r.jsx)(l.DisclosureButton,{as:"a",href:t.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:t.name},t.name))})]})}var H=({type:o="solid",iconName:a="cloud",size:i="lg",className:s})=>{let t=o.includes("fa-")?o+" ":"fa-"+o+" ",N="fa-"+a,P=s!=null?s:"",u=t+N+" fa-"+i+" "+P;return(0,r.jsx)("i",{className:u})};var L={title:"Header/SimpleHeader",component:M},F=o=>(0,r.jsx)(H,{iconName:"github",type:"brands",...o}),W={args:{title:"Your Company",logo:"cortex-reply.png",menuItems:[{name:"Product",items:[{name:"Analytics",description:"Understand your traffic",href:"#",icon:y.ChartPieIcon},{name:"Engagement",description:"Interact with customers",href:"#",icon:y.CursorArrowRaysIcon},{name:"Security",description:"Protect your data",href:"#",icon:y.FingerPrintIcon}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:y.ChartPieIcon},{name:"API Reference",href:"#",icon:y.CursorArrowRaysIcon},{name:"Github",href:"#",icon:F}],actions:[{name:"Watch demo",href:"#",icon:g.PlayCircleIcon},{name:"Contact sales",href:"#",icon:g.PhoneIcon},{name:"View all products",href:"#",icon:g.RectangleGroupIcon}]},{name:"Company",href:"#"}]}};0&&(module.exports={Primary});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../chunk-
|
|
1
|
+
import{a as o}from"../../chunk-WASENCYA.mjs";import"../../chunk-LZII3MF4.mjs";import{a as e}from"../../chunk-SABHLBUI.mjs";import"../../chunk-D2WXBUVJ.mjs";import{ChartPieIcon as r,CursorArrowRaysIcon as t,FingerPrintIcon as a}from"@heroicons/react/24/outline";import{PhoneIcon as i,PlayCircleIcon as c,RectangleGroupIcon as m}from"@heroicons/react/20/solid";import{jsx as s}from"react/jsx-runtime";var l={title:"Header/SimpleHeader",component:o},p=n=>s(e,{iconName:"github",type:"brands",...n}),u={args:{title:"Your Company",logo:"cortex-reply.png",menuItems:[{name:"Product",items:[{name:"Analytics",description:"Understand your traffic",href:"#",icon:r},{name:"Engagement",description:"Interact with customers",href:"#",icon:t},{name:"Security",description:"Protect your data",href:"#",icon:a}]},{name:"Resources",items:[{name:"Documentation",href:"#",icon:r},{name:"API Reference",href:"#",icon:t},{name:"Github",href:"#",icon:p}],actions:[{name:"Watch demo",href:"#",icon:c},{name:"Contact sales",href:"#",icon:i},{name:"View all products",href:"#",icon:m}]},{name:"Company",href:"#"}]}};export{u as Primary,l as default};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { StaticImageData } from 'next/image';
|
|
2
|
-
|
|
2
|
+
import { type HeaderMenuProps } from './HeaderMenu';
|
|
3
|
+
export declare function VideoHeader({ logoVideo, logoLight, logoDark, menuItems }: {
|
|
3
4
|
logoVideo: StaticImageData;
|
|
4
5
|
logoLight: StaticImageData;
|
|
5
6
|
logoDark: StaticImageData;
|
|
7
|
+
menuItems?: HeaderMenuProps[];
|
|
6
8
|
}): import("react/jsx-runtime").JSX.Element;
|