1import{u as T,i as v,bc as $,U as I,r as N,aA as E,bo as L,B as M,j as U,q as H,o as R,d as m,p as z,b as A,a8 as S,e as l,n as f,L as F}from"#entry";import G from"./C54uUWIQ.js";import{g as j,h as B,r as V}from"./BeayhWWK.js";import"./DogBM1at.js";import"./DUZpelgV.js";import"./DWnaLwu4.js";const D=t=>{const o=T();return v(()=>o.hash===`#${$(t)}`)};var p,x;function P(){if(x)return p;x=1;var t=j(),o=B(),e="[object Number]";function a(n){return typeof n=="number"||o(n)&&t(n)==e}return p=a,p}var J=P();const K=I(J);var g,k;function Q(){if(k)return g;k=1;var t=j(),o=V(),e=B(),a="[object String]";function n(r){return typeof r=="string"||!o(r)&&e(r)&&t(r)==a}return g=n,g}var W=Q();const X=I(W),Y=({index:t,forceOpen:o,individual:e,emit:a})=>{const n=E("a_currentIndex",0),r=N(!1),d=v(()=>o.value?!0:e?r.value:K(n?.value)||X(n?.value)?n.value===t:!1),s=(i,u)=>{if(e){r.value=i;return}a("changeActive",i?u:null)};return{toggleActive:i=>{s(!r.value,i)},setActive:s,isOpen:d}},ae={__name:"Item",props:{forceOpen:Boolean,hoverable:Boolean,index:[Number,String],individual:Boolean,hash:String,useHash:Boolean,useClick:{type:Boolean,default:!0},duration:{type:Number,default:1},ease:{type:String,default:"Power2.easeInOut"},contentFromAnimation:{type:Object,default:()=>({opacity:0,y:0})},contentToAnimation:{type:Object,default:()=>({opacity:1,y:0,delay:.5,duration:.5})}},emits:["changeActive","update:isOpen"],setup(t,{emit:o}){const e=t,a=o,n=v(()=>e.useHash&&D(e.hash).value?!0:e.forceOpen),r=N(null),{height:d}=L(r),{isOpen:s,toggleActive:b,setActive:i}=Y({emit:a,forceOpen:n,index:e.index,individual:e.individual});let u;const C=c=>{u=c};M(()=>{setTimeout(()=>u&&u.progress(s.value?1:0))});const q=()=>{e.hoverable&&i(!0,e.index)},_=()=>{e.hoverable&&i(!1,e.index)};return U(s,c=>{u&&(u[c?"play":"reverse"](),a("update:isOpen",c))}),(c,h)=>{const y=F,w=G;return R(),H(w,{onMouseenter:q,onMouseleave:_,onCreated:C,timelineOptions:{paused:!0},class:f(["synchronized-accordion-item !block",{"is-active":l(s)}])},{default:m(({addToTimeline:O})=>[z("div",{onClick:h[0]||(h[0]=Z=>t.useClick&&l(b)(t.index)),class:f([{"cursor-pointer":t.useClick},"contents"])},[S(c.$slots,"title",{isOpen:l(s)})],2),A(y,{from:{height:0},to:{height:l(d),ease:t.ease,duration:t.duration},class:f([{disabled:!l(s)},"content-wrapper overflow-hidden relative"]),onUpdated:O},{default:m(()=>[A(y,{onUpdated:O,from:t.contentFromAnimation,to:t.contentToAnimation,class:"top-0 w-full absolute content-inner",ref_key:"collapsableContent",ref:r},{default:m(()=>[S(c.$slots,"content",{isOpen:l(s)})]),_:3},8,["onUpdated","from","to"])]),_:2},1032,["to","class","onUpdated"])]),_:3},8,["class"])}}};export{ae as default};
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.