1import{cX as k,cY as h,bM as D,f as s,d as v,bN as R,cZ as O,bO as C,o as _,h as g,w as m,k as y,u as l,bP as V,bQ as w,c_ as E,bR as M}from"./CY6xmeCc.js";import{C as T,b as H,a as K}from"./CUd9_Gf1.js";import{u as $}from"./BAF7IFIo.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new a.Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="8d073a68-5701-4e5d-ae22-c8f0dc4763e7",a._sentryDebugIdIdentifier="sentry-dbid-8d073a68-5701-4e5d-ae22-c8f0dc4763e7")}catch{}function N(a,o){return k(a)?!1:Array.isArray(a)?a.some(t=>h(t,o)):h(a,o)}function P({type:a,defaultValue:o,modelValue:t}){const e=t||o;return t!==void 0||o!==void 0?Array.isArray(e)?"multiple":"single":a??"single"}function j({type:a,defaultValue:o,modelValue:t}){return a||P({type:a,defaultValue:o,modelValue:t})}function F({type:a,defaultValue:o}){return o!==void 0?o:a==="single"?void 0:[]}function Q(a,o){const t=s(()=>j(a)),e=D(a,"modelValue",o,{defaultValue:F(a),passive:a.modelValue===void 0,deep:!0});function n(d){if(t.value==="single")e.value=h(d,e.value)?void 0:d;else{const i=Array.isArray(e.value)?[...e.value||[]]:[e.value].filter(Boolean);if(N(i,d)){const u=i.findIndex(f=>h(f,d));i.splice(u,1)}else i.push(d);e.value=i}}const r=s(()=>t.value==="single");return{modelValue:e,changeModelValue:n,isSingle:r}}const[A,X]=w("AccordionRoot");var Y=v({__name:"AccordionRoot",props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:"vertical"},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(a,{emit:o}){const t=a,e=o,{dir:n,disabled:r,unmountOnHide:d}=R(t),i=O(n),{modelValue:u,changeModelValue:f,isSingle:I}=Q(t,e),{forwardRef:c,currentElement:p}=C();return X({disabled:r,direction:i,orientation:t.orientation,parentElement:p,isSingle:I,collapsible:t.collapsible,modelValue:u,changeModelValue:f,unmountOnHide:d}),(b,B)=>(_(),g(l(V),{ref:l(c),"as-child":b.asChild,as:b.as},{default:m(()=>[y(b.$slots,"default",{modelValue:l(u)})]),_:3},8,["as-child","as"]))}}),ae=Y,q=(function(a){return a.Open="open",a.Closed="closed",a})(q||{});const[x,Z]=w("AccordionItem");var z=v({__name:"AccordionItem",props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a,{expose:o}){const t=a,e=A(),n=s(()=>e.isSingle.value?t.value===e.modelValue.value:Array.isArray(e.modelValue.value)&&e.modelValue.value.includes(t.value)),r=s(()=>e.disabled.value||t.disabled),d=s(()=>r.value?"":void 0),i=s(()=>n.value?q.Open:q.Closed);o({open:n,dataDisabled:d});const{currentRef:u,currentElement:f}=C();Z({open:n,dataState:i,disabled:r,dataDisabled:d,triggerId:"",currentRef:u,currentElement:f,value:s(()=>t.value)});function I(c){const p=c.target;if(Array.from(e.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(S=>S===p)===-1)return null;$(c,p,e.parentElement.value,{arrowKeyOptions:e.orientation,dir:e.direction.value,focus:!0})}return(c,p)=>(_(),g(l(T),{"data-orientation":l(e).orientation,"data-disabled":d.value,"data-state":i.value,disabled:r.value,open:n.value,as:t.as,"as-child":t.asChild,"unmount-on-hide":t.unmountOnHide??l(e).unmountOnHide.value,onKeydown:E(I,["up","down","left","right","home","end"])},{default:m(()=>[y(c.$slots,"default",{open:n.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}}),te=z,G=v({__name:"AccordionContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const o=a,t=A(),e=x();return C(),(n,r)=>(_(),g(l(H),{role:"region","as-child":o.asChild,as:n.as,"force-mount":o.forceMount,"aria-labelledby":l(e).triggerId,"data-state":l(e).dataState.value,"data-disabled":l(e).dataDisabled.value,"data-orientation":l(t).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:r[0]||(r[0]=d=>l(t).changeModelValue(l(e).value.value))},{default:m(()=>[y(n.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),oe=G,J=v({__name:"AccordionHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h3"}},setup(a){const o=a,t=A(),e=x();return C(),(n,r)=>(_(),g(l(V),{as:o.as,"as-child":o.asChild,"data-orientation":l(t).orientation,"data-state":l(e).dataState.value,"data-disabled":l(e).dataDisabled.value},{default:m(()=>[y(n.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),le=J,L=v({__name:"AccordionTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const o=a,t=A(),e=x();e.triggerId||=M(void 0,"reka-accordion-trigger");function n(){const r=t.isSingle.value&&e.open.value&&!t.collapsible;e.disabled.value||r||t.changeModelValue(e.value.value)}return(r,d)=>(_(),g(l(K),{id:l(e).triggerId,ref:l(e).currentRef,"data-reka-collection-item":"",as:o.as,"as-child":o.asChild,"aria-disabled":l(e).disabled.value||void 0,"aria-expanded":l(e).open.value||!1,"data-disabled":l(e).dataDisabled.value,"data-orientation":l(t).orientation,"data-state":l(e).dataState.value,disabled:l(e).disabled.value,onClick:n},{default:m(()=>[y(r.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),ne=L;export{te as A,le as a,ne as b,oe as c,ae as d};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.