import{_ as u,x as h,I as p,k as g,ao as k,r as s,o as c,b as v,p as o,a as I,w as d,f as r,n,h as C,l as m}from"./main-DHoZdmBw.js";const B={name:"AccordionItemFi",components:{SlideUpDown:h,IconFi:p},mixins:[g,k],props:{headerTag:{type:String,default:"div"},theme:{type:String,default:""},ignoreOthers:{type:Boolean,default:!1},scrollTo:{type:Boolean,default:!1}},computed:{isItemListTheme(){return this.theme==="item-list"},isContentBackgroundDark(){return this.theme==="content-background-dark"}},methods:{onHeaderClick(){this.toggleAccordion()}}},T={class:"accordion-item-fi__toggle"},w={class:"accordion-item-fi__content"};function O(e,a,t,b,y,i){const l=s("icon-fi"),_=s("slide-up-down");return c(),v("div",{class:n({"accordion-item-fi":!0,"accordion-item-fi--active":e.isOpen,"accordion-item-fi--item-list":i.isItemListTheme,"accordion-item-fi--content-background-dark":i.isContentBackgroundDark,[`accordion-item-fi--theme-${t.theme}`]:t.theme})},[o("div",{ref:"accordionItemHeader",class:"accordion-item-fi__header",onClick:a[0]||(a[0]=(...f)=>i.onHeaderClick&&i.onHeaderClick(...f))},[(c(),I(C(t.headerTag),{class:n({"accordion-item-fi__header__text":!i.isItemListTheme,"accordion-item-fi__header__content":i.isItemListTheme})},{default:d(()=>[r(e.$slots,"header",{},void 0,!0)]),_:3},8,["class"])),o("div",T,[o("div",{class:n({"accordion-item-fi__toggle-icon":!0,"accordion-item-fi__toggle-icon--active":e.isOpen})},[m(l,{icon:"chevron-down",size:e.isSM&&!i.isItemListTheme?"2":"1"},null,8,["size"])],2)])],512),m(_,{"model-value":e.isOpen,duration:700,class:"accordion-item-fi__slide-up-down"},{default:d(()=>[o("div",w,[r(e.$slots,"content",{isOpen:e.isOpen},void 0,!0)])]),_:3},8,["model-value"])],2)}const S=u(B,[["render",O],["__scopeId","data-v-d6b4ba90"]]);export{S as A};