1import{A as H,Gt as N,Kt as h,R as P,S as R,Ut as x,V as r,W as Q,_t as c,b as j,d as b,f as z,i as L,m as i,p as f,u as l,wt as _,xt as O}from"./DBP5xjlo.js";import{n as G}from"./Kt5f4oz9.js";import{t as J}from"./toMk8ArS.js";import{a as K,d as p}from"./-fFg9ic8.js";import{t as U}from"./T2SKaukA.js";import{t as W}from"./DOli8UGt.js";import{t as X}from"./BooYkYdU.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="f7d8b8be-2f3a-45b6-88e0-8a0b28f33060",s._sentryDebugIdIdentifier="sentry-dbid-f7d8b8be-2f3a-45b6-88e0-8a0b28f33060")}catch{}})();var Y={class:"mx-auto flex w-full flex-col gap-10 md:gap-6"},Z={class:"flex flex-col gap-10 md:flex-row md:items-start md:gap-20"},ee=R({__name:"V2FaqBlock",props:{__typename:{},id:{},title:{},faqsPerView:{},faqEntries:{},image:{},blockColorMode:{}},setup(s){const t=s,u=c(null),d=c(!1),m=c(null),v=c(null);P(()=>{m.value&&(v.value=m.value.offsetHeight)});function q(e){return e.replace(/<[^>]*>/g,"").trim()}const n=l(()=>(t.faqEntries??[]).map((e,o)=>{const a=e.id??o,g=K(e.answer||""),E=q(g);return{id:a,question:e.question||"",answer:g,plainText:E}})),C=l(()=>n.value.length>0),y=l(()=>t.faqsPerView??n.value.length),I=l(()=>d.value?n.value:n.value.slice(0,y.value)),w=l(()=>Math.max(0,n.value.length-y.value)),B=l(()=>w.value>0);function M(e){u.value=u.value===e?null:e}const V=O(()=>t.blockColorMode??null),{isDark:k,themeClass:F,bgClass:A,textPrimaryClass:D}=X(V),S=l(()=>k.value?"bg-white/10":"bg-darkNeutral-6/10"),T=l(()=>k.value?"text-white":"text-darkNeutral-6/50"),$=l(()=>{const e=n.value.map(o=>({"@type":"Question",name:o.question,acceptedAnswer:{"@type":"Answer",text:o.plainText}}));return{"@context":p["@context"],"@type":"FAQPage",name:p.name,url:p.url,description:p.description,mainEntity:e}});return G({script:[{type:"application/ld+json",innerHTML:JSON.stringify($.value)}]}),(e,o)=>C.value?(r(),i("section",{key:0,class:x(["v2-faq-block flex flex-col gap-10 px-6 py-16 pt-20 md:-mx-6 md:gap-16 md:px-10 md:py-20",[_(F),_(A)]]),"data-testid":"v2-faq-block"},[t.title?(r(),i("h2",{key:0,class:x(["mx-auto w-full font-playfair text-xxl font-normal md:text-9xl",_(D)])},h(t.title),3)):f("",!0),b("div",Y,[b("div",Z,[b("div",{ref_key:"accordionsRef",ref:m,class:"flex flex-1 flex-col gap-1"},[(r(!0),i(L,null,Q(I.value,a=>(r(),z(W,{key:`v2-faq-${a.id}`,class:"mb-0 w-full","bg-class":S.value,"icon-class":"icon-arrow_downward_alt",question:a.question,answer:a.answer,"is-open":u.value===a.id,"item-id":`v2-faq-trigger-${a.id}`,"content-id":`v2-faq-panel-${a.id}`,onToggle:g=>M(a.id)},null,8,["bg-class","question","answer","is-open","item-id","content-id","onToggle"]))),128))],512),t.image?(r(),i("div",{key:0,class:"hidden flex-shrink-0 overflow-hidden md:block md:w-90",style:N(v.value?{height:`${v.value}px`}:{})},[j(U,H(t.image,{class:"h-full w-full overflow-hidden rounded-xl"}),null,16)],4)):f("",!0)]),B.value?(r(),i("button",{key:0,class:x(["cursor-pointer border-0 bg-transparent p-0 text-left font-sans text-2xl font-normal underline underline-offset-2",T.value]),type:"button",onClick:o[0]||(o[0]=a=>d.value=!d.value)},h(d.value?"See less FAQs":`See ${w.value} more FAQs`),3)):f("",!0)])],2)):f("",!0)}}),ie=Object.assign(J(ee,[["__scopeId","data-v-ae6049a6"]]),{__name:"V2FaqBlock"});export{ie 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.