PageSourceSearch

https://hixa.eu/assets/CategorizedFaqSection-DJ1UBcME.js

js hixa.eu collected 2026-10-07 13:39:43 UTC 3,212 bytes, 1 lines download raw bytes

1import{r as w,j as a}from"./vendor-react-Cz1w5J0Y.js";import{s as C}from"./sanitizeHtml-xdXnDl45.js";const E="_wrap_1rwz1_2",I="_wrapFlushTop_1rwz1_7",L="_head_1rwz1_12",A="_title_1rwz1_17",S="_layout_1rwz1_28",W="_layoutWide_1rwz1_41",F="_side_1rwz1_50",k="_tab_1rwz1_67",O="_tabActive_1rwz1_95",M="_tabLabel_1rwz1_104",R="_tabCount_1rwz1_108",V="_main_1rwz1_129",Y="_list_1rwz1_133",D="_listHidden_1rwz1_139",G="_card_1rwz1_143",J="_cardOpen_1rwz1_154",K="_q_1rwz1_159",P="_qText_1rwz1_173",U="_icon_1rwz1_179",X="_a_1rwz1_209",Z="_aHidden_1rwz1_299",t={wrap:E,wrapFlushTop:I,head:L,title:A,layout:S,layoutWide:W,side:F,tab:k,tabActive:O,tabLabel:M,tabCount:R,main:V,list:Y,listHidden:D,card:G,cardOpen:J,q:K,qText:P,icon:U,a:X,aHidden:Z};function B(m){return m.replace(/<img\b[^>]*class="emoji"[^>]*>/gi,n=>{const d=n.match(/\balt="([^"]*)"/);return d?d[1]:""})}const et=({categories:m,title:n,ariaLabel:d,autoOpenQuery:u,idBase:_="faq",sectionId:q,openFirst:b=!0,wide:$=!1,flushTop:v=!1})=>{const i=m.filter(e=>e.items.length>0),[h,x]=w.useState(0),[N,p]=w.useState(b?"0:0":""),T=e=>{x(e),p(b?`${e}:0`:"")},y=(e,s)=>{p(s?"":e),!s&&setTimeout(()=>{var o;(o=document.getElementById(`${_}-q-${e}`))==null||o.scrollIntoView({block:"start",behavior:"smooth"})},90)};return w.useEffect(()=>{if(!u)return;const e=u.toLowerCase();for(let s=0;s<i.length;s++){const o=i[s].items.findIndex(c=>c.question.toLowerCase().includes(e));if(o!==-1){x(s),p(`${s}:${o}`),setTimeout(()=>{var z,j,g,f;const c=document.getElementById(`${_}-a-${s}:${o}`);if(!c)return;const r=(g=(j=(z=document.querySelector("nav"))==null?void 0:z.parentElement)==null?void 0:j.parentElement)==null?void 0:g.parentElement,l=(f=r==null?void 0:r.offsetHeight)!=null?f:100,H=c.getBoundingClientRect();window.scrollTo({top:Math.max(0,window.scrollY+H.top-l-16),behavior:"smooth"})},200);return}}},[u]),a.jsxs("section",{className:`${$?"containerWide":"container"} ${t.wrap}${v?` ${t.wrapFlushTop}`:""}`,id:q,"aria-label":n!=null?n:d,children:[n&&a.jsx("header",{className:t.head,children:a.jsx("h2",{className:t.title,children:n})}),a.jsxs("div",{className:i.length>1?`${t.layout} ${$?t.layoutWide:""}`:void 0,children:[i.length>1&&a.jsx("aside",{className:t.side,role:"tablist","aria-label":n!=null?n:d,children:i.map((e,s)=>a.jsxs("button",{type:"button",role:"tab","aria-selected":h===s,className:`${t.tab} ${h===s?t.tabActive:""}`,onClick:()=>T(s),children:[a.jsx("span",{className:t.tabLabel,children:e.label}),a.jsx("span",{className:t.tabCount,children:e.items.length})]},e.id))}),a.jsx("div",{className:t.main,children:i.map((e,s)=>a.jsx("div",{role:"tabpanel",className:`${t.list} ${h===s?"":t.listHidden}`,children:e.items.map((o,c)=>{const r=`${s}:${c}`,l=N===r;return a.jsxs("div",{id:`${_}-q-${r}`,className:`${t.card} ${l?t.cardOpen:""}`,children:[a.jsxs("button",{type:"button",className:t.q,"aria-expanded":l,"aria-controls":`${_}-a-${r}`,onClick:()=>y(r,l),children:[a.jsx("span",{className:t.qText,children:o.question}),a.jsx("span",{className:t.icon,"aria-hidden":"true"})]}),a.jsx("div",{id:`${_}-a-${r}`,className:`${t.a} ${l?"":t.aHidden}`,dangerouslySetInnerHTML:{__html:C(B(o.answer))}})]},c)})},e.id))})]})]})};export{et as C};

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.