1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./3PS6SQlZ.js","./DSHKT-ff.js","./C-22kGpz.js","./DhwZPgxP.js"])))=>i.map(i=>d[i]); 2import{n as a}from"./DSHKT-ff.js";import{D as e,O as t,On as n,Zn as s,_ as l,b as i,ct as o,g as c,k as d,mt as r,qt as u,tr as p,v,vn as m,y as k}from"./DhwZPgxP.js";import{t as h}from"./DbYNonRq.js";import{i as g}from"./Cgd3h9fK.js";import{t as D}from"./DgLP3hnZ.js";import{a as f,i as b,o as w}from"./D7BF7DqM.js";var y={class:"date-range-picker"},x={key:0,class:"grid grid-cols-2 gap-3"},_={class:"native-date-wrap min-w-0"},I={for:"touch-checkin",class:"sr-only"},O={key:0,class:"native-date-placeholder"},j=["value","min"],P={class:"native-date-wrap min-w-0"},B={for:"touch-checkout",class:"sr-only"},E={key:0,class:"native-date-placeholder"},R=["value","min"],$={class:"grid grid-cols-2 gap-3"},A={class:"native-date-wrap min-w-0"},F={for:"fallback-checkin",class:"sr-only"},L={key:0,class:"native-date-placeholder"},T=["value","min"],U={class:"native-date-wrap min-w-0"},q={for:"fallback-checkout",class:"sr-only"},z={key:0,class:"native-date-placeholder"},C=["value","min"],G=d({__name:"DateRangePicker",props:{startDate:{},endDate:{}},emits:["update:startDate","update:endDate"],setup(d,{emit:D}){const G=t(()=>h(()=>import("./3PS6SQlZ.js").then(a=>a.t).then(a=>a.CDateRangePicker),__vite__mapDeps([0,1,2,3]),import.meta.url)),N=d,V=D,{locale:Z,t:H}=a(),J=m(!1);o(()=>{J.value="ontouchstart"in window||navigator.maxTouchPoints>0||/iPad|iPhone|iPod|Android/i.test(navigator.userAgent)});const K=c(()=>({de:"de-DE",nl:"nl-NL",en:"en-GB"}[Z.value]||"de-DE")),M=c(()=>b(w())),Q=c(()=>f(M.value)),S=c(()=>b(N.startDate)??void 0),W=c(()=>b(N.endDate)??void 0);function X(a){const e=a.target;!e.value&&N.startDate&&(e.value=N.startDate)}function Y(a){const e=a.target;e.value!==N.startDate||N.endDate||(e.value="")}function aa(a){return f(a)}function ea(a){V("update:startDate",aa(a))}function ta(a){V("update:endDate",aa(a))}return(a,t)=>{const o=g;return r(),i("div",y,[e(o,null,{fallback:u(()=>[l("div",$,[l("div",A,[l("label",F,p(n(H)("booking.checkIn")),1),d.startDate?k("",!0):(r(),i("span",L,p(n(H)("booking.checkIn")),1)),l("input",{id:"fallback-checkin",value:d.startDate,type:"date",min:n(Q),class:s(["native-date-input w-full min-w-0 h-[44px] px-3 rounded-lg text-sm",{"has-value":d.startDate}]),onInput:t[2]||(t[2]=e=>a.$emit("update:startDate",e.target.value))},null,42,T)]),l("div",U,[l("label",q,p(n(H)("booking.checkOut")),1),d.endDate?k("",!0):(r(),i("span",z,p(n(H)("booking.checkOut")),1)),l("input",{id:"fallback-checkout",value:d.endDate,type:"date",min:d.startDate||n(Q),class:s(["native-date-input w-full min-w-0 h-[44px] px-3 rounded-lg text-sm",{"has-value":d.endDate}]),onFocus:X,onBlur:Y,onInput:t[3]||(t[3]=e=>a.$emit("update:endDate",e.target.value))},null,42,C)])])]),default:u(()=>[n(J)?(r(),i("div",x,[l("div",_,[l("label",I,p(n(H)("booking.checkIn")),1),d.startDate?k("",!0):(r(),i("span",O,p(n(H)("booking.checkIn")),1)),l("input",{id:"touch-checkin",value:d.startDate,type:"date",min:n(Q),class:s(["native-date-input w-full min-w-0 h-[44px] px-3 rounded-lg bg-white text-gray-900 text-sm",{"has-value":d.startDate}]),onInput:t[0]||(t[0]=e=>a.$emit("update:startDate",e.target.value))},null,42,j)]),l("div",P,[l("label",B,p(n(H)("booking.checkOut")),1),d.endDate?k("",!0):(r(),i("span",E,p(n(H)("booking.checkOut")),1)),l("input",{id:"touch-checkout",value:d.endDate,type:"date",min:d.startDate||n(Q),class:s(["native-date-input w-full min-w-0 h-[44px] px-3 rounded-lg bg-white text-gray-900 text-sm",{"has-value":d.endDate}]),onFocus:X,onBlur:Y,onInput:t[1]||(t[1]=e=>a.$emit("update:endDate",e.target.value))},null,42,R)])])):(r(),v(n(G),{key:1,"start-date":n(S),"end-date":n(W),locale:n(K),placeholder:[n(H)("booking.checkIn"),n(H)("booking.checkOut")],calendars:1,"first-day-of-week":1,"min-date":n(M),size:"sm","preview-date-on-hover":!1,teleport:"","onUpdate:startDate":ea,"onUpdate:endDate":ta}
2,null,8,["start-date","end-date","locale","placeholder","min-date"]))]),_:1})])}}}),N=Object.assign(D(G,[["__scopeId","data-v-dde509e3"]]),{__name:"BookingDateRangePicker"});export{N as t};
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.