1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./entry.DbmFgLr7.css","./AppLoadSearchSchedule.C-PCvfiD.css","./AppSpinner.DnO4LC1C.css","./ScheduleFormSelectedDateContent.Dbn6GqCe.css","./ScheduleFormContent.BHydP-vX.css"])))=>i.map(i=>d[i]); 2import{G as N,T as z,R,F as j,H as L,V as G,am as w,a3 as $}from"./f_G1Uo6f.js";import{d as q,m as l,q as m,D as e,N as o,H as d,A as D,v as s,Q,G as k,z as a,V as W,R as J,O as K,P as U,ac as y,c as p}from"./vendor-vueuse.u2VY2iEt.js";import{_ as X,a as Y,b as Z,c as ee,d as te,S as oe,e as ie}from"./ScheduleFormMobileTimeSelect.Dw4ODbds.js";import se from"./ScheduleFormMobile.DbnBVsbr.js";import g from"./ScheduleFormMobileInput.CSGjsPr_.js";import{u as ae}from"./useSchedulesForm.CUN_u_qZ.js";import re from"./ScheduleFormHeader.BViW9xLP.js";import{u as le}from"./useScheduleDatePicker.COWGaxba.js";const ne={key:0},de=["src"],ue={class:"margin-desktop flex h-full"},ce={class:"mt-auto w-full pb-4"},he={class:"min-h-[120px]"},me={class:"relative divide-y divide-[#E5E5E5] rounded-2xl border border-[#E5E5E5] z-[10] bg-white"},pe=["aria-label"],ge={class:"rounded-2xl border border-[#E5E5E5]"},fe=["disabled"],be={class:"!mt-0"},ve=q({__name:"ScheduleForm",props:{isShowTitle:{type:Boolean,default:!0},height:{default:"500px"}},setup(f){const F=y(()=>w(()=>import("./AppLoadSearchSchedule.V9NPSlp4.js"),__vite__mapDeps([0,1]),import.meta.url)),E=y(()=>w(()=>import("./ScheduleFormContent.CH30Cqtn.js"),__vite__mapDeps([0,2,3,4]),import.meta.url)),{displayTextDate:x,goSearchSchedule:b,loadPage:v,isNavigatingAfterSelection:u,switchTrip:_}=ae(),{initDate:T}=le(),{isMobile:C,isDesktop:I}=N(),n=z(),c=R(),{t:r}=j(),{urlBgHome:S}=L(),P=G(),B=p(()=>c({name:"boarding-origin"})),H=p(()=>c({name:"boarding-destination"})),V=p(()=>c({name:"boarding-date"})),A=i=>{u.value&&i.preventDefault()},O=i=>{if(u.value){i.preventDefault();return}n.selectedDeparture?.id||(i.preventDefault(),P.info({title:r("alert.departureCity"),position:"bottomCenter",maxWidth:400}))},M=i=>{u.value&&i.preventDefault()};return T(),(i,t)=>(l(),m(U,null,[e(I)?(l(),m("div",ne,[o("div",{style:Q({height:f.height}),class:"relative w-full"},[e(S)?(l(),m("img",{key:0,src:e(S),alt:"Hero Background",class:"absolute inset-0 h-full w-full object-cover",width:"1440",height:"500",fetchpriority:"high",loading:"eager"},null,8,de)):d("",!0),t[2]||(t[2]=o("div",{class:"absolute inset-x-0 top-0 h-32 bg-gradient-to-b from-black/40 to-transparent pointer-events-none z-[1]"},null,-1)),o("div",ue,[o("div",ce,[D(i.$slots,"content",{},void 0,!0),s(re,{"is-show-title":f.isShowTitle},null,8,["is-show-title"]),o("div",he,[s(e(E))])])]),t[3]||(t[3]=o("div",{class:"absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-white to-transparent"},null,-1))],4),D(i.$slots,"bottom-content",{},void 0,!0)])):d("",!0),e(C)?(l(),k(se,{key:1},{tabs:a(()=>[s(ie)]),input:a(()=>[o("div",me,[s(g,{id:"departure-form",to:e(B),value:e(n).selectedDeparture?.current,placeholder:e(r)("originPlaceholder"),onHandleClick:A},{icon:a(()=>[...t[4]||(t[4]=[o("img",{src:Y,alt:"Origin Icon",class:"h-5 w-5 shrink-0",width:"20",height:"20",loading:"eager"},null,-1)])]),_:1},8,["to","value","placeholder"]),s(g,{id:"destination-form",to:e(H),value:e(n).selectedDestination?.current,placeholder:e(r)("destinationPlaceholder"),onHandleClick:O},{icon:a(()=>[...t[5]||(t[5]=[o("img",{src:Z,alt:"Destination Icon",class:"h-5 w-5 shrink-0",width:"20",height:"20",loading:"eager"},null,-1)])]),_:1},8,["to","value","placeholder"]),o("button",{type:"button",class:"absolute right-4 top-1/2 rotate-180 flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-full bg-[#F59E0B]","aria-label":e(r)("swapOriginDestination"),onClick:t[0]||(t[0]=K((...h)=>e(_)&&e(_)(...h),["stop"]))},[...t[6]||(t[6]=[o("img",{src:ee,alt:"",width:"20",height:"20",loading:"eager"},null,-1)])],8,pe)]),o("div",ge,[s(g,{id:"date-form",to:e(V),value:e(n).placeHolderInputDate,placeholder:e(x),onHandleClick:M},{icon:a(()=>[...t[7]||(t[7]=[o("img",{src:te,alt:"Date Icon",class:"h-5 w-5 shrink-0",width:"20",height:"20",loading:"eager"},null,-1)])]),_:1},8,["to","value","placeholder"])]),s(oe)]),button:a(()=>[o("button",{id:"search-schedule",class:"flex w-full items-center justify-center gap-2 whitespace-nowrap rounded-full border-2 border-[#F8F8FA38] bg-[#2563EB] py-3 font-bold leading-[20px] text-white",disabled:e(v),onClick:t[1]||(t[1]=(...h)=>e(b)&&e(b)(...h))},[t[8]||(t[8]=o("img",{src:X,alt:"Search Icon",width:"16",height:"16",loading:"eager"},null,-1)),W(" "+J(e(r)("searchTicket")),1)],8,fe)]),_:1})):d("",!0),o("div",be,[e(v)?(l(),k(e(F),{key:0})):d("",!0)])],64))}}),xe=Object.assign($(ve,[["__scopeId","data-v-07ad74fb"]]),{__name:"ScheduleForm"});export{xe as S};
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.