1import{L as h,Ot as c,P as o,c as _,d as v,f as a,g as x,l as r,lt as u,nt as O,r as w,wt as f}from"./C89sYm7w.js";import{r as g}from"./B1NkGjfw.js";import{t as S}from"./BN9Ca40y.js";import{t as b}from"./K9rsuiWd.js";var N={class:"howto-container"},V=["onClick"],A={itemprop:"name",class:"howto-question-title"},F={key:0,itemprop:"description",class:"howto-question-description"},L={class:"howto-answer"},M={class:"howto-answer-content"},z={class:"howto-steps"},D=["itemprop"],E={key:0,itemprop:"text",class:"howto-step-text"},P={__name:"HowTo",props:{items:{type:Array,default:()=>[]},howTo:{type:Array,default:()=>[]},allowMultiple:{type:Boolean,default:!1},icon:{type:String,default:null}},emits:["toggle"],setup(y,{emit:T}){const s=y,I=T,m=_(()=>s.items.length>0?s.items:s.howTo),d=g("howToIcon"),k=g("faqIcon"),q=_(()=>s.icon?s.icon:d.value?d.value:k.value||"lucide:chevron-down"),l=O(new Set(m.value.map((t,n)=>t?.defaultOpen?n:null).filter(Boolean)));function C(t){const n=l.value.has(t);!s.allowMultiple&&!n&&l.value.clear(),n?l.value.delete(t):l.value.add(t),I("toggle",{index:t,isOpen:!n})}return(t,n)=>{const H=S;return o(),a("div",N,[(o(!0),a(w,null,h(u(m),(i,p)=>(o(),a("article",{key:p,itemscope:"",itemtype:"https://schema.org/HowTo",class:f(["howto-item",{active:u(l).has(p)}])},[r("button",{type:"button",class:"howto-question",onClick:e=>C(p)},[r("div",A,c(i.question?.name),1),i.question?.description?(o(),a("div",F,c(i.question?.description),1)):v("",!0),x(H,{name:u(q),class:"howto-icon"},null,8,["name"])],8,V),r("div",L,[r("div",M,[r("ol",z,[(o(!0),a(w,null,h(i.steps,(e,B)=>(o(),a("li",{key:B,itemprop:"step",itemscope:"",itemtype:"https://schema.org/HowToStep"},[r("span",{itemprop:e?.name?"name":"text",class:f({"howto-step-name":e?.name})},c(e?.name||e?.text),11,D),e?.name&&e?.text?(o(),a("div",E,c(e?.text),1)):v("",!0)]))),128))])])])],2))),128))])}}},K=b(P,[["__scopeId","data-v-ca305cba"]]);export{K 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.