1import{ak as s}from"./6f4cd925.js";import{n}from"./e493854b.js";import"./b4992bb3.js";import"./4510f9b1.js";import"./aecf5f8e.js";import"./d69eaae9.js";const o={name:"VetsterAccordion",props:{alwaysOpen:{type:Boolean,default:!1},contentPadding:{type:String,default:"pr-4"},defaultOpen:{type:Boolean,default:!1},hideToggleIcon:{type:Boolean,default:!1},icon:{type:String,default:"chevron-down"},isDarkBackground:{type:Boolean,default:!1},isRefresh:{type:Boolean,default:!1},panelClass:{type:String,default:""},termClass:{type:String,default:""},titleClass:{type:String,default:""}},data(){return{id:"accordion-".concat(s()),open:this.defaultOpen}},computed:{angleIconColor(){return this.isDarkBackground?"text-white":"text-neutral-950"}},methods:{enter(e){e.style.height="auto";const{height:t}=getComputedStyle(e);e.style.height=0,getComputedStyle(e),setTimeout(()=>{e.style.height=t})},afterEnter(e){e.style.height="auto"},leave(e){e.style.height=getComputedStyle(e).height,getComputedStyle(e),setTimeout(()=>{e.style.height=0})},toggle(){this.alwaysOpen||(this.open=!this.open)}}};var l=function(){var t=this,a=t._self._c;return a("div",{class:{open:t.open}},[a("dl",{staticClass:"panel py-6 px-2 sm:px-0",class:t.panelClass},[a("dt",{staticClass:"text-lg",class:t.termClass},[a("button",{staticClass:"text-left w-full flex justify-between items-center focus:outline-none text-neutral-400 hover:opacity-75 transition",class:[t.titleClass,{"cursor-default":t.alwaysOpen}],attrs:{type:"button","aria-controls":t.id,"aria-expanded":t.open.toString(),"aria-label":t.open?t.$t("app.close"):t.$t("app.open")},on:{click:t.toggle}},[a("span",{staticClass:"font-light transition-[font-weight] duration-200 ease-in-out",class:[t.titleClass,{"font-semibold text-black":t.open,"text-neutral-600":!t.isRefresh,"text-neutral-950":t.isRefresh,"!font-bold text-white":t.isDarkBackground,"font-semibold text-base leading-5":t.open&&t.isRefresh,"font-normal text-base leading-5":!t.open&&t.isRefresh}]},[t._t("title")],2),t.hideToggleIcon?t._e():a("span",{staticClass:"ml-6 h-7 flex items-center transition-transform duration-200 ease-in-out",class:{"rotate-180":t.open}},[a("fa",{staticClass:"text-lg",class:t.angleIconColor,attrs:{icon:["fal",t.icon]}})],1)])]),a("transition",{attrs:{name:"accordion"},on:{enter:t.enter,"after-enter":t.afterEnter,leave:t.leave}},[a("dd",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"transition-all duration-200 ease-in-out overflow-hidden",class:t.contentPadding,attrs:{id:t.id}},[a("div",{class:{"text-base text-neutral-500":!t.isRefresh,"font-normal text-base leading-5 text-neutral-700":t.isRefresh}},[t._t("content")],2)])])],1)])},i=[],r=n(o,l,i,!1,null,null,null,null);const g=r.exports;export{g 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.