import{m as _,h as b,c as l,b as t,t as c,a as m,j as f,F as g,r as k,o as i,k as h,n as p}from"./app-13978987.js";const y={class:"tp-faq-area pt-100 pb-90 fix"},q={class:"container"},H={class:"row"},L={class:"col-xl-6 col-lg-6"},z={class:"tp-faq-left-wrapper p-relative"},A={class:"tp-faq-section-box pb-20"},C={class:"tp-section-subtitle-2"},T=["innerHTML"],w=["innerHTML"],M={class:"tp-faq-btn"},B={class:"tp-faq-img","data-parallax":'{"x": -50, "smoothness": 30}'},E=["src"],F={class:"col-xl-6 col-lg-6"},N={class:"tp-custom-accordion"},V={class:"accordion",id:"accordionExample"},j=["id"],S=["onClick","data-bs-target","aria-controls"],x=t("span",{class:"accordion-btn"},null,-1),D=["id","aria-labelledby"],O={class:"accordion-body"},J={__name:"FaqAreaSection",props:{data:{type:Object,default:{}},faqs:{type:Array,default:[]}},setup(s){const o=_(-1),n=_(1),u=e=>{if(o.value===e)return o.value=-1;o.value=e};return(e,$)=>{const v=b("Link");return i(),l("div",y,[t("div",q,[t("div",H,[t("div",L,[t("div",z,[t("div",A,[t("h4",C,c(s.data.top_title),1),t("h3",{class:"tp-section-title-lg",innerHTML:e.sanitizeHtml(s.data.title)},null,8,T),t("p",{innerHTML:e.sanitizeHtml(s.data.sub_title)},null,8,w)]),t("div",M,[m(v,{class:"tp-btn-green",href:e.sanitizeHtml(s.data.btn_link??"#")},{default:f(()=>[h(c(s.data.btn_text),1)]),_:1},8,["href"])]),t("div",B,[t("img",{src:e.sanitizeHtml(s.data.img_1),alt:""},null,8,E)])])]),t("div",F,[t("div",N,[t("div",V,[(i(!0),l(g,null,k(s.faqs,(d,a)=>{var r;return i(),l("div",{key:a,class:p(["accordion-items",{"tp-faq-active":o.value===a||n.value===a&&o.value===-1}])},[t("h2",{class:"accordion-header",id:"heading"+a},[t("button",{onClick:G=>u(a),class:"accordion-buttons pe-4",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse"+a,"aria-expanded":"true","aria-controls":"collapse"+a},[h(c(d.title)+" ",1),x],8,S)],8,j),t("div",{id:"collapse"+a,class:p(["accordion-collapse collapse",{show:n.value===a&&o.value===-1}]),"aria-labelledby":"heading"+a,"data-bs-parent":"#accordionExample"},[t("div",O,c(((r=d.excerpt)==null?void 0:r.value)??""),1)],10,D)],2)}),128))])])])])])])}}};export{J as default};
