1import{d as f,v as y,B as b,r as p,l as x,o as n,c as s,b as l,n as o,t as v,g as m,M as k,f as h,e as I,j as _,T as H,z as d,Y as q,_ as j,F as C,s as F,k as $}from"#entry";const z={class:"fadeIn w-full"},B={class:"flex items-start justify-between"},N={key:0,class:"answer-content max-w-5xl pt-4 lg:pr-20 lg:pt-6"},T=["innerHTML"],M=f({__name:"FaqItem",props:{item:{type:Object,required:!0},i:{type:Number,required:!0},openedItem:{type:[Number,null],required:!0}},setup(e){const a=e,t=d(null),i=d("");return y(()=>{t.value&&(i.value=`${t.value.scrollHeight}px`)}),b(()=>a.openedItem,async()=>{if(await q(),t.value){const r=t.value.scrollHeight;a.openedItem===a.i?t.value.style.maxHeight=`${r}px`:t.value.style.maxHeight=i.value}}),(r,g)=>{const u=p("in-viewport");return x((n(),s("div",z,[l("div",{class:o(["group relative flex w-full flex-col justify-between rounded-3xl bg-gray100 px-4 py-6 lg:flex-row lg:px-6 lg:py-9",{"cursor-pointer":e.item.answer}])},[e.item.time?(n(),s("p",{key:0,class:o(["fs-md mr-20 flex-none pb-4 pt-3 font-bold text-gray30 lg:pb-0",{"text-purple2":e.openedItem===e.i}])},v(e.item.time),3)):m("",!0),l("div",{ref_key:"wrap",ref:t,class:"wrap flex w-full flex-col",style:k({maxHeight:h(i),transition:"max-height 500ms ease-in-out"})},[l("div",B,[l("h6",{class:o(["fs-lg mr-4 font-semibold transition-colors duration-500 ease-in-out",{"group-hover:text-purple2":e.item.answer}])},v(e.item.question),3),e.item.answer?(n(),s("div",{key:0,class:o(["flex size-10 shrink-0 items-center justify-center rounded-full border-2 transition-all duration-500 ease-in-out group-hover:bg-purple2 group-hover:text-gray100 lg:size-11",e.item.time?"absolute right-4 top-6 lg:relative lg:right-auto lg:top-auto":"relative"])},[l("span",{class:o([[{"rotate-90 group-hover:rotate-90":e.openedItem===e.i}],"absolute inset-y-1/4 left-[45%] w-1 rounded-sm bg-white transition-all duration-300 group-hover:bg-txtblack"])},null,2),l("span",{class:o([[e.openedItem===e.i?"!inset-x-1/2 rotate-90 group-hover:!inset-x-1/2 group-hover:rotate-90":"inset-x-1/4"],"absolute top-[45%] h-1 rounded-sm bg-white transition-all duration-300 group-hover:bg-txtblack"])},null,2)],2)):m("",!0)]),I(H,{name:"fadeFromUp"},{default:_(()=>[e.openedItem===e.i&&e.item.answer?(n(),s("div",N,[l("div",{class:"rich-body",innerHTML:e.item.answer},null,8,T)])):m("",!0)]),_:1})],4)],2)])),[[u,void 0,void 0,{once:!0}]])}}}),D=j(M,[["__scopeId","data-v-05aa4aa7"]]),L={class:"padding-main flex justify-center bg-bgblack py-20 text-white"},V={class:"will-change flex w-full max-w-7xl flex-col gap-4"},A=f({__name:"RepeaterFaq",props:{items:{type:Array,required:!0}},setup(e){const a=d(null),t=i=>{i!==a.value?a.value=i:a.value=null};return(i,r)=>{const g=D,u=p("auto-animate");return n(),s("div",L,[x((n(),s("div",V,[(n(!0),s(C,null,F(e.items,(w,c)=>(n(),$(g,{key:c,item:w,i:c,"opened-item":h(a),onClick:O=>t(c)},null,8,["item","i","opened-item","onClick"]))),128))])),[[u]])])}}});export{A as _};
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.