1import{D as e,E as t,Ht as n,Lt as r,On as i,Qn as a,Tn as o,Ut as s,_ as c,b as l,bt as u,ct as d,er as f,et as p,g as m,jt as h,k as g,mt as _,nr as v,o as y,qt as b,tt as x,u as S,un as C,v as w,vn as T,wn as E,wt as D,xt as O,y as k,z as A}from"./Ib1jYPSS.js";import{T as ee,w as j}from"./CLlOHeIq.js";import{t as te}from"./BnkKQQ8w.js";import{rt as M}from"./CqIq-PLn.js";import{t as N}from"./BW3xJdEx.js";import{t as P}from"./DsIbDjJh.js";import{r as F}from"./B5tEj6Uj.js";import{h as I,i as L,l as ne,o as R,t as z}from"./Ce-9qidD.js";import{t as B}from"./DWEoD8ZB.js";import{D as re,_ as ie,c as ae,v as V,y as oe}from"./5CncodWL.js";import{S as H,f as se,i as ce,t as le,w as ue}from"./B5MLGF2n.js";import{t as U}from"./CWibC7jz.js";import{a as de,n as fe,r as pe,s as me,t as he}from"./BnHUO-FN.js";import{t as ge}from"./BoKofeXp2.js";import{t as W}from"./9zzQVcXL2.js";import{t as G}from"./Cv3i5RHv2.js";import{s as _e}from"./CoMvp5gt2.js";import{t as ve}from"./BWOv8bjD2.js";import{t as ye}from"./DvtvJo5T2.js";import{n as be,r as xe}from"./B6t9jypC2.js";import{t as K}from"./DkpuMg0q2.js";import{t as Se}from"./CfHOLCDk2.js";import{n as Ce,r as we}from"./C8A5e0ED.js";import{t as Te}from"./ETgiWtfg.js";import{t as Ee}from"./PPtdGvaX.js";import{n as q,r as J,t as Y}from"./BJ_jidhW.js";import{n as De}from"./DJDnXjr6.js";import{t as X}from"./BeONWUPD.js";import{n as Oe,t as ke}from"./DmWMXzQb.js";import{t as Ae}from"./DyZZeFzt.js";import{t as je}from"./Clw9TBBN.js";import{t as Me}from"./DfnUcVgZ.js";import{t as Ne}from"./EZ1KTpnV.js";import{i as Pe,r as Fe,t as Ie}from"./8Mr3lrW7.js";import{n as Le}from"./BYpGnJ93.js";import{t as Re}from"./DoaoENNx.js";import{t as ze}from"./xqxNQVCv.js";import{a as Be,r as Ve}from"./LhdohRHK2.js";function Z(e){return e?`open`:`closed`}function He(e,t){return`${e}-trigger-${t}`}function Ue(e,t){return`${e}-content-${t}`}var We=`navigationMenu.linkSelect`,Q=`navigationMenu.rootContentDismiss`;function Ge(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ke(e){let t=B();return e.some(e=>e===t||(e.focus(),B()!==t))}function qe(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute(`tabindex`,t)})}}function Je(e){return t=>t.pointerType===`mouse`?e(t):void 0}var[$,Ye]=I([`NavigationMenuRoot`,`NavigationMenuSub`],`NavigationMenuContext`),Xe=g({__name:`NavigationMenuRoot`,props:{modelValue:{type:String,required:!1,default:void 0},defaultValue:{type:String,required:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:`horizontal`},delayDuration:{type:Number,required:!1,default:200},skipDelayDuration:{type:Number,required:!1,default:300},disableClickTrigger:{type:Boolean,required:!1,default:!1},disableHoverTrigger:{type:Boolean,required:!1,default:!1},disablePointerLeaveClose:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`nav`}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=t,a=ue(r,`modelValue`,n,{defaultValue:r.defaultValue??``,passive:r.modelValue===void 0}),c=T(``),{forwardRef:l,currentElement:u}=G(),d=T(),f=T(),p=T(),{getItems:h,CollectionSlot:g}=K({key:`NavigationMenu`,isProvider:!0}),{delayDuration:v,skipDelayDuration:y,dir:x,disableClickTrigger:S,disableHoverTrigger:C,unmountOnHide:E}=o(r),D=ge(x),k=oe(!1,y),A=T(!1),ee=m(()=>a.value!==``||k.value?150:v.value),j=re(e=>{if(typeof e==`string`){if(e===``&&A.value){A.value=!1;return}c.value=a.value,a.value=e,e===``&&(k.value=!0)}},ee);s(()=>{if(!a.value)return;let e=h().map(e=>e.ref);p.value=e.find(e=>e.id.includes(a.value))}),se(u,Q,M),Ye({isRootMenu:!0,modelValue:a,previousValue:c,baseId:te(void 0,`reka-navigation-menu`),disableClickTrigger:S,disableHoverTrigger:C,dir:D,unmountOnHide:E,orientation:r.orientation,rootNavigationMenu:u,indicatorTrack:d,activeTrigger:p,onIndicatorTrackChange:e=>{d.value=e},viewport:f,onViewportChange:e=>{f.value=e},onTriggerEnter:e=>{a.value===``?j(e):(A.value=!0,c.value=a.value,a.value=e)},onTriggerLeave:()=>{A.value=!1,j(``)},onContentEnter:()=>{j()},onContentLeave:()=>{r.disablePointerLeaveClose||(A.value=!1,j(``))},onItemSelect:e=>{c.value=a.value,a.value=e},onItemDismiss:M});function M(){c.value=a.value,a.value=``}return(t,n)=>(_(),w(i(g),null,{default:b(()=>[e(i(U),{ref:i(l),as:t.as,"as-child":t.asChild,"data-orientation":t.orientation,dir:i(D),"data-reka-navigation-menu":``},{default:b(()=>[O(t.$slots,`default`,{modelValue:i(a)})]),_:3},8,[`as`,`as-child`,`data-orientation`,`dir`])]),_:3}))}}),[Ze,Qe]=I(`NavigationMenuItem`),$e=g({__name:`NavigationMenuItem`,props:{value:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},setup(e){let t=e;G();let{getItems:n}=K({key:`NavigationMenu`}),r=$(),a=te(t.value),o=T(),s=T(),c=Ue(r.baseId,a),l=()=>({}),u=T(!1);async function d(e=`start`){let t=document.getElementById(c);if(t){l();let n=Ge(t);n.length&&Ke(e===`start`?n:n.reverse())}}function f(){let e=document.getElementById(c);if(e){let t=Ge(e);t.length&&(l=qe(t))}}Qe({value:a,contentId:c,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:u,onEntryKeyDown:d,onFocusProxyEnter:d,onContentFocusOutside:f,onRootContentClose:f});function p(){r.onItemDismiss(),o.value?.focus()}function m(e){let t=B();if(e.keyCode===32||e.key===`Enter`){if(r.modelValue.value===a){p(),e.preventDefault();return}e.target.click(),e.preventDefault();return}let i=n().filter(e=>e.ref.parentElement?.hasAttribute(`data-menu-item`)).map(e=>e.ref);if(!i.includes(t))return;let o=me(e,t,void 0,{itemsArray:i,loop:!1});o&&o?.focus(),e.preventDefault(),e.stopPropagation()}return(e,t)=>(_(),w(i(U),{"as-child":e.asChild,as:e.as,"data-menu-item":``,onKeydown:j(m,[`up`,`down`,`left`,`right`,`home`,`end`,`space`])},{default:b(()=>[O(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),et=g({__name:`NavigationMenuContentImpl`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,{getItems:a}=K({key:`NavigationMenu`}),{forwardRef:o,currentElement:c}=G(),l=$(),u=Ze(),d=He(l.baseId,u.value),f=Ue(l.baseId,u.value),h=T(null),g=m(()=>{let e=a().map(e=>e.ref.id.split(`trigger-`)[1]);l.dir.value===`rtl`&&e.reverse();let t=e.indexOf(l.modelValue.value),n=e.indexOf(l.previousValue.value),r=u.value===l.modelValue.value,i=n===e.indexOf(u.value);if(!r&&!i)return h.value;let o=(()=>
1{if(t!==n){if(r&&n!==-1)return t>n?`from-end`:`from-start`;if(i&&t!==-1)return t>n?`to-start`:`to-end`}return null})();return h.value=o,o});function v(e){if(r(`focusOutside`,e),r(`interactOutside`,e),e.detail.originalEvent.target.hasAttribute(`data-navigation-menu-trigger`)&&e.preventDefault(),!e.defaultPrevented){u.onContentFocusOutside();let t=e.target;l.rootNavigationMenu?.value?.contains(t)&&e.preventDefault()}}function y(e){if(r(`pointerDownOutside`,e),!e.defaultPrevented){let t=e.target,n=a().some(e=>e.ref.contains(t)),r=l.isRootMenu&&l.viewport.value?.contains(t);(n||r||!l.isRootMenu)&&e.preventDefault()}}s(e=>{let t=c.value;if(l.isRootMenu&&t){let n=()=>{l.onItemDismiss(),u.onRootContentClose(),t.contains(B())&&u.triggerRef.value?.focus()};t.addEventListener(Q,n),e(()=>t.removeEventListener(Q,n))}});function x(e){r(`escapeKeyDown`,e),e.defaultPrevented||(l.onItemDismiss(),u.triggerRef?.value?.focus(),u.wasEscapeCloseRef.value=!0)}function S(e){if(e.target.closest(`[data-reka-navigation-menu]`)!==l.rootNavigationMenu.value)return;let t=e.altKey||e.ctrlKey||e.metaKey,n=e.key===`Tab`&&!t,r=Ge(e.currentTarget);if(n){let t=B(),n=r.findIndex(e=>e===t);if(Ke(e.shiftKey?r.slice(0,n).reverse():r.slice(n+1,r.length)))e.preventDefault();else{u.focusProxyRef.value?.focus();return}}me(e,B(),void 0,{itemsArray:r,loop:!1,enableIgnoredElement:!0})?.focus()}function C(){if(l.modelValue.value!==u.value)return;let e=new Event(Q,{bubbles:!0,cancelable:!0});c.value?.dispatchEvent(e)}return(e,t)=>(_(),w(i(xe),p({id:i(f),ref:i(o),"aria-labelledby":i(d),"data-motion":g.value,"data-state":i(Z)(i(l).modelValue.value===i(u).value),"data-orientation":i(l).orientation},n,{onKeydown:S,onEscapeKeyDown:x,onPointerDownOutside:y,onFocusOutside:v,onDismiss:C}),{default:b(()=>[O(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`data-motion`,`data-state`,`data-orientation`]))}}),tt=g({inheritAttrs:!1,__name:`NavigationMenuContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(t,{emit:n}){let r=t,a=n,o=_e(ie(r,`forceMount`),a),{forwardRef:s}=G(),c=$(),l=Ze(),u=m(()=>l.value===c.modelValue.value),d=m(()=>c.viewport.value&&!c.modelValue.value&&c.previousValue.value?c.previousValue.value===l.value:!1);return(t,n)=>(_(),w(S,{to:i(ae)&&i(c).viewport.value?i(c).viewport.value:`body`,disabled:i(ae)&&i(c).viewport.value?!i(c).viewport.value:!0},[e(i(ve),{present:t.forceMount||u.value||d.value,"force-mount":!i(c).unmountOnHide.value},{default:b(({present:r})=>[e(et,p({ref:i(s),"data-state":i(Z)(u.value),style:{pointerEvents:!u.value&&i(c).isRootMenu?`none`:void 0}},{...t.$attrs,...i(o)},{hidden:!r,onPointerenter:n[0]||=e=>i(c).onContentEnter(i(l).value),onPointerleave:n[1]||=e=>i(Je)(()=>i(c).onContentLeave())(e),onPointerDownOutside:n[2]||=e=>a(`pointerDownOutside`,e),onFocusOutside:n[3]||=e=>a(`focusOutside`,e),onInteractOutside:n[4]||=e=>a(`interactOutside`,e)}),{default:b(()=>[O(t.$slots,`default`)]),_:2},1040,[`data-state`,`style`,`hidden`])]),_:3},8,[`present`,`force-mount`])],8,[`to`,`disabled`]))}}),nt=g({inheritAttrs:!1,__name:`NavigationMenuIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){let n=t,{forwardRef:r}=G(),a=$(),o=T(),c=m(()=>a.orientation===`horizontal`),l=m(()=>!!a.modelValue.value),{activeTrigger:u}=a;function d(){u.value&&(o.value={size:c.value?u.value.offsetWidth:u.value.offsetHeight,position:c.value?u.value.offsetLeft:u.value.offsetTop})}return s(()=>{a.modelValue.value&&d()}),H(u,d),H(a.indicatorTrack,d),(t,s)=>i(a).indicatorTrack.value?(_(),w(S,{key:0,to:i(a).indicatorTrack.value},[e(i(ve),{present:t.forceMount||l.value},{default:b(()=>[e(i(U),p({ref:i(r),"aria-hidden":`true`,"data-state":l.value?`visible`:`hidden`,"data-orientation":i(a).orientation,"as-child":n.asChild,as:t.as,style:{...o.value?{"--reka-navigation-menu-indicator-size":`${o.value.size}px`,"--reka-navigation-menu-indicator-position":`${o.value.position}px`}:{}}},t.$attrs),{default:b(()=>[O(t.$slots,`default`)]),_:3},16,[`data-state`,`data-orientation`,`as-child`,`as`,`style`])]),_:3},8,[`present`])],8,[`to`])):k(`v-if`,!0)}}),rt=g({__name:`NavigationMenuLink`,props:{active:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`a`}},emits:[`select`],setup(t,{emit:n}){let r=t,a=n,{CollectionItem:o}=K({key:`NavigationMenu`});G();async function s(e){let t=new CustomEvent(We,{bubbles:!0,cancelable:!0,detail:{originalEvent:e}});if(a(`select`,t),!t.defaultPrevented&&!e.metaKey){let t=new CustomEvent(Q,{bubbles:!0,cancelable:!0});e.target?.dispatchEvent(t)}}return(t,n)=>(_(),w(i(o),null,{default:b(()=>[e(i(U),{as:t.as,"data-active":t.active?``:void 0,"aria-current":t.active?`page`:void 0,"as-child":r.asChild,onClick:s},{default:b(()=>[O(t.$slots,`default`)]),_:3},8,[`as`,`data-active`,`aria-current`,`as-child`])]),_:3}))}}),it=g({inheritAttrs:!1,__name:`NavigationMenuList`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ul`}},setup(t){let n=t,r=$(),{forwardRef:a,currentElement:o}=G();return d(()=>{r.onIndicatorTrackChange(o.value)}),(t,o)=>(_(),w(i(U),{ref:i(a),style:{position:`relative`}},{default:b(()=>[e(i(U),p(t.$attrs,{"as-child":n.asChild,as:t.as,"data-orientation":i(r).orientation}),{default:b(()=>[O(t.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-orientation`])]),_:3},512))}}),at=[`aria-owns`],ot=g({inheritAttrs:!1,__name:`NavigationMenuTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(t){let n=t,r=$(),a=Ze(),{CollectionItem:o}=K({key:`NavigationMenu`}),{forwardRef:s,currentElement:c}=G(),u=T(``),f=T(``),h=oe(!1,300),g=T(!1),v=m(()=>a.value===r.modelValue.value);d(()=>{a.triggerRef=c,u.value=He(r.baseId,a.value),f.value=Ue(r.baseId,a.value)});function x(){r.disableHoverTrigger.value||(g.value=!1,a.wasEscapeCloseRef.value=!1)}function S(e){if(!r.disableHoverTrigger.value&&e.pointerType===`mouse`){if(n.disabled||g.value||a.wasEscapeCloseRef.value||h.value)return;r.onTriggerEnter(a.value),h.value=!0}}function C(e){if(!r.disableHoverTrigger.value&&e.pointerType===`mouse`){if(n.disabled)return;r.onTriggerLeave(),h.value=!1}}function w(e){(!(`pointerType`in e)||e.pointerType===`mouse`)&&r.disableClickTrigger.value||h.value||(v.value?r.onItemSelect(``):r.onItemSelect(a.value),g.value=v.value)}function E(e){let t={horizontal:`ArrowDown`,vertical:r.dir.value===`rtl`?`ArrowLeft`:`ArrowRight`}[r.orientation];v.value&&e.key===t&&(a.onEntryKeyDown(),e.preventDefault(),e.stopPropagation())}function D(e){e&&(a.focusProxyRef.value=ce(e))}function A(e){let t=document.getElementById(a.contentId),n=e.relatedTarget,r=n===c.value,i=t?.contains(n);(r||!i)&&a.onFocusProxyEnter(r?`start`:`end`)}return(t,a)=>(_(),l(y,null,[e(i(o),null,{default:b(()=>[e(i(U),p({id:u.value,ref:i(s),disabled:t.disabled,"data-disabled":t.disabled?``:void 0,"data-state":i(Z)(v.value),"data-navigation-menu-trigger":``,"aria-expanded":v.value,"aria-controls":f.value,"as-child":n.asChild,as:t.as},t.$attrs,{onPointerenter:x,onPointermove:S,onPointerleave:C,onClick:w,onKeydown:E}),{default:b(()=>[O(t.$slots,`default`)]),_:3},16,[`id`,`disabled`,`data-disabled`,`data-state`,`aria-expanded`,`aria-controls`,`as-child`,`as`])]),_:3}),v.value?(_(),l(y,{key:0},[e(i(Se),{ref:D,"aria-hidden":`true`,tabindex:0,onFocus:A}),i(r).viewport?(_(),l(`span`,{key:0,"aria-owns":f.value},null,8,at)):k(`v-if`,!0)],64)):k(`v-if`,!0)],64))}}),st=g({inheritAttrs:!1,__name:`NavigationMenuViewport`,props:{forceMount:{type:Boolean,required:!1},align:{type:String,required:!1,default:`center`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){let r=t,{forwardRef:a,currentElement:o}=G(),s=$(),{activeTrigger:c,rootNavigationMenu:l,modelValue:u}=s,d=T(),f=T(),h=m(()=>!!s.modelValue.value);n(o,()=>{s.onViewportChange(o.value)});let g=T();n([u,h],()=>{x(()=>{o.value&&requestAnimationFrame(()=>{let e=o.value?.querySelector(`[data-state=open]`);g.value=e})})},{immediate:!0});function v(){if(g.value&&c.value&&l.value){let e=document.documentElement.offsetWidth,t=document.documentElement.offsetHeight,n=l.value.getBoundingClientRect(),i=c.value.getBoundingClientRect(),{offsetWidth:a,offsetHeight:o}=g.value,s=i.left-n.left,u=i.top-n.top,d=null,p=null;switch(r.align){case`start`:d=s,p=u;break;case`end`:d=s-a+i.width,p=u-o+i.height;break;default:d=s-a/2+i.width/2,p=u-o/2+i.height/2}d+n.left<10&&(d=10-n.left);let m=d+n.left+a;m>
1e-10&&(d-=m-e+10,d<10-n.left&&(d=10-n.left)),p+n.top<10&&(p=10-n.top);let h=p+n.top+o;h>t-10&&(p-=h-t+10,p<10-n.top&&(p=10-n.top)),d=Math.round(d),p=Math.round(p),f.value={left:d,top:p}}}return H(g,()=>{g.value&&(d.value={width:g.value.offsetWidth,height:g.value.offsetHeight},v())}),H([globalThis.document?.body,l],()=>{v()}),(t,n)=>(_(),w(i(ve),{present:t.forceMount||h.value,"force-mount":!i(s).unmountOnHide.value,onAfterLeave:n[2]||=()=>{d.value=void 0,f.value=void 0}},{default:b(({present:r})=>[e(i(U),p(t.$attrs,{ref:i(a),as:t.as,"as-child":t.asChild,"data-state":i(Z)(h.value),"data-orientation":i(s).orientation,style:{pointerEvents:!h.value&&i(s).isRootMenu?`none`:void 0,"--reka-navigation-menu-viewport-width":d.value?`${d.value?.width}px`:void 0,"--reka-navigation-menu-viewport-height":d.value?`${d.value?.height}px`:void 0,"--reka-navigation-menu-viewport-left":f.value?`${f.value?.left}px`:void 0,"--reka-navigation-menu-viewport-top":f.value?`${f.value?.top}px`:void 0},hidden:!r,onPointerenter:n[0]||=e=>i(s).onContentEnter(i(s).modelValue.value),onPointerleave:n[1]||=e=>i(Je)(()=>i(s).onContentLeave())(e)}),{default:b(()=>[O(t.$slots,`default`)]),_:2},1040,[`as`,`as-child`,`data-state`,`data-orientation`,`style`,`hidden`])]),_:3},8,[`present`,`force-mount`]))}}),ct={slots:{content:`bg-default shadow-lg rounded-md ring ring-default data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-popover-content-transform-origin) focus:outline-none pointer-events-auto`,arrow:`fill-bg stroke-default`}},lt={__name:`UPopover`,props:{mode:{type:null,required:!1,default:`click`},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},dismissible:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},modal:{type:Boolean,required:!1},openDelay:{type:Number,required:!1,default:0},closeDelay:{type:Number,required:!1,default:0},enableTouch:{type:Boolean,required:!1}},emits:[`close:prevent`,`update:open`],setup(t,{emit:n}){let o=t,s=n,c=r(),l=L(`popover`,o),u=F(),d=l.mode===`hover`?V(l,`defaultOpen`,`open`,`openDelay`,`closeDelay`,`enableTouch`):V(l,`defaultOpen`,`open`,`modal`),g=W(d,s),v=be(E(()=>l.portal)),y=E(()=>N(l.content,{side:`bottom`,sideOffset:8,collisionPadding:8})),x=m(()=>l.dismissible?{pointerDownOutside:ye}:[`interactOutside`,`escapeKeyDown`].reduce((e,t)=>(e[t]=e=>{e.preventDefault(),s(`close:prevent`)},e),{})),S=E(()=>N(l.arrow,{rounded:!0})),C=m(()=>z({extend:ct,...u.ui?.popover||{}})({side:y.value.side})),T=m(()=>l.mode===`hover`?Ce:we);return(t,n)=>(_(),w(i(T).Root,f(A(i(g))),{default:b(({open:n,close:r})=>[c.default?(_(),w(i(T).Trigger,{key:0,"as-child":``,class:a(i(l).class)},{default:b(()=>[O(t.$slots,`default`,{open:n})]),_:2},1032,[`class`])):k(``,!0),`Anchor`in T.value&&c.anchor?(_(),w(i(T).Anchor,{key:1,"as-child":``},{default:b(()=>[O(t.$slots,`anchor`,f(A(r?{close:r}:{})))]),_:2},1024)):k(``,!0),e(i(T).Portal,f(A(i(v))),{default:b(()=>[e(i(Ae),null,{default:b(()=>[e(i(T).Content,p(y.value,{reference:i(l).reference??i(l).content?.reference,"data-slot":`content`,class:C.value.content({class:[!c.default&&i(l).class,i(l).ui?.content]})},h(x.value)),{default:b(()=>[O(t.$slots,`content`,f(A(r?{close:r}:{}))),i(l).arrow?(_(),w(i(T).Arrow,p({key:0},S.value,{"data-slot":`arrow`,class:C.value.arrow({class:i(l).ui?.arrow})}),null,16,[`class`])):k(``,!0)]),_:2},1040,[`reference`,`class`])]),_:2},1024)]),_:2},1040)]),_:3},16))}},ut={slots:{root:`relative flex gap-1.5 [&>div]:min-w-0`,list:`isolate min-w-0`,label:`w-full flex items-center gap-1.5 font-semibold text-xs/5 text-highlighted px-2.5 py-1.5`,item:`min-w-0`,link:`group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:outline-3`,linkLeadingIcon:`shrink-0 size-5`,linkLeadingAvatar:`shrink-0`,linkLeadingAvatarSize:`2xs`,linkLeadingChipSize:`sm`,linkTrailing:`group ms-auto inline-flex gap-1.5 items-center`,linkTrailingBadge:`shrink-0`,linkTrailingBadgeSize:`sm`,linkTrailingIcon:`size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200`,linkLabel:`truncate`,linkLabelExternalIcon:`inline-block size-3 align-top text-dimmed`,childList:`isolate`,childLabel:`text-xs text-highlighted`,childItem:``,childLink:`group relative size-full flex items-start text-start text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:outline-3`,childLinkWrapper:`min-w-0`,childLinkIcon:`size-5 shrink-0`,childLinkLabel:`truncate`,childLinkLabelExternalIcon:`inline-block size-3 align-top text-dimmed`,childLinkDescription:`text-muted`,separator:`px-2 h-px bg-border`,viewportWrapper:`absolute top-full start-0 flex w-full`,viewport:`relative overflow-hidden bg-default shadow-lg rounded-md ring ring-default h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left,right] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] z-1`,content:``,indicator:`absolute left-0 data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-2 w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200`,arrow:`relative top-[50%] size-2.5 rotate-45 border border-default bg-default z-1 rounded-xs`},variants:{color:{primary:{link:`before:outline-primary/25`,childLink:`before:outline-primary/25`},secondary:{link:`before:outline-secondary/25`,childLink:`before:outline-secondary/25`},success:{link:`before:outline-success/25`,childLink:`before:outline-success/25`},info:{link:`before:outline-info/25`,childLink:`before:outline-info/25`},warning:{link:`before:outline-warning/25`,childLink:`before:outline-warning/25`},error:{link:`before:outline-error/25`,childLink:`before:outline-error/25`},neutral:{link:`before:outline-inverted/25`,childLink:`before:outline-inverted/25`}},highlightColor:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{pill:``,link:``},orientation:{horizontal:{root:`items-center justify-between`,list:`flex items-center`,item:`py-2`,link:`px-2.5 py-1.5 before:inset-x-px before:inset-y-0`,childList:`grid p-2`,childLink:`px-3 py-2 gap-2 before:inset-x-px before:inset-y-0`,childLinkLabel:`font-medium`,content:`absolute top-0 start-0 w-full max-h-[70vh] overflow-y-auto`},vertical:{root:`flex-col`,link:`flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0`,childLabel:`px-1.5 py-0.5`,childLink:`p-1.5 gap-1.5 before:inset-y-px before:inset-x-0`}},contentOrientation:{horizontal:{viewportWrapper:`justify-center`,content:`data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]`},vertical:{viewport:`sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left) rtl:left-auto rtl:right-[calc(100%-var(--reka-navigation-menu-viewport-left)-var(--reka-navigation-menu-viewport-width))]`}},active:{true:{childLink:`before:bg-elevated text-highlighted`,childLinkIcon:`text-default`},false:{link:`text-muted`,linkLeadingIcon:`text-dimmed`,childLink:[`hover:before:bg-elevated/50 text-default hover:text-highlighted`,`transition-colors before:transition-colors`],childLinkIcon:[`text-dimmed group-hover:text-default`,`transition-colors`]}},disabled:{true:{link:`cursor-not-allowed opacity-75`}},highlight:{true:``},level:{true:``},collapsed:{true:``}},compoundVariants:[{orientation:`horizontal`,contentOrientation:`horizontal`,class:{childList:`grid-cols-2 gap-2`}},{orientation:`horizontal`,contentOrientation:`vertical`,class:{childList:`gap-1`,content:`w-60`}},{orientation:`vertical`,collapsed:!1,class:{childList:`ms-5 border-s border-default`,childItem:`ps-1.5 -ms-px`,content:`data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] data-[state=closed]:overflow-hidden`}},{orientation:`vertical`,collapsed:!0,class:{link:`px-1.5`,linkLabel:`hidden`,linkTrailing:`hidden`,content:`shadow-sm rounded-sm min-h-6 p-1`}},{orientation:`horizontal`,highlight:!0,class:{link:[`after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full`,`after:transition-colors`]}},{orientation:`vertical`,highlight:!0,level:!0,class:{link:[`after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full`,`after:transition-colors`]}},{disabled:!1,active:!1,variant:`pill`,class:{link:[`hover:text-highlighted hover:before:bg-elevated/50`,`transition-colors before:transition-colors`],linkLeadingIcon:[`group-hover:text-default`,`transition-colors`]}},{disabled:!1,active:!1,variant:`pill`,orientation:`horizontal`,class:{link:`data-[state=open]:text-highlighted`,linkLeadingIcon:`group-data-[state=open]:text-default`}},{disabled:!1,variant:`pill`,highlight:!0,orientation:`horizontal`,class:{link:`data-[state=open]:before:bg-elevated/50`}},{disabled:!1,variant:`pill`,highlight:!1,active:!1,orientation:`horizontal`,class:{link:`data-[state=open]:before:bg-elevated/50`}},{color:`primary`,variant:`pill`,active:!0,class:{link:`text-primary`,linkLeadingIcon:`text-primary group-data-[state=open]:text-primary`}},{color:`secondary`,variant:`pill`,active:!0,class:{link:`text-secondary`,linkLeadingIcon:`text-secondary group-data-[state=open]:text-secondary`}},{color:`success`,variant:`pill`,active:!0,class:{link:`text-success`,linkLeadingIcon:`text-success group-data-[state=open]:text-success`}},{color:`info`,variant:`pill`,active:!0,class:{link:`text-info`,linkLeadingIcon:`text-info group-data-[state=open]:text-info`}},{color:`warning`,variant:`pill`,active:!0,class:{link:`text-warning`,linkLeadingIcon:`text-warning group-data-[state=open]:text-warning`}},{color:`error`,variant:`pill`,active:!0,class:{link:`text-error`,linkLeadingIcon:`text-error group-data-[state=open]:text-error`}},{color:`neutral`,variant:`pill`,active:!0,class:{link:`text-highlighted`,linkLeadingIcon:`text-highlighted group-data-[state=open]:text-highlighted`}},{variant:`pill`,active:!0,highlight:!1,class:{link:`before:bg-elevated`}},{variant:`pill`,active:!0,highlight:!0,disabled:!1,class:{link:[`hover:before:bg-elevated/50`,`before:transition-colors`]}},{disabled:!1,active:!1,variant:`link`,class:{link:[`hover:text-highlighted`,`transition-colors`],linkLeadingIcon:[`group-hover:text-default`,`transition-colors`]}},{disabled:!1,active:!1,variant:`link`,orientation:`horizontal`,class:{link:`data-[state=open]:text-highlighted`,linkLeadingIcon:`group-data-[state=open]:text-default`}},{color:`primary`,variant:`link`,active:!0,class:{link:`text-primary`,linkLeadingIcon:`text-primary group-data-[state=open]:text-primary`}},{color:`secondary`,variant:`link`,active:!0,class:{link:`text-secondary`,linkLeadingIcon:`text-secondary group-data-[state=open]:text-secondary`}},{color:`success`,variant:`link`,active:!0,class:{link:`text-success`,linkLeadingIcon:`text-success group-data-[state=open]:text-success`}},{color:`info`,variant:`link`,active:!0,class:{link:`text-info`,linkLeadingIcon:`text-info group-data-[state=open]:text-info`}},{color:`warning`,variant:`link`,active:!0,class:{link:`text-warning`,linkLeadingIcon:`text-warning group-data-[state=open]:text-warning`}},{color:`error`,variant:`link`,active:!0,class:{link:`text-error`,linkLeadingIcon:`text-error group-data-[state=open]:text-error`}},{color:`neutral`,variant:`link`,active:!0,class:{link:`text-highlighted`,linkLeadingIcon:`text-highlighted group-data-[state=open]:text-highlighted`}},{highlightColor:`primary`,highlight:!0,level:!0,active:!0,class:{link:`after:bg-primary`}},{highlightColor:`secondary`,highlight:!0,level:!0,active:!0,class:{link:`after:bg-secondary`}},{highlightColor:`success`,highlight:!0,level:!0,active:!0,class:{link:`after:bg-success`}},{highlightColor:`info`,highlight:!0,level:!0,active:!0,class:{link:`after:bg-info`}},{highlightColor:`warning`,highlight:!0,level:!0,active:!0,class:{link:`after:bg-warning`}},{highlightColor:`error`,highlight:!0,level:!0,active:!0,class:{link:`after:bg-error`}},{highlightColor:`neutral`,highlight:!0,level:!0,active:!0,class:{link:`after:bg-inverted`}}],defaultVariants:{color:`primary`,highlightColor:`primary`,variant:`pill`}},dt=Object.assign({inheritAttrs:!1},{__name:`UNavigationMenu`,props:{as:{type:null,required:!1},type:{type:null,required:!1,default:`multiple`},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},trailingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},items:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},collapsed:{type:Boolean,required:!1},tooltip:{type:[Boolean,Object],required:!1},popover:{type:[Boolean,Object],required:!1},highlight:{type:Boolean,required:!1},highlightColor:{type:null,required:!1},content:{type:Object,required:!1},contentOrientation:{type:null,required:!1,default:`horizontal`},arrow:{type:Boolean,required:!1},valueKey:{type:null,required:!1,default:`value`},labelKey:{type:null,required:!1,default:`label`},class:{type:null,required:!1},ui:{type:Object,required:!1},delayDuration:{type:Number,required:!1,default:0},disableClickTrigger:{type:Boolean,required:!1},disableHoverTrigger:{type:Boolean,required:!1},skipDelayDuration:{type:Number,required:!1},disablePointerLeaveClose:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1},collapsible:{type:Boolean,required:!1,default:!0}},emits:[`update:modelValue`],setup(n,{emit:o}){let s=n,d=o,f=r(),h=L(`navigationMenu`,s),g=F(),x=W(m(()=>({as:h.as,delayDuration:h.delayDuration,skipDelayDuration:h.skipDelayDuration,orientation:h.orientation,disableClickTrigger:h.disableClickTrigger,disableHoverTrigger:h.disableHoverTrigger,disablePointerLeaveClose:h.disablePointerLeaveClose,unmountOnHide:h.unmountOnHide})),d),S=W(V(h,`collapsible`,`disabled`,`type`,`unmountOnHide`),d),C=E(()=>h.content),T=E(()=>N(typeof h.tooltip==`boolean`?{}
1:h.tooltip,{...h.orientation===`vertical`&&{delayDuration:0,content:{side:`right`}}})),A=E(()=>N(typeof h.popover==`boolean`?{}:h.popover,{mode:`hover`,content:{side:`right`,align:`start`,alignOffset:2}})),[ee,j]=le(),[te,M]=le({props:{item:Object,index:Number,level:Number,listIndex:Number}}),P=m(()=>z({extend:ut,...g.ui?.navigationMenu||{}})({orientation:h.orientation,contentOrientation:h.orientation===`vertical`?void 0:h.contentOrientation,collapsed:h.collapsed,color:h.color,variant:h.variant,highlight:h.highlight,highlightColor:h.highlightColor||h.color})),I=m(()=>h.items?.length?ne(h.items)?h.items:[h.items]:[]);function B(e,t,n,r){let i=I.value.length>1?`group-${r}-`:``;return R(e,h.valueKey)??(n>0?`${i}item-${n}-${t}`:`${i}item-${t}`)}function re(e,t=0,n=0){let r=e.reduce((e,r,i)=>((r.defaultOpen||r.open)&&e.push(B(r,i,t,n)),e),[]);return h.type===`single`?r[0]:r}function ie(e,t){t.children?.length&&(h.orientation===`horizontal`?e.preventDefault():h.orientation===`vertical`&&!h.collapsed&&(e.preventDefault(),e.stopPropagation()))}return(n,r)=>(_(),l(y,null,[e(i(ee),null,{default:b(({item:r,active:o,index:s})=>[O(n.$slots,r.slot||`item`,{item:r,index:s,active:o,ui:P.value},()=>[O(n.$slots,r.slot?`${r.slot}-leading`:`item-leading`,{item:r,active:o,index:s,ui:P.value},()=>[r.avatar?(_(),w(ke,p({key:0,size:r.ui?.linkLeadingAvatarSize||i(h).ui?.linkLeadingAvatarSize||P.value.linkLeadingAvatarSize()},r.avatar,{"data-slot":`linkLeadingAvatar`,class:P.value.linkLeadingAvatar({class:[i(h).ui?.linkLeadingAvatar,r.ui?.linkLeadingAvatar],active:o,disabled:!!r.disabled})}),null,16,[`size`,`class`])):r.icon&&r.chip?(_(),w(Oe,p({key:1,size:r.ui?.linkLeadingChipSize||i(h).ui?.linkLeadingChipSize||P.value.linkLeadingChipSize(),inset:``},typeof r.chip==`object`?r.chip:{},{"data-slot":`linkLeadingChip`}),{default:b(()=>[e(X,{name:r.icon,"data-slot":`linkLeadingIcon`,class:a(P.value.linkLeadingIcon({class:[i(h).ui?.linkLeadingIcon,r.ui?.linkLeadingIcon],active:o,disabled:!!r.disabled}))},null,8,[`name`,`class`])]),_:2},1040,[`size`])):r.icon?(_(),w(X,{key:2,name:r.icon,"data-slot":`linkLeadingIcon`,class:a(P.value.linkLeadingIcon({class:[i(h).ui?.linkLeadingIcon,r.ui?.linkLeadingIcon],active:o,disabled:!!r.disabled}))},null,8,[`name`,`class`])):k(``,!0)]),i(R)(r,i(h).labelKey)||f[r.slot?`${r.slot}-label`:`item-label`]?(_(),l(`span`,{key:0,"data-slot":`linkLabel`,class:a(P.value.linkLabel({class:[i(h).ui?.linkLabel,r.ui?.linkLabel]}))},[O(n.$slots,r.slot?`${r.slot}-label`:`item-label`,{item:r,active:o,index:s},()=>[t(v(i(R)(r,i(h).labelKey)),1)]),r.target===`_blank`&&i(h).externalIcon!==!1?(_(),w(X,{key:0,name:typeof i(h).externalIcon==`string`?i(h).externalIcon:i(g).ui.icons.external,"data-slot":`linkLabelExternalIcon`,class:a(P.value.linkLabelExternalIcon({class:[i(h).ui?.linkLabelExternalIcon,r.ui?.linkLabelExternalIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0)],2)):k(``,!0),r.badge||r.badge===0||i(h).orientation===`horizontal`&&(r.children?.length||f[r.slot?`${r.slot}-content`:`item-content`])||i(h).orientation===`vertical`&&r.children?.length||r.trailingIcon||f[r.slot?`${r.slot}-trailing`:`item-trailing`]?(_(),w(D(i(h).orientation===`vertical`&&r.children?.length&&!i(h).collapsed?i(he):`span`),{key:1,as:i(h).orientation===`vertical`&&r.children?.length&&!i(h).collapsed?`span`:void 0,"data-slot":`linkTrailing`,class:a(P.value.linkTrailing({class:[i(h).ui?.linkTrailing,r.ui?.linkTrailing]})),onClick:e=>ie(e,r)},{default:b(()=>[O(n.$slots,r.slot?`${r.slot}-trailing`:`item-trailing`,{item:r,active:o,index:s,ui:P.value},()=>[r.badge||r.badge===0?(_(),w(Me,p({key:0,color:`neutral`,variant:`outline`,size:r.ui?.linkTrailingBadgeSize||i(h).ui?.linkTrailingBadgeSize||P.value.linkTrailingBadgeSize()},typeof r.badge==`string`||typeof r.badge==`number`?{label:r.badge}:r.badge,{"data-slot":`linkTrailingBadge`,class:P.value.linkTrailingBadge({class:[i(h).ui?.linkTrailingBadge,r.ui?.linkTrailingBadge]})}),null,16,[`size`,`class`])):k(``,!0),i(h).orientation===`horizontal`&&(r.children?.length||f[r.slot?`${r.slot}-content`:`item-content`])||i(h).orientation===`vertical`&&r.children?.length?(_(),w(X,{key:1,name:r.trailingIcon||i(h).trailingIcon||i(g).ui.icons.chevronDown,"data-slot":`linkTrailingIcon`,class:a(P.value.linkTrailingIcon({class:[i(h).ui?.linkTrailingIcon,r.ui?.linkTrailingIcon],active:o}))},null,8,[`name`,`class`])):r.trailingIcon?(_(),w(X,{key:2,name:r.trailingIcon,"data-slot":`linkTrailingIcon`,class:a(P.value.linkTrailingIcon({class:[i(h).ui?.linkTrailingIcon,r.ui?.linkTrailingIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0)])]),_:2},1032,[`as`,`class`,`onClick`])):k(``,!0)])]),_:3}),e(i(te),null,{default:b(({item:r,index:o,level:s=0,listIndex:d=0})=>[(_(),w(D(i(h).orientation===`vertical`&&!i(h).collapsed?i(pe):i($e)),p({as:`li`},i(h).orientation===`vertical`&&!i(h).collapsed?{disabled:!!r.disabled}:{},{value:B(r,o,s,d)}),{default:b(()=>[i(h).orientation===`vertical`&&r.type===`label`&&!i(h).collapsed?(_(),l(`div`,{key:0,"data-slot":`label`,class:a(P.value.label({class:[i(h).ui?.label,r.ui?.label,r.class]}))},[e(i(j),{item:r,index:o},null,8,[`item`,`index`])],2)):r.type===`label`?k(``,!0):(_(),w(Y,p({key:1},i(h).orientation===`vertical`&&r.children?.length&&!i(h).collapsed&&r.type===`trigger`?{}:i(J)(r),{custom:``}),{default:b(({active:d,...m})=>[(_(),w(D(i(h).orientation===`horizontal`&&(r.children?.length||f[r.slot?`${r.slot}-content`:`item-content`])?i(ot):i(h).orientation===`vertical`&&r.children?.length&&!i(h).collapsed&&!m.href?i(he):i(rt)),{"as-child":``,active:d||r.active,disabled:r.disabled,onSelect:r.onSelect},{default:b(()=>[i(h).orientation===`vertical`&&i(h).collapsed&&r.children?.length&&(i(h).popover||r.popover)?(_(),w(lt,p({key:0},{...A.value,...typeof r.popover==`boolean`?{}:r.popover||{}},{ui:{content:P.value.content({class:[i(h).ui?.content,r.ui?.content]}
1)}}),{content:b(({close:s})=>[O(n.$slots,r.slot?`${r.slot}-content`:`item-content`,{item:r,active:d||r.active,index:o,ui:P.value,close:s},()=>[c(`ul`,{"data-slot":`childList`,class:a(P.value.childList({class:[i(h).ui?.childList,r.ui?.childList]}))},[c(`li`,{"data-slot":`childLabel`,class:a(P.value.childLabel({class:[i(h).ui?.childLabel,r.ui?.childLabel]}))},v(i(R)(r,i(h).labelKey)),3),(_(!0),l(y,null,u(r.children,(n,o)=>(_(),l(`li`,{key:o,"data-slot":`childItem`,class:a(P.value.childItem({class:[i(h).ui?.childItem,r.ui?.childItem]}))},[e(Y,p({ref_for:!0},i(J)(n),{custom:``}),{default:b(({active:o,...s})=>[e(i(rt),{"as-child":``,active:o,onSelect:n.onSelect},{default:b(()=>[e(q,p({ref_for:!0},s,{"data-slot":`childLink`,class:P.value.childLink({class:[i(h).ui?.childLink,r.ui?.childLink,n.class],active:o})}),{default:b(()=>[n.icon?(_(),w(X,{key:0,name:n.icon,"data-slot":`childLinkIcon`,class:a(P.value.childLinkIcon({class:[i(h).ui?.childLinkIcon,r.ui?.childLinkIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0),c(`span`,{"data-slot":`childLinkLabel`,class:a(P.value.childLinkLabel({class:[i(h).ui?.childLinkLabel,r.ui?.childLinkLabel],active:o}))},[t(v(i(R)(n,i(h).labelKey))+` `,1),n.target===`_blank`&&i(h).externalIcon!==!1?(_(),w(X,{key:0,name:typeof i(h).externalIcon==`string`?i(h).externalIcon:i(g).ui.icons.external,"data-slot":`childLinkLabelExternalIcon`,class:a(P.value.childLinkLabelExternalIcon({class:[i(h).ui?.childLinkLabelExternalIcon,r.ui?.childLinkLabelExternalIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0)],2)]),_:2},1040,[`class`])]),_:2},1032,[`active`,`onSelect`])]),_:2},1040)],2))),128))],2)])]),default:b(()=>[e(q,p(m,{"data-slot":`link`,class:P.value.link({class:[i(h).ui?.link,r.ui?.link,r.class],active:d||r.active,disabled:!!r.disabled,level:s>0})}),{default:b(()=>[e(i(j),{item:r,active:d||r.active,index:o},null,8,[`item`,`active`,`index`])]),_:2},1040,[`class`])]),_:2},1040,[`ui`])):i(h).orientation===`vertical`&&i(h).collapsed&&(i(h).tooltip||r.tooltip)||i(h).orientation===`horizontal`&&r.tooltip?(_(),w(Ee,p({key:1,text:i(R)(r,i(h).labelKey)},{...T.value,...typeof r.tooltip==`boolean`?{}:r.tooltip||{}}),{default:b(()=>[e(q,p(m,{"data-slot":`link`,class:P.value.link({class:[i(h).ui?.link,r.ui?.link,r.class],active:d||r.active,disabled:!!r.disabled,level:s>0})}),{default:b(()=>[e(i(j),{item:r,active:d||r.active,index:o},null,8,[`item`,`active`,`index`])]),_:2},1040,[`class`])]),_:2},1040,[`text`])):(_(),w(q,p({key:2},m,{"data-slot":`link`,class:P.value.link({class:[i(h).ui?.link,r.ui?.link,r.class],active:d||r.active,disabled:!!r.disabled,level:i(h).orientation===`horizontal`||s>0})}),{default:b(()=>[e(i(j),{item:r,active:d||r.active,index:o},null,8,[`item`,`active`,`index`])]),_:2},1040,[`class`]))]),_:2},1064,[`active`,`disabled`,`onSelect`])),i(h).orientation===`horizontal`&&(r.children?.length||f[r.slot?`${r.slot}-content`:`item-content`])?(_(),w(i(tt),p({key:0},C.value,{"data-slot":`content`,class:P.value.content({class:[i(h).ui?.content,r.ui?.content]})}),{default:b(()=>[O(n.$slots,r.slot?`${r.slot}-content`:`item-content`,{item:r,active:d||r.active,index:o,ui:P.value},()=>[c(`ul`,{"data-slot":`childList`,class:a(P.value.childList({class:[i(h).ui?.childList,r.ui?.childList]}))},[(_(!0),l(y,null,u(r.children,(n,o)=>(_(),l(`li`,{key:o,"data-slot":`childItem`,class:a(P.value.childItem({class:[i(h).ui?.childItem,r.ui?.childItem]}))},[e(Y,p({ref_for:!0},i(J)(n),{custom:``}),{default:b(({active:o,...s})=>[e(i(rt),{"as-child":``,active:o,onSelect:n.onSelect},{default:b(()=>[e(q,p({ref_for:!0},s,{"data-slot":`childLink`,class:P.value.childLink({class:[i(h).ui?.childLink,r.ui?.childLink,n.class],active:o})}),{default:b(()=>[n.icon?(_(),w(X,{key:0,name:n.icon,"data-slot":`childLinkIcon`,class:a(P.value.childLinkIcon({class:[i(h).ui?.childLinkIcon,r.ui?.childLinkIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0),c(`div`,{"data-slot":`childLinkWrapper`,class:a(P.value.childLinkWrapper({class:[i(h).ui?.childLinkWrapper,r.ui?.childLinkWrapper]}))},[c(`p`,{"data-slot":`childLinkLabel`,class:a(P.value.childLinkLabel({class:[i(h).ui?.childLinkLabel,r.ui?.childLinkLabel],active:o}))},[t(v(i(R)(n,i(h).labelKey))+` `,1),n.target===`_blank`&&i(h).externalIcon!==!1?(_(),w(X,{key:0,name:typeof i(h).externalIcon==`string`?i(h).externalIcon:i(g).ui.icons.external,"data-slot":`childLinkLabelExternalIcon`,class:a(P.value.childLinkLabelExternalIcon({class:[i(h).ui?.childLinkLabelExternalIcon,r.ui?.childLinkLabelExternalIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0)],2),n.description?(_(),l(`p`,{key:0,"data-slot":`childLinkDescription`,class:a(P.value.childLinkDescription({class:[i(h).ui?.childLinkDescription,r.ui?.childLinkDescription],active:o}))},v(n.description),3)):k(``,!0)],2)]),_:2},1040,[`class`])]),_:2},1032,[`active`,`onSelect`])]),_:2},1040)],2))),128))],2)])]),_:2},1040,[`class`])):k(``,!0)]),_:2},1040)),i(h).orientation===`vertical`&&r.children?.length&&!i(h).collapsed?(_(),w(i(fe),{key:2,"data-slot":`content`,class:a(P.value.content({class:[i(h).ui?.content,r.ui?.content]}
1))},{default:b(()=>[e(i(de),p({...i(S),defaultValue:re(r.children,s+1,d)},{as:`ul`,"data-slot":`childList`,class:P.value.childList({class:[i(h).ui?.childList,r.ui?.childList]})}),{default:b(()=>[(_(!0),l(y,null,u(r.children,(e,t)=>(_(),w(i(M),{key:t,item:e,index:t,level:s+1,"list-index":d,"data-slot":`childItem`,class:a(P.value.childItem({class:[i(h).ui?.childItem,e.ui?.childItem]}))},null,8,[`item`,`index`,`level`,`list-index`,`class`]))),128))]),_:2},1040,[`class`])]),_:2},1032,[`class`])):k(``,!0)]),_:2},1040,[`value`]))]),_:3}),e(i(Xe),p({"data-slot":`root`},{...i(x),...i(h).orientation===`horizontal`?{modelValue:i(h).modelValue,defaultValue:i(h).defaultValue}:{},...n.$attrs},{"data-collapsed":i(h).collapsed,class:P.value.root({class:[i(h).ui?.root,i(h).class]})}),{default:b(()=>[O(n.$slots,`list-leading`),(_(!0),l(y,null,u(I.value,(e,t)=>(_(),l(y,{key:`list-${t}`},[(_(),w(D(i(h).orientation===`vertical`?i(de):i(it)),p({ref_for:!0},i(h).orientation===`vertical`&&!i(h).collapsed?{...i(S),modelValue:i(h).modelValue,defaultValue:i(h).defaultValue??re(e,0,t)}:{},{as:`ul`,"data-slot":`list`,class:P.value.list({class:i(h).ui?.list})}),{default:b(()=>[(_(!0),l(y,null,u(e,(e,n)=>(_(),w(i(M),{key:`list-${t}-${n}`,item:e,index:n,"list-index":t,"data-slot":`item`,class:a(P.value.item({class:[i(h).ui?.item,e.ui?.item]}))},null,8,[`item`,`index`,`list-index`,`class`]))),128))]),_:2},1040,[`class`])),i(h).orientation===`vertical`&&t<I.value.length-1?(_(),l(`div`,{key:0,"data-slot":`separator`,class:a(P.value.separator({class:i(h).ui?.separator}))},null,2)):k(``,!0)],64))),128)),O(n.$slots,`list-trailing`),i(h).orientation===`horizontal`?(_(),l(`div`,{key:0,"data-slot":`viewportWrapper`,class:a(P.value.viewportWrapper({class:i(h).ui?.viewportWrapper}))},[i(h).arrow?(_(),w(i(nt),{key:0,"data-slot":`indicator`,class:a(P.value.indicator({class:i(h).ui?.indicator}))},{default:b(()=>[c(`div`,{"data-slot":`arrow`,class:a(P.value.arrow({class:i(h).ui?.arrow}))},null,2)]),_:1},8,[`class`])):k(``,!0),e(i(st),{"data-slot":`viewport`,class:a(P.value.viewport({class:i(h).ui?.viewport}))},null,8,[`class`])],2)):k(``,!0)]),_:3},16,[`data-collapsed`,`class`])],64))}}),ft=Object.assign(g({__name:`SiteHeader`,setup(t){let n=M(),r=m(()=>[{label:`Docs`,to:`/docs`,active:n.path.startsWith(`/docs`)},{label:`Pricing`,to:`/pricing`,active:n.path.startsWith(`/pricing`)},{label:`Blog`,to:`/blog`,active:n.path.startsWith(`/blog`)},{label:`Tools`,to:`/tools`,active:n.path.startsWith(`/tools`)},{label:`Demo`,to:`https://demo.supersaas.dev`,external:!0,target:`_blank`}]);return(t,n)=>{let a=P,o=dt,s=je,l=Te,u=Pe;return _(),w(u,{ui:{right:`lg:flex-0`}},{left:b(()=>[e(a,{to:`/`,class:`flex items-center gap-2`},{default:b(()=>[...n[0]||=[c(`img`,{src:Fe,alt:`Supersaas`,class:`h-6 sm:h-8 w-auto flex-shrink-0`},null,-1),c(`span`,{class:`text-lg font-bold tracking-tight`},`Super SaaS`,-1)]]),_:1})]),right:b(()=>[e(s,{label:`Buy Once for $149`,color:`neutral`,size:`lg`,class:`rounded-2xl px-4`,to:`essentialPurchaseLink`in t?t.essentialPurchaseLink:i(Le),target:`_blank`},null,8,[`to`])]),body:b(()=>[e(o,{items:i(r),orientation:`vertical`,class:`-mx-2.5`},null,8,[`items`]),e(l,{class:`my-6`}),e(s,{label:`Buy Once for $149`,color:`neutral`,to:`essentialPurchaseLink`in t?t.essentialPurchaseLink:i(Le),target:`_blank`,block:``,class:`rounded-2xl`,size:`xl`},null,8,[`to`])]),default:b(()=>[e(o,{items:i(r),variant:`pill`},null,8,[`items`])]),_:1})}}}),{__name:`SiteHeader`}),pt={slots:{root:`xl:grid xl:grid-cols-3 xl:gap-8`,left:`mb-10 xl:mb-0`,center:`flex flex-col lg:grid grid-flow-col auto-cols-fr gap-8 xl:col-span-2`,right:`mt-10 xl:mt-0`,label:`text-sm font-semibold`,list:`mt-6 space-y-4`,item:`relative`,link:`group text-sm flex items-center gap-1.5 rounded-sm outline-primary/25 focus-visible:outline-3`,linkLeadingIcon:`size-5 shrink-0`,linkLabel:`truncate`,linkLabelExternalIcon:`size-3 absolute top-0 text-dimmed inline-block`},variants:{active:{true:{link:`text-primary font-medium`},false:{link:[`text-muted hover:text-default`,`transition-colors`]}}}},mt={__name:`UFooterColumns`,props:{as:{type:null,required:!1,default:`nav`},class:{type:null,required:!1},columns:{type:Array,required:!1},ui:{type:Object,required:!1}},setup(n){let o=n,s=r(),d=L(`footerColumns`,o),f=F(),h=m(()=>z({extend:pt,...f.ui?.footerColumns||{}})());return(n,r)=>(_(),w(i(U),{as:i(d).as,"data-slot":`root`,class:a(h.value.root({class:[i(d).ui?.root,i(d).class]}))},{default:b(()=>[s.left?(_(),l(`div`,{key:0,"data-slot":`left`,class:a(h.value.left({class:i(d).ui?.left}))},[O(n.$slots,`left`)],2)):k(``,!0),s.default||i(d).columns?.length?(_(),l(`div`,{key:1,"data-slot":`center`,class:a(h.value.center({class:i(d).ui?.center}))},[O(n.$slots,`default`,{},()=>[(_(!0),l(y,null,u(i(d).columns,(r,o)=>(_(),l(`div`,{key:o},[c(`h3`,{"data-slot":`label`,class:a(h.value.label({class:i(d).ui?.label}))},[O(n.$slots,`column-label`,{column:r},()=>[t(v(r.label),1)])],2),c(`ul`,{"data-slot":`list`,class:a(h.value.list({class:i(d).ui?.list}))},[(_(!0),l(y,null,u(r.children,(r,o)=>(_(),l(`li`,{key:o,"data-slot":`item`,class:a(h.value.item({class:[i(d).ui?.item,r.ui?.item]}))},[e(Y,p({ref_for:!0},i(J)(r),{custom:``}),{default:b(({active:o,...c})=>[e(q,p({ref_for:!0},c,{"data-slot":`link`,class:h.value.link({class:[i(d).ui?.link,r.ui?.link,r.class],active:o})}),{default:b(()=>[O(n.$slots,`link`,{link:r,active:o,ui:h.value},()=>[O(n.$slots,`link-leading`,{link:r,active:o,ui:h.value},()=>[r.icon?(_(),w(X,{key:0,name:r.icon,"data-slot":`linkLeadingIcon`,class:a(h.value.linkLeadingIcon({class:[i(d).ui?.linkLeadingIcon,r.ui?.linkLeadingIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0)]),r.label||s[`link-label`]?(_(),l(`span`,{key:0,"data-slot":`linkLabel`,class:a(h.value.linkLabel({class:[i(d).ui?.linkLabel,r.ui?.linkLabel],active:o}))},[O(n.$slots,`link-label`,{link:r,active:o},()=>[t(v(r.label),1)]),r.target===`_blank`?(_(),w(X,{key:0,name:i(f).ui.icons.external,"data-slot":`linkLabelExternalIcon`,class:a(h.value.linkLabelExternalIcon({class:[i(d).ui?.linkLabelExternalIcon,r.ui?.linkLabelExternalIcon],active:o}))},null,8,[`name`,`class`])):k(``,!0)],2)):k(``,!0),O(n.$slots,`link-trailing`,{link:r,active:o})])]),_:2},1040,[`class`])]),_:2},1040)],2))),128))],2)]))),128))])],2)):k(``,!0),s.right?(_(),l(`div`,{key:2,"data-slot":`right`,class:a(h.value.right({class:i(d).ui?.right}))},[O(n.$slots,`right`)],2)):k(``,!0)]),_:3},8,[`as`,`class`]))}}
1,ht={slots:{root:``,top:`py-8 lg:py-12`,bottom:`py-8 lg:py-12`,container:`py-8 lg:py-4 lg:flex lg:items-center lg:justify-between lg:gap-x-3`,left:`flex items-center justify-center lg:justify-start lg:flex-1 gap-x-1.5 mt-3 lg:mt-0 lg:order-1`,center:`mt-3 lg:mt-0 lg:order-2 flex items-center justify-center`,right:`lg:flex-1 flex items-center justify-center lg:justify-end gap-x-1.5 lg:order-3`}},gt={__name:`UFooter`,props:{as:{type:null,required:!1,default:`footer`},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(t){let n=t,o=r(),s=L(`footer`,n),u=F(),d=m(()=>z({extend:ht,...u.ui?.footer||{}})());return(t,n)=>(_(),w(i(U),{as:i(s).as,"data-slot":`root`,class:a(d.value.root({class:[i(s).ui?.root,i(s).class]}))},{default:b(()=>[o.top?(_(),l(`div`,{key:0,"data-slot":`top`,class:a(d.value.top({class:i(s).ui?.top}))},[O(t.$slots,`top`)],2)):k(``,!0),e(Ne,{"data-slot":`container`,class:a(d.value.container({class:i(s).ui?.container}))},{default:b(()=>[c(`div`,{"data-slot":`right`,class:a(d.value.right({class:i(s).ui?.right}))},[O(t.$slots,`right`)],2),c(`div`,{"data-slot":`center`,class:a(d.value.center({class:i(s).ui?.center}))},[O(t.$slots,`default`)],2),c(`div`,{"data-slot":`left`,class:a(d.value.left({class:i(s).ui?.left}))},[O(t.$slots,`left`)],2)]),_:3},8,[`class`]),o.bottom?(_(),l(`div`,{key:1,"data-slot":`bottom`,class:a(d.value.bottom({class:i(s).ui?.bottom}))},[O(t.$slots,`bottom`)],2)):k(``,!0)]),_:3},8,[`as`,`class`]))}},_t={class:`text-muted text-sm`},vt=Object.assign(g({__name:`AppFooter`,setup(t){let n=[{label:`Resources`,children:[{label:`Supersaas Demo`,to:`https://demo.supersaas.dev`,target:`_blank`,external:!0},{label:`Blog`,to:`/blog`},{label:`Docs`,to:`/docs/getting-started`},{label:`Twitter`,to:`https://x.com/fayazara`,target:`_blank`,external:!0},{label:`Email me`,to:`mailto:[email protected]`,target:`_blank`,external:!0},{label:`Discord Community`,to:`https://discord.gg/yqYnveQaeK`,target:`_blank`,external:!0},{label:`Telegram`,to:`https://t.me/fayazara`,target:`_blank`,external:!0},{label:`GitHub`,to:`https://github.com/fayazara`,target:`_blank`,external:!0},{label:`Changelog`,to:`/changelog`}]},{label:`Features`,children:[{label:`Authentication`,to:`/#authentication`},{label:`Database`,to:`/#database`},{label:`Payments`,to:`/#payments`},{label:`Teams`,to:`/#teams`},{label:`Super Admin`,to:`/#super-admin`},{label:`Rich Examples`,to:`/#rich-examples`},{label:`Pricing`,to:`/pricing`},{label:`All Access Pass`,to:`/pricing#all-access`},{label:`FAQ`,to:`/#faq`}]},{label:`Free Tools`,children:[...[`markdown-editor`,`json-formatter`,`password-generator`,`character-counter`,`json-to-xml`,`json-to-csv`,`json-to-yaml`,`domain-finder`,`llm-pricing-calculator`,`code-to-image-generator`,`open-graph-image-generator`].flatMap(e=>{let t=Be.get(e);return t?[{label:t.title,to:Ve(t.slug)}]:[]}),{label:`All Free Tools`,to:`/tools`}]},{label:`Company`,children:[{label:`About`,to:`/about`},{label:`License`,to:`/license`},{label:`Terms of Service`,to:`/terms-of-service`},{label:`Privacy Policy`,to:`/privacy-policy`},{label:`V3 access for existing customers`,to:`/v3-access`}]}],r=De(),a=T(``),o=T(!1);function s(){o.value=!0,r.add({title:`Coming soon`,description:`We're working on a newsletter, please check back soon.`})}return(t,r)=>{let o=Te,u=je,d=Re,f=ze,p=mt,m=Ne,h=Ie,g=gt;return _(),l(y,null,[e(o,{ui:{avatar:`bg-transparent`},avatar:{src:`/logo.svg`,alt:`Supersaas`},class:`h-px pointer-events-none`}),e(g,{ui:{top:`border-b border-default`},exact:``,"exact-hash":``},{top:b(()=>[e(m,null,{default:b(()=>[e(p,{columns:n,exact:``,"exact-hash":``},{right:b(()=>[c(`form`,{onSubmit:ee(s,[`prevent`])},[e(f,{name:`email`,label:`Subscribe to our newsletter`,size:`lg`,help:`Coming soon, working on a newsletter.`},{default:b(()=>[e(d,{modelValue:i(a),"onUpdate:modelValue":r[0]||=e=>C(a)?a.value=e:null,type:`email`,class:`w-full`,placeholder:`Enter your email`},{trailing:b(()=>[e(u,{type:`submit`,size:`xs`,color:`neutral`,label:`Subscribe`})]),_:1},8,[`modelValue`])]),_:1})],32)]),_:1})]),_:1})]),left:b(()=>[c(`p`,_t,` Copyright © supersaas.dev `+v(new Date().getFullYear())+`. All rights reserved. `,1)]),right:b(()=>[e(h)]),_:1})],64)}}}),{__name:`AppFooter`});export{ft as n,vt as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.