PageSourceSearch

https://malaysiaaviationgroup.com.my/etc.clientlibs/mh/clientlibs/…/assets/FlightSearchMultiCity-BXxesA40.js

js malaysiaaviationgroup.com.my collected 2026-10-02 17:11:47 UTC 15,943 bytes, 2 lines download raw bytes

1import{_ as Ee,r as g,b0 as Se,Z as ye,o as fe,ck as Ce,aw as ve,af as le,a8 as Ae,bd as ke,be as ue,K as h,R as S,c2 as _e,m as Oe,ah as we,a as Be,b as w,d as U,w as xe,n as Ve,f as s,h as F,j as Y,O as Fe,i as H,t as te,I as Pe,F as De,x as se,cc as He,b1 as Ie,a2 as Qe,cu as We,cv as Ue,cj as je,ci as Le,cl as Me,cm as Ne}from"./main-BRllkcH1.js";const Re={name:"FlightSearchMultiCity",inheritAttrs:!1},Ye=Object.assign(Re,{props:{bonusSideTrip:{type:Object,default:null},bookFlight:{type:Object,default:null},termsAndConditionsTab:{type:Object,default:null},labels:{type:Object,default:null},mobileAddOns:{type:Object,default:null},multiCity:{type:Object,default:null},isInBookingWidget:{type:Boolean,default:!1},flightSearchApiUrl:{type:String,default:""},cabinClassCashList:{type:Array,default:()=>[]},cabinClassMilesList:{type:Array,default:()=>[]},componentIdAA:{type:String,default:""},togglePointsApiURL:{type:String,default:""},signUpApiUrl:{type:String,default:""},countryVariants:{type:Array,default:()=>[]},redeemFlight:{type:Object,default:null},redeemFlightOW:{type:Object,default:null},dspBookingRedirector:{type:Object,default:null},dspBookingApiUrl:{type:String,default:""},isHideContinueYourSearchSection:{type:Boolean,default:!1},enrichAlwaysOnCountriesData:{type:Array,default:()=>[]},cabinClassMilesOWList:{type:Array,default:()=>[]}},emits:["update:active-sub-tab"],setup(q,{expose:n,emit:de}){n();const e=q,oe=de,d=g(null),L=g(null),G=g(null),ie=g(null),M=g(null),z=window.siteName==="enrich-portal",{isMobileSubpageVisible:E}=Se({hashKey:["flight-search","flight-search-tab"],rootEl:d}),{isEditorMode:ne}=ye(),l=g("book-flight"),O=g("book-flight"),y=g(!1);fe(()=>{const t=Ce(d.value,".SwitchTabContent");ve(t==null?void 0:t[0],o=>{y.value&&i()})});const ae=()=>{y.value&&j()},re=()=>{},K=le("booking-widget"),{isSapphireCookiePresent:Z}=Ae();K.on((t,o)=>{switch(t){case"sticky:sticked":{y.value=!0,J(o);break}case"sticky:unsticked":{y.value=!1,X(o);break}}});const J=async t=>{O.value=l.value,t.resizeObserver.unobserve(t.triggerEl),i({skipAnimation:!0});const{paused:o}=ke();o.value=!0,await ue(200),t.triggerEl.classList.remove("pre-stick"),h.fromTo(t.triggerEl,{y:"-100%"},{y:0,duration:.3,overwrite:!0,onComplete:()=>{o.value=!1}})},X=async t=>{l.value=O.value,j({skipAnimation:!0}),await S(),await ue(200),t.resizeObserver.observe(t.triggerEl)},j=({skipAnimation:t=!1}={})=>{const o=d.value.querySelector(".VueTabs"),r=o.querySelector(".SubTabBookFlight .TransitionHeight"),T=d.value.querySelector(".continue-your-search-container");h.to(r,{duration:t?0:.2,height:"auto",onComplete:()=>{h.set(r,{overflow:"visible"})},overwrite:!0}),T&&h.to(T,{duration:t?0:.2,height:"auto",overwrite:!0}),h.to(o,{duration:t?0:.2,marginTop:0,overwrite:!0})},i=async({skipAnimation:t=!1}={})=>{const r=d.value.querySelector(".VueTabs"),W=32+r.querySelector(".VueTabs .VueSwiper").offsetHeight,k=r.querySelector(".SubTabBookFlight .TransitionHeight"),_=d.value.querySelector(".continue-your-search-container");l.value="book-flight",h.set(k,{overflow:"hidden"}),h.to(k,{duration:t?0:.2,height:0,overwrite:!0}),_&&h.to(_,{duration:t?0:.2,height:0,overwrite:!0}),h.to(r,{duration:t?0:.2,marginTop:`-${W}`,overwrite:!0})},c=g(null),B=t=>{c.value.saveSearch(t)},x=async t=>{se.value&&!z&&(E.value=!0,await S()),t.payByEnrichPoints?(l.value="redeem-flight",await S(),M.value.scrollToTab("redeem-flight"),G.value.restorePastSearch(t),G.value.isExpanded=!0):(l.value="book-flight",await S(),M.value.scrollToTab("book-flight"),L.value.restorePastSearch(t),L.value.isExpanded=!0)},f=g(!1),{commitDataToBSTOverlay:V}=_e(),P=()=>{f.value=!0},a=async t=>{se.value&&(E.value=!0,await S()),l.value="book-flight",O.value="book-flight",await S(),M.value.scrollToTab("book-flight"),L.value.updateLocationFromTo(t)},u=le("booking-widget:book-flight");u.on(async(t,o)=>{switch(t){case"active-tab-and-fill-up-form":a(o),await S();break;default:console.log(`Unknown event: ${t}. Ignore it.`);break}});const C=le("booking-widget:enrich-points-toggle-switch");C.on(async(t,o)=>{switch(t){case"update-toggle-switch":o==="logout"&&(l.value="book-flight",oe("update:active-sub-tab","book-flight")),await S();break;default:console.log(`Unknown event: ${t}. Ignore it.`);break}}),Oe(l,t=>{we([{clickName:t,clickComponentType:"Button",componentName:"FlightSearch",componentID:e.componentIdAA},{name:t,type:"other"}])});let b=!1,p=!1;fe(()=>{const t=o=>{b||o.target.tagName!=="FORM"&&(b=!0,d.value.removeEventListener("focus",t,{capture:!0}))};d.value.addEventListener("focus",t,{capture:!0})});const D=()=>{Le(l.value)},I=t=>{p||(p=!0,Me(t))},Q=t=>t==="redeem-flight"&&!Z(),v=t=>{if(!t)return;se.value&&(E.value=!0);const o=t.subtab??"";o&&(l.value=o,oe("update:active-sub-tab",o))},m=t=>{const{registerQueryChange:o}=He({mainTabName:t});o(v)};m("flight-search-tab"),m("enrich-flight-search");const A={props:e,emit:oe,rootEl:d,subTabBookFlightEl:L,subTabRedeemFlightEl:G,subTabBonusSideTripEl:ie,vueTabsComponent:M,isEnrichPortal:z,isMobileSubpageVisible:E,isEditorMode:ne,activeSubTab:l,activeSubTabPreStick:O,isSticked:y,handleRootFocusWithin:ae,handleRootBlurWithin:re,bookingWidgetBus:K,isSapphire
1CookiePresent:Z,handleOnStick:J,handleOnUnstick:X,stickyExpand:j,stickyCollapse:i,continueYourSearchComponent:c,handleSaveSearchData:B,restorePastSearch:x,isBSTOverlayVisible:f,commitDataToBSTOverlay:V,handleShowBSTOverlay:P,handleFillUpForm:a,globalBookFlightBus:u,globalBookFlightWidgetBus:C,get AAHasSentStart(){return b},set AAHasSentStart(t){b=t},get AAHasSentEnd(){return p},set AAHasSentEnd(t){p=t},triggerFlightStartEvent:D,sendFormCompleteAA:I,shouldRedirectToLogin:Q,handleQueryChange:v,setupTabWatcher:m,tabClickHandler:async t=>{var o,r;(r=(o=e.bookFlight)==null?void 0:o.general)!=null&&r.isExpandOriginDropdownOnClickTab&&t==="book-flight"&&(await S(),L.value.openFromONDPicker())},MobileSubpage:Ie,get useBookingWidgetSubpage(){return Se},VueTabs:Qe,SubTabMultiCity:We,SubTabTermsConditions:Ue,ContinueYourSearch:je,get useGlobalAEMState(){return ye},get onClickOutside(){return ve},get useEventBus(){return le},get gsap(){return h},get getAncestorBySelector(){return Ce},get isMobileViewport(){return se},get useBSTOverlayInterimData(){return _e},get pushAA_flightSearchStart(){return Le},get pushAA_flightSearchEnd(){return Me},get pushAA_click(){return we},get useHeaderScroll(){return ke},get sleep(){return ue},get useBookingWidgetUrlQuery(){return He},get useAuthStore(){return Ae}};return Object.defineProperty(A,"__isScriptSetup",{enumerable:!1,value:!0}),A}}),qe={class:"generic-container"},Ge={key:0,class:"title-editor-mode"},ze={class:"flex items-center justify-center p-4"},Ke={class:"inline-block ml-1"},Ze={class:"flex items-center justify-center p-4"},Je={class:"inline-block ml-1"},Xe={key:0,identifier:"multi-city"},$e={key:1,identifier:"terms-and-conditions"},et={class:"text-center"},tt={class:"generic-container mb-20"},ot={class:"flex items-center justify-center p-4"},it={class:"inline-block ml-1"},nt={class:"flex items-center justify-center p-4"},at={class:"inline-block ml-1"},rt={key:0,identifier:"multi-city"},lt={key:1,identifier:"terms-and-conditions"};function st(q,n,de,e,oe,d){var ie,M,z,E,ne,l,O,y,ae,re,K,Z,J,X,j;const L=Ne,G=Be("focus-within");return w(),U(De,null,[xe((w(),U("div",{ref:"rootEl",class:Ve(["FlightSearch multicity-variant booking-widget-subcomponent",{isEditorMode:e.isEditorMode}]),tabindex:"-1",onFocusWithin:e.handleRootFocusWithin,onBlurWithin:e.handleRootBlurWithin},[s("div",qe,[e.isEditorMode?(w(),U("h5",Ge,[F(L,{class:"mr-2 fill-current inline-block"}),n[7]||(n[7]=s("span",null,"Booking Widget: Flight Search",-1))])):Y("",!0),F(e.VueTabs,{ref:"vueTabsComponent",modelValue:e.activeSubTab,"onUpdate:modelValue":[n[1]||(n[1]=i=>e.activeSubTab=i),n[2]||(n[2]=i=>q.$emit("update:active-sub-tab",i))],dormantMode:e.isEditorMode,renderPanelsWithVShow:"",onTabClick:e.tabClickHandler},Fe({default:H(()=>{var i,c,B,x,f,V,P,a,u,C,b,p,D,I,Q,v,m,N,A,t,o,r,T,R,W,k,_,$,ee;return[(c=(i=e.props.multiCity)==null?void 0:i.general)!=null&&c.isHideInDesktop?Y("",!0):(w(),U("div",Xe,[F(e.SubTabMultiCity,{class:"pt-6",subHeaderTabDescription:(x=(B=e.props.multiCity)==null?void 0:B.general)==null?void 0:x.subHeaderTabDescription,subHeaderTabTooltipBody:(V=(f=e.props.multiCity)==null?void 0:f.general)==null?void 0:V.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(a=(P=e.props.multiCity)==null?void 0:P.general)==null?void 0:a.subHeaderTabTooltipLabel,note:(C=(u=e.props.multiCity)==null?void 0:u.general)==null?void 0:C.note,removeCTAText:(p=(b=e.props.multiCity)==null?void 0:b.general)==null?void 0:p.removeCTAText,addAnotherFlightCTAText:(I=(D=e.props.multiCity)==null?void 0:D.general)==null?void 0:I.addAnotherFlightCTAText,searchFlightCTAText:(v=(Q=e.props.multiCity)==null?void 0:Q.general)==null?void 0:v.searchFlightCTAText,ondSelection:(m=e.props.multiCity)==null?void 0:m.ondSelection,datePicker:(N=e.props.multiCity)==null?void 0:N.datePicker,passengerSelection:(A=e.props.multiCity)==null?void 0:A.passengerSelection,subHeaderTooltipCTATextMobileLabel:(t=e.props.mobileAddOns)==null?void 0:t.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:(o=e.props.mobileAddOns)==null?void 0:o.fromQuestionMobile,toQuestionMobile:(r=e.props.mobileAddOns)==null?void 0:r.toQuestionMobile,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,enableONDLocaleTranslation:(R=(T=e.props.labels)==null?void 0:T.ondLocale)==null?void 0:R.isEnableLocale,promoCode:(W=e.props.multiCity)==null?void 0:W.promoCode,countryVariants:e.props.countryVariants,"onOn:trigger":e.triggerFlightStartEvent,onFormSubmission:n[0]||(n[0]=ce=>e.sendFormCompleteAA("multi-city"))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","removeCTAText","addAnotherFlightCTAText","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","flightSearchApiUrl","cabinClassCashList","enableONDLocaleTranslation","promoCode","countryVariants"])])),!((_=(k=e.props.termsAndConditionsTab)==null?void 0:k.general)!=null&&_.isHideInDesktop)&&(($=e.props.termsAndConditionsTab)!=null&&$.showTandCTab)?(w(),U("div",$e,[F(e.SubTabTermsConditions,{content:(ee=e.props.termsAndConditionsTab)==null?void 0:ee.termsAndConditions},null,8,["content"])])):Y("",!0)]}),_:2},[!((M=(ie=e.props.multiCity)==null?void 0:ie.general)!=null&&M.isHideInDesktop)&&((E=(z=e.props.labels)==null?void 0:z.flightType)!=null&&E.multiCityLabel)?{name:"tab-multi-city",fn:H(()=>{var i,c;return[s("div",ze,[s("span",Ke,te((c=(i=e.props.labels)==null?void 0:i.flightType)==null?void 0:c.multiCityLabel),1)])]}),key:"0"}:void 0,!((l=(ne=e.props.termsAndConditionsTab)==null?void 0:ne.general)!=null&&l.isHideInDesktop)&&((O=e.props.termsAndConditionsTab)!=null&&O.showTandCTab)?{name:"tab-terms-and-conditions",fn:H(()=>{var i;
1return[s("div",Ze,[s("span",Je,te((i=e.props.termsAndConditionsTab)==null?void 0:i.termsAndConditionsLabel),1)])]}),key:"1"}:void 0]),1032,["modelValue","dormantMode"]),e.props.isHideContinueYourSearchSection?Y("",!0):(w(),Pe(e.ContinueYourSearch,{key:1,ref:"continueYourSearchComponent",class:"continue-your-search-container mt-5",continueYourSearchLabel:(ae=(y=e.props.bookFlight)==null?void 0:y.continueYourSearch)==null?void 0:ae.continueYourSearchLabel,economyLabel:(K=(re=e.props.bookFlight)==null?void 0:re.passengerSelection)==null?void 0:K.economyLabel,businessLabel:(J=(Z=e.props.bookFlight)==null?void 0:Z.passengerSelection)==null?void 0:J.businessLabel,businessSuiteLabel:(j=(X=e.props.bookFlight)==null?void 0:X.passengerSelection)==null?void 0:j.businessSuiteLabel,onRestorePastSearch:e.restorePastSearch},null,8,["continueYourSearchLabel","economyLabel","businessLabel","businessSuiteLabel"]))])],34)),[[G]]),F(e.MobileSubpage,{isVisible:e.isMobileSubpageVisible&&!e.isEnrichPortal,class:"text-white",style:{"--overlay-container-bg-color":"var(--secondary-blue-extradark)"},"onUpdate:isVisible":n[6]||(n[6]=i=>e.isMobileSubpageVisible=i)},{"banner-title":H(()=>[s("h1",et,te(q.$t("Flight Search")),1)]),default:H(()=>{var i,c,B,x,f,V,P;return[s("div",tt,[F(e.VueTabs,{ref:"vueTabsComponent",modelValue:e.activeSubTab,"onUpdate:modelValue":[n[4]||(n[4]=a=>e.activeSubTab=a),n[5]||(n[5]=a=>q.$emit("update:active-sub-tab",a))],renderPanelsWithVShow:""},Fe({default:H(()=>{var a,u,C,b,p,D,I,Q,v,m,N,A,t,o,r,T,R,W,k,_,$,ee,ce,be,pe,ge,he,me,Te;return[(u=(a=e.props.multiCity)==null?void 0:a.general)!=null&&u.isHideInMobile?Y("",!0):(w(),U("div",rt,[F(e.SubTabMultiCity,{class:"pt-6",subHeaderTabDescription:(b=(C=e.props.multiCity)==null?void 0:C.general)==null?void 0:b.subHeaderTabDescription,subHeaderTabTooltipBody:(D=(p=e.props.multiCity)==null?void 0:p.general)==null?void 0:D.subHeaderTabTooltipBody,subHeaderTabTooltipLabel:(Q=(I=e.props.multiCity)==null?void 0:I.general)==null?void 0:Q.subHeaderTabTooltipLabel,note:(m=(v=e.props.multiCity)==null?void 0:v.general)==null?void 0:m.note,removeCTAText:(A=(N=e.props.multiCity)==null?void 0:N.general)==null?void 0:A.removeCTAText,addAnotherFlightCTAText:(o=(t=e.props.multiCity)==null?void 0:t.general)==null?void 0:o.addAnotherFlightCTAText,searchFlightCTAText:(T=(r=e.props.multiCity)==null?void 0:r.general)==null?void 0:T.searchFlightCTAText,ondSelection:(R=e.props.multiCity)==null?void 0:R.ondSelection,datePicker:(W=e.props.multiCity)==null?void 0:W.datePicker,passengerSelection:(k=e.props.multiCity)==null?void 0:k.passengerSelection,subHeaderTooltipCTATextMobileLabel:(_=e.props.mobileAddOns)==null?void 0:_.subHeaderTooltipCTATextMobileLabel,fromQuestionMobile:($=e.props.mobileAddOns)==null?void 0:$.fromQuestionMobile,toQuestionMobile:(ee=e.props.mobileAddOns)==null?void 0:ee.toQuestionMobile,datePickerQuestionMobile:(ce=e.props.mobileAddOns)==null?void 0:ce.datePickerQuestionMobile,passengerSelectionQuestion:(be=e.props.mobileAddOns)==null?void 0:be.passengerSelectionQuestion,flightSearchApiUrl:e.props.flightSearchApiUrl,cabinClassCashList:e.props.cabinClassCashList,promoCode:(pe=e.props.multiCity)==null?void 0:pe.promoCode,countryVariants:e.props.countryVariants,onFormSubmission:n[3]||(n[3]=ct=>e.sendFormCompleteAA("multi-city"))},null,8,["subHeaderTabDescription","subHeaderTabTooltipBody","subHeaderTabTooltipLabel","note","removeCTAText","addAnotherFlightCTAText","searchFlightCTAText","ondSelection","datePicker","passengerSelection","subHeaderTooltipCTATextMobileLabel","fromQuestionMobile","toQuestionMobile","datePickerQuestionMobile","passengerSelectionQuestion","flightSearchApiUrl","cabinClassCashList","promoCode","countryVariants"])])),!((he=(ge=e.props.termsAndConditionsTab)==null?void 0:ge.general)!=null&&he.isHideInMobile)&&((me=e.props.termsAndConditionsTab)!=null&&me.showTandCTab)?(w(),U("div",lt,[F(e.SubTabTermsConditions,{content:(Te=e.props.termsAndConditionsTab)==null?void 0:Te.termsAndConditions},null,8,["content"])])):Y("",!0)]}),_:2},[!((c=(i=e.props.multiCity)==null?void 0:i.general)!=null&&c.isHideInMobile)&&((x=(B=e.props.labels)==null?void 0:B.flightType)!=null&&x.multiCityLabel)?{name:"tab-multi-city",fn:H(()=>{var a,u;return[s("div",ot,[s("span",it,te((u=(a=e.props.labels)==null?void 0:a.flightType)==null?void 0:u.multiCityLabel),1)])]}),key:"0"}:void 0,!((V=(f=e.props.termsAndConditionsTab)==null?void 0:f.general)!=null&&V.isHideInMobile)&&((P=e.props.termsAndConditionsTab)!=null&&P.showTandCTab)?{name:"tab-terms-and-conditions",fn:H(()=>{var a;return[s("div",nt,[s("span",at,te((a=e.props.termsAndConditionsTab)==null?void 0:a.termsAndConditionsLabel),1)])]}),key:"1"}:void 0]),1032,["modelValue"])])]}),_:1},8,["isVisible"])],64)}const dt=Ee(Ye,[["render",st],["__scopeId","data-v-84e08607"],["__file","FlightSearchMultiCity.vue"]]);export{dt as default};
2//# sourceMappingURL=FlightSearchMultiCity-BXxesA40.js.map

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.