1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1345,2261],{87339:function(t,n,e){"use strict";var r=e(88169),i=e(85893);n.Z=(0,r.Z)((0,i.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language")},46574:function(t,n,e){"use strict";var r=e(35266),i=e(98216),a=e(90948),o=e(71657);let u=(0,r.Z)({createStyledComponent:(0,a.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver(t,n){let{ownerState:e}=t;return[n.root,n[`maxWidth${(0,i.Z)(String(e.maxWidth))}`],e.fixed&&n.fixed,e.disableGutters&&n.disableGutters]}}),useThemeProps:t=>(0,o.Z)({props:t,name:"MuiContainer"})});n.Z=u},69819:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/booking/Ticket",function(){return e(79453)}])},21935:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var r=e(35944),i=e(67294),a=e(46574),o=e(98396),u=e(11163),l=e(88981),c=e(92126),d=e(4354);function s(t){var n=t.children,e=t.className,s=t.inDivClassName,p=t.isTopDiv,h=t.title,f=t.step,m=t.handlerCustomBack,v=t.isMoHeader,g=void 0===v||v,C=t.isFooter,Z=void 0===C||C,b=t.paddingBottom,y=(0,i.useState)(0),D=y[0],T=y[1],N=(0,u.useRouter)(),_=(0,o.Z)("(max-width:900px)"),k=function(t){T(t)},x=(N.asPath||"").split("?")[0],B="/"===x||/^\/contents(\/|$)/.test(x)||"/aboutUS"===x||"/fleetInformation"===x,A=(0,i.useMemo)(function(){return!!Z&&(!_||B)},[Z,_,B]);return(0,r.tZ)(r.HY,{children:void 0!==p&&p?(0,r.tZ)("div",{className:"bg bg-lgray",children:(0,r.BX)(a.Z,{maxWidth:!1,className:e,style:{paddingBottom:null!=b?b:A?D:_?25:0},children:[(0,r.tZ)(l.Z,{}),"notInDiv"===s?g?(0,r.BX)(r.HY,{children:[(0,r.tZ)(d.Z,{title:h,handlerCustomBack:m}),n,A?(0,r.tZ)(c.Z,{handleHeightChange:k}):null]}):(0,r.BX)(r.HY,{children:[n,A?(0,r.tZ)(c.Z,{handleHeightChange:k}):null]}):(0,r.BX)("div",{className:s,children:[g?(0,r.tZ)(d.Z,{title:h,step:f,handlerCustomBack:m}):null,n,A?(0,r.tZ)(c.Z,{handleHeightChange:k}):null]})]})}):(0,r.BX)(a.Z,{maxWidth:!1,className:e,style:{paddingBottom:null!=b?b:A?D:_?25:0},children:[(0,r.tZ)(l.Z,{}),"notInDiv"===s?g?(0,r.BX)(r.HY,{children:[(0,r.tZ)(d.Z,{title:h,handlerCustomBack:m}),n,A?(0,r.tZ)(c.Z,{handleHeightChange:k}):null]}):(0,r.BX)(r.HY,{children:[n,A?(0,r.tZ)(c.Z,{handleHeightChange:k}):null]}):(0,r.BX)("div",{className:s,children:[g?(0,r.tZ)(d.Z,{title:h,step:f,handlerCustomBack:m}):null,n,A?(0,r.tZ)(c.Z,{handleHeightChange:k}):null]})]})})}},42261:function(t,n,e){"use strict";e.r(n),e.d(n,{default:function(){return D}});var r=e(26042),i=e(69396),a=e(828),o=e(35944),u=e(67294),l=e(5152),c=e.n(l),d=e(11163),s=e(44858),p=e(19637),h=e(96009),f=e(93965),m=e(88726),v=e(31106),g=e(35913),C=e(88022),Z=e(44116),b=c()(e.e(2518).then(e.bind(e,42518)),{loadableGenerated:{webpack:function(){return[42518]}}}),y=c()(e.e(7884).then(e.bind(e,87884)),{loadableGenerated:{webpack:function(){return[87884]}}});function D(t){var n=t.onClose,e=t.main,l=(0,f.$G)("flightSearch"),c=l.t,D=l.i18n,T=(0,p.Z)(h.r,function(t){return t}),N=(0,p.Z)(C.z,function(t){return t.loginData}),_=(0,d.useRouter)();(0,u.useEffect)(function(){sessionStorage.removeItem("paymentCompleted")},[]),(0,u.useEffect)(function(){if(e){var t=(0,Z.Ck)("RT")||(0,Z.Ck)("OW");t&&t.adult+t.child+t.infant>1&&Q(!1),(0,Z.Ck)("OW")&&M(1)}},[]);var k=Number(_.query.key)||0,x=(0,u.useState)(!1),B=x[0],A=x[1],P=(0,u.useState)(k),S=P[0],M=P[1],W=(0,u.useState)([]),H=W[0],w=W[1],X=(0,u.useState)([]),z=X[0],E=X[1],O=(0,u.useState)({startDate:null,endD
1ate:null,realStartDate:null,realEndDate:null}),Y=O[0],j=O[1],R=(0,u.useState)([{psngrDivCd:"adult",psngrTtlCd:c("adult"),count:1,prevCount:1},{psngrDivCd:"child",psngrTtlCd:c("child"),count:0,prevCount:0},{psngrDivCd:"infant",psngrTtlCd:c("infant"),count:0,prevCount:0}]),G=R[0],I=R[1],L=(0,u.useState)(""),q=L[0],V=L[1],$=Number(_.query.adult||0)+Number(_.query.child||0)+Number(_.query.infant||0),F=(0,u.useState)($<=1),U=F[0],Q=F[1],J=(null==N?void 0:N.cstmrGradeCd)==="VIP"?"vip":(null==N?void 0:N.corpYn)==="Y"?"corp":null,K="vip"===J?null==N?void 0:N.promoCd:null==N?void 0:N.corpPromoCd,tt=J&&U&&K?K:q;(0,u.useEffect)(function(){I(function(t){return t.map(function(t){return(0,i.Z)((0,r.Z)({},t),{psngrTtlCd:"adult"===t.psngrDivCd?c("adult"):"child"===t.psngrDivCd?c("child"):c("infant")})})})},[D.language,c]);var tn=[{label:c("roundTrip"),id:"simple-tab-".concat(0),"aria-controls":"simple-tabpanel-".concat(0)},{label:c("oneWay"),id:"simple-tab-".concat(1),"aria-controls":"simple-tabpanel-".concat(1)}],te=[(0,o.tZ)(b,{main:e,flight:T,isSearchBtn:B,departureAirport:H,arrivalAirport:z,rangeDate:Y,passengerNumberList:G,promotionCodeProp:tt,autoPromoActive:!!J&&U,promoType:J,tabValue:S,onClose:n,setIsSearchBtn:A,setDepartureAirport:w,setArrivalAirport:E,setRangeDate:j,setPassengerNumberList:I,setPromotionCodeProp:V,setAutoPromoActive:Q},0),(0,o.tZ)(y,{main:e,flight:T,isSearchBtn:B,departureAirport:H,arrivalAirport:z,startDate:Y,passengerNumberList:G,promotionCodeProp:tt,autoPromoActive:!!J&&U,promoType:J,tabValue:S,onClose:n,setIsSearchBtn:A,setDepartureAirport:w,setArrivalAirport:E,setStartDate:j,setPassengerNumberList:I,setPromotionCodeProp:V,setAutoPromoActive:Q},1)],tr=function(t,n){M(n),V("")};return(0,o.tZ)(o.HY,{children:(0,o.BX)("div",{className:"quick-box",children:[(0,o.BX)("div",{className:"ticketing-box",children:[J&&U&&(0,o.BX)("div",{className:"quick-banner",children:[(0,o.tZ)("i",{className:"icon-logo_icon"}),(0,o.tZ)("span",{children:c("vip"===J?"promoAppliedVip":"promoAppliedCorp")})]}),(0,o.BX)(s.xu,{sx:{width:"100%"},children:[(0,o.tZ)(s.xu,{sx:{borderBottom:1,borderColor:"divider"},children:(0,o.tZ)(s.mQ,{className:"tabs-menu",value:S,handleChange:tr,tabs:tn})}),(0,o.tZ)(s.x4,{value:S,panels:te})]})]}),!e&&B?(0,o.tZ)("div",{className:"btn-box",children:(0,o.tZ)(s.zx,{variant:"contained",fullWidth:!0,className:"btn",size:"large",onClick:function(){var t=H.find(function(t){return t.start}),e=z.find(function(t){return t.end}),r=_.asPath||_.pathname,i=(null==t?void 0:t.depArprtCd)||(null==t?void 0:t.arrArprtCd)||null,o=(null==e?void 0:e.arrArprtCd)||(null==e?void 0:e.depArprtCd)||null;if((0,g.xP)({recent_search_o:i},{platform:"amp",updateType:"set"}),(0,g.xP)({recent_search_d:o},{platform:"amp",updateType:"set"}),window.pe&&window.pe.updatePerson({customAttributes:{recent_search_o:i,recent_search_d:o}}),(0,m.k1)({name:"search_flight_modify_button",properties:{page:r,o_airport:i,d_airport:o,o_date:(0,v.formatDateYMD)(Y.realStartDate),d_date:(0,v.formatDateYMD)(Y.realEndDate),adult:null!==(d=null===(u=G.find(function(t){return"adult"===t.psngrDivCd}))||void 0===u?void 0:u.count)&&void 0!==d?d:0,child:null!==(s=null===(l=G.find(function(t){return"child"===t.psngrDivCd}))||void 0===l?void 0:l.count)&&void 0!==s?s:0,infant:null!==(p=null===(c=G.find(function(t){return"infant"===t.psngrDivCd}))||void 0===c?void 0:c.count)&&void 0!==p?p:0,promotion:tt}}),T){"OW"===T.tripType?h=Object.entries(T.oneWay).map(function(t){var n=(0,a.Z)(t,2),e=n[0],r=n[1];return"".concat(e,"=").concat(r)}).join("&"):(f=Object.entries(T.roundTrip[0]).map(function(t){var n=(0,a.Z)(t,2),e=n[0],r=n[1];return"".concat(e,"=").concat(r)}).join("&"),C=Object.entries(T.roundTrip[1]).map(function(t){var n=(0,a.Z)(t,2),e=n[0],r=n[1];return"".concat(e,"=").concat(r)}).join("&")),Z=Object.entries(T.paxCount).map(function(t){var n=(0,a.Z)(t,2),e=n[0],r=n[1];return"".concat(e,"=").concat(r)}).join("&");var u,l,c,d,s,p,h,f,C,Z,b=tt?"&promotionCode=".concat(tt):"";_.push("/booking/AvailList?".concat(h?"key=1&".concat(h,"&").concat(Z,"&tripType=").concat(T.tripType).concat(b):"
1key=0&".concat(f,"&").concat(C,"&").concat(Z,"&tripType=").concat(T.tripType).concat(b)),"/booking/AvailList"),n&&n()}},children:c("searchFlight")})}):null]})})}},79453:function(t,n,e){"use strict";e.r(n),e.d(n,{default:function(){return c}});var r=e(35944),i=e(93965),a=e(44858),o=e(42261),u=e(21935),l=e(11163);function c(){var t=(0,l.useRouter)(),n=(0,i.$G)("flightSearch").t;return(0,r.tZ)(u.Z,{className:"container-layout pc-bg",inDivClassName:"",isTopDiv:!0,title:n("title"),handlerCustomBack:function(){t.push("/")},children:(0,r.tZ)(a.W2,{maxWidth:"xs",className:"",children:(0,r.tZ)(o.default,{})})})}},96009:function(t,n,e){"use strict";e.d(n,{r:function(){return l}});var r=e(26042),i=e(69396),a=e(42298),o=e(64529),u={tripType:"",roundTrip:[{origin:"",destination:"",travelDate:""},{origin:"",destination:"",travelDate:""}],oneWay:{origin:"",destination:"",travelDate:""},paxCount:{adult:1,child:0,infant:0}},l=(0,o.Ue)()(function(t){return(0,i.Z)((0,r.Z)({},u),{setTripType:function(n){return t(function(){return{tripType:n}})},setRoundTrip:function(n,e,r,i){return t(function(t){return{roundTrip:[{origin:n||t.roundTrip[0].origin,destination:e||t.roundTrip[0].destination,travelDate:r?(0,a.default)(r,"yyyy-MM-dd"):t.roundTrip[0].travelDate},{origin:e||t.roundTrip[1].origin,destination:n||t.roundTrip[1].destination,travelDate:i?(0,a.default)(i,"yyyy-MM-dd"):t.roundTrip[1].travelDate}]}})},setOneWay:function(n,e,r){return t(function(t){return{oneWay:{origin:n||t.oneWay.origin,destination:e||t.oneWay.destination,travelDate:r?(0,a.default)(r,"yyyy-MM-dd"):t.oneWay.travelDate}}})},setPaxCount:function(n){return t(function(){return{paxCount:{adult:n[0].prevCount,child:n[1].prevCount,infant:n[2].prevCount}}})},resetFlightStore:function(){return t(function(){return(0,r.Z)({},u)})}})})}},function(t){t.O(0,[7692,9774,2888,179],function(){return t(t.s=69819)}),_N_E=t.O()}]);
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.