1import{t as u}from"./toggle-3e54b233.js";import{_ as p}from"./_plugin-vue_export-helper-c27b6911.js";import{g as n,a as s,m as a,h as _,b as d,n as i,e as c,o as l}from"./app-d55f542b.js";const b={name:"Accordion",props:{title:{type:String,default:void 0},naked:{type:Boolean,default:!1}},setup(){const{on:e,toggle:t}=u();return{expanded:e,onToggle:t}}},h={class:"group"},y={class:"flex px-4"},k={key:0},v={key:1,class:"mt-2 mb-4 space-y-6 rounded-md border border-gray-100 bg-gray-50 p-6 dark:border-gray-800 dark:bg-gray-700"};function x(e,t,r,o,w,B){const g=c("cl-label"),m=c("cl-icon");return l(),n("div",h,[s("div",{class:"flex cursor-pointer items-center items-stretch justify-between",onClick:t[0]||(t[0]=(...f)=>o.onToggle&&o.onToggle(...f))},[r.title?a(e.$slots,"title",{key:0},()=>[d(g,{label:r.title,class:"cursor-pointer"},null,8,["label"])]):_("",!0),a(e.$slots,"title"),s("div",y,[d(m,{class:i([{"rotate-90":!o.expanded},"my-auto h-5 w-5 transform text-gray-500 transition-transform duration-300"]),name:"chevron-down"},null,8,["class"])])]),s("div",{class:i([{"max-h-0 overflow-hidden":!o.expanded,"max-h-full":o.expanded},"duration-400 bg-white transition-height group-hover:bg-white dark:bg-gray-800 dark:group-hover:bg-gray-800"])},[r.naked?(l(),n("div",k,[a(e.$slots,"default")])):(l(),n("div",v,[a(e.$slots,"default")]))],2)])}const V=p(b,[["render",x]]);export{V 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.