PageSourceSearch

https://booking.jaegershotel.de/assets/FAQ-BB5G3nFl.js

js jaegershotel.de collected 2026-10-04 06:47:04 UTC 4,671 bytes, 1 lines download raw bytes

1import{d as B,u as z,r as p,a as D,j as G,k as m,q as H,o as r,c as i,b as o,e as n,v,z as k,t as u,h as K,G as N,at as P,x as I,E as U,F,I as L,Y as M,W,n as j}from"./vendor-lxhXACKn.js";import{b3 as J,f as Y,aZ as Z}from"./light-nUpfvi-t.js";import{u as X,J as ee,_ as te}from"./formkit.theme-DVbh0M_W.js";import{F as se}from"./fuse-CU2r43ac.js";import"./globalBasic-DCViCoV8.js";const ae={class:"lg:w-9/12 w-full lg:m-auto"},ne={class:"font-bold my-8 lg:my-0",style:{"font-size":"22px"}},oe={class:"tracking-wide text-3xl"},re={class:"print:hidden flex w-full text-xs font-bold mt-2 mb-2 items-center"},ie=["placeholder"],le={class:"flex text-[16px] overflow-x-auto py-2","aria-label":"FAQ categories"},ue=["onClick","aria-label"],ce=["id"],de=["data-group-id"],pe=["onClick","aria-expanded","aria-controls","onKeydown"],me={class:"header-group"},ge={class:"font-bold"},he=["id"],fe=["innerHTML"],ve=B({__name:"FAQ",setup(_e){const{t:g}=z(),l=X(),C=p([]),R=D(),_=G(),c=p({}),A=p([]),b=p(!1),h=p(""),x=m(()=>l.language),T=t=>(t==null?void 0:t[x.value])||"",S=t=>{const s=document.createElement("div");return s.innerHTML=t||"",(s.textContent||s.innerText||"").replace(/\u00a0/g," ").trim()!==""},q=t=>S(T(t.question))&&S(T(t.answer)),f=m(()=>C.value.map(t=>({...t,questions:(t.questions||[]).filter(q)})).filter(t=>t.questions.length>0)),E=m(()=>f.value.flatMap(t=>t.questions||[])),O=m(()=>new se(E.value,{includeScore:!0,threshold:.2,keys:[{name:`question.${x.value}`,weight:2},{name:"question.en",weight:1},{name:`answer.${x.value}`,weight:2},{name:"answer.en",weight:1}]})),V=m(()=>{if(!h.value)return f.value;const s=O.value.search(h.value).map(e=>e.item.id);return f.value.map(e=>({...e,questions:(e.questions||[]).filter(a=>s.includes(a.id)).sort((a,d)=>s.indexOf(a.id)-s.indexOf(d.id))})).filter(e=>e.questions.length>0)}),w=(t,s)=>{var e;return l.isPrinting||((e=c.value[t])==null?void 0:e[s])||!1},Q=t=>{const s=A.value.find(e=>e.getAttribute("data-group-id")==t);s&&s.scrollIntoView({behavior:"smooth"})},y=(t,s)=>{c.value[t]||(c.value[t]={}),c.value[t][s]=!c.value[t][s]},$=()=>{b.value=!b.value,setTimeout(()=>{document.getElementById("search-input").focus()},300)};return H(async()=>{var s,e;const{data:t}=await ee((s=_.params)==null?void 0:s.hotelID);C.value=((e=t==null?void 0:t.value)==null?void 0:e.data)||[]}),(t,s)=>(r(),i("div",ae,[o("div",ne,[o("p",{onClick:s[0]||(s[0]=e=>n(R).push({name:"Main",params:{hotelID:n(_).params.hotelID},query:n(_).query})),class:"font-bold cursor-pointer text-xs lg:text-sm pb-20"},[v(n(k),{icon:n(J),class:"mr-1.5"},null,8,["icon"]),o("span",null,u(n(g)("WBEPLUS.BACKTOROOMS")),1)]),o("h1",oe,u(n(g)("LOGIN.HELP_FAQ")),1)]),o("div",re,[o("button",{class:"border-r mr-2 pr-4 cursor-pointer",onClick:$,"aria-label":"Toggle FAQ search"},[v(n(k),{icon:n(Y),class:"border p-1 rounded","aria-hidden":"true"},null,8,["icon"])]),v(U,{name:"fade",mode:"out-in"},{default:K(()=>[b.value?N((r(),i("input",{key:0,type:"text",id:"search-input","onUpdate:modelValue":s[1]||(s[1]=e=>h.value=e),"aria-label":"Search FAQ",placeholder:n(g)("GLOBAL.SEARCH"),class:"border transition-all duration-500 p-2 rounded mr-3"},null,8,ie)),[[P,h.value]]):I("",!0)]),_:1}),o("nav",le,[o("button",{class:"extraFilter",onClick:s[2]||(s[2]=e=>Q(t.row.group.id))},u(n(g)("RESLIST.ALL")),1),(r(!0),i(F,null,L(f.value,(e,a)=>(r(),i("button",{class:"extraFilter",key:a,onClick:d=>Q(e.group.id),"aria-label":"Scroll to "+e.group.name[n(l).language]},u(e.group.name[n(l).language]),9,ue))),128))])]),(r(!0),i(F,null,L(V.value,e=>(r(),i("section",{key:e.group.id,id:"faq-group-"+e.group.id,class:"pb-0 mb-8 pt-4"},[o("h2",{ref_for:!0,ref_key:"groupRefs",ref:A,"data-group-id":e.group.id,class:"font-semibold text-[26px] mb-4"},u(e.group.name[n(l).language]),9,de),(r(!0),i(F,null,L(e.questions,a=>(r(),i("div",{key:a.id,onClick:d=>
1y(e.group.id,a.id),class:"faq-container borderText !rounded-md shadow-button-shadow w-full",role:"button","aria-label":"question in faq","aria-expanded":w(e.group.id,a.id)?"true":"false",tabindex:"0","aria-controls":"faq-answer-"+a.id,onKeydown:[M(d=>y(e.group.id,a.id),["enter"]),M(W(d=>y(e.group.id,a.id),["prevent"]),["space"])]},[o("div",me,[o("p",ge,u(a.question[n(l).language]),1),v(n(k),{icon:n(Z),"aria-hidden":"true",id:"chevronIcon-"+a.id,class:j(w(e.group.id,a.id)?"minimizer-open minimizer":"")},null,8,["icon","id","class"])]),w(e.group.id,a.id)?(r(),i("div",{key:0,class:"mt-5 mb-1 text-sm",id:"faq-answer-"+a.id},[o("div",{class:"custom-html",innerHTML:a.answer[n(l).language]},null,8,fe)],8,he)):I("",!0)],40,pe))),128))],8,ce))),128))]))}}),Fe=te(ve,[["__scopeId","data-v-34cc800e"]]);export{Fe 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.