PageSourceSearch

https://booking.jaegershotel.de/assets/MenuDialog-DUHt2s2x.js

js jaegershotel.de collected 2026-10-04 06:46:07 UTC 4,240 bytes, 1 lines download raw bytes

1import{d as F,u as M,a as R,j as B,r as D,k as L,q as G,M as U,o as n,c as r,b as l,e as a,v as c,b4 as q,z as d,t as f,G as O,H as V,F as b,I as _,J as j,ay as H}from"./vendor-lxhXACKn.js";import{b8 as C}from"./light-nUpfvi-t.js";import{u as N,b as $,_ as z}from"./formkit.theme-DVbh0M_W.js";import"./globalBasic-DCViCoV8.js";const W={class:"w-full"},Q={class:"flex pt-[15dvh] md:pt-14 pl-2 justify-between items-center w-full lg:hidden"},T={class:"text-sm font-light mr-4 hover:rotate-90 duration-500 transition-all",style:{"font-size":"20px"}},J={class:"text-xs font-bold lg:hidden"},S={class:"relative flex items-center"},X=["value"],I={class:"mt-3 lg:hidden"},Y=["onClick","aria-label"],Z={class:"font-semibold"},ee={class:"hidden lg:flex lg:w-10/12 ml-auto justify-end h-auto"},te={class:"mt-5 lg:w-3/5 xl:w-3/5 2xl:mr-28 flex flex-wrap h-auto"},se=["aria-label","onClick"],ae={class:"font-semibold"},oe=F({__name:"MenuDialog",setup(le,{expose:A}){const{t:i}=M(),p=N(),t=$(),K=R();B();const{emit:g}=H(),h=D(null),P=L(()=>{var s,o;return(o=(s=t==null?void 0:t.settings)==null?void 0:s.languages)==null?void 0:o.map(e=>({value:e,label:String(e).toUpperCase()}))}),v=L(()=>{var o,e,u,x,y,k,w,E;const s=[{value:"hotel-page",labelKey:"WBEPLUS.HOTEL_PAGE",href:((u=(e=(o=t==null?void 0:t.settings)==null?void 0:o.links)==null?void 0:e.website)==null?void 0:u[p.language])??"",extern:!0},{value:"change-booking",labelKey:"EMAIL.CANCEL",href:"change_booking"}];return((x=t==null?void 0:t.settings)==null?void 0:x.hasVouchers)===!0&&((y=t==null?void 0:t.settings)==null?void 0:y.status)!==2&&s.push({value:"redeem-voucher",labelKey:"WBEPLUS.REDEEM_VOUCHER",href:"redeem_voucher"}),((k=t==null?void 0:t.settings)==null?void 0:k.hasPackages)===!0&&((w=t==null?void 0:t.settings)==null?void 0:w.status)!==2&&s.push({value:"packages",labelKey:"WBEPLUS.PACKAGES",href:"packages"}),((E=t==null?void 0:t.settings)==null?void 0:E.hasFAQ)===!0&&s.push({value:"faq",labelKey:"LOGIN.HELP_FAQ",href:"faq"}),s}),m=s=>{if(s.extern){window.open(s.href,"_blank");return}K.push({name:s.href}).then(()=>{g("close")})};return A({focusFirst:()=>{var o;if(!h.value)return;(o=Array.from(h.value.querySelectorAll("[data-menu-item]")).find(e=>e.offsetParent!==null))==null||o.focus()}}),G(()=>{U(()=>{const s=document.querySelector("dialog button");s==null||s.focus()})}),(s,o)=>(n(),r("div",null,[l("div",{class:"fixed inset-x-0 bottom-0 top-0 lg:top-14 z-[1003]","aria-hidden":"true",onClick:o[0]||(o[0]=e=>a(g)("close"))}),l("dialog",{class:"bg-surface-primary shadow-none text-text-primary overflow-scroll p-5 pl-3 pr-3 lg:p-0",open:"",tabindex:"-1",role:"dialog",ref_key:"dialogRef",ref:h,"aria-modal":"true","aria-labelledby":"menu-title"},[l("div",W,[l("div",Q,[l("div",{class:"flex cursor-pointer hover:scale-105 duration-300 transition-all items-center",onClick:o[1]||(o[1]=e=>a(g)("close"))},[l("p",T,[c(a(d),{icon:a(q)},null,8,["icon"])]),l("p",J,f(a(i)("GLOBAL.CLOSE")),1)]),l("div",S,[O(l("select",{"onUpdate:modelValue":o[2]||(o[2]=e=>a(p).language=e),class:"p-0 pr-6 text-xs font-bold cursor-pointer","aria-label":"Selected language"},[(n(!0),r(b,null,_(P.value,e=>(n(),r("option",{key:e.value,value:e.value},f(e.label),9,X))),128))],512),[[V,a(p).language]]),c(a(d),{icon:a(j),class:"absolute right-0 text-lg text-text-brand pointer-events-none","aria-hidden":"true"},null,8,["icon"])])]),l("div",I,[(n(!0),r(b,null,_(v.value,e=>(n(),r("button",{key:e.value,onClick:u=>m(e),"data-menu-item":"","aria-label":a(i)(e.labelKey),class:"flex justify-between items-center align-middle p-2 pr-1 pl-1 cursor-pointer hover:bg-surface-secondary hover:rounded-lg hover:border hover:border-info-border"},[l("span",Z,f(a(i)(e.labelKey)),1),c(a(d),{icon:a(C),class:"h-4"},null,8,["icon"])],8,Y))),128))]),l("div",ee,[l("div",te,[(n(!0),r(b,null,_(v.value,e=>(n(),r("button",{key:e.value,"aria-label":a(i)(e.labelKey),class:"flex items-center w-1/2 xl:w-5/12 p-2 cursor-pointer hover:bg-surface-secondary hover:rounded-lg hover:border hover:border-info-border",onClick:u=>m(e)},[l("span",ae,f(a(i)(e.labelKey)),1),c(a(d),{icon:a(C),class:"h-4 ml-10"},null,8,["icon"])],8,se))),128))])])])],512)]))}}
1),de=z(oe,[["__scopeId","data-v-24b05abc"]]);export{de 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.