-
Notifications
You must be signed in to change notification settings - Fork 0
/
5881.7d7396b122271384.js
1 lines (1 loc) · 275 KB
/
5881.7d7396b122271384.js
1
"use strict";(self.webpackChunkcheapflightclient=self.webpackChunkcheapflightclient||[]).push([[5881],{90602:(X,J,_)=>{_.d(J,{P3:()=>me,Io:()=>se});var f=_(80529),e=_(88001),Z=_(50494),C=_(54004),q=_(99251),c=_(97582),l=_(87067),m=_(43429);class h{}(0,c.gn)([(0,l.C)()],h.prototype,"status",void 0),(0,c.gn)([(0,m.D)(()=>d),(0,l.C)()],h.prototype,"data",void 0),(0,c.gn)([(0,l.C)()],h.prototype,"objectError",void 0),(0,c.gn)([(0,l.C)()],h.prototype,"success",void 0);class d{}(0,c.gn)([(0,m.D)(()=>b),(0,l.C)()],d.prototype,"bookingContact",void 0);class b{}(0,c.gn)([(0,l.C)()],b.prototype,"email",void 0),(0,c.gn)([(0,l.C)()],b.prototype,"name",void 0),(0,c.gn)([(0,l.C)()],b.prototype,"phone",void 0);class A{}(0,c.gn)([(0,l.C)()],A.prototype,"status",void 0),(0,c.gn)([(0,m.D)(()=>I),(0,l.C)()],A.prototype,"data",void 0),(0,c.gn)([(0,l.C)()],A.prototype,"objectError",void 0);class I{}(0,c.gn)([(0,l.C)()],I.prototype,"airline",void 0),(0,c.gn)([(0,l.C)()],I.prototype,"bookingCode",void 0),(0,c.gn)([(0,m.D)(()=>k),(0,l.C)()],I.prototype,"cancelCharge",void 0),(0,c.gn)([(0,m.D)(()=>N),(0,l.C)()],I.prototype,"totalCharge",void 0),(0,c.gn)([(0,m.D)(()=>Y),(0,l.C)()],I.prototype,"cancelJourney",void 0),(0,c.gn)([(0,m.D)(()=>N),(0,l.C)()],I.prototype,"nonRefund",void 0),(0,c.gn)([(0,m.D)(()=>N),(0,l.C)()],I.prototype,"refund",void 0);class k{}(0,c.gn)([(0,l.C)()],k.prototype,"base",void 0),(0,c.gn)([(0,l.C)()],k.prototype,"applied",void 0),(0,c.gn)([(0,l.C)()],k.prototype,"surCharge",void 0),(0,c.gn)([(0,l.C)()],k.prototype,"tax",void 0),(0,c.gn)([(0,l.C)()],k.prototype,"total",void 0),(0,c.gn)([(0,l.C)()],k.prototype,"discount",void 0),(0,c.gn)([(0,m.D)(()=>S),(0,l.C)()],k.prototype,"currency",void 0);class S{}(0,c.gn)([(0,l.C)()],S.prototype,"baseCurrency",void 0),(0,c.gn)([(0,l.C)()],S.prototype,"code",void 0),(0,c.gn)([(0,l.C)()],S.prototype,"description",void 0),(0,c.gn)([(0,l.C)()],S.prototype,"exchangeRate",void 0);class N{}(0,c.gn)([(0,l.C)()],N.prototype,"base",void 0),(0,c.gn)([(0,l.C)()],N.prototype,"applied",void 0),(0,c.gn)([(0,l.C)()],N.prototype,"surCharge",void 0),(0,c.gn)([(0,l.C)()],N.prototype,"tax",void 0),(0,c.gn)([(0,l.C)()],N.prototype,"total",void 0),(0,c.gn)([(0,l.C)()],N.prototype,"discount",void 0),(0,c.gn)([(0,m.D)(()=>S),(0,l.C)()],N.prototype,"currency",void 0);class Y{}(0,c.gn)([(0,m.D)(()=>fe),(0,l.C)()],Y.prototype,"journeyInfo",void 0),(0,c.gn)([(0,m.D)(()=>R),(0,l.C)()],Y.prototype,"charge",void 0);class fe{}(0,c.gn)([(0,l.C)()],fe.prototype,"key",void 0);class R{}(0,c.gn)([(0,l.C)()],R.prototype,"base",void 0),(0,c.gn)([(0,l.C)()],R.prototype,"applied",void 0),(0,c.gn)([(0,l.C)()],R.prototype,"surCharge",void 0),(0,c.gn)([(0,l.C)()],R.prototype,"tax",void 0),(0,c.gn)([(0,l.C)()],R.prototype,"total",void 0),(0,c.gn)([(0,l.C)()],R.prototype,"discount",void 0),(0,c.gn)([(0,m.D)(()=>S),(0,l.C)()],R.prototype,"currency",void 0);class re{}(0,c.gn)([(0,l.C)()],re.prototype,"status",void 0),(0,c.gn)([(0,m.D)(()=>V),(0,l.C)()],re.prototype,"data",void 0),(0,c.gn)([(0,l.C)()],re.prototype,"objectError",void 0);class V{}(0,c.gn)([(0,l.C)()],V.prototype,"airline",void 0),(0,c.gn)([(0,l.C)()],V.prototype,"pnr",void 0),(0,c.gn)([(0,m.D)(()=>W),(0,l.C)()],V.prototype,"charge",void 0),(0,c.gn)([(0,l.C)()],V.prototype,"makePayment",void 0),(0,c.gn)([(0,m.D)(()=>F),(0,l.C)()],V.prototype,"cancelJourney",void 0),(0,c.gn)([(0,m.D)(()=>O),(0,l.C)()],V.prototype,"paymentInfo",void 0);class W{}(0,c.gn)([(0,l.C)()],W.prototype,"key",void 0),(0,c.gn)([(0,m.D)(()=>ae),(0,l.C)()],W.prototype,"chargeType",void 0),(0,c.gn)([(0,m.D)(()=>G),(0,l.C)()],W.prototype,"charge",void 0),(0,c.gn)([(0,l.C)()],W.prototype,"description",void 0),(0,c.gn)([(0,l.C)()],W.prototype,"extra",void 0);class ae{}(0,c.gn)([(0,l.C)()],ae.prototype,"code",void 0),(0,c.gn)([(0,l.C)()],ae.prototype,"type",void 0),(0,c.gn)([(0,m.D)(()=>le),(0,l.C)()],ae.prototype,"description",void 0);class le{}(0,c.gn)([(0,l.C)()],le.prototype,"en",void 0),(0,c.gn)([(0,l.C)()],le.prototype,"vi",void 0);class G{}(0,c.gn)([(0,l.C)()],G.prototype,"base",void 0),(0,c.gn)([(0,l.C)()],G.prototype,"applied",void 0),(0,c.gn)([(0,l.C)()],G.prototype,"surCharge",void 0),(0,c.gn)([(0,l.C)()],G.prototype,"tax",void 0),(0,c.gn)([(0,l.C)()],G.prototype,"total",void 0),(0,c.gn)([(0,l.C)()],G.prototype,"discount",void 0),(0,c.gn)([(0,m.D)(()=>K),(0,l.C)()],G.prototype,"currency",void 0);class K{}(0,c.gn)([(0,l.C)()],K.prototype,"baseCurrency",void 0),(0,c.gn)([(0,l.C)()],K.prototype,"code",void 0),(0,c.gn)([(0,l.C)()],K.prototype,"description",void 0),(0,c.gn)([(0,l.C)()],K.prototype,"exchangeRate",void 0);class F{}(0,c.gn)([(0,l.C)()],F.prototype,"airline",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"airlineName",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"duration",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"delay",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"stopOvernight",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"fareOptions",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"key",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"leg",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"numOfStops",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"operating",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"operatingName",void 0),(0,c.gn)([(0,m.D)(()=>w),(0,l.C)()],F.prototype,"segments",void 0),(0,c.gn)([(0,m.D)(()=>te),(0,l.C)()],F.prototype,"departure",void 0),(0,c.gn)([(0,m.D)(()=>ee),(0,l.C)()],F.prototype,"arrival",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"expireTime",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"fareClass",void 0),(0,c.gn)([(0,l.C)()],F.prototype,"fareClassCode",void 0);class w{}(0,c.gn)([(0,l.C)()],w.prototype,"key",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"id",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"index",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"airline",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"airlineName",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"duration",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"delay",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"flightNumber",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"operating",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"operatingName",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"stopPoint",void 0),(0,c.gn)([(0,m.D)(()=>te),(0,l.C)()],w.prototype,"departure",void 0),(0,c.gn)([(0,m.D)(()=>ee),(0,l.C)()],w.prototype,"arrival",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"bookingClassArr",void 0),(0,c.gn)([(0,m.D)(()=>ie),(0,l.C)()],w.prototype,"bookedInfo",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"fareType",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"modelAirplane",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"modelAirplaneName",void 0),(0,c.gn)([(0,l.C)()],w.prototype,"codeAirline",void 0);class te{}(0,c.gn)([(0,m.D)(()=>ne),(0,l.C)()],te.prototype,"airport",void 0),(0,c.gn)([(0,l.C)()],te.prototype,"localTime",void 0),(0,c.gn)([(0,l.C)()],te.prototype,"scheduleTime",void 0);class ne{}(0,c.gn)([(0,l.C)()],ne.prototype,"code",void 0),(0,c.gn)([(0,l.C)()],ne.prototype,"name",void 0),(0,c.gn)([(0,m.D)(()=>z),(0,l.C)()],ne.prototype,"utcOffset",void 0);class z{}(0,c.gn)([(0,l.C)()],z.prototype,"zone",void 0),(0,c.gn)([(0,l.C)()],z.prototype,"iso",void 0);class ee{}(0,c.gn)([(0,m.D)(()=>ne),(0,l.C)()],ee.prototype,"airport",void 0),(0,c.gn)([(0,l.C)()],ee.prototype,"localTime",void 0),(0,c.gn)([(0,l.C)()],ee.prototype,"scheduleTime",void 0);class ie{}(0,c.gn)([(0,l.C)()],ie.prototype,"fareClass",void 0),(0,c.gn)([(0,l.C)()],ie.prototype,"status",void 0),(0,c.gn)([(0,l.C)()],ie.prototype,"fareType",void 0),(0,c.gn)([(0,l.C)()],ie.prototype,"fareBasic",void 0);class O{}(0,c.gn)([(0,l.C)()],O.prototype,"passengerKey",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"passengerType",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"passengerFirstName",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"passengerGender",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"passengerNamePrefix",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"passengerLastName",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"ticket",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"type",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"currencyCode",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"description",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"paymentMethod",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"paymentTime",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"paymentTimeZone",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"paymentRef",void 0),(0,c.gn)([(0,l.C)()],O.prototype,"amount",void 0);var ue=_(94650);const $={headers:new f.WM({"Content-Type":"application/json"})};let me=(()=>{class D{constructor(P,L){this.http=P,this.appConfig=L}getBookingDetail(P,L,xe=!1){return this.http.post(this.appConfig.apiUrl+"flight/booking-retriver",JSON.stringify({airline:L,bookingCode:P,refresh:xe}),$).pipe((0,C.U)(ve=>(0,Z.yE)(q.JG,ve,{excludeExtraneousValues:!0})))}quotationCancelJourney(P){return this.http.post(this.appConfig.apiUrl+"ticket/quotation-journey-cancel",JSON.stringify(P),$).pipe((0,C.U)(L=>(0,Z.yE)(A,L,{excludeExtraneousValues:!0})))}cancelJourney(P){return this.http.post(this.appConfig.apiUrl+"ticket/cancel-journey-reservation",JSON.stringify(P),$).pipe((0,C.U)(L=>(0,Z.yE)(re,L,{excludeExtraneousValues:!0})))}getBookingInfo(P){return this.http.post(this.appConfig.apiUrl+"flight/get-pnr-info",JSON.stringify(P),$).pipe((0,C.U)(L=>(0,Z.yE)(h,L,{excludeExtraneousValues:!0})))}}return D.\u0275fac=function(P){return new(P||D)(ue.LFG(f.eN),ue.LFG(e.qB))},D.\u0275prov=ue.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();var se=(()=>{return(D=se||(se={})).UPDATE_JOURNEY="UPDATE_JOURNEY",D.ADD_JOURNEY="ADD_JOURNEY",D.NONE="NONE",se;var D})()},45881:(X,J,_)=>{_.d(J,{z_:()=>uo,iU:()=>cn,AT:()=>$e,CY:()=>Ht,Js:()=>m,mO:()=>ei,Xg:()=>Gn,df:()=>Nn,a7:()=>To,$u:()=>ri,Cg:()=>u,zb:()=>gi,vj:()=>$o,Pt:()=>oo,hF:()=>xt});var f=_(36895),e=_(94650);function Z(n,o){if(1&n&&(e.TgZ(0,"tr")(1,"td",7),e._uU(2),e.qZA(),e.TgZ(3,"td",8),e._uU(4),e.qZA(),e.TgZ(5,"td",8),e._uU(6),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.type),e.xp6(2),e.Oqu(t.sex)}}function C(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Z,7,3,"tr",6),e.BQk()),2&n){const t=o.index,i=e.oxw();e.xp6(1),e.Q6J("ngIf",t<5||t>=5&&i.isShowMore)}}function q(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.onToggleShowMore())}),e._uU(1,"Hi\u1ec7n t\u1ea5t c\u1ea3"),e.qZA()}}function c(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.onToggleShowMore())}),e._uU(1,"Thu g\u1ecdn"),e.qZA()}}function l(n,o){if(1&n&&(e.TgZ(0,"div",9),e.YNc(1,q,2,0,"button",10),e.YNc(2,c,2,0,"button",10),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isShowMore),e.xp6(1),e.Q6J("ngIf",t.isShowMore)}}let m=(()=>{class n{constructor(){this.passengerInfos=[],this.isShowMore=!1}onToggleShowMore(){this.isShowMore=!this.isShowMore}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["booking-passenger-info"]],inputs:{passengerInfos:"passengerInfos"},standalone:!0,features:[e.jDz],decls:13,vars:2,consts:[[1,"px-6","pt-6","pb-6","bg-white","rounded","shadow-cf-md"],[1,"table-auto","w-full"],[1,"border-b","border-neutral-gray-1"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","pb-3"],[4,"ngFor","ngForOf"],["class","w-full flex justify-center items-center px-[15px] py-[9px] cursor-pointer bg-secondary-3-1 rounded text-heading-xs text-secondary-3-4 mt-4",4,"ngIf"],[4,"ngIf"],[1,"text-body-md","text-neutral-black","pt-4","uppercase"],[1,"text-body-md","text-neutral-black","pt-4"],[1,"w-full","flex","justify-center","items-center","px-[15px]","py-[9px]","cursor-pointer","bg-secondary-3-1","rounded","text-heading-xs","text-secondary-3-4","mt-4"],["class","w-full text-center !outline-none !outline-transparent !text-express-md","type","secondary",3,"click",4,"ngIf"],["type","secondary",1,"w-full","text-center","!outline-none","!outline-transparent","!text-express-md",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"table",1)(2,"thead")(3,"tr",2)(4,"th",3),e._uU(5,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(6,"th",3),e._uU(7,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(8,"th",3),e._uU(9,"Gi\u1edbi t\xednh"),e.qZA()()(),e.TgZ(10,"tbody"),e.YNc(11,C,2,1,"ng-container",4),e.qZA()(),e.YNc(12,l,3,2,"div",5),e.qZA()),2&t&&(e.xp6(11),e.Q6J("ngForOf",i.passengerInfos),e.xp6(1),e.Q6J("ngIf",i.passengerInfos.length>=5))},dependencies:[f.ax,f.O5],encapsulation:2}),n})();var h=_(83700),d=_(72506),b=_(74891),A=_(64425);let I=(()=>{class n{constructor(t){this.clipboard=t}onClick(t){if(this.clipboard.copy(t.innerText),t.setAttribute("title","copied"),window.getSelection){const r=document.createRange();r.selectNodeContents(t);const s=window.getSelection();null==s||s.removeAllRanges(),null==s||s.addRange(r)}setTimeout(()=>{t.removeAttribute("title")},1e3)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(A.TU))},n.\u0275dir=e.lG2({type:n,selectors:[["","CfSelectable",""]],hostBindings:function(t,i){1&t&&e.NdJ("click",function(s){return i.onClick(s.target)})},standalone:!0}),n})(),k=(()=>{class n{transform(t,i,r){return t&&t.replaceAll(i,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"replace",type:n,pure:!0,standalone:!0}),n})();var S=_(24513),N=_(40899),Y=_(98184);function fe(n,o){1&n&&e._UZ(0,"cf-icon",30)}function R(n,o){1&n&&e._UZ(0,"cf-icon",31)}function re(n,o){if(1&n&&(e.TgZ(0,"div",27)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,fe,1,0,"cf-icon",28),e.YNc(4,R,1,0,"cf-icon",29),e.TgZ(5,"span"),e._uU(6),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.hij(" ",t.bookingDetail.startPoint,""),e.xp6(1),e.Q6J("ngIf",1===t.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",t.bookingDetail.journeys.length>1),e.xp6(2),e.hij(" ",t.bookingDetail.endPoint," ")}}function V(n,o){1&n&&(e.TgZ(0,"div",32),e._uU(1," \u0110A CH\u1eb6NG "),e.qZA())}function W(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",34),e._UZ(2,"cf-icon",35),e.TgZ(3,"span",36),e._uU(4),e.ALo(5,"date"),e.qZA()(),e.BQk()),2&n){const t=o.$implicit;e.xp6(4),e.lnq("",t.startPoint," - ",t.endPoint," (",t.startTime?e.xi3(5,3,t.startTime,"HH:mm - dd/MM/yyyy"):"N/A",")")}}function ae(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,W,6,6,"ng-container",33),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.journeys)}}function le(n,o){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"cf-icon",35),e.TgZ(2,"span",36),e._uU(3),e.ALo(4,"date"),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.lnq("",t.startPoint," - ",t.endPoint," (",t.startTime?e.xi3(4,3,t.startTime,"HH:mm - dd/MM/yyyy"):"N/A",")")}}function G(n,o){if(1&n&&(e.ynx(0),e.YNc(1,le,5,6,"div",38),e.BQk()),2&n){const t=o.index;e.xp6(1),e.Q6J("ngIf",t<2)}}function K(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,G,2,1,"ng-container",33),e.TgZ(2,"div",37),e._UZ(3,"cf-icon",35),e.TgZ(4,"span"),e._uU(5),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.journeys),e.xp6(4),e.hij("v\xe0 ",t.bookingDetail.journeys.length-2," h\xe0nh tr\xecnh kh\xe1c")}}function F(n,o){if(1&n&&(e.TgZ(0,"div",24),e.YNc(1,re,7,4,"div",25),e.YNc(2,V,2,0,"div",26),e.YNc(3,ae,2,1,"div",21),e.YNc(4,K,6,2,"div",21),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isMultiJourney),e.xp6(1),e.Q6J("ngIf",t.isMultiJourney),e.xp6(1),e.Q6J("ngIf",t.bookingDetail.journeys.length<4),e.xp6(1),e.Q6J("ngIf",t.bookingDetail.journeys.length>=4)}}function w(n,o){1&n&&e._UZ(0,"div",8)}function te(n,o){if(1&n&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(3,"div",39),e._uU(4),e.qZA()()),2&n){const t=e.oxw();e.xp6(4),e.Oqu(t.bookingDetail.bookingCodeDisplay)}}function ne(n,o){1&n&&e._UZ(0,"cf-icon",40)}function z(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",41),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onRetryBooking())}),e._uU(1,"Th\u1eed l\u1ea1i"),e.qZA()}}function ee(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",45),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onActionChange(r.value))}),e._UZ(1,"cf-icon",46),e._uU(2),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("disabledOneClick",!0),e.xp6(1),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function ie(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",45),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onActionChange(r.value))}),e._UZ(1,"cf-icon",46),e._uU(2),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("disabledOneClick",!0),e.xp6(1),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function O(n,o){if(1&n&&(e.TgZ(0,"button",47,48),e._UZ(3,"cf-icon",49),e._uU(4),e.qZA()),2&n){const t=e.oxw().$implicit;e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip","H\u1ec7 th\u1ed1ng ch\u01b0a h\u1ed7 tr\u1ee3 xu\u1ea5t v\xe9 t\u1ef1 \u0111\u1ed9ng cho m\xe3 \u0111\u1eb7t ch\u1ed7 n\xe0y. Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3"),e.xp6(3),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function ue(n,o){if(1&n&&(e.TgZ(0,"button",47,48),e._UZ(3,"cf-icon",49),e._uU(4),e.qZA()),2&n){const t=e.oxw().$implicit;e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip","Kh\xf4ng th\u1ec3 xu\u1ea5t v\xe9 tr\xean v\xe9 \u0111\xe3 void. Vui l\xf2ng li\xean h\u1ec7 Booker h\u1ed7 tr\u1ee3 x\u1eed l\xfd h\u1ee7y s\u1ed1 v\xe9 tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c"),e.xp6(3),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function $(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",45),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onActionChange(r.value))}),e._UZ(1,"cf-icon",46),e._uU(2),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("disabledOneClick",!0),e.xp6(1),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function me(n,o){if(1&n&&(e.TgZ(0,"button",47,48),e._UZ(3,"cf-icon",49),e._uU(4),e.qZA()),2&n){const t=e.oxw().$implicit;e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip","Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 h\u1ee7y v\xe9 \u0111\xe3 xu\u1ea5t"),e.xp6(3),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function se(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",53),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2).$implicit,s=e.oxw(2);return s.onActionChange(r.value),e.KtG(s.isOpen=!s.isOpen)}),e._UZ(1,"cf-icon",46),e._uU(2),e.qZA()}if(2&n){const t=e.oxw(2).$implicit;e.Q6J("disabledOneClick",!0),e.xp6(1),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function D(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",56),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(5);return s.onActionChange(r.value),e.KtG(s.isOpen=!s.isOpen)}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("disabledOneClick",!0),e.xp6(1),e.hij(" ",t.name," ")}}function he(n,o){if(1&n&&(e.ynx(0),e.YNc(1,D,2,2,"button",55),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("ngIf",t.enabled)}}function P(n,o){if(1&n&&(e.TgZ(0,"div",54),e.YNc(1,he,2,1,"ng-container",33),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",t.items)}}function L(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div")(1,"div",50,48),e.YNc(4,se,3,3,"button",51),e.qZA(),e.YNc(5,P,2,1,"ng-template",52),e.NdJ("overlayOutsideClick",function(){e.CHM(t);const r=e.oxw(3);return e.KtG(r.outsideClick())}),e.qZA()}if(2&n){const t=e.MAs(3),i=e.oxw().$implicit,r=e.oxw(2);e.xp6(4),e.Q6J("ngIf",i.enabled),e.xp6(1),e.Q6J("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",r.isOpen)("cdkConnectedOverlayPositions",r.bottomCenter)}}function xe(n,o){if(1&n&&(e.ynx(0),e.YNc(1,ee,3,3,"button",43),e.YNc(2,ie,3,3,"button",43),e.YNc(3,O,5,8,"button",44),e.YNc(4,ue,5,8,"button",44),e.YNc(5,$,3,3,"button",43),e.YNc(6,me,5,8,"button",44),e.YNc(7,L,6,4,"div",21),e.BQk()),2&n){const t=o.$implicit,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf","other"!==t.value&&t.enabled&&"issue"!==t.value&&"cancel_booking"!==t.value),e.xp6(1),e.Q6J("ngIf","issue"===t.value&&t.enabled&&"VOID"!==i.bookingDetail.status&&t.enabled&&("BSP"!==i.bookingDetail.provider||"BSP"===i.bookingDetail.provider&&i.bookingDetail.ticketingAllowed)),e.xp6(1),e.Q6J("ngIf","issue"===t.value&&t.enabled&&"VOID"!==i.bookingDetail.status&&t.enabled&&"BSP"===i.bookingDetail.provider&&!i.bookingDetail.ticketingAllowed),e.xp6(1),e.Q6J("ngIf","issue"===t.value&&t.enabled&&"VOID"===i.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","cancel_booking"===t.value&&t.enabled&&"BSP"===i.bookingDetail.provider&&"ISSUED"!==i.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","cancel_booking"===t.value&&t.enabled&&"BSP"===i.bookingDetail.provider&&"ISSUED"===i.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","other"===t.value)}}function ve(n,o){if(1&n&&(e.TgZ(0,"div",42),e.YNc(1,xe,8,7,"ng-container",33),e.qZA()),2&n){const t=e.oxw();e.ekj("!grid-cols-1",1==(null==t.bookingDetail.actions?null:t.bookingDetail.actions.length)),e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.actions)}}function Ee(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",57),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onShowMore())}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.isShowMore?"Thu g\u1ecdn":"Chi ti\u1ebft")}}function be(n,o){if(1&n&&(e.TgZ(0,"div",66)(1,"div",70),e._uU(2,"Nh\xe0 cung c\u1ea5p:"),e.qZA(),e.TgZ(3,"div",71),e._uU(4),e.qZA()()),2&n){const t=e.oxw(3);e.xp6(4),e.hij("",("FLY_ONE"===t.bookingDetail.supplier?"LCC":t.bookingDetail.supplier)||"N/A"," ")}}function De(n,o){if(1&n&&(e.TgZ(0,"div",64)(1,"div",65)(2,"div",66)(3,"div",13),e._uU(4,"H\u1ec7 th\u1ed1ng \u0111\u1eb7t ch\u1ed7:"),e.qZA(),e.TgZ(5,"div",67),e._uU(6),e.qZA()(),e.TgZ(7,"div",66)(8,"div",13),e._uU(9,"Th\u1eddi h\u1ea1n gi\u1eef ch\u1ed7:"),e.qZA(),e.TgZ(10,"div",68),e._uU(11),e.qZA()(),e.TgZ(12,"div",66)(13,"div",13),e._uU(14,"Th\u1eddi h\u1ea1n gi\u1eef gi\xe1:"),e.qZA(),e.TgZ(15,"div",68),e._uU(16),e.qZA()(),e.YNc(17,be,5,1,"div",69),e.TgZ(18,"div",66)(19,"div",13),e._uU(20,"API:"),e.qZA(),e.TgZ(21,"div",68),e._uU(22),e.qZA()(),e.TgZ(23,"div",66)(24,"div",13),e._uU(25,"Ngu\u1ed3n \u0111\u1eb7t ch\u1ed7:"),e.qZA(),e._UZ(26,"div",68),e.qZA(),e.TgZ(27,"div",66)(28,"div",13),e._uU(29,"M\xe3 \u0111\u01a1n h\xe0ng:"),e.qZA(),e._UZ(30,"div",68),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(6),e.AsE(" ",t.bookingDetail.airlineSystem," - ",t.bookingDetail.airlineName,""),e.xp6(5),e.hij("",t.bookingDetail.timeHoldBooking||"N/A"," "),e.xp6(5),e.hij("",t.bookingDetail.timeHoldPricing||"N/A"," "),e.xp6(1),e.Q6J("ngIf",t.isShowSupplier&&t.bookingDetail.supplier),e.xp6(5),e.hij("",("FLY_ONE"===t.bookingDetail.provider?"LCC":t.bookingDetail.provider)||"N/A"," ")}}function Ae(n,o){if(1&n&&(e.TgZ(0,"div",72),e.O4$(),e.TgZ(1,"svg",73),e._UZ(2,"path",74)(3,"path",75),e.qZA(),e._uU(4),e.qZA()),2&n){const t=e.oxw(2);e.xp6(4),e.hij(" ",t.bookingDetail.statusDesc," ")}}function Te(n,o){1&n&&(e.TgZ(0,"div",82),e._UZ(1,"cf-icon",83),e.TgZ(2,"div"),e._uU(3,"B\u1ecb gi\xe1n \u0111o\u1ea1n"),e.qZA()())}function ke(n,o){1&n&&(e.TgZ(0,"div",84),e._UZ(1,"cf-icon",85),e.TgZ(2,"div"),e._uU(3,"Chuy\u1ebfn bay n\xe0y c\xf3 s\u1ef1 thay \u0111\u1ed5i l\u1ecbch tr\xecnh. Vui l\xf2ng ki\u1ec3m tra email, tin nh\u1eafn \u0111i\u1ec7n tho\u1ea1i/Zalo ho\u1eb7c li\xean h\u1ec7 Booker \u0111\u1ec3 c\u1eadp nh\u1eadt th\xf4ng tin m\u1edbi nh\u1ea5t"),e.qZA()())}function Ue(n,o){if(1&n&&(e.TgZ(0,"div",113),e._UZ(1,"cf-icon",114),e.TgZ(2,"span",115),e._uU(3),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.hij(" ",t.stopPoint," ")}}function qe(n,o){if(1&n&&(e.TgZ(0,"div",112)(1,"div",94),e._uU(2,"Airline code:\xa0"),e.qZA(),e.TgZ(3,"div",36),e._uU(4),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(4),e.Oqu(t.codeAirline)}}function Ie(n,o){if(1&n&&(e.TgZ(0,"div",112)(1,"div",94),e._uU(2,"D\u1ecbch v\u1ee5 kh\xe1c:\xa0"),e.qZA(),e.TgZ(3,"div",36),e._uU(4),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(4),e.hij("",t.accompaniedService," ")}}function Be(n,o){if(1&n&&(e.TgZ(0,"div",80),e.YNc(1,Ue,4,1,"div",86),e.TgZ(2,"div",87)(3,"div",88),e._UZ(4,"div",89)(5,"div",89)(6,"div",89)(7,"div",89)(8,"div",89)(9,"div",89),e.qZA(),e.TgZ(10,"div",90)(11,"div",91)(12,"div"),e._UZ(13,"img",3),e.qZA(),e.TgZ(14,"div",92)(15,"div",93),e._uU(16),e.qZA(),e.TgZ(17,"div",94),e._uU(18),e.qZA()(),e.TgZ(19,"div",95),e._uU(20),e.qZA()(),e.TgZ(21,"div",96)(22,"div",97)(23,"div",98)(24,"div",99),e._UZ(25,"cf-icon",100),e.TgZ(26,"span"),e._uU(27),e.ALo(28,"date"),e.qZA()(),e.TgZ(29,"div",101),e._UZ(30,"div",102)(31,"div",103)(32,"cf-icon",35),e.qZA()(),e.TgZ(33,"div",104),e._UZ(34,"cf-icon",105),e.TgZ(35,"div",13),e._uU(36),e.ALo(37,"date"),e.qZA()(),e.TgZ(38,"div",106),e._UZ(39,"cf-icon",107),e.TgZ(40,"div",108)(41,"span",71),e._uU(42),e.qZA(),e.TgZ(43,"span",70),e._uU(44),e.qZA()()()(),e.TgZ(45,"div")(46,"div",109),e._UZ(47,"cf-icon",100),e.TgZ(48,"span"),e._uU(49),e.ALo(50,"date"),e.qZA()(),e.TgZ(51,"div",104),e._UZ(52,"cf-icon",105),e.TgZ(53,"div",13),e._uU(54),e.ALo(55,"date"),e.qZA()(),e.TgZ(56,"div",106),e._UZ(57,"cf-icon",107),e.TgZ(58,"div",108)(59,"span",71),e._uU(60),e.qZA(),e.TgZ(61,"span",70),e._uU(62),e.qZA()()()()()(),e.TgZ(63,"div",110),e.YNc(64,qe,5,1,"div",111),e.TgZ(65,"div",112)(66,"div",94),e._uU(67,"Th\u1eddi gian bay:\xa0"),e.qZA(),e.TgZ(68,"div",36),e._uU(69),e.qZA()(),e.TgZ(70,"div",112)(71,"div",94),e._uU(72,"Lo\u1ea1i m\xe1y bay:\xa0"),e.qZA(),e.TgZ(73,"div",36),e._uU(74),e.qZA()(),e.TgZ(75,"div",112)(76,"div",94),e._uU(77,"H\u1ea1ng ch\u1ed7:\xa0"),e.qZA(),e.TgZ(78,"div",36),e._uU(79),e.qZA()(),e.TgZ(80,"div",112)(81,"div",94),e._uU(82,"H\xe0nh l\xfd k\xfd g\u1eedi:\xa0"),e.qZA(),e.TgZ(83,"div",36),e._uU(84),e.qZA()(),e.TgZ(85,"div",112)(86,"div",94),e._uU(87,"H\xe0nh l\xfd x\xe1ch tay:\xa0"),e.qZA(),e.TgZ(88,"div",36),e._uU(89),e.qZA()(),e.YNc(90,Ie,5,1,"div",111),e.qZA()()()),2&n){const t=o.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.stopPoint),e.xp6(12),e.Q6J("src",t.airlineLogo,e.LSH),e.xp6(3),e.hij("",t.operating," -"),e.xp6(2),e.hij("\xa0",t.operatingName,""),e.xp6(2),e.AsE(" ",t.airline,"",t.flightNumber," "),e.xp6(7),e.hij(" ",t.startTime?e.xi3(28,22,t.startTime,"HH:mm"):"N/A"," "),e.xp6(9),e.hij(" ",t.startTime?e.xi3(37,25,t.startTime,"EEEE, dd/MM/yyyy"):"N/A"," "),e.xp6(6),e.hij("",t.startPoint," - "),e.xp6(2),e.Oqu(t.startPointName),e.xp6(5),e.hij(" ",e.xi3(50,28,t.endTime,"HH:mm")," "),e.xp6(5),e.Oqu(e.xi3(55,31,t.endTime,"EEEE, dd/MM/yyyy")),e.xp6(6),e.hij("",t.endPoint," - "),e.xp6(2),e.Oqu(t.endPointName),e.xp6(2),e.Q6J("ngIf","GDS"===i.bookingDetail.provider&&t.codeAirline),e.xp6(5),e.Oqu(t.duration),e.xp6(5),e.Oqu(t.modelAirplane),e.xp6(5),e.AsE(" ",t.fareBasic,"(",t.fareClass?t.fareClass:"N/A",")"),e.xp6(5),e.Oqu(t.checkedBaggage),e.xp6(5),e.Oqu(t.handBaggage),e.xp6(1),e.Q6J("ngIf",t.accompaniedService)}}function we(n,o){if(1&n&&(e.TgZ(0,"div",76)(1,"div",77)(2,"div"),e._uU(3),e.ALo(4,"date"),e.qZA(),e.YNc(5,Te,4,0,"div",78),e.qZA(),e.YNc(6,ke,4,0,"div",79),e.TgZ(7,"div",80),e.YNc(8,Be,91,34,"div",81),e.qZA()()),2&n){const t=o.$implicit;e.xp6(3),e.lnq("Th\xf4ng tin chuy\u1ebfn bay ",t.startPoint," - ",t.endPoint,", ng\xe0y ",t.startTime?e.xi3(4,6,t.startTime,"dd/MM/yyyy"):"N/A",""),e.xp6(2),e.Q6J("ngIf",t.journeyStatus.disrupted),e.xp6(1),e.Q6J("ngIf",t.journeyStatus.disrupted),e.xp6(2),e.Q6J("ngForOf",t.segments)}}function Ne(n,o){1&n&&(e.TgZ(0,"th",121),e._uU(1," Thu\u1ebf ph\xed"),e.qZA())}function Fe(n,o){1&n&&(e.TgZ(0,"th",121),e._uU(1," Chi\u1ebft kh\u1ea5u"),e.qZA())}function Je(n,o){if(1&n&&(e.TgZ(0,"td",128),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,(t.tax||0)+(t.vat||0)),",",".")," ")}}function Se(n,o){if(1&n&&(e.TgZ(0,"td",133),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" (",e.Dn7(2,1,e.lcZ(3,5,t.discountAmount||0),",","."),") ")}}function Oe(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.totalDiscountFarePrice||0),",",".")," ")}}function Qe(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.total||0),",",".")," ")}}function je(n,o){if(1&n&&(e.TgZ(0,"tr")(1,"td",127),e._uU(2),e.qZA(),e.TgZ(3,"td",127),e._uU(4),e.qZA(),e.TgZ(5,"td",128),e._uU(6),e.ALo(7,"replace"),e.ALo(8,"number"),e.qZA(),e.YNc(9,Je,4,7,"td",129),e.YNc(10,Se,4,7,"td",130),e.TgZ(11,"td",128),e.YNc(12,Oe,4,7,"span",131),e.YNc(13,Qe,4,7,"ng-template",null,132,e.W1O),e.qZA()()),2&n){const t=o.$implicit,i=e.MAs(14),r=e.oxw(3);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.type),e.xp6(2),e.hij(" ",e.Dn7(7,7,e.lcZ(8,11,t.farePrice||0),",",".")," "),e.xp6(3),e.Q6J("ngIf",!r.isGDSProvider()),e.xp6(1),e.Q6J("ngIf",r.hasDiscountFare),e.xp6(2),e.Q6J("ngIf",t.discountAmount&&r.hasDiscountFare)("ngIfElse",i)}}function Me(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.hij("",e.Dn7(2,1,e.lcZ(3,5,t.bookingDetail.totalDiscountFare||0),",",".")," \u0111")}}function Pe(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(4);e.xp6(1),e.hij("",e.Dn7(2,1,e.lcZ(3,5,t.bookingDetail.totalFare||0),",",".")," \u0111")}}function Ye(n,o){if(1&n&&(e.TgZ(0,"div",134),e.YNc(1,Me,4,7,"span",21),e.YNc(2,Pe,4,7,"span",21),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.hasDiscountFare),e.xp6(1),e.Q6J("ngIf",!t.hasDiscountFare)}}function Le(n,o){if(1&n&&(e.TgZ(0,"div")(1,"div",116),e._UZ(2,"cf-icon",59),e.TgZ(3,"span",60),e._uU(4,"Gi\xe1 v\xe9 g\u1ed1c"),e.qZA(),e.TgZ(5,"span",117),e._uU(6," Ch\u01b0a bao g\u1ed3m ph\xed d\u1ecbch v\u1ee5 v\xe0 chi ph\xed d\u1ecbch v\u1ee5 c\u1ed9ng th\xeam "),e.qZA()(),e.TgZ(7,"div")(8,"table",118)(9,"thead")(10,"tr",119)(11,"th",120),e._uU(12,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(13,"th",120),e._uU(14,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(15,"th",121),e._uU(16,"Gi\xe1 v\xe9"),e.qZA(),e.YNc(17,Ne,2,0,"th",122),e.YNc(18,Fe,2,0,"th",122),e.TgZ(19,"th",121),e._uU(20,"T\u1ed5ng gi\xe1"),e.qZA()()(),e.TgZ(21,"tbody"),e.YNc(22,je,15,13,"tr",33),e.qZA()(),e._UZ(23,"hr",123),e.TgZ(24,"div",124)(25,"div",125),e._uU(26,"T\u1ed5ng gi\xe1 v\xe9"),e.qZA(),e.YNc(27,Ye,3,2,"div",126),e.qZA()()()),2&n){const t=e.oxw(2),i=e.MAs(30);e.xp6(17),e.Q6J("ngIf",!t.isGDSProvider()),e.xp6(1),e.Q6J("ngIf",t.hasDiscountFare),e.xp6(4),e.Q6J("ngForOf",t.bookingDetail.passengers),e.xp6(5),e.Q6J("ngIf",t.bookingDetail.totalFare)("ngIfElse",i)}}function He(n,o){if(1&n&&(e.TgZ(0,"div")(1,"div")(2,"div",58),e._UZ(3,"cf-icon",59),e.TgZ(4,"span",60),e._uU(5,"Th\xf4ng tin \u0111\u1eb7t ch\u1ed7"),e.qZA()(),e.YNc(6,De,31,6,"div",61),e.YNc(7,Ae,5,1,"ng-template",null,62,e.W1O),e.YNc(9,we,9,9,"div",63),e.qZA(),e.YNc(10,Le,28,5,"div",21),e.qZA()),2&n){const t=e.MAs(8),i=e.oxw();e.xp6(6),e.Q6J("ngIf","ERROR"!==i.bookingDetail.status)("ngIfElse",t),e.xp6(3),e.Q6J("ngForOf",i.bookingDetail.journeys),e.xp6(1),e.Q6J("ngIf",i.isBooked&&i.bookingDetail.totalFare)}}function Re(n,o){1&n&&(e.TgZ(0,"td",127),e._uU(1,"N/A"),e.qZA())}function Ge(n,o){1&n&&(e.TgZ(0,"td",128),e._uU(1,"N/A"),e.qZA())}function ze(n,o){1&n&&(e.TgZ(0,"div",134),e._uU(1,"N/A \u0111"),e.qZA())}let $e=(()=>{class n{constructor(t,i){this._permissionService=i,this.actionChange=new e.vpe,this.isShowMore=!1,this.isBooked=!1,this.isMultiJourney=!1,this.hasDiscountFare=!1,this.retryBooking=new e.vpe,this.isOpen=!1,this.bottomCenter=[{originX:"start",originY:"bottom",overlayX:"center",overlayY:"top",offsetX:0,offsetY:0}],this.isShowSupplier=this._permissionService.isAgent1()||this._permissionService.isBooker(),t.registerIcons([d.xgX,d.llu,d.bHT,d.QkI,d.ILM,d.tLH,d.NYs,d.okA,d.B2I,d.s5C,d.qDv,d.rks,d.Ffn,d._tC,d.fXw,d.gW0])}onShowMore(){this.isShowMore=!this.isShowMore}onActionChange(t){this.actionChange.emit(t)}outsideClick(){this.isOpen=!1}onRetryBooking(){const t=this.bookingDetail.journeys.map(i=>i.key);this.retryBooking.emit(t)}isGDSProvider(){return"GDS"===this.bookingDetail.provider}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.KNP),e.Y36(N.$A))},n.\u0275cmp=e.Xpm({type:n,selectors:[["booking-detail"]],inputs:{bookingDetail:"bookingDetail",isShowMore:"isShowMore",isBooked:"isBooked",isMultiJourney:"isMultiJourney",hasDiscountFare:"hasDiscountFare"},outputs:{actionChange:"actionChange",retryBooking:"retryBooking"},standalone:!0,features:[e.jDz],decls:35,vars:13,consts:[[1,"p-6","bg-white","rounded","shadow-cf-md"],[1,"h-[100px]","flex","justify-between","items-center","mb-6","gap-x-5"],[1,"h-full","w-full","flex","flex-col","gap-y-1.5","justify-center","items-center"],[1,"w-[120px]","h-[60px]","object-contain",3,"src"],[1,"text-body-sm","flex","flex-nowrap"],[1,"text-espressive-sm","whitespace-nowrap"],[1,"whitespace-nowrap"],[1,"h-5","flex","items-center","px-2","bg-neutral-gray-1","rounded","text-espressive-sm","text-neutral-black"],[1,"w-[2px]","h-full","border-l","border-dashed","border-neutral-gray-1"],["class","h-full w-[206px] shrink-0 flex flex-col justify-center",4,"ngIf"],["class","w-[2px] h-full border-l border-dashed border-neutral-gray-1",4,"ngIf"],["class","h-full w-full flex flex-col py-3 gap-[20px]",4,"ngIf"],[1,"h-full","w-full","flex","flex-col","py-3","gap-[20px]"],[1,"text-body-md","text-neutral-black"],[1,"text-espressive-md","text-neutral-black","flex","gap-2.5","items-center"],["icon","checkbox_checked","size","medium","class","text-secondary-5-4",4,"ngIf"],[1,"flex","flex-col","items-center"],[1,"text-espressive-md","text-neutral-black","whitespace-nowrap"],["class","text-secondary-3-4 text-body-sm hover:underline hover:cursor-pointer",3,"click",4,"ngIf"],["class","mb-2 grid grid-cols-4 gap-2",3,"!grid-cols-1",4,"ngIf"],["class","w-full flex justify-center items-center px-[15px] py-[9px] cursor-pointer bg-secondary-3-1 rounded text-heading-xs text-secondary-3-4 mt-4",3,"click",4,"ngIf"],[4,"ngIf"],["NATemplate",""],["NARightTemplate",""],[1,"h-full","w-[206px]","shrink-0","flex","flex-col","justify-center"],["class","text-heading-sm py-1 px-3 bg-neutral-gray-1 flex gap-x-2 items-center justify-center w-fit rounded",4,"ngIf"],["class","text-heading-sm py-1 px-3 bg-neutral-gray-1 flex gap-x-2 items-center justify-center w-fit rounded uppercase",4,"ngIf"],[1,"text-heading-sm","py-1","px-3","bg-neutral-gray-1","flex","gap-x-2","items-center","justify-center","w-fit","rounded"],["icon","arrow_right","size","small",4,"ngIf"],["icon","switch","size","small",4,"ngIf"],["icon","arrow_right","size","small"],["icon","switch","size","small"],[1,"text-heading-sm","py-1","px-3","bg-neutral-gray-1","flex","gap-x-2","items-center","justify-center","w-fit","rounded","uppercase"],[4,"ngFor","ngForOf"],[1,"mt-3","flex","gap-x-2"],["icon","plane","size","small",1,"text-[#ccc]"],[1,"text-espressive-sm","text-neutral-black"],[1,"text-espressive-sm","text-neutral-black","mt-3","flex","gap-x-2"],["class","mt-3 flex gap-x-2",4,"ngIf"],["CfSelectable","",1,"text-heading-lg"],["icon","checkbox_checked","size","medium",1,"text-secondary-5-4"],[1,"text-secondary-3-4","text-body-sm","hover:underline","hover:cursor-pointer",3,"click"],[1,"mb-2","grid","grid-cols-4","gap-2"],["cf-button","","size","medium","type","secondary","class","justify-center gap-x-2 button-md",3,"disabledOneClick","click",4,"ngIf"],["cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","","class","justify-center gap-x-2 button-md",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip",4,"ngIf"],["cf-button","","size","medium","type","secondary",1,"justify-center","gap-x-2","button-md",3,"disabledOneClick","click"],["size","small",3,"icon"],["cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","",1,"justify-center","gap-x-2","button-md",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip"],["trigger","","originOverlay","cdkOverlayOrigin"],["size","small",1,"opacity-50",3,"icon"],["cdkOverlayOrigin",""],["cf-button","","size","medium","type","secondary","class","w-full justify-center gap-x-2 button-md",3,"disabledOneClick","click",4,"ngIf"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","overlayOutsideClick"],["cf-button","","size","medium","type","secondary",1,"w-full","justify-center","gap-x-2","button-md",3,"disabledOneClick","click"],[1,"p-4","shadow-cf-lg","bg-neutral-white","min-w-[200px]","flex","flex-col","gap-y-2"],["cf-button","","size","medium","type","secondary","class","justify-center button-md",3,"disabledOneClick","click",4,"ngIf"],["cf-button","","size","medium","type","secondary",1,"justify-center","button-md",3,"disabledOneClick","click"],[1,"w-full","flex","justify-center","items-center","px-[15px]","py-[9px]","cursor-pointer","bg-secondary-3-1","rounded","text-heading-xs","text-secondary-3-4","mt-4",3,"click"],[1,"mb-4","mt-6","flex","items-center","gap-x-2"],["icon","circle_information","size","small"],[1,"text-heading-sm","text-neutral-black"],["class","border border-dashed rounded border-neutral-gray-2 p-6 mb-6",4,"ngIf","ngIfElse"],["templateBookingFail",""],["class","mb-6",4,"ngFor","ngForOf"],[1,"border","border-dashed","rounded","border-neutral-gray-2","p-6","mb-6"],[1,"grid","grid-cols-2","gap-x-16","gap-y-4"],[1,"flex","justify-between","items-center","w-full"],[1,"px-3","bg-secondary-5-1","rounded","text-body-md","text-secondary-5-5"],[1,"text-espressive-md","text-neutral-black"],["class","flex justify-between items-center w-full",4,"ngIf"],[1,"text-body-md"],[1,"text-espressive-md"],[1,"w-full","flex","gap-x-2","items-center","mb-6","bg-secondary-6-1","rounded","text-body-md","px-4","py-3","text-neutral-gray-6","break-all"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["d","M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","fill","#E03C31"],["d","M8.46979 8.46967C8.76269 8.17678 9.23756 8.17678 9.53045 8.46967L12.0001 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 11.9999L15.5304 14.4697C15.8233 14.7626 15.8233 15.2374 15.5304 15.5303C15.2376 15.8232 14.7627 15.8232 14.4698 15.5303L12.0001 13.0606L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9394 11.9999L8.46979 9.53033C8.1769 9.23744 8.1769 8.76256 8.46979 8.46967Z","fill","white"],[1,"mb-6"],[1,"text-espressive-sm","text-neutral-black","mb-4","flex","gap-x-4","items-center"],["class","bg-primary-1-1 text-primary-1-4 py-1.5 px-2 text-body-md flex items-center gap-x-2 rounded",4,"ngIf"],["class","py-3 px-4 bg-functional-1-1 text-body-md rounded flex items-center gap-x-2.5 mb-4",4,"ngIf"],[1,"flex","flex-col","gap-y-3"],["class","flex flex-col gap-y-3",4,"ngFor","ngForOf"],[1,"bg-primary-1-1","text-primary-1-4","py-1.5","px-2","text-body-md","flex","items-center","gap-x-2","rounded"],["icon","error","size","small",1,"text-primary-1-4"],[1,"py-3","px-4","bg-functional-1-1","text-body-md","rounded","flex","items-center","gap-x-2.5","mb-4"],["icon","info","size","medium",1,"text-functional-1-3"],["class","w-full bg-[#F0EAF4] rounded flex items-center gap-x-2 py-1.5 px-3",4,"ngIf"],[1,"flex","justify-between","items-center","border","border-neutral-gray-2","rounded","shadow-cf-journey-booking-success","relative"],[1,"absolute","-translate-x-[18%]","top-0","h-full","flex","flex-col","justify-between","py-3.5"],[1,"w-1.5","h-3","border","border-l-0","bg-neutral-white","border-neutral-gray-2","rounded-r-full"],[1,"px-8","pt-6","pb-8","flex","justify-between","gap-x-9"],[1,"flex","flex-col","items-center","justify-center"],[1,"flex","items-center","mt-1.5"],[1,"text-espressive-sm"],[1,"text-body-sm"],[1,"py-[2px]","px-2","bg-neutral-gray-1","rounded","text-espressive-sm","text-neutral-black","mt-2"],[1,"flex","justify-between","gap-x-3"],[1,""],[1,"flex","items-center","gap-x-[20px]","mb-3"],[1,"text-heading-lg","text-neutral-black","flex","gap-x-2","items-center"],["icon","clock","size","small"],[1,"flex","items-center","w-[50px]","py-1","px-2.5"],[1,"w-1.5","h-1.5","bg-neutral-gray-2","rounded-full"],[1,"w-full","h-[1px]","bg-neutral-gray-2"],[1,"flex","items-center","gap-x-2","mb-2"],["icon","calendar","size","small"],[1,"flex","gap-x-2"],["icon","location","size","small"],[1,"text-neutral-black"],[1,"text-heading-lg","text-neutral-black","flex","gap-x-2","items-center","mb-3"],[1,"py-6","px-[18px]","border-l","border-dashed","border-neutral-gray-2","flex","flex-col","justify-between","gap-y-2"],["class","flex flex-nowrap items-center",4,"ngIf"],[1,"flex","flex-nowrap","items-center"],[1,"w-full","bg-[#F0EAF4]","rounded","flex","items-center","gap-x-2","py-1.5","px-3"],["icon","circle_information","size","small",1,"text-secondary-2-4"],[1,"text-express-md","text-neutral-gray-6"],[1,"mb-4","mt-7","flex","items-center","gap-x-2"],[1,"py-[2px]","px-2","ml-1","bg-neutral-gray-1","rounded","text-espressive-sm","text-neutral-black"],[1,"table-auto","w-full"],[1,"border-b","border-neutral-gray-1"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","py-3"],[1,"text-right","text-espressive-sm","text-neutral-gray-4","py-3"],["class","text-right text-espressive-sm text-neutral-gray-4 py-3",4,"ngIf"],[1,"text-neutral-gray-1","w-full"],[1,"mt-4","flex","justify-end","items-center","gap-x-4"],[1,"text-espressive-sm","text-neutral-gray-4"],["class","text-heading-md",4,"ngIf","ngIfElse"],[1,"text-body-md","text-neutral-black","py-3"],[1,"text-right","text-body-md","text-neutral-black","py-3"],["class","text-right text-body-md text-neutral-black py-3",4,"ngIf"],["class","text-right text-body-md text-secondary-5-3 py-3",4,"ngIf"],[4,"ngIf","ngIfElse"],["noDiscountTempl",""],[1,"text-right","text-body-md","text-secondary-5-3","py-3"],[1,"text-heading-md"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),e._UZ(4,"img",3),e.qZA(),e.TgZ(5,"div",4)(6,"span",5),e._uU(7),e.qZA(),e.TgZ(8,"span",6),e._uU(9),e.qZA()(),e.TgZ(10,"div",7),e._uU(11),e.qZA()(),e._UZ(12,"div",8),e.YNc(13,F,5,4,"div",9),e.YNc(14,w,1,0,"div",10),e.YNc(15,te,5,1,"div",11),e._UZ(16,"div",8),e.TgZ(17,"div",12)(18,"div",13),e._uU(19,"Tr\u1ea1ng th\xe1i"),e.qZA(),e.TgZ(20,"div",14),e.YNc(21,ne,1,0,"cf-icon",15),e.TgZ(22,"div",16)(23,"label",17),e._uU(24),e.qZA(),e.YNc(25,z,2,0,"div",18),e.qZA()()()(),e.YNc(26,ve,2,3,"div",19),e.YNc(27,Ee,3,1,"div",20),e.YNc(28,He,11,4,"div",21),e.qZA(),e.YNc(29,Re,2,0,"ng-template",null,22,e.W1O),e.YNc(31,Ge,2,0,"ng-template",null,23,e.W1O),e.YNc(33,ze,2,0,"ng-template",null,23,e.W1O)),2&t&&(e.xp6(4),e.Q6J("src",i.bookingDetail.airlineLogo,e.LSH),e.xp6(3),e.hij("",i.bookingDetail.airlineSystem," -\xa0"),e.xp6(2),e.Oqu(i.bookingDetail.airlineName),e.xp6(2),e.hij(" H\u1ec7 th\u1ed1ng: ",i.bookingDetail.airlineSystem," "),e.xp6(2),e.Q6J("ngIf","CANCEL"!==i.bookingDetail.status&&!i.bookingDetail.isVJCancelAllJourney),e.xp6(1),e.Q6J("ngIf",i.isBooked&&!i.bookingDetail.isVJCancelAllJourney),e.xp6(1),e.Q6J("ngIf",i.bookingDetail.bookingCodeDisplay&&i.isBooked),e.xp6(6),e.Q6J("ngIf",i.isBooked),e.xp6(3),e.Oqu(i.bookingDetail.statusText),e.xp6(1),e.Q6J("ngIf",i.bookingDetail.canRetry),e.xp6(1),e.Q6J("ngIf",null==i.bookingDetail.actions?null:i.bookingDetail.actions.length),e.xp6(1),e.Q6J("ngIf","CANCEL"!==i.bookingDetail.status&&!i.bookingDetail.isVJCancelAllJourney),e.xp6(1),e.Q6J("ngIf",i.isShowMore&&"CANCEL"!==i.bookingDetail.status&&!i.bookingDetail.isVJCancelAllJourney))},dependencies:[f.O5,f.ax,f.uU,d.AxE,d.Sm8,k,f.JJ,I,h.N8,h.Xq,b.f,Y.pI,Y.xu,S.Lk],encapsulation:2}),n})();function Ve(n,o){1&n&&(e.TgZ(0,"th",5),e._uU(1,"Thu\u1ebf ph\xed "),e.qZA())}function Ke(n,o){1&n&&(e.TgZ(0,"th",5),e._uU(1," Chi\u1ebft kh\u1ea5u"),e.qZA())}function Xe(n,o){if(1&n&&(e.TgZ(0,"td",16),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(e.Dn7(2,1,e.lcZ(3,5,t.tax),",","."))}}function We(n,o){if(1&n&&(e.TgZ(0,"td",22),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" (",e.Dn7(2,1,e.lcZ(3,5,t.discountAmount),",","."),") ")}}function et(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.totalDiscountFarePrice),",",".")," ")}}function tt(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(e.Dn7(2,1,e.lcZ(3,5,t.total),",","."))}}function nt(n,o){if(1&n&&(e.TgZ(0,"tr")(1,"td",14),e._uU(2),e.qZA(),e.TgZ(3,"td",15),e._uU(4),e.qZA(),e.TgZ(5,"td",16),e._uU(6),e.ALo(7,"replace"),e.ALo(8,"number"),e.qZA(),e.YNc(9,Xe,4,7,"td",17),e.YNc(10,We,4,7,"td",18),e.TgZ(11,"td",19),e.YNc(12,et,4,7,"span",20),e.YNc(13,tt,4,7,"ng-template",null,21,e.W1O),e.qZA()()),2&n){const t=o.$implicit,i=e.MAs(14),r=e.oxw(2);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.type),e.xp6(2),e.Oqu(e.Dn7(7,7,e.lcZ(8,11,t.base),",",".")),e.xp6(3),e.Q6J("ngIf",!r.isGDSProvider),e.xp6(1),e.Q6J("ngIf",r.hasDiscountFare),e.xp6(2),e.Q6J("ngIf",t.discountAmount&&r.hasDiscountFare)("ngIfElse",i)}}function it(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",e.Dn7(2,1,e.lcZ(3,5,t.priceDetail.totalDiscountBasePrice),",",".")," \u0111")}}function ot(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("",e.Dn7(2,1,e.lcZ(3,5,t.priceDetail.totalBasePrice),",",".")," \u0111")}}function rt(n,o){if(1&n&&(e.TgZ(0,"div",1)(1,"div")(2,"table",2)(3,"thead")(4,"tr",3)(5,"th",4),e._uU(6,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(7,"th",4),e._uU(8,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(9,"th",5),e._uU(10,"Gi\xe1 v\xe9"),e.qZA(),e.YNc(11,Ve,2,0,"th",6),e.YNc(12,Ke,2,0,"th",6),e.TgZ(13,"th",5),e._uU(14,"T\u1ed5ng gi\xe1"),e.qZA()()(),e.TgZ(15,"tbody"),e.YNc(16,nt,15,13,"tr",7),e.qZA()(),e._UZ(17,"hr",8),e.qZA(),e.TgZ(18,"div",9)(19,"div",10)(20,"div",11),e._uU(21,"T\u1ed5ng gi\xe1 g\u1ed1c"),e.qZA(),e.TgZ(22,"div",12),e.YNc(23,it,4,7,"span",13),e.YNc(24,ot,4,7,"span",13),e.qZA()(),e.TgZ(25,"div",10)(26,"div",11),e._uU(27,"D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam"),e.qZA(),e.TgZ(28,"div",12),e._uU(29),e.ALo(30,"replace"),e.ALo(31,"number"),e.qZA()(),e.TgZ(32,"div",10)(33,"div",11),e._uU(34,"Ph\xed d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(35,"div",12),e._uU(36),e.ALo(37,"replace"),e.ALo(38,"number"),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(11),e.Q6J("ngIf",!t.isGDSProvider),e.xp6(1),e.Q6J("ngIf",t.hasDiscountFare),e.xp6(4),e.Q6J("ngForOf",null==t.priceDetail?null:t.priceDetail.passengers),e.xp6(7),e.Q6J("ngIf",t.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!t.priceDetail.totalDiscountBasePrice),e.xp6(5),e.hij("",e.Dn7(30,7,e.lcZ(31,11,(t.priceDetail.totalAddonService||0)+(t.priceDetail.totalOthersCharge||0)),",",".")," \u0111"),e.xp6(7),e.hij("",e.Dn7(37,13,e.lcZ(38,17,t.priceDetail.totalServiceFee),",",".")," \u0111")}}let u=(()=>{class n{constructor(){this.hasDiscountFare=!1}ngOnChanges(t){this.priceDetail&&(this.isGDSProvider=this.priceDetail.provider.includes("GDS"))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["price-detail"]],inputs:{priceDetail:"priceDetail",hasDiscountFare:"hasDiscountFare"},standalone:!0,features:[e.TTD,e.jDz],decls:1,vars:1,consts:[["class","px-6 py-4 border-b-4 border-neutral-gray-1",4,"ngIf"],[1,"px-6","py-4","border-b-4","border-neutral-gray-1"],[1,"table-auto","w-full"],[1,"border-b","border-neutral-gray-1"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","py-3"],[1,"text-right","text-espressive-sm","text-neutral-gray-4","py-3"],["class","text-right text-espressive-sm text-neutral-gray-4 py-3",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"text-neutral-gray-1","w-full","mb-4"],[1,"flex","flex-col","items-end","gap-[10px]"],[1,"flex","justify-end","items-center","gap-8"],[1,"text-espressive-sm","text-neutral-gray-4"],[1,"min-w-[120px]","text-end","text-body-dm","text-neutral-black"],[4,"ngIf"],[1,"text-body-md","text-neutral-black","py-3","uppercase"],[1,"text-body-md","text-neutral-black","py-3"],[1,"text-body-md","text-neutral-black","py-3","text-right"],["class","text-body-md text-neutral-black py-3 text-right",4,"ngIf"],["class","text-body-md text-secondary-5-3 py-3 text-right",4,"ngIf"],[1,"text-right","text-body-md","text-neutral-black","py-3"],[4,"ngIf","ngIfElse"],["noDiscountTempl",""],[1,"text-body-md","text-secondary-5-3","py-3","text-right"]],template:function(t,i){1&t&&e.YNc(0,rt,39,19,"div",0),2&t&&e.Q6J("ngIf",i.priceDetail)},dependencies:[f.O5,f.ax,f.JJ,k],encapsulation:2}),n})();var g=_(24006),a=_(37094),p=_(19123),y=_(62331),E=_(67460),ct=_(91951),M=_(88001),de=_(28746),j=_(97579),Ce=_(20553),oe=_(9381);function ft(n,o){1&n&&(e.TgZ(0,"div",25)(1,"div"),e.O4$(),e.TgZ(2,"svg",26)(3,"g",27)(4,"rect",28),e._UZ(5,"animate",29),e.qZA()(),e.TgZ(6,"g",30)(7,"rect",28),e._UZ(8,"animate",31),e.qZA()(),e.TgZ(9,"g",32)(10,"rect",28),e._UZ(11,"animate",33),e.qZA()(),e.TgZ(12,"g",34)(13,"rect",28),e._UZ(14,"animate",35),e.qZA()(),e.TgZ(15,"g",36)(16,"rect",28),e._UZ(17,"animate",37),e.qZA()(),e.TgZ(18,"g",38)(19,"rect",28),e._UZ(20,"animate",39),e.qZA()(),e.TgZ(21,"g",40)(22,"rect",28),e._UZ(23,"animate",41),e.qZA()(),e.TgZ(24,"g",42)(25,"rect",28),e._UZ(26,"animate",43),e.qZA()(),e.TgZ(27,"g",44)(28,"rect",28),e._UZ(29,"animate",45),e.qZA()(),e.TgZ(30,"g",46)(31,"rect",28),e._UZ(32,"animate",47),e.qZA()(),e.TgZ(33,"g",48)(34,"rect",28),e._UZ(35,"animate",49),e.qZA()(),e.TgZ(36,"g",50)(37,"rect",28),e._UZ(38,"animate",51),e.qZA()()()(),e.kcU(),e.TgZ(39,"div",52),e._uU(40," \u0110ang void... "),e.qZA()())}function _t(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",7)(1,"div",8)(2,"ticket-number",9),e.NdJ("actionChange",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.onActionChange(r))}),e.qZA()(),e.TgZ(3,"div",10)(4,"div",11)(5,"div",12),e._uU(6,"Gi\u1eef l\u1ea1i h\xe0nh tr\xecnh sau khi void v\xe9?"),e.qZA(),e.TgZ(7,"div",13)(8,"cf-radio-group",14),e.NdJ("ngModelChange",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.cancelBooking=r)}),e.TgZ(9,"cf-radio",15),e._uU(10,"Kh\xf4ng, h\xe3y h\u1ee7y h\xe0nh tr\xecnh"),e.qZA(),e.TgZ(11,"cf-radio",15),e._uU(12,"C\xf3, gi\u1eef l\u1ea1i \u0111\u1ec3 ti\u1ebfp t\u1ee5c \u0111\u1eb7t v\xe9"),e.qZA()()()(),e.TgZ(13,"div",16)(14,"div",17),e.YNc(15,ft,41,0,"div",18),e.qZA(),e.TgZ(16,"div",19)(17,"div",20)(18,"div",12),e._uU(19,"Gi\u1eef l\u1ea1i h\xe0nh tr\xecnh sau khi void v\xe9?"),e.qZA(),e.TgZ(20,"div",13)(21,"cf-radio-group",14),e.NdJ("ngModelChange",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.cancelBooking=r)}),e.TgZ(22,"cf-radio",15),e._uU(23,"Kh\xf4ng, h\xe3y h\u1ee7y h\xe0nh tr\xecnh"),e.qZA(),e.TgZ(24,"cf-radio",15),e._uU(25,"C\xf3, gi\u1eef l\u1ea1i \u0111\u1ec3 ti\u1ebfp t\u1ee5c \u0111\u1eb7t v\xe9"),e.qZA()()()(),e.TgZ(26,"div",21)(27,"button",22),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.close())}),e._uU(28," \u0110\xf3ng "),e.qZA(),e.TgZ(29,"button",23),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onVoidBooking())}),e._UZ(30,"cf-icon",24),e._uU(31," Void t\u1ea5t c\u1ea3 "),e.qZA()()()()()()}if(2&n){const t=e.oxw();e.xp6(2),e.Q6J("bookingCode",t.bookingCode)("listTicketNumber",t.listTicketNumber)("isSuccessFull",t.isSuccessFull),e.xp6(6),e.Q6J("ngModel",t.cancelBooking),e.xp6(1),e.Q6J("value","true"),e.xp6(2),e.Q6J("value","false"),e.xp6(4),e.Q6J("ngIf",t.isVoiding),e.xp6(6),e.Q6J("ngModel",t.cancelBooking),e.xp6(1),e.Q6J("value","true"),e.xp6(2),e.Q6J("value","false"),e.xp6(3),e.Q6J("disabled",t.isVoiding),e.xp6(2),e.Q6J("disabled",t.isVoiding)}}function mt(n,o){1&n&&(e.TgZ(0,"div",53),e.O4$(),e.TgZ(1,"svg",54),e._UZ(2,"path",55)(3,"path",56),e.TgZ(4,"g",57),e._UZ(5,"path",58),e.qZA(),e._UZ(6,"path",59)(7,"path",60)(8,"path",61)(9,"path",62)(10,"path",63)(11,"path",64)(12,"path",65)(13,"path",66)(14,"path",67)(15,"path",68)(16,"path",69)(17,"path",70)(18,"path",71)(19,"path",72)(20,"path",73),e.TgZ(21,"defs")(22,"filter",74),e._UZ(23,"feFlood",75)(24,"feColorMatrix",76)(25,"feMorphology",77)(26,"feOffset",78)(27,"feGaussianBlur",79)(28,"feColorMatrix",80)(29,"feBlend",81)(30,"feColorMatrix",76)(31,"feMorphology",82)(32,"feOffset",83)(33,"feGaussianBlur",84)(34,"feColorMatrix",85)(35,"feBlend",86)(36,"feBlend",87),e.qZA(),e.TgZ(37,"linearGradient",88),e._UZ(38,"stop",89)(39,"stop",90),e.qZA()()(),e.kcU(),e.TgZ(40,"div",91),e._uU(41,"Kh\xf4ng c\xf3 s\u1ed1 v\xe9 h\u1ee3p l\u1ec7"),e.qZA(),e.TgZ(42,"div",92),e._uU(43,"Kh\xf4ng th\u1ec3 t\xecm th\u1ea5y s\u1ed1 v\xe9 n\xe0o h\u1ee3p l\u1ec7 \u0111\u1ec3 void t\u01b0\u01a1ng \u1ee9ng v\u1edbi m\xe3 \u0111\u1eb7t ch\u1ed7 y\xeau c\u1ea7u. Vui l\xf2ng ki\u1ec3m tra l\u1ea1i m\xe3 \u0111\u1eb7t ch\u1ed7 ho\u1eb7c li\xean h\u1ec7 v\u1edbi booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3!"),e.qZA()())}function ht(n,o){1&n&&e._UZ(0,"cf-spinner")}let xt=(()=>{class n{constructor(t,i,r,s,x,v,T,U,B){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,this._modal=x,this._toastService=v,this._manageBookingService=T,this._mobileDetectService=U,this._bottomSheetService=B,this.listTicketNumber=[],this.isLoading=!1,this.isVoiding=!1,this.isSuccessFull=!0,this.cancelBooking="true",s.registerIcons([d.UNF]),t&&(this.bookingCode=t.data.bookingCode,this.airline=t.data.airline),i&&(this.bookingCode=i.bookingCode,this.airline=i.airline)}ngOnInit(){this.loadTicketVoid()}loadTicketVoid(){this.isLoading=!0,this._manageBookingService.getTicketVoid(this.bookingCode).pipe((0,de.x)(()=>this.isLoading=!1)).subscribe({next:t=>{t.success&&t.data&&(this.listTicketNumber=t.data.listTicketNumber.map(i=>({ticketNumber:i.ticketNumber,status:i.status,statusDisplay:"- -",totalCharge:i.totalCharge||0,ticketType:i.ticketType})))}})}onActionChange(t){switch(t.action){case"review":return this.onReview(t.ticketNumber);case"void":return this.onVoidBooking()}}onVoidBooking(){if(this._mobileDetectService.isMobile()){const t=this._bottomSheetService.open(E.V0,{headerTitle:"X\xe1c nh\u1eadn void",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",data:{title:"X\xe1c nh\u1eadn h\u1ee7y v\xe9",body:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n void c\xe1c s\u1ed1 v\xe9 n\xe0y kh\xf4ng? H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c."}});t.containerInstance._rightButtonClick.subscribe(i=>t.dismiss()),t.afterDismissed().subscribe(i=>{i&&this.processVoidBooking()})}else this._modal.open(E.V0,{title:"X\xe1c nh\u1eadn h\u1ee7y v\xe9",body:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n void c\xe1c s\u1ed1 v\xe9 n\xe0y kh\xf4ng? H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c."}).afterClosed$.subscribe({next:i=>{i.data&&this.processVoidBooking()}})}processVoidBooking(){var t,i;const r={title:"Void v\xe9 th\xe0nh c\xf4ng",content:`<div>T\u1ea5t c\u1ea3 c\xe1c s\u1ed1 v\xe9 h\u1ee3p l\u1ec7 t\u1eeb m\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${this.bookingCode}</strong> \u0111\xe3 \u0111\u01b0\u1ee3c void th\xe0nh c\xf4ng.</div>`,status:"success"},s={title:"Void v\xe9 th\u1ea5t b\u1ea1i",content:"<div>Void s\u1ed1 v\xe9 kh\xf4ng th\xe0nh c\xf4ng. Vui l\xf2ng th\u1eed l\u1ea1i ho\u1eb7c li\xean h\u1ec7 booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.</div>",status:"error"},v={agentName:JSON.parse(null!==(t=localStorage.getItem("currentUser"))&&void 0!==t?t:"").data.roleId,cancelBooking:"true"===this.cancelBooking,airline:this.airline,bookingCode:this.bookingCode,ticketNumber:null===(i=this.listTicketNumber)||void 0===i?void 0:i.map(T=>T.ticketNumber)};this.isLoading=!0,this._manageBookingService.voidTicket(v).pipe((0,de.x)(()=>this.isLoading=!1)).subscribe({next:T=>{if(T.success){const U=T.data.filter(Q=>Q.void).map(Q=>Q.ticketNumber);this.isSuccessFull=T.data.every(Q=>Q.void),this.listTicketNumber=this.listTicketNumber.map(Q=>Object.assign(Object.assign({},Q),{statusDisplay:U.includes(Q.ticketNumber)?"Th\xe0nh c\xf4ng":"Th\u1ea5t b\u1ea1i",status:U.includes(Q.ticketNumber)?"SUCCESS":"ERROR"})),T.data.filter(Q=>Q.void).length===T.data.length?this._modal.open(E.z5,r).afterClosed$.subscribe({next:gt=>{gt.data&&(this.ref&&this.ref.close(!0),this.bottomSheetData&&this.bottomSheetRef.dismiss(!0))}}):this._modal.open(E.z5,s)}else this._modal.open(E.z5,s).afterClosed$.subscribe({next:()=>{this.listTicketNumber=this.listTicketNumber.map(B=>Object.assign(Object.assign({},B),{statusDisplay:"Th\u1ea5t b\u1ea1i",status:"ERROR"}))}})},error:()=>{this._toastService.add({severity:"error",summary:"C\xf3 l\u1ed7i x\u1ea3y ra",detail:"Void v\xe9 kh\xf4ng th\xe0nh c\xf4ng. Vui l\xf2ng li\xean h\u1ec7 booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3!",sticky:!0})}})}onReview(t){var i;if(M.PY&&"VN"===(null===(i=this.airline)||void 0===i?void 0:i.toUpperCase()))return void this._modal.open(E.z5,{title:"Th\xf4ng b\xe1o",content:"H\u1ec7 th\u1ed1ng m\u1edbi Vietnam Airlines ch\u01b0a h\u1ed7 tr\u1ee3 t\xednh n\u0103ng n\xe0y. Xin li\u1ec7n h\u1ec7 booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3",status:"error",cancelText:"\u0110\xf3ng"});const r=this._getCurrentUrl();this.isLoading=!0,this._manageBookingService.getTicketDetail(t).pipe((0,de.x)(()=>this.isLoading=!1)).subscribe({next:s=>{const x=this.proccessTicketDetail(s.data);this._modal.open(ct.co,{ticketDetail:x,curentUrl:r,isAction:!0,airline:this.airline}).afterClosed$.subscribe({next:T=>{}})}})}_getCurrentUrl(){return`${window.location.origin}/admin/booking-detail/${this.airline}/${this.bookingCode}`}proccessTicketDetail(t){return{ticketNumber:"",passengerName:t.ticketInfo.passengerName,ticketInfo:{numCoupons:t.ticketInfo.numCoupons,issueDate:t.ticketInfo.issueDate,createDate:t.ticketInfo.createDate,bookingCode:t.ticketInfo.prn},segments:t.segment.map(i=>({number:i.number,airline:i.marketingAirline,flightNumber:i.flightNumber,classCode:i.bookingClassCode,date:"15MAR",brdoff:i.originLocation+i.destinationLocation,time:"2200",status:i.segmentStatus,fareBasis:i.fareBasis,statusCode:i.ticketStatus,baggageAllowance:i.baggageAllowance})),pricingInfo:{baseFare:t.pricingInfo.baseFare.currencyCode.concat(" ",t.pricingInfo.baseFare.amount),taxes:t.pricingInfo.taxes.map(i=>i.amount.concat(i.taxCode)).join(" "),totalFare:t.pricingInfo.totalFare.currencyCode.concat(" ",t.pricingInfo.totalFare.amount)},fareCalc:t.pricingInfo.fareCalculation,paymentInfo:{paymentCardNumber:t.paymentInfo.paymentCardNumber,authorizationCode:t.paymentInfo.authorizationCode},ticketData:{issueDate:t.ticketData.issueDate,printStation:t.ticketData.printStation,issuingAgent:t.ticketData.issuingAgent,remarks:t.ticketData.remarks,endorsements:t.ticketData.endorsements.join("")}}}close(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP),e.Y36(j.oE),e.Y36(y.BX),e.Y36(Ce.fB),e.Y36(oe.L),e.Y36(a.a2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["void-booking-detail"]],standalone:!0,features:[e.jDz],decls:9,vars:3,consts:[[1,"w-[772px]","min-h-[250px]","max-h-[600px]","overflow-hidden","flex","flex-col","rounded-lg","bg-neutral-white","md:w-screen","md:bg-neutral-gray-1","md:max-h-none","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-xs","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],["class","flex flex-col justify-between h-full overflow-auto",4,"ngIf"],["class","flex justify-center items-center flex-col py-8",4,"ngIf"],[4,"ngIf"],[1,"flex","flex-col","justify-between","h-full","overflow-auto"],[1,"bg-white","px-6","rounded","md:bg-transparent","md:p-0","overflow-auto"],[3,"bookingCode","listTicketNumber","isSuccessFull","actionChange"],[1,"flex","flex-col"],[1,"px-4","pt-4","flex","flex-col","gap-y-2","md:hidden"],[1,"text-express-md"],[1,"flex","gap-x-6"],[1,"flex","items-center","gap-x-8",3,"ngModel","ngModelChange"],["size","medium",3,"value"],[1,"flex","justify-between","items-center","gap-x-4","pr-6","pb-6","pt-8","md:p-4","md:bg-neutral-white"],[1,"md:hidden"],["class","flex items-center",4,"ngIf"],[1,"md:flex","md:flex-col","md:gap-y-4","md:w-full"],[1,"hidden","md:flex","flex-col","gap-y-2"],[1,"flex","justify-end","gap-x-4","md:w-full"],["cf-button","","size","medium","type","secondary",1,"md:w-full","md:justify-center",3,"disabled","click"],["cf-button","","size","medium",1,"md:w-full","md:justify-center",3,"disabled","click"],["icon","coupon","size","small",1,"mr-2.5","text-white"],[1,"flex","items-center"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","width","40px","height","40px","viewBox","0 0 100 100","preserveAspectRatio","xMidYMid",2,"margin","auto","background","rgb(255, 255, 255)","display","block","shape-rendering","auto"],["transform","rotate(0 50 50)"],["x","49.5","y","24","rx","0.5","ry","6","width","1","height","12","fill","#000000"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.9166666666666666s","repeatCount","indefinite"],["transform","rotate(30 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.8333333333333334s","repeatCount","indefinite"],["transform","rotate(60 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.75s","repeatCount","indefinite"],["transform","rotate(90 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.6666666666666666s","repeatCount","indefinite"],["transform","rotate(120 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.5833333333333334s","repeatCount","indefinite"],["transform","rotate(150 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.5s","repeatCount","indefinite"],["transform","rotate(180 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.4166666666666667s","repeatCount","indefinite"],["transform","rotate(210 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.3333333333333333s","repeatCount","indefinite"],["transform","rotate(240 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.25s","repeatCount","indefinite"],["transform","rotate(270 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.16666666666666666s","repeatCount","indefinite"],["transform","rotate(300 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","-0.08333333333333333s","repeatCount","indefinite"],["transform","rotate(330 50 50)"],["attributeName","opacity","values","1;0","keyTimes","0;1","dur","1s","begin","0s","repeatCount","indefinite"],[1,"text-espressive-sm"],[1,"flex","justify-center","items-center","flex-col","py-8"],["width","134","height","115","viewBox","0 0 134 115","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M66.4672 102.041C94.5888 102.041 117.387 79.2428 117.387 51.0207C117.387 22.7986 94.4884 0 66.4672 0C38.3455 0 15.5469 22.7986 15.5469 51.0207C15.5469 79.2428 38.3455 102.041 66.4672 102.041Z","fill","#BEBFC1"],["d","M17.8551 17.576C19.4082 17.576 20.6673 16.3169 20.6673 14.7638C20.6673 13.2107 19.4082 11.9517 17.8551 11.9517C16.302 11.9517 15.043 13.2107 15.043 14.7638C15.043 16.3169 16.302 17.576 17.8551 17.576Z","fill","#F1F3F9"],["filter","url(#filter0_dd_1211_19630)"],["d","M121.111 16.8693V85.2206C121.111 88.2132 118.687 90.6671 115.694 90.6671H17.4466C14.4539 90.6671 12 88.2431 12 85.2206V16.8693C12 13.8767 14.424 11.4527 17.4466 11.4527H115.694C118.687 11.4527 121.111 13.8767 121.111 16.8693Z","fill","white"],["d","M121.111 16.8693V22.5254H12V16.8693C12 13.8767 14.424 11.4527 17.4466 11.4527H115.694C118.687 11.4527 121.111 13.8767 121.111 16.8693Z","fill","url(#paint0_linear_1211_19630)"],["d","M17.8947 18.4553C18.7211 18.4553 19.391 17.7854 19.391 16.959C19.391 16.1326 18.7211 15.4627 17.8947 15.4627C17.0684 15.4627 16.3984 16.1326 16.3984 16.959C16.3984 17.7854 17.0684 18.4553 17.8947 18.4553Z","fill","#BEBFC1"],["d","M22.383 18.4553C23.2094 18.4553 23.8793 17.7854 23.8793 16.959C23.8793 16.1326 23.2094 15.4627 22.383 15.4627C21.5566 15.4627 20.8867 16.1326 20.8867 16.959C20.8867 17.7854 21.5566 18.4553 22.383 18.4553Z","fill","#BEBFC1"],["d","M26.844 18.4553C27.6703 18.4553 28.3403 17.7854 28.3403 16.959C28.3403 16.1326 27.6703 15.4627 26.844 15.4627C26.0176 15.4627 25.3477 16.1326 25.3477 16.959C25.3477 17.7854 26.0176 18.4553 26.844 18.4553Z","fill","#BEBFC1"],["d","M51.1126 31.3237H21.6055V60.4965H51.1126V31.3237Z","fill","#DFDFE0"],["d","M91.5312 31.1768H111.892","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M59.7188 31.1768H82.6241","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M59.7188 40.7207H111.892","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M80.7148 50.2647H111.892","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M59.7188 50.2647H73.0802","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M59.7188 59.8085H88.3505","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M82.625 69.3524H111.893","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M21.543 69.3524H73.7163","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M50.8125 78.8963H88.9881","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["d","M21.543 78.8963H41.9033","stroke","#DFDFE0","stroke-width","4","stroke-miterlimit","10","stroke-linecap","round","stroke-linejoin","round"],["id","filter0_dd_1211_19630","x","0","y","11.4527","width","133.109","height","103.214","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["flood-opacity","0","result","BackgroundImageFix"],["in","SourceAlpha","type","matrix","values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0","result","hardAlpha"],["radius","2","operator","erode","in","SourceAlpha","result","effect1_dropShadow_1211_19630"],["dy","4"],["stdDeviation","3"],["type","matrix","values","0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"],["mode","normal","in2","BackgroundImageFix","result","effect1_dropShadow_1211_19630"],["radius","4","operator","erode","in","SourceAlpha","result","effect2_dropShadow_1211_19630"],["dy","12"],["stdDeviation","8"],["type","matrix","values","0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.1 0"],["mode","normal","in2","effect1_dropShadow_1211_19630","result","effect2_dropShadow_1211_19630"],["mode","normal","in","SourceGraphic","in2","effect2_dropShadow_1211_19630","result","shape"],["id","paint0_linear_1211_19630","x1","11.9986","y1","16.9888","x2","121.112","y2","16.9888","gradientUnits","userSpaceOnUse"],["stop-color","#DFDFE0"],["offset","1","stop-color","white"],[1,"text-heading-md","text-neutral-black","mb-4","pr-3","pl-3"],[1,"text-espressive-md","text-neutral-gray-5","pr-3","pl-3","text-justify"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"Void v\xe9"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.close()}),e.qZA()(),e.YNc(5,_t,32,12,"div",4),e.YNc(6,mt,44,0,"div",5),e.qZA(),e._UZ(7,"cf-toast"),e.YNc(8,ht,1,0,"cf-spinner",6)),2&t&&(e.xp6(5),e.Q6J("ngIf",i.listTicketNumber.length),e.xp6(1),e.Q6J("ngIf",!i.listTicketNumber.length),e.xp6(2),e.Q6J("ngIf",i.isLoading))},dependencies:[f.ez,f.O5,d.AxE,d.Sm8,h.N8,h.Xq,ct.kP,y.hj,E.OR,a.DW,p.o,p.T,g.u5,g.JJ,g.On],encapsulation:2}),n})();function vt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",15),e._uU(2),e.qZA(),e.TgZ(3,"cf-icon",16),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onActionChange("copy_pnr"))}),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.bookingDetail.bookingCode)}}function Ct(n,o){1&n&&(e.ynx(0),e.O4$(),e.TgZ(1,"svg",17),e._UZ(2,"path",18),e.qZA(),e.BQk())}function yt(n,o){1&n&&(e.ynx(0),e.O4$(),e.TgZ(1,"svg",19),e._UZ(2,"path",18),e.qZA(),e.BQk())}function Zt(n,o){1&n&&e._UZ(0,"cf-icon",25)}function Et(n,o){1&n&&e._UZ(0,"cf-icon",26)}function bt(n,o){if(1&n&&(e.TgZ(0,"div",21)(1,"div",22),e._uU(2),e.qZA(),e.YNc(3,Zt,1,0,"cf-icon",23),e.YNc(4,Et,1,0,"cf-icon",24),e.TgZ(5,"div",22),e._uU(6),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Oqu(t.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngIf",1===t.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",t.bookingDetail.journeys.length>1),e.xp6(2),e.Oqu(t.bookingDetail.endPoint)}}function Dt(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,bt,7,4,"div",20),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.bookingDetail.startPoint&&t.bookingDetail.endPoint)}}function At(n,o){1&n&&(e.TgZ(0,"div",27),e._uU(1," \u0110A CH\u1eb6NG "),e.qZA())}function Tt(n,o){if(1&n&&(e.TgZ(0,"div",29)(1,"div",30)(2,"div",10),e._uU(3),e.qZA(),e.TgZ(4,"div",3),e._uU(5),e.ALo(6,"date"),e.qZA()(),e._UZ(7,"cf-icon",26),e.TgZ(8,"div",30)(9,"div",10),e._uU(10),e.qZA(),e.TgZ(11,"div",3),e._uU(12),e.ALo(13,"date"),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(3),e.AsE(" ",t.bookingDetail.journeys[0].startPoint,"-",t.bookingDetail.journeys[0].endPoint,""),e.xp6(2),e.Oqu(e.xi3(6,6,t.bookingDetail.journeys[0].startTime,"HH:mm - dd/MM/yyyy")),e.xp6(5),e.AsE(" ",t.bookingDetail.journeys[1].startPoint,"-",t.bookingDetail.journeys[1].endPoint,""),e.xp6(2),e.Oqu(e.xi3(13,9,t.bookingDetail.journeys[1].startTime,"HH:mm - dd/MM/yyyy"))}}function kt(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Tt,14,12,"div",28),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",2===t.bookingDetail.journeys.length)}}function Ut(n,o){if(1&n&&(e.TgZ(0,"div",30)(1,"div",10),e._uU(2),e.qZA(),e.TgZ(3,"div",3),e._uU(4),e.ALo(5,"date"),e.qZA()()),2&n){const t=o.$implicit;e.xp6(2),e.AsE(" ",t.startPoint,"-",t.endPoint,""),e.xp6(2),e.Oqu(e.xi3(5,3,t.startTime,"HH:mm - dd/MM/yyyy"))}}function qt(n,o){if(1&n&&(e.TgZ(0,"div",31),e.YNc(1,Ut,6,6,"div",32),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.journeys)}}function It(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onActionChange(r.value))}),e._UZ(1,"cf-icon",38),e._uU(2),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function Bt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onActionChange(r.value))}),e._UZ(1,"cf-icon",38),e._uU(2),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function wt(n,o){1&n&&(e.TgZ(0,"div"),e._uU(1,"Kh\xf4ng th\u1ec3 xu\u1ea5t v\xe9 tr\xean v\xe9 \u0111\xe3 void."),e.qZA(),e.TgZ(2,"div"),e._uU(3," Vui l\xf2ng li\xean h\u1ec7 Booker h\u1ed7 tr\u1ee3 x\u1eed l\xfd h\u1ee7y s\u1ed1 v\xe9 tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c."),e.qZA())}function Nt(n,o){if(1&n&&(e.TgZ(0,"button",39,40),e._UZ(3,"cf-icon",41),e._uU(4),e.YNc(5,wt,4,0,"ng-template",null,42,e.W1O),e.qZA()),2&n){const t=e.MAs(6),i=e.oxw().$implicit;e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip",t),e.xp6(3),e.Q6J("icon",i.icon),e.xp6(1),e.hij(" ",i.name," ")}}function Ft(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(2);return e.KtG(s.onActionChange(r.value))}),e._UZ(1,"cf-icon",38),e._uU(2),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function Jt(n,o){if(1&n&&(e.TgZ(0,"button",39,40),e._UZ(3,"cf-icon",41),e._uU(4),e.qZA()),2&n){const t=e.oxw().$implicit;e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip","Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 h\u1ee7y v\xe9 \u0111\xe3 xu\u1ea5t"),e.xp6(3),e.Q6J("icon",t.icon),e.xp6(1),e.hij(" ",t.name," ")}}function St(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",46),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2).$implicit,s=e.oxw(2);return s.onActionChange(r.value),e.KtG(s.isOpen=!s.isOpen)}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function Ot(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",49),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(5);return s.onActionChange(r.value),e.KtG(s.isOpen=!s.isOpen)}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function Qt(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Ot,2,1,"button",48),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("ngIf",t.enabled)}}function jt(n,o){if(1&n&&(e.TgZ(0,"div",47),e.YNc(1,Qt,2,1,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",t.items)}}function Mt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div")(1,"div",43,40),e.YNc(4,St,2,1,"button",44),e.qZA(),e.YNc(5,jt,2,1,"ng-template",45),e.NdJ("overlayOutsideClick",function(){e.CHM(t);const r=e.oxw(3);return e.KtG(r.outsideClick())}),e.qZA()}if(2&n){const t=e.MAs(3),i=e.oxw().$implicit,r=e.oxw(2);e.xp6(4),e.Q6J("ngIf",i.enabled),e.xp6(1),e.Q6J("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",r.isOpen)("cdkConnectedOverlayPositions",r.bottomCenter)}}function Pt(n,o){if(1&n&&(e.ynx(0),e.YNc(1,It,3,2,"button",35),e.YNc(2,Bt,3,2,"button",35),e.YNc(3,Nt,7,8,"button",36),e.YNc(4,Ft,3,2,"button",35),e.YNc(5,Jt,5,8,"button",36),e.YNc(6,Mt,6,4,"div",6),e.BQk()),2&n){const t=o.$implicit,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf","other"!==t.value&&t.enabled&&"issue"!==t.value&&"cancel_booking"!==t.value),e.xp6(1),e.Q6J("ngIf","issue"===t.value&&t.enabled&&"VOID"!==i.bookingDetail.status&&("BSP"!==i.bookingDetail.provider||"BSP"===i.bookingDetail.provider&&i.bookingDetail.ticketingAllowed)),e.xp6(1),e.Q6J("ngIf","issue"===t.value&&t.enabled&&"VOID"===i.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","cancel_booking"===t.value&&t.enabled&&"BSP"===i.bookingDetail.provider&&"ISSUED"!==i.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","cancel_booking"===t.value&&t.enabled&&"BSP"===i.bookingDetail.provider&&"ISSUED"===i.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","other"===t.value)}}function Yt(n,o){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,Pt,7,6,"ng-container",34),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.actions)}}function Lt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",50),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.detailClick())}),e._uU(1,"Chi ti\u1ebft"),e.qZA()}}let Ht=(()=>{class n{constructor(t){this.actionChange=new e.vpe,this.isShowMore=!1,this.isBooked=!1,this.isMultiJourney=!1,this.retryBooking=new e.vpe,this.onDetailClick=new e.vpe,this.isOpen=!1,this.bottomCenter=[{originX:"start",originY:"bottom",overlayX:"center",overlayY:"top",offsetX:0,offsetY:0}],this.isShowBookingInfo=!1,t.registerIcons([d.xgX,d.llu,d.bHT,d.QkI,d.ILM,d.tLH,d.NYs,d.okA,d.B2I,d.s5C,d.qDv,d.rks,d.Ffn,d._tC])}ngOnInit(){this.isShowBookingInfo=["BOOKED","ISSUED"].includes(this.bookingDetail.status)}onShowMore(){this.isShowMore=!this.isShowMore}onActionChange(t){this.actionChange.emit(t)}outsideClick(){this.isOpen=!1}onRetryBooking(){const t=this.bookingDetail.journeys.map(i=>i.key);this.retryBooking.emit(t)}detailClick(){this.onDetailClick.emit()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.KNP))},n.\u0275cmp=e.Xpm({type:n,selectors:[["booking-detail-mobile"]],inputs:{bookingDetail:"bookingDetail",isShowMore:"isShowMore",isBooked:"isBooked",isMultiJourney:"isMultiJourney"},outputs:{actionChange:"actionChange",retryBooking:"retryBooking",onDetailClick:"onDetailClick"},standalone:!0,features:[e.jDz],decls:25,vars:13,consts:[[1,"flex","flex-col","p-3","rounded-lg","bg-neutral-white"],[1,"flex","justify-between"],[1,"flex","flex-col","gap-y-1"],[1,"text-espressive-xs","text-neutral-gray-4"],["class","flex items-center gap-x-2",4,"ngIf"],[1,"flex","items-center","gap-x-2"],[4,"ngIf"],[1,"text-espressive-md","text-neutral-gray-6"],[1,"flex","items-center","justify-between","mt-3"],[1,"w-9","h-9","object-contain",3,"src"],[1,"text-heading-xs","text-neutral-gray-6"],["class","px-3 py-1 rounded bg-neutral-gray-1 text-heading-sm text-neutral-black",4,"ngIf"],["class","flex justify-between items-center mt-3 gap-x-4 gap-y-3 flex-wrap",4,"ngIf"],["class","mt-4 grid grid-cols-2 gap-2",4,"ngIf"],["class","w-full flex justify-center items-center px-[15px] py-[9px] cursor-pointer bg-secondary-3-1 rounded text-heading-xs text-secondary-3-4 mt-4",3,"click",4,"ngIf"],[1,"text-heading-md","text-neutral-gray-6"],["icon","copy","size","small",1,"text-neutral-gray-4",3,"click"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"text-secondary-7-4"],["d","M7.99968 1.33337C6.68114 1.33337 5.3922 1.72437 4.29588 2.45691C3.19955 3.18945 2.34506 4.23064 1.84048 5.44882C1.3359 6.66699 1.20387 8.00744 1.46111 9.30064C1.71834 10.5939 2.35328 11.7817 3.28563 12.7141C4.21798 13.6464 5.40587 14.2814 6.69908 14.5386C7.99228 14.7958 9.33273 14.6638 10.5509 14.1592C11.7691 13.6547 12.8103 12.8002 13.5428 11.7038C14.2754 10.6075 14.6663 9.31858 14.6663 8.00004C14.6612 6.23351 13.9572 4.54079 12.7081 3.29166C11.4589 2.04253 9.76621 1.3385 7.99968 1.33337ZM6.88857 11.0078L4.27357 8.39282C4.05664 8.17589 4.05664 7.82419 4.27357 7.60726C4.49049 7.39034 4.8422 7.39034 5.05912 7.60726L6.88857 9.43671L10.9402 5.38504C11.1572 5.16812 11.5089 5.16812 11.7258 5.38504C11.9427 5.60197 11.9427 5.95367 11.7258 6.1706L6.88857 11.0078Z","fill","currentColor"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"text-secondary-5-4"],["class","flex items-center justify-end gap-x-2 px-3 py-1 rounded bg-neutral-gray-1",4,"ngIf"],[1,"flex","items-center","justify-end","gap-x-2","px-3","py-1","rounded","bg-neutral-gray-1"],[1,"text-heading-sm","text-neutral-black"],["icon","arrow_right","size","small",4,"ngIf"],["icon","switch","size","small",4,"ngIf"],["icon","arrow_right","size","small"],["icon","switch","size","small"],[1,"px-3","py-1","rounded","bg-neutral-gray-1","text-heading-sm","text-neutral-black"],["class","flex justify-between items-center mt-3",4,"ngIf"],[1,"flex","justify-between","items-center","mt-3"],[1,"flex","flex-col","gap-y-1","items-center"],[1,"flex","justify-between","items-center","mt-3","gap-x-4","gap-y-3","flex-wrap"],["class","flex flex-col gap-y-1 items-center",4,"ngFor","ngForOf"],[1,"mt-4","grid","grid-cols-2","gap-2"],[4,"ngFor","ngForOf"],["cf-button","","size","medium","type","secondary","class","justify-center gap-x-2 button-md",3,"click",4,"ngIf"],["cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","","class","justify-center gap-x-2 button-md",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip",4,"ngIf"],["cf-button","","size","medium","type","secondary",1,"justify-center","gap-x-2","button-md",3,"click"],["size","small",3,"icon"],["cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","",1,"justify-center","gap-x-2","button-md",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip"],["trigger","","originOverlay","cdkOverlayOrigin"],["size","small",1,"opacity-50",3,"icon"],["tooltipTemplate",""],["cdkOverlayOrigin",""],["cf-button","","size","medium","type","secondary","class","w-full justify-center button-md",3,"click",4,"ngIf"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","overlayOutsideClick"],["cf-button","","size","medium","type","secondary",1,"w-full","justify-center","button-md",3,"click"],[1,"p-4","shadow-cf-lg","bg-neutral-white","min-w-[200px]","flex","flex-col","gap-y-2"],["cf-button","","size","medium","type","secondary","class","justify-center button-md",3,"click",4,"ngIf"],["cf-button","","size","medium","type","secondary",1,"justify-center","button-md",3,"click"],[1,"w-full","flex","justify-center","items-center","px-[15px]","py-[9px]","cursor-pointer","bg-secondary-3-1","rounded","text-heading-xs","text-secondary-3-4","mt-4",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._uU(4,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.YNc(5,vt,4,1,"div",4),e.qZA(),e.TgZ(6,"div",5),e.YNc(7,Ct,3,0,"ng-container",6),e.YNc(8,yt,3,0,"ng-container",6),e.TgZ(9,"div",7),e._uU(10),e.qZA()()(),e.TgZ(11,"div",8)(12,"div",5),e._UZ(13,"img",9),e.TgZ(14,"div",2)(15,"div",10),e._uU(16),e.qZA(),e.TgZ(17,"div",3),e._uU(18),e.qZA()()(),e.YNc(19,Dt,2,1,"div",6),e.YNc(20,At,2,0,"div",11),e.qZA(),e.YNc(21,kt,2,1,"div",6),e.YNc(22,qt,2,1,"div",12),e.YNc(23,Yt,2,1,"div",13),e.YNc(24,Lt,2,0,"div",14),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.bookingDetail.bookingCode),e.xp6(2),e.Q6J("ngIf","BOOKED"===i.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","ISSUED"===i.bookingDetail.status),e.xp6(2),e.Oqu(i.bookingDetail.statusText),e.xp6(3),e.Q6J("src",i.bookingDetail.mobileAirlineLogo,e.LSH),e.xp6(3),e.Oqu(i.bookingDetail.flightNumber),e.xp6(2),e.Oqu(i.bookingDetail.airlineName),e.xp6(1),e.Q6J("ngIf",!i.isMultiJourney),e.xp6(1),e.Q6J("ngIf",i.isMultiJourney),e.xp6(1),e.Q6J("ngIf",!i.isMultiJourney),e.xp6(1),e.Q6J("ngIf",i.isMultiJourney),e.xp6(1),e.Q6J("ngIf",null==i.bookingDetail.actions?null:i.bookingDetail.actions.length),e.xp6(1),e.Q6J("ngIf",i.isShowBookingInfo))},dependencies:[f.ez,f.sg,f.O5,f.uU,d.AxE,d.Sm8,b.f,Y.pI,Y.xu,h.N8,h.Xq,S.Lk],encapsulation:2}),n})();function Rt(n,o){1&n&&(e.TgZ(0,"div",29),e._UZ(1,"cf-icon",30),e.TgZ(2,"div"),e._uU(3,"B\u1ecb gi\xe1n \u0111o\u1ea1n"),e.qZA()())}function Gt(n,o){1&n&&(e.TgZ(0,"div",31),e._UZ(1,"cf-icon",32),e.TgZ(2,"div"),e._uU(3,"Chuy\u1ebfn bay n\xe0y c\xf3 s\u1ef1 thay \u0111\u1ed5i l\u1ecbch tr\xecnh. Vui l\xf2ng ki\u1ec3m tra email, tin nh\u1eafn \u0111i\u1ec7n tho\u1ea1i/Zalo ho\u1eb7c li\xean h\u1ec7 Booker \u0111\u1ec3 c\u1eadp nh\u1eadt th\xf4ng tin m\u1edbi nh\u1ea5t"),e.qZA()())}function zt(n,o){if(1&n&&(e.TgZ(0,"div",21)(1,"div",33),e._uU(2," Nh\xe0 cung c\u1ea5p "),e.qZA(),e.TgZ(3,"div",34),e._uU(4),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(4),e.hij(" ",("FLY_ONE"===t.flightInfos[0].supplier?"LCC":t.flightInfos[0].supplier)||"N/A"," ")}}function $t(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",16)(2,"div"),e._uU(3," Th\xf4ng tin \u0111\u1eb7t ch\u1ed7 "),e.qZA(),e.YNc(4,Rt,4,0,"div",17),e.qZA(),e.YNc(5,Gt,4,0,"div",18),e.TgZ(6,"div",19)(7,"div",20)(8,"div",21)(9,"div",22),e._uU(10," H\u1ec7 th\u1ed1ng \u0111\u1eb7t ch\u1ed7 "),e.qZA(),e.TgZ(11,"div",23)(12,"div",24)(13,"div",25),e._uU(14),e.qZA()()()(),e.TgZ(15,"div",21)(16,"div",26),e._uU(17," Th\u1eddi h\u1ea1n gi\u1eef ch\u1ed7 "),e.qZA(),e.TgZ(18,"div",27),e._uU(19),e.qZA()(),e.TgZ(20,"div",21)(21,"div",26),e._uU(22," Th\u1eddi h\u1ea1n gi\u1eef gi\xe1 "),e.qZA(),e.TgZ(23,"div",27),e._uU(24),e.qZA()(),e.YNc(25,zt,5,1,"div",28),e.TgZ(26,"div",21)(27,"div",22),e._uU(28," API "),e.qZA(),e.TgZ(29,"div",27),e._uU(30),e.qZA()(),e.TgZ(31,"div",21)(32,"div",22),e._uU(33," Ngu\u1ed3n \u0111\u1eb7t ch\u1ed7 "),e.qZA(),e._UZ(34,"div",27),e.qZA(),e.TgZ(35,"div",21)(36,"div",22),e._uU(37," M\xe3 \u0111\u01a1n h\xe0ng "),e.qZA(),e._UZ(38,"div",27),e.qZA()()(),e.BQk()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngIf",t.flightInfos[0].journeyStatus.disrupted),e.xp6(1),e.Q6J("ngIf",t.flightInfos[0].journeyStatus.disrupted),e.xp6(9),e.AsE(" ",t.flightInfos[0].airlineSystem," - ",t.flightInfos[0].airlineName," "),e.xp6(5),e.hij(" ",t.flightInfos[0].timeHoldBooking||"N/A"," "),e.xp6(5),e.hij(" ",t.flightInfos[0].timeHoldPricing||"N/A"," "),e.xp6(1),e.Q6J("ngIf",t.isShowSupplier&&t.flightInfos[0].supplier),e.xp6(5),e.hij(" ",("FLY_ONE"===t.flightInfos[0].provider?"LCC":t.flightInfos[0].provider)||"N/A"," ")}}function Vt(n,o){if(1&n&&(e.TgZ(0,"div",35),e.O4$(),e.TgZ(1,"svg",36),e._UZ(2,"path",37)(3,"path",38),e.qZA(),e._uU(4),e.qZA()),2&n){const t=e.oxw();e.xp6(4),e.hij(" ",t.flightInfos[0].statusDesc," ")}}function Kt(n,o){if(1&n&&(e.TgZ(0,"div",6),e._UZ(1,"cf-icon",7),e.TgZ(2,"span",8),e._uU(3),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.hij(" ",t.stopPoint," ")}}function Xt(n,o){if(1&n&&(e.TgZ(0,"div",58)(1,"div",59),e._uU(2),e.qZA(),e.TgZ(3,"div",60),e._uU(4),e.qZA()()),2&n){const t=o.$implicit;e.xp6(2),e.hij("",t.name,":\xa0"),e.xp6(2),e.Oqu(t.value)}}function Wt(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Kt,4,1,"div",39),e.TgZ(2,"div",40)(3,"div",41)(4,"div",42),e._UZ(5,"img",43),e.TgZ(6,"div",44)(7,"div",45),e._uU(8),e.qZA(),e.TgZ(9,"div",46),e._uU(10),e.qZA()()(),e.TgZ(11,"div",47),e._uU(12),e.qZA()(),e.TgZ(13,"div",48)(14,"div",49)(15,"div",50)(16,"div",45),e._uU(17),e.qZA(),e.TgZ(18,"div",46),e._uU(19),e.qZA()(),e.TgZ(20,"div",50)(21,"div",45),e._uU(22),e.qZA(),e.TgZ(23,"div",46),e._uU(24),e.qZA()()(),e.TgZ(25,"div",51),e._UZ(26,"div",52)(27,"div",53)(28,"cf-icon",54),e.qZA(),e.TgZ(29,"div",49)(30,"div",44)(31,"div",45),e._uU(32),e.qZA(),e.TgZ(33,"div",46),e._uU(34),e.qZA()(),e.TgZ(35,"div",44)(36,"div",45),e._uU(37),e.qZA(),e.TgZ(38,"div",46),e._uU(39),e.qZA()()()(),e._UZ(40,"div",55),e.TgZ(41,"div",56),e.YNc(42,Xt,5,2,"div",57),e.qZA()(),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("ngIf",t.stopPoint),e.xp6(4),e.Q6J("src",t.mobileAirlineLogo,e.LSH),e.xp6(3),e.Oqu(t.flightNumber),e.xp6(2),e.Oqu(t.airlineName),e.xp6(2),e.Oqu(t.badge),e.xp6(5),e.Oqu(t.startTime),e.xp6(2),e.Oqu(t.startDate),e.xp6(3),e.Oqu(t.endTime),e.xp6(2),e.Oqu(t.endDate),e.xp6(8),e.AsE("",t.startPointName," - ",t.startPoint," "),e.xp6(2),e.Oqu(t.startAirport),e.xp6(3),e.AsE("",t.endPointName," - ",t.endPoint," "),e.xp6(2),e.Oqu(t.endAirport),e.xp6(3),e.Q6J("ngForOf",t.rules)}}function en(n,o){if(1&n&&(e.TgZ(0,"div",61)(1,"div",62),e._uU(2,"Chi\u1ebft kh\u1ea5u"),e.qZA(),e.TgZ(3,"div",66),e._uU(4),e.ALo(5,"replace"),e.ALo(6,"number"),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.Dn7(5,1,e.lcZ(6,5,t.discountAmount||0),",","."),"\u0111 ")}}function tn(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.totalDiscountFarePrice),",",".")," ")}}function nn(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.total),",","."),"\u0111 ")}}function on(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",61)(2,"div",62),e._uU(3,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(4,"div",63),e._uU(5),e.qZA()(),e.TgZ(6,"div",61)(7,"div",62),e._uU(8,"Lo\u1ea1i h\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(9,"div",63),e._uU(10),e.qZA()(),e.TgZ(11,"div",61)(12,"div",62),e._uU(13,"Gi\xe1 v\xe9"),e.qZA(),e.TgZ(14,"div",63),e._uU(15),e.ALo(16,"replace"),e.ALo(17,"number"),e.qZA()(),e.TgZ(18,"div",61)(19,"div",62),e._uU(20,"Thu\u1ebf ph\xed"),e.qZA(),e.TgZ(21,"div",63),e._uU(22),e.ALo(23,"replace"),e.ALo(24,"number"),e.qZA()(),e.YNc(25,en,7,7,"div",64),e.TgZ(26,"div",61)(27,"div",62),e._uU(28,"T\u1ed5ng gi\xe1"),e.qZA(),e.TgZ(29,"div",63),e.YNc(30,tn,4,7,"span",2),e.YNc(31,nn,4,7,"ng-template",null,65,e.W1O),e.qZA()()()),2&n){const t=o.$implicit,i=e.MAs(32),r=e.oxw();e.xp6(5),e.Oqu(t.name),e.xp6(5),e.Oqu(t.type),e.xp6(5),e.hij("",e.Dn7(16,7,e.lcZ(17,11,t.farePrice),",","."),"\u0111 "),e.xp6(7),e.hij("",e.Dn7(23,13,e.lcZ(24,17,(t.tax||0)+(t.vat||0)),",","."),"\u0111"),e.xp6(3),e.Q6J("ngIf",r.hasDiscountFare),e.xp6(5),e.Q6J("ngIf",t.discountAmount&&r.hasDiscountFare)("ngIfElse",i)}}function rn(n,o){if(1&n&&(e.TgZ(0,"div",63),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.flightInfos[0].totalFare||0),",",".")," \u0111")}}function an(n,o){if(1&n&&(e.TgZ(0,"div",63),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.flightInfos[0].totalDiscountBasePrice||0),",",".")," \u0111")}}function un(n,o){1&n&&(e.TgZ(0,"div",67),e._UZ(1,"cf-icon",68),e.TgZ(2,"div")(3,"div",69),e._uU(4,"L\u01b0u \xfd:"),e.qZA(),e.TgZ(5,"ul",70)(6,"li",71),e._uU(7," Gi\xe1 v\xe9 c\xf3 th\u1ec3 thay \u0111\u1ed5i t\xf9y theo th\u1eddi \u0111i\u1ec3m \u0111\u1eb7t v\xe9, t\u1ef7 gi\xe1 v\xe0 ch\xednh s\xe1ch c\u1ee7a h\xe3ng h\xe0ng kh\xf4ng. \u0110\u1ea1i l\xfd ch\xfa \xfd ki\u1ec3m tra l\u1ea1i gi\xe1 v\xe9 m\u1edbi nh\u1ea5t t\u1ea1i b\u01b0\u1edbc Xu\u1ea5t v\xe9"),e.qZA(),e.TgZ(8,"li",71),e._uU(9,"H\xe0nh tr\xecnh kh\u1edfi h\xe0nh ngo\xe0i Vi\u1ec7t Nam ch\u1ec9 \u0111\u01b0\u1ee3c b\u1ea3o \u0111\u1ea3m gi\xe1 t\u1ea1i th\u1eddi \u0111i\u1ec3m \u0111\u1eb7t v\xe9 "),e.qZA()()()())}function sn(n,o){1&n&&(e.TgZ(0,"td",12),e._uU(1,"N/A"),e.qZA())}let cn=(()=>{class n{constructor(t,i,r){this.data=i,this._permissionService=r,this.flightInfos=[],this.isShowSupplier=this._permissionService.isAgent1()||this._permissionService.isBooker(),t.registerIcons([d.okA]),i&&(this.flightInfos=i.flightInfos,this.hasDiscountFare=i.hasDiscountFare,this.hasInternationalFlight=i.hasInternationalFlight)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.KNP),e.Y36(a.Rr,8),e.Y36(N.$A))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-booking-detail-bottom-sheet"]],hostAttrs:[1,"w-full"],inputs:{flightInfos:"flightInfos"},standalone:!0,features:[e.jDz],decls:22,vars:9,consts:[[1,"flex","flex-col","items-stretch","flex-auto","overflow-hidden","h-full"],[1,"p-4","bg-neutral-gray-1","h-full","overflow-y-scroll","gap-3","flex","flex-col"],[4,"ngIf","ngIfElse"],["templateBookingFail",""],[4,"ngFor","ngForOf"],[1,"text-espressive-sm","text-neutral-black"],[1,"w-full","bg-[#F0EAF4]","rounded","flex","items-center","gap-x-2","py-1.5","px-3"],["icon","circle_information","size","small",1,"text-secondary-2-4"],[1,"text-express-md","text-neutral-gray-6"],["class","flex flex-col mt-3 rounded-lg bg-neutral-white p-3 gap-y-2",4,"ngFor","ngForOf"],[1,"flex","flex-col","mt-3","rounded-lg","bg-neutral-white","p-3","gap-y-2"],[1,"flex","items-center","gap-x-5","justify-between"],[1,"text-body-sm","text-neutral-gray-4"],["class","text-espressive-md text-neutral-gray-6",4,"ngIf","ngIfElse"],["class","py-1.5 px-3 bg-functional-1-1 flex gap-x-2 mt-2 rounded",4,"ngIf"],["NATemplate",""],[1,"text-espressive-sm","text-neutral-black","flex","items-center","gap-x-2"],["class","bg-primary-1-1 text-primary-1-4 py-1.5 px-2 text-body-md flex items-center gap-x-2 rounded",4,"ngIf"],["class","py-3 px-4 bg-functional-1-1 text-body-md rounded flex items-center gap-x-2.5 mb-4",4,"ngIf"],[1,"bg-neutral-white","rounded-lg","p-3","flex","flex-row","gap-2","items-center","justify-start","shrink-0","relative","w-full"],[1,"flex","flex-col","gap-2","items-center","justify-center","flex-1","relative"],[1,"flex","flex-row","gap-5","items-center","justify-start","self-stretch","shrink-0","relative"],[1,"text-neutral-gray-4","text-left","relative","w-[104px]","text-body-sm"],[1,"flex","flex-col","gap-0","items-start","justify-start","shrink-0","h-6","relative"],[1,"bg-secondary-5-1","rounded","pt-0","pr-2","pb-0","pl-2","flex","flex-row","gap-1","items-center","justify-start","shrink-0","h-6","relative"],[1,"text-secondary-5-3","text-center","relative","text-espressive-sm"],[1,"text-neutral-gray-4","text-left","relative","w-[104px]",2,"font","var(--body-sm, 400 12px/16px 'Roboto', sans-serif)"],[1,"text-neutral-gray-6-brandcolor","text-center","relative","text-espressive-md"],["class","flex flex-row gap-5 items-center justify-start self-stretch shrink-0 relative",4,"ngIf"],[1,"bg-primary-1-1","text-primary-1-4","py-1.5","px-2","text-body-md","flex","items-center","gap-x-2","rounded"],["icon","error","size","small",1,"text-primary-1-4"],[1,"py-3","px-4","bg-functional-1-1","text-body-md","rounded","flex","items-center","gap-x-2.5","mb-4"],["icon","info","size","medium",1,"text-functional-1-3"],[1,"text-left","relative","w-[104px]","text-body-sm"],[1,"text-center","relative","text-espressive-md"],[1,"w-full","flex","gap-x-2","items-center","mb-6","bg-secondary-6-1","rounded","text-body-md","px-4","py-3","text-neutral-gray-6","break-all"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["d","M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","fill","#E03C31"],["d","M8.46979 8.46967C8.76269 8.17678 9.23756 8.17678 9.53045 8.46967L12.0001 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 11.9999L15.5304 14.4697C15.8233 14.7626 15.8233 15.2374 15.5304 15.5303C15.2376 15.8232 14.7627 15.8232 14.4698 15.5303L12.0001 13.0606L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9394 11.9999L8.46979 9.53033C8.1769 9.23744 8.1769 8.76256 8.46979 8.46967Z","fill","white"],["class","w-full bg-[#F0EAF4] rounded flex items-center gap-x-2 py-1.5 px-3",4,"ngIf"],[1,"flex","flex-col","p-3","bg-neutral-white","rounded-lg"],[1,"flex","items-center","justify-between"],[1,"flex","items-center","gap-x-2"],[1,"w-9","h-9","object-contain",3,"src"],[1,"flex","flex-col","gap-y-1"],[1,"text-heading-xs","text-neutral-gray-6"],[1,"text-espressive-xs","text-neutral-gray-4"],[1,"py-1","px-2","text-neutral-white","text-espressive-sm","bg-secondary-5-3","rounded"],[1,"flex","mt-2","gap-x-4"],[1,"flex","flex-col","gap-y-4"],[1,"flex","flex-col","items-center","gap-y-1"],[1,"flex","flex-col","items-center","justify-between","py-3"],[1,"w-1","h-1","rounded-full","bg-neutral-gray-3"],[1,"border-r","border-r-neutral-gray-3","h-full"],["icon","plane","size","small",1,"text-neutral-gray-3"],[1,"w-full","border-b","border-b-neutral-gray-3","my-4","border-dashed"],[1,"flex","flex-col","gap-y-2"],["class","flex flex-nowrap items-center",4,"ngFor","ngForOf"],[1,"flex","flex-nowrap","items-center"],[1,"text-body-sm"],[1,"text-espressive-sm","text-neutral-black","font-semibold"],[1,"flex","items-center","gap-x-5"],[1,"text-body-sm","text-neutral-gray-4","w-[104px]"],[1,"text-espressive-md","text-neutral-gray-6"],["class","flex items-center gap-x-5",4,"ngIf"],["noDiscountTempl",""],[1,"text-espressive-md","text-secondary-5-3"],[1,"py-1.5","px-3","bg-functional-1-1","flex","gap-x-2","mt-2","rounded"],["icon","info",1,"text-functional-1-3"],[1,"text-express-md"],[1,"ml-6"],[1,"text-body-md-short","list-disc"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,$t,39,8,"ng-container",2),e.YNc(3,Vt,5,1,"ng-template",null,3,e.W1O),e.YNc(5,Wt,43,16,"ng-container",4),e.TgZ(6,"div",5),e._uU(7,"Gi\xe1 v\xe9 g\u1ed1c"),e.qZA(),e.TgZ(8,"div",6),e._UZ(9,"cf-icon",7),e.TgZ(10,"span",8),e._uU(11," Ch\u01b0a bao g\u1ed3m ph\xed d\u1ecbch v\u1ee5 v\xe0 chi ph\xed d\u1ecbch v\u1ee5 c\u1ed9ng th\xeam "),e.qZA()(),e.YNc(12,on,33,19,"div",9),e.TgZ(13,"div",10)(14,"div",11)(15,"div",12),e._uU(16,"T\u1ed5ng gi\xe1 v\xe9"),e.qZA(),e.YNc(17,rn,4,7,"div",13),e.YNc(18,an,4,7,"div",13),e.qZA()(),e.YNc(19,un,10,0,"div",14),e.qZA()(),e.YNc(20,sn,2,0,"ng-template",null,15,e.W1O)),2&t){const r=e.MAs(4),s=e.MAs(21);e.xp6(2),e.Q6J("ngIf","ERROR"!==i.flightInfos[0].status)("ngIfElse",r),e.xp6(3),e.Q6J("ngForOf",i.flightInfos[0].segments),e.xp6(7),e.Q6J("ngForOf",i.flightInfos[0].passengers),e.xp6(5),e.Q6J("ngIf",!i.flightInfos[0].totalDiscountBasePrice)("ngIfElse",s),e.xp6(1),e.Q6J("ngIf",i.flightInfos[0].totalDiscountBasePrice)("ngIfElse",s),e.xp6(1),e.Q6J("ngIf",i.hasInternationalFlight)}},dependencies:[f.ez,f.sg,f.O5,f.JJ,d.AxE,d.Sm8,k],encapsulation:2}),n})();var ln=_(4688),ye=_(48373),pe=_(15439),dn=_(76978),_e=_(28490);function pn(n,o){1&n&&(e.TgZ(0,"div",9),e._UZ(1,"ticket-item-skeleton")(2,"ticket-item-skeleton"),e.qZA())}function gn(n,o){1&n&&(e.TgZ(0,"div")(1,"cf-label",30),e._uU(2," Th\xe0nh c\xf4ng "),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("color","green"))}function fn(n,o){1&n&&(e.TgZ(0,"div")(1,"cf-label",30),e._uU(2," Th\u1ea5t b\u1ea1i "),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("color","red"))}function _n(n,o){1&n&&(e.TgZ(0,"div"),e._uU(1,"--"),e.qZA())}function mn(n,o){if(1&n&&(e.TgZ(0,"tr",24)(1,"td",25),e._uU(2),e.qZA(),e.TgZ(3,"td",25),e._uU(4),e.qZA(),e.TgZ(5,"td",25),e._uU(6),e.qZA(),e.TgZ(7,"td",25),e._uU(8),e.qZA(),e.TgZ(9,"td",26)(10,"div",27),e.YNc(11,gn,3,1,"div",28),e.YNc(12,fn,3,1,"div",28),e.YNc(13,_n,2,0,"div",29),e.qZA()()()),2&n){const t=o.$implicit;e.xp6(2),e.Oqu(t.order),e.xp6(2),e.Oqu(t.journey),e.xp6(2),e.Oqu(t.startTime),e.xp6(2),e.Oqu(t.flightNumber),e.xp6(2),e.Q6J("ngSwitch",t.status),e.xp6(1),e.Q6J("ngSwitchCase","CANCEL"),e.xp6(1),e.Q6J("ngSwitchCase","SUCCESS")}}function hn(n,o){1&n&&(e.TgZ(0,"div")(1,"cf-label",30),e._uU(2," Th\xe0nh c\xf4ng "),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("color","green"))}function xn(n,o){1&n&&(e.TgZ(0,"div")(1,"cf-label",30),e._uU(2," Th\u1ea5t b\u1ea1i "),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("color","red"))}function vn(n,o){1&n&&(e.TgZ(0,"div"),e._uU(1,"--"),e.qZA())}function Cn(n,o){if(1&n&&(e.TgZ(0,"div",31)(1,"div",32)(2,"div",33),e._uU(3,"H\xe0nh tr\xecnh"),e.qZA(),e.TgZ(4,"div",34),e._uU(5),e.qZA()(),e.TgZ(6,"div",32)(7,"div",33),e._uU(8,"L\u1ecbch tr\xecnh"),e.qZA(),e.TgZ(9,"div",34),e._uU(10),e.qZA()(),e.TgZ(11,"div",32)(12,"div",33),e._uU(13,"M\xe3 hi\u1ec7u"),e.qZA(),e.TgZ(14,"div",34),e._uU(15),e.qZA()(),e.TgZ(16,"div",32)(17,"div",33),e._uU(18,"Tr\u1ea1ng th\xe1i"),e.qZA(),e.TgZ(19,"div",34)(20,"div",27),e.YNc(21,hn,3,1,"div",28),e.YNc(22,xn,3,1,"div",28),e.YNc(23,vn,2,0,"div",29),e.qZA()()()()),2&n){const t=o.$implicit;e.xp6(5),e.Oqu(t.journey),e.xp6(5),e.Oqu(t.startTime),e.xp6(5),e.Oqu(t.flightNumber),e.xp6(5),e.Q6J("ngSwitch",t.status),e.xp6(1),e.Q6J("ngSwitchCase","CANCEL"),e.xp6(1),e.Q6J("ngSwitchCase","SUCCESS")}}function yn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",35)(1,"div",36),e.O4$(),e.TgZ(2,"svg",37),e._UZ(3,"path",38)(4,"path",39),e.qZA(),e.kcU(),e.TgZ(5,"div",40)(6,"div",41),e._uU(7,"H\u1ee7y h\xe0nh tr\xecnh kh\xf4ng th\xe0nh c\xf4ng"),e.qZA(),e.TgZ(8,"div",42),e._uU(9," L\u1ed7i kh\xf4ng th\u1ec3 th\u1eed l\u1ea1i. Vui l\xf2ng li\xean h\u1ec7 booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 "),e.qZA()()(),e.TgZ(10,"cf-icon",43),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.isHiddenLabel=!0)}),e.qZA()()}}const Zn=function(){return{num:25}},En=function(){return{num:50}},bn=function(){return{num:75}},Dn=function(){return{num:100}},An=function(n,o,t,i){return[n,o,t,i]},Tn=function(){return[]},kn=function(){return["ERROR","RETRY"]};function Un(n,o){if(1&n&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",12),e._UZ(3,"cf-icon",13),e.TgZ(4,"div",14),e._uU(5),e.qZA()(),e.TgZ(6,"div",15),e._uU(7,"C\xe1c chuy\u1ebfn bay t\u01b0\u01a1ng \u1ee9ng v\u1edbi m\xe3 \u0111\u1eb7t ch\u1ed7 \u0111\u01b0\u1ee3c li\u1ec7t k\xea b\xean d\u01b0\u1edbi:"),e.qZA()(),e.TgZ(8,"cf-table",16,17)(10,"thead",18)(11,"th",19),e._uU(12,"STT"),e.qZA(),e.TgZ(13,"th",19),e._uU(14,"H\xe0nh tr\xecnh"),e.qZA(),e.TgZ(15,"th",19),e._uU(16,"L\u1ecbch tr\xecnh"),e.qZA(),e.TgZ(17,"th",19),e._uU(18,"M\xe3 hi\u1ec7u"),e.qZA(),e.TgZ(19,"th",19),e._uU(20,"Tr\u1ea1ng th\xe1i"),e.qZA()(),e.TgZ(21,"tbody"),e.YNc(22,mn,14,7,"ng-template",20),e.qZA()(),e.TgZ(23,"div",21),e.YNc(24,Cn,24,6,"div",22),e.qZA(),e.YNc(25,yn,11,0,"div",23),e.qZA()),2&n){const t=e.MAs(9),i=e.oxw();e.xp6(5),e.Oqu(i.bookingInfo.bookingCode),e.xp6(3),e.Q6J("fnSort",i.sortChange)("fnSearch",i.searchChange)("pageSizeList",e.l5B(12,An,e.DdM(8,Zn),e.DdM(9,En),e.DdM(10,bn),e.DdM(11,Dn)))("listData",i.listSegmentData||e.DdM(17,Tn)),e.xp6(14),e.Q6J("ngForOf",t.partOfdata),e.xp6(2),e.Q6J("ngForOf",i.listSegmentData),e.xp6(1),e.Q6J("ngIf",!i.isHiddenLabel&&e.DdM(18,kn).includes(i.status))}}function qn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.onDeleteSegment())}),e._UZ(1,"cf-icon",48),e._uU(2," H\u1ee7y t\u1ea5t c\u1ea3 "),e.qZA()}}function In(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.onDeleteSegment())}),e._UZ(1,"cf-icon",49),e._uU(2," Th\u1eed l\u1ea1i "),e.qZA()}}function Bn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",44)(1,"button",45),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onClose())}),e._uU(2," \u0110\xf3ng "),e.qZA(),e.YNc(3,qn,3,0,"button",46),e.YNc(4,In,3,0,"button",46),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngIf","DEFAULT"===t.status),e.xp6(1),e.Q6J("ngIf","RETRY"===t.status)}}function wn(n,o){1&n&&e._UZ(0,"cf-spinner")}let Nn=(()=>{class n{constructor(t,i,r,s,x,v,T,U,B){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,this._manageBookingService=x,this._modal=v,this._locationDataService=T,this._mobileDetectService=U,this._bottomSheetService=B,this.listSegmentData=[],this.status="DEFAULT",this.isHiddenLabel=!1,this.isLoading=!1,this.isLoadingSegmentsPnr=!1,this.searchChange=(H,Q)=>Q,this.sortChange=(H,Q)=>Q,s.registerIcons([d.UNF,d.Vks,d.Hge,d.fXw]),t&&(this.bookingInfo=t.data.bookingInfo),i&&(this.bookingInfo=i.bookingInfo),this.getSegmentsPnr()}getSegmentsPnr(){this.isLoadingSegmentsPnr=!0,this._manageBookingService.getSegmentsPnr(this.bookingInfo.bookingCode).pipe((0,de.x)(()=>this.isLoadingSegmentsPnr=!1)).subscribe({next:t=>{t.success&&t.data&&(this.listSegmentData=t.data.map((i,r)=>({order:r+1,segmentKey:i.segmentKey,journey:`${this._locationDataService.getCityNameByCode(i.departure.airport.code)} (${i.departure.airport.code}) - ${this._locationDataService.getCityNameByCode(i.arrival.airport.code)} (${i.arrival.airport.code})`,startTime:pe(i.departure.localTime).format("HH:mm DD/MM/YYYY"),flightNumber:`${i.airline||""}${i.flyNumber}`,status:""})))}})}onDeleteSegment(){if(this._mobileDetectService.isMobile()){const t=this._bottomSheetService.open(E.V0,{rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",headerTitle:"X\xe1c nh\u1eadn h\u1ee7y h\xe0nh tr\xecnh",data:{title:"X\xe1c nh\u1eadn h\u1ee7y h\xe0nh tr\xecnh",body:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n h\u1ee7y t\u1ea5t c\u1ea3 c\xe1c h\xe0nh tr\xecnh n\xe0y kh\xf4ng? H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c."}});t.containerInstance._rightButtonClick.subscribe(i=>t.dismiss()),t.afterDismissed().subscribe(i=>{i&&(this.bookingInfo.provider===M.QK.BSP?this.processCancelBooking():this.processDeleteSegment())})}else this._modal.open(E.V0,{title:"X\xe1c nh\u1eadn h\u1ee7y h\xe0nh tr\xecnh",body:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n h\u1ee7y t\u1ea5t c\u1ea3 c\xe1c h\xe0nh tr\xecnh n\xe0y kh\xf4ng? H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c."}).afterClosed$.subscribe({next:i=>{i.data&&(this.bookingInfo.provider===M.QK.BSP?this.processCancelBooking():this.processDeleteSegment())}})}processDeleteSegment(){const t={airline:this.bookingInfo.airline,bookingCode:this.bookingInfo.bookingCode,bookingAgent:"",segmentKeys:this.listSegmentData.map(i=>i.segmentKey)};this.isLoading=!0,this._manageBookingService.deleteSegments(t).pipe((0,de.x)(()=>this.isLoading=!1)).subscribe({next:i=>{if(i.success&&i.data)if(this.listSegmentData.forEach(s=>{const x=i.data.find(v=>v.segmentKey===s.segmentKey);s.status=x?x.segmentState.toUpperCase():"CREATE"}),this.listSegmentData.every(s=>"CANCEL"===s.status))if(this.status="SUCCESS",this._mobileDetectService.isMobile()){const s=this._bottomSheetService.open(E.z5,{rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",headerTitle:"",data:{title:"H\u1ee7y h\xe0nh tr\xecnh th\xe0nh c\xf4ng",content:`<div>T\u1ea5t c\u1ea3 c\xe1c h\xe0nh tr\xecnh h\u1ee3p l\u1ec7 t\u1eeb m\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${t.bookingCode}</strong> \u0111\xe3 \u0111\u01b0\u1ee3c h\u1ee7y th\xe0nh c\xf4ng.</div>`,status:"success"}});s.containerInstance._rightButtonClick.subscribe(x=>s.dismiss()),s.afterDismissed().subscribe(x=>{this.bottomSheetRef.dismiss(!0)})}else this._modal.open(E.z5,{title:"H\u1ee7y h\xe0nh tr\xecnh th\xe0nh c\xf4ng",content:`<div>T\u1ea5t c\u1ea3 c\xe1c h\xe0nh tr\xecnh h\u1ee3p l\u1ec7 t\u1eeb m\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${t.bookingCode}</strong> \u0111\xe3 \u0111\u01b0\u1ee3c h\u1ee7y th\xe0nh c\xf4ng.</div>`,status:"success"}).afterClosed$.subscribe({next:()=>{this.ref.close(!0)}});else this.status="ERROR";else this.status="ERROR"},error:()=>{this.status="RETRY"}})}processCancelBooking(){const t={airline:this.bookingInfo.airline,bookingCode:this.bookingInfo.bookingCode,provider:this.bookingInfo.provider};this.isLoading=!0,this._manageBookingService.cancelBooking(t).pipe((0,de.x)(()=>this.isLoading=!1)).subscribe({next:i=>{if("OK"===i.status)if(this.status="SUCCESS",this._mobileDetectService.isMobile()){const r=this._bottomSheetService.open(E.z5,{rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",headerTitle:"",data:{title:"H\u1ee7y h\xe0nh tr\xecnh th\xe0nh c\xf4ng",content:`<div>T\u1ea5t c\u1ea3 c\xe1c h\xe0nh tr\xecnh h\u1ee3p l\u1ec7 t\u1eeb m\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${t.bookingCode}</strong> \u0111\xe3 \u0111\u01b0\u1ee3c h\u1ee7y th\xe0nh c\xf4ng.</div>`,status:"success"}});r.containerInstance._rightButtonClick.subscribe(s=>r.dismiss()),r.afterDismissed().subscribe(s=>{this.bottomSheetRef.dismiss(!0)})}else this._modal.open(E.z5,{title:"H\u1ee7y h\xe0nh tr\xecnh th\xe0nh c\xf4ng",content:`<div>T\u1ea5t c\u1ea3 c\xe1c h\xe0nh tr\xecnh h\u1ee3p l\u1ec7 t\u1eeb m\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${t.bookingCode}</strong> \u0111\xe3 \u0111\u01b0\u1ee3c h\u1ee7y th\xe0nh c\xf4ng.</div>`,status:"success"}).afterClosed$.subscribe({next:()=>{this.ref.close(!0)}});else this.status="ERROR"},error:()=>{this.status="RETRY"}})}onClose(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP),e.Y36(Ce.fB),e.Y36(j.oE),e.Y36(_e._),e.Y36(oe.L),e.Y36(a.a2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["delete-segment-detail"]],standalone:!0,features:[e.jDz],decls:10,vars:4,consts:[[1,"w-[772px]","min-h-[250px]","max-h-[600px]","overflow-hidden","flex","flex-col","rounded-lg","bg-neutral-white","md:w-screen","md:bg-neutral-gray-1","md:max-h-none","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-sm","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"overflow-auto","md:flex","md:flex-col","md:justify-between","md:h-full"],["class","p-6",4,"ngIf"],["class","bg-white px-6 rounded md:p-0 md:bg-transparent md:overflow-y-auto",4,"ngIf"],["class","flex justify-end gap-x-4 py-8 px-6 md:p-4 md:bg-neutral-white",4,"ngIf"],[4,"ngIf"],[1,"p-6"],[1,"bg-white","px-6","rounded","md:p-0","md:bg-transparent","md:overflow-y-auto"],[1,"px-4","py-5","md:p-4","md:bg-neutral-white"],[1,"flex","items-center","gap-x-2"],["icon","coupon_slash","size","small"],[1,"text-heading-sm"],[1,"text-body-sm","pl-6"],["mode","template",1,"md:hidden",3,"fnSort","fnSearch","pageSizeList","listData"],["managerTable",""],["cf-thead",""],["cf-th",""],["ngFor","",3,"ngForOf"],[1,"hidden","p-4","md:flex","md:gap-y-4","md:flex-col"],["class","p-3 flex flex-col gap-y-2 bg-neutral-white rounded-lg",4,"ngFor","ngForOf"],["class","flex justify-between items-center bg-red-1 py-3 px-4 gap-x-4 mt-4 rounded md:hidden",4,"ngIf"],[1,"border-b","border-neutral-gray-1"],["cf-td","",1,"text-left","py-2","px-3","text-body-sm"],["cf-td","",1,"text-left","py-2","px-3"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","inverted",3,"color"],[1,"p-3","flex","flex-col","gap-y-2","bg-neutral-white","rounded-lg"],[1,"flex","items-center","justify-between"],[1,"text-body-sm","text-neutral-gray-4"],[1,"text-espressive-md-long","text-neutral-gray-6"],[1,"flex","justify-between","items-center","bg-red-1","py-3","px-4","gap-x-4","mt-4","rounded","md:hidden"],[1,"flex","flex-1","items-center","gap-x-2"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","fill","#E03C31"],["d","M8.46979 8.46967C8.76269 8.17678 9.23756 8.17678 9.53045 8.46967L12.0001 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 11.9999L15.5304 14.4697C15.8233 14.7626 15.8233 15.2374 15.5304 15.5303C15.2376 15.8232 14.7627 15.8232 14.4698 15.5303L12.0001 13.0606L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9394 11.9999L8.46979 9.53033C8.1769 9.23744 8.1769 8.76256 8.46979 8.46967Z","fill","white"],[1,"flex","flex-col"],[1,"text-espressive-md-short","text-neutral-black"],[1,"text-body-md-short","text-neutral-gray-6"],["icon","close","size","small",1,"cursor-pointer",3,"click"],[1,"flex","justify-end","gap-x-4","py-8","px-6","md:p-4","md:bg-neutral-white"],["cf-button","","size","medium","type","secondary",1,"md:w-full","md:justify-center",3,"click"],["cf-button","","size","medium","class","md:w-full md:justify-center",3,"click",4,"ngIf"],["cf-button","","size","medium",1,"md:w-full","md:justify-center",3,"click"],["icon","delete","size","small",1,"mr-2.5","text-white"],["icon","undo","size","small",1,"mr-2.5","text-white"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"H\u1ee7y h\xe0nh tr\xecnh"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.onClose()}),e.qZA()(),e.TgZ(5,"div",4),e.YNc(6,pn,3,0,"div",5),e.YNc(7,Un,26,19,"div",6),e.YNc(8,Bn,5,2,"div",7),e.qZA()(),e.YNc(9,wn,1,0,"cf-spinner",8)),2&t&&(e.xp6(6),e.Q6J("ngIf",i.isLoadingSegmentsPnr),e.xp6(1),e.Q6J("ngIf",!i.isLoadingSegmentsPnr),e.xp6(1),e.Q6J("ngIf",!i.isLoadingSegmentsPnr),e.xp6(1),e.Q6J("ngIf",i.isLoading))},dependencies:[f.ez,f.sg,f.O5,f.RF,f.n9,f.ED,d.AxE,d.Sm8,h.N8,h.Xq,ye.rC,ye.E_,ye.zs,ye.qS,ln.b,E.OR,a.DW,dn.IA],encapsulation:2}),n})();var Ze=_(90602);function Fn(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",43),e.qZA()())}function Jn(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",44),e.qZA()())}function Sn(n,o){1&n&&(e.TgZ(0,"div",45),e._uU(1,"\u0110\xe3 gi\u1eef ch\u1ed7"),e.qZA())}function On(n,o){1&n&&(e.TgZ(0,"div",45),e._uU(1,"\u0110\xe3 xu\u1ea5t v\xe9"),e.qZA())}function Qn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(){const s=e.CHM(t).$implicit,x=e.oxw();return e.KtG(x.onJourneySelect(s))}),e.TgZ(1,"div",22)(2,"div",23),e._UZ(3,"img",24),e.TgZ(4,"div",25),e._uU(5),e.qZA()(),e.TgZ(6,"div",26)(7,"div",27)(8,"div",28),e._UZ(9,"cf-icon",29),e.TgZ(10,"div"),e._uU(11),e.qZA(),e._UZ(12,"cf-icon",30),e.TgZ(13,"div"),e._uU(14),e.qZA()(),e.TgZ(15,"div",31),e._UZ(16,"cf-icon",32),e.TgZ(17,"div"),e._uU(18),e.ALo(19,"date"),e.qZA()(),e.TgZ(20,"div",31),e._UZ(21,"cf-icon",33),e.TgZ(22,"div"),e._uU(23),e.qZA()()()()(),e.TgZ(24,"div",34),e._UZ(25,"div",35),e.TgZ(26,"div",36)(27,"div",37),e._uU(28,"T\xecnh tr\u1ea1ng"),e.qZA(),e.TgZ(29,"div",38),e.YNc(30,Fn,3,0,"div",39),e.YNc(31,Jn,3,0,"div",39),e.YNc(32,Sn,2,0,"div",40),e.YNc(33,On,2,0,"div",40),e.qZA()(),e.TgZ(34,"cf-radio",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit,x=e.oxw();return e.KtG(x.onJourneySelect(s))}),e.qZA()()()}if(2&n){const t=o.$implicit;e.xp6(3),e.Q6J("src",t.airlineLogoUrl,e.LSH),e.xp6(2),e.AsE("",t.airlineCode," - ",t.airlineName,""),e.xp6(6),e.AsE("",t.startPointName," (",t.startPointCode,")"),e.xp6(3),e.AsE("",t.endPointName," (",t.endPointCode,")"),e.xp6(4),e.Oqu(e.xi3(19,14,t.startDate,"HH:mm - dd/MM/yyyy")),e.xp6(5),e.Oqu(t.journeyType),e.xp6(7),e.Q6J("ngIf","ISSUED"===t.status),e.xp6(1),e.Q6J("ngIf","BOOKED"===t.status),e.xp6(1),e.Q6J("ngIf","BOOKED"===t.status),e.xp6(1),e.Q6J("ngIf","ISSUED"===t.status),e.xp6(1),e.Q6J("checked",t.isSelected)}}function jn(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",43),e.qZA()())}function Mn(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",44),e.qZA()())}function Pn(n,o){1&n&&(e.TgZ(0,"div",54),e._uU(1,"\u0110\xe3 gi\u1eef ch\u1ed7"),e.qZA())}function Yn(n,o){1&n&&(e.TgZ(0,"div",54),e._uU(1,"\u0110\xe3 xu\u1ea5t v\xe9"),e.qZA())}function Ln(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",46),e.NdJ("click",function(){const s=e.CHM(t).$implicit,x=e.oxw();return e.KtG(x.onJourneySelect(s))}),e.TgZ(1,"div",47),e._UZ(2,"img",48),e.TgZ(3,"div",38),e.YNc(4,jn,3,0,"div",39),e.YNc(5,Mn,3,0,"div",39),e.YNc(6,Pn,2,0,"div",49),e.YNc(7,Yn,2,0,"div",49),e.qZA()(),e._UZ(8,"div",50),e.TgZ(9,"div",51)(10,"div",52)(11,"div",27)(12,"div",53),e._UZ(13,"cf-icon",29),e.TgZ(14,"div"),e._uU(15),e.qZA(),e._UZ(16,"cf-icon",30),e.TgZ(17,"div"),e._uU(18),e.qZA()(),e.TgZ(19,"div",31),e._UZ(20,"cf-icon",32),e.TgZ(21,"div"),e._uU(22),e.ALo(23,"date"),e.qZA()(),e.TgZ(24,"div",31),e._UZ(25,"cf-icon",33),e.TgZ(26,"div"),e._uU(27),e.qZA()()()(),e.TgZ(28,"div")(29,"cf-radio",41),e.NdJ("click",function(){const s=e.CHM(t).$implicit,x=e.oxw();return e.KtG(x.onJourneySelect(s))}),e.qZA()()()()}if(2&n){const t=o.$implicit;e.xp6(2),e.Q6J("src",t.airlineLogoUrl,e.LSH),e.xp6(2),e.Q6J("ngIf","ISSUED"===t.status),e.xp6(1),e.Q6J("ngIf","BOOKED"===t.status),e.xp6(1),e.Q6J("ngIf","BOOKED"===t.status),e.xp6(1),e.Q6J("ngIf","ISSUED"===t.status),e.xp6(8),e.Oqu(t.startPointName),e.xp6(3),e.Oqu(t.endPointName),e.xp6(4),e.Oqu(e.xi3(23,10,t.startDate,"HH:mm - dd/MM/yyyy")),e.xp6(5),e.Oqu(t.journeyType),e.xp6(2),e.Q6J("checked",t.isSelected)}}function Hn(n,o){1&n&&e._UZ(0,"cf-icon",55)}function Rn(n,o){1&n&&e._UZ(0,"cf-icon",56)}let Gn=(()=>{class n{constructor(t,i,r,s,x,v,T,U,B,H){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,this._modal=x,this._locationDataService=v,this._mobileDetectService=T,this._bottomSheetService=U,this._bookingDetailService=B,this._detectMobileService=H,this.journeys=[],this.isLoadingNextButton=!1,s.registerIcons([d.UNF,d.Hge,d.fXw,d.s5C,d.NNX,d.toh,d.$S]),t&&(this.journeys=t.data.journeys),i&&(this.journeys=i.journeys)}ngOnInit(){}onClose(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}onDeleteJourney(){let t=this.journeys.find(i=>i.isSelected);t&&this.onDeleteJourneyConfirm(t)}onDeleteJourneyConfirm(t){this.isLoadingNextButton=!0,this._bookingDetailService.quotationCancelJourney({airline:t.airlineCode,bookingCode:t.pnr,cancelJourneyKey:t.journeyKey}).subscribe({next:i=>{this.isLoadingNextButton=!1,this.ref&&this.ref.close({journey:t,quotation:i}),this.bottomSheetData&&this.bottomSheetRef.dismiss({journey:t,quotation:i})},error:i=>{this.isLoadingNextButton=!1}})}onJourneySelect(t){this.journeys.forEach(i=>i.isSelected=!1),t.isSelected=!0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP),e.Y36(j.oE),e.Y36(_e._),e.Y36(oe.L),e.Y36(a.a2),e.Y36(Ze.P3),e.Y36(oe.L))},n.\u0275cmp=e.Xpm({type:n,selectors:[["delete-each-journey-detail"]],standalone:!0,features:[e.jDz],decls:25,vars:5,consts:[[1,"relative","w-[772px]","min-h-[250px]","max-h-[600px]","overflow-hidden","flex","flex-col","rounded-lg","bg-neutral-white","md:w-screen","md:bg-neutral-gray-1","md:max-h-none","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-sm","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"overflow-auto","md:flex","md:flex-col","md:justify-between","md:h-full"],[1,"bg-white","rounded","md:p-0","md:bg-transparent","md:overflow-y-auto"],[1,"px-6","py-4","space-y-6","md:hidden"],["class","flex p-4 justify-between border border-neutral-gray-2 rounded cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"!mt-[100px]"],[1,"hidden","p-4","md:flex","md:gap-y-4","md:flex-col"],["class","flex flex-col py-4 px-3 bg-white border rounded border-neutral-gray-1",3,"click",4,"ngFor","ngForOf"],[1,"!mt-[70px]"],[1,"flex","justify-between","gap-x-4","py-8","px-6","absolute","bottom-0","w-full","md:p-4","bg-neutral-white"],["cf-button","","size","medium","type","border",1,"md:justify-center",3,"click"],["icon","close","size","small",1,"mr-2.5","md:hidden"],["icon","delete","size","small",1,"mr-2.5","hidden","md:block"],[1,"md:hidden"],[1,"hidden","md:block"],["cf-button","","size","medium",1,"md:justify-center",3,"disabled","click"],["icon","chevron_right","size","small","class","ml-2.5 text-white",4,"ngIf"],["class","text-neutral-white ml-2.5 animate-spin","icon","refresh","size","small",4,"ngIf"],[1,"flex","p-4","justify-between","border","border-neutral-gray-2","rounded","cursor-pointer",3,"click"],[1,"flex","space-x-12"],[1,"flex","flex-col","shrink-0"],[1,"w-20",3,"src"],[1,"text-express-sm"],[1,"flex","space-x-4"],[1,"flex","flex-col","space-y-2"],[1,"flex","items-center","space-x-2","text-express-xl","whitespace-nowrap"],["icon","location"],["icon","arrow_right"],[1,"flex","items-center","space-x-2","text-neutral-gray-4","text-body-md-short"],["icon","calendar"],["icon","plane"],[1,"flex"],[1,"border-l","border-dashed","border-neutral-gray-1","mr-4"],[1,"flex","flex-col","space-y-2","mr-8"],[1,"text-body-md"],[1,"flex","space-x-2","items-center"],[4,"ngIf"],["class","text-body-md-short whitespace-nowrap font-medium",4,"ngIf"],["size","medium",3,"checked","click"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.99998 1.33333C6.68144 1.33333 5.39251 1.72432 4.29618 2.45686C3.19985 3.18941 2.34537 4.2306 1.84079 5.44877C1.3362 6.66695 1.20418 8.00739 1.46141 9.3006C1.71865 10.5938 2.35359 11.7817 3.28594 12.714C4.21829 13.6464 5.40617 14.2813 6.69938 14.5386C7.99259 14.7958 9.33303 14.6638 10.5512 14.1592C11.7694 13.6546 12.8106 12.8001 13.5431 11.7038C14.2757 10.6075 14.6666 9.31854 14.6666 8C14.6615 6.23346 13.9575 4.54075 12.7084 3.29162C11.4592 2.04248 9.76651 1.33846 7.99998 1.33333ZM6.88887 11.0078L4.27387 8.39277C4.05695 8.17585 4.05695 7.82414 4.27387 7.60722C4.4908 7.39029 4.8425 7.39029 5.05943 7.60722L6.88887 9.43666L10.9405 5.38499C11.1575 5.16807 11.5092 5.16807 11.7261 5.385C11.943 5.60192 11.943 5.95363 11.7261 6.17055L6.88887 11.0078Z","fill","#07A35D"],["d","M7.99998 1.33333C6.68144 1.33333 5.39251 1.72432 4.29618 2.45686C3.19985 3.18941 2.34537 4.2306 1.84079 5.44877C1.3362 6.66695 1.20418 8.00739 1.46141 9.3006C1.71865 10.5938 2.35359 11.7817 3.28594 12.714C4.21829 13.6464 5.40617 14.2813 6.69938 14.5386C7.99259 14.7958 9.33303 14.6638 10.5512 14.1592C11.7694 13.6546 12.8106 12.8001 13.5431 11.7038C14.2757 10.6075 14.6666 9.31854 14.6666 8C14.6615 6.23346 13.9575 4.54075 12.7084 3.29162C11.4592 2.04248 9.76651 1.33846 7.99998 1.33333ZM6.88887 11.0078L4.27387 8.39277C4.05695 8.17585 4.05695 7.82414 4.27387 7.60722C4.4908 7.39029 4.8425 7.39029 5.05943 7.60722L6.88887 9.43666L10.9405 5.38499C11.1575 5.16807 11.5092 5.16807 11.7261 5.385C11.943 5.60192 11.943 5.95363 11.7261 6.17055L6.88887 11.0078Z","fill","#e29e1a"],[1,"text-body-md-short","whitespace-nowrap","font-medium"],[1,"flex","flex-col","py-4","px-3","bg-white","border","rounded","border-neutral-gray-1",3,"click"],[1,"flex","items-center","justify-between"],[1,"w-16",3,"src"],["class","text-body-md-short font-medium",4,"ngIf"],[1,"h-1","w-full","my-2","border-t","border-t-neutral-gray-1"],[1,"flex","justify-between"],[1,"flex","flex-col"],[1,"flex","items-center","space-x-2","text-express-xl"],[1,"text-body-md-short","font-medium"],["icon","chevron_right","size","small",1,"ml-2.5","text-white"],["icon","refresh","size","small",1,"text-neutral-white","ml-2.5","animate-spin"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"Ch\u1ecdn h\xe0nh tr\xecnh c\u1ea7n h\u1ee7y"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.onClose()}),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6),e.YNc(8,Qn,35,17,"div",7),e._UZ(9,"div",8),e.qZA(),e.TgZ(10,"div",9),e.YNc(11,Ln,30,13,"div",10),e._UZ(12,"div",11),e.qZA()(),e.TgZ(13,"div",12)(14,"button",13),e.NdJ("click",function(){return i.onClose()}),e._UZ(15,"cf-icon",14)(16,"cf-icon",15),e.TgZ(17,"span",16),e._uU(18," H\u1ee7y d\u1ecbch v\u1ee5 "),e.qZA(),e.TgZ(19,"span",17),e._uU(20," H\u1ee7y "),e.qZA()(),e.TgZ(21,"button",18),e.NdJ("click",function(){return i.onDeleteJourney()}),e._uU(22," Ti\u1ebfp t\u1ee5c "),e.YNc(23,Hn,1,0,"cf-icon",19),e.YNc(24,Rn,1,0,"cf-icon",20),e.qZA()()()()),2&t&&(e.xp6(8),e.Q6J("ngForOf",i.journeys),e.xp6(3),e.Q6J("ngForOf",i.journeys),e.xp6(10),e.Q6J("disabled",i.isLoadingNextButton),e.xp6(2),e.Q6J("ngIf",!i.isLoadingNextButton),e.xp6(1),e.Q6J("ngIf",i.isLoadingNextButton))},dependencies:[f.ez,f.sg,f.O5,f.uU,d.AxE,d.Sm8,a.DW,h.N8,h.Xq,p.o],encapsulation:2}),n})();function zn(n,o){if(1&n&&(e.TgZ(0,"div",29)(1,"div",30),e.O4$(),e.TgZ(2,"svg",31),e._UZ(3,"path",32),e.qZA(),e.kcU(),e.TgZ(4,"div",10),e._uU(5,"Chi ti\u1ebft ph\xed h\u1ee7y"),e.qZA()(),e.TgZ(6,"div",33)(7,"div",34)(8,"div",30)(9,"div",35),e._uU(10,"Ph\xed h\u1ee7y"),e.qZA(),e._UZ(11,"cf-icon",36),e.qZA(),e.TgZ(12,"div",35),e._uU(13),e.ALo(14,"replace"),e.ALo(15,"number"),e.qZA()(),e.TgZ(16,"div",37)(17,"div",30)(18,"div",38),e._uU(19,"T\u1ed5ng ph\xed"),e.qZA()(),e.TgZ(20,"div",39),e._uU(21),e.ALo(22,"replace"),e.ALo(23,"number"),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(11),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n ph\u1ea3i tr\u1ea3 \u0111\u1ec3 th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng h\u1ee7y"),e.xp6(2),e.hij("",e.Dn7(14,3,e.lcZ(15,7,t.journeyConfirm.cancelFee),",","."),"\u0111"),e.xp6(8),e.hij("",e.Dn7(22,9,e.lcZ(23,13,t.journeyConfirm.cancelFee),",","."),"\u0111")}}function $n(n,o){if(1&n&&(e.TgZ(0,"div",29)(1,"div",30),e.O4$(),e.TgZ(2,"svg",31),e._UZ(3,"path",32),e.qZA(),e.kcU(),e.TgZ(4,"div",10),e._uU(5,"Chi ti\u1ebft ph\xed h\u1ee7y"),e.qZA()(),e.TgZ(6,"div",33)(7,"div",34)(8,"div",30)(9,"div",35),e._uU(10,"\u0110\xe3 thanh to\xe1n"),e.qZA(),e._UZ(11,"cf-icon",36),e.qZA(),e.TgZ(12,"div",40),e._uU(13),e.ALo(14,"replace"),e.ALo(15,"number"),e.qZA()(),e.TgZ(16,"div",34)(17,"div",30)(18,"div",35),e._uU(19,"Ph\xed h\u1ee7y"),e.qZA(),e._UZ(20,"cf-icon",36),e.qZA(),e.TgZ(21,"div",35),e._uU(22),e.ALo(23,"replace"),e.ALo(24,"number"),e.qZA()(),e.TgZ(25,"div",34)(26,"div",30)(27,"div",35),e._uU(28,"Kh\xf4ng ho\xe0n tr\u1ea3"),e.qZA(),e._UZ(29,"cf-icon",36),e.qZA(),e.TgZ(30,"div",35),e._uU(31),e.ALo(32,"replace"),e.ALo(33,"number"),e.qZA()(),e.TgZ(34,"div",37)(35,"div",30)(36,"div",38),e._uU(37,"Ho\xe0n b\u1ea3o l\u01b0u \u0111\u1ecbnh danh"),e.qZA()(),e.TgZ(38,"div",41),e._uU(39),e.ALo(40,"replace"),e.ALo(41,"number"),e.qZA()()(),e.TgZ(42,"div",42),e._UZ(43,"cf-icon",43),e.TgZ(44,"div",35),e._uU(45,"L\u01b0u \xfd: B\u1ea1n \u0111ang hu\u1ef7 h\xe0nh tr\xecnh tr\xean v\xe9 VietJet \u0111\xe3 xu\u1ea5t, s\u1ed1 ti\u1ec1n \u0111\u01b0\u1ee3c ho\xe0n l\u1ea1i (n\u1ebfu c\xf3) s\u1ebd d\u01b0\u1edbi d\u1ea1ng b\u1ea3o l\u01b0u \u0111\u1ecbnh danh h\xe0nh kh\xe1ch."),e.qZA()()()),2&n){const t=e.oxw();e.xp6(11),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n \u0111\xe3 thanh to\xe1n, \u0111\u01b0\u1ee3c ghi nh\u1eadn trong c\xf4ng n\u1ee3"),e.xp6(2),e.hij("(",e.Dn7(14,7,e.lcZ(15,11,t.journeyConfirm.paid),",","."),"\u0111)"),e.xp6(7),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n ph\u1ea3i tr\u1ea3 \u0111\u1ec3 th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng h\u1ee7y"),e.xp6(2),e.hij("",e.Dn7(23,13,e.lcZ(24,17,t.journeyConfirm.cancelFee),",","."),"\u0111"),e.xp6(7),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n kh\xf4ng \u0111\u01b0\u1ee3c ho\xe0n tr\u1ea3 theo quy \u0111\u1ecbnh c\u1ee7a VietJet Airlines"),e.xp6(2),e.hij("",e.Dn7(32,19,e.lcZ(33,23,t.journeyConfirm.noGiveBack),",","."),"\u0111"),e.xp6(8),e.hij("(",e.Dn7(40,25,e.lcZ(41,29,t.journeyConfirm.reservePrice),",","."),"\u0111)")}}function Vn(n,o){if(1&n&&(e.TgZ(0,"div",44)(1,"div",30),e.O4$(),e.TgZ(2,"svg",31),e._UZ(3,"path",32),e.qZA(),e.kcU(),e.TgZ(4,"div",10),e._uU(5,"Chi ti\u1ebft ph\xed h\u1ee7y"),e.qZA()(),e.TgZ(6,"div",33)(7,"div",34)(8,"div",30)(9,"div",35),e._uU(10,"Ph\xed h\u1ee7y"),e.qZA(),e._UZ(11,"cf-icon",36),e.qZA(),e.TgZ(12,"div",35),e._uU(13),e.ALo(14,"replace"),e.ALo(15,"number"),e.qZA()(),e.TgZ(16,"div",37)(17,"div",30)(18,"div",38),e._uU(19,"T\u1ed5ng ph\xed"),e.qZA()(),e.TgZ(20,"div",39),e._uU(21),e.ALo(22,"replace"),e.ALo(23,"number"),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(11),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n ph\u1ea3i tr\u1ea3 \u0111\u1ec3 th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng h\u1ee7y"),e.xp6(2),e.hij("",e.Dn7(14,3,e.lcZ(15,7,t.journeyConfirm.cancelFee),",","."),"\u0111"),e.xp6(8),e.hij("",e.Dn7(22,9,e.lcZ(23,13,t.journeyConfirm.cancelFee),",","."),"\u0111")}}function Kn(n,o){if(1&n&&(e.TgZ(0,"div",44)(1,"div",30),e.O4$(),e.TgZ(2,"svg",31),e._UZ(3,"path",32),e.qZA(),e.kcU(),e.TgZ(4,"div",10),e._uU(5,"Chi ti\u1ebft ph\xed h\u1ee7y"),e.qZA()(),e.TgZ(6,"div",33)(7,"div",34)(8,"div",30)(9,"div",35),e._uU(10,"\u0110\xe3 thanh to\xe1n"),e.qZA(),e._UZ(11,"cf-icon",36),e.qZA(),e.TgZ(12,"div",40),e._uU(13),e.ALo(14,"replace"),e.ALo(15,"number"),e.qZA()(),e.TgZ(16,"div",34)(17,"div",30)(18,"div",35),e._uU(19,"Ph\xed h\u1ee7y"),e.qZA(),e._UZ(20,"cf-icon",36),e.qZA(),e.TgZ(21,"div",35),e._uU(22),e.ALo(23,"replace"),e.ALo(24,"number"),e.qZA()(),e.TgZ(25,"div",34)(26,"div",30)(27,"div",35),e._uU(28,"Kh\xf4ng ho\xe0n tr\u1ea3"),e.qZA(),e._UZ(29,"cf-icon",36),e.qZA(),e.TgZ(30,"div",35),e._uU(31),e.ALo(32,"replace"),e.ALo(33,"number"),e.qZA()(),e.TgZ(34,"div",37)(35,"div",30)(36,"div",38),e._uU(37,"Ho\xe0n b\u1ea3o l\u01b0u \u0111\u1ecbnh danh"),e.qZA()(),e.TgZ(38,"div",41),e._uU(39),e.ALo(40,"replace"),e.ALo(41,"number"),e.qZA()()(),e.TgZ(42,"div",45),e._UZ(43,"cf-icon",43),e.TgZ(44,"div",35),e._uU(45,"L\u01b0u \xfd: B\u1ea1n \u0111ang hu\u1ef7 h\xe0nh tr\xecnh tr\xean v\xe9 VietJet \u0111\xe3 xu\u1ea5t, s\u1ed1 ti\u1ec1n \u0111\u01b0\u1ee3c ho\xe0n l\u1ea1i (n\u1ebfu c\xf3) s\u1ebd d\u01b0\u1edbi d\u1ea1ng b\u1ea3o l\u01b0u \u0111\u1ecbnh danh h\xe0nh kh\xe1ch."),e.qZA()()()),2&n){const t=e.oxw();e.xp6(11),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n \u0111\xe3 thanh to\xe1n, \u0111\u01b0\u1ee3c ghi nh\u1eadn trong c\xf4ng n\u1ee3"),e.xp6(2),e.hij("(",e.Dn7(14,7,e.lcZ(15,11,t.journeyConfirm.paid),",","."),"\u0111)"),e.xp6(7),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n ph\u1ea3i tr\u1ea3 \u0111\u1ec3 th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng h\u1ee7y"),e.xp6(2),e.hij("",e.Dn7(23,13,e.lcZ(24,17,t.journeyConfirm.cancelFee),",","."),"\u0111"),e.xp6(7),e.Q6J("cfTooltip","S\u1ed1 ti\u1ec1n kh\xf4ng \u0111\u01b0\u1ee3c ho\xe0n tr\u1ea3 theo quy \u0111\u1ecbnh c\u1ee7a VietJet Airlines"),e.xp6(2),e.hij("",e.Dn7(32,19,e.lcZ(33,23,t.journeyConfirm.noGiveBack),",","."),"\u0111"),e.xp6(8),e.hij("(",e.Dn7(40,25,e.lcZ(41,29,t.journeyConfirm.reservePrice),",","."),"\u0111)")}}function Xn(n,o){1&n&&e._UZ(0,"cf-icon",46)}function Wn(n,o){1&n&&e._UZ(0,"cf-icon",47)}let ei=(()=>{class n{constructor(t,i,r,s,x,v,T,U,B){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,this._modal=x,this._locationDataService=v,this._mobileDetectService=T,this._bottomSheetService=U,this._bookingDetailService=B,this.isLoadingNextButton=!1,s.registerIcons([d.UNF,d.Hge,d.fXw,d.s5C,d.NNX,d.toh,d.okA,d.o1t,d.B2I,d.rks]),t&&(this.journeyConfirm=t.data.journeyConfirm),i&&(this.journeyConfirm=i.journeyConfirm)}ngOnInit(){}onClose(){this.ref&&this.ref.close({type:"CANCLE"}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"CANCLE"})}onConfirmDeleteJourney(){let t=this.journeyConfirm;this.isLoadingNextButton=!0,this._bookingDetailService.cancelJourney({airline:t.airline,cancelJourneyKey:t.journeyKey,bookingCode:t.pnr,confirmCharge:t.totalCharge}).subscribe({next:i=>{this.isLoadingNextButton=!1,"FAILED"==i.status?(this.ref&&this.ref.close({type:"FAILED",data:i.objectError.errorCode}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"FAILED",data:i.objectError.errorCode})):(this.ref&&this.ref.close({type:"OK",data:this.journeyConfirm}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"OK",data:this.journeyConfirm}))},error:i=>{this.isLoadingNextButton=!1}})}back(){this.ref&&this.ref.close({type:"BACK"}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"BACK"})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP),e.Y36(j.oE),e.Y36(_e._),e.Y36(oe.L),e.Y36(a.a2),e.Y36(Ze.P3))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-each-journey-confirm"]],standalone:!0,features:[e.jDz],decls:50,vars:21,consts:[[1,"w-[772px]","min-h-[250px]","max-h-[600px]","overflow-hidden","flex","flex-col","rounded-lg","bg-neutral-white","md:w-screen","md:bg-neutral-gray-1","md:max-h-none","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-sm","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"overflow-auto","md:flex","md:flex-col","md:justify-between","md:h-full"],[1,"bg-white","rounded","md:p-0","md:bg-transparent","md:overflow-y-auto"],[1,"px-6","py-4","space-y-6","md:hidden"],[1,"flex","items-center","space-x-4"],[1,"flex","items-center","space-x-2","text-heading-sm"],["icon","plane"],[1,"text-heading-sm"],[1,"flex","items-center","text-heading-sm","py-1","px-3","rounded","bg-neutral-gray-1"],["class","mt-6 flex flex-col",4,"ngIf"],[1,"hidden","p-4","md:flex","md:flex-col","space-y-4"],[1,"flex","flex-col","py-4","px-3","bg-white","border","rounded","border-neutral-gray-1","space-y-2"],[1,"text-body-md-long","font-medium"],["class","flex flex-col",4,"ngIf"],[1,"flex","justify-between","gap-x-4","py-8","px-6","md:p-4","md:bg-neutral-white"],["cf-button","","size","medium","type","border",1,"md:justify-center",3,"click"],["icon","close","size","small",1,"mr-2.5","md:hidden"],["icon","delete","size","small",1,"mr-2.5","hidden","md:block"],[1,"md:hidden"],[1,"hidden","md:block"],[1,"flex","items-center","space-x-2","whitespace-nowrap"],["cf-button","","size","medium","type","secondary",1,"md:w-full","md:justify-center",3,"click"],["icon","arrow_left","size","small",1,"mr-2.5"],["cf-button","","size","medium",1,"md:w-full","md:justify-center",3,"disabled","click"],["icon","chevron_right","size","small","class","ml-2.5 text-white",4,"ngIf"],["class","text-neutral-white ml-2.5 animate-spin","icon","refresh","size","small",4,"ngIf"],[1,"mt-6","flex","flex-col"],[1,"flex","items-center","space-x-2"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.99998 2.65001C5.04525 2.65001 2.64998 5.04528 2.64998 8.00001C2.64998 10.9547 5.04525 13.35 7.99998 13.35C10.9547 13.35 13.35 10.9547 13.35 8.00001C13.35 5.04528 10.9547 2.65001 7.99998 2.65001ZM1.34998 8.00001C1.34998 4.32731 4.32728 1.35001 7.99998 1.35001C11.6727 1.35001 14.65 4.32731 14.65 8.00001C14.65 11.6727 11.6727 14.65 7.99998 14.65C4.32728 14.65 1.34998 11.6727 1.34998 8.00001ZM7.99998 3.35001C8.35896 3.35001 8.64998 3.64102 8.64998 4.00001V4.4208C9.04647 4.50873 9.42239 4.6786 9.73937 4.93041L10.016 5.15014C10.2971 5.37343 10.3439 5.78231 10.1206 6.0634C9.89731 6.34449 9.48843 6.39134 9.20735 6.16804L8.93075 5.94832C8.84625 5.88119 8.75151 5.8254 8.64998 5.78093V7.4145C9.06184 7.49756 9.46182 7.66254 9.80422 7.91935C10.3328 8.3158 10.65 8.88151 10.65 9.50001C10.65 10.1185 10.3328 10.6842 9.80422 11.0807C9.46182 11.3375 9.06184 11.5025 8.64998 11.5855V12C8.64998 12.359 8.35896 12.65 7.99998 12.65C7.64099 12.65 7.34998 12.359 7.34998 12V11.5855C6.93817 11.5024 6.53824 11.3374 6.19588 11.0807L5.60997 10.6412C5.32278 10.4258 5.26459 10.0184 5.47998 9.7312C5.69538 9.44402 6.1028 9.38582 6.38999 9.60122L6.9759 10.0407C7.08371 10.1215 7.21034 10.1886 7.34998 10.2394V8.57927C6.96001 8.49289 6.5829 8.32583 6.2604 8.06964C5.75362 7.66706 5.46166 7.10306 5.46166 6.50002C5.46166 5.89698 5.75362 5.33299 6.2604 4.93041C6.57743 4.67856 6.95341 4.50868 7.34998 4.42076V4.00001C7.34998 3.64102 7.64099 3.35001 7.99998 3.35001ZM7.34998 5.78085C7.24837 5.82533 7.15356 5.88115 7.06902 5.94832C6.83839 6.13153 6.76166 6.3353 6.76166 6.50002C6.76166 6.66475 6.83839 6.86852 7.06902 7.05173C7.15182 7.11751 7.24651 7.17373 7.34998 7.21904V5.78085ZM8.64998 8.76057V10.2394C8.78967 10.1887 8.91636 10.1216 9.0242 10.0407C9.27665 9.85133 9.34998 9.64928 9.34998 9.50001C9.34998 9.35073 9.27665 9.14868 9.0242 8.95934C8.91636 8.87845 8.78967 8.81136 8.64998 8.76057Z","fill","#0F172A"],[1,"mt-4","flex","flex-col","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-body-md-short"],["icon","circle_information",3,"cfTooltip"],[1,"flex","justify-between"],[1,"text-body-md-short","font-medium"],[1,"text-heading-lg","text-red-4"],[1,"text-body-md-short","text-secondary-5-4"],[1,"text-heading-lg","text-secondary-5-4"],[1,"flex","space-x-2","py-1.5","px-3","bg-secondary-2-1","rounded","mt-4"],["icon","info",1,"text-secondary-2-3"],[1,"flex","flex-col"],[1,"flex","space-x-2","py-1.5","px-3","bg-secondary-2-1","rounded","mt-3"],["icon","chevron_right","size","small",1,"ml-2.5","text-white"],["icon","refresh","size","small",1,"text-neutral-white","ml-2.5","animate-spin"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"X\xe1c nh\u1eadn chi ph\xed"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.onClose()}),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),e._UZ(10,"cf-icon",9),e.TgZ(11,"div",10),e._uU(12," \u0110ang h\u1ee7y h\xe0nh tr\xecnh "),e.qZA()(),e.TgZ(13,"div",11)(14,"div"),e._uU(15),e.ALo(16,"date"),e.qZA()()(),e.YNc(17,zn,24,15,"div",12),e.YNc(18,$n,46,31,"div",12),e.qZA(),e.TgZ(19,"div",13)(20,"div",14)(21,"div",8),e._UZ(22,"cf-icon",9),e.TgZ(23,"div",10),e._uU(24," \u0110ang h\u1ee7y h\xe0nh tr\xecnh "),e.qZA()(),e.TgZ(25,"div",11)(26,"div"),e._uU(27),e.TgZ(28,"span",15),e._uU(29),e.ALo(30,"date"),e.qZA()()()(),e.TgZ(31,"div",14),e.YNc(32,Vn,24,15,"div",16),e.YNc(33,Kn,46,31,"div",16),e.qZA()()(),e.TgZ(34,"div",17)(35,"button",18),e.NdJ("click",function(){return i.onClose()}),e._UZ(36,"cf-icon",19)(37,"cf-icon",20),e.TgZ(38,"span",21),e._uU(39," H\u1ee7y d\u1ecbch v\u1ee5 "),e.qZA(),e.TgZ(40,"span",22),e._uU(41," H\u1ee7y "),e.qZA()(),e.TgZ(42,"div",23)(43,"button",24),e.NdJ("click",function(){return i.back()}),e._UZ(44,"cf-icon",25),e._uU(45," Quay l\u1ea1i "),e.qZA(),e.TgZ(46,"button",26),e.NdJ("click",function(){return i.onConfirmDeleteJourney()}),e._uU(47," X\xe1c nh\u1eadn "),e.YNc(48,Xn,1,0,"cf-icon",27),e.YNc(49,Wn,1,0,"cf-icon",28),e.qZA()()()()()),2&t&&(e.xp6(15),e.HOy("",i.journeyConfirm.startPointCode," \u2192 ",i.journeyConfirm.endPointCode," \u30fb ",e.xi3(16,15,i.journeyConfirm.startDate,"HH:mm - dd/MM/yyyy")," \u30fb ",i.journeyConfirm.journeyType,""),e.xp6(2),e.Q6J("ngIf","BOOKED"==i.journeyConfirm.status),e.xp6(1),e.Q6J("ngIf","ISSUED"==i.journeyConfirm.status),e.xp6(9),e.AsE("",i.journeyConfirm.startPointCode," \u2192 ",i.journeyConfirm.endPointCode," \u30fb "),e.xp6(2),e.AsE("",e.xi3(30,18,i.journeyConfirm.startDate,"HH:mm - dd/MM/yyyy")," \u30fb ",i.journeyConfirm.journeyType,""),e.xp6(3),e.Q6J("ngIf","BOOKED"==i.journeyConfirm.status),e.xp6(1),e.Q6J("ngIf","ISSUED"==i.journeyConfirm.status),e.xp6(13),e.Q6J("disabled",i.isLoadingNextButton),e.xp6(2),e.Q6J("ngIf",!i.isLoadingNextButton),e.xp6(1),e.Q6J("ngIf",i.isLoadingNextButton))},dependencies:[f.ez,f.O5,f.JJ,f.uU,d.AxE,d.Sm8,a.DW,h.N8,h.Xq,k,S.Lk],encapsulation:2}),n})();function ti(n,o){if(1&n&&(e.TgZ(0,"div",10),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(e.xi3(2,1,t.info.expirationDate,"dd/MM/yyyy"))}}function ni(n,o){1&n&&(e.TgZ(0,"div",10),e._uU(1,"N/A"),e.qZA())}function ii(n,o){if(1&n&&(e.TgZ(0,"tr")(1,"td",25),e._uU(2),e.qZA(),e.TgZ(3,"td",26),e._uU(4),e.qZA(),e.TgZ(5,"td",26),e._uU(6),e.ALo(7,"replace"),e.ALo(8,"number"),e.qZA()()),2&n){const t=o.$implicit;e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.type),e.xp6(2),e.Oqu(e.Dn7(7,3,e.lcZ(8,7,t.price),",","."))}}function oi(n,o){if(1&n&&(e.TgZ(0,"div",18)(1,"div",19)(2,"div",27),e._uU(3,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(4,"div",21),e._uU(5),e.qZA()(),e.TgZ(6,"div",19)(7,"div",27),e._uU(8,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(9,"div",21),e._uU(10),e.qZA()(),e.TgZ(11,"div",19)(12,"div",27),e._uU(13,"T\u1ed5ng b\u1ea3o l\u01b0u"),e.qZA(),e.TgZ(14,"div",21),e._uU(15),e.ALo(16,"replace"),e.ALo(17,"number"),e.qZA()()()),2&n){const t=o.$implicit;e.xp6(5),e.Oqu(t.name),e.xp6(5),e.Oqu(t.type),e.xp6(5),e.hij("",e.Dn7(16,3,e.lcZ(17,7,t.price),",","."),"\u0111 ")}}let ri=(()=>{class n{constructor(t,i,r,s,x,v,T,U,B,H){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,this._modal=x,this._locationDataService=v,this._mobileDetectService=T,this._bottomSheetService=U,this._bookingDetailService=B,this._detectMobileService=H,s.registerIcons([d.UNF,d.Hge,d.fXw,d.s5C,d.NNX,d.toh,d.$S]),t&&(this.info=t.data.info),i&&(this.info=i.info)}onClose(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP),e.Y36(j.oE),e.Y36(_e._),e.Y36(oe.L),e.Y36(a.a2),e.Y36(Ze.P3),e.Y36(oe.L))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-identity-reservation-info"]],standalone:!0,features:[e.jDz],decls:49,vars:10,consts:[[1,"w-[772px]","min-h-[250px]","max-h-[600px]","overflow-hidden","flex","flex-col","rounded-lg","bg-neutral-white","md:w-screen","md:bg-neutral-gray-1","md:max-h-none","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-sm","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"overflow-auto","md:flex","md:flex-col","md:justify-between","md:h-full"],[1,"bg-white","rounded","md:p-0","md:bg-transparent","md:overflow-y-auto"],[1,"px-6","py-4","space-y-6","md:hidden"],[1,"flex","flex-col","space-y-2.5"],[1,"flex","items-center"],[1,"text-body-md-short","text-neutral-gray-5","w-40"],[1,"text-espressive-md-short","text-neutral-gray-6"],["class","text-espressive-md-short text-neutral-gray-6",4,"ngIf"],[1,"table-auto","w-full"],[1,"border-b","border-neutral-gray-1"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","py-3"],[4,"ngFor","ngForOf"],[1,"text-neutral-gray-1","w-full","mb-4"],[1,"p-4","gap-y-3","md:flex","md:flex-col","hidden","w-full"],[1,"flex","flex-col","rounded-lg","bg-neutral-white","p-3","gap-y-2"],[1,"flex","items-center","gap-x-5"],[1,"text-body-sm","text-neutral-gray-4","w-[120px]"],[1,"text-espressive-md","text-neutral-gray-6"],["class","flex flex-col rounded-lg bg-neutral-white p-3 gap-y-2",4,"ngFor","ngForOf"],[1,"flex","justify-end","gap-x-4","py-8","px-6","md:p-4","md:bg-neutral-white"],["cf-button","","size","medium",1,"md:justify-center","md:w-full",3,"click"],[1,"text-body-md","text-neutral-black","py-3","uppercase"],[1,"text-body-md","text-neutral-black","py-3"],[1,"text-body-sm","text-neutral-gray-4","w-[104px]"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"B\u1ea3o l\u01b0u \u0111\u1ecbnh danh h\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.onClose()}),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9),e._uU(11,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(12,"div",10),e._uU(13),e.qZA()(),e.TgZ(14,"div",8)(15,"div",9),e._uU(16,"Ng\xe0y h\u1ebft h\u1ea1n b\u1ea3o l\u01b0u"),e.qZA(),e.YNc(17,ti,3,4,"div",11),e.YNc(18,ni,2,0,"div",11),e.qZA()(),e.TgZ(19,"div")(20,"table",12)(21,"thead")(22,"tr",13)(23,"th",14),e._uU(24,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(25,"th",14),e._uU(26,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(27,"th",14),e._uU(28,"T\u1ed5ng b\u1ea3o l\u01b0u"),e.qZA()()(),e.TgZ(29,"tbody"),e.YNc(30,ii,9,9,"tr",15),e.qZA()(),e._UZ(31,"hr",16),e.qZA()(),e.TgZ(32,"div",17)(33,"div",18)(34,"div",19)(35,"div",20),e._uU(36,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(37,"div",21),e._uU(38),e.qZA()(),e.TgZ(39,"div",19)(40,"div",20),e._uU(41,"Ng\xe0y h\u1ebft h\u1ea1n b\u1ea3o l\u01b0u"),e.qZA(),e.TgZ(42,"div",21),e._uU(43),e.ALo(44,"date"),e.qZA()()(),e.YNc(45,oi,18,9,"div",22),e.qZA()(),e.TgZ(46,"div",23)(47,"button",24),e.NdJ("click",function(){return i.onClose()}),e._uU(48," \u0110\xf3ng "),e.qZA()()()()),2&t&&(e.xp6(13),e.Oqu(i.info.pnr),e.xp6(4),e.Q6J("ngIf",i.info.expirationDate),e.xp6(1),e.Q6J("ngIf",!i.info.expirationDate),e.xp6(12),e.Q6J("ngForOf",i.info.passengers),e.xp6(8),e.Oqu(i.info.pnr),e.xp6(5),e.Oqu(e.xi3(44,7,i.info.expirationDate,"dd/MM/yyyy")),e.xp6(2),e.Q6J("ngForOf",i.info.passengers))},dependencies:[f.ez,f.sg,f.O5,f.JJ,f.uU,d.AxE,d.Sm8,a.DW,h.N8,h.Xq,k],encapsulation:2}),n})();var ai=_(27898);function ui(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",31),e._uU(2),e.qZA(),e.BQk()),2&n){const t=o.$implicit;e.xp6(2),e.hij("",t," ")}}let lt=(()=>{class n{constructor(t,i,r,s){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,s.registerIcons([d.UNF]),t&&(this.bookingCode=t.data.bookingCode,this.listPaxName=t.data.listPaxName),i&&(this.bookingCode=i.bookingCode,this.listPaxName=i.listPaxName)}close(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}ok(){this.ref&&this.ref.close(!0),this.bottomSheetData&&this.bottomSheetRef.dismiss(!0)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP))},n.\u0275cmp=e.Xpm({type:n,selectors:[["confirm-separate"]],standalone:!0,features:[e.jDz],decls:36,vars:2,consts:[[1,"w-[377px]","rounded-lg","bg-neutral-white","flex","flex-col","md:w-screen"],[1,"flex","justify-end","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"px-6","py-2"],[1,"flex","flex-col","gap-2","justify-center","items-center","text-center"],["width","80","height","80","viewBox","0 0 80 80","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","80","height","80","fill","white"],["d","M72.8737 46.6708C72.8797 51.2242 71.9344 55.7286 70.0983 59.8954H9.90136C7.93485 55.4182 6.99194 50.5587 7.14132 45.671C7.2907 40.7833 8.52862 35.9904 10.7649 31.6417C13.0011 27.293 16.1794 23.4979 20.068 20.5331C23.9567 17.5682 28.4579 15.5082 33.2435 14.5032C38.0291 13.4982 42.9787 13.5734 47.7315 14.7235C52.4843 15.8736 56.9207 18.0696 60.7174 21.1513C64.5141 24.2331 67.5755 28.123 69.6785 32.5378C71.7814 36.9525 72.873 41.7808 72.8737 46.6708Z","fill","#E7FFF4"],["d","M3.40918 59.8954H77.7661","stroke","#07A35D","stroke-width","1.5","stroke-miterlimit","10","stroke-linecap","round"],["d","M53.8891 67.0215H51.6553L49.8091 66.0308C49.6728 65.958 49.5206 65.92 49.366 65.92C49.2115 65.92 49.0593 65.958 48.923 66.0308L47.4891 66.7877C47.3527 66.8604 47.2006 66.8985 47.046 66.8985C46.8915 66.8985 46.7393 66.8604 46.603 66.7877L45.1691 66.0308C45.0327 65.958 44.8806 65.92 44.726 65.92C44.5715 65.92 44.4193 65.958 44.283 66.0308L42.8491 66.7877C42.7127 66.8604 42.5606 66.8985 42.406 66.8985C42.2515 66.8985 42.0993 66.8604 41.963 66.7877L40.4922 66.0308C40.3569 65.9581 40.2058 65.92 40.0522 65.92C39.8986 65.92 39.7475 65.9581 39.6122 66.0308L38.1537 66.7877C38.0185 66.8604 37.8673 66.8985 37.7137 66.8985C37.5602 66.8985 37.409 66.8604 37.2737 66.7877L35.8337 66.0308C35.6974 65.958 35.5452 65.92 35.3906 65.92C35.2361 65.92 35.0839 65.958 34.9476 66.0308L33.5137 66.7877C33.3774 66.8604 33.2252 66.8985 33.0707 66.8985C32.9161 66.8985 32.7639 66.8604 32.6276 66.7877L31.1937 66.0308C31.0574 65.958 30.9052 65.92 30.7507 65.92C30.5961 65.92 30.4439 65.958 30.3076 66.0308L28.6583 66.9046C28.5084 66.983 28.3414 67.0232 28.1722 67.0215H26.1107C25.9365 67.0089 25.7743 66.9282 25.6591 66.7969C25.544 66.6657 25.4851 66.4943 25.4953 66.32V23.0708C25.4851 22.8964 25.544 22.7251 25.6591 22.5938C25.7743 22.4626 25.9365 22.3819 26.1107 22.3692H53.8891C54.0633 22.3819 54.2255 22.4626 54.3406 22.5938C54.4558 22.7251 54.5147 22.8964 54.5045 23.0708V66.32C54.5147 66.4943 54.4558 66.6657 54.3406 66.7969C54.2255 66.9282 54.0633 67.0089 53.8891 67.0215Z","fill","white"],["d","M54.5048 23.0708V27.8708H25.4894V23.0708C25.4792 22.8964 25.5381 22.7251 25.6533 22.5938C25.7684 22.4626 25.9306 22.3819 26.1048 22.3692H53.8833C54.0585 22.3803 54.2223 22.4603 54.3387 22.5918C54.4552 22.7232 54.5149 22.8954 54.5048 23.0708Z","fill","#42BA84"],["d","M53.8891 67.0215H51.6553L49.8091 66.0308C49.6728 65.958 49.5206 65.92 49.366 65.92C49.2115 65.92 49.0593 65.958 48.923 66.0308L47.4891 66.7877C47.3527 66.8604 47.2006 66.8985 47.046 66.8985C46.8915 66.8985 46.7393 66.8604 46.603 66.7877L45.1691 66.0308C45.0328 65.958 44.8806 65.92 44.726 65.92C44.5715 65.92 44.4193 65.958 44.283 66.0308L42.8491 66.7877C42.7127 66.8604 42.5606 66.8985 42.406 66.8985C42.2515 66.8985 42.0993 66.8604 41.963 66.7877L40.4922 66.0308C40.3569 65.9581 40.2058 65.92 40.0522 65.92C39.8986 65.92 39.7475 65.9581 39.6122 66.0308L38.1537 66.7877C38.0185 66.8604 37.8673 66.8985 37.7137 66.8985C37.5602 66.8985 37.409 66.8604 37.2737 66.7877L35.8337 66.0308C35.6974 65.958 35.5452 65.92 35.3907 65.92C35.2361 65.92 35.0839 65.958 34.9476 66.0308L33.5137 66.7877C33.3774 66.8604 33.2252 66.8985 33.0707 66.8985C32.9161 66.8985 32.7639 66.8604 32.6276 66.7877L31.1937 66.0308C31.0574 65.958 30.9052 65.92 30.7507 65.92C30.5961 65.92 30.4439 65.958 30.3076 66.0308L28.6583 66.9046C28.5084 66.983 28.3414 67.0232 28.1722 67.0215H26.1107C25.9365 67.0089 25.7743 66.9282 25.6591 66.7969C25.544 66.6657 25.4851 66.4943 25.4953 66.32V23.0708C25.4851 22.8964 25.544 22.7251 25.6591 22.5938C25.7743 22.4626 25.9365 22.3819 26.1107 22.3692H53.8891C54.0633 22.3819 54.2255 22.4626 54.3406 22.5938C54.4558 22.7251 54.5147 22.8964 54.5045 23.0708V66.32C54.5147 66.4943 54.4558 66.6657 54.3406 66.7969C54.2255 66.9282 54.0633 67.0089 53.8891 67.0215V67.0215Z","stroke","#07A35D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M34.8307 35.0769C34.8425 35.5327 34.6745 35.9748 34.363 36.3077C34.0474 36.6638 33.6065 36.8842 33.1322 36.9231V37.7723C33.1355 37.7908 33.1342 37.8098 33.1286 37.8277C33.1229 37.8456 33.113 37.8619 33.0998 37.8752C33.0865 37.8885 33.0702 37.8984 33.0523 37.904C33.0344 37.9097 33.0154 37.9109 32.9969 37.9077H32.4738C32.3815 37.9077 32.3322 37.8646 32.3322 37.7723V36.9231C31.694 36.8451 31.0905 36.5893 30.5907 36.1846C30.5746 36.1747 30.5608 36.1616 30.5502 36.146C30.5395 36.1305 30.5322 36.1129 30.5287 36.0943C30.5252 36.0758 30.5256 36.0567 30.53 36.0384C30.5343 36.02 30.5424 36.0027 30.5538 35.9877L30.9476 35.3723C30.9603 35.3557 30.9766 35.3423 30.9952 35.333C31.0139 35.3238 31.0345 35.319 31.0553 35.319C31.0762 35.319 31.0967 35.3238 31.1154 35.333C31.1341 35.3423 31.1504 35.3557 31.163 35.3723C31.5893 35.714 32.1127 35.9121 32.6584 35.9385C33.3538 35.9385 33.7476 35.5938 33.7476 35.0892C33.7476 33.7292 30.6707 34.2523 30.6707 32.0862C30.7036 31.6518 30.8891 31.2431 31.1943 30.9323C31.4995 30.6214 31.9047 30.4286 32.3384 30.3877V29.5385C32.3365 29.5194 32.3388 29.5001 32.3453 29.4821C32.3517 29.4641 32.3621 29.4477 32.3756 29.4341C32.3891 29.4206 32.4055 29.4102 32.4236 29.4038C32.4416 29.3973 32.4609 29.395 32.4799 29.3969H33.003C33.0953 29.3969 33.1384 29.4462 33.1384 29.5385V30.3446C33.6157 30.422 34.0734 30.5913 34.4861 30.8431C34.5031 30.8519 34.5181 30.8643 34.53 30.8793C34.5419 30.8944 34.5505 30.9118 34.5551 30.9304C34.5598 30.9491 34.5604 30.9685 34.557 30.9873C34.5536 31.0062 34.5462 31.0242 34.5353 31.04L34.1107 31.6554C34.1005 31.6729 34.0864 31.6879 34.0696 31.6993C34.0528 31.7107 34.0336 31.7181 34.0135 31.7211C33.9934 31.724 33.9729 31.7224 33.9535 31.7164C33.9341 31.7103 33.9163 31.7 33.9015 31.6862C33.5575 31.4432 33.1471 31.3122 32.7261 31.3108C32.1784 31.3108 31.7292 31.6123 31.7292 32.0492C31.7538 33.3415 34.8307 32.8431 34.8307 35.0769Z","fill","#84BAA2"],["d","M29.7168 41.5323H50.7076","stroke","#84BAA2","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M29.7168 45.2492H50.7076","stroke","#84BAA2","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M29.7168 48.9662H50.7076","stroke","#84BAA2","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M29.7168 52.6831H50.7076","stroke","#84BAA2","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M29.7168 56.4062H50.7076","stroke","#84BAA2","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M55.8211 75.4646C62.8631 75.4646 68.5719 69.7559 68.5719 62.7138C68.5719 55.6718 62.8631 49.9631 55.8211 49.9631C48.779 49.9631 43.0703 55.6718 43.0703 62.7138C43.0703 69.7559 48.779 75.4646 55.8211 75.4646Z","fill","#07A35D"],["d","M49.8034 63.9261L53.9511 68.3077C54.0476 68.4013 54.1767 68.4537 54.3111 68.4537C54.4455 68.4537 54.5746 68.4013 54.6711 68.3077L63.5019 59.2677C63.5401 59.2236 63.5687 59.172 63.5858 59.1162C63.6029 59.0604 63.6082 59.0016 63.6012 58.9436C63.5943 58.8857 63.5753 58.8298 63.5454 58.7797C63.5156 58.7295 63.4756 58.6861 63.428 58.6523L61.5019 57.0031C61.414 56.9384 61.3044 56.9106 61.1964 56.9255C61.0883 56.9404 60.9904 56.997 60.9234 57.0831L54.6403 63.7908C54.6038 63.8357 54.5582 63.8726 54.5067 63.8991C54.4551 63.9255 54.3986 63.941 54.3408 63.9444C54.2829 63.9479 54.225 63.9393 54.1706 63.9192C54.1162 63.8991 54.0666 63.868 54.0249 63.8277L51.9634 61.7723C51.9247 61.7289 51.8773 61.6942 51.8243 61.6705C51.7713 61.6467 51.7138 61.6344 51.6557 61.6344C51.5976 61.6344 51.5402 61.6467 51.4871 61.6705C51.4341 61.6942 51.3867 61.7289 51.348 61.7723L49.8096 63.3846C49.7433 63.4589 49.7062 63.5547 49.7051 63.6542C49.704 63.7538 49.7389 63.8503 49.8034 63.9261Z","fill","white"],["d","M27.9443 10.1908V17.0708","stroke","#07A35D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M13.1631 25.7415H20.6031","stroke","#07A35D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M16.6094 13.9754L22.2586 19.6308","stroke","#07A35D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"text-heading-sm","text-neutral-gray-6"],[1,"text-body-md","text-neutral-gray-5"],[1,"text-express-md","font-semibold"],[1,"flex","flex-wrap","items-center","gap-2"],[4,"ngFor","ngForOf"],[1,"p-6","flex","gap-x-4"],["cf-button","","size","medium","type","secondary",1,"w-full","justify-center",3,"click"],["cf-button","","size","medium","color","primary-1",1,"w-full","justify-center",3,"click"],[1,"bg-neutral-gray-1","py-1.5","px-4","rounded-full","text-body-md-short","text-neutral-gray-6"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"cf-icon",2),e.NdJ("click",function(){return i.close()}),e.qZA()(),e.TgZ(3,"div",3)(4,"div",4),e.O4$(),e.TgZ(5,"svg",5),e._UZ(6,"rect",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"path",18)(19,"path",19)(20,"path",20)(21,"path",21)(22,"path",22),e.qZA(),e.kcU(),e.TgZ(23,"div",23),e._uU(24,"T\xe1ch h\xe0nh kh\xe1ch th\xe0nh c\xf4ng"),e.qZA(),e.TgZ(25,"div",24),e._uU(26," Nh\u1eefng h\xe0nh kh\xe1ch sau \u0111\xe3 \u0111\u01b0\u1ee3c t\xe1ch th\xe0nh c\xf4ng sang m\xe3 \u0111\u1eb7t ch\u1ed7 m\u1edbi "),e.TgZ(27,"span",25),e._uU(28),e.qZA()(),e.TgZ(29,"div",26),e.YNc(30,ui,3,1,"ng-container",27),e.qZA()()(),e.TgZ(31,"div",28)(32,"button",29),e.NdJ("click",function(){return i.close()}),e._uU(33," \u0110\xf3ng "),e.qZA(),e.TgZ(34,"button",30),e.NdJ("click",function(){return i.ok()}),e._uU(35," M\u1edf \u0111\u1eb7t ch\u1ed7 "),e.qZA()()()),2&t&&(e.xp6(28),e.Oqu(i.bookingCode),e.xp6(2),e.Q6J("ngForOf",i.listPaxName))},dependencies:[f.ez,f.sg,d.AxE,d.Sm8,h.N8,h.Xq],encapsulation:2}),n})();function si(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"tr")(2,"td",28)(3,"div",29)(4,"cf-checkbox",30),e.NdJ("checkChange",function(r){const x=e.CHM(t).$implicit,v=e.oxw();return e.KtG(v.checkedChange(r,x))}),e.qZA()()(),e.TgZ(5,"td",31),e._uU(6),e.qZA(),e.TgZ(7,"td",32),e._uU(8),e.qZA(),e.TgZ(9,"td",32),e._uU(10),e.qZA()(),e.BQk()}if(2&n){const t=o.$implicit;e.xp6(4),e.Q6J("checked",t.selected),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.type),e.xp6(2),e.Oqu(t.child)}}function ci(n,o){1&n&&(e.TgZ(0,"span",33),e._uU(1,"V\u01b0\u1ee3t qu\xe1 s\u1ed1 ng\u01b0\u1eddi cho ph\xe9p"),e.qZA())}function li(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",34)(2,"div")(3,"cf-checkbox",30),e.NdJ("checkChange",function(r){const x=e.CHM(t).$implicit,v=e.oxw();return e.KtG(v.checkedChange(r,x))}),e.qZA()(),e.TgZ(4,"div",35)(5,"div",36)(6,"div",37),e._uU(7,"T\xean kh\xe1ch"),e.qZA(),e.TgZ(8,"div",38),e._uU(9),e.qZA()(),e.TgZ(10,"div",36)(11,"div",37),e._uU(12,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(13,"div",38),e._uU(14),e.qZA()(),e.TgZ(15,"div",36)(16,"div",37),e._uU(17,"Em b\xe9 \u0111i k\xe8m"),e.qZA(),e.TgZ(18,"div",38),e._uU(19),e.qZA()()()(),e.BQk()}if(2&n){const t=o.$implicit;e.xp6(3),e.Q6J("checked",t.selected),e.xp6(6),e.Oqu(t.name),e.xp6(5),e.Oqu(t.type),e.xp6(5),e.Oqu(t.child)}}function di(n,o){1&n&&(e.TgZ(0,"span",33),e._uU(1,"V\u01b0\u1ee3t qu\xe1 s\u1ed1 ng\u01b0\u1eddi cho ph\xe9p"),e.qZA())}function pi(n,o){1&n&&e._UZ(0,"cf-spinner")}let gi=(()=>{class n{constructor(t,i,r,s,x,v,T){this._modal=i,this.ref=r,this.bottomSheetData=s,this.bottomSheetRef=x,this._bottomSheetService=v,this._manageBookingService=T,this.maxPax=0,this.isFullPax=!1,this.isNonePax=!1,this.isLoading=!1,t.registerIcons([d.UNF,d.gW0,d.PcQ]),r&&(this.listPassengers=r.data.listPassengers,this.bookingDetail=r.data.bookingDetail),s&&(this.listPassengers=s.listPassengers,this.bookingDetail=s.bookingDetail),this.maxPax=this.listPassengers.length-1,this.checkPaxSeparate()}checkedChange(t,i){i.selected=t,this.checkPaxSeparate()}checkPaxSeparate(){this.isFullPax=this.listPassengers.every(t=>t.selected),this.isNonePax=this.listPassengers.every(t=>!t.selected)}close(){this.ref&&this.ref.close(!1),this.bottomSheetRef&&this.bottomSheetRef.dismiss(!1)}ok(){const t=this.listPassengers.filter(r=>r.selected);if("VJ"===this.bookingDetail.airline&&t.every(r=>"CHD"===r.type)){if(this.bottomSheetRef){const r=this._bottomSheetService.open(E.V0,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",data:{title:"",body:"Kh\xf4ng th\u1ec3 t\xe1ch m\u1ed9t m\xecnh tr\u1ebb em. Vui l\xf2ng t\xe1ch k\xe8m ng\u01b0\u1eddi l\u1edbn ho\u1eb7c li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",okText:"\u0110\xf3ng",hasCancel:!1}});return void r.containerInstance._rightButtonClick.subscribe(s=>r.dismiss())}return void(this.ref&&this._modal.open(E.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"Kh\xf4ng th\u1ec3 t\xe1ch m\u1ed9t m\xecnh tr\u1ebb em. Vui l\xf2ng t\xe1ch k\xe8m ng\u01b0\u1eddi l\u1edbn ho\u1eb7c li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",okText:"\u0110\xf3ng",hasCancel:!1}))}const i={airline:this.bookingDetail.airline,oldBookingCode:this.bookingDetail.bookingCode,passengers:null==t?void 0:t.map(r=>({id:r.index,key:r.key}))};this.isLoading=!0,this._manageBookingService.splitPax(i).pipe((0,de.x)(()=>this.isLoading=!1)).subscribe({next:r=>{var s,x;if("OK"===r.status){const v=r.data.splitResult.bookingInfo.bookingCode,T=r.data.splitResult.bookingInfo.passengers.map(U=>`${U.lastName} ${U.firstName}`);if(this.bottomSheetRef){const U=this._bottomSheetService.open(lt,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",data:{bookingCode:v,listPaxName:T}});return U.containerInstance._rightButtonClick.subscribe(B=>U.dismiss()),void U.afterDismissed().subscribe({next:B=>{this.bottomSheetRef.dismiss(B?v:this.bookingDetail.bookingCode)}})}this.ref&&this._modal.open(lt,{bookingCode:v,listPaxName:T}).afterClosed$.subscribe({next:B=>{this.ref.close(B.data?v:this.bookingDetail.bookingCode)}})}else{const v=(null===(x=null===(s=r.objectError)||void 0===s?void 0:s.errorDescription)||void 0===x?void 0:x.vi)||"C\xf3 l\u1ed7i x\u1ea3y ra trong qu\xe1 tr\xecnh T\xe1ch kh\xe1ch. Vui l\xf2ng th\u1eed l\u1ea1i.";this._modal.open(E.V0,{title:"T\xe1ch kh\xe1ch th\u1ea5t b\u1ea1i",body:v,okText:"\u0110\xf3ng",hasCancel:!1,cancelText:""})}},error:()=>{this._modal.open(E.V0,{title:"T\xe1ch kh\xe1ch th\u1ea5t b\u1ea1i",body:"C\xf3 l\u1ed7i x\u1ea3y ra trong qu\xe1 tr\xecnh T\xe1ch kh\xe1ch. Vui l\xf2ng th\u1eed l\u1ea1i.",okText:"\u0110\xf3ng",hasCancel:!1,cancelText:""})}})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.KNP),e.Y36(j.oE),e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(a.a2),e.Y36(Ce.fB))},n.\u0275cmp=e.Xpm({type:n,selectors:[["separate-passengers"]],hostAttrs:[1,"md:w-full"],standalone:!0,features:[e.jDz],decls:68,vars:9,consts:[[1,"w-[748px]","max-h-[600px]","overflow-hidden","rounded-lg","bg-neutral-white","flex","flex-col","md:hidden"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-xs","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"p-6","flex","flex-col","gap-y-6","flex-1","overflow-auto"],[1,""],[1,"table-auto","w-full"],[1,"border-b","border-neutral-gray-1"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","pb-3"],[4,"ngFor","ngForOf"],[1,"text-body-md"],[1,"font-semibold"],["class","text-primary-1-4 ml-2",4,"ngIf"],[1,"px-3","py-1.5","bg-functional-1-1","rounded"],[1,"text-express-md","flex","items-center","gap-x-2"],["icon","info","size","small",1,"text-functional-1-3"],[1,"pl-10","text-body-md-short"],[1,"p-6","flex","gap-x-4","justify-end"],["cf-button","","size","medium","type","secondary",1,"min-w-[100px]","justify-center",3,"click"],["cf-button","","size","medium","color","primary-1",1,"min-w-[100px]","justify-center",3,"disabled","click"],["icon","circle_check","size","small",1,"mr-2.5"],[1,"hidden","w-full","h-full","md:flex","flex-col","justify-between","overflow-hidden"],[1,"flex-1","bg-neutral-gray-1","p-4","flex","flex-col","gap-y-4","w-ful","h-full","overflow-y-auto"],[1,"flex","flex-col","gap-y-4"],[1,"bg-neutral-white","p-6","flex","justify-between","gap-x-4","w-full","shadow-sidebar"],["cf-button","","size","medium","type","secondary",1,"w-full","justify-center",3,"click"],["cf-button","","size","medium","color","primary-1",1,"w-full","justify-center",3,"disabled","click"],[4,"ngIf"],[1,"pt-4"],[1,"flex","justify-center","items-center"],["size","medium",3,"checked","checkChange"],[1,"text-body-md","text-neutral-black","pt-4","uppercase"],[1,"text-body-md","text-neutral-black","pt-4"],[1,"text-primary-1-4","ml-2"],[1,"p-3","rounded-lg","bg-neutral-white","flex","gap-x-4","items-center"],[1,"flex-1","flex","flex-col","gap-y-3"],[1,"flex","justify-between"],[1,"w-[104px]","text-body-sm","text-neutral-gray-4"],[1,"flex-1","text-express-md","text-neutral-gray-6"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"Ch\u1ecdn h\xe0nh kh\xe1ch c\u1ea7n t\xe1ch"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.close()}),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5)(7,"table",6)(8,"thead")(9,"tr",7),e._UZ(10,"th",8),e.TgZ(11,"th",8),e._uU(12,"T\xean kh\xe1ch"),e.qZA(),e.TgZ(13,"th",8),e._uU(14,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(15,"th",8),e._uU(16,"Em b\xe9 \u0111i k\xe8m"),e.qZA()()(),e.TgZ(17,"tbody"),e.YNc(18,si,11,4,"ng-container",9),e.qZA()()(),e.TgZ(19,"div",10)(20,"span"),e._uU(21,"\u0110\u01b0\u1ee3c ch\u1ecdn t\u1ed1i \u0111a "),e.qZA(),e.TgZ(22,"span",11),e._uU(23),e.qZA(),e.YNc(24,ci,2,0,"span",12),e.qZA(),e.TgZ(25,"div",13)(26,"div",14),e._UZ(27,"cf-icon",15),e.TgZ(28,"div"),e._uU(29,"L\u01b0u \xfd:"),e.qZA()(),e.TgZ(30,"div",16)(31,"div"),e._uU(32," \u2022\xa0\xa0H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 kh\xf4i ph\u1ee5c l\u1ea1i, vui l\xf2ng ki\u1ec3m tra th\u1eadt k\u1ef9 tr\u01b0\u1edbc khi b\u1ea5m X\xe1c nh\u1eadn "),e.qZA(),e.TgZ(33,"div"),e._uU(34," \u2022\xa0\xa0S\u1ed1 ti\u1ec1n b\u1ea3o l\u01b0u (n\u1ebfu c\xf3) s\u1ebd \u0111\u01b0\u1ee3c t\xe1ch ra theo \u0111\xfang t\xean h\xe0nh kh\xe1ch s\u1edf h\u1eefu "),e.qZA()()()(),e.TgZ(35,"div",17)(36,"button",18),e.NdJ("click",function(){return i.close()}),e._uU(37," \u0110\xf3ng "),e.qZA(),e.TgZ(38,"button",19),e.NdJ("click",function(){return i.ok()}),e._UZ(39,"cf-icon",20),e._uU(40," X\xe1c nh\u1eadn "),e.qZA()()(),e.TgZ(41,"div",21)(42,"div",22)(43,"div",23),e.YNc(44,li,20,4,"ng-container",9),e.qZA(),e.TgZ(45,"div",10)(46,"span"),e._uU(47,"\u0110\u01b0\u1ee3c ch\u1ecdn t\u1ed1i \u0111a "),e.qZA(),e.TgZ(48,"span",11),e._uU(49),e.qZA(),e.YNc(50,di,2,0,"span",12),e.qZA(),e.TgZ(51,"div",13)(52,"div",14),e._UZ(53,"cf-icon",15),e.TgZ(54,"div"),e._uU(55,"L\u01b0u \xfd:"),e.qZA()(),e.TgZ(56,"div",16)(57,"div"),e._uU(58," \u2022\xa0\xa0H\xe0nh \u0111\u1ed9ng n\xe0y kh\xf4ng th\u1ec3 kh\xf4i ph\u1ee5c l\u1ea1i, vui l\xf2ng ki\u1ec3m tra th\u1eadt k\u1ef9 tr\u01b0\u1edbc khi b\u1ea5m X\xe1c nh\u1eadn "),e.qZA(),e.TgZ(59,"div"),e._uU(60," \u2022\xa0\xa0S\u1ed1 ti\u1ec1n b\u1ea3o l\u01b0u (n\u1ebfu c\xf3) s\u1ebd \u0111\u01b0\u1ee3c t\xe1ch ra theo \u0111\xfang t\xean h\xe0nh kh\xe1ch s\u1edf h\u1eefu "),e.qZA()()()(),e.TgZ(61,"div",24)(62,"button",25),e.NdJ("click",function(){return i.close()}),e._uU(63," \u0110\xf3ng "),e.qZA(),e.TgZ(64,"button",26),e.NdJ("click",function(){return i.ok()}),e._UZ(65,"cf-icon",20),e._uU(66," X\xe1c nh\u1eadn "),e.qZA()()(),e.YNc(67,pi,1,0,"cf-spinner",27)),2&t&&(e.xp6(18),e.Q6J("ngForOf",i.listPassengers),e.xp6(5),e.hij("",i.maxPax," ng\u01b0\u1eddi."),e.xp6(1),e.Q6J("ngIf",i.isFullPax),e.xp6(14),e.Q6J("disabled",i.isFullPax||i.isNonePax),e.xp6(6),e.Q6J("ngForOf",i.listPassengers),e.xp6(5),e.hij("",i.maxPax," ng\u01b0\u1eddi."),e.xp6(1),e.Q6J("ngIf",i.isFullPax),e.xp6(14),e.Q6J("disabled",i.isFullPax||i.isNonePax),e.xp6(3),e.Q6J("ngIf",i.isLoading))},dependencies:[f.ez,f.sg,f.O5,d.AxE,d.Sm8,h.N8,h.Xq,ai.u,a.DW,E.OR],encapsulation:2}),n})();var dt=_(74713),fi=_(34541),ce=_(44143),_i=_(3447),at=_(88516),ge=_(57085),ut=_(43201),pt=_(35650);function mi(n,o){1&n&&(e.TgZ(0,"div",21),e._uU(1,"Ch\u1ecdn h\xe0nh kh\xe1ch c\u1ea7n ch\u1ec9nh s\u1eeda"),e.qZA())}function hi(n,o){1&n&&(e.TgZ(0,"div",21),e._uU(1,"Ch\u1ec9nh s\u1eeda h\xe0nh kh\xe1ch"),e.qZA())}function xi(n,o){1&n&&(e.TgZ(0,"div",22)(1,"div",23)(2,"div",24),e._UZ(3,"cf-icon",25),e.TgZ(4,"div"),e._uU(5,"\u0110\u1ed1i v\u1edbi VietJet Air, ch\u1ec9 c\xf3 th\u1ec3 thao t\xe1c tr\xean m\u1ed9t kh\xe1ch m\u1ed7i l\u1ea7n ch\u1ec9nh s\u1eeda th\xf4ng tin"),e.qZA()()()())}function vi(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"tr")(2,"td",33)(3,"div",34)(4,"cf-radio",35),e.NdJ("checkChange",function(){const s=e.CHM(t).$implicit,x=e.oxw(2);return e.KtG(x.checkedChange(s))}),e.qZA()()(),e.TgZ(5,"td",36),e._uU(6),e.qZA(),e.TgZ(7,"td",37),e._uU(8),e.qZA()(),e.BQk()}if(2&n){const t=o.$implicit;e.xp6(4),e.Q6J("checked",t.selected),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(t.type)}}function Ci(n,o){if(1&n&&(e.TgZ(0,"div",26)(1,"div",27)(2,"table",28)(3,"thead",29)(4,"tr",30),e._UZ(5,"th",31),e.TgZ(6,"th",31),e._uU(7,"T\xean kh\xe1ch"),e.qZA(),e.TgZ(8,"th",31),e._uU(9,"Lo\u1ea1i kh\xe1ch"),e.qZA()()(),e.TgZ(10,"tbody"),e.YNc(11,vi,9,3,"ng-container",32),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(11),e.Q6J("ngForOf",t.listPassengers)}}function yi(n,o){1&n&&(e.TgZ(0,"div",38)(1,"div",23)(2,"div",24),e._UZ(3,"cf-icon",25),e.TgZ(4,"div"),e._uU(5,"\u0110\u1ed1i v\u1edbi VietJet Air, h\u1ecd t\xean ch\u1ec9 \u0111\u01b0\u1ee3c s\u1eeda t\u1ed1i \u0111a 2 k\xfd t\u1ef1 (bao g\u1ed3m kho\u1ea3ng tr\u1eafng) v\xe0 mi\u1ec5n ph\xed l\u1ea7n \u0111\u1ea7u. Vui l\xf2ng ki\u1ec3m tra k\u1ef9 tr\u01b0\u1edbc khi b\u1ea5m X\xe1c nh\u1eadn"),e.qZA()()()())}function Zi(n,o){1&n&&(e.TgZ(0,"div",39),e._uU(1," Th\xf4ng tin h\xe0nh kh\xe1ch "),e.qZA())}function Ei(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.gender)}}function bi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.lastName)}}function Di(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.firstName)}}function Ai(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.birthday)}}function Ti(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.DoBChild)}}function ki(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.DoBChildUnder)}}function Ui(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.DoBChildUpper)}}function qi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.DoBAdult)}}function Ii(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(2);e.Q6J("hint",t.errorMessage.DoBInfant)}}function Bi(n,o){1&n&&e._UZ(0,"cf-input-hint",54),2&n&&e.Q6J("hint","Ng\xe0y ph\u1ea3i theo \u0111\u1ecbnh d\u1ea1ng dd/MM/yyyy")}function wi(n,o){if(1&n&&(e.TgZ(0,"div",55)(1,"label",56),e._uU(2,"Thu\u1ed9c h\xe0nh kh\xe1ch ng\u01b0\u1eddi l\u1edbn"),e.qZA(),e.TgZ(3,"div",57)(4,"div"),e._uU(5),e.qZA(),e._UZ(6,"cf-icon",58),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("CfRequired",!0),e.xp6(4),e.hij(" ",t.selectedPax.parentName," ")}}function Ni(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"div",27)(3,"cf-select",42)(4,"label",43),e._uU(5,"Gi\u1edbi t\xednh"),e.qZA(),e.YNc(6,Ei,1,1,"cf-input-hint",44),e.qZA()(),e.TgZ(7,"div",27)(8,"cf-input-group",45)(9,"label",46)(10,"span",47),e._uU(11,"H\u1ecd"),e.qZA()(),e.TgZ(12,"input",48),e.NdJ("blur",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.onBlurInput(r,s.formGroup,"lastName"))}),e.qZA(),e.YNc(13,bi,1,1,"cf-input-hint",44),e.qZA()(),e.TgZ(14,"div",27)(15,"cf-input-group",45)(16,"label",46)(17,"span",47),e._uU(18,"T\xean \u0111\u1ec7m v\xe0 T\xean"),e.qZA()(),e.TgZ(19,"input",49),e.NdJ("blur",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.onBlurInput(r,s.formGroup,"firstName"))}),e.qZA(),e.YNc(20,Di,1,1,"cf-input-hint",44),e.qZA()(),e.TgZ(21,"div",27)(22,"cf-input-group",45),e._UZ(23,"cf-icon",50),e.TgZ(24,"label",46)(25,"span",47),e._uU(26,"Ng\xe0y sinh"),e.qZA(),e._uU(27,"\xa0 "),e.qZA(),e.TgZ(28,"input",51,52),e.NdJ("input",function(){e.CHM(t);const r=e.MAs(29);return e.KtG(r.close())})("dateSelect",function(){e.CHM(t);const r=e.MAs(29);return e.KtG(r.close())})("input",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.validateBirthday(r))}),e.qZA(),e.YNc(30,Ai,1,1,"cf-input-hint",44),e.YNc(31,Ti,1,1,"cf-input-hint",44),e.YNc(32,ki,1,1,"cf-input-hint",44),e.YNc(33,Ui,1,1,"cf-input-hint",44),e.YNc(34,qi,1,1,"cf-input-hint",44),e.YNc(35,Ii,1,1,"cf-input-hint",44),e.YNc(36,Bi,1,1,"cf-input-hint",44),e.qZA()(),e.YNc(37,wi,7,2,"div",53),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("status",t.formGroup.controls.gender.invalid&&(t.formGroup.controls.gender.dirty||t.formGroup.controls.gender.touched)?"error":"default")("data",t.optionsGender)("allowSearch",!1)("formControl",t.formGroup.controls.gender),e.xp6(1),e.Q6J("CfRequired",!0),e.xp6(2),e.Q6J("ngIf",t.formGroup.controls.gender.hasError("required")&&(t.formGroup.controls.gender.touched||t.formGroup.controls.gender.dirty)),e.xp6(2),e.Q6J("status",t.formGroup.controls.lastName.invalid&&(t.formGroup.controls.lastName.dirty||t.formGroup.controls.lastName.touched)?"error":"default")("status","default"),e.xp6(2),e.Q6J("CfRequired",!0),e.xp6(2),e.Q6J("formControl",t.formGroup.controls.lastName),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.lastName.hasError("required")&&(t.formGroup.controls.lastName.touched||t.formGroup.controls.lastName.dirty)),e.xp6(2),e.Q6J("status",t.formGroup.controls.firstName.invalid&&(t.formGroup.controls.firstName.dirty||t.formGroup.controls.firstName.touched)?"error":"default")("status","default"),e.xp6(2),e.Q6J("CfRequired",!0),e.xp6(2),e.Q6J("formControl",t.formGroup.controls.firstName),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.firstName.hasError("required")&&(t.formGroup.controls.firstName.touched||t.formGroup.controls.firstName.dirty)),e.xp6(2),e.Q6J("status",t.formGroup.controls.birthday.invalid&&(t.formGroup.controls.birthday.dirty||t.formGroup.controls.birthday.touched)?"error":"default")("status","default"),e.xp6(3),e.Q6J("CfRequired",!0),e.xp6(3),e.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",t.formGroup.controls.birthday),e.xp6(2),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("required")&&(t.formGroup.controls.birthday.touched||t.formGroup.controls.birthday.dirty)),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBChild")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBChildUnder")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBChildUpper")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBAdult")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBInfant")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",(null==t.formGroup.controls.birthday.errors||null==t.formGroup.controls.birthday.errors.ngbDate?null:t.formGroup.controls.birthday.errors.ngbDate.invalid)&&(t.formGroup.controls.birthday.dirty||t.formGroup.controls.birthday.touched)),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.parent.value)}}function Fi(n,o){1&n&&e._UZ(0,"cf-icon",59)}function Ji(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," Ti\u1ebfp t\u1ee5c "),e.qZA())}function Si(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," X\xe1c nh\u1eadn "),e.qZA())}function Oi(n,o){1&n&&e._UZ(0,"cf-icon",60)}function Qi(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",62)(2,"div")(3,"cf-radio",35),e.NdJ("checkChange",function(){const s=e.CHM(t).$implicit,x=e.oxw(2);return e.KtG(x.checkedChange(s))}),e.qZA()(),e.TgZ(4,"div",63)(5,"div",64)(6,"div",65),e._uU(7,"T\xean kh\xe1ch"),e.qZA(),e.TgZ(8,"div",66),e._uU(9),e.qZA()(),e.TgZ(10,"div",64)(11,"div",65),e._uU(12,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(13,"div",66),e._uU(14),e.qZA()()()(),e.BQk()}if(2&n){const t=o.$implicit;e.xp6(3),e.Q6J("checked",t.selected),e.xp6(6),e.Oqu(t.name),e.xp6(5),e.Oqu(t.type)}}function ji(n,o){if(1&n&&(e.TgZ(0,"div",61)(1,"div",23)(2,"div",24),e._UZ(3,"cf-icon",25),e.TgZ(4,"div"),e._uU(5,"\u0110\u1ed1i v\u1edbi VietJet Air, ch\u1ec9 c\xf3 th\u1ec3 thao t\xe1c tr\xean m\u1ed9t kh\xe1ch m\u1ed7i l\u1ea7n ch\u1ec9nh s\u1eeda th\xf4ng tin"),e.qZA()()(),e.TgZ(6,"div",40),e.YNc(7,Qi,15,3,"ng-container",32),e.qZA()()),2&n){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.listPassengers)}}function Mi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.gender)}}function Pi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.lastName)}}function Yi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.firstName)}}function Li(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.birthday)}}function Hi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.DoBChild)}}function Ri(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.DoBChildUnder)}}function Gi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.DoBChildUpper)}}function zi(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.DoBAdult)}}function $i(n,o){if(1&n&&e._UZ(0,"cf-input-hint",54),2&n){const t=e.oxw(3);e.Q6J("hint",t.errorMessage.DoBInfant)}}function Vi(n,o){if(1&n&&(e.TgZ(0,"div",55)(1,"label",56),e._uU(2,"Thu\u1ed9c h\xe0nh kh\xe1ch ng\u01b0\u1eddi l\u1edbn"),e.qZA(),e.TgZ(3,"div",57)(4,"div"),e._uU(5),e.qZA(),e._UZ(6,"cf-icon",58),e.qZA()()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("CfRequired",!0),e.xp6(4),e.hij(" ",t.selectedPax.parentName," ")}}function Ki(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"div",27)(3,"cf-select",42)(4,"label",43),e._uU(5,"Gi\u1edbi t\xednh"),e.qZA(),e.YNc(6,Mi,1,1,"cf-input-hint",44),e.qZA()(),e.TgZ(7,"div",27)(8,"cf-input-group",45)(9,"label",46)(10,"span",47),e._uU(11,"H\u1ecd"),e.qZA()(),e.TgZ(12,"input",48),e.NdJ("blur",function(r){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onBlurInput(r,s.formGroup,"lastName"))}),e.qZA(),e.YNc(13,Pi,1,1,"cf-input-hint",44),e.qZA()(),e.TgZ(14,"div",27)(15,"cf-input-group",45)(16,"label",46)(17,"span",47),e._uU(18,"T\xean \u0111\u1ec7m v\xe0 T\xean"),e.qZA()(),e.TgZ(19,"input",49),e.NdJ("blur",function(r){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onBlurInput(r,s.formGroup,"firstName"))}),e.qZA(),e.YNc(20,Yi,1,1,"cf-input-hint",44),e.qZA()(),e.TgZ(21,"div",27)(22,"cf-input-group",45),e._UZ(23,"cf-icon",50),e.TgZ(24,"label",46)(25,"span",47),e._uU(26,"Ng\xe0y sinh"),e.qZA(),e._uU(27,"\xa0 "),e.qZA(),e.TgZ(28,"input",51,52),e.NdJ("input",function(){e.CHM(t);const r=e.MAs(29);return e.KtG(r.close())})("dateSelect",function(){e.CHM(t);const r=e.MAs(29);return e.KtG(r.close())})("input",function(r){e.CHM(t);const s=e.oxw(2);return e.KtG(s.validateBirthday(r))}),e.qZA(),e.YNc(30,Li,1,1,"cf-input-hint",44),e.YNc(31,Hi,1,1,"cf-input-hint",44),e.YNc(32,Ri,1,1,"cf-input-hint",44),e.YNc(33,Gi,1,1,"cf-input-hint",44),e.YNc(34,zi,1,1,"cf-input-hint",44),e.YNc(35,$i,1,1,"cf-input-hint",44),e.qZA()(),e.YNc(36,Vi,7,2,"div",53),e.qZA()()}if(2&n){const t=e.oxw(2);e.xp6(3),e.Q6J("status",t.formGroup.controls.gender.invalid&&(t.formGroup.controls.gender.dirty||t.formGroup.controls.gender.touched)?"error":"default")("data",t.optionsGender)("allowSearch",!1)("formControl",t.formGroup.controls.gender),e.xp6(1),e.Q6J("CfRequired",!0),e.xp6(2),e.Q6J("ngIf",t.formGroup.controls.gender.hasError("required")&&(t.formGroup.controls.gender.touched||t.formGroup.controls.gender.dirty)),e.xp6(2),e.Q6J("status",t.formGroup.controls.lastName.invalid&&(t.formGroup.controls.lastName.dirty||t.formGroup.controls.lastName.touched)?"error":"default")("status","default"),e.xp6(2),e.Q6J("CfRequired",!0),e.xp6(2),e.Q6J("formControl",t.formGroup.controls.lastName),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.lastName.hasError("required")&&(t.formGroup.controls.lastName.touched||t.formGroup.controls.lastName.dirty)),e.xp6(2),e.Q6J("status",t.formGroup.controls.firstName.invalid&&(t.formGroup.controls.firstName.dirty||t.formGroup.controls.firstName.touched)?"error":"default")("status","default"),e.xp6(2),e.Q6J("CfRequired",!0),e.xp6(2),e.Q6J("formControl",t.formGroup.controls.firstName),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.firstName.hasError("required")&&(t.formGroup.controls.firstName.touched||t.formGroup.controls.firstName.dirty)),e.xp6(2),e.Q6J("status",t.formGroup.controls.birthday.invalid&&(t.formGroup.controls.birthday.dirty||t.formGroup.controls.birthday.touched)?"error":"default")("status","default"),e.xp6(3),e.Q6J("CfRequired",!0),e.xp6(3),e.Q6J("secondaryCalendar","lunar")("displayMonths",1)("formControl",t.formGroup.controls.birthday),e.xp6(2),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("required")&&(t.formGroup.controls.birthday.touched||t.formGroup.controls.birthday.dirty)),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBChild")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBChildUnder")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBChildUpper")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBAdult")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.birthday.hasError("DoBInfant")&&t.formGroup.controls.birthday.touched),e.xp6(1),e.Q6J("ngIf",t.formGroup.controls.parent.value)}}function Xi(n,o){if(1&n&&(e.TgZ(0,"div",67)(1,"div",23)(2,"div",24),e._UZ(3,"cf-icon",25),e.TgZ(4,"div"),e._uU(5,"\u0110\u1ed1i v\u1edbi VietJet Air, h\u1ecd t\xean ch\u1ec9 \u0111\u01b0\u1ee3c s\u1eeda t\u1ed1i \u0111a 2 k\xfd t\u1ef1 (bao g\u1ed3m kho\u1ea3ng tr\u1eafng) v\xe0 mi\u1ec5n ph\xed l\u1ea7n \u0111\u1ea7u. Vui l\xf2ng ki\u1ec3m tra k\u1ef9 tr\u01b0\u1edbc khi b\u1ea5m X\xe1c nh\u1eadn"),e.qZA()()(),e.TgZ(6,"div",68),e.YNc(7,Ki,37,29,"div",9),e.qZA()()),2&n){const t=e.oxw();e.xp6(7),e.Q6J("ngIf","PAX_EDIT"==t.screenState)}}function Wi(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," Ti\u1ebfp t\u1ee5c "),e.qZA())}function eo(n,o){1&n&&e._UZ(0,"cf-icon",69)}function to(n,o){1&n&&e._UZ(0,"cf-icon",59)}function no(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," X\xe1c nh\u1eadn "),e.qZA())}function io(n,o){1&n&&e._UZ(0,"cf-icon",60)}let oo=(()=>{class n{constructor(t,i,r,s,x,v,T,U){var B;this._modal=i,this.ref=r,this.bottomSheetData=s,this.bottomSheetRef=x,this._bottomSheetService=v,this._manageBookingService=T,this.fb=U,this.screenState="PAX_SELECT",this.optionsGender=[{name:"Nam",code:"MALE"},{name:"N\u1eef",code:"FEMALE"}],this.optionsParent=[],this.errorMessage={lastName:"H\u1ecd kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",firstName:"T\xean \u0111\u1ec7m v\xe0 T\xean kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",birthday:"Ng\xe0y sinh kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",DoBChild:"Ng\xe0y sinh kh\xf4ng h\u1ee3p l\u1ec7",DoBChildUnder:"Ng\xe0y sinh ph\u1ea3i t\u1eeb ng\xe0y {0} tr\u1edf v\u1ec1 tr\u01b0\u1edbc",DoBChildUpper:"Ng\xe0y sinh ph\u1ea3i t\u1eeb ng\xe0y {0} tr\u1edf v\u1ec1 sau",DoBInfant:"Ng\xe0y sinh ph\u1ea3i t\u1eeb ng\xe0y {0}",gender:"Gi\u1edbi t\xednh kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",email:"Email kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",emailFormat:"\u0110\u1ecbnh d\u1ea1ng kh\xf4ng h\u1ee3p l\u1ec7",phone:"Sdt kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",phoneBlacklisted:"Vui l\xf2ng nh\u1eadp sdt kh\xe1ch h\xe0ng, kh\xf4ng nh\u1eadp sdt c\u1ee7a \u0111\u1ea1i l\xfd",parentIndex:"Ng\u01b0\u1eddi l\u1edbn \u0111i k\xe8m kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",areaCode:"M\xe3 v\xf9ng kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",minlengthPhone:"\u0110i\u1ec7n tho\u1ea1i di \u0111\u1ed9ng t\u1ed1i thi\u1ec3u 7 s\u1ed1",maxlengthPhone:"\u0110i\u1ec7n tho\u1ea1i di \u0111\u1ed9ng t\u1ed1i \u0111a 11 s\u1ed1",agentId:"\u0110\u1ea1i l\xfd kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng",ParentInfantDupplicate:"M\u1ed7i ng\u01b0\u1eddi l\u1edbn ch\u1ec9 c\xf3 t\u1ed1i \u0111a 1 em b\xe9 ph\u1ee5 thu\u1ed9c",DoBAdult:"Ng\u01b0\u1eddi l\u1edbn ph\u1ea3i l\u1edbn h\u01a1n 12 tu\u1ed5i"},this.isLoadingNextButton=!1,t.registerIcons([d.UNF,d.gW0,d.PcQ,d.$S]),r&&(this.listPassengers=r.data.listPassengers,this.bookingDetail=r.data.bookingDetail),s&&(this.listPassengers=s.listPassengers,this.bookingDetail=s.bookingDetail);let H=pe(this.bookingDetail.journeys[0].startTime).toDate().getTime(),Q=(0,ut.Z)(H,-2);Q=(0,pt.Z)(Q,-1),pe(null===(B=this.bookingDetail.journeys[0].startTime)||void 0===B?void 0:B.getTime()).toDate();let Vo=(0,ut.Z)(H,-11),st=(0,ut.Z)(H,-2);st=(0,pt.Z)(st,1),this.errorMessage.DoBChildUnder=this.errorMessage.DoBChildUnder.replace("{0}",(0,f.p6)(Q,"dd/MM/yyyy","vi-VN")),this.errorMessage.DoBChildUpper=this.errorMessage.DoBChildUpper.replace("{0}",(0,f.p6)(Vo,"dd/MM/yyyy","vi-VN")),this.errorMessage.DoBInfant=this.errorMessage.DoBInfant.replace("{0}",(0,f.p6)(st,"dd/MM/yyyy","vi-VN"))}ngOnInit(){let t=this.listPassengers.filter(i=>i.selected)[0];t&&(this.selectedPax=t),t.parentName&&t.parentKey&&(this.optionsParent=[{name:t.parentName,code:t.parentKey}])}close(){this.ref&&this.ref.close(!1),this.bottomSheetRef&&this.bottomSheetRef.dismiss(!1)}validateBirthday(t){console.log(t.target.value),""==t.target.value&&this.formGroup.controls.birthday.setErrors({required:!0})}ok(){var t,i,r;if("PAX_SELECT"==this.screenState)switch(this.screenState="PAX_EDIT",this.selectedPax.type){case"ADT":this.formGroup=this.fb.group({firstName:[this.selectedPax.firstName,[g.kI.required]],lastName:[this.selectedPax.lastName,[g.kI.required]],gender:[this.selectedPax.gender,[g.kI.required]],birthday:[new Date(this.selectedPax.dayOfBirth),[g.kI.required]],parent:[this.selectedPax.parentKey]},{validator:[(0,ge.Ab)("birthday"),(0,ge.fJ)("birthday",null===(t=this.bookingDetail.journeys[0].startTime)||void 0===t?void 0:t.getTime())]});break;case"CHD":this.formGroup=this.fb.group({firstName:[this.selectedPax.firstName,[g.kI.required]],lastName:[this.selectedPax.lastName,[g.kI.required]],gender:[this.selectedPax.gender,[g.kI.required]],birthday:[new Date(this.selectedPax.dayOfBirth)],parent:[this.selectedPax.parentKey]},{validator:(0,ge.$K)("birthday",null===(i=this.bookingDetail.journeys[0].startTime)||void 0===i?void 0:i.getTime())});break;case"INF":this.formGroup=this.fb.group({firstName:[this.selectedPax.firstName,[g.kI.required]],lastName:[this.selectedPax.lastName,[g.kI.required]],gender:[this.selectedPax.gender,[g.kI.required]],birthday:[new Date(this.selectedPax.dayOfBirth)],parent:[this.selectedPax.parentKey]},{validator:(0,ge.DW)("birthday",null===(r=this.bookingDetail.journeys[0].startTime)||void 0===r?void 0:r.getTime())})}else if("PAX_EDIT"==this.screenState){let s="";switch(this.selectedPax.type){case"ADT":s="ADULT";break;case"CHD":s="CHILD";break;case"INF":s="INFANT"}let x={bookingCode:this.bookingDetail.bookingCode,airline:this.bookingDetail.airline,updatePassengerInfo:{birthDay:pe(this.formGroup.value.birthday).format("YYYY-MM-DD"),firstName:this.formGroup.value.firstName,gender:this.formGroup.value.gender,key:this.selectedPax.key,lastName:this.formGroup.value.lastName,parentKey:this.formGroup.value.parent,type:s}};this.isLoadingNextButton=!0,this._manageBookingService.updatePaxInfo(x).subscribe({next:v=>{this.isLoadingNextButton=!1,"FAILED"==v.status?(this.ref&&this.ref.close({type:"FAILED",data:v.objectError}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"FAILED",data:v.objectError})):(this.ref&&this.ref.close({type:"OK",data:""}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"OK",data:""}))},error:v=>{this.isLoadingNextButton=!1}})}}onBlurInput(t,i,r){var s;const x=this.unicodeAndUppercase(t.target.value);null===(s=i.get(r))||void 0===s||s.setValue(x)}unicodeAndUppercase(t){return t=t.replace(/ +(?= )/g,""),(0,_i.E)(t.trim()).toUpperCase()}checkedChange(t){t.selected=!0,t.parentName&&t.parentKey&&(this.optionsParent=[{name:t.parentName,code:t.parentKey}]),this.selectedPax=t,this.listPassengers.filter(i=>i.key!=t.key).forEach(i=>i.selected=!1)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.KNP),e.Y36(j.oE),e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(a.a2),e.Y36(Ce.fB),e.Y36(g.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-update-pax-info"]],standalone:!0,features:[e.jDz],decls:31,vars:20,consts:[[1,"w-[748px]","max-h-[600px]","overflow-hidden","rounded-lg","bg-neutral-white","flex","flex-col","md:hidden"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],["class","text-heading-xs text-neutral-black",4,"ngIf"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],["class","flex px-6 pt-6 mb-6 w-full",4,"ngIf"],["class","px-6 flex flex-col gap-y-6 flex-1 overflow-auto",4,"ngIf"],["class","flex px-6 pt-6 w-full",4,"ngIf"],[1,"flex","flex-col","p-6"],["class","mb-4 text-heading-xs text-black md:hidden",4,"ngIf"],["class","flex flex-col gap-y-4",4,"ngIf"],[1,"p-6","flex","gap-x-4","justify-end"],["cf-button","","size","medium","type","secondary",1,"min-w-[100px]","justify-center",3,"click"],["cf-button","","size","medium","color","primary-1",1,"min-w-[100px]","justify-center",3,"disabled","click"],["class","mr-2.5","icon","circle_check","size","small",4,"ngIf"],[4,"ngIf"],["class","text-neutral-white ml-2.5 animate-spin","icon","refresh","size","small",4,"ngIf"],[1,"hidden","h-full","md:flex","flex-col","justify-between","overflow-hidden","w-screen"],["class","flex-1 bg-neutral-gray-1 p-4 flex flex-col gap-y-4 w-full h-full overflow-y-auto",4,"ngIf"],["class","hidden md:flex p-4 bg-neutral-gray-1 h-full flex-col space-y-4",4,"ngIf"],[1,"px-6","py-4","flex","gap-x-4","justify-end"],["class","ml-2.5","icon","chevron_right","size","small",4,"ngIf"],[1,"text-heading-xs","text-neutral-black"],[1,"flex","px-6","pt-6","mb-6","w-full"],[1,"px-3","py-1.5","bg-functional-1-1","rounded","w-full"],[1,"text-body-md-short","flex","items-center","gap-x-2"],["icon","info","size","small",1,"text-functional-1-3"],[1,"px-6","flex","flex-col","gap-y-6","flex-1","overflow-auto"],[1,""],[1,"table-auto","w-full"],[1,"sticky","top-0","bg-white"],[1,"border-b","border-neutral-gray-1"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","pb-3"],[4,"ngFor","ngForOf"],[1,"pt-4"],[1,"flex","justify-center","items-center"],["size","medium",3,"checked","checkChange"],[1,"text-body-md","text-neutral-black","pt-4","uppercase"],[1,"text-body-md","text-neutral-black","pt-4"],[1,"flex","px-6","pt-6","w-full"],[1,"mb-4","text-heading-xs","text-black","md:hidden"],[1,"flex","flex-col","gap-y-4"],[1,"grid","grid-cols-3","gap-4","md:grid-cols-1"],["textField","name","valueField","code","placeholder","Ch\u1ecdn gi\u1edbi t\xednh",1,"md:w-full","md:max-w-none",3,"status","data","allowSearch","formControl"],["cfLabel","",1,"text-espressive-sm","text-black","mb-1.5",3,"CfRequired"],["cfHint","",3,"hint",4,"ngIf"],[1,"grow-[400]","!w-full",3,"status"],["cfLabel","",1,"text-espressive-sm","text-black","mb-1.5"],[3,"CfRequired"],["cf-input","","size","medium","autocomplete","off","placeholder","Nh\u1eadp h\u1ecd",3,"formControl","blur"],["cf-input","","size","medium","autocomplete","off","placeholder","Nh\u1eadp t\xean \u0111\u1ec7m v\xe0 t\xean",3,"formControl","blur"],["cfHeadIcon","","icon","calendar","size","small"],["autocomplete","off","cfDatepicker","","type","text","size","medium","cf-input","","placeholder","Nh\u1eadp ng\xe0y sinh",1,"py-[7px]",3,"secondaryCalendar","displayMonths","formControl","input","dateSelect"],["dateFrom","cfDatepicker"],["class","flex flex-col w-full",4,"ngIf"],["cfHint","",3,"hint"],[1,"flex","flex-col","w-full"],["cfLabel","",1,"text-espressive-sm","text-black","mb-1.5","mt-1",3,"CfRequired"],[1,"flex","py-2","px-3","rounded","border","border-neutral-gray-2","bg-neutral-gray-1","text-body-md","justify-between","items-center"],["icon","down"],["icon","circle_check","size","small",1,"mr-2.5"],["icon","refresh","size","small",1,"text-neutral-white","ml-2.5","animate-spin"],[1,"flex-1","bg-neutral-gray-1","p-4","flex","flex-col","gap-y-4","w-full","h-full","overflow-y-auto"],[1,"p-3","rounded-lg","bg-neutral-white","flex","gap-x-4","items-center"],[1,"flex-1","flex","flex-col","gap-y-3"],[1,"flex","justify-between"],[1,"w-[104px]","text-body-sm","text-neutral-gray-4"],[1,"flex-1","text-express-md","text-neutral-gray-6"],[1,"hidden","md:flex","p-4","bg-neutral-gray-1","h-full","flex-col","space-y-4"],[1,"flex","flex-col","p-4","w-full","bg-white","h-fit","rounded-lg"],["icon","chevron_right","size","small",1,"ml-2.5"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,mi,2,0,"div",2),e.YNc(3,hi,2,0,"div",2),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.close()}),e.qZA()(),e.YNc(5,xi,6,0,"div",4),e.YNc(6,Ci,12,1,"div",5),e.YNc(7,yi,6,0,"div",6),e.TgZ(8,"div",7),e.YNc(9,Zi,2,0,"div",8),e.YNc(10,Ni,38,30,"div",9),e.qZA(),e.TgZ(11,"div",10)(12,"button",11),e.NdJ("click",function(){return i.close()}),e._uU(13," \u0110\xf3ng "),e.qZA(),e.TgZ(14,"button",12),e.NdJ("click",function(){return i.ok()}),e.YNc(15,Fi,1,0,"cf-icon",13),e.YNc(16,Ji,2,0,"span",14),e.YNc(17,Si,2,0,"span",14),e.YNc(18,Oi,1,0,"cf-icon",15),e.qZA()()(),e.TgZ(19,"div",16),e.YNc(20,ji,8,1,"div",17),e.YNc(21,Xi,8,1,"div",18),e.TgZ(22,"div",19)(23,"button",11),e.NdJ("click",function(){return i.close()}),e._uU(24," \u0110\xf3ng "),e.qZA(),e.TgZ(25,"button",12),e.NdJ("click",function(){return i.ok()}),e.YNc(26,Wi,2,0,"span",14),e.YNc(27,eo,1,0,"cf-icon",20),e.YNc(28,to,1,0,"cf-icon",13),e.YNc(29,no,2,0,"span",14),e.YNc(30,io,1,0,"cf-icon",15),e.qZA()()()),2&t&&(e.xp6(2),e.Q6J("ngIf","PAX_SELECT"==i.screenState),e.xp6(1),e.Q6J("ngIf","PAX_EDIT"==i.screenState),e.xp6(2),e.Q6J("ngIf","PAX_SELECT"==i.screenState),e.xp6(1),e.Q6J("ngIf","PAX_SELECT"==i.screenState),e.xp6(1),e.Q6J("ngIf","PAX_EDIT"==i.screenState),e.xp6(2),e.Q6J("ngIf","PAX_EDIT"==i.screenState),e.xp6(1),e.Q6J("ngIf","PAX_EDIT"==i.screenState),e.xp6(4),e.Q6J("disabled",i.isLoadingNextButton||"PAX_EDIT"==i.screenState&&i.formGroup.invalid),e.xp6(1),e.Q6J("ngIf",!i.isLoadingNextButton),e.xp6(1),e.Q6J("ngIf","PAX_SELECT"==i.screenState),e.xp6(1),e.Q6J("ngIf","PAX_EDIT"==i.screenState),e.xp6(1),e.Q6J("ngIf",i.isLoadingNextButton),e.xp6(2),e.Q6J("ngIf","PAX_SELECT"==i.screenState),e.xp6(1),e.Q6J("ngIf","PAX_EDIT"==i.screenState),e.xp6(4),e.Q6J("disabled",i.isLoadingNextButton||"PAX_EDIT"==i.screenState&&i.formGroup.invalid),e.xp6(1),e.Q6J("ngIf","PAX_SELECT"==i.screenState),e.xp6(1),e.Q6J("ngIf","PAX_SELECT"==i.screenState&&!i.isLoadingNextButton),e.xp6(1),e.Q6J("ngIf","PAX_EDIT"==i.screenState&&!i.isLoadingNextButton),e.xp6(1),e.Q6J("ngIf","PAX_EDIT"==i.screenState),e.xp6(1),e.Q6J("ngIf",i.isLoadingNextButton))},dependencies:[f.ez,f.sg,f.O5,d.AxE,d.Sm8,h.N8,h.Xq,p.o,a.DW,dt.q,g.u5,g.Fj,g.JJ,g.UX,g.oH,fi.C,ce.j$,ce.ND,ce.BN,ce.v2,at.Cs],encapsulation:2}),n})();function ro(n,o){if(1&n&&(e.TgZ(0,"tr")(1,"td",20),e._uU(2),e.qZA(),e.TgZ(3,"td",20),e._uU(4),e.qZA(),e.TgZ(5,"td",20),e._uU(6),e.qZA(),e.TgZ(7,"td",20),e._uU(8),e.qZA(),e.TgZ(9,"td",20),e._uU(10),e.qZA(),e.TgZ(11,"td",20),e._uU(12),e.qZA()()),2&n){const t=o.$implicit;e.xp6(2),e.Oqu(t.dateTime),e.xp6(2),e.Oqu(t.reservation),e.xp6(2),e.Oqu(t.user),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(t.oldValue),e.xp6(2),e.Oqu(t.newValue)}}function ao(n,o){if(1&n&&(e.TgZ(0,"div",21)(1,"div",22)(2,"div",23),e._uU(3,"Th\u1eddi gian"),e.qZA(),e.TgZ(4,"div",24),e._uU(5),e.qZA()(),e.TgZ(6,"div",22)(7,"div",23),e._uU(8,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(9,"div",24),e._uU(10),e.qZA()(),e.TgZ(11,"div",22)(12,"div",23),e._uU(13,"T\xe0i kho\u1ea3n"),e.qZA(),e.TgZ(14,"div",24),e._uU(15),e.qZA()(),e.TgZ(16,"div",22)(17,"div",23),e._uU(18,"M\xf4 t\u1ea3"),e.qZA(),e.TgZ(19,"div",24),e._uU(20),e.qZA()(),e.TgZ(21,"div",22)(22,"div",23),e._uU(23,"Gi\xe1 tr\u1ecb c\u0169"),e.qZA(),e.TgZ(24,"div",24),e._uU(25),e.qZA()(),e.TgZ(26,"div",22)(27,"div",23),e._uU(28,"Gi\xe1 tr\u1ecb m\u1edbi"),e.qZA(),e.TgZ(29,"div",24),e._uU(30),e.qZA()()()),2&n){const t=o.$implicit;e.xp6(5),e.Oqu(t.dateTime),e.xp6(5),e.Oqu(t.reservation),e.xp6(5),e.Oqu(t.user),e.xp6(5),e.Oqu(t.description),e.xp6(5),e.Oqu(t.oldValue),e.xp6(5),e.Oqu(t.newValue)}}let uo=(()=>{class n{constructor(t,i,r,s,x,v,T,U,B,H){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,this._modal=x,this._locationDataService=v,this._mobileDetectService=T,this._bottomSheetService=U,this._bookingDetailService=B,this._detectMobileService=H,this.auditLogs=[],s.registerIcons([d.UNF,d.Hge,d.fXw,d.s5C,d.NNX,d.toh,d.$S]),t&&(this.auditLogs=t.data.auditLogs,this.pnr=t.data.pnr),i&&(this.auditLogs=i.auditLogs,this.pnr=i.pnr)}ngOnInit(){}onClose(){this.ref&&this.ref.close({type:"CANCLE"}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"CANCLE"})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP),e.Y36(j.oE),e.Y36(_e._),e.Y36(oe.L),e.Y36(a.a2),e.Y36(Ze.P3),e.Y36(oe.L))},n.\u0275cmp=e.Xpm({type:n,selectors:[["audit-log"]],standalone:!0,features:[e.jDz],decls:40,vars:4,consts:[[1,"w-[1000px]","min-h-[250px]","max-h-[600px]","overflow-hidden","flex","flex-col","rounded-lg","bg-neutral-white","md:w-screen","md:bg-neutral-gray-1","md:max-h-none","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-sm","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"overflow-auto","md:flex","md:flex-col","md:justify-between","md:h-full"],[1,"bg-white","rounded","md:p-0","md:bg-transparent","md:overflow-y-auto"],[1,"px-6","py-4","space-y-6","md:hidden"],[1,"flex","flex-col","space-y-2"],[1,"text-heading-sm"],[1,"text-body-sm","text-neutral-gray-4"],[1,"w-full","h-[340px]","block","overflow-y-scroll"],[1,"border-b","border-b-neutral-gray-1","sticky","top-0","bg-white"],[1,"p-3","text-express-sm","text-neutral-gray-4","text-left"],[4,"ngFor","ngForOf"],[1,"hidden","p-4","md:flex","md:flex-col","space-y-4","bg-white"],[1,"hidden","p-4","md:flex","md:flex-col","space-y-4"],["class","flex flex-col rounded-lg bg-neutral-white p-3 gap-y-2 ng-star-inserted",4,"ngFor","ngForOf"],[1,"flex","justify-end","gap-x-4","py-8","px-6","md:p-4","md:bg-neutral-white"],[1,"flex","items-end","space-x-2","whitespace-nowrap"],["cf-button","","type","secondary","size","medium",1,"md:w-full","md:justify-center",3,"click"],[1,"text-body-md-short","text-neutral-gray-6","p-3","align-top"],[1,"flex","flex-col","rounded-lg","bg-neutral-white","p-3","gap-y-2","ng-star-inserted"],[1,"flex","gap-x-5"],[1,"text-body-sm","text-neutral-gray-4","w-[104px]","shrink-0"],[1,"text-espressive-md","text-neutral-gray-6"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"Ki\u1ec3m to\xe1n \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.onClose()}),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8),e._uU(10),e.qZA(),e.TgZ(11,"div",9),e._uU(12,"T\u1ea5t c\u1ea3 t\xednh theo gi\u1edd \u0111\u1ecba ph\u01b0\u01a1ng"),e.qZA()(),e.TgZ(13,"table",10)(14,"tr",11)(15,"th",12),e._uU(16,"Th\u1eddi gian"),e.qZA(),e.TgZ(17,"th",12),e._uU(18,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(19,"th",12),e._uU(20,"T\xe0i kho\u1ea3n"),e.qZA(),e.TgZ(21,"th",12),e._uU(22,"M\xf4 t\u1ea3"),e.qZA(),e.TgZ(23,"th",12),e._uU(24,"Gi\xe1 tr\u1ecb c\u0169"),e.qZA(),e.TgZ(25,"th",12),e._uU(26,"Gi\xe1 tr\u1ecb m\u1edbi"),e.qZA()(),e.YNc(27,ro,13,6,"tr",13),e.qZA()(),e.TgZ(28,"div",14)(29,"div",7)(30,"div",8),e._uU(31),e.qZA(),e.TgZ(32,"div",9),e._uU(33,"T\u1ea5t c\u1ea3 t\xednh theo gi\u1edd \u0111\u1ecba ph\u01b0\u01a1ng"),e.qZA()()(),e.TgZ(34,"div",15),e.YNc(35,ao,31,6,"div",16),e.qZA()(),e.TgZ(36,"div",17)(37,"div",18)(38,"button",19),e.NdJ("click",function(){return i.onClose()}),e._uU(39," \u0110\xf3ng "),e.qZA()()()()()),2&t&&(e.xp6(10),e.hij("M\xe3 s\u1ed1 \u0111\u1eb7t ch\u1ed7: ",i.pnr,""),e.xp6(17),e.Q6J("ngForOf",i.auditLogs),e.xp6(4),e.hij("M\xe3 s\u1ed1 \u0111\u1eb7t ch\u1ed7: ",i.pnr,""),e.xp6(4),e.Q6J("ngForOf",i.auditLogs))},dependencies:[f.ez,f.sg,d.AxE,d.Sm8,a.DW,h.N8,h.Xq],encapsulation:2}),n})();var so=_(86938);function co(n,o){1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"span"),e._uU(1,"Flychills d\u1ecbch"),e.qZA())}function lo(n,o){1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"span"),e._uU(1,"Hi\u1ec7n n\u1ed9i dung g\u1ed1c"),e.qZA())}function po(n,o){1&n&&(e.O4$(),e.kcU(),e._UZ(0,"cf-icon",27))}function go(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.translate())}),e.O4$(),e.TgZ(1,"svg",12)(2,"g",13),e._UZ(3,"path",14)(4,"path",15)(5,"path",16)(6,"path",17)(7,"path",18)(8,"path",19)(9,"path",20)(10,"path",21)(11,"path",22),e.qZA(),e.TgZ(12,"defs")(13,"clipPath",23),e._UZ(14,"rect",24),e.qZA()()(),e.YNc(15,co,2,0,"span",25),e.YNc(16,lo,2,0,"span",25),e.YNc(17,po,1,0,"cf-icon",26),e.qZA()}if(2&n){const t=e.oxw();e.Q6J("type","border")("disabled",t.translateLoading),e.xp6(15),e.Q6J("ngIf","ORIGIN"==t.translateMode),e.xp6(1),e.Q6J("ngIf","VI"==t.translateMode),e.xp6(1),e.Q6J("ngIf",t.translateLoading)}}function fo(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cf-icon",37),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(3);return e.KtG(s.onChange(r))}),e.qZA()}}function _o(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cf-icon",38),e.NdJ("click",function(){e.CHM(t);const r=e.oxw().$implicit,s=e.oxw(3);return e.KtG(s.onChange(r))}),e.qZA()}}function mo(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.header)}}function ho(n,o){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.headerVi)}}function xo(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",39),e._uU(2),e.qZA(),e.BQk()),2&n){const t=o.$implicit;e.xp6(2),e.hij(" ",t," ")}}function vo(n,o){if(1&n&&(e.ynx(0),e.YNc(1,xo,3,1,"ng-container",33),e.BQk()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",t.details)}}function Co(n,o){1&n&&e._UZ(0,"div",42)}function yo(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Co,1,0,"div",40),e.TgZ(2,"pre",41),e._uU(3),e.qZA(),e.BQk()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf",t.isLoading),e.xp6(2),e.Oqu(t.detailsVI)}}function Zo(n,o){if(1&n&&(e.ynx(0),e.YNc(1,vo,2,1,"ng-container",25),e.YNc(2,yo,4,2,"ng-container",25),e.BQk()),2&n){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf","ORIGIN"==t.translateMode),e.xp6(1),e.Q6J("ngIf","VI"==t.translateMode)}}function Eo(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",34),e.YNc(2,fo,1,0,"cf-icon",35),e.YNc(3,_o,1,0,"cf-icon",36),e.YNc(4,mo,2,1,"span",25),e.YNc(5,ho,2,1,"span",25),e.qZA(),e.YNc(6,Zo,3,2,"ng-container",25),e.BQk()),2&n){const t=o.$implicit,i=e.oxw(3);e.xp6(2),e.Q6J("ngIf",!t.isShowDetail),e.xp6(1),e.Q6J("ngIf",t.isShowDetail),e.xp6(1),e.Q6J("ngIf","ORIGIN"==i.translateMode),e.xp6(1),e.Q6J("ngIf","VI"==i.translateMode),e.xp6(1),e.Q6J("ngIf",t.isShowDetail)}}function bo(n,o){if(1&n&&(e.TgZ(0,"div",28)(1,"div",30)(2,"div",31),e._uU(3),e.qZA()(),e.TgZ(4,"div",32),e.YNc(5,Eo,7,5,"ng-container",33),e.qZA()()),2&n){const t=o.$implicit;e.xp6(3),e.HOy(" ",t.departure," ",t.arrival," ",t.qualifier," Fare Basis ",t.fareBasic," "),e.xp6(2),e.Q6J("ngForOf",t.rules)}}function Do(n,o){if(1&n&&(e.TgZ(0,"div",28),e.YNc(1,bo,6,5,"div",29),e.qZA()),2&n){const t=e.oxw();e.ekj("-mt-[38px]",t.isPermissionTranslate),e.xp6(1),e.Q6J("ngForOf",t.fareRuleBspDisplay)}}function Ao(n,o){1&n&&(e.TgZ(0,"div",43),e._uU(1,"Li\xean h\u1ec7 booker \u0111\u1ec3 bi\u1ebft th\xf4ng tin ch\xednh x\xe1c"),e.qZA())}let To=(()=>{class n{constructor(t,i,r,s,x,v){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=r,this._aiService=x,this._permissionService=v,this.translateLoading=!1,this.isTranslateTitle=!1,this.headerViMap=new Map,this.translateMode="ORIGIN",this.isPermissionTranslate=!1,s.registerIcons([d.UNF,d.kPk,d.mAV,d.$S]),this.isPermissionTranslate=this._permissionService.hasPermission(N.or.CanTranslateFareRule),this.ref&&(this.fareRuleBsp=this.ref.data.fareRuleBsp),i&&(this.fareRuleBsp=this.bottomSheetData.fareRuleBsp),this.proccessFareRule()}ngOnChanges(t){t.fareRuleBsp&&this.proccessFareRule()}proccessFareRule(){this.fareRuleBsp&&(this.fareRuleBspDisplay=this.fareRuleBsp.map(t=>Object.assign(Object.assign({},t),{rules:t.rules.map(i=>Object.assign(Object.assign({},i),{isShowDetail:!1,headerVi:"",detailsVI:"",isLoading:!1}))})))}close(){this.ref&&this.ref.close(!1),this.bottomSheetRef&&this.bottomSheetRef.dismiss(!1)}onChange(t){t.isShowDetail=!t.isShowDetail,t.isShowDetail&&"VI"===this.translateMode&&""==t.detailsVI&&this.translateRule(t)}translate(){if("ORIGIN"===this.translateMode)if(1==this.isTranslateTitle)this.translateMode="VI";else{this.collapseAllDetais();let t=this.fareRuleBspDisplay.flatMap(i=>i.rules.map(r=>r.header));this.translateLoading=!0,this._aiService.getTranslateFareClassTitle(t).subscribe({next:i=>{console.log(i),i.forEach(r=>{this.headerViMap.set(r.original,r.vi)}),this.translateHeaders(),this.translateMode="VI",this.translateLoading=!1,this.isTranslateTitle=!0}})}else"VI"===this.translateMode&&(this.translateMode="ORIGIN")}collapseAllDetais(){for(let t=0;t<this.fareRuleBspDisplay.length;t++)for(let i=0;i<this.fareRuleBspDisplay[t].rules.length;i++)this.fareRuleBspDisplay[t].rules[i].isShowDetail=!1}translateHeaders(){for(let t=0;t<this.fareRuleBspDisplay.length;t++)for(let i=0;i<this.fareRuleBspDisplay[t].rules.length;i++)this.fareRuleBspDisplay[t].rules[i].headerVi=this.headerViMap.get(this.fareRuleBspDisplay[t].rules[i].header)}translateRule(t){if(t.isLoading=!0,""==t.detailsVI){let i=t.details.join("\n");this._aiService.translateFareClass(i).subscribe({next:r=>{t.isLoading=!1,console.log(r),t.detailsVI=r.replace(/\*\*(.*?)\*\*/g,"$1")},error:r=>{401==r&&this._aiService.checkToken().subscribe({next:s=>{this.translateRule(t)}})}})}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8),e.Y36(d.KNP),e.Y36(so.Y),e.Y36(N.$A))},n.\u0275cmp=e.Xpm({type:n,selectors:[["fare-rule-modal"]],inputs:{fareRuleBsp:"fareRuleBsp"},standalone:!0,features:[e.TTD,e.jDz],decls:13,vars:3,consts:[[1,"w-[748px]","max-h-[600px]","rounded-lg","bg-neutral-white","flex","flex-col","md:w-full","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-xs","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"p-6","overflow-auto","flex","flex-col"],[1,"shrink-0","sticky","top-0","left-0","w-fit","self-end","bg-white"],["class","shrink-0 sticky top-0 left-0 w-fit self-end","cf-button","",3,"type","disabled","click",4,"ngIf"],["class","flex flex-col gap-y-4",3,"-mt-[38px]",4,"ngIf"],["class","text-espressive-sm",4,"ngIf"],[1,"p-6","flex","gap-x-4","justify-end","md:hidden"],["cf-button","","size","medium","color","primary-1",1,"w-[100px]","justify-center",3,"click"],["cf-button","",1,"shrink-0","sticky","top-0","left-0","w-fit","self-end",3,"type","disabled","click"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"mr-2"],["clip-path","url(#clip0_7719_8694)"],["d","M14.3333 2.66663H7.99997C7.96419 2.66663 7.92866 2.67225 7.89463 2.68328L7.81463 2.70994C7.63994 2.76806 7.54544 2.95678 7.60357 3.13144C7.60391 3.1325 7.60428 3.13353 7.60463 3.13459L10.9553 12.9259L8.74863 15.4473C8.6275 15.5859 8.64166 15.7965 8.78028 15.9176C8.8411 15.9708 8.91916 16 8.99994 15.9999H14.3333C15.2538 16 16 15.2538 16 14.3333V4.33331C16 3.41281 15.2538 2.66663 14.3333 2.66663Z","fill","#ECEFF1"],["d","M11.6365 12.862C11.5824 12.743 11.4638 12.6667 11.3332 12.6666H7.99985C7.81575 12.6666 7.6665 12.8159 7.6665 13C7.6665 13.04 7.67372 13.0798 7.68785 13.1173L8.68785 15.784C8.72913 15.8938 8.8251 15.9738 8.9405 15.9946C8.9601 15.998 8.97994 15.9998 8.99985 16C9.09594 15.9999 9.18729 15.9583 9.2505 15.886L11.5838 13.2193C11.67 13.1208 11.6906 12.9811 11.6365 12.862Z","fill","#D22216"],["d","M14.3335 7.33331H9.66684C9.48275 7.33331 9.3335 7.18406 9.3335 6.99997C9.3335 6.81588 9.48275 6.66663 9.66684 6.66663H14.3335C14.5176 6.66663 14.6668 6.81588 14.6668 6.99997C14.6668 7.18406 14.5176 7.33331 14.3335 7.33331Z","fill","#455A64"],["d","M11.6668 7.33334C11.4827 7.33334 11.3335 7.18409 11.3335 7V6.33334C11.3335 6.14925 11.4827 6 11.6668 6C11.8509 6 12.0002 6.14925 12.0002 6.33334V7C12.0002 7.18409 11.8509 7.33334 11.6668 7.33334Z","fill","#455A64"],["d","M10.667 11.3333C10.4829 11.3332 10.3338 11.1838 10.334 10.9997C10.3341 10.8921 10.3861 10.7912 10.4737 10.7287C11.9337 9.69131 13.0004 7.57663 13.0004 6.99997C13.0004 6.81588 13.1496 6.66663 13.3337 6.66663C13.5178 6.66663 13.667 6.81588 13.667 6.99997C13.667 7.87863 12.3824 10.1906 10.8604 11.2713C10.8039 11.3116 10.7364 11.3333 10.667 11.3333Z","fill","#455A64"],["d","M13.3335 12C13.2501 12.0001 13.1697 11.9689 13.1082 11.9126C12.8668 11.6913 10.7362 9.72327 10.3582 8.79196C10.2888 8.62131 10.3708 8.42671 10.5415 8.35731C10.7122 8.2879 10.9068 8.36999 10.9762 8.54065C11.2488 9.21265 12.9335 10.8473 13.5595 11.42C13.6957 11.5438 13.7058 11.7546 13.582 11.8909C13.5184 11.9608 13.428 12.0005 13.3335 12Z","fill","#455A64"],["d","M11.6487 12.892L7.31534 0.225344C7.26919 0.0905625 7.14247 0 7 0H1.66666C0.746188 0 0 0.746188 0 1.66666V11.6667C0 12.5871 0.746188 13.3333 1.66666 13.3333H11.3333C11.5174 13.3333 11.6666 13.1841 11.6666 13C11.6667 12.9633 11.6606 12.9268 11.6487 12.892Z","fill","#E03C31"],["d","M6.33327 9.33334C6.19233 9.33338 6.06661 9.24475 6.01926 9.112L4.66661 5.324L3.31395 9.112C3.24511 9.28275 3.05089 9.36535 2.88014 9.2965C2.71905 9.23156 2.63483 9.05378 2.68661 8.888L4.35327 4.22134C4.4348 4.04813 4.64133 3.97378 4.81455 4.05528C4.88751 4.08963 4.94623 4.14834 4.98061 4.22134L6.64726 8.888C6.70933 9.06084 6.61989 9.25134 6.44726 9.314C6.41064 9.32697 6.37208 9.3335 6.33327 9.33334Z","fill","#FAFAFA"],["d","M5.33319 7.33331H3.99985C3.81575 7.33331 3.6665 7.18406 3.6665 6.99997C3.6665 6.81588 3.81575 6.66663 3.99985 6.66663H5.33319C5.51729 6.66663 5.66654 6.81588 5.66654 6.99997C5.6665 7.18406 5.51729 7.33331 5.33319 7.33331Z","fill","#FAFAFA"],["id","clip0_7719_8694"],["width","16","height","16","fill","white"],[4,"ngIf"],["class","text-primary-1-4 ml-1 animate-spin","size","small","icon","refresh",4,"ngIf"],["size","small","icon","refresh",1,"text-primary-1-4","ml-1","animate-spin"],[1,"flex","flex-col","gap-y-4"],["class","flex flex-col gap-y-4",4,"ngFor","ngForOf"],[1,"flex","items-center","justify-between","w-full"],[1,"text-heading-sm","text-neutral-gray-6"],[1,"flex","flex-col","gap-y-2"],[4,"ngFor","ngForOf"],[1,"text-body-md","flex","gap-x-2","items-center"],["class","text-neutral-gray-6 cursor-pointer","size","medium","icon","caret_right",3,"click",4,"ngIf"],["class","text-neutral-gray-6 cursor-pointer","size","medium","icon","caret_down",3,"click",4,"ngIf"],["size","medium","icon","caret_right",1,"text-neutral-gray-6","cursor-pointer",3,"click"],["size","medium","icon","caret_down",1,"text-neutral-gray-6","cursor-pointer",3,"click"],[1,"text-body-md","pl-12"],["class","w-full bg-neutral-gray-2 h-4 rounded-md animate-pulse",4,"ngIf"],[1,"text-body-md","pl-8","whitespace-pre-wrap"],[1,"w-full","bg-neutral-gray-2","h-4","rounded-md","animate-pulse"],[1,"text-espressive-sm"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"\u0110i\u1ec1u ki\u1ec7n gi\xe1 v\xe9"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.close()}),e.qZA()(),e.TgZ(5,"div",4)(6,"div",5),e.YNc(7,go,18,5,"button",6),e.qZA(),e.YNc(8,Do,2,3,"div",7),e.YNc(9,Ao,2,0,"div",8),e.qZA(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return i.close()}),e._uU(12," \u0110\xf3ng "),e.qZA()()()),2&t&&(e.xp6(7),e.Q6J("ngIf",i.fareRuleBspDisplay&&i.isPermissionTranslate),e.xp6(1),e.Q6J("ngIf",i.fareRuleBspDisplay),e.xp6(1),e.Q6J("ngIf",!i.fareRuleBspDisplay))},dependencies:[f.ez,f.sg,f.O5,d.AxE,d.Sm8,h.N8,h.Xq],encapsulation:2}),n})();var ko=_(57716);function Uo(n,o){1&n&&e._UZ(0,"div",30)}function qo(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","S\u1ed1 h\u1ed9 chi\u1ebfu kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Io(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Qu\u1ed1c t\u1ecbch kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Bo(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Qu\u1ed1c gia kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function wo(n,o){1&n&&e._UZ(0,"cf-input-hint",32),2&n&&e.Q6J("hint","Ng\xe0y c\u1ea5p kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function No(n,o){1&n&&e._UZ(0,"cf-input-hint",32),2&n&&e.Q6J("hint","Ng\xe0y c\u1ea5p h\u1ed9 chi\u1ebfu ph\u1ea3i tr\u01b0\u1edbc ng\xe0y h\u1ebft h\u1ea1n")}function Fo(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Ng\xe0y h\u1ebft h\u1ea1n kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Jo(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.YNc(1,Uo,1,0,"div",9),e.TgZ(2,"div",10)(3,"div",11)(4,"cf-input-group",12)(5,"label",13),e._uU(6," Gi\u1edbi t\xednh "),e.qZA(),e._UZ(7,"input",14),e.qZA(),e.TgZ(8,"cf-input-group",12)(9,"label",13),e._uU(10," H\u1ecd "),e.qZA(),e._UZ(11,"input",14),e.qZA(),e.TgZ(12,"cf-input-group",12)(13,"label",13),e._uU(14," T\xean \u0111\u1ec7m v\xe0 T\xean "),e.qZA(),e._UZ(15,"input",14),e.qZA(),e.TgZ(16,"cf-input-group",12)(17,"label",13),e._uU(18," Ng\xe0y sinh "),e.qZA(),e._UZ(19,"input",14),e.qZA()(),e.TgZ(20,"div",15)(21,"div",16)(22,"cf-input-group",17)(23,"label",13),e._uU(24," S\u1ed1 h\u1ed9 chi\u1ebfu "),e.qZA(),e._UZ(25,"input",18),e.YNc(26,qo,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(27,"cf-select",20)(28,"label",13),e._uU(29," Qu\u1ed1c t\u1ecbch "),e.qZA(),e.YNc(30,Io,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(31,"cf-select",21)(32,"label",13),e._uU(33," Qu\u1ed1c gia c\u1ea5p h\u1ed9 chi\u1ebfu "),e.qZA(),e.YNc(34,Bo,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(35,"div")(36,"cf-input-group",22),e._UZ(37,"cf-icon",23),e.TgZ(38,"label",13),e._uU(39," Ng\xe0y c\u1ea5p "),e.qZA(),e.TgZ(40,"input",24,25),e.NdJ("input",function(){e.CHM(t);const r=e.MAs(41);return e.KtG(r.close())})("dateSelect",function(){e.CHM(t);const r=e.MAs(41);return e.KtG(r.close())}),e.qZA(),e.YNc(42,wo,1,1,"cf-input-hint",26),e.YNc(43,No,1,1,"cf-input-hint",26),e.qZA()(),e.TgZ(44,"div")(45,"cf-input-group",22),e._UZ(46,"cf-icon",23),e.TgZ(47,"label",13),e._uU(48," Ng\xe0y h\u1ebft h\u1ea1n "),e.qZA(),e.TgZ(49,"input",27,28),e.NdJ("input",function(){e.CHM(t);const r=e.MAs(50);return e.KtG(r.close())})("dateSelect",function(){e.CHM(t);const r=e.MAs(50);return e.KtG(r.close())}),e.qZA(),e.YNc(51,Fo,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(52,"div",29),e._uU(53,"C\xf2n h\u1ea1n tr\xean 6 th\xe1ng so v\u1edbi ng\xe0y k\u1ebft th\xfac h\xe0nh tr\xecnh"),e.qZA()()()()(),e.BQk()}if(2&n){const t=o.$implicit,i=o.index,r=e.oxw();e.xp6(1),e.Q6J("ngIf",i),e.xp6(3),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",r.getFormControlInArray(t,"gender")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",r.getFormControlInArray(t,"lastName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",r.getFormControlInArray(t,"firstName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",r.getFormControlInArray(t,"birthday")),e.xp6(6),e.Q6J("formControl",r.getFormControlInArray(t,"number")),e.xp6(1),e.Q6J("ngIf",t.controls.number.hasError("required")&&(t.controls.number.touched||t.controls.number.dirty)),e.xp6(1),e.Q6J("data",r.countryOption)("allowSearch",!0)("formControl",r.getFormControlInArray(t,"nationality")),e.xp6(3),e.Q6J("ngIf",t.controls.nationality.hasError("required")&&(t.controls.nationality.touched||t.controls.nationality.dirty)),e.xp6(1),e.Q6J("data",r.countryOption)("allowSearch",!0)("formControl",r.getFormControlInArray(t,"issuanceCountry")),e.xp6(3),e.Q6J("ngIf",t.controls.issuanceCountry.hasError("required")&&(t.controls.issuanceCountry.touched||t.controls.issuanceCountry.dirty)),e.xp6(2),e.Q6J("status",t.controls.issuanceDate.invalid&&(t.controls.issuanceDate.dirty||t.controls.issuanceDate.touched)?"error":"default"),e.xp6(4),e.Q6J("secondaryCalendar","lunar")("displayMonths",1)("maxDate",r.currentDate)("formControl",r.getFormControlInArray(t,"issuanceDate")),e.xp6(2),e.Q6J("ngIf",t.controls.issuanceDate.hasError("required")&&(t.controls.issuanceDate.touched||t.controls.issuanceDate.dirty)),e.xp6(1),e.Q6J("ngIf",t.controls.issuanceDate.hasError("issuanceDateInvalid")&&(t.controls.issuanceDate.touched||t.controls.issuanceDate.dirty)),e.xp6(2),e.Q6J("status","default"),e.xp6(4),e.Q6J("secondaryCalendar","lunar")("displayMonths",1)("minDate",r.currentDate)("formControl",r.getFormControlInArray(t,"expiryDate")),e.xp6(2),e.Q6J("ngIf",t.controls.expiryDate.hasError("required")&&(t.controls.expiryDate.touched||t.controls.expiryDate.dirty))}}function So(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","S\u1ed1 h\u1ed9 chi\u1ebfu kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Oo(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Qu\u1ed1c t\u1ecbch kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Qo(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Qu\u1ed1c gia kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function jo(n,o){1&n&&e._UZ(0,"cf-input-hint",32),2&n&&e.Q6J("hint","Ng\xe0y c\u1ea5p kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Mo(n,o){1&n&&e._UZ(0,"cf-input-hint",32),2&n&&e.Q6J("hint","Ng\xe0y c\u1ea5p h\u1ed9 chi\u1ebfu ph\u1ea3i tr\u01b0\u1edbc ng\xe0y h\u1ebft h\u1ea1n")}function Po(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Ng\xe0y h\u1ebft h\u1ea1n kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Yo(n,o){if(1&n){const t=e.EpF();e.ynx(0),e._UZ(1,"div",30),e.TgZ(2,"div",10)(3,"div",11)(4,"cf-input-group",12)(5,"label",13),e._uU(6," Gi\u1edbi t\xednh "),e.qZA(),e._UZ(7,"input",14),e.qZA(),e.TgZ(8,"cf-input-group",12)(9,"label",13),e._uU(10," H\u1ecd "),e.qZA(),e._UZ(11,"input",14),e.qZA(),e.TgZ(12,"cf-input-group",12)(13,"label",13),e._uU(14," T\xean \u0111\u1ec7m v\xe0 T\xean "),e.qZA(),e._UZ(15,"input",14),e.qZA(),e.TgZ(16,"cf-input-group",12)(17,"label",13),e._uU(18," Ng\xe0y sinh "),e.qZA(),e._UZ(19,"input",14),e.qZA()(),e.TgZ(20,"div",15)(21,"div",16)(22,"cf-input-group",17)(23,"label",13),e._uU(24," S\u1ed1 h\u1ed9 chi\u1ebfu "),e.qZA(),e._UZ(25,"input",18),e.YNc(26,So,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(27,"cf-select",20)(28,"label",13),e._uU(29," Qu\u1ed1c t\u1ecbch "),e.qZA(),e.YNc(30,Oo,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(31,"cf-select",21)(32,"label",13),e._uU(33," Qu\u1ed1c gia c\u1ea5p h\u1ed9 chi\u1ebfu "),e.qZA(),e.YNc(34,Qo,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(35,"div")(36,"cf-input-group",22),e._UZ(37,"cf-icon",23),e.TgZ(38,"label",13),e._uU(39," Ng\xe0y c\u1ea5p "),e.qZA(),e.TgZ(40,"input",24,25),e.NdJ("input",function(){e.CHM(t);const r=e.MAs(41);return e.KtG(r.close())})("dateSelect",function(){e.CHM(t);const r=e.MAs(41);return e.KtG(r.close())}),e.qZA(),e.YNc(42,jo,1,1,"cf-input-hint",26),e.YNc(43,Mo,1,1,"cf-input-hint",26),e.qZA()(),e.TgZ(44,"div")(45,"cf-input-group",22),e._UZ(46,"cf-icon",23),e.TgZ(47,"label",13),e._uU(48," Ng\xe0y h\u1ebft h\u1ea1n "),e.qZA(),e.TgZ(49,"input",27,28),e.NdJ("input",function(){e.CHM(t);const r=e.MAs(50);return e.KtG(r.close())})("dateSelect",function(){e.CHM(t);const r=e.MAs(50);return e.KtG(r.close())}),e.qZA(),e.YNc(51,Po,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(52,"div",29),e._uU(53,"C\xf2n h\u1ea1n tr\xean 6 th\xe1ng so v\u1edbi ng\xe0y k\u1ebft th\xfac h\xe0nh tr\xecnh"),e.qZA()()()()(),e.BQk()}if(2&n){const t=o.$implicit,i=e.oxw();e.xp6(4),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"gender")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"lastName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"firstName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"birthday")),e.xp6(6),e.Q6J("formControl",i.getFormControlInArray(t,"number")),e.xp6(1),e.Q6J("ngIf",t.controls.number.hasError("required")&&(t.controls.number.touched||t.controls.number.dirty)),e.xp6(1),e.Q6J("data",i.countryOption)("allowSearch",!0)("formControl",i.getFormControlInArray(t,"nationality")),e.xp6(3),e.Q6J("ngIf",t.controls.nationality.hasError("required")&&(t.controls.nationality.touched||t.controls.nationality.dirty)),e.xp6(1),e.Q6J("data",i.countryOption)("allowSearch",!0)("formControl",i.getFormControlInArray(t,"issuanceCountry")),e.xp6(3),e.Q6J("ngIf",t.controls.issuanceCountry.hasError("required")&&(t.controls.issuanceCountry.touched||t.controls.issuanceCountry.dirty)),e.xp6(2),e.Q6J("status",t.controls.issuanceDate.invalid&&(t.controls.issuanceDate.dirty||t.controls.issuanceDate.touched)?"error":"default"),e.xp6(4),e.Q6J("secondaryCalendar","lunar")("displayMonths",1)("maxDate",i.currentDate)("formControl",i.getFormControlInArray(t,"issuanceDate")),e.xp6(2),e.Q6J("ngIf",t.controls.issuanceDate.hasError("required")&&(t.controls.issuanceDate.touched||t.controls.issuanceDate.dirty)),e.xp6(1),e.Q6J("ngIf",t.controls.issuanceDate.hasError("issuanceDateInvalid")&&(t.controls.issuanceDate.touched||t.controls.issuanceDate.dirty)),e.xp6(2),e.Q6J("status","default"),e.xp6(4),e.Q6J("secondaryCalendar","lunar")("displayMonths",1)("minDate",i.currentDate)("formControl",i.getFormControlInArray(t,"expiryDate")),e.xp6(2),e.Q6J("ngIf",t.controls.expiryDate.hasError("required")&&(t.controls.expiryDate.touched||t.controls.expiryDate.dirty))}}function Lo(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","S\u1ed1 h\u1ed9 chi\u1ebfu kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Ho(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Qu\u1ed1c t\u1ecbch kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Ro(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Qu\u1ed1c gia kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function Go(n,o){1&n&&e._UZ(0,"cf-input-hint",31),2&n&&e.Q6J("hint","Ng\xe0y h\u1ebft h\u1ea1n kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u1ec3 tr\u1ed1ng")}function zo(n,o){if(1&n){const t=e.EpF();e.ynx(0),e._UZ(1,"div",30),e.TgZ(2,"div",10)(3,"div",11)(4,"cf-input-group",12)(5,"label",13),e._uU(6," Gi\u1edbi t\xednh "),e.qZA(),e._UZ(7,"input",14),e.qZA(),e.TgZ(8,"cf-input-group",12)(9,"label",13),e._uU(10," H\u1ecd "),e.qZA(),e._UZ(11,"input",14),e.qZA(),e.TgZ(12,"cf-input-group",12)(13,"label",13),e._uU(14," T\xean \u0111\u1ec7m v\xe0 T\xean "),e.qZA(),e._UZ(15,"input",14),e.qZA(),e.TgZ(16,"cf-input-group",12)(17,"label",13),e._uU(18," Ng\xe0y sinh "),e.qZA(),e._UZ(19,"input",14),e.qZA(),e.TgZ(20,"cf-input-group",12)(21,"label",13),e._uU(22," Thu\u1ed9c h\xe0nh kh\xe1ch ng\u01b0\u1eddi l\u1edbn "),e.qZA(),e._UZ(23,"input",14),e.qZA()(),e.TgZ(24,"div",15)(25,"div",16)(26,"cf-input-group",17)(27,"label",13),e._uU(28," S\u1ed1 h\u1ed9 chi\u1ebfu "),e.qZA(),e._UZ(29,"input",18),e.YNc(30,Lo,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(31,"cf-select",20)(32,"label",13),e._uU(33," Qu\u1ed1c t\u1ecbch "),e.qZA(),e.YNc(34,Ho,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(35,"cf-select",21)(36,"label",13),e._uU(37," Qu\u1ed1c gia c\u1ea5p h\u1ed9 chi\u1ebfu "),e.qZA(),e.YNc(38,Ro,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(39,"div")(40,"cf-input-group",22),e._UZ(41,"cf-icon",23),e.TgZ(42,"label",13),e._uU(43," Ng\xe0y h\u1ebft h\u1ea1n "),e.qZA(),e.TgZ(44,"input",27,28),e.NdJ("input",function(){e.CHM(t);const r=e.MAs(45);return e.KtG(r.close())})("dateSelect",function(){e.CHM(t);const r=e.MAs(45);return e.KtG(r.close())}),e.qZA(),e.YNc(46,Go,1,1,"cf-input-hint",19),e.qZA(),e.TgZ(47,"div",29),e._uU(48,"C\xf2n h\u1ea1n tr\xean 6 th\xe1ng so v\u1edbi ng\xe0y k\u1ebft th\xfac h\xe0nh tr\xecnh"),e.qZA()()()()(),e.BQk()}if(2&n){const t=o.$implicit,i=e.oxw();e.xp6(4),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"gender")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"lastName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"firstName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"birthday")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",i.getFormControlInArray(t,"parent")),e.xp6(6),e.Q6J("formControl",i.getFormControlInArray(t,"number")),e.xp6(1),e.Q6J("ngIf",t.controls.number.hasError("required")&&(t.controls.number.touched||t.controls.number.dirty)),e.xp6(1),e.Q6J("data",i.countryOption)("allowSearch",!0)("formControl",i.getFormControlInArray(t,"nationality")),e.xp6(3),e.Q6J("ngIf",t.controls.nationality.hasError("required")&&(t.controls.nationality.touched||t.controls.nationality.dirty)),e.xp6(1),e.Q6J("data",i.countryOption)("allowSearch",!0)("formControl",i.getFormControlInArray(t,"issuanceCountry")),e.xp6(3),e.Q6J("ngIf",t.controls.issuanceCountry.hasError("required")&&(t.controls.issuanceCountry.touched||t.controls.issuanceCountry.dirty)),e.xp6(2),e.Q6J("status","default"),e.xp6(4),e.Q6J("secondaryCalendar","lunar")("displayMonths",1)("minDate",i.currentDate)("formControl",i.getFormControlInArray(t,"expiryDate")),e.xp6(2),e.Q6J("ngIf",t.controls.expiryDate.hasError("required")&&(t.controls.expiryDate.touched||t.controls.expiryDate.dirty))}}let $o=(()=>{class n{constructor(t,i,r,s,x,v,T){this._cfRegister=t,this.fb=i,this._locationDataService=r,this.calendar=s,this.ref=x,this.bottomSheetData=v,this.bottomSheetRef=T,t.registerIcons([d.PcQ]),this.countryOption=this._locationDataService.getAllCountryOption(),this.currentDate=s.getToday(),x&&(this.listPaxUpdate=x.data.listPaxUpdate),v&&(this.listPaxUpdate=v.listPaxUpdate)}ngOnInit(){this.initFormGroup()}initFormGroup(){this.formGroup=this.fb.group({adultPassenger:this.fb.array([]),childPassenger:this.fb.array([]),infantPassenger:this.fb.array([])}),this.initAdultFormGroup(),this.initChildFormGroup(),this.initInfantFormGroup()}getFormArray(t){return this.formGroup.controls[t]}initAdultFormGroup(){var t;null===(t=this.listPaxUpdate)||void 0===t||t.filter(i=>"ADT"===i.type).forEach(i=>{const r={issuanceDate:new Date(M.zk.issuanceDate),expiryDate:new Date(M.zk.expiryDate),issuanceCountry:"",nationality:"",number:""};i.number!==M.zk.number&&(r.issuanceDate=i.issuanceDate?new Date(i.issuanceDate):new Date(M.zk.issuanceDate),r.expiryDate=i.expiryDate?new Date(i.expiryDate):new Date(M.zk.expiryDate),r.issuanceCountry=i.issuanceCountry||"",r.nationality=i.nationality||"",r.number=i.number||"");const s=this.fb.group({index:[i.index],birthday:[i.dayOfBirth?pe(new Date(i.dayOfBirth)).format("DD/MM/YYYY"):""],firstName:[i.firstName],lastName:[i.lastName],gender:[this.getGender(i.gender)],issuanceDate:[r.issuanceDate,[g.kI.required]],expiryDate:[r.expiryDate,[g.kI.required]],issuanceCountry:[r.issuanceCountry,[g.kI.required]],nationality:[r.nationality,[g.kI.required]],number:[r.number,[g.kI.required]]},{validators:[(0,ge.i4)("issuanceDate","expiryDate")]});this.getFormArray("adultPassenger").push(s)})}initChildFormGroup(){var t;null===(t=this.listPaxUpdate)||void 0===t||t.filter(i=>"CHD"===i.type).forEach(i=>{const r={issuanceDate:new Date(M.zk.issuanceDate),expiryDate:new Date(M.zk.expiryDate),issuanceCountry:"",nationality:"",number:""};i.number!==M.zk.number&&(r.issuanceDate=i.issuanceDate?new Date(i.issuanceDate):new Date(M.zk.issuanceDate),r.expiryDate=i.expiryDate?new Date(i.expiryDate):new Date(M.zk.expiryDate),r.issuanceCountry=i.issuanceCountry||"",r.nationality=i.nationality||"",r.number=i.number||"");const s=this.fb.group({index:[i.index],birthday:[i.dayOfBirth?pe(new Date(i.dayOfBirth)).format("DD/MM/YYYY"):""],firstName:[i.firstName],lastName:[i.lastName],gender:[this.getGender(i.gender)],issuanceDate:[r.issuanceDate,[g.kI.required]],expiryDate:[r.expiryDate,[g.kI.required]],issuanceCountry:[r.issuanceCountry,[g.kI.required]],nationality:[r.nationality,[g.kI.required]],number:[r.number,[g.kI.required]]},{validators:[(0,ge.i4)("issuanceDate","expiryDate")]});this.getFormArray("childPassenger").push(s)})}initInfantFormGroup(){var t,i;const r=null===(t=this.listPaxUpdate)||void 0===t?void 0:t.filter(s=>"ADT"===s.type);null===(i=this.listPaxUpdate)||void 0===i||i.filter(s=>"INF"===s.type).forEach(s=>{const x=r.find(U=>U.key===s.parentKey),v={issuanceDate:new Date(M.zk.issuanceDate),expiryDate:new Date(M.zk.expiryDate),issuanceCountry:"",nationality:"",number:""};s.number!==M.zk.number&&(v.issuanceDate=s.issuanceDate?new Date(s.issuanceDate):new Date(M.zk.issuanceDate),v.expiryDate=s.expiryDate?new Date(s.expiryDate):new Date(M.zk.expiryDate),v.issuanceCountry=s.issuanceCountry||"",v.nationality=s.nationality||"",v.number=s.number||"");const T=this.fb.group({index:[s.index],birthday:[s.dayOfBirth?pe(new Date(s.dayOfBirth)).format("DD/MM/YYYY"):""],firstName:[s.firstName],lastName:[s.lastName],gender:[this.getGender(s.gender)],issuanceDate:[v.issuanceDate,[g.kI.required]],expiryDate:[v.expiryDate,[g.kI.required]],issuanceCountry:[v.issuanceCountry,[g.kI.required]],nationality:[v.nationality,[g.kI.required]],number:[v.number,[g.kI.required]],parent:[x?`${x.lastName} ${x.firstName}`:""]},{validators:[(0,ge.i4)("issuanceDate","expiryDate")]});this.getFormArray("infantPassenger").push(T)})}getGender(t){switch(t.toUpperCase()){case"FEMALE":return"N\u1eef";case"MALE":return"Nam";default:return""}}ok(){if(this.formGroup.invalid)return;const t=this.formGroup.value,i=[...t.adultPassenger,...t.childPassenger,...t.infantPassenger];this.ref&&this.ref.close(i),this.bottomSheetData&&this.bottomSheetRef.dismiss(i)}close(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}getFormControlInArray(t,i){return t.controls[i]}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.KNP),e.Y36(g.qu),e.Y36(_e._),e.Y36(at.jH),e.Y36(j.gb,8),e.Y36(a.Rr,8),e.Y36(a.Zu,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["update-passport-info"]],hostAttrs:[1,"w-full"],standalone:!0,features:[e.jDz],decls:14,vars:4,consts:[[1,"w-[748px]","max-h-[600px]","md:max-h-full","md:w-full","md:h-full","overflow-hidden","rounded-lg","bg-neutral-white","flex","flex-col","md:justify-between"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-xs","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"p-6","overflow-auto","flex","flex-col","gap-y-4"],[4,"ngFor","ngForOf"],[1,"p-6","flex","gap-x-4","justify-end","md:justify-between"],["cf-button","","size","medium","type","secondary",1,"min-w-[100px]","md:w-full","justify-center",3,"click"],["cf-button","","size","medium","color","primary-1",1,"min-w-fit","md:w-full","justify-center",3,"disabled","click"],["class","w-full border-t border-neutral-gray-1",4,"ngIf"],[1,"flex","flex-col","gap-y-4"],[1,"grid","grid-cols-3","gap-4","md:grid-cols-1"],[1,"grow-[400]","!w-full",3,"disabled","status"],["cfLabel","",1,"text-espressive-sm","text-black","mb-1.5"],["cf-input","","size","medium","autocomplete","off",3,"formControl"],[1,""],[1,"grid","grid-cols-2","gap-4","md:grid-cols-1"],[1,"grow-[400]","!w-full"],["cf-input","","size","medium","autocomplete","off","CfRemoveAccents","","placeholder","Nh\u1eadp s\u1ed1 h\u1ed9 chi\u1ebfu","type","text",3,"formControl"],["cfHint","","class","text-primary-1-4",3,"hint",4,"ngIf"],["textField","name","valueField","code","placeholder","Ch\u1ecdn qu\u1ed1c t\u1ecbch",1,"md:w-full","md:max-w-none","!max-w-full",3,"data","allowSearch","formControl"],["textField","name","valueField","code","placeholder","Ch\u1ecdn n\u01a1i c\u1ea5p",1,"md:w-full","md:max-w-none","!max-w-full",3,"data","allowSearch","formControl"],[1,"grow-[400]","!w-full",3,"status"],["cfHeadIcon","","icon","calendar","size","small"],["autocomplete","off","cfDatepicker","","type","text","size","medium","cf-input","","placeholder","Nh\u1eadp ng\xe0y c\u1ea5p",1,"py-[7px]",3,"secondaryCalendar","displayMonths","maxDate","formControl","input","dateSelect"],["issuanceDatepicker","cfDatepicker"],["cfHint","",3,"hint",4,"ngIf"],["autocomplete","off","cfDatepicker","","type","text","size","medium","cf-input","","placeholder","Nh\u1eadp ng\xe0y h\u1ebft h\u1ea1n",1,"py-[7px]",3,"secondaryCalendar","displayMonths","minDate","formControl","input","dateSelect"],["dateFrom","cfDatepicker"],[1,"text-body-sm","mt-1.5"],[1,"w-full","border-t","border-neutral-gray-1"],["cfHint","",1,"text-primary-1-4",3,"hint"],["cfHint","",3,"hint"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"Ch\u1ec9nh s\u1eeda h\u1ed9 chi\u1ebfu"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.close()}),e.qZA()(),e.TgZ(5,"div",4),e.YNc(6,Jo,54,36,"ng-container",5),e.YNc(7,Yo,54,35,"ng-container",5),e.YNc(8,zo,49,31,"ng-container",5),e.qZA(),e.TgZ(9,"div",6)(10,"button",7),e.NdJ("click",function(){return i.close()}),e._uU(11," \u0110\xf3ng "),e.qZA(),e.TgZ(12,"button",8),e.NdJ("click",function(){return i.ok()}),e._uU(13," \u0110\u1ed3ng \xfd & Xu\u1ea5t v\xe9 "),e.qZA()()()),2&t&&(e.xp6(6),e.Q6J("ngForOf",i.getFormArray("adultPassenger").controls),e.xp6(1),e.Q6J("ngForOf",i.getFormArray("childPassenger").controls),e.xp6(1),e.Q6J("ngForOf",i.getFormArray("infantPassenger").controls),e.xp6(4),e.Q6J("disabled",i.formGroup.invalid))},dependencies:[f.ez,f.sg,f.O5,d.AxE,d.Sm8,h.N8,h.Xq,ce.j$,ce.ND,ce.BN,ce.v2,dt.q,g.UX,g.Fj,g.JJ,g.oH,at.Cs,ko.p],encapsulation:2}),n})()},91951:(X,J,_)=>{_.d(J,{Gn:()=>rt,Wn:()=>tt,EH:()=>nt,kP:()=>G,co:()=>te});var f=_(36895),e=_(94650),Z=_(83700),C=_(72506),q=_(4688),c=_(48373),l=_(76978),m=_(40899);function h(u,g){1&u&&(e.TgZ(0,"div"),e._UZ(1,"ticket-item-skeleton")(2,"ticket-item-skeleton")(3,"ticket-item-skeleton")(4,"ticket-item-skeleton"),e.qZA())}function d(u,g){1&u&&(e.TgZ(0,"cf-label",24),e.O4$(),e.TgZ(1,"svg",25),e._UZ(2,"path",26),e.qZA(),e._uU(3," Th\xe0nh c\xf4ng "),e.qZA())}function b(u,g){1&u&&(e.TgZ(0,"cf-label",27),e.O4$(),e.TgZ(1,"svg",25),e._UZ(2,"circle",28)(3,"path",29),e.qZA(),e._uU(4," Th\u1ea5t b\u1ea1i "),e.qZA())}function A(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"a",30),e.NdJ("click",function(){e.CHM(a);const y=e.oxw().$implicit,E=e.oxw(2);return e.KtG(E.onReview(y.ticketNumber))}),e._uU(1," Xem chi ti\u1ebft "),e.qZA()}}const I=function(u){return{"opacity-50":u}};function k(u,g){if(1&u&&(e.TgZ(0,"tr",18)(1,"td",19),e._uU(2),e.qZA(),e.TgZ(3,"td",19),e._uU(4),e.ALo(5,"number"),e.qZA(),e.TgZ(6,"td",19),e.YNc(7,d,4,0,"cf-label",20),e.YNc(8,b,5,0,"cf-label",21),e.qZA(),e.TgZ(9,"td",22),e.YNc(10,A,2,0,"a",23),e.qZA()()),2&u){const a=g.$implicit,p=e.oxw(2);e.Q6J("ngClass",e.VKq(8,I,"ERROR"===a.status)),e.xp6(2),e.Oqu(a.ticketNumber),e.xp6(2),e.hij("",e.lcZ(5,6,a.totalCharge)," \u0111"),e.xp6(3),e.Q6J("ngIf","SUCCESS"===a.status),e.xp6(1),e.Q6J("ngIf","ERROR"===a.status),e.xp6(2),e.Q6J("ngIf","FARE"===a.ticketType&&p.canOpenTicketNumber)}}function S(u,g){if(1&u&&(e.TgZ(0,"div",31)(1,"div",32),e._uU(2,"T\u1ed5ng chi ph\xed"),e.qZA(),e.TgZ(3,"div",33),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&u){const a=e.oxw(2);e.xp6(4),e.hij(" ",e.lcZ(5,1,a.totalCharge)," \u0111")}}function N(u,g){if(1&u&&(e.TgZ(0,"div",34)(1,"div",35)(2,"div",36),e._uU(3,"S\u1ed1 v\xe9"),e.qZA(),e.TgZ(4,"div",37),e._uU(5),e.qZA()(),e.TgZ(6,"div",35)(7,"div",36),e._uU(8,"Chi ph\xed"),e.qZA(),e.TgZ(9,"div",37),e._uU(10),e.ALo(11,"number"),e.qZA()(),e.TgZ(12,"div",35)(13,"div",36),e._uU(14,"Tr\u1ea1ng th\xe1i"),e.qZA(),e.TgZ(15,"div",37),e._uU(16),e.qZA()()()),2&u){const a=g.$implicit;e.xp6(5),e.Oqu(a.ticketNumber),e.xp6(5),e.hij("",e.lcZ(11,3,a.totalCharge)," \u0111"),e.xp6(6),e.Oqu(a.statusDisplay||"- -")}}function Y(u,g){1&u&&(e.TgZ(0,"div",38)(1,"div",39),e._uU(2,"Void s\u1ed1 v\xe9 kh\xf4ng th\xe0nh c\xf4ng."),e.qZA(),e.TgZ(3,"div",40),e._uU(4,"Vui l\xf2ng th\u1eed l\u1ea1i ho\u1eb7c li\xean h\u1ec7 booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3."),e.qZA()())}const fe=function(){return{num:25}},R=function(){return{num:50}},re=function(){return{num:75}},V=function(){return{num:100}},W=function(u,g,a,p){return[u,g,a,p]},ae=function(){return[]};function le(u,g){if(1&u&&(e.TgZ(0,"div",2)(1,"div",3),e._UZ(2,"cf-icon",4),e.TgZ(3,"div",5),e._uU(4),e.qZA()(),e.TgZ(5,"div",6),e._uU(6,"C\xe1c s\u1ed1 v\xe9 t\u01b0\u01a1ng \u1ee9ng v\u1edbi m\xe3 \u0111\u1eb7t ch\u1ed7 \u0111\u01b0\u1ee3c li\u1ec7t k\xea b\xean d\u01b0\u1edbi:"),e.qZA()(),e.TgZ(7,"div",7)(8,"cf-table",8,9)(10,"thead",10)(11,"th",11),e._uU(12,"S\u1ed1 v\xe9"),e.qZA(),e.TgZ(13,"th",11),e._uU(14,"Chi ph\xed"),e.qZA(),e.TgZ(15,"th",11),e._uU(16,"Tr\u1ea1ng th\xe1i"),e.qZA(),e._UZ(17,"th",12),e.qZA(),e.TgZ(18,"tbody"),e.YNc(19,k,11,10,"ng-template",13),e.qZA()()(),e.YNc(20,S,6,3,"div",14),e.TgZ(21,"div",15),e.YNc(22,N,17,5,"div",16),e.qZA(),e.YNc(23,Y,5,0,"div",17)),2&u){const a=e.MAs(9),p=e.oxw();e.xp6(4),e.Oqu(p.bookingCode),e.xp6(4),e.Q6J("fnSort",p.sortChange)("fnSearch",p.searchChange)("pageSizeList",e.l5B(14,W,e.DdM(10,fe),e.DdM(11,R),e.DdM(12,re),e.DdM(13,V)))("listData",p.listTicketNumber||e.DdM(19,ae))("pageSize",p.pageSize),e.xp6(11),e.Q6J("ngForOf",a.partOfdata),e.xp6(1),e.Q6J("ngIf",p.totalCharge),e.xp6(2),e.Q6J("ngForOf",p.listTicketNumber),e.xp6(1),e.Q6J("ngIf",!p.isSuccessFull)}}let G=(()=>{class u{constructor(a,p){this._permissonService=p,this.isLoading=!1,this.isSuccessFull=!0,this.listTicketNumber=[],this.actionChange=new e.vpe,this.pageSize=25,this.canOpenTicketNumber=this._permissonService.hasPermission(m.or.CanOpenFlightTicketNumber),this.searchChange=(y,E)=>E,this.sortChange=(y,E)=>E,a.registerIcons([C.xbi])}onReview(a){this.onActionChange({action:"review",ticketNumber:a})}onVoidBooking(){this.onActionChange({action:"void",ticketNumber:""})}onActionChange(a){this.actionChange.emit(a)}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(C.KNP),e.Y36(m.$A))},u.\u0275cmp=e.Xpm({type:u,selectors:[["ticket-number"]],inputs:{isLoading:"isLoading",totalCharge:"totalCharge",isSuccessFull:"isSuccessFull",bookingCode:"bookingCode",listTicketNumber:"listTicketNumber"},outputs:{actionChange:"actionChange"},standalone:!0,features:[e.jDz],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"px-4","py-5","md:bg-neutral-white"],[1,"flex","items-center","gap-x-2"],["icon","coupon_slash","size","small"],[1,"text-heading-sm"],[1,"text-body-sm","pl-6"],[1,"md:hidden"],["mode","template",3,"fnSort","fnSearch","pageSizeList","listData","pageSize"],["managerTable",""],["cf-thead",""],["cf-th",""],[1,"flex","justify-end","text-right","text-espressive-semibold-sm","p-3"],["ngFor","",3,"ngForOf"],["class","p-3 border-b border-neutral-gray-1 flex justify-end items-center gap-x-4 md:hidden",4,"ngIf"],[1,"hidden","p-4","md:flex","flex-col","gap-y-4"],["class","p-3 flex flex-col gap-y-2 bg-neutral-white rounded-lg",4,"ngFor","ngForOf"],["class","bg-[#ffeceb] rounded py-3 px-4",4,"ngIf"],[1,"border-b","border-neutral-gray-1",3,"ngClass"],["cf-td","",1,"text-left","py-2","px-3","text-body-sm"],["color","green","type","inverted",4,"ngIf"],["color","red","type","inverted",4,"ngIf"],["cf-td","",1,"text-right","py-2","px-3"],["class","text-espressive-sm text-secondary-3-4 cursor-pointer",3,"click",4,"ngIf"],["color","green","type","inverted"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"mr-1"],["d","M7.9987 1.33337C6.68016 1.33337 5.39123 1.72437 4.2949 2.45691C3.19857 3.18945 2.34409 4.23064 1.8395 5.44882C1.33492 6.66699 1.2029 8.00744 1.46013 9.30064C1.71737 10.5939 2.35231 11.7817 3.28466 12.7141C4.21701 13.6464 5.40489 14.2814 6.6981 14.5386C7.99131 14.7958 9.33175 14.6638 10.5499 14.1592C11.7681 13.6547 12.8093 12.8002 13.5418 11.7038C14.2744 10.6075 14.6654 9.31858 14.6654 8.00004C14.6602 6.23351 13.9562 4.54079 12.7071 3.29166C11.4579 2.04253 9.76523 1.3385 7.9987 1.33337ZM6.88759 11.0078L4.27259 8.39282C4.05566 8.17589 4.05566 7.82419 4.27259 7.60726C4.48952 7.39034 4.84122 7.39034 5.05815 7.60726L6.88759 9.43671L10.9393 5.38504C11.1562 5.16812 11.5079 5.16812 11.7248 5.38504C11.9417 5.60197 11.9417 5.95367 11.7248 6.1706L6.88759 11.0078Z","fill","#07A35D"],["color","red","type","inverted"],["cx","8","cy","8","r","7","fill","#E03C31"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.4612 6.45972C10.715 6.20588 10.715 5.79432 10.4612 5.54048C10.2073 5.28664 9.79578 5.28664 9.54194 5.54048L8.00156 7.08086L6.46118 5.54048C6.20734 5.28664 5.79578 5.28664 5.54194 5.54048C5.2881 5.79432 5.2881 6.20588 5.54194 6.45972L7.08232 8.0001L5.54194 9.54048C5.2881 9.79432 5.2881 10.2059 5.54194 10.4597C5.79578 10.7136 6.20734 10.7136 6.46118 10.4597L8.00156 8.91934L9.54194 10.4597C9.79578 10.7136 10.2073 10.7136 10.4612 10.4597C10.715 10.2059 10.715 9.79432 10.4612 9.54048L8.9208 8.0001L10.4612 6.45972Z","fill","white"],[1,"text-espressive-sm","text-secondary-3-4","cursor-pointer",3,"click"],[1,"p-3","border-b","border-neutral-gray-1","flex","justify-end","items-center","gap-x-4","md:hidden"],[1,"text-espressive-sm","text-neutral-gray-4"],[1,"text-heading-md","ng-star-inserted"],[1,"p-3","flex","flex-col","gap-y-2","bg-neutral-white","rounded-lg"],[1,"flex","items-center","justify-between"],[1,"text-body-sm","text-neutral-gray-4"],[1,"text-espressive-md-long","text-neutral-gray-6"],[1,"bg-[#ffeceb]","rounded","py-3","px-4"],[1,"text-espressive-md"],[1,"text-body-md"]],template:function(a,p){if(1&a&&(e.YNc(0,h,5,0,"div",0),e.YNc(1,le,24,20,"ng-template",null,1,e.W1O)),2&a){const y=e.MAs(2);e.Q6J("ngIf",p.isLoading)("ngIfElse",y)}},dependencies:[f.ez,f.mk,f.sg,f.O5,f.JJ,c.rC,c.E_,c.zs,c.qS,Z.N8,l.IA,C.AxE,C.Sm8,q.b],encapsulation:2}),u})();var K=_(97579);function F(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"div",11)(1,"button",12),e.NdJ("click",function(){e.CHM(a);const y=e.oxw();return e.KtG(y.onOpenBookingCode())}),e._uU(2," M\u1edf booking "),e.qZA()()}}function w(u,g){if(1&u&&(e.ynx(0),e._uU(1),e._UZ(2,"br"),e.BQk()),2&u){const a=g.$implicit;e.xp6(1),e.qoO([" ",a.number," ",a.airline," ",a.flightNumber," ",a.classCode," ",a.date," ",a.brdoff," ",a.time," ",a.status," ",a.fareBasis," ",a.statusCode," ",a.baggageAllowance," "])}}let te=(()=>{class u{constructor(a,p){this.ref=a,this.isAction=!1,this.airline="VN",p.registerIcons([C.UNF]),this.ticketDetail=a.data.ticketDetail,this.isAction=a.data.isAction,this.airline=a.data.airline||"VN"}onOpenBookingCode(){window.open(this._getCurrentUrl())}close(){this.ref.close(!1)}_getCurrentUrl(){return`${window.location.origin}/admin/booking-detail/${this.airline}/${this.ticketDetail.ticketInfo.bookingCode}`}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(K.gb),e.Y36(C.KNP))},u.\u0275cmp=e.Xpm({type:u,selectors:[["ticket-number-detail"]],hostAttrs:[1,"h-full"],standalone:!0,features:[e.jDz],decls:52,vars:18,consts:[[1,"w-[650px]","h-full","overflow-hidden","md:hidden"],[1,"w-full","max-h-[90vh]","h-full","flex","flex-col","rounded-lg","bg-neutral-white"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1"],[1,"text-heading-sm","text-neutral-gray-6"],["size","small","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"flex-auto","w-full","h-full","overflow-auto","py-4","px-6"],["class","flex justify-end mb-4",4,"ngIf"],[1,"p-4","bg-neutral-gray-1","rounded-lg","text-body-md"],[4,"ngFor","ngForOf"],[1,"p-6","flex","gap-x-4"],["cf-button","","size","medium","type","secondary",1,"w-full","justify-center",3,"click"],[1,"flex","justify-end","mb-4"],["cf-button","","size","medium","type","secondary",3,"click"]],template:function(a,p){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._uU(4,"Th\xf4ng tin s\u1ed1 v\xe9"),e.qZA(),e.TgZ(5,"div")(6,"cf-icon",4),e.NdJ("click",function(){return p.close()}),e.qZA()()(),e.TgZ(7,"div",5),e.YNc(8,F,3,0,"div",6),e.TgZ(9,"div",7),e._uU(10," VIRTUAL COUPON RECORD "),e._UZ(11,"br"),e._uU(12),e._UZ(13,"br"),e._uU(14),e._UZ(15,"br"),e._uU(16," CPN A/L FLT CLS DATE BRDOFF TIME ST F/B STAT BAGS"),e._UZ(17,"br"),e.YNc(18,w,3,11,"ng-container",8),e._UZ(19,"br"),e._uU(20),e._UZ(21,"br"),e._uU(22),e._UZ(23,"br")(24,"br"),e._uU(25),e._UZ(26,"br")(27,"br"),e._uU(28," FCMI-0 "),e._UZ(29,"br"),e._uU(30," FORM OF PAYMENT "),e._UZ(31,"br"),e._uU(32),e._UZ(33,"br"),e._uU(34),e._UZ(35,"br"),e._uU(36," ENDORSEMENTS/RESTRICTIONS- "),e._UZ(37,"br"),e._uU(38),e._UZ(39,"br"),e._uU(40," IT- "),e._UZ(41,"br"),e._uU(42," REMARKS- "),e._UZ(43,"br")(44,"br"),e._uU(45," ENTER VCR*CALL TO DISPLAY COUPON DETAILS "),e._UZ(46,"br"),e._uU(47," ENTER VCR*FC TO DISPLAY FARE CALC WITH TAX SUMMARY "),e._UZ(48,"br"),e.qZA()(),e.TgZ(49,"div",9)(50,"button",10),e.NdJ("click",function(){return p.close()}),e._uU(51," \u0110\xf3ng "),e.qZA()()()()),2&a&&(e.xp6(8),e.Q6J("ngIf",p.isAction),e.xp6(4),e.AsE(" ",p.ticketDetail.ticketNumber," NAME-",p.ticketDetail.passengerName," "),e.xp6(2),e.HOy(" TTL NBR OF CPNS- ",p.ticketDetail.ticketInfo.numCoupons," DATE OF ISSUE-",p.ticketDetail.ticketInfo.issueDate," PNR-",p.ticketDetail.ticketInfo.bookingCode," ",p.ticketDetail.ticketInfo.createDate," "),e.xp6(4),e.Q6J("ngForOf",p.ticketDetail.segments),e.xp6(2),e.AsE(" FARE ",p.ticketDetail.pricingInfo.baseFare," ",p.ticketDetail.pricingInfo.taxes," "),e.xp6(2),e.hij(" TOTAL ",p.ticketDetail.pricingInfo.totalFare," "),e.xp6(3),e.hij(" FARE CALC ",p.ticketDetail.fareCalc," "),e.xp6(7),e.AsE(" FOP-AGENCY CREDIT ",p.ticketDetail.paymentCardNumber," APPROVAL CODE-",p.ticketDetail.authorizationCode," "),e.xp6(2),e.lnq(" DATE OF ISSUE-",p.ticketDetail.ticketData.issueDate," ISSUED AT-",p.ticketDetail.ticketData.printStation," ",p.ticketDetail.ticketData.issuingAgent||""," "),e.xp6(4),e.hij(" ",p.ticketDetail.ticketData.endorsements," "))},dependencies:[f.ez,f.sg,f.O5,Z.N8,Z.Xq,C.AxE,C.Sm8],encapsulation:2}),u})();var ne=_(74713),z=_(24006),ee=_(44143),ie=_(24513),O=_(74891),ue=_(88001),$=_(37094),me=_(98184);function se(u,g){1&u&&(e.TgZ(0,"div",2),e._UZ(1,"ticket-item-skeleton")(2,"ticket-item-skeleton")(3,"ticket-item-skeleton")(4,"ticket-item-skeleton"),e.qZA())}function D(u,g){1&u&&e._UZ(0,"cf-icon",82)}function he(u,g){1&u&&e._UZ(0,"cf-icon",83)}function P(u,g){if(1&u&&(e.TgZ(0,"div",84),e._UZ(1,"span"),e.TgZ(2,"span",85),e._uU(3),e.ALo(4,"date"),e.qZA()()),2&u){const a=g.$implicit;e.xp6(3),e.lnq("",a.startPoint," - ",a.endPoint," (",e.xi3(4,3,a.startTime,"HH:mm - dd/MM/yyyy"),")")}}function L(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"div",86),e.NdJ("click",function(){e.CHM(a);const y=e.oxw(2);return e.KtG(y.gotoBookingDetail())}),e._uU(1," M\u1edf booking "),e.qZA()}}function xe(u,g){1&u&&e._UZ(0,"cf-input-hint",91)}function ve(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"div",87)(1,"div",30),e._UZ(2,"cf-icon",31),e._uU(3," Th\xf4ng tin \u0111\u1ea1i l\xfd "),e.qZA(),e.TgZ(4,"div",88)(5,"cf-select",89),e.NdJ("selectedChange",function(y){e.CHM(a);const E=e.oxw(2);return e.KtG(E.onSelectedChange(y))}),e.YNc(6,xe,1,0,"cf-input-hint",90),e.qZA()()()}if(2&u){const a=e.oxw(2);e.xp6(5),e.Q6J("status","default")("data",a.optionAgent)("allowSearch",!0)("formControl",a.agentSelectControl)("status",a.agentSelectControl.invalid&&(a.agentSelectControl.touched||a.agentSelectControl.dirty||a.isSubmitted)?"error":"default"),e.xp6(1),e.Q6J("ngIf",a.agentSelectControl.invalid&&(a.agentSelectControl.touched||a.agentSelectControl.dirty||a.isSubmitted))}}function Ee(u,g){1&u&&(e.TgZ(0,"th",37),e._uU(1,"Chi\u1ebft kh\u1ea5u"),e.qZA())}function be(u,g){if(1&u&&(e.TgZ(0,"td",97),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw().$implicit;e.xp6(1),e.hij(" (",e.lcZ(2,1,a.discountAmount),")")}}function De(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.totalDiscountFarePrice)," ")}}function Ae(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a.total))}}function Te(u,g){if(1&u&&(e.TgZ(0,"tr")(1,"td",92),e._uU(2),e.qZA(),e.TgZ(3,"td",93),e._uU(4),e.qZA(),e.TgZ(5,"td",94),e._uU(6),e.ALo(7,"number"),e.qZA(),e.TgZ(8,"td",94),e._uU(9),e.ALo(10,"number"),e.qZA(),e.YNc(11,be,3,3,"td",95),e.TgZ(12,"td",96),e.YNc(13,De,3,3,"span",48),e.YNc(14,Ae,3,3,"ng-template",null,49,e.W1O),e.qZA()()),2&u){const a=g.$implicit,p=e.MAs(15),y=e.oxw(2);e.xp6(2),e.Oqu(a.name),e.xp6(2),e.Oqu(a.type),e.xp6(2),e.Oqu(e.lcZ(7,7,a.base)),e.xp6(3),e.Oqu(e.lcZ(10,9,a.tax)),e.xp6(2),e.Q6J("ngIf",y.hasDiscountFare),e.xp6(2),e.Q6J("ngIf",a.discountAmount&&y.hasDiscountFare)("ngIfElse",p)}}function ke(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,a.priceDetail.totalDiscountBasePrice)," \u0111")}}function Ue(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,a.priceDetail.totalBasePrice)," \u0111")}}function qe(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,a.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function Ie(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(2);e.xp6(1),e.hij("",e.lcZ(2,1,a.priceDetail.totalPrice)," \u0111")}}function Be(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"button",98),e.NdJ("click",function(y){e.CHM(a);const E=e.oxw(2);return e.KtG(E.onIssue(y))}),e._uU(1," Xu\u1ea5t v\xe9 "),e.qZA()}if(2&u){const a=e.oxw(2);e.Q6J("disabled",a.isLoading)}}function we(u,g){1&u&&(e.TgZ(0,"div"),e._uU(1,"H\u1ec7 th\u1ed1ng ch\u01b0a h\u1ed7 tr\u1ee3 xu\u1ea5t v\xe9 t\u1ef1 \u0111\u1ed9ng cho m\xe3 \u0111\u1eb7t ch\u1ed7 n\xe0y."),e.qZA(),e.TgZ(2,"div"),e._uU(3,"Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3."),e.qZA())}function Ne(u,g){if(1&u&&(e.TgZ(0,"button",99,100),e._uU(3," Xu\u1ea5t v\xe9 "),e.YNc(4,we,4,0,"ng-template",null,101,e.W1O),e.qZA()),2&u){const a=e.MAs(5);e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip",a)}}function Fe(u,g){1&u&&(e.ynx(0),e.O4$(),e.TgZ(1,"svg",102),e._UZ(2,"path",103),e.qZA(),e.kcU(),e.TgZ(3,"div",104),e._uU(4,"\u0110\xe3 gi\u1eef ch\u1ed7"),e.qZA(),e.BQk())}function Je(u,g){1&u&&(e.ynx(0),e.O4$(),e.TgZ(1,"svg",105),e._UZ(2,"path",103),e.qZA(),e.kcU(),e.TgZ(3,"div",104),e._uU(4,"\u0110\xe3 xu\u1ea5t v\xe9"),e.qZA(),e.BQk())}function Se(u,g){1&u&&e._UZ(0,"cf-icon",82)}function Oe(u,g){1&u&&e._UZ(0,"cf-icon",83)}function Qe(u,g){if(1&u&&(e.TgZ(0,"div",106)(1,"div",107)(2,"div",64),e._uU(3),e.qZA(),e.TgZ(4,"div",58),e._uU(5),e.ALo(6,"date"),e.qZA()(),e._UZ(7,"cf-icon",83),e.TgZ(8,"div",107)(9,"div",64),e._uU(10),e.qZA(),e.TgZ(11,"div",58),e._uU(12),e.ALo(13,"date"),e.qZA()()()),2&u){const a=e.oxw(2);e.xp6(3),e.AsE(" ",a.bookingDetail.journeys[0].startPoint,"-",a.bookingDetail.journeys[0].endPoint,""),e.xp6(2),e.hij(" ",e.xi3(6,6,a.bookingDetail.journeys[0].startTime,"HH:mm - dd/MM/yyyy"),""),e.xp6(5),e.AsE(" ",a.bookingDetail.journeys[1].startPoint,"-",a.bookingDetail.journeys[1].endPoint,""),e.xp6(2),e.hij(" ",e.xi3(13,9,a.bookingDetail.journeys[1].startTime,"HH:mm - dd/MM/yyyy"),"")}}function je(u,g){1&u&&(e.TgZ(0,"div",71),e._uU(1," Th\xf4ng tin li\xean h\u1ec7 "),e.qZA())}function Me(u,g){1&u&&e._UZ(0,"cf-input-hint",91)}function Pe(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"div",108)(1,"cf-select",89),e.NdJ("selectedChange",function(y){e.CHM(a);const E=e.oxw(2);return e.KtG(E.onSelectedChange(y))}),e.YNc(2,Me,1,0,"cf-input-hint",90),e.qZA()()}if(2&u){const a=e.oxw(2);e.xp6(1),e.Q6J("status","default")("data",a.optionAgent)("allowSearch",!1)("formControl",a.agentSelectControl)("status",a.agentSelectControl.invalid&&(a.agentSelectControl.touched||a.agentSelectControl.dirty||a.isSubmitted)?"error":"default"),e.xp6(1),e.Q6J("ngIf",a.agentSelectControl.invalid&&(a.agentSelectControl.touched||a.agentSelectControl.dirty||a.isSubmitted))}}function Ye(u,g){if(1&u&&(e.TgZ(0,"div",110)(1,"div",111),e._uU(2,"Chi\u1ebft kh\u1ea5u"),e.qZA(),e.TgZ(3,"div",113),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&u){const a=e.oxw().$implicit;e.xp6(4),e.hij("(",e.lcZ(5,1,a.discountAmount),")")}}function Le(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,a.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function He(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(3);e.xp6(1),e.hij("",e.lcZ(2,1,a.priceDetail.totalPrice)," \u0111")}}function Re(u,g){if(1&u&&(e.TgZ(0,"div",109)(1,"div",110)(2,"div",111),e._uU(3,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(4,"div",104),e._uU(5),e.qZA()(),e.TgZ(6,"div",110)(7,"div",111),e._uU(8,"Lo\u1ea1i"),e.qZA(),e.TgZ(9,"div",104),e._uU(10),e.qZA()(),e.TgZ(11,"div",110)(12,"div",111),e._uU(13,"Gi\xe1 v\xe9"),e.qZA(),e.TgZ(14,"div",104),e._uU(15),e.ALo(16,"number"),e.qZA()(),e.TgZ(17,"div",110)(18,"div",111),e._uU(19,"Thu\u1ebf ph\xed"),e.qZA(),e.TgZ(20,"div",104),e._uU(21),e.ALo(22,"number"),e.qZA()(),e.YNc(23,Ye,6,3,"div",112),e.TgZ(24,"div",110)(25,"div",111),e._uU(26,"T\u1ed5ng chi ph\xed"),e.qZA(),e.TgZ(27,"div",104),e.YNc(28,Le,3,3,"span",48),e.YNc(29,He,3,3,"ng-template",null,49,e.W1O),e.qZA()()()),2&u){const a=g.$implicit,p=e.MAs(30),y=e.oxw(2);e.xp6(5),e.Oqu(a.name),e.xp6(5),e.Oqu(a.type),e.xp6(5),e.Oqu(e.lcZ(16,7,a.base)),e.xp6(6),e.Oqu(e.lcZ(22,9,a.tax)),e.xp6(2),e.Q6J("ngIf",y.hasDiscountFare),e.xp6(5),e.Q6J("ngIf",y.priceDetail.totalDiscountFareCharge&&y.hasDiscountFare)("ngIfElse",p)}}function Ge(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,a.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function ze(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(2);e.xp6(1),e.hij("",e.lcZ(2,1,a.priceDetail.totalPrice)," \u0111")}}function $e(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"button",114),e.NdJ("click",function(y){e.CHM(a);const E=e.oxw(2);return e.KtG(E.onIssue(y))}),e._uU(1,"Xu\u1ea5t v\xe9"),e.qZA()}}function Ve(u,g){1&u&&(e.TgZ(0,"button",115,100),e._uU(3,"Xu\u1ea5t v\xe9"),e.qZA()),2&u&&e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip","H\u1ec7 th\u1ed1ng ch\u01b0a h\u1ed7 tr\u1ee3 xu\u1ea5t v\xe9 t\u1ef1 \u0111\u1ed9ng cho m\xe3 \u0111\u1eb7t ch\u1ed7 n\xe0y. Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3")}function Ke(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,a.priceDetail.totalDiscountBasePrice)," \u0111")}}function Xe(u,g){if(1&u&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&u){const a=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,a.priceDetail.totalBasePrice)," \u0111")}}function We(u,g){if(1&u&&(e.TgZ(0,"div",116)(1,"div",117)(2,"div",118),e._uU(3,"T\u1ed5ng gi\xe1 g\u1ed1c"),e.qZA(),e.TgZ(4,"div",119),e.YNc(5,Ke,3,3,"span",46),e.YNc(6,Xe,3,3,"span",46),e.qZA()(),e.TgZ(7,"div",117)(8,"div",118),e._uU(9,"D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam"),e.qZA(),e.TgZ(10,"div",119),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",117)(14,"div",118),e._uU(15,"Ph\xed d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(16,"div",119),e._uU(17),e.ALo(18,"number"),e.qZA()()()),2&u){const a=e.oxw(2);e.xp6(5),e.Q6J("ngIf",a.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!a.priceDetail.totalDiscountBasePrice),e.xp6(5),e.hij("",e.lcZ(12,4,a.priceDetail.totalAddonService),"\u0111"),e.xp6(6),e.hij("",e.lcZ(18,6,a.priceDetail.totalServiceFee),"\u0111")}}function et(u,g){if(1&u){const a=e.EpF();e.TgZ(0,"div",3),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._uU(3,"Chi ti\u1ebft \u0111\u1eb7t ch\u1ed7"),e.qZA()(),e.TgZ(4,"div",6)(5,"div",7)(6,"div",8)(7,"div"),e._UZ(8,"img",9),e.qZA(),e.TgZ(9,"div",10)(10,"span",11),e._uU(11),e.qZA(),e.TgZ(12,"span",12),e._uU(13),e.qZA()(),e.TgZ(14,"div",13),e._uU(15),e.qZA()(),e._UZ(16,"div",14),e.TgZ(17,"div",15)(18,"div",16)(19,"span"),e._uU(20),e.qZA(),e.YNc(21,D,1,0,"cf-icon",17),e.YNc(22,he,1,0,"cf-icon",18),e.TgZ(23,"span"),e._uU(24),e.qZA()(),e.YNc(25,P,5,6,"div",19),e.qZA(),e._UZ(26,"div",14),e.TgZ(27,"div",20)(28,"div",21),e._uU(29,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(30,"div",22),e._uU(31),e.qZA()(),e._UZ(32,"div",14),e.TgZ(33,"div",20)(34,"div",21),e._uU(35,"Tr\u1ea1ng th\xe1i"),e.qZA(),e.TgZ(36,"div",23),e._UZ(37,"cf-icon",24),e.TgZ(38,"div",25)(39,"label",26),e._uU(40),e.qZA()()()()(),e.YNc(41,L,2,0,"div",27),e.qZA(),e.YNc(42,ve,7,6,"div",28),e.TgZ(43,"div",29)(44,"div",30),e._UZ(45,"cf-icon",31),e._uU(46," Chi ti\u1ebft chi ph\xed "),e.qZA(),e.TgZ(47,"div",32)(48,"div")(49,"table",33)(50,"thead")(51,"tr",34)(52,"th",35),e._uU(53,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(54,"th",36),e._uU(55,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(56,"th",37),e._uU(57,"Gi\xe1 v\xe9"),e.qZA(),e.TgZ(58,"th",37),e._uU(59,"Thu\u1ebf ph\xed"),e.qZA(),e.YNc(60,Ee,2,0,"th",38),e.TgZ(61,"th",39),e._uU(62,"T\u1ed5ng gi\xe1"),e.qZA()()(),e.TgZ(63,"tbody"),e.YNc(64,Te,16,11,"tr",40),e.qZA()(),e._UZ(65,"hr",41),e.qZA(),e.TgZ(66,"div",42)(67,"div",43)(68,"div",44),e._uU(69,"T\u1ed5ng gi\xe1 g\u1ed1c"),e.qZA(),e.TgZ(70,"div",45),e.YNc(71,ke,3,3,"span",46),e.YNc(72,Ue,3,3,"span",46),e.qZA()(),e.TgZ(73,"div",43)(74,"div",44),e._uU(75,"D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam"),e.qZA(),e.TgZ(76,"div",45),e._uU(77),e.ALo(78,"number"),e.qZA()(),e.TgZ(79,"div",43)(80,"div",44),e._uU(81,"Ph\xed d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(82,"div",45),e._uU(83),e.ALo(84,"number"),e.qZA()(),e.TgZ(85,"div",43)(86,"div",44),e._uU(87,"T\u1ed5ng chi ph\xed"),e.qZA(),e.TgZ(88,"div",47),e.YNc(89,qe,3,3,"span",48),e.YNc(90,Ie,3,3,"ng-template",null,49,e.W1O),e.qZA()()()(),e.TgZ(92,"div",50),e.YNc(93,Be,2,1,"button",51),e.YNc(94,Ne,6,6,"button",52),e.qZA()(),e.TgZ(95,"div",53)(96,"div",54),e._uU(97," Chi ti\u1ebft \u0111\u1eb7t ch\u1ed7 "),e.qZA(),e.TgZ(98,"div",55)(99,"div",56)(100,"div",57)(101,"div",58),e._uU(102,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(103,"div",59)(104,"div",60),e._uU(105),e.qZA(),e._UZ(106,"cf-icon",61),e.qZA()(),e.TgZ(107,"div",59),e.YNc(108,Fe,5,0,"ng-container",46),e.YNc(109,Je,5,0,"ng-container",46),e.qZA()(),e.TgZ(110,"div",62)(111,"div",59),e._UZ(112,"img",63),e.TgZ(113,"div",57)(114,"div",64),e._uU(115),e.qZA(),e.TgZ(116,"div",58),e._uU(117),e.qZA()()(),e.TgZ(118,"div",65)(119,"div",66),e._uU(120),e.qZA(),e.YNc(121,Se,1,0,"cf-icon",17),e.YNc(122,Oe,1,0,"cf-icon",18),e.TgZ(123,"div",66),e._uU(124),e.qZA()()(),e.YNc(125,Qe,14,12,"div",67),e.TgZ(126,"div",68),e.NdJ("click",function(){e.CHM(a);const y=e.oxw();return e.KtG(y.gotoBookingDetail())}),e._uU(127,"M\u1edf booking"),e.qZA()(),e.YNc(128,je,2,0,"div",69),e.YNc(129,Pe,3,6,"div",70),e.TgZ(130,"div",71),e._uU(131," Chi ti\u1ebft chi ph\xed "),e.qZA(),e.YNc(132,Re,31,11,"div",72),e.TgZ(133,"div",73),e.NdJ("click",function(){e.CHM(a);const y=e.MAs(147),E=e.oxw();return e.KtG(E.toggle(y))}),e.TgZ(134,"div",74)(135,"div",75)(136,"div",76),e._uU(137,"T\u1ed5ng chi ph\xed:"),e.qZA(),e.TgZ(138,"div",77),e.YNc(139,Ge,3,3,"span",48),e.YNc(140,ze,3,3,"ng-template",null,49,e.W1O),e.qZA(),e._UZ(142,"cf-icon",78),e.qZA()(),e.TgZ(143,"div"),e.YNc(144,$e,2,0,"button",79),e.YNc(145,Ve,4,6,"button",80),e.qZA()(),e.YNc(146,We,19,8,"ng-template",null,81,e.W1O),e.qZA()}if(2&u){const a=e.MAs(91),p=e.oxw();e.xp6(8),e.Q6J("src","assets/airline-logo/"+p.bookingDetail.airlineSystem+".png",e.LSH),e.xp6(3),e.hij("",p.bookingDetail.airlineSystem," -\xa0"),e.xp6(2),e.Oqu(p.bookingDetail.airlineName),e.xp6(2),e.hij(" H\u1ec7 th\u1ed1ng: ",p.bookingDetail.airlineSystem," "),e.xp6(5),e.Oqu(p.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngIf",1===p.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",p.bookingDetail.journeys.length>1),e.xp6(2),e.Oqu(p.bookingDetail.endPoint),e.xp6(1),e.Q6J("ngForOf",p.bookingDetail.journeys),e.xp6(6),e.Oqu(p.bookingDetail.bookingCode),e.xp6(9),e.Oqu(p.bookingDetail.statusText),e.xp6(1),e.Q6J("ngIf",p.bookingDetail.internal),e.xp6(1),e.Q6J("ngIf",!p.bookingDetail.internal),e.xp6(18),e.Q6J("ngIf",p.hasDiscountFare),e.xp6(4),e.Q6J("ngForOf",null==p.priceDetail?null:p.priceDetail.passengers),e.xp6(7),e.Q6J("ngIf",p.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!p.priceDetail.totalDiscountBasePrice),e.xp6(5),e.hij("",e.lcZ(78,44,p.priceDetail.totalAddonService)," \u0111 "),e.xp6(6),e.hij("",e.lcZ(84,46,p.priceDetail.totalServiceFee)," \u0111 "),e.xp6(6),e.Q6J("ngIf",p.priceDetail.totalDiscountFareCharge&&p.hasDiscountFare)("ngIfElse",a),e.xp6(4),e.Q6J("ngIf",!p.isDisableIssue),e.xp6(1),e.Q6J("ngIf",p.isDisableIssue),e.xp6(11),e.Oqu(p.bookingDetail.bookingCode),e.xp6(3),e.Q6J("ngIf","BOOKED"===p.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","ISSUED"===p.bookingDetail.status),e.xp6(3),e.Q6J("src","assets/airline-logo/"+p.bookingDetail.airlineSystem+".png",e.LSH),e.xp6(3),e.Oqu(p.bookingDetail.flightNumber),e.xp6(2),e.Oqu(p.bookingDetail.airlineName),e.xp6(3),e.Oqu(p.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngIf",1===p.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",p.bookingDetail.journeys.length>1),e.xp6(2),e.Oqu(p.bookingDetail.endPoint),e.xp6(1),e.Q6J("ngIf",2===p.bookingDetail.journeys.length),e.xp6(3),e.Q6J("ngIf",!p.bookingDetail.internal),e.xp6(1),e.Q6J("ngIf",!p.bookingDetail.internal),e.xp6(3),e.Q6J("ngForOf",null==p.priceDetail?null:p.priceDetail.passengers),e.xp6(1),e.ekj("!z-1000",p.increaseZIndex),e.xp6(6),e.Q6J("ngIf",p.priceDetail.totalDiscountFareCharge&&p.hasDiscountFare)("ngIfElse",a),e.xp6(3),e.Q6J("icon",p.iconChevron),e.xp6(2),e.Q6J("ngIf",!p.isDisableIssue),e.xp6(1),e.Q6J("ngIf",p.isDisableIssue)}}let tt=(()=>{class u{constructor(a,p,y,E){this._fb=p,this._bottomSheetService=y,this._permissionService=E,this.isLoading=!1,this.optionAgent=[],this.hasDiscountFare=!1,this.issueBooking=new e.vpe,this.gotoBooking=new e.vpe,this.selectedAgent=new e.vpe,this.isSubmitted=!1,this.increaseZIndex=!1,this.iconChevron="chevron_up",this.isBottomSheetOpen=!1,this.isDisableIssue=!1,a.registerIcons([C.llu,C.B2I,C.Ffn,C._tC,C.Ey$,C.fqi,C.n78]),this.agentSelectControl=this._fb.control("")}ngOnChanges(a){var p;this.agentSelectControl=null!==(p=this.bookingDetail)&&void 0!==p&&p.internal?this._fb.control(""):this._fb.control("",z.kI.required),this.bookingDetail.provider===ue.QK.BSP&&(!this.bookingDetail.ticketingAllowed||!this._permissionService.hasPermission(m.or.CanIssuedFlightTicketBSP))&&(this.isDisableIssue=!0),this.bookingDetail.provider===ue.QK.AIR_1G&&(!this.bookingDetail.ticketingAllowed||!this._permissionService.hasPermission(m.or.CanIssuedFlightTicket1G))&&(this.isDisableIssue=!0)}onIssue(a){a.stopPropagation(),this.isSubmitted=!0,this.agentSelectControl.valid&&this.issueBooking.emit()}gotoBookingDetail(){this.gotoBooking.emit()}onSelectedChange(a){this.selectedAgent.emit(a)}toggle(a){this.isBottomSheetOpen?this.closeBotomSheet():this.openBottomSheet(a)}openBottomSheet(a){this.bottomSheetRef=this._bottomSheetService.open(a,{headerTitle:"Gi\xe1 v\xe9",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4"}),this.increaseZIndex=!0,this.iconChevron="chevron_down",this.isBottomSheetOpen=!0,this.bottomSheetRef.backdropClick().subscribe(()=>{this._bottomSheetService.dismiss(),this.increaseZIndex=!1,this.iconChevron="chevron_up",this.isBottomSheetOpen=!1}),this.bottomSheetRef.containerInstance._rightButtonClick.subscribe(()=>{this._bottomSheetService.dismiss(),this.increaseZIndex=!1,this.iconChevron="chevron_up",this.isBottomSheetOpen=!1})}closeBotomSheet(){this._bottomSheetService.dismiss(),this.increaseZIndex=!1,this.iconChevron="chevron_up",this.isBottomSheetOpen=!1}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(C.KNP),e.Y36(z.qu),e.Y36($.a2),e.Y36(m.$A))},u.\u0275cmp=e.Xpm({type:u,selectors:[["issue-booking-detail"]],inputs:{bookingDetail:"bookingDetail",priceDetail:"priceDetail",isLoading:"isLoading",optionAgent:"optionAgent",hasDiscountFare:"hasDiscountFare"},outputs:{issueBooking:"issueBooking",gotoBooking:"gotoBooking",selectedAgent:"selectedAgent"},standalone:!0,features:[e.TTD,e.jDz],decls:3,vars:2,consts:[["class","min-w-[750px] w-full h-full",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"min-w-[750px]","w-full","h-full"],[1,"flex","gap-x-[20px]","mb-4","md:hidden"],[1,"w-1","bg-primary-2-4"],[1,"text-heading-md","text-neutral-black"],[1,"bg-white","py-4","px-6","mb-2","shadow-cf-md","md:hidden"],[1,"flex","justify-between","items-center","gap-x-7","mb-4"],[1,"h-full","w-full","flex","flex-col","gap-y-1.5","justify-center","items-center"],[1,"w-[120px]","h-[60px]","object-contain",3,"src"],[1,"text-body-sm","flex","flex-nowrap"],[1,"text-espressive-sm","whitespace-nowrap"],[1,"whitespace-nowrap"],[1,"h-5","flex","items-center","px-2","bg-neutral-gray-1","rounded","text-espressive-sm","text-neutral-black"],[1,"w-[2px]","h-[108px]","border-l","border-dashed","border-neutral-gray-1"],[1,"h-full","w-[206px]","shrink-0","flex","flex-col","items-start","justify-center"],[1,"text-heading-sm","py-1","px-3","bg-neutral-gray-1","rounded","flex","gap-x-2","items-center","w-fit"],["icon","arrow_right","size","small",4,"ngIf"],["icon","switch","size","small",4,"ngIf"],["class","mt-3",4,"ngFor","ngForOf"],[1,"h-full","w-full","flex","flex-col","items-start","py-3","gap-[20px]"],[1,"text-body-md","text-neutral-black"],[1,"text-heading-lg"],[1,"text-espressive-md","text-neutral-black","flex","gap-2.5","items-center"],["icon","checkbox_checked","size","medium",1,"text-secondary-5-4"],[1,"flex","flex-col","items-center"],[1,"text-espressive-md","text-neutral-black","whitespace-nowrap"],["class","bg-secondary-3-1 py-1.5 rounded text-center text-espressive-md text-secondary-3-4 cursor-pointer",3,"click",4,"ngIf"],["class","bg-white rounded shadow-cf-md flex flex-col mb-2 md:hidden",4,"ngIf"],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","md:hidden"],[1,"text-heading-sm","text-neutral-black","p-6","flex","items-center","gap-x-2"],["icon","circle_information","size","small"],[1,"!pt-0"],[1,"table-auto","w-full"],[1,"border-b","border-neutral-gray-1"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","py-3","pl-3"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","py-3"],[1,"text-right","text-espressive-sm","text-neutral-gray-4","py-3"],["class","text-right text-espressive-sm text-neutral-gray-4 py-3",4,"ngIf"],[1,"text-right","text-espressive-sm","text-neutral-gray-4","py-3","pr-3"],[4,"ngFor","ngForOf"],[1,"text-neutral-gray-1","w-full","mb-4"],[1,"flex","flex-col","items-end","gap-[10px]","pr-3"],[1,"flex","justify-end","items-center","gap-8"],[1,"text-espressive-sm","text-neutral-gray-4"],[1,"min-w-[120px]","text-end","text-body-dm","text-neutral-black"],[4,"ngIf"],[1,"min-w-[120px]","text-end","text-heading-md","text-primary-1-4"],[4,"ngIf","ngIfElse"],["noDiscountTempl",""],[1,"text-right","py-6","px-4","border-t","border-neutral-gray-1"],["cf-button","","size","medium",3,"disabled","click",4,"ngIf"],["cf-button","","size","medium","cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip",4,"ngIf"],[1,"flex-col","w-screen","hidden","md:flex","p-4","pt-0","pb-16"],[1,"text-express-sm","mb-3"],[1,"flex","flex-col","p-3","rounded-lg","bg-neutral-white"],[1,"flex","justify-between"],[1,"flex","flex-col","gap-y-1"],[1,"text-espressive-xs","text-neutral-gray-4"],[1,"flex","items-center","gap-x-2"],[1,"text-heading-md","text-neutral-gray-6"],["icon","copy","size","small",1,"text-neutral-gray-4"],[1,"flex","items-center","justify-between","mt-3"],[1,"w-9","h-9","object-contain",3,"src"],[1,"text-heading-xs","text-neutral-gray-6"],[1,"flex","items-center","justify-end","gap-x-2","px-3","py-1","rounded","bg-neutral-gray-1"],[1,"text-heading-sm","text-neutral-black"],["class","flex justify-between items-center mt-3",4,"ngIf"],[1,"w-full","flex","justify-center","items-center","px-[15px]","py-[9px]","cursor-pointer","bg-secondary-3-1","rounded","text-heading-xs","text-secondary-3-4","mt-4",3,"click"],["class"," text-express-sm mb-3 mt-4",4,"ngIf"],["class","p-3 rounded-lg bg-neutral-white",4,"ngIf"],[1,"text-express-sm","mb-3","mt-4"],["class","flex flex-col rounded-lg bg-neutral-white p-3 gap-y-2 mb-4",4,"ngFor","ngForOf"],[1,"fixed","bottom-0","left-0","w-screen","bg-white","shadow-cf-large-top","p-3","flex","items-center","justify-between","z-[1]",3,"click"],[1,"flex","flex-col"],[1,"flex","items-center","gap-x-1"],[1,"text-express-xs","text-neutral-gray-4","mt-1"],[1,"text-heading-sm","text-neutral-gray-6"],["size","small",3,"icon"],["class","w-24 justify-center","cf-button","",3,"click",4,"ngIf"],["class","w-24 justify-center","cf-button","","cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip",4,"ngIf"],["totalPriceBts",""],["icon","arrow_right","size","small"],["icon","switch","size","small"],[1,"mt-3"],[1,"text-espressive-sm","text-neutral-black"],[1,"bg-secondary-3-1","py-1.5","rounded","text-center","text-espressive-md","text-secondary-3-4","cursor-pointer",3,"click"],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","mb-2","md:hidden"],[1,"px-6","pb-6"],["textField","name","valueField","id","placeholder","Ch\u1ecdn \u0111\u1ea1i l\xfd",1,"w-full","!max-w-full",3,"status","data","allowSearch","formControl","selectedChange"],["cfHint","","hint","Vui l\xf2ng ch\u1ecdn \u0111\u1ea1i l\xfd.",4,"ngIf"],["cfHint","","hint","Vui l\xf2ng ch\u1ecdn \u0111\u1ea1i l\xfd."],[1,"text-left","text-body-md","text-neutral-black","py-3","pl-3","uppercase"],[1,"text-left","text-body-md","text-neutral-black","py-3"],[1,"text-right","text-body-md","text-neutral-black","py-3"],["class","text-right text-body-md text-secondary-5-3 py-3",4,"ngIf"],[1,"text-right","text-body-md","text-neutral-black","py-3","pr-3"],[1,"text-right","text-body-md","text-secondary-5-3","py-3"],["cf-button","","size","medium",3,"disabled","click"],["cf-button","","size","medium","cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip"],["trigger","","originOverlay","cdkOverlayOrigin"],["toolTipTemplate",""],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"text-secondary-7-4"],["d","M7.99968 1.33337C6.68114 1.33337 5.3922 1.72437 4.29588 2.45691C3.19955 3.18945 2.34506 4.23064 1.84048 5.44882C1.3359 6.66699 1.20387 8.00744 1.46111 9.30064C1.71834 10.5939 2.35328 11.7817 3.28563 12.7141C4.21798 13.6464 5.40587 14.2814 6.69908 14.5386C7.99228 14.7958 9.33273 14.6638 10.5509 14.1592C11.7691 13.6547 12.8103 12.8002 13.5428 11.7038C14.2754 10.6075 14.6663 9.31858 14.6663 8.00004C14.6612 6.23351 13.9572 4.54079 12.7081 3.29166C11.4589 2.04253 9.76621 1.3385 7.99968 1.33337ZM6.88857 11.0078L4.27357 8.39282C4.05664 8.17589 4.05664 7.82419 4.27357 7.60726C4.49049 7.39034 4.8422 7.39034 5.05912 7.60726L6.88857 9.43671L10.9402 5.38504C11.1572 5.16812 11.5089 5.16812 11.7258 5.38504C11.9427 5.60197 11.9427 5.95367 11.7258 6.1706L6.88857 11.0078Z","fill","currentColor"],[1,"text-espressive-md","text-neutral-gray-6"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"text-secondary-5-4"],[1,"flex","justify-between","items-center","mt-3"],[1,"flex","flex-col","gap-y-1","items-center"],[1,"p-3","rounded-lg","bg-neutral-white"],[1,"flex","flex-col","rounded-lg","bg-neutral-white","p-3","gap-y-2","mb-4"],[1,"flex","items-center","gap-x-5"],[1,"text-body-sm","text-neutral-gray-4","w-[104px]"],["class","flex items-center gap-x-5",4,"ngIf"],[1,"text-espressive-md","text-secondary-5-3"],["cf-button","",1,"w-24","justify-center",3,"click"],["cf-button","","cf-button","","size","medium","type","secondary","tabIndex","-1","cdkOverlayOrigin","",1,"w-24","justify-center",3,"disabled","disabledOneClick","manualHandle","placement","cfTooltip"],[1,"w-full","flex","flex-col","py-2","px-4","gap-y-1.5","pb-[75px]"],[1,"flex","justify-between","w-full"],[1,"text-body-sm","text-neutral-gray-4"],[1,"text-body-md-short","text-neutral-gray-6"]],template:function(a,p){if(1&a&&(e.YNc(0,se,5,0,"div",0),e.YNc(1,et,148,48,"ng-template",null,1,e.W1O)),2&a){const y=e.MAs(2);e.Q6J("ngIf",p.isLoading)("ngIfElse",y)}},dependencies:[f.ez,f.sg,f.O5,f.JJ,f.uU,ee.j$,ee.v2,l.IA,C.AxE,C.Sm8,Z.N8,Z.Xq,ne.q,z.u5,z.JJ,z.UX,z.oH,ie.Lk,O.f,me.xu],encapsulation:2}),u})(),nt=(()=>{class u{constructor(a,p,y,E){this.ref=a,this.bottomSheetData=p,this.bottomSheetRef=y,E.registerIcons([C.UNF]),a&&(this.priceChangeData=a.data.priceChangeData),p&&(this.priceChangeData=p.priceChangeData)}close(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}ok(){this.ref&&this.ref.close(!0),this.bottomSheetData&&this.bottomSheetRef.dismiss(!0)}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(K.gb,8),e.Y36($.Rr,8),e.Y36($.Zu,8),e.Y36(C.KNP))},u.\u0275cmp=e.Xpm({type:u,selectors:[["price-ticket-change"]],standalone:!0,features:[e.jDz],decls:29,vars:10,consts:[[1,"w-[480px]","rounded-lg","bg-neutral-white","flex","flex-col","md:w-full","md:justify-between","md:h-full"],[1,"flex","justify-end","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],["size","small","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],[1,"px-6","py-2","flex","flex-col","gap-y-4","justify-center","md:p-4"],[1,"text-heading-sm","text-neutral-gray-6","md:hidden"],[1,"text-body-md","text-neutral-gray-5"],[1,"flex","flex-col","gap-y-4","border","border-neutral-gray-2","rounded-lg","p-3"],[1,"flex","justify-between"],[1,"flex","justify-end","text-primary-1-3"],[1,"flex","justify-between","border-t","border-neutral-gray-2","pt-2"],[1,"p-6","flex","gap-x-4","md:p-4"],["cf-button","","size","medium","type","secondary",1,"w-full","justify-center",3,"click"],["cf-button","","size","medium","color","primary-1",1,"w-full","justify-center",3,"click"]],template:function(a,p){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"cf-icon",2),e.NdJ("click",function(){return p.close()}),e.qZA()(),e.TgZ(3,"div",3)(4,"div",4),e._uU(5,"Chi ph\xed thay \u0111\u1ed5i"),e.qZA(),e.TgZ(6,"div",5),e._uU(7,"Chi ph\xed cho (c\xe1c) chuy\u1ebfn bay \u0111\u01b0\u1ee3c ch\u1ecdn \u0111\xe3 \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt. Vui l\xf2ng ki\u1ec3m tra chi ph\xed m\u1edbi tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c"),e.qZA(),e.TgZ(8,"div",6)(9,"div",7)(10,"div"),e._uU(11,"T\u1ed5ng chi ph\xed c\u0169"),e.qZA(),e.TgZ(12,"div"),e._uU(13),e.ALo(14,"number"),e.qZA()(),e.TgZ(15,"div",8),e._uU(16),e.ALo(17,"number"),e.qZA(),e.TgZ(18,"div",9)(19,"div"),e._uU(20,"T\u1ed5ng chi ph\xed m\u1edbi"),e.qZA(),e.TgZ(21,"div"),e._uU(22),e.ALo(23,"number"),e.qZA()()()(),e.TgZ(24,"div",10)(25,"button",11),e.NdJ("click",function(){return p.close()}),e._uU(26," H\u1ee7y "),e.qZA(),e.TgZ(27,"button",12),e.NdJ("click",function(){return p.ok()}),e._uU(28," Xu\u1ea5t v\xe9 "),e.qZA()()()),2&a&&(e.xp6(13),e.hij("",e.lcZ(14,4,p.priceChangeData.oldPrice)," \u0111"),e.xp6(3),e.AsE("",p.priceChangeData.type,"",e.lcZ(17,6,p.priceChangeData.priceGap)," \u0111"),e.xp6(6),e.hij("",e.lcZ(23,8,p.priceChangeData.newPrice)," \u0111"))},dependencies:[f.ez,f.JJ,C.AxE,C.Sm8,Z.N8,Z.Xq],encapsulation:2}),u})();function it(u,g){if(1&u&&(e.TgZ(0,"div",9)(1,"div"),e.O4$(),e.TgZ(2,"svg",10),e._UZ(3,"path",11)(4,"path",12)(5,"path",13),e.qZA()(),e.kcU(),e.TgZ(6,"div",14)(7,"div",15),e._uU(8," Chi\u1ebft kh\u1ea5u cho h\xe0nh tr\xecnh hi\u1ec7n t\u1ea1i \u0111\xe3 thay \u0111\u1ed5i: "),e.qZA(),e.TgZ(9,"ul",16)(10,"li")(11,"span",15),e._uU(12,"Gi\xe1 v\u1edbi chi\u1ebft kh\u1ea5u c\u0169: "),e.qZA(),e.TgZ(13,"span",17),e._uU(14),e.ALo(15,"number"),e.qZA()(),e.TgZ(16,"li")(17,"span",15),e._uU(18,"Gi\xe1 v\u1edbi chi\u1ebft kh\u1ea5u m\u1edbi: "),e.qZA(),e.TgZ(19,"span",17),e._uU(20),e.ALo(21,"number"),e.qZA()()(),e.TgZ(22,"div",15),e._uU(23,"B\u1ea1n c\xf3 mu\u1ed1n ti\u1ebfp t\u1ee5c xu\u1ea5t v\xe9 kh\xf4ng?"),e.qZA()()()),2&u){const a=e.oxw();e.xp6(14),e.hij("",e.lcZ(15,2,a.discountChangeData.oldPrice)," \u0111"),e.xp6(6),e.hij("",e.lcZ(21,4,a.discountChangeData.newPrice)," \u0111")}}function ot(u,g){if(1&u&&(e.TgZ(0,"div",18)(1,"div"),e.O4$(),e.TgZ(2,"svg",10),e._UZ(3,"path",11)(4,"path",12)(5,"path",13),e.qZA()(),e.kcU(),e.TgZ(6,"div",19)(7,"div",15),e._uU(8," H\xe0nh tr\xecnh hi\u1ec7n t\u1ea1i kh\xf4ng c\xf2n \u0111\u1ee7 \u0111i\u1ec1u ki\xean \u0111\u1ec3 \xe1p d\u1ee5ng chi\u1ebft kh\u1ea5u t\u1ef1 \u0111\u1ed9ng. Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 ki\u1ec3m tra th\xf4ng tin chi\u1ebft kh\u1ea5u sau khi xu\u1ea5t v\xe9. "),e.qZA(),e.TgZ(9,"div",20)(10,"div",21),e._uU(11,"T\u1ed5ng chi ph\xed"),e.qZA(),e.TgZ(12,"div",15),e._uU(13),e.ALo(14,"number"),e.qZA()()()()),2&u){const a=e.oxw();e.xp6(13),e.hij("",e.lcZ(14,1,a.discountChangeData.newPrice)," \u0111")}}let rt=(()=>{class u{constructor(a,p,y,E){this.ref=p,this.bottomSheetData=y,this.bottomSheetRef=E,a.registerIcons([C.UNF]),p&&(this.discountChangeData=p.data.discountChangeData),y&&(this.discountChangeData=y.discountChangeData)}close(){this.ref&&this.ref.close(!1),this.bottomSheetData&&this.bottomSheetRef.dismiss(!1)}ok(){this.ref&&this.ref.close(!0),this.bottomSheetData&&this.bottomSheetRef.dismiss(!0)}}return u.\u0275fac=function(a){return new(a||u)(e.Y36(C.KNP),e.Y36(K.gb,8),e.Y36($.Rr,8),e.Y36($.Zu,8))},u.\u0275cmp=e.Xpm({type:u,selectors:[["discount-fare-change"]],hostAttrs:[1,"md:w-full"],standalone:!0,features:[e.jDz],decls:12,vars:2,consts:[[1,"w-[480px]","rounded-lg","bg-neutral-white","flex","flex-col","md:w-full","md:justify-between","md:h-full"],[1,"flex","justify-between","items-center","px-6","py-[13px]","border-b","border-b-neutral-gray-1","md:hidden"],[1,"text-heading-xs","text-neutral-black"],["size","medium","icon","close",1,"text-neutral-gray-4","cursor-pointer",3,"click"],["class","px-6 pt-6 md:p-4 flex items-center gap-x-4",4,"ngIf"],["class","px-6 pt-6 flex items-center md:p-4 gap-x-4",4,"ngIf"],[1,"p-6","flex","gap-x-4","justify-end","md:p-4"],["cf-button","","size","medium","type","secondary",1,"md:w-full","justify-center",3,"click"],["cf-button","","size","medium","color","primary-1",1,"md:w-full","justify-center",3,"click"],[1,"px-6","pt-6","md:p-4","flex","items-center","gap-x-4"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1.23916 18.3887L10.1497 3.95489C10.3277 3.66664 10.594 3.42543 10.92 3.25719C11.246 3.08895 11.6194 3.00005 12 3.00005C12.3806 3.00005 12.754 3.08895 13.08 3.25719C13.406 3.42543 13.6723 3.66664 13.8503 3.95489L22.7608 18.3887C22.9281 18.6611 23.0101 18.9659 22.999 19.2736C22.9879 19.5812 22.8839 19.8811 22.6973 20.1441C22.5106 20.4071 22.2477 20.6241 21.934 20.7741C21.6204 20.9241 21.2667 21.002 20.9075 21H3.08847C2.72962 21.0014 2.37647 20.9231 2.06336 20.7729C1.75026 20.6226 1.48787 20.4055 1.3017 20.1426C1.11553 19.8797 1.01193 19.5801 1.00097 19.2727C0.99001 18.9654 1.07207 18.6608 1.23916 18.3887Z","fill","#FCB40A"],["d","M12 18.75C11.5858 18.75 11.25 18.4143 11.25 18L11.25 17.9901C11.25 17.5758 11.5858 17.2401 12 17.2401C12.4142 17.2401 12.75 17.5758 12.75 17.9901L12.75 18C12.75 18.4143 12.4142 18.75 12 18.75Z","fill","#2C2C2C"],["d","M12 15.75C11.5858 15.75 11.25 15.4142 11.25 15L11.25 8.00002C11.25 7.5858 11.5858 7.25002 12 7.25002C12.4142 7.25002 12.75 7.5858 12.75 8.00002L12.75 15C12.75 15.4142 12.4142 15.75 12 15.75Z","fill","#2C2C2C"],[1,"flex","flex-col","justify-center"],[1,"text-body-md","text-neutral-gray-5"],[1,"list-disc","pl-[30px]"],[1,"text-express-md","text-neutral-gray-6"],[1,"px-6","pt-6","flex","items-center","md:p-4","gap-x-4"],[1,"flex","flex-col","gap-y-4","justify-center"],[1,"flex","items-center","gap-x-2"],[1,"text-express-md","text-neutral-gray-5"]],template:function(a,p){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._uU(3,"Th\xf4ng b\xe1o thay \u0111\u1ed5i chi\u1ebft kh\u1ea5u"),e.qZA(),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return p.close()}),e.qZA()(),e.YNc(5,it,24,6,"div",4),e.YNc(6,ot,15,3,"div",5),e.TgZ(7,"div",6)(8,"button",7),e.NdJ("click",function(){return p.close()}),e._uU(9," H\u1ee7y "),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return p.ok()}),e._uU(11," \u0110\u1ed3ng \xfd & Xu\u1ea5t v\xe9 "),e.qZA()()()),2&a&&(e.xp6(5),e.Q6J("ngIf","DISCOUNT_REDUCED"===p.discountChangeData.type),e.xp6(1),e.Q6J("ngIf","DISCOUNT_REDUCED"!==p.discountChangeData.type))},dependencies:[f.ez,f.O5,f.JJ,C.AxE,C.Sm8,Z.N8,Z.Xq],encapsulation:2}),u})()},57085:(X,J,_)=>{_.d(J,{bz:()=>f,fJ:()=>q,$K:()=>Z,DW:()=>C,Ab:()=>c,i4:()=>m,aV:()=>l});const f=(h,d)=>h.get(d);var e=_(15439);const Z=(h,d)=>b=>{const A=b.controls[h];if(!A.value)return;const I=e(d).startOf("day").add(0,"hours").toDate().getTime(),k=e(A.value).toDate();k.setFullYear(k.getFullYear()+2);const S=k.getTime(),N=e(A.value).toDate();N.setFullYear(N.getFullYear()+12);const Y=N.getTime();I<=Y&&I>S?A.setErrors(null):I<=Y?A.setErrors({DoBChildUnder:!0}):I>S&&A.setErrors({DoBChildUpper:!0})},C=(h,d)=>b=>{const A=b.controls[h];if(!A.value)return;const I=e(d).startOf("day").add(0,"hours").toDate().getTime(),k=e(A.value).toDate().getTime(),S=e(A.value).toDate();S.setFullYear(S.getFullYear()+2);const N=S.getTime();A.setErrors(I<=N&&I>k?null:{DoBInfant:!0})},q=(h,d)=>b=>{const A=b.controls[h];if(!A.value)return;const I=e(d).startOf("day").add(0,"hours").toDate().getTime(),k=e(A.value).toDate().getTime();A.setErrors(I-k>=378683424e3?null:{DoBAdult:!0})},c=h=>d=>{const b=d.controls[h];b.value&&b.setErrors(""!=b.value?null:{required:!0})},l=()=>h=>{let d=[];for(let b=0;b<h.controls.infantPassenger.controls.length;b++){const A=h.controls.infantPassenger.at(b).controls.parentIndex.value;d.push({index:b,parentIndex:A})}for(let b=0;b<h.controls.infantPassenger.controls.length;b++){const A=h.controls.infantPassenger.at(b).controls.parentIndex.value;d.filter(k=>k.parentIndex===A).length>1?h.controls.infantPassenger.at(b).controls.parentIndex.setErrors({ParentInfantDupplicate:!0}):h.controls.infantPassenger.at(b).controls.parentIndex.setErrors(null)}},m=(h,d)=>b=>{const A=b.controls[h],I=b.controls[d];if(!A.value||!I.value)return;const k=e(A.value).startOf("day").add(0,"hours").toDate().getTime();e(I.value).startOf("day").add(0,"hours").toDate().getTime()<=k?A.setErrors({issuanceDateInvalid:!0}):A.setErrors(null)}},57716:(X,J,_)=>{_.d(J,{p:()=>e});var f=_(94650);let e=(()=>{class Z{constructor(q){this.el=q}onInputChange(q){const c=this.el.nativeElement,l=c.value,m=this.removeVietnameseAccents(l),h=this.removeSpecialCharacters(m);l!==h&&(c.value=h)}removeVietnameseAccents(q){const c={\u00e2:"aa",\u0103:"aw",\u00e1:"a",\u00e0:"a",\u1ea3:"a",\u00e3:"a",\u1ea1:"a",\u00ea:"ee",\u00e9:"e",\u00e8:"e",\u1ebb:"e",\u1ebd:"e",\u1eb9:"e",\u00f4:"oo",\u01a1:"ow",\u00f3:"o",\u00f2:"o",\u1ecf:"o",\u00f5:"o",\u1ecd:"o",\u01b0:"uw",\u00fa:"u",\u00f9:"u",\u1ee7:"u",\u0169:"u",\u1ee5:"u",\u00ed:"i",\u00ec:"i",\u1ec9:"i",\u0129:"i",\u1ecb:"i",\u00fd:"y",\u1ef3:"y",\u1ef7:"y",\u1ef9:"y",\u1ef5:"y",\u0111:"dd",\u00c2:"AA",\u0102:"AW",\u00c1:"A",\u00c0:"A",\u1ea2:"A",\u00c3:"A",\u1ea0:"A",\u00ca:"EE",\u00c9:"E",\u00c8:"E",\u1eba:"E",\u1ebc:"E",\u1eb8:"E",\u00d4:"OO",\u01a0:"OW",\u00d3:"O",\u00d2:"O",\u1ece:"O",\u00d5:"O",\u1ecc:"O",\u01af:"UW",\u00da:"U",\u00d9:"U",\u1ee6:"U",\u0168:"U",\u1ee4:"U",\u00cd:"I",\u00cc:"I",\u1ec8:"I",\u0128:"I",\u1eca:"I",\u00dd:"Y",\u1ef2:"Y",\u1ef6:"Y",\u1ef8:"Y",\u1ef4:"Y",\u0110:"DD"};return q.replace(/[\u00C0-\u1EF9]/g,m=>c[m]||m).toUpperCase()}removeSpecialCharacters(q){return q.replace(/[^a-zA-Z0-9]/g,"")}}return Z.\u0275fac=function(q){return new(q||Z)(f.Y36(f.SBq))},Z.\u0275dir=f.lG2({type:Z,selectors:[["","CfRemoveAccents",""]],hostBindings:function(q,c){1&q&&f.NdJ("input",function(m){return c.onInputChange(m)})},standalone:!0}),Z})()},40833:(X,J,_)=>{function f(e,Z){if(Z.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+Z.length+" present")}_.d(J,{Z:()=>f})},91998:(X,J,_)=>{function f(e){if(null===e||!0===e||!1===e)return NaN;var Z=Number(e);return isNaN(Z)?Z:Z<0?Math.ceil(Z):Math.floor(Z)}_.d(J,{Z:()=>f})},35650:(X,J,_)=>{_.d(J,{Z:()=>C});var f=_(91998),e=_(80953),Z=_(40833);function C(q,c){(0,Z.Z)(2,arguments);var l=(0,e.Z)(q),m=(0,f.Z)(c);return isNaN(m)?new Date(NaN):(m&&l.setDate(l.getDate()+m),l)}},43201:(X,J,_)=>{_.d(J,{Z:()=>q});var f=_(91998),e=_(80953),Z=_(40833);function q(c,l){return(0,Z.Z)(2,arguments),function C(c,l){(0,Z.Z)(2,arguments);var m=(0,e.Z)(c),h=(0,f.Z)(l);if(isNaN(h))return new Date(NaN);if(!h)return m;var d=m.getDate(),b=new Date(m.getTime());return b.setMonth(m.getMonth()+h+1,0),d>=b.getDate()?b:(m.setFullYear(b.getFullYear(),b.getMonth(),d),m)}(c,12*(0,f.Z)(l))}},80953:(X,J,_)=>{_.d(J,{Z:()=>Z});var f=_(86),e=_(40833);function Z(C){(0,e.Z)(1,arguments);var q=Object.prototype.toString.call(C);return C instanceof Date||"object"===(0,f.Z)(C)&&"[object Date]"===q?new Date(C.getTime()):"number"==typeof C||"[object Number]"===q?new Date(C):(("string"==typeof C||"[object String]"===q)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},86:(X,J,_)=>{function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Z){return typeof Z}:function(Z){return Z&&"function"==typeof Symbol&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(e)}_.d(J,{Z:()=>f})}}]);