@thekestongroup/ui 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,4 +12,4 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`,s=`Warni
12
12
  would route through Vue's \`toDisplayString\`, which JSON-stringifies
13
13
  arrays — the live region would then announce literal \`[\`, quotes
14
14
  and commas instead of the toast title and description.
15
- `),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(S,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:T},[e.createTextVNode(e.toDisplayString(S),1)],64))),128))]),_:1},8,["aria-live"])):e.createCommentVNode("v-if",!0),e.unref(s).viewport.value||e.unref(w)?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:e.unref(s).viewport.value??"body",disabled:!!e.unref(w)},[e.createVNode(e.unref(i),null,{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps({ref:e.unref(a),tabindex:"0"},P.$attrs,{as:t.as,"as-child":t.asChild,"data-state":t.open?"open":"closed","data-swipe-direction":e.unref(s).swipeDirection.value,"data-status":t.toast?.status,"data-expanded":e.unref(s).expanded.value?"":void 0,"data-limited":B.value.limited?"":void 0,inert:B.value.limited||void 0,style:{...e.unref(s).disableSwipe.value?void 0:{userSelect:"none",touchAction:"none"},"--reka-toast-index":B.value.index,"--reka-toast-offset-y":`${B.value.offsetY}px`,"--reka-toast-height":x.height?`${x.height}px`:void 0},onPointerdown:y[0]||(y[0]=e.withModifiers(S=>{e.unref(s).disableSwipe.value||(u.value={x:S.clientX,y:S.clientY})},["left"])),onPointermove:y[1]||(y[1]=S=>{if(e.unref(s).disableSwipe.value||!u.value)return;const T=S.clientX-u.value.x,A=S.clientY-u.value.y,F=!!d.value,q=["left","right"].includes(e.unref(s).swipeDirection.value),D=["left","up"].includes(e.unref(s).swipeDirection.value)?Math.min:Math.max,V=q?D(0,T):0,H=q?0:D(0,A),W=S.pointerType==="touch"?10:2,N={x:V,y:H},Q={originalEvent:S,delta:N};F?(d.value=N,e.unref($t)(e.unref(xf),ae=>r("swipeMove",ae),Q)):e.unref(ur)(N,e.unref(s).swipeDirection.value,W)?(d.value=N,e.unref($t)(e.unref(bf),ae=>r("swipeStart",ae),Q),S.target.setPointerCapture(S.pointerId)):(Math.abs(T)>W||Math.abs(A)>W)&&(u.value=null)}),onPointerup:y[2]||(y[2]=S=>{if(e.unref(s).disableSwipe.value)return;const T=d.value,A=S.target;if(A.hasPointerCapture(S.pointerId)&&A.releasePointerCapture(S.pointerId),d.value=null,u.value=null,T){const F=S.currentTarget,q={originalEvent:S,delta:T};e.unref(ur)(T,e.unref(s).swipeDirection.value,e.unref(s).swipeThreshold.value)?e.unref($t)(e.unref(_f),D=>r("swipeEnd",D),q):e.unref($t)(e.unref(Cf),D=>r("swipeCancel",D),q),F?.addEventListener("click",D=>D.preventDefault(),{once:!0})}})}),{default:e.withCtx(()=>[e.renderSlot(P.$slots,"default",{remaining:v.value,duration:c.value})]),_:3},16,["as","as-child","data-state","data-swipe-direction","data-status","data-expanded","data-limited","inert","style"])]),_:3})],8,["to","disabled"])):e.createCommentVNode("v-if",!0)],64))}}),Bf=Sf,Pf=e.defineComponent({__name:"ToastAction",props:{altText:{type:String,required:!1},closeOnClick:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const o=t,n=cn(),{forwardRef:r}=R(),a=e.useSlots(),l=e.computed(()=>n.toast.value?.actionProps),i=e.computed(()=>!!a.default||!n.toast.value||!!l.value),s=e.computed(()=>o.altText??l.value?.altText);if(i.value&&!s.value)throw new Error("Missing prop `altText` expected on `ToastAction`");function u(d){l.value?.onClick?.(d),(l.value?.closeOnClick??o.closeOnClick)&&n.onClose(d)}return(d,c)=>i.value&&s.value?(e.openBlock(),e.createBlock(va,{key:0,"alt-text":s.value,"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref($),{ref:e.unref(r),as:t.as,"as-child":t.asChild,type:t.as==="button"?"button":void 0,onClick:u},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value?.label),1)])]),_:3},8,["as","as-child","type"])]),_:3},8,["alt-text"])):e.createCommentVNode("v-if",!0)}}),Ef=Pf,qf=e.defineComponent({__name:"ToastClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const o=t,n=cn(),{forwardRef:r}=R();return(a,l)=>(e.openBlock(),e.createBlock(va,{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps(o,{ref:e.unref(r),type:t.as==="button"?"button":void 0,onClick:e.unref(n).onClose}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["type","onClick"])]),_:3}))}}),Af=qf,Tf=e.defineComponent({__name:"ToastDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const o=t;R();const n=cn(null);return(r,a)=>r.$slots.default||!e.unref(n)?.toast.value||e.unref(n).toast.value.description?(e.openBlock(),e.createBlock(e.unref($),e.normalizeProps(e.mergeProps({key:0},o)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?.toast.value?.description),1)])]),_:3},16)):e.createCommentVNode("v-if",!0)}}),Of=Tf,Df=e.defineComponent({__name:"ToastRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:"foreground"},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},toast:{type:Object,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd","update:open"],setup(t,{emit:o}){const n=t,r=o,{forwardRef:a}=R(),l=xe(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=pt(),s=e.computed(()=>n.toast?n.toast.open:l.value),u=e.computed(()=>n.toast?.type??n.type),d=e.computed(()=>n.toast?.status==="loading"?Number.POSITIVE_INFINITY:n.toast?.duration??n.duration);function c(){n.toast?(i.toastStore.close(n.toast.id),r("update:open",!1)):l.value=!1}const f=e.ref(!1);return e.watch([()=>n.toast,f],([p,m])=>{p&&!p.open&&!m&&i.toastStore.remove(p.id)},{immediate:!0}),(p,m)=>(e.openBlock(),e.createBlock(e.unref(Ce),{present:t.forceMount||s.value},{default:e.withCtx(()=>[e.createVNode(Bf,e.mergeProps({ref:e.unref(a),open:s.value,type:u.value,as:t.as,"as-child":t.asChild,duration:d.value,toast:t.toast},p.$attrs,{onVnodeMounted:m[0]||(m[0]=v=>f.value=!0),onVnodeUnmounted:m[1]||(m[1]=v=>f.value=!1),onClose:c,onPause:m[2]||(m[2]=v=>r("pause")),onResume:m[3]||(m[3]=v=>r("resume")),onEscapeKeyDown:m[4]||(m[4]=v=>r("escapeKeyDown",v)),onSwipeStart:m[5]||(m[5]=v=>{r("swipeStart",v),v.defaultPrevented||v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:m[6]||(m[6]=v=>{if(r("swipeMove",v),!v.defaultPrevented){const{x:g,y:b}=v.detail.delta,h=v.currentTarget;h.setAttribute("data-swipe","move"),h.style.setProperty("--reka-toast-swipe-move-x",`${g}px`),h.style.setProperty("--reka-toast-swipe-move-y",`${b}px`)}}),onSwipeCancel:m[7]||(m[7]=v=>{if(r("swipeCancel",v),!v.defaultPrevented){const g=v.currentTarget;g.setAttribute("data-swipe","cancel"),g.style.removeProperty("--reka-toast-swipe-move-x"),g.style.removeProperty("--reka-toast-swipe-move-y"),g.style.removeProperty("--reka-toast-swipe-end-x"),g.style.removeProperty("--reka-toast-swipe-end-y")}}),onSwipeEnd:m[8]||(m[8]=v=>{if(r("swipeEnd",v),!v.defaultPrevented){const{x:g,y:b}=v.detail.delta,h=v.currentTarget;h.setAttribute("data-swipe","end"),h.style.removeProperty("--reka-toast-swipe-move-x"),h.style.removeProperty("--reka-toast-swipe-move-y"),h.style.setProperty("--reka-toast-swipe-end-x",`${g}px`),h.style.setProperty("--reka-toast-swipe-end-y",`${b}px`),c()}})}),{default:e.withCtx(({remaining:v,duration:g})=>[e.renderSlot(p.$slots,"default",{remaining:v,duration:g,open:s.value})]),_:3},16,["open","type","as","as-child","duration","toast"])]),_:3},8,["present"]))}}),Nf=Df,If=e.defineComponent({__name:"ToastTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const o=t;R();const n=cn(null);return(r,a)=>r.$slots.default||!e.unref(n)?.toast.value||e.unref(n).toast.value.title?(e.openBlock(),e.createBlock(e.unref($),e.normalizeProps(e.mergeProps({key:0},o)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?.toast.value?.title),1)])]),_:3},16)):e.createCommentVNode("v-if",!0)}}),Mf=If,Rf=e.defineComponent({__name:"FocusProxy",emits:["focusFromOutsideViewport"],setup(t,{emit:o}){const n=o,r=pt();return(a,l)=>(e.openBlock(),e.createBlock(e.unref(nt),{tabindex:"0",style:{position:"fixed"},onFocus:l[0]||(l[0]=i=>{const s=i.relatedTarget;!e.unref(r).viewport.value?.contains(s)&&n("focusFromOutsideViewport")})},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3}))}}),dr=Rf,Vf=e.defineComponent({inheritAttrs:!1,__name:"ToastViewport",props:{hotkey:{type:Array,required:!1,default:()=>["F8"]},label:{type:[String,Function],required:!1,default:"Notifications ({hotkey})"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ol"}},setup(t){const o=t,{hotkey:n,label:r}=e.toRefs(o),{forwardRef:a,currentElement:l}=R(),{CollectionSlot:i,getItems:s}=_e(),u=pt(),d=e.computed(()=>u.toastCount.value>0),c=e.ref(),f=e.ref(),p=/Key/g,m=/Digit/g,v=e.computed(()=>n.value.join("+").replace(p,"").replace(m,""));to(n.value,()=>{l.value.focus()}),e.onMounted(()=>{u.onViewportChange(l.value)});const g=e.ref(!1);e.watch([g,u.closingCount],([h,w])=>{h&&w===0&&(u.hovering.value=!1,g.value=!1)}),e.watch(d,h=>{h||(u.hovering.value=!1,u.focused.value=!1,g.value=!1)}),e.watchEffect(h=>{const w=l.value;if(d.value&&w){const _=()=>{if(!u.isClosePausedRef.value){const y=new CustomEvent(Un);w.dispatchEvent(y),u.isClosePausedRef.value=!0}},x=()=>{if(u.isClosePausedRef.value){const y=new CustomEvent(Gn);w.dispatchEvent(y),u.isClosePausedRef.value=!1}},B=y=>{!w.contains(y.relatedTarget)&&(u.focused.value=!1,x())},E=()=>{g.value=!0,w.contains(J())||x()},k=()=>{g.value=!1,u.hovering.value=!0},C=()=>{u.focused.value=!0},P=y=>{const S=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!S){const A=J(),F=y.shiftKey;if(y.target===w&&F){c.value?.focus();return}const V=b({tabbingDirection:F?"backwards":"forwards"}),H=V.findIndex(W=>W===A);zt(V.slice(H+1))?y.preventDefault():F?c.value?.focus():f.value?.focus()}};w.addEventListener("focusin",_),w.addEventListener("focusin",C),w.addEventListener("focusout",B),w.addEventListener("pointermove",_),w.addEventListener("pointermove",k),w.addEventListener("pointerleave",E),w.addEventListener("keydown",P),window.addEventListener("blur",_),window.addEventListener("focus",x),h(()=>{w.removeEventListener("focusin",_),w.removeEventListener("focusin",C),w.removeEventListener("focusout",B),w.removeEventListener("pointermove",_),w.removeEventListener("pointermove",k),w.removeEventListener("pointerleave",E),w.removeEventListener("keydown",P),window.removeEventListener("blur",_),window.removeEventListener("focus",x)})}});function b({tabbingDirection:h}){const _=s().map(x=>x.ref).map(x=>{const B=[x,...lo(x)];return h==="forwards"?B:B.reverse()});return(h==="forwards"?_.reverse():_).flat()}return(h,w)=>(e.openBlock(),e.createBlock(e.unref(ki),{role:"region","aria-label":typeof e.unref(r)=="string"?e.unref(r).replace("{hotkey}",v.value):e.unref(r)(v.value),tabindex:"-1",style:e.normalizeStyle({pointerEvents:d.value?void 0:"none"})},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createBlock(dr,{key:0,ref:_=>{_&&(c.value=e.unref(ye)(_))},onFocusFromOutsideViewport:w[0]||(w[0]=()=>{const _=b({tabbingDirection:"forwards"});e.unref(zt)(_)})},null,512)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(i),null,{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps({ref:e.unref(a),tabindex:"-1",as:t.as,"as-child":t.asChild,"data-expanded":e.unref(u).expanded.value?"":void 0,style:{"--reka-toast-frontmost-height":e.unref(u).frontmostHeight.value?`${e.unref(u).frontmostHeight.value}px`:void 0}},h.$attrs),{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},16,["as","as-child","data-expanded","style"])]),_:3}),d.value?(e.openBlock(),e.createBlock(dr,{key:1,ref:_=>{_&&(f.value=e.unref(ye)(_))},onFocusFromOutsideViewport:w[1]||(w[1]=()=>{const _=b({tabbingDirection:"backwards"});e.unref(zt)(_)})},null,512)):e.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","style"]))}}),Ff=Vf;function $f(){const{toastStore:t}=pt();return{toasts:t.toasts,add:t.add,close:t.close,update:t.update,promise:t.promise}}var Lf=e.defineComponent({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const o=t;return R(),(n,r)=>(e.openBlock(),e.createBlock(e.unref(oa),e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16))}}),zf=Lf;const[fn,Hf]=G("TooltipProvider");var Wf=e.defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(t){const o=t,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:a,disableClosingTrigger:l,ignoreNonKeyboardFocus:i,disabled:s,content:u}=e.toRefs(o);R();const d=e.ref(!0),c=e.ref(!1),{start:f,stop:p}=eo(()=>{d.value=!0},r,{immediate:!1});return Hf({isOpenDelayed:d,delayDuration:n,onOpen(){p(),d.value=!1},onClose(){f()},isPointerInTransitRef:c,disableHoverableContent:a,disableClosingTrigger:l,disabled:s,ignoreNonKeyboardFocus:i,content:u}),(m,v)=>e.renderSlot(m.$slots,"default")}}),jf=Wf;const ga="tooltip.open",[pn,Kf]=G("TooltipRoot");var Uf=e.defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(t,{emit:o}){const n=t,r=o;R();const a=fn(),l=e.computed(()=>n.disableHoverableContent??a.disableHoverableContent.value),i=e.computed(()=>n.disableClosingTrigger??a.disableClosingTrigger.value),s=e.computed(()=>n.disabled??a.disabled.value),u=e.computed(()=>n.delayDuration??a.delayDuration.value),d=e.computed(()=>n.ignoreNonKeyboardFocus??a.ignoreNonKeyboardFocus.value),c=xe(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});e.watch(c,_=>{a.onClose&&(_?(a.onOpen(),document.dispatchEvent(new CustomEvent(ga))):a.onClose())});const f=e.ref(!1),p=e.ref(),m=e.computed(()=>c.value?f.value?"delayed-open":"instant-open":"closed"),{start:v,stop:g}=eo(()=>{f.value=!0,c.value=!0},u,{immediate:!1});function b(){g(),f.value=!1,c.value=!0}function h(){g(),c.value=!1}function w(){v()}return Kf({contentId:"",open:c,stateAttribute:m,trigger:p,onTriggerChange(_){p.value=_},onTriggerEnter(){a.isOpenDelayed.value?w():b()},onTriggerLeave(){l.value?h():g()},onOpen:b,onClose:h,disableHoverableContent:l,disableClosingTrigger:i,disabled:s,ignoreNonKeyboardFocus:d}),(_,x)=>(e.openBlock(),e.createBlock(e.unref(Xt),null,{default:e.withCtx(()=>[e.renderSlot(_.$slots,"default",{open:e.unref(c)})]),_:3}))}}),Gf=Uf,Yf=e.defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:o}){const n=t,r=o,a=pn(),l=fn(),{forwardRef:i,currentElement:s}=R(),u=e.computed(()=>n.ariaLabel||s.value?.textContent),d=e.computed(()=>{const{ariaLabel:c,...f}=n;return Ir(f,l.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return e.onMounted(()=>{Z(window,"scroll",c=>{c.target?.contains(a.trigger.value)&&a.onClose()},{capture:!0}),Z(document,ga,a.onClose)}),(c,f)=>(e.openBlock(),e.createBlock(e.unref(dt),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:f[0]||(f[0]=p=>r("escapeKeyDown",p)),onPointerDownOutside:f[1]||(f[1]=p=>{e.unref(a).disableClosingTrigger.value&&e.unref(a).trigger.value?.contains(p.target)&&p.preventDefault(),r("pointerDownOutside",p)}),onFocusOutside:f[2]||(f[2]=e.withModifiers(()=>{},["prevent"])),onDismiss:f[3]||(f[3]=p=>e.unref(a).onClose())},{default:e.withCtx(()=>[e.createVNode(e.unref(on),e.mergeProps({ref:e.unref(i),"data-state":e.unref(a).stateAttribute.value},{...c.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default"),e.createVNode(e.unref(nt),{id:e.unref(a).contentId,role:"tooltip"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),ya=Yf,Xf=e.defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(t){const n=Bt(t),{forwardRef:r,currentElement:a}=R(),{trigger:l,onClose:i}=pn(),s=fn(),{isPointerInTransit:u,onPointerExit:d}=Yl(l,a);return s.isPointerInTransitRef=u,d(()=>{i()}),Z(a,"pointermove",c=>{const f=a.value;if(!f||c.pointerType==="touch")return;f.ownerDocument.elementsFromPoint?.(c.clientX,c.clientY).some(m=>{if(f.contains(m))return!1;const v=m.closest("[data-grace-area-trigger]");return!!v&&v!==l.value})&&i()}),(c,f)=>(e.openBlock(),e.createBlock(ya,e.mergeProps({ref:e.unref(r)},e.unref(n)),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16))}}),Jf=Xf,Zf=e.defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:o}){const n=t,r=o,a=pn(),l=Ve(n,r),{forwardRef:i}=R();return(s,u)=>(e.openBlock(),e.createBlock(e.unref(Ce),{present:t.forceMount||e.unref(a).open.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).disableHoverableContent.value?ya:Jf),e.mergeProps({ref:e.unref(i)},e.unref(l)),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Qf=Zf,ep=e.defineComponent({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(ct),e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16))}}),tp=ep,np=e.defineComponent({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const o=t,n=pn(),r=fn();n.contentId||=ue(void 0,"reka-tooltip-content");const{forwardRef:a,currentElement:l}=R(),i=e.ref(!1),s=e.ref(!1),u=e.computed(()=>n.disabled.value?{}:{click:g,focus:m,pointermove:f,pointerleave:p,pointerdown:c,blur:v});e.watch(l,b=>{n.onTriggerChange(b)},{immediate:!0});function d(){setTimeout(()=>{i.value=!1},1)}function c(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),i.value=!0,document.addEventListener("pointerup",d,{once:!0})}function f(b){b.pointerType!=="touch"&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function p(){n.onTriggerLeave(),s.value=!1}function m(b){i.value||n.ignoreNonKeyboardFocus.value&&!b.target.matches?.(":focus-visible")||n.onOpen()}function v(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(b,h)=>(e.openBlock(),e.createBlock(e.unref(Jt),{"as-child":"",reference:t.reference??e.unref(l)},{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps({ref:e.unref(a),"aria-describedby":e.unref(n).open.value?e.unref(n).contentId:void 0,"data-state":e.unref(n).stateAttribute.value,as:t.as,"as-child":o.asChild,"data-grace-area-trigger":""},e.toHandlers(u.value)),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),op=np;const rp={class:"mt-1 grid grid-cols-3 gap-1"},ap=["href","aria-current"],lp={class:"text-xs text-neutral-700"},wa=e.defineComponent({__name:"AppLauncher",props:{apps:{},current:{default:""}},setup(t){function o(n){return n.trim().charAt(0).toUpperCase()||"?"}return(n,r)=>(e.openBlock(),e.createBlock(e.unref(an),null,{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createElementVNode("button",{type:"button","aria-label":"Open app launcher",class:"inline-flex h-9 w-9 items-center justify-center rounded-md text-neutral-600 outline-none transition-colors hover:bg-neutral-100 focus-visible:ring-2 focus-visible:ring-blue-500"},[e.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M4 4h4v4H4zM10 4h4v4h-4zM16 4h4v4h-4zM4 10h4v4H4zM10 10h4v4h-4zM16 10h4v4h-4zM4 16h4v4H4zM10 16h4v4h-4zM16 16h4v4h-4z"})])],-1)])]),_:1}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{align:"start","side-offset":8,class:"z-50 w-72 rounded-lg border border-neutral-200 bg-white p-2 shadow-lg outline-none"},{default:e.withCtx(()=>[r[1]||(r[1]=e.createElementVNode("p",{class:"px-2 py-1 text-xs font-semibold uppercase tracking-wide text-neutral-400"}," Keston apps ",-1)),e.createElementVNode("div",rp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.apps,a=>(e.openBlock(),e.createElementBlock("a",{key:a.href,href:a.href,"aria-current":a.name===t.current?"page":void 0,class:e.normalizeClass(["flex flex-col items-center gap-1.5 rounded-md p-2 text-center transition-colors hover:bg-neutral-100",a.name===t.current?"bg-neutral-50":""])},[e.createElementVNode("span",{class:e.normalizeClass(["flex h-9 w-9 items-center justify-center rounded-md text-sm font-semibold text-white",a.name===t.current?"bg-blue-600":"bg-neutral-900"])},e.toDisplayString(o(a.name)),3),e.createElementVNode("span",lp,e.toDisplayString(a.name),1)],10,ap))),128))])]),_:1})]),_:1})]),_:1}))}}),ip=["type","disabled"],sp=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},class:{}},setup(t){const o=t,n={primary:"bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-500",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-200 focus-visible:ring-neutral-400",outline:"border border-neutral-300 text-neutral-900 hover:bg-neutral-100 focus-visible:ring-neutral-400",ghost:"text-neutral-700 hover:bg-neutral-100 focus-visible:ring-neutral-400",destructive:"bg-red-600 text-white hover:bg-red-700 focus-visible:ring-red-500"},r={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base"},a=e.computed(()=>U("inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",n[o.variant],r[o.size],o.class));return(l,i)=>(e.openBlock(),e.createElementBlock("button",{type:t.type,disabled:t.disabled,class:e.normalizeClass(a.value)},[e.renderSlot(l.$slots,"default")],10,ip))}}),up=e.defineComponent({__name:"Checkbox",props:e.mergeModels({id:{},disabled:{type:Boolean,default:!1},class:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=t;return(r,a)=>(e.openBlock(),e.createBlock(e.unref(Fu),{id:n.id,modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),disabled:n.disabled,class:e.normalizeClass(e.unref(U)("peer h-4 w-4 shrink-0 rounded border border-neutral-300 bg-white outline-none data-[state=checked]:border-blue-600 data-[state=checked]:bg-blue-600 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n.class))},{default:e.withCtx(()=>[e.createVNode(e.unref(Lu),{class:"flex h-full w-full items-center justify-center text-white"},{default:e.withCtx(()=>[...a[1]||(a[1]=[e.createElementVNode("svg",{class:"h-3 w-3",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})],-1)])]),_:1})]),_:1},8,["id","modelValue","disabled","class"]))}}),mn=e.defineComponent({__name:"CloseButton",props:{class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(e.unref(U)("h-4 w-4",o.class)),viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[e.createElementVNode("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1)])],2))}}),dp={class:"mt-4"},cp=e.defineComponent({__name:"Dialog",props:{title:{default:""},description:{default:""},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(mi),null,{default:e.withCtx(()=>[e.createVNode(e.unref(as),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(ns),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Qi),{class:"fixed inset-0 z-50 bg-black/50"}),e.createVNode(e.unref(Ui),{class:e.normalizeClass(e.unref(U)("fixed left-1/2 top-1/2 z-50 w-[90vw] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg bg-white p-6 shadow-lg outline-none",o.class))},{default:e.withCtx(()=>[o.title?(e.openBlock(),e.createBlock(e.unref(Ro),{key:0,class:"text-lg font-semibold text-neutral-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(Ro),{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(nt),null,{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode("Dialog",-1)])]),_:1})]),_:1})),o.description?(e.openBlock(),e.createBlock(e.unref(Yi),{key:2,class:"mt-1 text-sm text-neutral-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",dp,[e.renderSlot(n.$slots,"default")]),e.createVNode(e.unref(hi),{"aria-label":"Close",class:"absolute right-4 top-4 rounded-sm text-neutral-400 outline-none hover:text-neutral-600 focus-visible:ring-2 focus-visible:ring-blue-500"},{default:e.withCtx(()=>[e.createVNode(mn)]),_:1})]),_:3},8,["class"])]),_:3})]),_:3}))}}),fp={class:"mt-4"},pp=e.defineComponent({__name:"Drawer",props:e.mergeModels({title:{default:""},description:{default:""},side:{default:"right"},class:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(t){const o=e.useModel(t,"open"),n=t,r=e.computed(()=>{switch(n.side){case"top":return"up";case"bottom":return"down";default:return n.side}}),a=e.computed(()=>{const l="kui-drawer-content kui-drawer-";switch(n.side){case"top":return U(l+"top fixed inset-x-0 top-0 z-50 w-full max-h-[85vh] rounded-b-2xl border-b border-neutral-200 bg-white p-6 shadow-lg",n.class);case"bottom":return U(l+"bottom fixed inset-x-0 bottom-0 z-50 w-full max-h-[85vh] rounded-t-2xl border-t border-neutral-200 bg-white p-6 shadow-lg",n.class);case"left":return U(l+"left fixed inset-y-0 left-0 z-50 h-full w-full max-w-sm border-r border-neutral-200 bg-white p-6 shadow-lg",n.class);default:return U(l+"right fixed inset-y-0 right-0 z-50 h-full w-full max-w-sm border-l border-neutral-200 bg-white p-6 shadow-lg",n.class)}});return(l,i)=>(e.openBlock(),e.createBlock(e.unref(Dd),{"swipe-direction":r.value,open:o.value,"onUpdate:open":i[0]||(i[0]=s=>o.value=s)},{default:e.withCtx(()=>[e.createVNode(e.unref(ic),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"trigger")]),_:3}),e.createVNode(e.unref(rc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(nc),{class:"kui-drawer-overlay fixed inset-0 z-50 bg-black/50"}),e.createVNode(e.unref(Xd),{class:e.normalizeClass(a.value)},{default:e.withCtx(()=>[n.title?(e.openBlock(),e.createBlock(e.unref(ir),{key:0,class:"text-lg font-semibold text-neutral-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(ir),{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(nt),null,{default:e.withCtx(()=>[...i[1]||(i[1]=[e.createTextVNode("Drawer",-1)])]),_:1})]),_:1})),n.description?(e.openBlock(),e.createBlock(e.unref(Zd),{key:2,class:"mt-1 text-sm text-neutral-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.description),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",fp,[e.renderSlot(l.$slots,"default")]),e.createVNode(e.unref(Id),{"aria-label":"Close",class:"absolute right-4 top-4 rounded-sm text-neutral-400 outline-none hover:text-neutral-600 focus-visible:ring-2 focus-visible:ring-blue-500"},{default:e.withCtx(()=>[e.createVNode(mn)]),_:1})]),_:3},8,["class"])]),_:3})]),_:3},8,["swipe-direction","open"]))}}),mp=e.defineComponent({__name:"DropdownMenu",props:{align:{default:"center"},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(dc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(bc),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(hc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(fc),{align:o.align,"side-offset":5,class:e.normalizeClass(e.unref(U)("z-50 min-w-[10rem] rounded-md border border-neutral-200 bg-white p-1 shadow-md outline-none",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["align","class"])]),_:3})]),_:3}))}}),vp=e.defineComponent({__name:"Input",props:e.mergeModels({class:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=t;return(r,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),class:e.normalizeClass(e.unref(U)("h-10 w-full rounded-md border border-neutral-300 bg-white px-3 text-sm text-neutral-900 placeholder:text-neutral-400 outline-none transition-colors focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[e.vModelText,o.value]])}}),hp=e.defineComponent({inheritAttrs:!1,__name:"Label",props:{class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createElementBlock("label",e.mergeProps(n.$attrs,{class:e.unref(U)("text-sm font-medium text-neutral-700",o.class)}),[e.renderSlot(n.$slots,"default")],16))}}),gp=e.defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,default:!1},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(mc),{disabled:o.disabled,class:e.normalizeClass(e.unref(U)("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm text-neutral-700 outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-neutral-100 data-[highlighted]:text-neutral-900",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["disabled","class"]))}}),yp=e.defineComponent({__name:"DropdownMenuSeparator",props:{class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(yc),{class:e.normalizeClass(e.unref(U)("my-1 h-px bg-neutral-200",o.class))},null,8,["class"]))}}),xt=cf(),cr=100,he=e.reactive([]);function Yt(t){return typeof t=="string"?t:typeof t=="number"?String(t):""}function wp(t,o,n){he.unshift({id:t,title:Yt(o.title),description:Yt(o.description),status:n,at:Date.now(),read:!1}),he.length>cr&&(he.length=cr)}function ba(t){const o=t.status??"plain",n=xt.add(t);return wp(n,t,o),n}function bp(t,o){const n=he.find(r=>r.id===t);return n&&(o.title!==void 0&&(n.title=Yt(o.title)),o.description!==void 0&&(n.description=Yt(o.description)),o.status!==void 0&&(n.status=o.status)),xt.update(t,o)}function ht(t){return o=>ba({...o,status:t})}const xp={add:ba,update:bp,close:xt.close,promise:xt.promise,success:ht("success"),warning:ht("warning"),error:ht("error"),info:ht("info"),plain:ht("plain")};function xa(){for(const t of he)t.read=!0}function Yn(){he.length=0}function Ca(t){const o=he.findIndex(n=>n.id===t);o!==-1&&he.splice(o,1)}const _a=xt,Cp={type:"button","aria-label":"Notifications",class:"relative inline-flex h-9 w-9 items-center justify-center rounded-md text-neutral-600 outline-none transition-colors hover:bg-neutral-100 focus-visible:ring-2 focus-visible:ring-blue-500"},_p={key:0,class:"absolute right-1 top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-600 px-1 text-[10px] font-semibold leading-none text-white"},kp={class:"flex items-center justify-between border-b border-neutral-100 px-3 py-2"},Sp={key:0,class:"px-3 py-6 text-center text-sm text-neutral-400"},Bp={key:1,class:"max-h-80 divide-y divide-neutral-100 overflow-y-auto"},Pp={class:"min-w-0 flex-1"},Ep={class:"truncate text-sm font-medium text-neutral-900"},qp={key:0,class:"mt-0.5 text-xs text-neutral-500"},Ap={class:"mt-0.5 text-xs text-neutral-400"},Tp=["onClick"],Op=e.defineComponent({__name:"NotificationsMenu",setup(t){const o=e.computed(()=>he.filter(l=>!l.read).length);function n(l){l&&xa()}function r(l){const i=Math.max(0,Math.floor((Date.now()-l)/1e3));if(i<60)return"just now";const s=Math.floor(i/60);if(s<60)return`${s}m ago`;const u=Math.floor(s/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}const a={success:"bg-green-500",warning:"bg-yellow-500",error:"bg-red-500",info:"bg-blue-500",plain:"bg-neutral-400"};return(l,i)=>(e.openBlock(),e.createBlock(e.unref(an),{"onUpdate:open":n},{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[e.createElementVNode("button",Cp,[i[1]||(i[1]=e.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})],-1)),o.value?(e.openBlock(),e.createElementBlock("span",_p,e.toDisplayString(o.value>9?"9+":o.value),1)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{align:"end","side-offset":8,class:"z-50 w-80 rounded-lg border border-neutral-200 bg-white p-0 shadow-lg outline-none"},{default:e.withCtx(()=>[e.createElementVNode("div",kp,[i[2]||(i[2]=e.createElementVNode("p",{class:"text-sm font-semibold"},"Notifications",-1)),e.unref(he).length?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"rounded px-2 py-1 text-xs text-neutral-500 hover:bg-neutral-100 hover:text-neutral-900",onClick:i[0]||(i[0]=(...s)=>e.unref(Yn)&&e.unref(Yn)(...s))}," Clear all ")):e.createCommentVNode("",!0)]),e.unref(he).length===0?(e.openBlock(),e.createElementBlock("p",Sp," No notifications yet. ")):(e.openBlock(),e.createElementBlock("ul",Bp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(he),s=>(e.openBlock(),e.createElementBlock("li",{key:s.id,class:"group flex items-start gap-2 px-3 py-2.5"},[e.createElementVNode("span",{class:e.normalizeClass(["mt-1.5 h-2 w-2 shrink-0 rounded-full",a[s.status]||a.plain])},null,2),e.createElementVNode("div",Pp,[e.createElementVNode("p",Ep,e.toDisplayString(s.title||"Notification"),1),s.description?(e.openBlock(),e.createElementBlock("p",qp,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0),e.createElementVNode("p",Ap,e.toDisplayString(r(s.at)),1)]),e.createElementVNode("button",{type:"button","aria-label":"Dismiss notification",class:"mt-0.5 shrink-0 rounded p-1 text-neutral-300 opacity-0 transition-opacity hover:bg-neutral-100 hover:text-neutral-600 group-hover:opacity-100",onClick:u=>e.unref(Ca)(s.id)},[...i[3]||(i[3]=[e.createElementVNode("svg",{class:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,Tp)]))),128))]))]),_:1})]),_:1})]),_:1}))}}),Dp=e.defineComponent({__name:"Popover",props:{side:{default:"bottom"},align:{default:"center"},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(an),null,{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{side:o.side,align:o.align,"side-offset":5,class:e.normalizeClass(e.unref(U)("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 shadow-md outline-none",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default"),e.createVNode(e.unref(vd),{class:"fill-white"})]),_:3},8,["side","align","class"])]),_:3})]),_:3}))}}),Np={type:"button","aria-label":"Account menu",class:"rounded-full outline-none ring-offset-2 transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-blue-500"},Ip={class:"flex items-center justify-between gap-3 px-3 py-2.5"},Mp={class:"min-w-0"},Rp={class:"truncate text-sm font-semibold text-neutral-900"},Vp={class:"flex items-center gap-3 px-3 py-3"},Fp={class:"min-w-0"},$p={class:"truncate text-sm font-semibold text-neutral-900"},Lp={class:"truncate text-xs text-neutral-500"},zp={class:"p-1"},Hp=["href"],Wp={class:"truncate"},jp=["href"],Kp=e.defineComponent({__name:"ProfileSwitcher",props:{name:{default:""},email:{default:""},orgName:{default:""},avatarSrc:{default:""},accountSettingsUrl:{default:""},differentAccountUrl:{default:""},settingsLabel:{default:"Account settings at Keston ID"}},emits:["signOut"],setup(t,{emit:o}){const n=t,r=o;return(a,l)=>(e.openBlock(),e.createBlock(e.unref(an),null,{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[e.createElementVNode("button",Np,[e.createVNode(In,{name:n.name,email:n.email,src:n.avatarSrc,size:"md"},null,8,["name","email","src"])])]),_:1}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{align:"end","side-offset":8,class:"z-50 w-80 rounded-lg border border-neutral-200 bg-white p-0 shadow-lg outline-none"},{default:e.withCtx(()=>[e.createElementVNode("div",Ip,[e.createElementVNode("div",Mp,[l[1]||(l[1]=e.createElementVNode("p",{class:"text-[11px] uppercase tracking-wide text-neutral-400"},"Signed in to",-1)),e.createElementVNode("p",Rp,e.toDisplayString(n.orgName||"Keston"),1)]),e.createElementVNode("button",{type:"button",class:"shrink-0 rounded-md px-2 py-1 text-xs font-medium text-neutral-600 hover:bg-neutral-100 hover:text-neutral-900",onClick:l[0]||(l[0]=i=>r("signOut"))}," Sign out ")]),l[4]||(l[4]=e.createElementVNode("div",{class:"h-px bg-neutral-100"},null,-1)),e.createElementVNode("div",Vp,[e.createVNode(In,{name:n.name,email:n.email,src:n.avatarSrc,size:"lg"},null,8,["name","email","src"]),e.createElementVNode("div",Fp,[e.createElementVNode("p",$p,e.toDisplayString(n.name||"Signed in"),1),e.createElementVNode("p",Lp,e.toDisplayString(n.email),1)])]),l[5]||(l[5]=e.createElementVNode("div",{class:"h-px bg-neutral-100"},null,-1)),e.createElementVNode("div",zp,[n.accountSettingsUrl?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.accountSettingsUrl,class:"flex items-center gap-2 rounded-md px-2 py-2 text-sm text-neutral-700 hover:bg-neutral-100"},[l[2]||(l[2]=e.createElementVNode("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)),e.createElementVNode("span",Wp,e.toDisplayString(n.settingsLabel),1)],8,Hp)):e.createCommentVNode("",!0),n.differentAccountUrl?(e.openBlock(),e.createElementBlock("a",{key:1,href:n.differentAccountUrl,class:"flex items-center gap-2 rounded-md px-2 py-2 text-sm text-neutral-700 hover:bg-neutral-100"},[...l[3]||(l[3]=[e.createElementVNode("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2M9 7a4 4 0 108 0 4 4 0 00-8 0zM19 8v6M22 11h-6"})],-1),e.createElementVNode("span",{class:"truncate"},"Use a different account",-1)])],8,jp)):e.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}))}}),Up=e.defineComponent({__name:"Select",props:e.mergeModels({items:{default:()=>[]},placeholder:{default:"Select an option"},disabled:{type:Boolean,default:!1},id:{},name:{},class:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,n=e.useModel(t,"modelValue");return(r,a)=>(e.openBlock(),e.createBlock(e.unref(Bc),{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),disabled:o.disabled,name:o.name},{default:e.withCtx(()=>[e.createVNode(e.unref(tf),{id:o.id,class:e.normalizeClass(e.unref(U)("group flex h-10 w-full items-center justify-between gap-2 rounded-md border border-neutral-300 bg-white px-3 text-sm text-neutral-900 outline-none transition-colors focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-neutral-400",o.class))},{default:e.withCtx(()=>[e.createVNode(e.unref(of),{placeholder:o.placeholder},null,8,["placeholder"]),e.createVNode(e.unref(Wc),{class:"text-neutral-500"},{default:e.withCtx(()=>[...a[1]||(a[1]=[e.createElementVNode("svg",{class:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M4.93179 5.43179C5.15811 5.20547 5.52473 5.20547 5.75105 5.43179L7.50001 7.18076L9.24898 5.43179C9.4753 5.20547 9.84192 5.20547 10.0682 5.43179C10.2946 5.65811 10.2946 6.02473 10.0682 6.25105L7.90961 8.40968C7.68329 8.636 7.31667 8.636 7.09035 8.40968L4.93179 6.25105C4.70547 6.02473 4.70547 5.65811 4.93179 5.43179Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})],-1)])]),_:1})]),_:1},8,["id","class"]),e.createVNode(e.unref(Qc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(zc),{class:"z-50 min-w-[10rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 shadow-md outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(af),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,l=>(e.openBlock(),e.createBlock(e.unref(Uc),{key:l.value,value:l.value,disabled:l.disabled,class:"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-neutral-700 outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-neutral-100 data-[highlighted]:text-neutral-900"},{default:e.withCtx(()=>[e.createVNode(e.unref(Yc),{class:"absolute left-2 inline-flex items-center justify-center"},{default:e.withCtx(()=>[...a[2]||(a[2]=[e.createElementVNode("svg",{class:"h-4 w-4",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})],-1)])]),_:1}),e.createVNode(e.unref(Jc),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1024)]),_:2},1032,["value","disabled"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","disabled","name"]))}}),Gp=e.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(df),{orientation:o.orientation,decorative:o.decorative,class:e.normalizeClass(e.unref(U)("shrink-0 bg-neutral-200",o.orientation==="horizontal"?"h-px w-full":"h-full w-px",o.class))},null,8,["orientation","decorative","class"]))}}),Yp=e.defineComponent({__name:"Tooltip",props:{content:{default:""},side:{default:"top"},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(jf),{"delay-duration":200},{default:e.withCtx(()=>[e.createVNode(e.unref(Gf),null,{default:e.withCtx(()=>[e.createVNode(e.unref(op),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(tp),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Qf),{side:o.side,"side-offset":5,class:e.normalizeClass(e.unref(U)("z-50 rounded-md bg-neutral-900 px-2 py-1 text-xs text-white shadow-md outline-none",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.content),1)]),e.createVNode(e.unref(zf),{class:"fill-neutral-900"})]),_:3},8,["side","class"])]),_:3})]),_:3})]),_:3}))}});const Xe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const fr=(...t)=>t.filter((o,n,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===n).join(" ").trim();function Dn(t){return t!=null}function Xp(t,o={}){const n=o.attributeNames??{},r=p=>n[p]??p,a=t.size??t.width??Xe.width,l=t.size??t.height??Xe.height,i=t.aliases?.filter(p=>typeof p=="string"&&p.trim()!=="").map(p=>`lucide-${p}`)??[],s=[...t.name?[`lucide-${t.name}`]:[],...i],u=o.className?.split(" ").filter(Boolean)??[],d=o.includeDefaultClasses===!1?fr(...u):fr("lucide",...s,...u),c=o.absoluteStrokeWidth?Number(o.strokeWidth??Xe["stroke-width"])*Number(t.size??t.width??Xe.width)/Number(o.size??o.width??Xe.width):o.strokeWidth??Xe["stroke-width"];return["svg",{...Object.entries(Xe).reduce((p,[m,v])=>(p[r(m)]=v,p),{}),..."color"in o&&o.color&&{[r("stroke")]:o.color},..."size"in o&&Dn(o.size)&&{[r("width")]:o.size,[r("height")]:o.size},..."width"in o&&Dn(o.width)&&{[r("width")]:o.width},..."height"in o&&Dn(o.height)&&{[r("height")]:o.height},[r("stroke-width")]:c,...d&&{[r("class")]:d},[r("viewBox")]:`0 0 ${a} ${l}`,...o.hasA11yProp===!1?{[r("aria-hidden")]:"true"}:{},..."attributes"in o&&o.attributes},t.node.map(p=>{const[m,v,g]=p,b=o.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...v}:v;return g?[m,b,g]:[m,b]})]}const Jp=t=>{for(const o in t)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const Lt=t=>t==="";const Zp=t=>t?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Qp=Symbol("lucide-icons");function em(){return e.inject(Qp,{})}const tm=({name:t,iconNode:o,"icon-node":n,icon:r={name:t&&Zp(t),node:o??n??[],size:24,aliases:[]},absoluteStrokeWidth:a,"absolute-stroke-width":l,nonScalingStroke:i,"non-scaling-stroke":s,strokeWidth:u,"stroke-width":d,size:c,width:f=c,height:p=c,color:m,...v},{slots:g})=>{const{size:b,color:h,strokeWidth:w=2,absoluteStrokeWidth:_=!1,nonScalingStroke:x=!1,class:B=""}=em(),E=Lt(a)||Lt(l)||a===!0||l===!0||_===!0,k=Lt(i)||Lt(s)||i===!0||s===!0||x===!0;delete v.class;const C=g.default?.(),[,P,y=[]]=Xp(r,{color:m??h,width:f??c??b,height:p??c??b,strokeWidth:u??d??w,absoluteStrokeWidth:E,nonScalingStroke:k,className:B,hasA11yProp:C!=null&&C.length>0||Jp(v),attributes:v});return e.h("svg",P,[...y.map(([S,T])=>e.h(S,T)),...C??[]])};function vn(t,o=[]){const n=typeof t=="string"?{name:t,node:o}:t;return(r,{slots:a})=>e.h(tm,{...r,icon:n},a.default?{default:a.default}:void 0)}const nm={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]},om=vn(nm);const rm={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]},am=vn(rm);const lm={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]},im=vn(lm);const sm={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]},um=vn(sm),dm={class:"flex min-w-0 flex-1 flex-col gap-1"},cm={key:1,"aria-hidden":"true",class:"pointer-events-none absolute inset-x-0 bottom-0 h-1 overflow-hidden rounded-b-lg bg-black/5"},fm=e.defineComponent({__name:"ToastItem",props:{toast:{}},setup(t){const o=t,n={success:{icon:om,root:"border-green-200 bg-green-50",iconClass:"text-green-600",title:"text-green-900",description:"text-green-700",action:"bg-green-100 text-green-900 hover:bg-green-200",close:"text-green-600 hover:text-green-800",bar:"bg-green-500"},warning:{icon:um,root:"border-yellow-200 bg-yellow-50",iconClass:"text-yellow-600",title:"text-yellow-900",description:"text-yellow-700",action:"bg-yellow-100 text-yellow-900 hover:bg-yellow-200",close:"text-yellow-600 hover:text-yellow-800",bar:"bg-yellow-500"},error:{icon:am,root:"border-red-200 bg-red-50",iconClass:"text-red-600",title:"text-red-900",description:"text-red-700",action:"bg-red-100 text-red-900 hover:bg-red-200",close:"text-red-600 hover:text-red-800",bar:"bg-red-500"},info:{icon:im,root:"border-blue-200 bg-blue-50",iconClass:"text-blue-600",title:"text-blue-900",description:"text-blue-700",action:"bg-blue-100 text-blue-900 hover:bg-blue-200",close:"text-blue-600 hover:text-blue-800",bar:"bg-blue-500"},plain:{root:"border-neutral-200 bg-white",iconClass:"",title:"text-neutral-900",description:"text-neutral-500",action:"bg-neutral-100 text-neutral-900 hover:bg-neutral-200",close:"text-neutral-400 hover:text-neutral-600",bar:"bg-neutral-400"}};function r(s){return s==="success"||s==="warning"||s==="error"||s==="info"?s:"plain"}function a(s,u){return!Number.isFinite(u)||u<=0?0:Math.min(Math.max(s/u,0),1)}const l=e.computed(()=>r(o.toast.status)),i=e.computed(()=>n[l.value]);return(s,u)=>(e.openBlock(),e.createBlock(e.unref(Nf),{toast:t.toast,class:e.normalizeClass(e.unref(U)("kui-toast pointer-events-auto flex items-start gap-3 rounded-lg border p-4 shadow-lg",i.value.root))},{default:e.withCtx(({remaining:d,duration:c})=>[i.value.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value.icon),{key:0,class:e.normalizeClass(e.unref(U)("h-5 w-5 shrink-0",i.value.iconClass)),"aria-hidden":"true"},null,8,["class"])):e.createCommentVNode("",!0),e.createElementVNode("div",dm,[e.createVNode(e.unref(Mf),{class:e.normalizeClass(e.unref(U)("text-sm font-semibold",i.value.title))},null,8,["class"]),e.createVNode(e.unref(Of),{class:e.normalizeClass(e.unref(U)("text-sm",i.value.description))},null,8,["class"]),e.createVNode(e.unref(Ef),{class:e.normalizeClass(e.unref(U)("mt-1 inline-flex h-8 items-center justify-center gap-2 self-start rounded-md px-3 text-xs font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",i.value.action))},null,8,["class"])]),e.createVNode(e.unref(Af),{"aria-label":"Close",class:e.normalizeClass(e.unref(U)("shrink-0 rounded-sm outline-none transition-colors focus-visible:ring-2 focus-visible:ring-blue-500",i.value.close))},{default:e.withCtx(()=>[e.createVNode(mn)]),_:1},8,["class"]),Number.isFinite(c)&&c>0?(e.openBlock(),e.createElementBlock("div",cm,[e.createElementVNode("div",{class:e.normalizeClass(["h-full w-full origin-left will-change-transform",i.value.bar]),style:e.normalizeStyle({transform:`scaleX(${a(d,c)})`})},null,6)])):e.createCommentVNode("",!0)]),_:1},8,["toast","class"]))}}),pm=e.defineComponent({__name:"ToastRenderer",setup(t){const{toasts:o}=$f();return(n,r)=>(e.openBlock(),e.createBlock(e.unref(Ff),{class:"kui-toast-viewport fixed left-0 top-0 z-[100] w-full max-w-sm p-4 outline-none sm:left-4 sm:top-4"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),a=>(e.openBlock(),e.createBlock(fm,{key:a.id,toast:a},null,8,["toast"]))),128))]),_:1}))}}),mm=e.defineComponent({__name:"Toaster",setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(hf),{"toast-manager":e.unref(_a)},{default:e.withCtx(()=>[e.createVNode(pm)]),_:1},8,["toast-manager"]))}}),vm={class:"flex h-16 items-center gap-2 border-b border-neutral-200 bg-white px-3 sm:px-4"},hm={class:"ml-1 truncate text-base font-semibold text-neutral-900"},gm={class:"ml-2 min-w-0 flex-1"},ym={class:"flex shrink-0 items-center gap-1"},wm=e.defineComponent({__name:"TopBar",props:{appName:{},apps:{default:()=>[]},current:{default:""},showMenu:{type:Boolean,default:!1}},emits:["menu"],setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("header",vm,[e.createVNode(wa,{apps:t.apps,current:t.current},null,8,["apps","current"]),t.showMenu?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":"Toggle navigation",class:"inline-flex h-9 w-9 items-center justify-center rounded-md text-neutral-600 outline-none transition-colors hover:bg-neutral-100 focus-visible:ring-2 focus-visible:ring-blue-500",onClick:n[0]||(n[0]=r=>o.$emit("menu"))},[...n[1]||(n[1]=[e.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("span",hm,e.toDisplayString(t.appName),1),e.createElementVNode("div",gm,[e.renderSlot(o.$slots,"search")]),e.createElementVNode("div",ym,[e.renderSlot(o.$slots,"actions"),e.renderSlot(o.$slots,"notifications"),e.renderSlot(o.$slots,"profile")])]))}});exports.AppLauncher=wa;exports.Avatar=In;exports.Button=sp;exports.Checkbox=up;exports.CloseButton=mn;exports.Dialog=cp;exports.Drawer=pp;exports.DropdownMenu=mp;exports.DropdownMenuItem=gp;exports.DropdownMenuSeparator=yp;exports.Input=vp;exports.Label=hp;exports.NotificationsMenu=Op;exports.Popover=Dp;exports.ProfileSwitcher=Kp;exports.Select=Up;exports.Separator=Gp;exports.Toaster=mm;exports.Tooltip=Yp;exports.TopBar=wm;exports.clearNotifications=Yn;exports.markNotificationsRead=xa;exports.removeNotification=Ca;exports.toast=xp;exports.toastManager=_a;exports.toastNotifications=he;
15
+ `),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(S,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:T},[e.createTextVNode(e.toDisplayString(S),1)],64))),128))]),_:1},8,["aria-live"])):e.createCommentVNode("v-if",!0),e.unref(s).viewport.value||e.unref(w)?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:e.unref(s).viewport.value??"body",disabled:!!e.unref(w)},[e.createVNode(e.unref(i),null,{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps({ref:e.unref(a),tabindex:"0"},P.$attrs,{as:t.as,"as-child":t.asChild,"data-state":t.open?"open":"closed","data-swipe-direction":e.unref(s).swipeDirection.value,"data-status":t.toast?.status,"data-expanded":e.unref(s).expanded.value?"":void 0,"data-limited":B.value.limited?"":void 0,inert:B.value.limited||void 0,style:{...e.unref(s).disableSwipe.value?void 0:{userSelect:"none",touchAction:"none"},"--reka-toast-index":B.value.index,"--reka-toast-offset-y":`${B.value.offsetY}px`,"--reka-toast-height":x.height?`${x.height}px`:void 0},onPointerdown:y[0]||(y[0]=e.withModifiers(S=>{e.unref(s).disableSwipe.value||(u.value={x:S.clientX,y:S.clientY})},["left"])),onPointermove:y[1]||(y[1]=S=>{if(e.unref(s).disableSwipe.value||!u.value)return;const T=S.clientX-u.value.x,A=S.clientY-u.value.y,F=!!d.value,q=["left","right"].includes(e.unref(s).swipeDirection.value),D=["left","up"].includes(e.unref(s).swipeDirection.value)?Math.min:Math.max,V=q?D(0,T):0,H=q?0:D(0,A),W=S.pointerType==="touch"?10:2,N={x:V,y:H},Q={originalEvent:S,delta:N};F?(d.value=N,e.unref($t)(e.unref(xf),ae=>r("swipeMove",ae),Q)):e.unref(ur)(N,e.unref(s).swipeDirection.value,W)?(d.value=N,e.unref($t)(e.unref(bf),ae=>r("swipeStart",ae),Q),S.target.setPointerCapture(S.pointerId)):(Math.abs(T)>W||Math.abs(A)>W)&&(u.value=null)}),onPointerup:y[2]||(y[2]=S=>{if(e.unref(s).disableSwipe.value)return;const T=d.value,A=S.target;if(A.hasPointerCapture(S.pointerId)&&A.releasePointerCapture(S.pointerId),d.value=null,u.value=null,T){const F=S.currentTarget,q={originalEvent:S,delta:T};e.unref(ur)(T,e.unref(s).swipeDirection.value,e.unref(s).swipeThreshold.value)?e.unref($t)(e.unref(_f),D=>r("swipeEnd",D),q):e.unref($t)(e.unref(Cf),D=>r("swipeCancel",D),q),F?.addEventListener("click",D=>D.preventDefault(),{once:!0})}})}),{default:e.withCtx(()=>[e.renderSlot(P.$slots,"default",{remaining:v.value,duration:c.value})]),_:3},16,["as","as-child","data-state","data-swipe-direction","data-status","data-expanded","data-limited","inert","style"])]),_:3})],8,["to","disabled"])):e.createCommentVNode("v-if",!0)],64))}}),Bf=Sf,Pf=e.defineComponent({__name:"ToastAction",props:{altText:{type:String,required:!1},closeOnClick:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const o=t,n=cn(),{forwardRef:r}=R(),a=e.useSlots(),l=e.computed(()=>n.toast.value?.actionProps),i=e.computed(()=>!!a.default||!n.toast.value||!!l.value),s=e.computed(()=>o.altText??l.value?.altText);if(i.value&&!s.value)throw new Error("Missing prop `altText` expected on `ToastAction`");function u(d){l.value?.onClick?.(d),(l.value?.closeOnClick??o.closeOnClick)&&n.onClose(d)}return(d,c)=>i.value&&s.value?(e.openBlock(),e.createBlock(va,{key:0,"alt-text":s.value,"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref($),{ref:e.unref(r),as:t.as,"as-child":t.asChild,type:t.as==="button"?"button":void 0,onClick:u},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value?.label),1)])]),_:3},8,["as","as-child","type"])]),_:3},8,["alt-text"])):e.createCommentVNode("v-if",!0)}}),Ef=Pf,qf=e.defineComponent({__name:"ToastClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const o=t,n=cn(),{forwardRef:r}=R();return(a,l)=>(e.openBlock(),e.createBlock(va,{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps(o,{ref:e.unref(r),type:t.as==="button"?"button":void 0,onClick:e.unref(n).onClose}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["type","onClick"])]),_:3}))}}),Af=qf,Tf=e.defineComponent({__name:"ToastDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const o=t;R();const n=cn(null);return(r,a)=>r.$slots.default||!e.unref(n)?.toast.value||e.unref(n).toast.value.description?(e.openBlock(),e.createBlock(e.unref($),e.normalizeProps(e.mergeProps({key:0},o)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?.toast.value?.description),1)])]),_:3},16)):e.createCommentVNode("v-if",!0)}}),Of=Tf,Df=e.defineComponent({__name:"ToastRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:"foreground"},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},toast:{type:Object,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd","update:open"],setup(t,{emit:o}){const n=t,r=o,{forwardRef:a}=R(),l=xe(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=pt(),s=e.computed(()=>n.toast?n.toast.open:l.value),u=e.computed(()=>n.toast?.type??n.type),d=e.computed(()=>n.toast?.status==="loading"?Number.POSITIVE_INFINITY:n.toast?.duration??n.duration);function c(){n.toast?(i.toastStore.close(n.toast.id),r("update:open",!1)):l.value=!1}const f=e.ref(!1);return e.watch([()=>n.toast,f],([p,m])=>{p&&!p.open&&!m&&i.toastStore.remove(p.id)},{immediate:!0}),(p,m)=>(e.openBlock(),e.createBlock(e.unref(Ce),{present:t.forceMount||s.value},{default:e.withCtx(()=>[e.createVNode(Bf,e.mergeProps({ref:e.unref(a),open:s.value,type:u.value,as:t.as,"as-child":t.asChild,duration:d.value,toast:t.toast},p.$attrs,{onVnodeMounted:m[0]||(m[0]=v=>f.value=!0),onVnodeUnmounted:m[1]||(m[1]=v=>f.value=!1),onClose:c,onPause:m[2]||(m[2]=v=>r("pause")),onResume:m[3]||(m[3]=v=>r("resume")),onEscapeKeyDown:m[4]||(m[4]=v=>r("escapeKeyDown",v)),onSwipeStart:m[5]||(m[5]=v=>{r("swipeStart",v),v.defaultPrevented||v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:m[6]||(m[6]=v=>{if(r("swipeMove",v),!v.defaultPrevented){const{x:g,y:b}=v.detail.delta,h=v.currentTarget;h.setAttribute("data-swipe","move"),h.style.setProperty("--reka-toast-swipe-move-x",`${g}px`),h.style.setProperty("--reka-toast-swipe-move-y",`${b}px`)}}),onSwipeCancel:m[7]||(m[7]=v=>{if(r("swipeCancel",v),!v.defaultPrevented){const g=v.currentTarget;g.setAttribute("data-swipe","cancel"),g.style.removeProperty("--reka-toast-swipe-move-x"),g.style.removeProperty("--reka-toast-swipe-move-y"),g.style.removeProperty("--reka-toast-swipe-end-x"),g.style.removeProperty("--reka-toast-swipe-end-y")}}),onSwipeEnd:m[8]||(m[8]=v=>{if(r("swipeEnd",v),!v.defaultPrevented){const{x:g,y:b}=v.detail.delta,h=v.currentTarget;h.setAttribute("data-swipe","end"),h.style.removeProperty("--reka-toast-swipe-move-x"),h.style.removeProperty("--reka-toast-swipe-move-y"),h.style.setProperty("--reka-toast-swipe-end-x",`${g}px`),h.style.setProperty("--reka-toast-swipe-end-y",`${b}px`),c()}})}),{default:e.withCtx(({remaining:v,duration:g})=>[e.renderSlot(p.$slots,"default",{remaining:v,duration:g,open:s.value})]),_:3},16,["open","type","as","as-child","duration","toast"])]),_:3},8,["present"]))}}),Nf=Df,If=e.defineComponent({__name:"ToastTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const o=t;R();const n=cn(null);return(r,a)=>r.$slots.default||!e.unref(n)?.toast.value||e.unref(n).toast.value.title?(e.openBlock(),e.createBlock(e.unref($),e.normalizeProps(e.mergeProps({key:0},o)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?.toast.value?.title),1)])]),_:3},16)):e.createCommentVNode("v-if",!0)}}),Mf=If,Rf=e.defineComponent({__name:"FocusProxy",emits:["focusFromOutsideViewport"],setup(t,{emit:o}){const n=o,r=pt();return(a,l)=>(e.openBlock(),e.createBlock(e.unref(nt),{tabindex:"0",style:{position:"fixed"},onFocus:l[0]||(l[0]=i=>{const s=i.relatedTarget;!e.unref(r).viewport.value?.contains(s)&&n("focusFromOutsideViewport")})},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3}))}}),dr=Rf,Vf=e.defineComponent({inheritAttrs:!1,__name:"ToastViewport",props:{hotkey:{type:Array,required:!1,default:()=>["F8"]},label:{type:[String,Function],required:!1,default:"Notifications ({hotkey})"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ol"}},setup(t){const o=t,{hotkey:n,label:r}=e.toRefs(o),{forwardRef:a,currentElement:l}=R(),{CollectionSlot:i,getItems:s}=_e(),u=pt(),d=e.computed(()=>u.toastCount.value>0),c=e.ref(),f=e.ref(),p=/Key/g,m=/Digit/g,v=e.computed(()=>n.value.join("+").replace(p,"").replace(m,""));to(n.value,()=>{l.value.focus()}),e.onMounted(()=>{u.onViewportChange(l.value)});const g=e.ref(!1);e.watch([g,u.closingCount],([h,w])=>{h&&w===0&&(u.hovering.value=!1,g.value=!1)}),e.watch(d,h=>{h||(u.hovering.value=!1,u.focused.value=!1,g.value=!1)}),e.watchEffect(h=>{const w=l.value;if(d.value&&w){const _=()=>{if(!u.isClosePausedRef.value){const y=new CustomEvent(Un);w.dispatchEvent(y),u.isClosePausedRef.value=!0}},x=()=>{if(u.isClosePausedRef.value){const y=new CustomEvent(Gn);w.dispatchEvent(y),u.isClosePausedRef.value=!1}},B=y=>{!w.contains(y.relatedTarget)&&(u.focused.value=!1,x())},E=()=>{g.value=!0,w.contains(J())||x()},k=()=>{g.value=!1,u.hovering.value=!0},C=()=>{u.focused.value=!0},P=y=>{const S=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!S){const A=J(),F=y.shiftKey;if(y.target===w&&F){c.value?.focus();return}const V=b({tabbingDirection:F?"backwards":"forwards"}),H=V.findIndex(W=>W===A);zt(V.slice(H+1))?y.preventDefault():F?c.value?.focus():f.value?.focus()}};w.addEventListener("focusin",_),w.addEventListener("focusin",C),w.addEventListener("focusout",B),w.addEventListener("pointermove",_),w.addEventListener("pointermove",k),w.addEventListener("pointerleave",E),w.addEventListener("keydown",P),window.addEventListener("blur",_),window.addEventListener("focus",x),h(()=>{w.removeEventListener("focusin",_),w.removeEventListener("focusin",C),w.removeEventListener("focusout",B),w.removeEventListener("pointermove",_),w.removeEventListener("pointermove",k),w.removeEventListener("pointerleave",E),w.removeEventListener("keydown",P),window.removeEventListener("blur",_),window.removeEventListener("focus",x)})}});function b({tabbingDirection:h}){const _=s().map(x=>x.ref).map(x=>{const B=[x,...lo(x)];return h==="forwards"?B:B.reverse()});return(h==="forwards"?_.reverse():_).flat()}return(h,w)=>(e.openBlock(),e.createBlock(e.unref(ki),{role:"region","aria-label":typeof e.unref(r)=="string"?e.unref(r).replace("{hotkey}",v.value):e.unref(r)(v.value),tabindex:"-1",style:e.normalizeStyle({pointerEvents:d.value?void 0:"none"})},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createBlock(dr,{key:0,ref:_=>{_&&(c.value=e.unref(ye)(_))},onFocusFromOutsideViewport:w[0]||(w[0]=()=>{const _=b({tabbingDirection:"forwards"});e.unref(zt)(_)})},null,512)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(i),null,{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps({ref:e.unref(a),tabindex:"-1",as:t.as,"as-child":t.asChild,"data-expanded":e.unref(u).expanded.value?"":void 0,style:{"--reka-toast-frontmost-height":e.unref(u).frontmostHeight.value?`${e.unref(u).frontmostHeight.value}px`:void 0}},h.$attrs),{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},16,["as","as-child","data-expanded","style"])]),_:3}),d.value?(e.openBlock(),e.createBlock(dr,{key:1,ref:_=>{_&&(f.value=e.unref(ye)(_))},onFocusFromOutsideViewport:w[1]||(w[1]=()=>{const _=b({tabbingDirection:"backwards"});e.unref(zt)(_)})},null,512)):e.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","style"]))}}),Ff=Vf;function $f(){const{toastStore:t}=pt();return{toasts:t.toasts,add:t.add,close:t.close,update:t.update,promise:t.promise}}var Lf=e.defineComponent({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const o=t;return R(),(n,r)=>(e.openBlock(),e.createBlock(e.unref(oa),e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16))}}),zf=Lf;const[fn,Hf]=G("TooltipProvider");var Wf=e.defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(t){const o=t,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:a,disableClosingTrigger:l,ignoreNonKeyboardFocus:i,disabled:s,content:u}=e.toRefs(o);R();const d=e.ref(!0),c=e.ref(!1),{start:f,stop:p}=eo(()=>{d.value=!0},r,{immediate:!1});return Hf({isOpenDelayed:d,delayDuration:n,onOpen(){p(),d.value=!1},onClose(){f()},isPointerInTransitRef:c,disableHoverableContent:a,disableClosingTrigger:l,disabled:s,ignoreNonKeyboardFocus:i,content:u}),(m,v)=>e.renderSlot(m.$slots,"default")}}),jf=Wf;const ga="tooltip.open",[pn,Kf]=G("TooltipRoot");var Uf=e.defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(t,{emit:o}){const n=t,r=o;R();const a=fn(),l=e.computed(()=>n.disableHoverableContent??a.disableHoverableContent.value),i=e.computed(()=>n.disableClosingTrigger??a.disableClosingTrigger.value),s=e.computed(()=>n.disabled??a.disabled.value),u=e.computed(()=>n.delayDuration??a.delayDuration.value),d=e.computed(()=>n.ignoreNonKeyboardFocus??a.ignoreNonKeyboardFocus.value),c=xe(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});e.watch(c,_=>{a.onClose&&(_?(a.onOpen(),document.dispatchEvent(new CustomEvent(ga))):a.onClose())});const f=e.ref(!1),p=e.ref(),m=e.computed(()=>c.value?f.value?"delayed-open":"instant-open":"closed"),{start:v,stop:g}=eo(()=>{f.value=!0,c.value=!0},u,{immediate:!1});function b(){g(),f.value=!1,c.value=!0}function h(){g(),c.value=!1}function w(){v()}return Kf({contentId:"",open:c,stateAttribute:m,trigger:p,onTriggerChange(_){p.value=_},onTriggerEnter(){a.isOpenDelayed.value?w():b()},onTriggerLeave(){l.value?h():g()},onOpen:b,onClose:h,disableHoverableContent:l,disableClosingTrigger:i,disabled:s,ignoreNonKeyboardFocus:d}),(_,x)=>(e.openBlock(),e.createBlock(e.unref(Xt),null,{default:e.withCtx(()=>[e.renderSlot(_.$slots,"default",{open:e.unref(c)})]),_:3}))}}),Gf=Uf,Yf=e.defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:o}){const n=t,r=o,a=pn(),l=fn(),{forwardRef:i,currentElement:s}=R(),u=e.computed(()=>n.ariaLabel||s.value?.textContent),d=e.computed(()=>{const{ariaLabel:c,...f}=n;return Ir(f,l.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return e.onMounted(()=>{Z(window,"scroll",c=>{c.target?.contains(a.trigger.value)&&a.onClose()},{capture:!0}),Z(document,ga,a.onClose)}),(c,f)=>(e.openBlock(),e.createBlock(e.unref(dt),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:f[0]||(f[0]=p=>r("escapeKeyDown",p)),onPointerDownOutside:f[1]||(f[1]=p=>{e.unref(a).disableClosingTrigger.value&&e.unref(a).trigger.value?.contains(p.target)&&p.preventDefault(),r("pointerDownOutside",p)}),onFocusOutside:f[2]||(f[2]=e.withModifiers(()=>{},["prevent"])),onDismiss:f[3]||(f[3]=p=>e.unref(a).onClose())},{default:e.withCtx(()=>[e.createVNode(e.unref(on),e.mergeProps({ref:e.unref(i),"data-state":e.unref(a).stateAttribute.value},{...c.$attrs,...d.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default"),e.createVNode(e.unref(nt),{id:e.unref(a).contentId,role:"tooltip"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),ya=Yf,Xf=e.defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(t){const n=Bt(t),{forwardRef:r,currentElement:a}=R(),{trigger:l,onClose:i}=pn(),s=fn(),{isPointerInTransit:u,onPointerExit:d}=Yl(l,a);return s.isPointerInTransitRef=u,d(()=>{i()}),Z(a,"pointermove",c=>{const f=a.value;if(!f||c.pointerType==="touch")return;f.ownerDocument.elementsFromPoint?.(c.clientX,c.clientY).some(m=>{if(f.contains(m))return!1;const v=m.closest("[data-grace-area-trigger]");return!!v&&v!==l.value})&&i()}),(c,f)=>(e.openBlock(),e.createBlock(ya,e.mergeProps({ref:e.unref(r)},e.unref(n)),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16))}}),Jf=Xf,Zf=e.defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(t,{emit:o}){const n=t,r=o,a=pn(),l=Ve(n,r),{forwardRef:i}=R();return(s,u)=>(e.openBlock(),e.createBlock(e.unref(Ce),{present:t.forceMount||e.unref(a).open.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).disableHoverableContent.value?ya:Jf),e.mergeProps({ref:e.unref(i)},e.unref(l)),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Qf=Zf,ep=e.defineComponent({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(ct),e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16))}}),tp=ep,np=e.defineComponent({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const o=t,n=pn(),r=fn();n.contentId||=ue(void 0,"reka-tooltip-content");const{forwardRef:a,currentElement:l}=R(),i=e.ref(!1),s=e.ref(!1),u=e.computed(()=>n.disabled.value?{}:{click:g,focus:m,pointermove:f,pointerleave:p,pointerdown:c,blur:v});e.watch(l,b=>{n.onTriggerChange(b)},{immediate:!0});function d(){setTimeout(()=>{i.value=!1},1)}function c(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),i.value=!0,document.addEventListener("pointerup",d,{once:!0})}function f(b){b.pointerType!=="touch"&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),s.value=!0)}function p(){n.onTriggerLeave(),s.value=!1}function m(b){i.value||n.ignoreNonKeyboardFocus.value&&!b.target.matches?.(":focus-visible")||n.onOpen()}function v(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(b,h)=>(e.openBlock(),e.createBlock(e.unref(Jt),{"as-child":"",reference:t.reference??e.unref(l)},{default:e.withCtx(()=>[e.createVNode(e.unref($),e.mergeProps({ref:e.unref(a),"aria-describedby":e.unref(n).open.value?e.unref(n).contentId:void 0,"data-state":e.unref(n).stateAttribute.value,as:t.as,"as-child":o.asChild,"data-grace-area-trigger":""},e.toHandlers(u.value)),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),op=np;const rp={class:"mt-1 grid grid-cols-3 gap-1"},ap=["href","aria-current"],lp={class:"text-xs text-neutral-700"},wa=e.defineComponent({__name:"AppLauncher",props:{apps:{},current:{default:""}},setup(t){function o(n){return n.trim().charAt(0).toUpperCase()||"?"}return(n,r)=>(e.openBlock(),e.createBlock(e.unref(an),null,{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createElementVNode("button",{type:"button","aria-label":"Open app launcher",class:"inline-flex h-9 w-9 items-center justify-center rounded-md text-neutral-600 outline-none transition-colors hover:bg-neutral-100 focus-visible:ring-2 focus-visible:ring-blue-500"},[e.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M4 4h4v4H4zM10 4h4v4h-4zM16 4h4v4h-4zM4 10h4v4H4zM10 10h4v4h-4zM16 10h4v4h-4zM4 16h4v4H4zM10 16h4v4h-4zM16 16h4v4h-4z"})])],-1)])]),_:1}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{align:"start","side-offset":8,class:"z-50 w-72 rounded-lg border border-neutral-200 bg-white p-2 shadow-lg outline-none"},{default:e.withCtx(()=>[r[1]||(r[1]=e.createElementVNode("p",{class:"px-2 py-1 text-xs font-semibold uppercase tracking-wide text-neutral-400"}," Keston apps ",-1)),e.createElementVNode("div",rp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.apps,a=>(e.openBlock(),e.createElementBlock("a",{key:a.href,href:a.href,"aria-current":a.name===t.current?"page":void 0,class:e.normalizeClass(["flex flex-col items-center gap-1.5 rounded-md p-2 text-center transition-colors hover:bg-neutral-100",a.name===t.current?"bg-neutral-50":""])},[e.createElementVNode("span",{class:e.normalizeClass(["flex h-9 w-9 items-center justify-center rounded-md text-sm font-semibold text-white",a.name===t.current?"bg-blue-600":"bg-neutral-900"])},e.toDisplayString(o(a.name)),3),e.createElementVNode("span",lp,e.toDisplayString(a.name),1)],10,ap))),128))])]),_:1})]),_:1})]),_:1}))}}),ip=["type","disabled"],sp=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},class:{}},setup(t){const o=t,n={primary:"bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-500",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-200 focus-visible:ring-neutral-400",outline:"border border-neutral-300 text-neutral-900 hover:bg-neutral-100 focus-visible:ring-neutral-400",ghost:"text-neutral-700 hover:bg-neutral-100 focus-visible:ring-neutral-400",destructive:"bg-red-600 text-white hover:bg-red-700 focus-visible:ring-red-500"},r={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-base"},a=e.computed(()=>U("inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",n[o.variant],r[o.size],o.class));return(l,i)=>(e.openBlock(),e.createElementBlock("button",{type:t.type,disabled:t.disabled,class:e.normalizeClass(a.value)},[e.renderSlot(l.$slots,"default")],10,ip))}}),up=e.defineComponent({__name:"Checkbox",props:e.mergeModels({id:{},disabled:{type:Boolean,default:!1},class:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=t;return(r,a)=>(e.openBlock(),e.createBlock(e.unref(Fu),{id:n.id,modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),disabled:n.disabled,class:e.normalizeClass(e.unref(U)("peer h-4 w-4 shrink-0 rounded border border-neutral-300 bg-white outline-none data-[state=checked]:border-blue-600 data-[state=checked]:bg-blue-600 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n.class))},{default:e.withCtx(()=>[e.createVNode(e.unref(Lu),{class:"flex h-full w-full items-center justify-center text-white"},{default:e.withCtx(()=>[...a[1]||(a[1]=[e.createElementVNode("svg",{class:"h-3 w-3",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})],-1)])]),_:1})]),_:1},8,["id","modelValue","disabled","class"]))}}),mn=e.defineComponent({__name:"CloseButton",props:{class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(e.unref(U)("h-4 w-4",o.class)),viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[e.createElementVNode("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},null,-1)])],2))}}),dp={class:"mt-4"},cp=e.defineComponent({__name:"Dialog",props:{title:{default:""},description:{default:""},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(mi),null,{default:e.withCtx(()=>[e.createVNode(e.unref(as),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(ns),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Qi),{class:"fixed inset-0 z-50 bg-black/50"}),e.createVNode(e.unref(Ui),{class:e.normalizeClass(e.unref(U)("fixed left-1/2 top-1/2 z-50 w-[90vw] max-w-md -translate-x-1/2 -translate-y-1/2 rounded-lg bg-white p-6 shadow-lg outline-none",o.class))},{default:e.withCtx(()=>[o.title?(e.openBlock(),e.createBlock(e.unref(Ro),{key:0,class:"text-lg font-semibold text-neutral-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(Ro),{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(nt),null,{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode("Dialog",-1)])]),_:1})]),_:1})),o.description?(e.openBlock(),e.createBlock(e.unref(Yi),{key:2,class:"mt-1 text-sm text-neutral-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.description),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",dp,[e.renderSlot(n.$slots,"default")]),e.createVNode(e.unref(hi),{"aria-label":"Close",class:"absolute right-4 top-4 rounded-sm text-neutral-400 outline-none hover:text-neutral-600 focus-visible:ring-2 focus-visible:ring-blue-500"},{default:e.withCtx(()=>[e.createVNode(mn)]),_:1})]),_:3},8,["class"])]),_:3})]),_:3}))}}),fp={class:"mt-4"},pp=e.defineComponent({__name:"Drawer",props:e.mergeModels({title:{default:""},description:{default:""},side:{default:"right"},class:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(t){const o=e.useModel(t,"open"),n=t,r=e.computed(()=>{switch(n.side){case"top":return"up";case"bottom":return"down";default:return n.side}}),a=e.computed(()=>{const l="kui-drawer-content kui-drawer-";switch(n.side){case"top":return U(l+"top fixed inset-x-0 top-0 z-50 w-full max-h-[85vh] rounded-b-2xl border-b border-neutral-200 bg-white p-6 shadow-lg",n.class);case"bottom":return U(l+"bottom fixed inset-x-0 bottom-0 z-50 w-full max-h-[85vh] rounded-t-2xl border-t border-neutral-200 bg-white p-6 shadow-lg",n.class);case"left":return U(l+"left fixed inset-y-0 left-0 z-50 h-full w-full max-w-sm border-r border-neutral-200 bg-white p-6 shadow-lg",n.class);default:return U(l+"right fixed inset-y-0 right-0 z-50 h-full w-full max-w-sm border-l border-neutral-200 bg-white p-6 shadow-lg",n.class)}});return(l,i)=>(e.openBlock(),e.createBlock(e.unref(Dd),{"swipe-direction":r.value,open:o.value,"onUpdate:open":i[0]||(i[0]=s=>o.value=s)},{default:e.withCtx(()=>[e.createVNode(e.unref(ic),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"trigger")]),_:3}),e.createVNode(e.unref(rc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(nc),{class:"kui-drawer-overlay fixed inset-0 z-50 bg-black/50"}),e.createVNode(e.unref(Xd),{class:e.normalizeClass(a.value)},{default:e.withCtx(()=>[n.title?(e.openBlock(),e.createBlock(e.unref(ir),{key:0,class:"text-lg font-semibold text-neutral-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(ir),{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(nt),null,{default:e.withCtx(()=>[...i[1]||(i[1]=[e.createTextVNode("Drawer",-1)])]),_:1})]),_:1})),n.description?(e.openBlock(),e.createBlock(e.unref(Zd),{key:2,class:"mt-1 text-sm text-neutral-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.description),1)]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",fp,[e.renderSlot(l.$slots,"default")]),e.createVNode(e.unref(Id),{"aria-label":"Close",class:"absolute right-4 top-4 rounded-sm text-neutral-400 outline-none hover:text-neutral-600 focus-visible:ring-2 focus-visible:ring-blue-500"},{default:e.withCtx(()=>[e.createVNode(mn)]),_:1})]),_:3},8,["class"])]),_:3})]),_:3},8,["swipe-direction","open"]))}}),mp=e.defineComponent({__name:"DropdownMenu",props:{align:{default:"center"},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(dc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(bc),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(hc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(fc),{align:o.align,"side-offset":5,class:e.normalizeClass(e.unref(U)("z-50 min-w-[10rem] rounded-md border border-neutral-200 bg-white p-1 shadow-md outline-none",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["align","class"])]),_:3})]),_:3}))}}),vp=e.defineComponent({__name:"Input",props:e.mergeModels({class:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=t;return(r,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),class:e.normalizeClass(e.unref(U)("h-10 w-full rounded-md border border-neutral-300 bg-white px-3 text-sm text-neutral-900 placeholder:text-neutral-400 outline-none transition-colors focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[e.vModelText,o.value]])}}),hp=e.defineComponent({inheritAttrs:!1,__name:"Label",props:{class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createElementBlock("label",e.mergeProps(n.$attrs,{class:e.unref(U)("text-sm font-medium text-neutral-700",o.class)}),[e.renderSlot(n.$slots,"default")],16))}}),gp=e.defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,default:!1},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(mc),{disabled:o.disabled,class:e.normalizeClass(e.unref(U)("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm text-neutral-700 outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-neutral-100 data-[highlighted]:text-neutral-900",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["disabled","class"]))}}),yp=e.defineComponent({__name:"DropdownMenuSeparator",props:{class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(yc),{class:e.normalizeClass(e.unref(U)("my-1 h-px bg-neutral-200",o.class))},null,8,["class"]))}}),xt=cf(),cr=100,he=e.reactive([]);function Yt(t){return typeof t=="string"?t:typeof t=="number"?String(t):""}function wp(t,o,n){he.unshift({id:t,title:Yt(o.title),description:Yt(o.description),status:n,at:Date.now(),read:!1}),he.length>cr&&(he.length=cr)}function ba(t){const o=t.status??"plain",n=xt.add(t);return wp(n,t,o),n}function bp(t,o){const n=he.find(r=>r.id===t);return n&&(o.title!==void 0&&(n.title=Yt(o.title)),o.description!==void 0&&(n.description=Yt(o.description)),o.status!==void 0&&(n.status=o.status)),xt.update(t,o)}function ht(t){return o=>ba({...o,status:t})}const xp={add:ba,update:bp,close:xt.close,promise:xt.promise,success:ht("success"),warning:ht("warning"),error:ht("error"),info:ht("info"),plain:ht("plain")};function xa(){for(const t of he)t.read=!0}function Yn(){he.length=0}function Ca(t){const o=he.findIndex(n=>n.id===t);o!==-1&&he.splice(o,1)}const _a=xt,Cp={type:"button","aria-label":"Notifications",class:"relative inline-flex h-9 w-9 items-center justify-center rounded-md text-neutral-600 outline-none transition-colors hover:bg-neutral-100 focus-visible:ring-2 focus-visible:ring-blue-500"},_p={key:0,class:"absolute right-1 top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-600 px-1 text-[10px] font-semibold leading-none text-white"},kp={class:"flex items-center justify-between border-b border-neutral-100 px-3 py-2"},Sp={key:0,class:"px-3 py-6 text-center text-sm text-neutral-400"},Bp={key:1,class:"max-h-80 divide-y divide-neutral-100 overflow-y-auto"},Pp={class:"min-w-0 flex-1"},Ep={class:"truncate text-sm font-medium text-neutral-900"},qp={key:0,class:"mt-0.5 text-xs text-neutral-500"},Ap={class:"mt-0.5 text-xs text-neutral-400"},Tp=["onClick"],Op=e.defineComponent({__name:"NotificationsMenu",setup(t){const o=e.computed(()=>he.filter(l=>!l.read).length);function n(l){l&&xa()}function r(l){const i=Math.max(0,Math.floor((Date.now()-l)/1e3));if(i<60)return"just now";const s=Math.floor(i/60);if(s<60)return`${s}m ago`;const u=Math.floor(s/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}const a={success:"bg-green-500",warning:"bg-yellow-500",error:"bg-red-500",info:"bg-blue-500",plain:"bg-neutral-400"};return(l,i)=>(e.openBlock(),e.createBlock(e.unref(an),{"onUpdate:open":n},{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[e.createElementVNode("button",Cp,[i[1]||(i[1]=e.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})],-1)),o.value?(e.openBlock(),e.createElementBlock("span",_p,e.toDisplayString(o.value>9?"9+":o.value),1)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{align:"end","side-offset":8,class:"z-50 w-80 rounded-lg border border-neutral-200 bg-white p-0 shadow-lg outline-none"},{default:e.withCtx(()=>[e.createElementVNode("div",kp,[i[2]||(i[2]=e.createElementVNode("p",{class:"text-sm font-semibold"},"Notifications",-1)),e.unref(he).length?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"rounded px-2 py-1 text-xs text-neutral-500 hover:bg-neutral-100 hover:text-neutral-900",onClick:i[0]||(i[0]=(...s)=>e.unref(Yn)&&e.unref(Yn)(...s))}," Clear all ")):e.createCommentVNode("",!0)]),e.unref(he).length===0?(e.openBlock(),e.createElementBlock("p",Sp," No notifications yet. ")):(e.openBlock(),e.createElementBlock("ul",Bp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(he),s=>(e.openBlock(),e.createElementBlock("li",{key:s.id,class:"group flex items-start gap-2 px-3 py-2.5"},[e.createElementVNode("span",{class:e.normalizeClass(["mt-1.5 h-2 w-2 shrink-0 rounded-full",a[s.status]||a.plain])},null,2),e.createElementVNode("div",Pp,[e.createElementVNode("p",Ep,e.toDisplayString(s.title||"Notification"),1),s.description?(e.openBlock(),e.createElementBlock("p",qp,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0),e.createElementVNode("p",Ap,e.toDisplayString(r(s.at)),1)]),e.createElementVNode("button",{type:"button","aria-label":"Dismiss notification",class:"mt-0.5 shrink-0 rounded p-1 text-neutral-300 opacity-0 transition-opacity hover:bg-neutral-100 hover:text-neutral-600 group-hover:opacity-100",onClick:u=>e.unref(Ca)(s.id)},[...i[3]||(i[3]=[e.createElementVNode("svg",{class:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],8,Tp)]))),128))]))]),_:1})]),_:1})]),_:1}))}}),Dp=e.defineComponent({__name:"Popover",props:{side:{default:"bottom"},align:{default:"center"},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(an),null,{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{side:o.side,align:o.align,"side-offset":5,class:e.normalizeClass(e.unref(U)("z-50 w-72 rounded-md border border-neutral-200 bg-white p-4 shadow-md outline-none",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default"),e.createVNode(e.unref(vd),{class:"fill-white"})]),_:3},8,["side","align","class"])]),_:3})]),_:3}))}}),Np={type:"button","aria-label":"Account menu",class:"rounded-full outline-none ring-offset-2 transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-blue-500"},Ip={class:"flex items-center justify-between gap-3 px-3 py-2.5"},Mp={class:"min-w-0"},Rp={class:"truncate text-sm font-semibold text-neutral-900"},Vp={class:"flex items-center gap-3 px-3 py-3"},Fp={class:"min-w-0"},$p={class:"truncate text-sm font-semibold text-neutral-900"},Lp={class:"truncate text-xs text-neutral-500"},zp={class:"p-1"},Hp=["href"],Wp={class:"truncate"},jp=["href"],Kp=e.defineComponent({__name:"ProfileSwitcher",props:{name:{default:""},email:{default:""},orgName:{default:""},avatarSrc:{default:""},accountSettingsUrl:{default:""},differentAccountUrl:{default:""},settingsLabel:{default:"Account settings at Keston ID"}},emits:["signOut"],setup(t,{emit:o}){const n=t,r=o;return(a,l)=>(e.openBlock(),e.createBlock(e.unref(an),null,{default:e.withCtx(()=>[e.createVNode(e.unref(un),{"as-child":""},{default:e.withCtx(()=>[e.createElementVNode("button",Np,[e.createVNode(In,{name:n.name,email:n.email,src:n.avatarSrc,size:"md"},null,8,["name","email","src"])])]),_:1}),e.createVNode(e.unref(sn),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ln),{align:"end","side-offset":8,class:"z-50 w-80 rounded-lg border border-neutral-200 bg-white p-0 shadow-lg outline-none"},{default:e.withCtx(()=>[e.createElementVNode("div",Ip,[e.createElementVNode("div",Mp,[l[1]||(l[1]=e.createElementVNode("p",{class:"text-[11px] uppercase tracking-wide text-neutral-400"},"Signed in to",-1)),e.createElementVNode("p",Rp,e.toDisplayString(n.orgName||"Keston"),1)]),e.createElementVNode("button",{type:"button",class:"shrink-0 rounded-md px-2 py-1 text-xs font-medium text-neutral-600 hover:bg-neutral-100 hover:text-neutral-900",onClick:l[0]||(l[0]=i=>r("signOut"))}," Sign out ")]),l[4]||(l[4]=e.createElementVNode("div",{class:"h-px bg-neutral-100"},null,-1)),e.createElementVNode("div",Vp,[e.createVNode(In,{name:n.name,email:n.email,src:n.avatarSrc,size:"lg"},null,8,["name","email","src"]),e.createElementVNode("div",Fp,[e.createElementVNode("p",$p,e.toDisplayString(n.name||"Signed in"),1),e.createElementVNode("p",Lp,e.toDisplayString(n.email),1)])]),l[5]||(l[5]=e.createElementVNode("div",{class:"h-px bg-neutral-100"},null,-1)),e.createElementVNode("div",zp,[n.accountSettingsUrl?(e.openBlock(),e.createElementBlock("a",{key:0,href:n.accountSettingsUrl,class:"flex items-center gap-2 rounded-md px-2 py-2 text-sm text-neutral-700 hover:bg-neutral-100"},[l[2]||(l[2]=e.createElementVNode("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"}),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)),e.createElementVNode("span",Wp,e.toDisplayString(n.settingsLabel),1)],8,Hp)):e.createCommentVNode("",!0),n.differentAccountUrl?(e.openBlock(),e.createElementBlock("a",{key:1,href:n.differentAccountUrl,class:"flex items-center gap-2 rounded-md px-2 py-2 text-sm text-neutral-700 hover:bg-neutral-100"},[...l[3]||(l[3]=[e.createElementVNode("svg",{class:"h-4 w-4 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.8","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2M9 7a4 4 0 108 0 4 4 0 00-8 0zM19 8v6M22 11h-6"})],-1),e.createElementVNode("span",{class:"truncate"},"Use a different account",-1)])],8,jp)):e.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}))}}),Up=e.defineComponent({__name:"Select",props:e.mergeModels({items:{default:()=>[]},placeholder:{default:"Select an option"},disabled:{type:Boolean,default:!1},id:{},name:{},class:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=t,n=e.useModel(t,"modelValue");return(r,a)=>(e.openBlock(),e.createBlock(e.unref(Bc),{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),disabled:o.disabled,name:o.name},{default:e.withCtx(()=>[e.createVNode(e.unref(tf),{id:o.id,class:e.normalizeClass(e.unref(U)("group flex h-10 w-full items-center justify-between gap-2 rounded-md border border-neutral-300 bg-white px-3 text-sm text-neutral-900 outline-none transition-colors focus-visible:border-blue-500 focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-neutral-400",o.class))},{default:e.withCtx(()=>[e.createVNode(e.unref(of),{placeholder:o.placeholder},null,8,["placeholder"]),e.createVNode(e.unref(Wc),{class:"text-neutral-500"},{default:e.withCtx(()=>[...a[1]||(a[1]=[e.createElementVNode("svg",{class:"h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-180",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M4.93179 5.43179C5.15811 5.20547 5.52473 5.20547 5.75105 5.43179L7.50001 7.18076L9.24898 5.43179C9.4753 5.20547 9.84192 5.20547 10.0682 5.43179C10.2946 5.65811 10.2946 6.02473 10.0682 6.25105L7.90961 8.40968C7.68329 8.636 7.31667 8.636 7.09035 8.40968L4.93179 6.25105C4.70547 6.02473 4.70547 5.65811 4.93179 5.43179Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})],-1)])]),_:1})]),_:1},8,["id","class"]),e.createVNode(e.unref(Qc),null,{default:e.withCtx(()=>[e.createVNode(e.unref(zc),{class:"z-50 min-w-[10rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 shadow-md outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(af),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,l=>(e.openBlock(),e.createBlock(e.unref(Uc),{key:l.value,value:l.value,disabled:l.disabled,class:"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-neutral-700 outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-neutral-100 data-[highlighted]:text-neutral-900"},{default:e.withCtx(()=>[e.createVNode(e.unref(Yc),{class:"absolute left-2 inline-flex items-center justify-center"},{default:e.withCtx(()=>[...a[2]||(a[2]=[e.createElementVNode("svg",{class:"h-4 w-4",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})],-1)])]),_:1}),e.createVNode(e.unref(Jc),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1024)]),_:2},1032,["value","disabled"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","disabled","name"]))}}),Gp=e.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(df),{orientation:o.orientation,decorative:o.decorative,class:e.normalizeClass(e.unref(U)("shrink-0 bg-neutral-200",o.orientation==="horizontal"?"h-px w-full":"h-full w-px",o.class))},null,8,["orientation","decorative","class"]))}}),Yp=e.defineComponent({__name:"Tooltip",props:{content:{default:""},side:{default:"top"},class:{}},setup(t){const o=t;return(n,r)=>(e.openBlock(),e.createBlock(e.unref(jf),{"delay-duration":200},{default:e.withCtx(()=>[e.createVNode(e.unref(Gf),null,{default:e.withCtx(()=>[e.createVNode(e.unref(op),{"as-child":""},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"trigger")]),_:3}),e.createVNode(e.unref(tp),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Qf),{side:o.side,"side-offset":5,class:e.normalizeClass(e.unref(U)("z-50 rounded-md bg-neutral-900 px-2 py-1 text-xs text-white shadow-md outline-none",o.class))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.content),1)]),e.createVNode(e.unref(zf),{class:"fill-neutral-900"})]),_:3},8,["side","class"])]),_:3})]),_:3})]),_:3}))}});const Xe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const fr=(...t)=>t.filter((o,n,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===n).join(" ").trim();function Dn(t){return t!=null}function Xp(t,o={}){const n=o.attributeNames??{},r=p=>n[p]??p,a=t.size??t.width??Xe.width,l=t.size??t.height??Xe.height,i=t.aliases?.filter(p=>typeof p=="string"&&p.trim()!=="").map(p=>`lucide-${p}`)??[],s=[...t.name?[`lucide-${t.name}`]:[],...i],u=o.className?.split(" ").filter(Boolean)??[],d=o.includeDefaultClasses===!1?fr(...u):fr("lucide",...s,...u),c=o.absoluteStrokeWidth?Number(o.strokeWidth??Xe["stroke-width"])*Number(t.size??t.width??Xe.width)/Number(o.size??o.width??Xe.width):o.strokeWidth??Xe["stroke-width"];return["svg",{...Object.entries(Xe).reduce((p,[m,v])=>(p[r(m)]=v,p),{}),..."color"in o&&o.color&&{[r("stroke")]:o.color},..."size"in o&&Dn(o.size)&&{[r("width")]:o.size,[r("height")]:o.size},..."width"in o&&Dn(o.width)&&{[r("width")]:o.width},..."height"in o&&Dn(o.height)&&{[r("height")]:o.height},[r("stroke-width")]:c,...d&&{[r("class")]:d},[r("viewBox")]:`0 0 ${a} ${l}`,...o.hasA11yProp===!1?{[r("aria-hidden")]:"true"}:{},..."attributes"in o&&o.attributes},t.node.map(p=>{const[m,v,g]=p,b=o.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...v}:v;return g?[m,b,g]:[m,b]})]}const Jp=t=>{for(const o in t)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const Lt=t=>t==="";const Zp=t=>t?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Qp=Symbol("lucide-icons");function em(){return e.inject(Qp,{})}const tm=({name:t,iconNode:o,"icon-node":n,icon:r={name:t&&Zp(t),node:o??n??[],size:24,aliases:[]},absoluteStrokeWidth:a,"absolute-stroke-width":l,nonScalingStroke:i,"non-scaling-stroke":s,strokeWidth:u,"stroke-width":d,size:c,width:f=c,height:p=c,color:m,...v},{slots:g})=>{const{size:b,color:h,strokeWidth:w=2,absoluteStrokeWidth:_=!1,nonScalingStroke:x=!1,class:B=""}=em(),E=Lt(a)||Lt(l)||a===!0||l===!0||_===!0,k=Lt(i)||Lt(s)||i===!0||s===!0||x===!0;delete v.class;const C=g.default?.(),[,P,y=[]]=Xp(r,{color:m??h,width:f??c??b,height:p??c??b,strokeWidth:u??d??w,absoluteStrokeWidth:E,nonScalingStroke:k,className:B,hasA11yProp:C!=null&&C.length>0||Jp(v),attributes:v});return e.h("svg",P,[...y.map(([S,T])=>e.h(S,T)),...C??[]])};function vn(t,o=[]){const n=typeof t=="string"?{name:t,node:o}:t;return(r,{slots:a})=>e.h(tm,{...r,icon:n},a.default?{default:a.default}:void 0)}const nm={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]},om=vn(nm);const rm={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]},am=vn(rm);const lm={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]},im=vn(lm);const sm={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]},um=vn(sm),dm={class:"flex min-w-0 flex-1 flex-col gap-1"},cm={key:1,"aria-hidden":"true",class:"pointer-events-none absolute inset-x-0 bottom-0 h-1 overflow-hidden rounded-b-lg bg-black/5"},fm=e.defineComponent({__name:"ToastItem",props:{toast:{}},setup(t){const o=t,n={success:{icon:om,root:"border-green-200 bg-green-50",iconClass:"text-green-600",title:"text-green-900",description:"text-green-700",action:"bg-green-100 text-green-900 hover:bg-green-200",close:"text-green-600 hover:text-green-800",bar:"bg-green-500"},warning:{icon:um,root:"border-yellow-200 bg-yellow-50",iconClass:"text-yellow-600",title:"text-yellow-900",description:"text-yellow-700",action:"bg-yellow-100 text-yellow-900 hover:bg-yellow-200",close:"text-yellow-600 hover:text-yellow-800",bar:"bg-yellow-500"},error:{icon:am,root:"border-red-200 bg-red-50",iconClass:"text-red-600",title:"text-red-900",description:"text-red-700",action:"bg-red-100 text-red-900 hover:bg-red-200",close:"text-red-600 hover:text-red-800",bar:"bg-red-500"},info:{icon:im,root:"border-blue-200 bg-blue-50",iconClass:"text-blue-600",title:"text-blue-900",description:"text-blue-700",action:"bg-blue-100 text-blue-900 hover:bg-blue-200",close:"text-blue-600 hover:text-blue-800",bar:"bg-blue-500"},plain:{root:"border-neutral-200 bg-white",iconClass:"",title:"text-neutral-900",description:"text-neutral-500",action:"bg-neutral-100 text-neutral-900 hover:bg-neutral-200",close:"text-neutral-400 hover:text-neutral-600",bar:"bg-neutral-400"}};function r(s){return s==="success"||s==="warning"||s==="error"||s==="info"?s:"plain"}function a(s,u){return!Number.isFinite(u)||u<=0?0:Math.min(Math.max(s/u,0),1)}const l=e.computed(()=>r(o.toast.status)),i=e.computed(()=>n[l.value]);return(s,u)=>(e.openBlock(),e.createBlock(e.unref(Nf),{toast:t.toast,class:e.normalizeClass(e.unref(U)("kui-toast pointer-events-auto flex items-start gap-3 rounded-lg border p-4 shadow-lg",i.value.root))},{default:e.withCtx(({remaining:d,duration:c})=>[i.value.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value.icon),{key:0,class:e.normalizeClass(e.unref(U)("h-5 w-5 shrink-0",i.value.iconClass)),"aria-hidden":"true"},null,8,["class"])):e.createCommentVNode("",!0),e.createElementVNode("div",dm,[e.createVNode(e.unref(Mf),{class:e.normalizeClass(e.unref(U)("text-sm font-semibold",i.value.title))},null,8,["class"]),e.createVNode(e.unref(Of),{class:e.normalizeClass(e.unref(U)("text-sm",i.value.description))},null,8,["class"]),e.createVNode(e.unref(Ef),{class:e.normalizeClass(e.unref(U)("mt-1 inline-flex h-8 items-center justify-center gap-2 self-start rounded-md px-3 text-xs font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",i.value.action))},null,8,["class"])]),e.createVNode(e.unref(Af),{"aria-label":"Close",class:e.normalizeClass(e.unref(U)("shrink-0 rounded-sm outline-none transition-colors focus-visible:ring-2 focus-visible:ring-blue-500",i.value.close))},{default:e.withCtx(()=>[e.createVNode(mn)]),_:1},8,["class"]),Number.isFinite(c)&&c>0?(e.openBlock(),e.createElementBlock("div",cm,[e.createElementVNode("div",{class:e.normalizeClass(["h-full w-full origin-left will-change-transform",i.value.bar]),style:e.normalizeStyle({transform:`scaleX(${a(d,c)})`})},null,6)])):e.createCommentVNode("",!0)]),_:1},8,["toast","class"]))}}),pm=e.defineComponent({__name:"ToastRenderer",setup(t){const{toasts:o}=$f();return(n,r)=>(e.openBlock(),e.createBlock(e.unref(Ff),{class:"kui-toast-viewport fixed left-0 top-0 z-[100] w-full max-w-sm p-4 outline-none sm:left-4 sm:top-4"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),a=>(e.openBlock(),e.createBlock(fm,{key:a.id,toast:a},null,8,["toast"]))),128))]),_:1}))}}),mm=e.defineComponent({__name:"Toaster",setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(hf),{"toast-manager":e.unref(_a)},{default:e.withCtx(()=>[e.createVNode(pm)]),_:1},8,["toast-manager"]))}}),vm={class:"flex h-12 items-center gap-2 border-b border-neutral-200 bg-white px-3 sm:px-4"},hm={class:"ml-1 truncate text-base font-semibold text-neutral-900"},gm={class:"ml-2 min-w-0 flex-1"},ym={class:"flex shrink-0 items-center gap-1"},wm=e.defineComponent({__name:"TopBar",props:{appName:{},apps:{default:()=>[]},current:{default:""},showMenu:{type:Boolean,default:!1}},emits:["menu"],setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("header",vm,[e.createVNode(wa,{apps:t.apps,current:t.current},null,8,["apps","current"]),t.showMenu?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button","aria-label":"Toggle navigation",class:"inline-flex h-9 w-9 items-center justify-center rounded-md text-neutral-600 outline-none transition-colors hover:bg-neutral-100 focus-visible:ring-2 focus-visible:ring-blue-500",onClick:n[0]||(n[0]=r=>o.$emit("menu"))},[...n[1]||(n[1]=[e.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("span",hm,e.toDisplayString(t.appName),1),e.createElementVNode("div",gm,[e.renderSlot(o.$slots,"search")]),e.createElementVNode("div",ym,[e.renderSlot(o.$slots,"actions"),e.renderSlot(o.$slots,"notifications"),e.renderSlot(o.$slots,"profile")])]))}});exports.AppLauncher=wa;exports.Avatar=In;exports.Button=sp;exports.Checkbox=up;exports.CloseButton=mn;exports.Dialog=cp;exports.Drawer=pp;exports.DropdownMenu=mp;exports.DropdownMenuItem=gp;exports.DropdownMenuSeparator=yp;exports.Input=vp;exports.Label=hp;exports.NotificationsMenu=Op;exports.Popover=Dp;exports.ProfileSwitcher=Kp;exports.Select=Up;exports.Separator=Gp;exports.Toaster=mm;exports.Tooltip=Yp;exports.TopBar=wm;exports.clearNotifications=Yn;exports.markNotificationsRead=xa;exports.removeNotification=Ca;exports.toast=xp;exports.toastManager=_a;exports.toastNotifications=he;
package/dist/keston-ui.js CHANGED
@@ -14714,7 +14714,7 @@ const tm = {
14714
14714
  _: 1
14715
14715
  }, 8, ["toast-manager"]));
14716
14716
  }
14717
- }), im = { class: "flex h-16 items-center gap-2 border-b border-neutral-200 bg-white px-3 sm:px-4" }, lm = { class: "ml-1 truncate text-base font-semibold text-neutral-900" }, um = { class: "ml-2 min-w-0 flex-1" }, dm = { class: "flex shrink-0 items-center gap-1" }, Am = /* @__PURE__ */ T({
14717
+ }), im = { class: "flex h-12 items-center gap-2 border-b border-neutral-200 bg-white px-3 sm:px-4" }, lm = { class: "ml-1 truncate text-base font-semibold text-neutral-900" }, um = { class: "ml-2 min-w-0 flex-1" }, dm = { class: "flex shrink-0 items-center gap-1" }, Am = /* @__PURE__ */ T({
14718
14718
  __name: "TopBar",
14719
14719
  props: {
14720
14720
  appName: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thekestongroup/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Keston UI — Vue 3 + Reka UI + Tailwind CSS component library",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -22,7 +22,7 @@ defineEmits<{
22
22
  </script>
23
23
 
24
24
  <template>
25
- <header class="flex h-16 items-center gap-2 border-b border-neutral-200 bg-white px-3 sm:px-4">
25
+ <header class="flex h-12 items-center gap-2 border-b border-neutral-200 bg-white px-3 sm:px-4">
26
26
  <AppLauncher :apps="apps" :current="current" />
27
27
 
28
28
  <button