1import{d as A,b as u,T as m,Y as p,p as b,c as a,m as s,f as c,O as x,E,r as P}from"./index-BWMC8nQi.js";const B=A({name:"CclQuestionAnswer",components:{MaCollapsePanel:p,CclComponentWrapper:m,MaSkeleton:u},props:{entryId:String,loadingElementCount:{type:Number,default:4},content:Array,tagHandling:String,isAccordion:Boolean},setup(i,{attrs:d}){const o=P(null);b("faqEntryId",i.entryId);const f=({props:e,tagData:n})=>{var t;return(t=Array.from(e?.content||[]))==null?void 0:t.concat(n||[]).map(l=>l?.fields).filter(Boolean)},v=e=>{o.value=o.value===e?null:e},g=(e,n,t)=>a("ol",{class:"ma-list-none ma-p-0"},[e?.map((l,r)=>{const w=t?o.value===r:void 0;return a("li",{key:r},[a(p,s({hasBorderBottom:!0,title:l.panelPrefix?void 0:n?`${r+1}. ${l.title}`:l.title},t&&{modelValue:w,"onUpdate:modelValue":y=>{y?v(r):o.value===r&&(o.value=null)}}),{default:()=>[a(E,{enableAutomatedHeadlineId:!0,markdown:l.longText},null)],...l.panelPrefix?{headTitle:()=>a("div",{class:"ma-collapse-panel__header-content-milestone"},[a("div",{class:"ma-collapse-panel__header-content-milestone-prefix"},[l.panelPrefix]),a("div",{class:"h4"},[l.title])])}:void 0})])})]),h=e=>e&&a("h3",{class:"ma-mb-2"},[e]),C=e=>a("ol",{class:"ma-list-none ma-p-0"},[Array(e.loadingElementCount).fill(0).map(()=>a("li",{class:"ma-mb-2"},[a(u,{width:"100%",height:"8.5rem",borderRadius:".5rem"},null)]))]);return()=>a(m,s({contentModelValidation:x(B.name)},c({...d,...i})),{default:({tagData:e,error:n,props:t,loading:l})=>
1{if(l)return C(t);if(n.length){console.warn(n);return}return a("div",s(c(d),{class:"ccl-question-answer ma-w-full"}),[h(t.headline),g(f({props:t,tagData:e}),t.showCounter,t.isAccordion)])}})}});export{B 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.