1import{n as s,i as d,L as F,R as S,l as x}from"./page_load-CkXUBA5P.js";import{p}from"./helpers-a_NbKhrm.js";import{_ as $,a as C}from"./flight-search-form-CYF8QsHB.js";import"./fetch-WEL-jSOR.js";const O={name:"CheckIn",props:{targetUrl:{type:String,default:"/checkin/default.asp"},checklists:{type:Array,default:()=>[[null,"Is this your bag and did you pack it yourself?","There is NO liquid or flammable item in your checked -in / Hand baggage?","You are NOT carrying any frozen meat / cooking Oil / precious items like gold or phone in your checked -in / hand baggage?","Are you certain that there is no item in it which you did not pack?","Are you certain that there is nothing in your possession that you have been asked to carry for another person?","Was it under your supervision from the time of packing until now?"],["COVID- 19 Health and Immigration Questions: (for UAE flights)","Resident Entry Permit/ Visit Visa verified through ICA & GDRFA website?","COVID - 19 test results verified as Negative or Non Active?","Health Questionnaire handed over to the guest?","PCR number updated on guest PNR?"]]}},data(){return{pnr:null,name:null,error:null}},computed:{pnrInvalidReason(){if(!this.pnr)return"Please enter the booking number you want to find";if(this.pnr.length<6)return"A valid booking number will be at least six alphanumeric characters"},nameInvalidReason(){if(!this.name)return"Please enter the first or last name of any passenger on the booking"}},methods:{clearError(){this.error=null},focusFieldRef(n){this.$nextTick(()=>{this.$refs[n].focus(),this.$refs[n].select()})},on_FindBooking(){if(this.clearError(),this.pnrInvalidReason){this.error=this.pnrInvalidReason,this.focusFieldRef("pnr");return}if(this.nameInvalidReason){this.error=this.nameInvalidReason,this.focusFieldRef("name");return}this.error||p(this.targetUrl,{PNR:this.pnr,passengerName:this.name})}}};var T=function(){var e=this,t=e._self._c;return t("div",{staticClass:"check-in-form"},[t("div",{staticClass:"form-inputs"},[t("h1",[e._v("Check In")]),t("div",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.pnr,expression:"pnr"}],ref:"pnr",attrs:{type:"text",placeholder:"Enter Booking #",required:""},domProps:{value:e.pnr},on:{focus:e.clearError,keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.on_FindBooking.apply(null,arguments)},input:function(r){r.target.composing||(e.pnr=r.target.value)}}})]),t("div",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],ref:"name",attrs:{type:"text",placeholder:"Passenger Name",required:""},domProps:{value:e.name},on:{focus:e.clearError,keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.on_FindBooking.apply(null,arguments)},input:function(r){r.target.composing||(e.name=r.target.value)}}})]),t("button",{on:{click:e.on_FindBooking}},[e._v("Find Booking")])]),t("div",{staticClass:"terms"},[e._l(e.checklists,function(r){return r?[r[0]?t("h4",[e._v(e._s(r[0]))]):e._e(),t("ol",e._l(r,function(a,i){return i&&a?t("li",[e._v(e._s(a))]):e._e()}),0)]:e._e()})],2),e.error?t("div",{staticClass:"error-message"},[e._v(e._s(e.error))]):e._e()])},R=[],D=s(O,T,R,!1,null,null);const h=D.exports,w=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),E=h,I=null,A=null;var P=s(E,I,A,!1,null,null);const N=P.exports,j=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),q=$,L=null,U=null;var B=s(q,L,U,!1,null,null);const M=B.exports,z=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),V={name:"FlightStatusTable",inject:["$website"],props:{arrivals:{type:Boolean,default:!1},startAirport:{type:String}},data(){return this.$nextTick(this.updateFlights),{airports:{},airport_code:this.startAirport,flights:null,error:null}},methods:{updateFlights(){this.error=null;var n={ajax:this.arrivals?"flightinfoarrivals":"flightinfodepartures",airport_code:this.airport_code};this.$website.get("/sched/view-status.asp",{params:n}).then(e=>this.processFlights(new DOMParser().parseFromString(e.data,"text/html"))).catch(e=>this.error=e)},processFlights(n){if(this.flights=null,n){var e=n.querySelectorAll("option");e.length&&(this.airports={},e.forEach(a=>this.airports[a.value]=a.title));let t=[],r="flight|city|date|time|status".split("|");n.querySelectorAll("tr").forEach(a=>{let i=a.querySelectorAll("td");
1if(i.length==5){let o={};i.forEach((k,y)=>o[r[y]]=k.innerText),t.push(o)}}),this.flights=t.slice(1)}}}};var H=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flight-status-table"},[t("div",{staticClass:"caption"},[t("span",{class:{departing:!e.arrivals,arriving:e.arrivals}}),t("h2",[e._v(e._s(e.arrivals?"Arrivals":"Departures"))]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.airport_code,expression:"airport_code"}],on:{change:[function(r){var a=Array.prototype.filter.call(r.target.options,function(i){return i.selected}).map(function(i){var o="_value"in i?i._value:i.value;return o});e.airport_code=r.target.multiple?a:a[0]},e.updateFlights]}},e._l(e.airports,function(r,a){return t("option",{domProps:{value:a}},[e._v(e._s(r))])}),0)]),t("div",{staticClass:"table"},[t("div",{staticClass:"header"},[t("span",[e._v("Flight")]),t("span",[e._v(e._s(e.arrivals?"Origin":"Destination"))]),t("span",[e._v("Date")]),t("span",[e._v("Time")]),t("span",[e._v("Status")])]),e._l(e.flights,function(r){return t("div",{staticClass:"flight"},[t("span",[e._v(e._s(r.flight))]),t("span",[e._v(e._s(r.city))]),t("span",[e._v(e._s(r.date))]),t("span",[e._v(e._s(r.time))]),t("span",[e._v(e._s(r.status))])])})],2),e.error?t("div",{staticClass:"error-message"},[e._v(e._s(e.error))]):e._e()])},G=[],Q=s(V,H,G,!1,null,null);const K=Q.exports,W={name:"FlightStatus",components:{FlightStatusTable:K}};var Y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"res-flight-status"},[t("flight-status-table",{key:"Departures",attrs:{"start-airport":"KHI",arrivals:!1}}),t("flight-status-table",{key:"Arrivals",attrs:{"start-airport":"ISB",arrivals:!0}})],1)},J=[],X=s(W,Y,J,!1,null,null);const g=X.exports,Z=Object.freeze(Object.defineProperty({__proto__:null,default:g},Symbol.toStringTag,{value:"Module"})),ee=g,te=null,re=null;var ne=s(ee,te,re,!1,null,null);const ae=ne.exports,ie=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),se={name:"RetrieveBooking",props:{doCheckIn:Boolean,targetUrl:{type:String,default:"/bookings/view_reservation.aspx"}},data(){return{pnr:null,name:null,error:null}},computed:{pnrInvalidReason(){if(!this.pnr)return"Please enter the booking number you want to find";if(this.pnr.length<6)return"A valid booking number will be at least six alphanumeric characters"},nameInvalidReason(){if(!this.name)return"Please enter the first or last name of any passenger on the booking"}},methods:{clearError(){this.error=null},focusFieldRef(n){this.$nextTick(()=>{this.$refs[n].focus(),this.$refs[n].select()})},on_FindBooking(){if(this.clearError(),this.pnrInvalidReason){this.error=this.pnrInvalidReason,this.focusFieldRef("pnr");return}if(this.nameInvalidReason){this.error=this.nameInvalidReason,this.focusFieldRef("name");return}this.error||p(this.targetUrl,{PNR:this.pnr,passengerName:this.name,showCheckIn:this.doCheckIn?"on":""})}}};var oe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"res-retrieve-booking"},[t("div",{staticClass:"retrieve-booking-input"},[e._m(0),t("div",{staticClass:"booking-ref-input"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.pnr,expression:"pnr"}],ref:"pnr",attrs:{type:"text",placeholder:"Booking Reference",required:""},domProps:{value:e.pnr},on:{focus:e.clearError,keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.on_FindBooking.apply(null,arguments)},input:function(r){r.target.composing||(e.pnr=r.target.value)}}})]),t("div",{staticClass:"booking-pax-input"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],ref:"name",attrs:{type:"text",placeholder:"Passenger Name",required:""},domProps:{value:e.name},on:{focus:e.clearError,keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.on_FindBooking.apply(null,arguments)},input:function(r){r.target.composing||(e.name=r.target.value)}}})]),t("div",{staticClass:"form-submit"},[t("button",{on:{click:e.on_FindBooking}},[t("span",[e._v(e._s(e.doCheckIn?"Check In":"Find Booking"))])])])]),e.error?t("div",{staticClass:"retrieve-booking-error"}
1,[t("span",[e._v(e._s(e.error))])]):e._e()])},le=[function(){var n=this,e=n._self._c;return e("div",{staticClass:"form-caption"},[e("p",[n._v("Enter your "),e("strong",[n._v("booking reference")]),n._v(" and a "),e("strong",[n._v("passenger's name")])])])}],_e=s(se,oe,le,!1,null,null);const m=_e.exports,ce=Object.freeze(Object.defineProperty({__proto__:null,default:m},Symbol.toStringTag,{value:"Module"})),ue=m,fe=null,de=null;var pe=s(ue,fe,de,!1,null,null);const he=pe.exports,ge=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"})),me=C,ve=null,be=null;var ke=s(me,ve,be,!1,null,null);const ye=ke.exports,Fe=Object.freeze(Object.defineProperty({__proto__:null,default:ye},Symbol.toStringTag,{value:"Module"}));var l={"./flight-check-in.vue":w,"./flight-search-form.vue":Fe,"./flight-status.vue":Z,"./retrieve-booking.vue":ce};function c(n){return v(n),l[n]}function v(n){if(n in l)return l[n];var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}c.keys=function(){return Object.keys(l)};c.resolve=v;c.id="__require_context_for_vite_function_0";const Se={name:"FlightSearchCMSPage",mixins:[F],components:{...d(c)},props:["DATA"],data(){return Object.assign({StaticData:null,ModelData:null,shortForm:!0,pageData:null,pageLoading:!1,animateO
1nLeave:!1,loadingResults:!1,activeTab:1},this.DATA)},computed:{client(){return this.pageData&&this.pageData.baseURL||""},staticData(){return this.StaticData||{}},dataOptions(){return this.staticData.dataOptions||{}},pageState(){return this.staticData.pageState||{}},modelData(){return this.ModelData||{}},flightSearchData(){return this.modelData.flightSearchData||{}},actionTabs(){return this.CONFIG.ShowCheckInCMSTab?["Flight Search","Manage Booking","Flight Status","Check In"]:["Flight Search","Manage Booking","Flight Status"]}},methods:{on_FlightSearchForm_Submit_Success(){this.loadingResults=!0,this.pageLeaving=!0,setTimeout(()=>window.top.location=`${this.client}flight_selection.aspx?=auto`,this.redirectTimeout)},on_FlightSearchForm_Submit_Failure(){setTimeout(()=>window.top.location=`${this.client}flight_selection.aspx?=auto`,this.redirectTimeout)}}};var xe=function(){var e=this,t=e._self._c;return t("div",{class:[e.class_LoadingPage,e.class_LoadingContent],attrs:{id:"app"}},[e.CONFIG.HideHomePageTabs?[t("flight-search-form",{directives:[{name:"show",rawName:"v-show",value:e.activeTab==1,expression:"activeTab == 1"}],attrs:{"flight-search-data":e.flightSearchData,"data-options":e.dataOptions,"page-state":e.pageState,"page-data":e.pageData,"short-form":e.shortForm,"ignore-results":!0,"loading-results":e.loadingResults},on:{"submit:success":e.on_FlightSearchForm_Submit_Success,"submit:failure":e.on_FlightSearchForm_Submit_Failure}})]:[t("ul",{staticClass:"main-tabs"},e._l(e.actionTabs,function(r,a){return t("li",{class:{selected:e.activeTab==a+1}},[t("label",{on:{click:function(i){e.activeTab=a+1}}},[e._v(e._s(r))])])}),0),t("div",{staticClass:"tabs"},[t("flight-search-form",{directives:[{name:"show",rawName:"v-show",value:e.activeTab==1,expression:"activeTab == 1"}],attrs:{"flight-search-data":e.flightSearchData,"data-options":e.dataOptions,"page-state":e.pageState,"page-data":e.pageData,"short-form":e.shortForm,"ignore-results":!0,"loading-results":e.loadingResults},on:{"submit:success":e.on_FlightSearchForm_Submit_Success,"submit:failure":e.on_FlightSearchForm_Submit_Failure}}),e.activeTab==2?t("retrieve-booking"):e._e(),e.activeTab==3?t("flight-status"):e._e(),e.CONFIG.ShowCheckInCMSTab?[e.activeTab==4?t("retrieve-booking",{attrs:{"do-check-in":!0}}):e._e()]:e._e()],2)],e.loadingResults?t("div",{staticClass:"overlay cover"}):e._e(),e.pageLoading||e.pageLeaving&&e.animateOnLeave?t("page-loading-animation",{attrs:{"page-loading":e.pageLoading,"page-leaving":e.pageLeaving,"loading-message":"Search flights","leaving-message":"Searching for flights ..."}}
1):e._e()],2)},$e=[],Ce=s(Se,xe,$e,!1,null,null);const f=Ce.exports;var _={"./flight-check-in.vue":j,"./flight-search-form.vue":z,"./flight-status.vue":ie,"./retrieve-booking.vue":ge};function u(n){return b(n),_[n]}function b(n){if(n in _)return _[n];var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}u.keys=function(){return Object.keys(_)};u.resolve=b;u.id="__require_context_for_vite_function_0";const Oe={...f,components:{...f.components,...d(u)}},Te=null,Re=null;var De=s(Oe,Te,Re,!1,null,null);const we=De.exports;let Ee={shortForm:!1,ModelData:{flightSearchData:{onlyNationalCitizens:window.ncSet}}};document.head.parentElement.className+=` ${S.format}_flight_search`;x("flight_search.aspx",we,window.DATA,Ee);
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.