-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5881.e5ff4cf67b6fae65.js
1 lines (1 loc) · 301 KB
/
5881.e5ff4cf67b6fae65.js
1
"use strict";(self.webpackChunkcheapflightclient=self.webpackChunkcheapflightclient||[]).push([[5881],{90602:(ee,J,f)=>{f.d(J,{P3:()=>Ze,Io:()=>pe});var _=f(80529),e=f(88001),Z=f(50494),v=f(54004),q=f(99251),l=f(97582),u=f(87067),x=f(43429);class m{}(0,l.gn)([(0,u.C)()],m.prototype,"status",void 0),(0,l.gn)([(0,x.D)(()=>p),(0,u.C)()],m.prototype,"data",void 0),(0,l.gn)([(0,u.C)()],m.prototype,"objectError",void 0),(0,l.gn)([(0,u.C)()],m.prototype,"success",void 0);class p{}(0,l.gn)([(0,x.D)(()=>b),(0,u.C)()],p.prototype,"bookingContact",void 0);class b{}(0,l.gn)([(0,u.C)()],b.prototype,"email",void 0),(0,l.gn)([(0,u.C)()],b.prototype,"name",void 0),(0,l.gn)([(0,u.C)()],b.prototype,"phone",void 0);class T{}(0,l.gn)([(0,u.C)()],T.prototype,"status",void 0),(0,l.gn)([(0,x.D)(()=>B),(0,u.C)()],T.prototype,"data",void 0),(0,l.gn)([(0,u.C)()],T.prototype,"objectError",void 0);class B{}(0,l.gn)([(0,u.C)()],B.prototype,"airline",void 0),(0,l.gn)([(0,u.C)()],B.prototype,"bookingCode",void 0),(0,l.gn)([(0,x.D)(()=>I),(0,u.C)()],B.prototype,"cancelCharge",void 0),(0,l.gn)([(0,x.D)(()=>S),(0,u.C)()],B.prototype,"totalCharge",void 0),(0,l.gn)([(0,x.D)(()=>z),(0,u.C)()],B.prototype,"cancelJourney",void 0),(0,l.gn)([(0,x.D)(()=>S),(0,u.C)()],B.prototype,"nonRefund",void 0),(0,l.gn)([(0,x.D)(()=>S),(0,u.C)()],B.prototype,"refund",void 0);class I{}(0,l.gn)([(0,u.C)()],I.prototype,"base",void 0),(0,l.gn)([(0,u.C)()],I.prototype,"applied",void 0),(0,l.gn)([(0,u.C)()],I.prototype,"surCharge",void 0),(0,l.gn)([(0,u.C)()],I.prototype,"tax",void 0),(0,l.gn)([(0,u.C)()],I.prototype,"total",void 0),(0,l.gn)([(0,u.C)()],I.prototype,"discount",void 0),(0,l.gn)([(0,x.D)(()=>P),(0,u.C)()],I.prototype,"currency",void 0);class P{}(0,l.gn)([(0,u.C)()],P.prototype,"baseCurrency",void 0),(0,l.gn)([(0,u.C)()],P.prototype,"code",void 0),(0,l.gn)([(0,u.C)()],P.prototype,"description",void 0),(0,l.gn)([(0,u.C)()],P.prototype,"exchangeRate",void 0);class S{}(0,l.gn)([(0,u.C)()],S.prototype,"base",void 0),(0,l.gn)([(0,u.C)()],S.prototype,"applied",void 0),(0,l.gn)([(0,u.C)()],S.prototype,"surCharge",void 0),(0,l.gn)([(0,u.C)()],S.prototype,"tax",void 0),(0,l.gn)([(0,u.C)()],S.prototype,"total",void 0),(0,l.gn)([(0,u.C)()],S.prototype,"discount",void 0),(0,l.gn)([(0,x.D)(()=>P),(0,u.C)()],S.prototype,"currency",void 0);class z{}(0,l.gn)([(0,x.D)(()=>he),(0,u.C)()],z.prototype,"journeyInfo",void 0),(0,l.gn)([(0,x.D)(()=>K),(0,u.C)()],z.prototype,"charge",void 0);class he{}(0,l.gn)([(0,u.C)()],he.prototype,"key",void 0);class K{}(0,l.gn)([(0,u.C)()],K.prototype,"base",void 0),(0,l.gn)([(0,u.C)()],K.prototype,"applied",void 0),(0,l.gn)([(0,u.C)()],K.prototype,"surCharge",void 0),(0,l.gn)([(0,u.C)()],K.prototype,"tax",void 0),(0,l.gn)([(0,u.C)()],K.prototype,"total",void 0),(0,l.gn)([(0,u.C)()],K.prototype,"discount",void 0),(0,l.gn)([(0,x.D)(()=>P),(0,u.C)()],K.prototype,"currency",void 0);class le{}(0,l.gn)([(0,u.C)()],le.prototype,"status",void 0),(0,l.gn)([(0,x.D)(()=>te),(0,u.C)()],le.prototype,"data",void 0),(0,l.gn)([(0,u.C)()],le.prototype,"objectError",void 0);class te{}(0,l.gn)([(0,u.C)()],te.prototype,"airline",void 0),(0,l.gn)([(0,u.C)()],te.prototype,"pnr",void 0),(0,l.gn)([(0,x.D)(()=>re),(0,u.C)()],te.prototype,"charge",void 0),(0,l.gn)([(0,u.C)()],te.prototype,"makePayment",void 0),(0,l.gn)([(0,x.D)(()=>O),(0,u.C)()],te.prototype,"cancelJourney",void 0),(0,l.gn)([(0,x.D)(()=>j),(0,u.C)()],te.prototype,"paymentInfo",void 0);class re{}(0,l.gn)([(0,u.C)()],re.prototype,"key",void 0),(0,l.gn)([(0,x.D)(()=>ce),(0,u.C)()],re.prototype,"chargeType",void 0),(0,l.gn)([(0,x.D)(()=>X),(0,u.C)()],re.prototype,"charge",void 0),(0,l.gn)([(0,u.C)()],re.prototype,"description",void 0),(0,l.gn)([(0,u.C)()],re.prototype,"extra",void 0);class ce{}(0,l.gn)([(0,u.C)()],ce.prototype,"code",void 0),(0,l.gn)([(0,u.C)()],ce.prototype,"type",void 0),(0,l.gn)([(0,x.D)(()=>_e),(0,u.C)()],ce.prototype,"description",void 0);class _e{}(0,l.gn)([(0,u.C)()],_e.prototype,"en",void 0),(0,l.gn)([(0,u.C)()],_e.prototype,"vi",void 0);class X{}(0,l.gn)([(0,u.C)()],X.prototype,"base",void 0),(0,l.gn)([(0,u.C)()],X.prototype,"applied",void 0),(0,l.gn)([(0,u.C)()],X.prototype,"surCharge",void 0),(0,l.gn)([(0,u.C)()],X.prototype,"tax",void 0),(0,l.gn)([(0,u.C)()],X.prototype,"total",void 0),(0,l.gn)([(0,u.C)()],X.prototype,"discount",void 0),(0,l.gn)([(0,x.D)(()=>ne),(0,u.C)()],X.prototype,"currency",void 0);class ne{}(0,l.gn)([(0,u.C)()],ne.prototype,"baseCurrency",void 0),(0,l.gn)([(0,u.C)()],ne.prototype,"code",void 0),(0,l.gn)([(0,u.C)()],ne.prototype,"description",void 0),(0,l.gn)([(0,u.C)()],ne.prototype,"exchangeRate",void 0);class O{}(0,l.gn)([(0,u.C)()],O.prototype,"airline",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"airlineName",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"duration",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"delay",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"stopOvernight",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"fareOptions",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"key",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"leg",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"numOfStops",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"operating",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"operatingName",void 0),(0,l.gn)([(0,x.D)(()=>F),(0,u.C)()],O.prototype,"segments",void 0),(0,l.gn)([(0,x.D)(()=>ae),(0,u.C)()],O.prototype,"departure",void 0),(0,l.gn)([(0,x.D)(()=>W),(0,u.C)()],O.prototype,"arrival",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"expireTime",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"fareClass",void 0),(0,l.gn)([(0,u.C)()],O.prototype,"fareClassCode",void 0);class F{}(0,l.gn)([(0,u.C)()],F.prototype,"key",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"id",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"index",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"airline",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"airlineName",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"duration",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"delay",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"flightNumber",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"operating",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"operatingName",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"stopPoint",void 0),(0,l.gn)([(0,x.D)(()=>ae),(0,u.C)()],F.prototype,"departure",void 0),(0,l.gn)([(0,x.D)(()=>W),(0,u.C)()],F.prototype,"arrival",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"bookingClassArr",void 0),(0,l.gn)([(0,x.D)(()=>se),(0,u.C)()],F.prototype,"bookedInfo",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"fareType",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"modelAirplane",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"modelAirplaneName",void 0),(0,l.gn)([(0,u.C)()],F.prototype,"codeAirline",void 0);class ae{}(0,l.gn)([(0,x.D)(()=>ie),(0,u.C)()],ae.prototype,"airport",void 0),(0,l.gn)([(0,u.C)()],ae.prototype,"localTime",void 0),(0,l.gn)([(0,u.C)()],ae.prototype,"scheduleTime",void 0);class ie{}(0,l.gn)([(0,u.C)()],ie.prototype,"code",void 0),(0,l.gn)([(0,u.C)()],ie.prototype,"name",void 0),(0,l.gn)([(0,x.D)(()=>H),(0,u.C)()],ie.prototype,"utcOffset",void 0);class H{}(0,l.gn)([(0,u.C)()],H.prototype,"zone",void 0),(0,l.gn)([(0,u.C)()],H.prototype,"iso",void 0);class W{}(0,l.gn)([(0,x.D)(()=>ie),(0,u.C)()],W.prototype,"airport",void 0),(0,l.gn)([(0,u.C)()],W.prototype,"localTime",void 0),(0,l.gn)([(0,u.C)()],W.prototype,"scheduleTime",void 0);class se{}(0,l.gn)([(0,u.C)()],se.prototype,"fareClass",void 0),(0,l.gn)([(0,u.C)()],se.prototype,"status",void 0),(0,l.gn)([(0,u.C)()],se.prototype,"fareType",void 0),(0,l.gn)([(0,u.C)()],se.prototype,"fareBasic",void 0);class j{}(0,l.gn)([(0,u.C)()],j.prototype,"passengerKey",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"passengerType",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"passengerFirstName",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"passengerGender",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"passengerNamePrefix",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"passengerLastName",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"ticket",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"type",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"currencyCode",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"description",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"paymentMethod",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"paymentTime",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"paymentTimeZone",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"paymentRef",void 0),(0,l.gn)([(0,u.C)()],j.prototype,"amount",void 0);var de=f(94650);const G={headers:new _.WM({"Content-Type":"application/json"})};let Ze=(()=>{class A{constructor(R,$){this.http=R,this.appConfig=$}getBookingDetail(R,$,be=!1){return this.http.post(this.appConfig.apiUrl+"flight/booking-retriver",JSON.stringify({airline:$,bookingCode:R,refresh:be}),G).pipe((0,v.U)(Ee=>(0,Z.yE)(q.JG,Ee,{excludeExtraneousValues:!0})))}quotationCancelJourney(R){return this.http.post(this.appConfig.apiUrl+"ticket/quotation-journey-cancel",JSON.stringify(R),G).pipe((0,v.U)($=>(0,Z.yE)(T,$,{excludeExtraneousValues:!0})))}cancelJourney(R){return this.http.post(this.appConfig.apiUrl+"ticket/cancel-journey-reservation",JSON.stringify(R),G).pipe((0,v.U)($=>(0,Z.yE)(le,$,{excludeExtraneousValues:!0})))}getBookingInfo(R){return this.http.post(this.appConfig.apiUrl+"flight/get-pnr-info",JSON.stringify(R),G).pipe((0,v.U)($=>(0,Z.yE)(m,$,{excludeExtraneousValues:!0})))}}return A.\u0275fac=function(R){return new(R||A)(de.LFG(_.eN),de.LFG(e.qB))},A.\u0275prov=de.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();var pe=(()=>{return(A=pe||(pe={})).UPDATE_JOURNEY="UPDATE_JOURNEY",A.ADD_JOURNEY="ADD_JOURNEY",A.NONE="NONE",pe;var A})()},45881:(ee,J,f)=>{f.d(J,{z_:()=>co,iU:()=>pn,AT:()=>it,CY:()=>Gt,Js:()=>x,mO:()=>ii,Xg:()=>Vn,df:()=>Sn,a7:()=>qo,$u:()=>ui,Cg:()=>_t,zb:()=>mi,vj:()=>Xo,Pt:()=>so,hF:()=>vt});var _=f(36895),e=f(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 v(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 a=e.oxw(2);return e.KtG(a.onToggleShowMore())}),e._uU(1,"Hi\u1ec7n t\u1ea5t c\u1ea3"),e.qZA()}}function l(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onToggleShowMore())}),e._uU(1,"Thu g\u1ecdn"),e.qZA()}}function u(n,o){if(1&n&&(e.TgZ(0,"div",9),e.YNc(1,q,2,0,"button",10),e.YNc(2,l,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 x=(()=>{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,v,2,1,"ng-container",4),e.qZA()(),e.YNc(12,u,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:[_.ax,_.O5],encapsulation:2}),n})();var m=f(83700),p=f(72506),b=f(74891),T=f(64425);let B=(()=>{class n{constructor(t){this.clipboard=t}onClick(t){if(this.clipboard.copy(t.innerText),t.setAttribute("title","copied"),window.getSelection){const a=document.createRange();a.selectNodeContents(t);const c=window.getSelection();null==c||c.removeAllRanges(),null==c||c.addRange(a)}setTimeout(()=>{t.removeAttribute("title")},1e3)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(T.TU))},n.\u0275dir=e.lG2({type:n,selectors:[["","CfSelectable",""]],hostBindings:function(t,i){1&t&&e.NdJ("click",function(c){return i.onClick(c.target)})},standalone:!0}),n})(),I=(()=>{class n{transform(t,i,a){return t&&t.replaceAll(i,a)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"replace",type:n,pure:!0,standalone:!0}),n})();var P=f(24513),S=f(40899),z=f(98184);function he(n,o){1&n&&e._UZ(0,"cf-icon",31)}function K(n,o){1&n&&e._UZ(0,"cf-icon",32)}function le(n,o){if(1&n&&(e.TgZ(0,"div",28)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,he,1,0,"cf-icon",29),e.YNc(4,K,1,0,"cf-icon",30),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 te(n,o){1&n&&(e.TgZ(0,"div",33),e._uU(1," \u0110A CH\u1eb6NG "),e.qZA())}function re(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",35),e._UZ(2,"cf-icon",36),e.TgZ(3,"span",37),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 ce(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,re,6,6,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.journeys)}}function _e(n,o){if(1&n&&(e.TgZ(0,"div",35),e._UZ(1,"cf-icon",36),e.TgZ(2,"span",37),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 X(n,o){if(1&n&&(e.ynx(0),e.YNc(1,_e,5,6,"div",39),e.BQk()),2&n){const t=o.index;e.xp6(1),e.Q6J("ngIf",t<2)}}function ne(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,X,2,1,"ng-container",34),e.TgZ(2,"div",38),e._UZ(3,"cf-icon",36),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 O(n,o){if(1&n&&(e.TgZ(0,"div",25),e.YNc(1,le,7,4,"div",26),e.YNc(2,te,2,0,"div",27),e.YNc(3,ce,2,1,"div",22),e.YNc(4,ne,6,2,"div",22),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 F(n,o){1&n&&e._UZ(0,"div",8)}function ae(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",40),e._uU(4),e.qZA()()),2&n){const t=e.oxw();e.xp6(4),e.Oqu(t.bookingDetail.bookingCodeDisplay)}}const ie=function(n){return{"text-yellow-4":n}};function H(n,o){if(1&n&&e._UZ(0,"cf-icon",41),2&n){const t=e.oxw();e.Q6J("ngClass",e.VKq(1,ie,t.paymentOrderCode))}}function W(n,o){1&n&&e._UZ(0,"cf-icon",42)}function se(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",43),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.onRetryBooking())}),e._uU(1,"Th\u1eed l\u1ea1i"),e.qZA()}}function j(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(2);return e.KtG(c.onActionChange(a.value))}),e._UZ(1,"cf-icon",48),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 de(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(2);return e.KtG(c.onActionChange(a.value))}),e._UZ(1,"cf-icon",48),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 G(n,o){if(1&n&&(e.TgZ(0,"button",49,50),e._UZ(3,"cf-icon",51),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 Ze(n,o){if(1&n&&(e.TgZ(0,"button",49,50),e._UZ(3,"cf-icon",51),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 pe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(2);return e.KtG(c.onActionChange(a.value))}),e._UZ(1,"cf-icon",48),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 A(n,o){if(1&n&&(e.TgZ(0,"button",49,50),e._UZ(3,"cf-icon",51),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 ye(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",55),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2).$implicit,c=e.oxw(2);return c.onActionChange(a.value),e.KtG(c.isOpen=!c.isOpen)}),e._UZ(1,"cf-icon",48),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 R(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",58),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(5);return c.onActionChange(a.value),e.KtG(c.isOpen=!c.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 $(n,o){if(1&n&&(e.ynx(0),e.YNc(1,R,2,2,"button",57),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("ngIf",t.enabled)}}function be(n,o){if(1&n&&(e.TgZ(0,"div",56),e.YNc(1,$,2,1,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",t.items)}}function Ee(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div")(1,"div",52,50),e.YNc(4,ye,3,3,"button",53),e.qZA(),e.YNc(5,be,2,1,"ng-template",54),e.NdJ("overlayOutsideClick",function(){e.CHM(t);const a=e.oxw(3);return e.KtG(a.outsideClick())}),e.qZA()}if(2&n){const t=e.MAs(3),i=e.oxw().$implicit,a=e.oxw(2);e.xp6(4),e.Q6J("ngIf",i.enabled),e.xp6(1),e.Q6J("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",a.isOpen)("cdkConnectedOverlayPositions",a.bottomCenter)}}function Ue(n,o){if(1&n&&(e.ynx(0),e.YNc(1,j,3,3,"button",45),e.YNc(2,de,3,3,"button",45),e.YNc(3,G,5,8,"button",46),e.YNc(4,Ze,5,8,"button",46),e.YNc(5,pe,3,3,"button",45),e.YNc(6,A,5,8,"button",46),e.YNc(7,Ee,6,4,"div",22),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 qe(n,o){if(1&n&&(e.TgZ(0,"div",44),e.YNc(1,Ue,8,7,"ng-container",34),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 Ie(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",59),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.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 we(n,o){if(1&n&&(e.TgZ(0,"div",68)(1,"div",72),e._uU(2,"Nh\xe0 cung c\u1ea5p:"),e.qZA(),e.TgZ(3,"div",73),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 Be(n,o){if(1&n&&(e.TgZ(0,"div",66)(1,"div",67)(2,"div",68)(3,"div",13),e._uU(4,"H\u1ec7 th\u1ed1ng \u0111\u1eb7t ch\u1ed7:"),e.qZA(),e.TgZ(5,"div",69),e._uU(6),e.qZA()(),e.TgZ(7,"div",68)(8,"div",13),e._uU(9,"Th\u1eddi h\u1ea1n gi\u1eef ch\u1ed7:"),e.qZA(),e.TgZ(10,"div",70),e._uU(11),e.qZA()(),e.TgZ(12,"div",68)(13,"div",13),e._uU(14,"Th\u1eddi h\u1ea1n gi\u1eef gi\xe1:"),e.qZA(),e.TgZ(15,"div",70),e._uU(16),e.qZA()(),e.YNc(17,we,5,1,"div",71),e.TgZ(18,"div",68)(19,"div",13),e._uU(20,"API:"),e.qZA(),e.TgZ(21,"div",70),e._uU(22),e.qZA()(),e.TgZ(23,"div",68)(24,"div",13),e._uU(25,"Ngu\u1ed3n \u0111\u1eb7t ch\u1ed7:"),e.qZA(),e._UZ(26,"div",70),e.qZA(),e.TgZ(27,"div",68)(28,"div",13),e._uU(29,"M\xe3 \u0111\u01a1n h\xe0ng:"),e.qZA(),e.TgZ(30,"div",70),e._uU(31),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"," "),e.xp6(9),e.hij(" ",t.paymentOrderCode||""," ")}}function Ne(n,o){if(1&n&&(e.TgZ(0,"div",74),e.O4$(),e.TgZ(1,"svg",75),e._UZ(2,"path",76)(3,"path",77),e.qZA(),e._uU(4),e.qZA()),2&n){const t=e.oxw(2);e.xp6(4),e.hij(" ",t.bookingDetail.statusDesc," ")}}function Fe(n,o){1&n&&(e.TgZ(0,"div",84),e._UZ(1,"cf-icon",85),e.TgZ(2,"div"),e._uU(3,"B\u1ecb gi\xe1n \u0111o\u1ea1n"),e.qZA()())}function Je(n,o){1&n&&(e.TgZ(0,"div",86),e._UZ(1,"cf-icon",87),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 Se(n,o){if(1&n&&(e.TgZ(0,"div",115),e._UZ(1,"cf-icon",116),e.TgZ(2,"span",117),e._uU(3),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.hij(" ",t.stopPoint," ")}}function Oe(n,o){if(1&n&&(e.TgZ(0,"div",114)(1,"div",96),e._uU(2,"Airline code:\xa0"),e.qZA(),e.TgZ(3,"div",37),e._uU(4),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(4),e.Oqu(t.codeAirline)}}function Pe(n,o){if(1&n&&(e.TgZ(0,"div",114)(1,"div",96),e._uU(2,"D\u1ecbch v\u1ee5 kh\xe1c:\xa0"),e.qZA(),e.TgZ(3,"div",37),e._uU(4),e.qZA()()),2&n){const t=e.oxw().$implicit;e.xp6(4),e.hij("",t.accompaniedService," ")}}function je(n,o){if(1&n&&(e.TgZ(0,"div",82),e.YNc(1,Se,4,1,"div",88),e.TgZ(2,"div",89)(3,"div",90),e._UZ(4,"div",91)(5,"div",91)(6,"div",91)(7,"div",91)(8,"div",91)(9,"div",91),e.qZA(),e.TgZ(10,"div",92)(11,"div",93)(12,"div"),e._UZ(13,"img",3),e.qZA(),e.TgZ(14,"div",94)(15,"div",95),e._uU(16),e.qZA(),e.TgZ(17,"div",96),e._uU(18),e.qZA()(),e.TgZ(19,"div",97),e._uU(20),e.qZA()(),e.TgZ(21,"div",98)(22,"div",99)(23,"div",100)(24,"div",101),e._UZ(25,"cf-icon",102),e.TgZ(26,"span"),e._uU(27),e.ALo(28,"date"),e.qZA()(),e.TgZ(29,"div",103),e._UZ(30,"div",104)(31,"div",105)(32,"cf-icon",36),e.qZA()(),e.TgZ(33,"div",106),e._UZ(34,"cf-icon",107),e.TgZ(35,"div",13),e._uU(36),e.ALo(37,"date"),e.qZA()(),e.TgZ(38,"div",108),e._UZ(39,"cf-icon",109),e.TgZ(40,"div",110)(41,"span",73),e._uU(42),e.qZA(),e.TgZ(43,"span",72),e._uU(44),e.qZA()()()(),e.TgZ(45,"div")(46,"div",111),e._UZ(47,"cf-icon",102),e.TgZ(48,"span"),e._uU(49),e.ALo(50,"date"),e.qZA()(),e.TgZ(51,"div",106),e._UZ(52,"cf-icon",107),e.TgZ(53,"div",13),e._uU(54),e.ALo(55,"date"),e.qZA()(),e.TgZ(56,"div",108),e._UZ(57,"cf-icon",109),e.TgZ(58,"div",110)(59,"span",73),e._uU(60),e.qZA(),e.TgZ(61,"span",72),e._uU(62),e.qZA()()()()()(),e.TgZ(63,"div",112),e.YNc(64,Oe,5,1,"div",113),e.TgZ(65,"div",114)(66,"div",96),e._uU(67,"Th\u1eddi gian bay:\xa0"),e.qZA(),e.TgZ(68,"div",37),e._uU(69),e.qZA()(),e.TgZ(70,"div",114)(71,"div",96),e._uU(72,"Lo\u1ea1i m\xe1y bay:\xa0"),e.qZA(),e.TgZ(73,"div",37),e._uU(74),e.qZA()(),e.TgZ(75,"div",114)(76,"div",96),e._uU(77,"H\u1ea1ng ch\u1ed7:\xa0"),e.qZA(),e.TgZ(78,"div",37),e._uU(79),e.qZA()(),e.TgZ(80,"div",114)(81,"div",96),e._uU(82,"H\xe0nh l\xfd k\xfd g\u1eedi:\xa0"),e.qZA(),e.TgZ(83,"div",37),e._uU(84),e.qZA()(),e.TgZ(85,"div",114)(86,"div",96),e._uU(87,"H\xe0nh l\xfd x\xe1ch tay:\xa0"),e.qZA(),e.TgZ(88,"div",37),e._uU(89),e.qZA()(),e.YNc(90,Pe,5,1,"div",113),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 Qe(n,o){if(1&n&&(e.TgZ(0,"div",78)(1,"div",79)(2,"div"),e._uU(3),e.ALo(4,"date"),e.qZA(),e.YNc(5,Fe,4,0,"div",80),e.qZA(),e.YNc(6,Je,4,0,"div",81),e.TgZ(7,"div",82),e.YNc(8,je,91,34,"div",83),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 Me(n,o){1&n&&(e.TgZ(0,"th",123),e._uU(1," Thu\u1ebf ph\xed"),e.qZA())}function Ye(n,o){1&n&&(e.TgZ(0,"th",123),e._uU(1," Chi\u1ebft kh\u1ea5u"),e.qZA())}function Le(n,o){if(1&n&&(e.TgZ(0,"td",130),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 He(n,o){if(1&n&&(e.TgZ(0,"td",135),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 Re(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 ze(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 Ge(n,o){if(1&n&&(e.TgZ(0,"tr")(1,"td",129),e._uU(2),e.qZA(),e.TgZ(3,"td",129),e._uU(4),e.qZA(),e.TgZ(5,"td",130),e._uU(6),e.ALo(7,"replace"),e.ALo(8,"number"),e.qZA(),e.YNc(9,Le,4,7,"td",131),e.YNc(10,He,4,7,"td",132),e.TgZ(11,"td",130),e.YNc(12,Re,4,7,"span",133),e.YNc(13,ze,4,7,"ng-template",null,134,e.W1O),e.qZA()()),2&n){const t=o.$implicit,i=e.MAs(14),a=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",!a.isGDSProvider()),e.xp6(1),e.Q6J("ngIf",a.hasDiscountFare),e.xp6(2),e.Q6J("ngIf",t.discountAmount&&a.hasDiscountFare)("ngIfElse",i)}}function $e(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 Ve(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 Ke(n,o){if(1&n&&(e.TgZ(0,"div",136),e.YNc(1,$e,4,7,"span",22),e.YNc(2,Ve,4,7,"span",22),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 Xe(n,o){if(1&n&&(e.TgZ(0,"div")(1,"div",118),e._UZ(2,"cf-icon",61),e.TgZ(3,"span",62),e._uU(4,"Gi\xe1 v\xe9 g\u1ed1c"),e.qZA(),e.TgZ(5,"span",119),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",120)(9,"thead")(10,"tr",121)(11,"th",122),e._uU(12,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(13,"th",122),e._uU(14,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(15,"th",123),e._uU(16,"Gi\xe1 v\xe9"),e.qZA(),e.YNc(17,Me,2,0,"th",124),e.YNc(18,Ye,2,0,"th",124),e.TgZ(19,"th",123),e._uU(20,"T\u1ed5ng gi\xe1"),e.qZA()()(),e.TgZ(21,"tbody"),e.YNc(22,Ge,15,13,"tr",34),e.qZA()(),e._UZ(23,"hr",125),e.TgZ(24,"div",126)(25,"div",127),e._uU(26,"T\u1ed5ng gi\xe1 v\xe9"),e.qZA(),e.YNc(27,Ke,3,2,"div",128),e.qZA()()()),2&n){const t=e.oxw(2),i=e.MAs(31);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 We(n,o){if(1&n&&(e.TgZ(0,"div")(1,"div")(2,"div",60),e._UZ(3,"cf-icon",61),e.TgZ(4,"span",62),e._uU(5,"Th\xf4ng tin \u0111\u1eb7t ch\u1ed7"),e.qZA()(),e.YNc(6,Be,32,7,"div",63),e.YNc(7,Ne,5,1,"ng-template",null,64,e.W1O),e.YNc(9,Qe,9,9,"div",65),e.qZA(),e.YNc(10,Xe,28,5,"div",22),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 et(n,o){1&n&&(e.TgZ(0,"td",129),e._uU(1,"N/A"),e.qZA())}function tt(n,o){1&n&&(e.TgZ(0,"td",130),e._uU(1,"N/A"),e.qZA())}function nt(n,o){1&n&&(e.TgZ(0,"div",136),e._uU(1,"N/A \u0111"),e.qZA())}let it=(()=>{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([p.xgX,p.llu,p.bHT,p.QkI,p.ILM,p.tLH,p.NYs,p.okA,p.B2I,p.s5C,p.qDv,p.rks,p.Ffn,p._tC,p.fXw,p.gW0,p.$S])}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(p.KNP),e.Y36(S.$A))},n.\u0275cmp=e.Xpm({type:n,selectors:[["booking-detail"]],inputs:{bookingDetail:"bookingDetail",paymentOrderCode:"paymentOrderCode",isShowMore:"isShowMore",isBooked:"isBooked",isMultiJourney:"isMultiJourney",hasDiscountFare:"hasDiscountFare"},outputs:{actionChange:"actionChange",retryBooking:"retryBooking"},standalone:!0,features:[e.jDz],decls:36,vars:17,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","refresh","size","medium","class","animate-spin",3,"ngClass",4,"ngIf"],["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",3,"ngClass"],["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","refresh","size","medium",1,"animate-spin",3,"ngClass"],["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,O,5,4,"div",9),e.YNc(14,F,1,0,"div",10),e.YNc(15,ae,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,H,1,3,"cf-icon",15),e.YNc(22,W,1,0,"cf-icon",16),e.TgZ(23,"div",17)(24,"label",18),e._uU(25),e.qZA(),e.YNc(26,se,2,0,"div",19),e.qZA()()()(),e.YNc(27,qe,2,3,"div",20),e.YNc(28,Ie,3,1,"div",21),e.YNc(29,We,11,4,"div",22),e.qZA(),e.YNc(30,et,2,0,"ng-template",null,23,e.W1O),e.YNc(32,tt,2,0,"ng-template",null,24,e.W1O),e.YNc(34,nt,2,0,"ng-template",null,24,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","IN_PROGRESS"===i.bookingDetail.status&&i.paymentOrderCode),e.xp6(1),e.Q6J("ngIf",i.isBooked),e.xp6(2),e.Q6J("ngClass",e.VKq(15,ie,i.paymentOrderCode)),e.xp6(1),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:[_.O5,_.ax,_.mk,_.uU,p.AxE,p.Sm8,I,_.JJ,B,m.N8,m.Xq,b.f,z.pI,z.xu,P.Lk],encapsulation:2}),n})();function ot(n,o){1&n&&(e.TgZ(0,"th",5),e._uU(1,"Thu\u1ebf ph\xed "),e.qZA())}function rt(n,o){1&n&&(e.TgZ(0,"th",5),e._uU(1," Chi\u1ebft kh\u1ea5u"),e.qZA())}function at(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 st(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 ut(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 lt(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 ct(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,at,4,7,"td",17),e.YNc(10,st,4,7,"td",18),e.TgZ(11,"td",19),e.YNc(12,ut,4,7,"span",20),e.YNc(13,lt,4,7,"ng-template",null,21,e.W1O),e.qZA()()),2&n){const t=o.$implicit,i=e.MAs(14),a=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",!a.isGDSProvider),e.xp6(1),e.Q6J("ngIf",a.hasDiscountFare),e.xp6(2),e.Q6J("ngIf",t.discountAmount&&a.hasDiscountFare)("ngIfElse",i)}}function dt(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 pt(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 gt(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,ot,2,0,"th",6),e.YNc(12,rt,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,ct,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,dt,4,7,"span",13),e.YNc(24,pt,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 _t=(()=>{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,gt,39,19,"div",0),2&t&&e.Q6J("ngIf",i.priceDetail)},dependencies:[_.O5,_.ax,_.JJ,I],encapsulation:2}),n})();var E=f(24006),D=f(37094),xe=f(19123),De=f(62331),Q=f(67460),Ae=f(90837),Y=f(88001),ue=f(28746),M=f(97579),ve=f(20553),oe=f(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 mt(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(a){e.CHM(t);const c=e.oxw();return e.KtG(c.onActionChange(a))}),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(a){e.CHM(t);const c=e.oxw();return e.KtG(c.cancelBooking=a)}),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(a){e.CHM(t);const c=e.oxw();return e.KtG(c.cancelBooking=a)}),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 a=e.oxw();return e.KtG(a.close())}),e._uU(28," \u0110\xf3ng "),e.qZA(),e.TgZ(29,"button",23),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.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 ht(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 xt(n,o){1&n&&e._UZ(0,"cf-spinner")}let vt=(()=>{class n{constructor(t,i,a,c,C,y,U,w,N){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,this._modal=C,this._toastService=y,this._manageBookingService=U,this._mobileDetectService=w,this._bottomSheetService=N,this.listTicketNumber=[],this.isLoading=!1,this.isVoiding=!1,this.isSuccessFull=!0,this.cancelBooking="true",c.registerIcons([p.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,ue.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(Q.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(Q.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 a={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"},c={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"},y={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(U=>U.ticketNumber)};this.isLoading=!0,this._manageBookingService.voidTicket(y).pipe((0,ue.x)(()=>this.isLoading=!1)).subscribe({next:U=>{if(U.success){const w=U.data.filter(L=>L.void).map(L=>L.ticketNumber);this.isSuccessFull=U.data.every(L=>L.void),this.listTicketNumber=this.listTicketNumber.map(L=>Object.assign(Object.assign({},L),{statusDisplay:w.includes(L.ticketNumber)?"Th\xe0nh c\xf4ng":"Th\u1ea5t b\u1ea1i",status:w.includes(L.ticketNumber)?"SUCCESS":"ERROR"})),U.data.filter(L=>L.void).length===U.data.length?this._modal.open(Q.z5,a).afterClosed$.subscribe({next:Yt=>{Yt.data&&(this.ref&&this.ref.close(!0),this.bottomSheetData&&this.bottomSheetRef.dismiss(!0))}}):this._modal.open(Q.z5,c)}else this._modal.open(Q.z5,c).afterClosed$.subscribe({next:()=>{this.listTicketNumber=this.listTicketNumber.map(N=>Object.assign(Object.assign({},N),{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(Y.PY&&"VN"===(null===(i=this.airline)||void 0===i?void 0:i.toUpperCase()))return void this._modal.open(Q.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 a=this._getCurrentUrl();this.isLoading=!0,this._manageBookingService.getTicketDetail(t).pipe((0,ue.x)(()=>this.isLoading=!1)).subscribe({next:c=>{const C=this.proccessTicketDetail(c.data);this._modal.open(Ae.co,{ticketDetail:C,curentUrl:a,isAction:!0,airline:this.airline}).afterClosed$.subscribe({next:U=>{}})}})}_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(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.KNP),e.Y36(M.oE),e.Y36(De.BX),e.Y36(ve.fB),e.Y36(oe.L),e.Y36(D.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,mt,32,12,"div",4),e.YNc(6,ht,44,0,"div",5),e.qZA(),e._UZ(7,"cf-toast"),e.YNc(8,xt,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:[_.ez,_.O5,p.AxE,p.Sm8,m.N8,m.Xq,Ae.kP,De.hj,Q.OR,D.DW,xe.o,xe.T,E.u5,E.JJ,E.On],encapsulation:2}),n})();function Ct(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 a=e.oxw();return e.KtG(a.onActionChange("copy_pnr"))}),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(2),e.Oqu(t.bookingDetail.bookingCode)}}function Zt(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 bt(n,o){1&n&&e._UZ(0,"cf-icon",25)}function Et(n,o){1&n&&e._UZ(0,"cf-icon",26)}function Dt(n,o){if(1&n&&(e.TgZ(0,"div",21)(1,"div",22),e._uU(2),e.qZA(),e.YNc(3,bt,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 At(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Dt,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 Tt(n,o){1&n&&(e.TgZ(0,"div",27),e._uU(1," \u0110A CH\u1eb6NG "),e.qZA())}function kt(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 Ut(n,o){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,kt,14,12,"div",28),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",2===t.bookingDetail.journeys.length)}}function qt(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 It(n,o){if(1&n&&(e.TgZ(0,"div",31),e.YNc(1,qt,6,6,"div",32),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.journeys)}}function wt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(2);return e.KtG(c.onActionChange(a.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 a=e.oxw().$implicit,c=e.oxw(2);return e.KtG(c.onActionChange(a.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 Nt(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 Ft(n,o){if(1&n&&(e.TgZ(0,"button",39,40),e._UZ(3,"cf-icon",41),e._uU(4),e.YNc(5,Nt,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 s(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(2);return e.KtG(c.onActionChange(a.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 g(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 r(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",46),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2).$implicit,c=e.oxw(2);return c.onActionChange(a.value),e.KtG(c.isOpen=!c.isOpen)}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function d(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",49),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(5);return c.onActionChange(a.value),e.KtG(c.isOpen=!c.isOpen)}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function h(n,o){if(1&n&&(e.ynx(0),e.YNc(1,d,2,1,"button",48),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("ngIf",t.enabled)}}function k(n,o){if(1&n&&(e.TgZ(0,"div",47),e.YNc(1,h,2,1,"ng-container",34),e.qZA()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",t.items)}}function Lt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div")(1,"div",43,40),e.YNc(4,r,2,1,"button",44),e.qZA(),e.YNc(5,k,2,1,"ng-template",45),e.NdJ("overlayOutsideClick",function(){e.CHM(t);const a=e.oxw(3);return e.KtG(a.outsideClick())}),e.qZA()}if(2&n){const t=e.MAs(3),i=e.oxw().$implicit,a=e.oxw(2);e.xp6(4),e.Q6J("ngIf",i.enabled),e.xp6(1),e.Q6J("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",a.isOpen)("cdkConnectedOverlayPositions",a.bottomCenter)}}function Ht(n,o){if(1&n&&(e.ynx(0),e.YNc(1,wt,3,2,"button",35),e.YNc(2,Bt,3,2,"button",35),e.YNc(3,Ft,7,8,"button",36),e.YNc(4,s,3,2,"button",35),e.YNc(5,g,5,8,"button",36),e.YNc(6,Lt,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 Rt(n,o){if(1&n&&(e.TgZ(0,"div",33),e.YNc(1,Ht,7,6,"ng-container",34),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.bookingDetail.actions)}}function zt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",50),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.detailClick())}),e._uU(1,"Chi ti\u1ebft"),e.qZA()}}let Gt=(()=>{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([p.xgX,p.llu,p.bHT,p.QkI,p.ILM,p.tLH,p.NYs,p.okA,p.B2I,p.s5C,p.qDv,p.rks,p.Ffn,p._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(p.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,Ct,4,1,"div",4),e.qZA(),e.TgZ(6,"div",5),e.YNc(7,Zt,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,At,2,1,"div",6),e.YNc(20,Tt,2,0,"div",11),e.qZA(),e.YNc(21,Ut,2,1,"div",6),e.YNc(22,It,2,1,"div",12),e.YNc(23,Rt,2,1,"div",13),e.YNc(24,zt,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:[_.ez,_.sg,_.O5,_.uU,p.AxE,p.Sm8,b.f,z.pI,z.xu,m.N8,m.Xq,P.Lk],encapsulation:2}),n})();function $t(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 Vt(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 Kt(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 Xt(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,$t,4,0,"div",17),e.qZA(),e.YNc(5,Vt,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,Kt,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 Wt(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 en(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 tn(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 nn(n,o){if(1&n&&(e.ynx(0),e.YNc(1,en,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,tn,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 on(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 rn(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 an(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 sn(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,on,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,rn,4,7,"span",2),e.YNc(31,an,4,7,"ng-template",null,65,e.W1O),e.qZA()()()),2&n){const t=o.$implicit,i=e.MAs(32),a=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",a.hasDiscountFare),e.xp6(5),e.Q6J("ngIf",t.discountAmount&&a.hasDiscountFare)("ngIfElse",i)}}function un(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 ln(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 cn(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 dn(n,o){1&n&&(e.TgZ(0,"td",12),e._uU(1,"N/A"),e.qZA())}let pn=(()=>{class n{constructor(t,i,a){this.data=i,this._permissionService=a,this.flightInfos=[],this.isShowSupplier=this._permissionService.isAgent1()||this._permissionService.isBooker(),t.registerIcons([p.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(p.KNP),e.Y36(D.Rr,8),e.Y36(S.$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,Xt,39,8,"ng-container",2),e.YNc(3,Wt,5,1,"ng-template",null,3,e.W1O),e.YNc(5,nn,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,sn,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,un,4,7,"div",13),e.YNc(18,ln,4,7,"div",13),e.qZA()(),e.YNc(19,cn,10,0,"div",14),e.qZA()(),e.YNc(20,dn,2,0,"ng-template",null,15,e.W1O)),2&t){const a=e.MAs(4),c=e.MAs(21);e.xp6(2),e.Q6J("ngIf","ERROR"!==i.flightInfos[0].status)("ngIfElse",a),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",c),e.xp6(1),e.Q6J("ngIf",i.flightInfos[0].totalDiscountBasePrice)("ngIfElse",c),e.xp6(1),e.Q6J("ngIf",i.hasInternationalFlight)}},dependencies:[_.ez,_.sg,_.O5,_.JJ,p.AxE,p.Sm8,I],encapsulation:2}),n})();var gn=f(4688),Te=f(48373),fe=f(15439),_n=f(76978),Ce=f(28490);function fn(n,o){1&n&&(e.TgZ(0,"div",9),e._UZ(1,"ticket-item-skeleton")(2,"ticket-item-skeleton"),e.qZA())}function mn(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 hn(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 xn(n,o){1&n&&(e.TgZ(0,"div"),e._uU(1,"--"),e.qZA())}function vn(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,mn,3,1,"div",28),e.YNc(12,hn,3,1,"div",28),e.YNc(13,xn,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 Cn(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 Zn(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 yn(n,o){1&n&&(e.TgZ(0,"div"),e._uU(1,"--"),e.qZA())}function bn(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,Cn,3,1,"div",28),e.YNc(22,Zn,3,1,"div",28),e.YNc(23,yn,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 En(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 a=e.oxw(2);return e.KtG(a.isHiddenLabel=!0)}),e.qZA()()}}const Dn=function(){return{num:25}},An=function(){return{num:50}},Tn=function(){return{num:75}},kn=function(){return{num:100}},Un=function(n,o,t,i){return[n,o,t,i]},qn=function(){return[]},In=function(){return["ERROR","RETRY"]};function wn(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,vn,14,7,"ng-template",20),e.qZA()(),e.TgZ(23,"div",21),e.YNc(24,bn,24,6,"div",22),e.qZA(),e.YNc(25,En,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,Un,e.DdM(8,Dn),e.DdM(9,An),e.DdM(10,Tn),e.DdM(11,kn)))("listData",i.listSegmentData||e.DdM(17,qn)),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,In).includes(i.status))}}function Bn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onDeleteSegment())}),e._UZ(1,"cf-icon",48),e._uU(2," H\u1ee7y t\u1ea5t c\u1ea3 "),e.qZA()}}function Nn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",47),e.NdJ("click",function(){e.CHM(t);const a=e.oxw(2);return e.KtG(a.onDeleteSegment())}),e._UZ(1,"cf-icon",49),e._uU(2," Th\u1eed l\u1ea1i "),e.qZA()}}function Fn(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 a=e.oxw();return e.KtG(a.onClose())}),e._uU(2," \u0110\xf3ng "),e.qZA(),e.YNc(3,Bn,3,0,"button",46),e.YNc(4,Nn,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 Jn(n,o){1&n&&e._UZ(0,"cf-spinner")}let Sn=(()=>{class n{constructor(t,i,a,c,C,y,U,w,N){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,this._manageBookingService=C,this._modal=y,this._locationDataService=U,this._mobileDetectService=w,this._bottomSheetService=N,this.listSegmentData=[],this.status="DEFAULT",this.isHiddenLabel=!1,this.isLoading=!1,this.isLoadingSegmentsPnr=!1,this.searchChange=(V,L)=>L,this.sortChange=(V,L)=>L,c.registerIcons([p.UNF,p.Vks,p.Hge,p.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,ue.x)(()=>this.isLoadingSegmentsPnr=!1)).subscribe({next:t=>{t.success&&t.data&&(this.listSegmentData=t.data.map((i,a)=>({order:a+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:fe(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(Q.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===Y.QK.BSP?this.processCancelBooking():this.processDeleteSegment())})}else this._modal.open(Q.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===Y.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,ue.x)(()=>this.isLoading=!1)).subscribe({next:i=>{if(i.success&&i.data)if(this.listSegmentData.forEach(c=>{const C=i.data.find(y=>y.segmentKey===c.segmentKey);c.status=C?C.segmentState.toUpperCase():"CREATE"}),this.listSegmentData.every(c=>"CANCEL"===c.status))if(this.status="SUCCESS",this._mobileDetectService.isMobile()){const c=this._bottomSheetService.open(Q.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"}});c.containerInstance._rightButtonClick.subscribe(C=>c.dismiss()),c.afterDismissed().subscribe(C=>{this.bottomSheetRef.dismiss(!0)})}else this._modal.open(Q.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,ue.x)(()=>this.isLoading=!1)).subscribe({next:i=>{if("OK"===i.status)if(this.status="SUCCESS",this._mobileDetectService.isMobile()){const a=this._bottomSheetService.open(Q.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"}});a.containerInstance._rightButtonClick.subscribe(c=>a.dismiss()),a.afterDismissed().subscribe(c=>{this.bottomSheetRef.dismiss(!0)})}else this._modal.open(Q.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(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.KNP),e.Y36(ve.fB),e.Y36(M.oE),e.Y36(Ce._),e.Y36(oe.L),e.Y36(D.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,fn,3,0,"div",5),e.YNc(7,wn,26,19,"div",6),e.YNc(8,Fn,5,2,"div",7),e.qZA()(),e.YNc(9,Jn,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:[_.ez,_.sg,_.O5,_.RF,_.n9,_.ED,p.AxE,p.Sm8,m.N8,m.Xq,Te.rC,Te.E_,Te.zs,Te.qS,gn.b,Q.OR,D.DW,_n.IA],encapsulation:2}),n})();var ke=f(90602);function On(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",43),e.qZA()())}function Pn(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",44),e.qZA()())}function jn(n,o){1&n&&(e.TgZ(0,"div",45),e._uU(1,"\u0110\xe3 gi\u1eef ch\u1ed7"),e.qZA())}function Qn(n,o){1&n&&(e.TgZ(0,"div",45),e._uU(1,"\u0110\xe3 xu\u1ea5t v\xe9"),e.qZA())}function Mn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",21),e.NdJ("click",function(){const c=e.CHM(t).$implicit,C=e.oxw();return e.KtG(C.onJourneySelect(c))}),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,On,3,0,"div",39),e.YNc(31,Pn,3,0,"div",39),e.YNc(32,jn,2,0,"div",40),e.YNc(33,Qn,2,0,"div",40),e.qZA()(),e.TgZ(34,"cf-radio",41),e.NdJ("click",function(){const c=e.CHM(t).$implicit,C=e.oxw();return e.KtG(C.onJourneySelect(c))}),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 Yn(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",43),e.qZA()())}function Ln(n,o){1&n&&(e.TgZ(0,"div"),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",44),e.qZA()())}function Hn(n,o){1&n&&(e.TgZ(0,"div",54),e._uU(1,"\u0110\xe3 gi\u1eef ch\u1ed7"),e.qZA())}function Rn(n,o){1&n&&(e.TgZ(0,"div",54),e._uU(1,"\u0110\xe3 xu\u1ea5t v\xe9"),e.qZA())}function zn(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"div",46),e.NdJ("click",function(){const c=e.CHM(t).$implicit,C=e.oxw();return e.KtG(C.onJourneySelect(c))}),e.TgZ(1,"div",47),e._UZ(2,"img",48),e.TgZ(3,"div",38),e.YNc(4,Yn,3,0,"div",39),e.YNc(5,Ln,3,0,"div",39),e.YNc(6,Hn,2,0,"div",49),e.YNc(7,Rn,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 c=e.CHM(t).$implicit,C=e.oxw();return e.KtG(C.onJourneySelect(c))}),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 Gn(n,o){1&n&&e._UZ(0,"cf-icon",55)}function $n(n,o){1&n&&e._UZ(0,"cf-icon",56)}let Vn=(()=>{class n{constructor(t,i,a,c,C,y,U,w,N,V){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,this._modal=C,this._locationDataService=y,this._mobileDetectService=U,this._bottomSheetService=w,this._bookingDetailService=N,this._detectMobileService=V,this.journeys=[],this.isLoadingNextButton=!1,c.registerIcons([p.UNF,p.Hge,p.fXw,p.s5C,p.NNX,p.toh,p.$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(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.KNP),e.Y36(M.oE),e.Y36(Ce._),e.Y36(oe.L),e.Y36(D.a2),e.Y36(ke.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,Mn,35,17,"div",7),e._UZ(9,"div",8),e.qZA(),e.TgZ(10,"div",9),e.YNc(11,zn,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,Gn,1,0,"cf-icon",19),e.YNc(24,$n,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:[_.ez,_.sg,_.O5,_.uU,p.AxE,p.Sm8,D.DW,m.N8,m.Xq,xe.o],encapsulation:2}),n})();function Kn(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 Xn(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 Wn(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 ei(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 ti(n,o){1&n&&e._UZ(0,"cf-icon",46)}function ni(n,o){1&n&&e._UZ(0,"cf-icon",47)}let ii=(()=>{class n{constructor(t,i,a,c,C,y,U,w,N){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,this._modal=C,this._locationDataService=y,this._mobileDetectService=U,this._bottomSheetService=w,this._bookingDetailService=N,this.isLoadingNextButton=!1,c.registerIcons([p.UNF,p.Hge,p.fXw,p.s5C,p.NNX,p.toh,p.okA,p.o1t,p.B2I,p.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(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.KNP),e.Y36(M.oE),e.Y36(Ce._),e.Y36(oe.L),e.Y36(D.a2),e.Y36(ke.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,Kn,24,15,"div",12),e.YNc(18,Xn,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,Wn,24,15,"div",16),e.YNc(33,ei,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,ti,1,0,"cf-icon",27),e.YNc(49,ni,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:[_.ez,_.O5,_.JJ,_.uU,p.AxE,p.Sm8,D.DW,m.N8,m.Xq,I,P.Lk],encapsulation:2}),n})();function oi(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 ri(n,o){1&n&&(e.TgZ(0,"div",10),e._uU(1,"N/A"),e.qZA())}function ai(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 si(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 ui=(()=>{class n{constructor(t,i,a,c,C,y,U,w,N,V){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,this._modal=C,this._locationDataService=y,this._mobileDetectService=U,this._bottomSheetService=w,this._bookingDetailService=N,this._detectMobileService=V,c.registerIcons([p.UNF,p.Hge,p.fXw,p.s5C,p.NNX,p.toh,p.$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(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.KNP),e.Y36(M.oE),e.Y36(Ce._),e.Y36(oe.L),e.Y36(D.a2),e.Y36(ke.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,oi,3,4,"div",11),e.YNc(18,ri,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,ai,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,si,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:[_.ez,_.sg,_.O5,_.JJ,_.uU,p.AxE,p.Sm8,D.DW,m.N8,m.Xq,I],encapsulation:2}),n})();var li=f(27898);function ci(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 jt=(()=>{class n{constructor(t,i,a,c){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,c.registerIcons([p.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(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.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,ci,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:[_.ez,_.sg,p.AxE,p.Sm8,m.N8,m.Xq],encapsulation:2}),n})();function di(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(a){const C=e.CHM(t).$implicit,y=e.oxw();return e.KtG(y.checkedChange(a,C))}),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 pi(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 gi(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(a){const C=e.CHM(t).$implicit,y=e.oxw();return e.KtG(y.checkedChange(a,C))}),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 _i(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 fi(n,o){1&n&&e._UZ(0,"cf-spinner")}let mi=(()=>{class n{constructor(t,i,a,c,C,y,U){this._modal=i,this.ref=a,this.bottomSheetData=c,this.bottomSheetRef=C,this._bottomSheetService=y,this._manageBookingService=U,this.maxPax=0,this.isFullPax=!1,this.isNonePax=!1,this.isLoading=!1,t.registerIcons([p.UNF,p.gW0,p.PcQ]),a&&(this.listPassengers=a.data.listPassengers,this.bookingDetail=a.data.bookingDetail),c&&(this.listPassengers=c.listPassengers,this.bookingDetail=c.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(a=>a.selected);if("VJ"===this.bookingDetail.airline&&t.every(a=>"CHD"===a.type)){if(this.bottomSheetRef){const a=this._bottomSheetService.open(Q.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 a.containerInstance._rightButtonClick.subscribe(c=>a.dismiss())}return void(this.ref&&this._modal.open(Q.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(a=>({id:a.index,key:a.key}))};this.isLoading=!0,this._manageBookingService.splitPax(i).pipe((0,ue.x)(()=>this.isLoading=!1)).subscribe({next:a=>{var c,C;if("OK"===a.status){const y=a.data.splitResult.bookingInfo.bookingCode,U=a.data.splitResult.bookingInfo.passengers.map(w=>`${w.lastName} ${w.firstName}`);if(this.bottomSheetRef){const w=this._bottomSheetService.open(jt,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",data:{bookingCode:y,listPaxName:U}});return w.containerInstance._rightButtonClick.subscribe(N=>w.dismiss()),void w.afterDismissed().subscribe({next:N=>{this.bottomSheetRef.dismiss(N?y:this.bookingDetail.bookingCode)}})}this.ref&&this._modal.open(jt,{bookingCode:y,listPaxName:U}).afterClosed$.subscribe({next:N=>{this.ref.close(N.data?y:this.bookingDetail.bookingCode)}})}else{const y=(null===(C=null===(c=a.objectError)||void 0===c?void 0:c.errorDescription)||void 0===C?void 0:C.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(Q.V0,{title:"T\xe1ch kh\xe1ch th\u1ea5t b\u1ea1i",body:y,okText:"\u0110\xf3ng",hasCancel:!1,cancelText:""})}},error:()=>{this._modal.open(Q.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(p.KNP),e.Y36(M.oE),e.Y36(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(D.a2),e.Y36(ve.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,di,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,pi,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,gi,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,_i,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,fi,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:[_.ez,_.sg,_.O5,p.AxE,p.Sm8,m.N8,m.Xq,li.u,D.DW,Q.OR],encapsulation:2}),n})();var Qt=f(74713),hi=f(34541),ge=f(44143),xi=f(3447),Jt=f(88516),me=f(57085),St=f(43201),Mt=f(35650);function vi(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 Ci(n,o){1&n&&(e.TgZ(0,"div",21),e._uU(1,"Ch\u1ec9nh s\u1eeda h\xe0nh kh\xe1ch"),e.qZA())}function Zi(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 yi(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 c=e.CHM(t).$implicit,C=e.oxw(2);return e.KtG(C.checkedChange(c))}),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 bi(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,yi,9,3,"ng-container",32),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(11),e.Q6J("ngForOf",t.listPassengers)}}function Ei(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 Di(n,o){1&n&&(e.TgZ(0,"div",39),e._uU(1," Th\xf4ng tin h\xe0nh kh\xe1ch "),e.qZA())}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.gender)}}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.lastName)}}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.firstName)}}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.birthday)}}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.DoBChild)}}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.DoBChildUnder)}}function wi(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 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.DoBAdult)}}function Ni(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 Fi(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 Ji(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 Si(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,Ai,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(a){e.CHM(t);const c=e.oxw();return e.KtG(c.onBlurInput(a,c.formGroup,"lastName"))}),e.qZA(),e.YNc(13,Ti,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(a){e.CHM(t);const c=e.oxw();return e.KtG(c.onBlurInput(a,c.formGroup,"firstName"))}),e.qZA(),e.YNc(20,ki,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 a=e.MAs(29);return e.KtG(a.close())})("dateSelect",function(){e.CHM(t);const a=e.MAs(29);return e.KtG(a.close())})("input",function(a){e.CHM(t);const c=e.oxw();return e.KtG(c.validateBirthday(a))}),e.qZA(),e.YNc(30,Ui,1,1,"cf-input-hint",44),e.YNc(31,qi,1,1,"cf-input-hint",44),e.YNc(32,Ii,1,1,"cf-input-hint",44),e.YNc(33,wi,1,1,"cf-input-hint",44),e.YNc(34,Bi,1,1,"cf-input-hint",44),e.YNc(35,Ni,1,1,"cf-input-hint",44),e.YNc(36,Fi,1,1,"cf-input-hint",44),e.qZA()(),e.YNc(37,Ji,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 Oi(n,o){1&n&&e._UZ(0,"cf-icon",59)}function Pi(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," Ti\u1ebfp t\u1ee5c "),e.qZA())}function ji(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," X\xe1c nh\u1eadn "),e.qZA())}function Qi(n,o){1&n&&e._UZ(0,"cf-icon",60)}function Mi(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 c=e.CHM(t).$implicit,C=e.oxw(2);return e.KtG(C.checkedChange(c))}),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 Yi(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,Mi,15,3,"ng-container",32),e.qZA()()),2&n){const t=e.oxw();e.xp6(7),e.Q6J("ngForOf",t.listPassengers)}}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.gender)}}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.lastName)}}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.firstName)}}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.birthday)}}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.DoBChild)}}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.DoBChildUnder)}}function Vi(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 Ki(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 Xi(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 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(3);e.xp6(1),e.Q6J("CfRequired",!0),e.xp6(4),e.hij(" ",t.selectedPax.parentName," ")}}function eo(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,Li,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(a){e.CHM(t);const c=e.oxw(2);return e.KtG(c.onBlurInput(a,c.formGroup,"lastName"))}),e.qZA(),e.YNc(13,Hi,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(a){e.CHM(t);const c=e.oxw(2);return e.KtG(c.onBlurInput(a,c.formGroup,"firstName"))}),e.qZA(),e.YNc(20,Ri,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 a=e.MAs(29);return e.KtG(a.close())})("dateSelect",function(){e.CHM(t);const a=e.MAs(29);return e.KtG(a.close())})("input",function(a){e.CHM(t);const c=e.oxw(2);return e.KtG(c.validateBirthday(a))}),e.qZA(),e.YNc(30,zi,1,1,"cf-input-hint",44),e.YNc(31,Gi,1,1,"cf-input-hint",44),e.YNc(32,$i,1,1,"cf-input-hint",44),e.YNc(33,Vi,1,1,"cf-input-hint",44),e.YNc(34,Ki,1,1,"cf-input-hint",44),e.YNc(35,Xi,1,1,"cf-input-hint",44),e.qZA()(),e.YNc(36,Wi,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 to(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,eo,37,29,"div",9),e.qZA()()),2&n){const t=e.oxw();e.xp6(7),e.Q6J("ngIf","PAX_EDIT"==t.screenState)}}function no(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," Ti\u1ebfp t\u1ee5c "),e.qZA())}function io(n,o){1&n&&e._UZ(0,"cf-icon",69)}function oo(n,o){1&n&&e._UZ(0,"cf-icon",59)}function ro(n,o){1&n&&(e.TgZ(0,"span"),e._uU(1," X\xe1c nh\u1eadn "),e.qZA())}function ao(n,o){1&n&&e._UZ(0,"cf-icon",60)}let so=(()=>{class n{constructor(t,i,a,c,C,y,U,w){var N;this._modal=i,this.ref=a,this.bottomSheetData=c,this.bottomSheetRef=C,this._bottomSheetService=y,this._manageBookingService=U,this.fb=w,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([p.UNF,p.gW0,p.PcQ,p.$S]),a&&(this.listPassengers=a.data.listPassengers,this.bookingDetail=a.data.bookingDetail),c&&(this.listPassengers=c.listPassengers,this.bookingDetail=c.bookingDetail);let V=fe(this.bookingDetail.journeys[0].startTime).toDate().getTime(),L=(0,St.Z)(V,-2);L=(0,Mt.Z)(L,-1),fe(null===(N=this.bookingDetail.journeys[0].startTime)||void 0===N?void 0:N.getTime()).toDate();let Wo=(0,St.Z)(V,-11),Ot=(0,St.Z)(V,-2);Ot=(0,Mt.Z)(Ot,1),this.errorMessage.DoBChildUnder=this.errorMessage.DoBChildUnder.replace("{0}",(0,_.p6)(L,"dd/MM/yyyy","vi-VN")),this.errorMessage.DoBChildUpper=this.errorMessage.DoBChildUpper.replace("{0}",(0,_.p6)(Wo,"dd/MM/yyyy","vi-VN")),this.errorMessage.DoBInfant=this.errorMessage.DoBInfant.replace("{0}",(0,_.p6)(Ot,"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,a;if("PAX_SELECT"==this.screenState)switch(this.screenState="PAX_EDIT",this.selectedPax.type){case"ADT":this.formGroup=this.fb.group({firstName:[this.selectedPax.firstName,[E.kI.required]],lastName:[this.selectedPax.lastName,[E.kI.required]],gender:[this.selectedPax.gender,[E.kI.required]],birthday:[new Date(this.selectedPax.dayOfBirth),[E.kI.required]],parent:[this.selectedPax.parentKey]},{validator:[(0,me.Ab)("birthday"),(0,me.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,[E.kI.required]],lastName:[this.selectedPax.lastName,[E.kI.required]],gender:[this.selectedPax.gender,[E.kI.required]],birthday:[new Date(this.selectedPax.dayOfBirth)],parent:[this.selectedPax.parentKey]},{validator:(0,me.$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,[E.kI.required]],lastName:[this.selectedPax.lastName,[E.kI.required]],gender:[this.selectedPax.gender,[E.kI.required]],birthday:[new Date(this.selectedPax.dayOfBirth)],parent:[this.selectedPax.parentKey]},{validator:(0,me.DW)("birthday",null===(a=this.bookingDetail.journeys[0].startTime)||void 0===a?void 0:a.getTime())})}else if("PAX_EDIT"==this.screenState){let c="";switch(this.selectedPax.type){case"ADT":c="ADULT";break;case"CHD":c="CHILD";break;case"INF":c="INFANT"}let C={bookingCode:this.bookingDetail.bookingCode,airline:this.bookingDetail.airline,updatePassengerInfo:{birthDay:fe(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:c}};this.isLoadingNextButton=!0,this._manageBookingService.updatePaxInfo(C).subscribe({next:y=>{this.isLoadingNextButton=!1,"FAILED"==y.status?(this.ref&&this.ref.close({type:"FAILED",data:y.objectError}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"FAILED",data:y.objectError})):(this.ref&&this.ref.close({type:"OK",data:""}),this.bottomSheetData&&this.bottomSheetRef.dismiss({type:"OK",data:""}))},error:y=>{this.isLoadingNextButton=!1}})}}onBlurInput(t,i,a){var c;const C=this.unicodeAndUppercase(t.target.value);null===(c=i.get(a))||void 0===c||c.setValue(C)}unicodeAndUppercase(t){return t=t.replace(/ +(?= )/g,""),(0,xi.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(p.KNP),e.Y36(M.oE),e.Y36(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(D.a2),e.Y36(ve.fB),e.Y36(E.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,vi,2,0,"div",2),e.YNc(3,Ci,2,0,"div",2),e.TgZ(4,"cf-icon",3),e.NdJ("click",function(){return i.close()}),e.qZA()(),e.YNc(5,Zi,6,0,"div",4),e.YNc(6,bi,12,1,"div",5),e.YNc(7,Ei,6,0,"div",6),e.TgZ(8,"div",7),e.YNc(9,Di,2,0,"div",8),e.YNc(10,Si,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,Oi,1,0,"cf-icon",13),e.YNc(16,Pi,2,0,"span",14),e.YNc(17,ji,2,0,"span",14),e.YNc(18,Qi,1,0,"cf-icon",15),e.qZA()()(),e.TgZ(19,"div",16),e.YNc(20,Yi,8,1,"div",17),e.YNc(21,to,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,no,2,0,"span",14),e.YNc(27,io,1,0,"cf-icon",20),e.YNc(28,oo,1,0,"cf-icon",13),e.YNc(29,ro,2,0,"span",14),e.YNc(30,ao,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:[_.ez,_.sg,_.O5,p.AxE,p.Sm8,m.N8,m.Xq,xe.o,D.DW,Qt.q,E.u5,E.Fj,E.JJ,E.UX,E.oH,hi.C,ge.j$,ge.ND,ge.BN,ge.v2,Jt.Cs],encapsulation:2}),n})();function uo(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 lo(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 co=(()=>{class n{constructor(t,i,a,c,C,y,U,w,N,V){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,this._modal=C,this._locationDataService=y,this._mobileDetectService=U,this._bottomSheetService=w,this._bookingDetailService=N,this._detectMobileService=V,this.auditLogs=[],c.registerIcons([p.UNF,p.Hge,p.fXw,p.s5C,p.NNX,p.toh,p.$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(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.KNP),e.Y36(M.oE),e.Y36(Ce._),e.Y36(oe.L),e.Y36(D.a2),e.Y36(ke.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,uo,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,lo,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:[_.ez,_.sg,p.AxE,p.Sm8,D.DW,m.N8,m.Xq],encapsulation:2}),n})();var po=f(86938);function go(n,o){1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"span"),e._uU(1,"Flychills d\u1ecbch"),e.qZA())}function _o(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 fo(n,o){1&n&&(e.O4$(),e.kcU(),e._UZ(0,"cf-icon",27))}function mo(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const a=e.oxw();return e.KtG(a.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,go,2,0,"span",25),e.YNc(16,_o,2,0,"span",25),e.YNc(17,fo,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 ho(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cf-icon",37),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(3);return e.KtG(c.onChange(a))}),e.qZA()}}function xo(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cf-icon",38),e.NdJ("click",function(){e.CHM(t);const a=e.oxw().$implicit,c=e.oxw(3);return e.KtG(c.onChange(a))}),e.qZA()}}function vo(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 Co(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 Zo(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 yo(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Zo,3,1,"ng-container",33),e.BQk()),2&n){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngForOf",t.details)}}function bo(n,o){1&n&&e._UZ(0,"div",42)}function Eo(n,o){if(1&n&&(e.ynx(0),e.YNc(1,bo,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 Do(n,o){if(1&n&&(e.ynx(0),e.YNc(1,yo,2,1,"ng-container",25),e.YNc(2,Eo,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 Ao(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"div",34),e.YNc(2,ho,1,0,"cf-icon",35),e.YNc(3,xo,1,0,"cf-icon",36),e.YNc(4,vo,2,1,"span",25),e.YNc(5,Co,2,1,"span",25),e.qZA(),e.YNc(6,Do,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 To(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,Ao,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 ko(n,o){if(1&n&&(e.TgZ(0,"div",28),e.YNc(1,To,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 Uo(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 qo=(()=>{class n{constructor(t,i,a,c,C,y){this.ref=t,this.bottomSheetData=i,this.bottomSheetRef=a,this._aiService=C,this._permissionService=y,this.translateLoading=!1,this.isTranslateTitle=!1,this.headerViMap=new Map,this.translateMode="ORIGIN",this.isPermissionTranslate=!1,c.registerIcons([p.UNF,p.kPk,p.mAV,p.$S]),this.isPermissionTranslate=this._permissionService.hasPermission(S.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(a=>a.header));this.translateLoading=!0,this._aiService.getTranslateFareClassTitle(t).subscribe({next:i=>{console.log(i),i.forEach(a=>{this.headerViMap.set(a.original,a.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:a=>{t.isLoading=!1,console.log(a),t.detailsVI=a.replace(/\*\*(.*?)\*\*/g,"$1")},error:a=>{401==a&&this._aiService.checkToken().subscribe({next:c=>{this.translateRule(t)}})}})}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.Zu,8),e.Y36(p.KNP),e.Y36(po.Y),e.Y36(S.$A))},n.\u0275cmp=e.Xpm({type:n,selectors:[["fare-rule-modal"]],inputs:{fareRuleBsp:"fareRuleBsp",listFareRuleInternational:"listFareRuleInternational"},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,mo,18,5,"button",6),e.qZA(),e.YNc(8,ko,2,3,"div",7),e.YNc(9,Uo,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:[_.ez,_.sg,_.O5,p.AxE,p.Sm8,m.N8,m.Xq],encapsulation:2}),n})();var Io=f(57716);function wo(n,o){1&n&&e._UZ(0,"div",30)}function Bo(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 No(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 Fo(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 So(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 Oo(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 Po(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.YNc(1,wo,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,Bo,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,No,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,Fo,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 a=e.MAs(41);return e.KtG(a.close())})("dateSelect",function(){e.CHM(t);const a=e.MAs(41);return e.KtG(a.close())}),e.qZA(),e.YNc(42,Jo,1,1,"cf-input-hint",26),e.YNc(43,So,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 a=e.MAs(50);return e.KtG(a.close())})("dateSelect",function(){e.CHM(t);const a=e.MAs(50);return e.KtG(a.close())}),e.qZA(),e.YNc(51,Oo,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,a=e.oxw();e.xp6(1),e.Q6J("ngIf",i),e.xp6(3),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",a.getFormControlInArray(t,"gender")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",a.getFormControlInArray(t,"lastName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",a.getFormControlInArray(t,"firstName")),e.xp6(1),e.Q6J("disabled",!0)("status","default"),e.xp6(3),e.Q6J("formControl",a.getFormControlInArray(t,"birthday")),e.xp6(6),e.Q6J("formControl",a.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",a.countryOption)("allowSearch",!0)("formControl",a.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",a.countryOption)("allowSearch",!0)("formControl",a.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",a.currentDate)("formControl",a.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",a.currentDate)("formControl",a.getFormControlInArray(t,"expiryDate")),e.xp6(2),e.Q6J("ngIf",t.controls.expiryDate.hasError("required")&&(t.controls.expiryDate.touched||t.controls.expiryDate.dirty))}}function jo(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 Qo(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 Mo(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 Yo(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 Lo(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 Ho(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 Ro(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,jo,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,Qo,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,Mo,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 a=e.MAs(41);return e.KtG(a.close())})("dateSelect",function(){e.CHM(t);const a=e.MAs(41);return e.KtG(a.close())}),e.qZA(),e.YNc(42,Yo,1,1,"cf-input-hint",26),e.YNc(43,Lo,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 a=e.MAs(50);return e.KtG(a.close())})("dateSelect",function(){e.CHM(t);const a=e.MAs(50);return e.KtG(a.close())}),e.qZA(),e.YNc(51,Ho,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 zo(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 Go(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 $o(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 Vo(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 Ko(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,zo,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,Go,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,$o,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 a=e.MAs(45);return e.KtG(a.close())})("dateSelect",function(){e.CHM(t);const a=e.MAs(45);return e.KtG(a.close())}),e.qZA(),e.YNc(46,Vo,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 Xo=(()=>{class n{constructor(t,i,a,c,C,y,U){this._cfRegister=t,this.fb=i,this._locationDataService=a,this.calendar=c,this.ref=C,this.bottomSheetData=y,this.bottomSheetRef=U,t.registerIcons([p.PcQ]),this.countryOption=this._locationDataService.getAllCountryOption(),this.currentDate=c.getToday(),C&&(this.listPaxUpdate=C.data.listPaxUpdate),y&&(this.listPaxUpdate=y.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 a={issuanceDate:new Date(Y.zk.issuanceDate),expiryDate:new Date(Y.zk.expiryDate),issuanceCountry:"",nationality:"",number:""};i.number!==Y.zk.number&&(a.issuanceDate=i.issuanceDate?new Date(i.issuanceDate):new Date(Y.zk.issuanceDate),a.expiryDate=i.expiryDate?new Date(i.expiryDate):new Date(Y.zk.expiryDate),a.issuanceCountry=i.issuanceCountry||"",a.nationality=i.nationality||"",a.number=i.number||"");const c=this.fb.group({index:[i.index],birthday:[i.dayOfBirth?fe(new Date(i.dayOfBirth)).format("DD/MM/YYYY"):""],firstName:[i.firstName],lastName:[i.lastName],gender:[this.getGender(i.gender)],issuanceDate:[a.issuanceDate,[E.kI.required]],expiryDate:[a.expiryDate,[E.kI.required]],issuanceCountry:[a.issuanceCountry,[E.kI.required]],nationality:[a.nationality,[E.kI.required]],number:[a.number,[E.kI.required]]},{validators:[(0,me.i4)("issuanceDate","expiryDate")]});this.getFormArray("adultPassenger").push(c)})}initChildFormGroup(){var t;null===(t=this.listPaxUpdate)||void 0===t||t.filter(i=>"CHD"===i.type).forEach(i=>{const a={issuanceDate:new Date(Y.zk.issuanceDate),expiryDate:new Date(Y.zk.expiryDate),issuanceCountry:"",nationality:"",number:""};i.number!==Y.zk.number&&(a.issuanceDate=i.issuanceDate?new Date(i.issuanceDate):new Date(Y.zk.issuanceDate),a.expiryDate=i.expiryDate?new Date(i.expiryDate):new Date(Y.zk.expiryDate),a.issuanceCountry=i.issuanceCountry||"",a.nationality=i.nationality||"",a.number=i.number||"");const c=this.fb.group({index:[i.index],birthday:[i.dayOfBirth?fe(new Date(i.dayOfBirth)).format("DD/MM/YYYY"):""],firstName:[i.firstName],lastName:[i.lastName],gender:[this.getGender(i.gender)],issuanceDate:[a.issuanceDate,[E.kI.required]],expiryDate:[a.expiryDate,[E.kI.required]],issuanceCountry:[a.issuanceCountry,[E.kI.required]],nationality:[a.nationality,[E.kI.required]],number:[a.number,[E.kI.required]]},{validators:[(0,me.i4)("issuanceDate","expiryDate")]});this.getFormArray("childPassenger").push(c)})}initInfantFormGroup(){var t,i;const a=null===(t=this.listPaxUpdate)||void 0===t?void 0:t.filter(c=>"ADT"===c.type);null===(i=this.listPaxUpdate)||void 0===i||i.filter(c=>"INF"===c.type).forEach(c=>{const C=a.find(w=>w.key===c.parentKey),y={issuanceDate:new Date(Y.zk.issuanceDate),expiryDate:new Date(Y.zk.expiryDate),issuanceCountry:"",nationality:"",number:""};c.number!==Y.zk.number&&(y.issuanceDate=c.issuanceDate?new Date(c.issuanceDate):new Date(Y.zk.issuanceDate),y.expiryDate=c.expiryDate?new Date(c.expiryDate):new Date(Y.zk.expiryDate),y.issuanceCountry=c.issuanceCountry||"",y.nationality=c.nationality||"",y.number=c.number||"");const U=this.fb.group({index:[c.index],birthday:[c.dayOfBirth?fe(new Date(c.dayOfBirth)).format("DD/MM/YYYY"):""],firstName:[c.firstName],lastName:[c.lastName],gender:[this.getGender(c.gender)],issuanceDate:[y.issuanceDate,[E.kI.required]],expiryDate:[y.expiryDate,[E.kI.required]],issuanceCountry:[y.issuanceCountry,[E.kI.required]],nationality:[y.nationality,[E.kI.required]],number:[y.number,[E.kI.required]],parent:[C?`${C.lastName} ${C.firstName}`:""]},{validators:[(0,me.i4)("issuanceDate","expiryDate")]});this.getFormArray("infantPassenger").push(U)})}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(p.KNP),e.Y36(E.qu),e.Y36(Ce._),e.Y36(Jt.jH),e.Y36(M.gb,8),e.Y36(D.Rr,8),e.Y36(D.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,Po,54,36,"ng-container",5),e.YNc(7,Ro,54,35,"ng-container",5),e.YNc(8,Ko,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:[_.ez,_.sg,_.O5,p.AxE,p.Sm8,m.N8,m.Xq,ge.j$,ge.ND,ge.BN,ge.v2,Qt.q,E.UX,E.Fj,E.JJ,E.oH,Jt.Cs,Io.p],encapsulation:2}),n})()},90837:(ee,J,f)=>{f.d(J,{Gn:()=>dt,UD:()=>Ft,Wn:()=>st,EH:()=>ut,kP:()=>X,co:()=>ae});var _=f(36895),e=f(94650),Z=f(83700),v=f(72506),q=f(4688),l=f(48373),u=f(76978),x=f(40899);function m(s,g){1&s&&(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 p(s,g){1&s&&(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(s,g){1&s&&(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 T(s,g){if(1&s){const r=e.EpF();e.TgZ(0,"a",30),e.NdJ("click",function(){e.CHM(r);const h=e.oxw().$implicit,k=e.oxw(2);return e.KtG(k.onReview(h.ticketNumber))}),e._uU(1," Xem chi ti\u1ebft "),e.qZA()}}const B=function(s){return{"opacity-50":s}};function I(s,g){if(1&s&&(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,p,4,0,"cf-label",20),e.YNc(8,b,5,0,"cf-label",21),e.qZA(),e.TgZ(9,"td",22),e.YNc(10,T,2,0,"a",23),e.qZA()()),2&s){const r=g.$implicit,d=e.oxw(2);e.Q6J("ngClass",e.VKq(8,B,"ERROR"===r.status)),e.xp6(2),e.Oqu(r.ticketNumber),e.xp6(2),e.hij("",e.lcZ(5,6,r.totalCharge)," \u0111"),e.xp6(3),e.Q6J("ngIf","SUCCESS"===r.status),e.xp6(1),e.Q6J("ngIf","ERROR"===r.status),e.xp6(2),e.Q6J("ngIf","FARE"===r.ticketType&&d.canOpenTicketNumber)}}function P(s,g){if(1&s&&(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&s){const r=e.oxw(2);e.xp6(4),e.hij(" ",e.lcZ(5,1,r.totalCharge)," \u0111")}}function S(s,g){if(1&s&&(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&s){const r=g.$implicit;e.xp6(5),e.Oqu(r.ticketNumber),e.xp6(5),e.hij("",e.lcZ(11,3,r.totalCharge)," \u0111"),e.xp6(6),e.Oqu(r.statusDisplay||"- -")}}function z(s,g){1&s&&(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 he=function(){return{num:25}},K=function(){return{num:50}},le=function(){return{num:75}},te=function(){return{num:100}},re=function(s,g,r,d){return[s,g,r,d]},ce=function(){return[]};function _e(s,g){if(1&s&&(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,I,11,10,"ng-template",13),e.qZA()()(),e.YNc(20,P,6,3,"div",14),e.TgZ(21,"div",15),e.YNc(22,S,17,5,"div",16),e.qZA(),e.YNc(23,z,5,0,"div",17)),2&s){const r=e.MAs(9),d=e.oxw();e.xp6(4),e.Oqu(d.bookingCode),e.xp6(4),e.Q6J("fnSort",d.sortChange)("fnSearch",d.searchChange)("pageSizeList",e.l5B(14,re,e.DdM(10,he),e.DdM(11,K),e.DdM(12,le),e.DdM(13,te)))("listData",d.listTicketNumber||e.DdM(19,ce))("pageSize",d.pageSize),e.xp6(11),e.Q6J("ngForOf",r.partOfdata),e.xp6(1),e.Q6J("ngIf",d.totalCharge),e.xp6(2),e.Q6J("ngForOf",d.listTicketNumber),e.xp6(1),e.Q6J("ngIf",!d.isSuccessFull)}}let X=(()=>{class s{constructor(r,d){this._permissonService=d,this.isLoading=!1,this.isSuccessFull=!0,this.listTicketNumber=[],this.actionChange=new e.vpe,this.pageSize=25,this.canOpenTicketNumber=this._permissonService.hasPermission(x.or.CanOpenFlightTicketNumber),this.searchChange=(h,k)=>k,this.sortChange=(h,k)=>k,r.registerIcons([v.xbi])}onReview(r){this.onActionChange({action:"review",ticketNumber:r})}onVoidBooking(){this.onActionChange({action:"void",ticketNumber:""})}onActionChange(r){this.actionChange.emit(r)}}return s.\u0275fac=function(r){return new(r||s)(e.Y36(v.KNP),e.Y36(x.$A))},s.\u0275cmp=e.Xpm({type:s,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(r,d){if(1&r&&(e.YNc(0,m,5,0,"div",0),e.YNc(1,_e,24,20,"ng-template",null,1,e.W1O)),2&r){const h=e.MAs(2);e.Q6J("ngIf",d.isLoading)("ngIfElse",h)}},dependencies:[_.ez,_.mk,_.sg,_.O5,_.JJ,l.rC,l.E_,l.zs,l.qS,Z.N8,u.IA,v.AxE,v.Sm8,q.b],encapsulation:2}),s})();var ne=f(97579);function O(s,g){if(1&s){const r=e.EpF();e.TgZ(0,"div",11)(1,"button",12),e.NdJ("click",function(){e.CHM(r);const h=e.oxw();return e.KtG(h.onOpenBookingCode())}),e._uU(2," M\u1edf booking "),e.qZA()()}}function F(s,g){if(1&s&&(e.ynx(0),e._uU(1),e._UZ(2,"br"),e.BQk()),2&s){const r=g.$implicit;e.xp6(1),e.qoO([" ",r.number," ",r.airline," ",r.flightNumber," ",r.classCode," ",r.date," ",r.brdoff," ",r.time," ",r.status," ",r.fareBasis," ",r.statusCode," ",r.baggageAllowance," "])}}let ae=(()=>{class s{constructor(r,d){this.ref=r,this.isAction=!1,this.airline="VN",d.registerIcons([v.UNF]),this.ticketDetail=r.data.ticketDetail,this.isAction=r.data.isAction,this.airline=r.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 s.\u0275fac=function(r){return new(r||s)(e.Y36(ne.gb),e.Y36(v.KNP))},s.\u0275cmp=e.Xpm({type:s,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(r,d){1&r&&(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 d.close()}),e.qZA()()(),e.TgZ(7,"div",5),e.YNc(8,O,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,F,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 d.close()}),e._uU(51," \u0110\xf3ng "),e.qZA()()()()),2&r&&(e.xp6(8),e.Q6J("ngIf",d.isAction),e.xp6(4),e.AsE(" ",d.ticketDetail.ticketNumber," NAME-",d.ticketDetail.passengerName," "),e.xp6(2),e.HOy(" TTL NBR OF CPNS- ",d.ticketDetail.ticketInfo.numCoupons," DATE OF ISSUE-",d.ticketDetail.ticketInfo.issueDate," PNR-",d.ticketDetail.ticketInfo.bookingCode," ",d.ticketDetail.ticketInfo.createDate," "),e.xp6(4),e.Q6J("ngForOf",d.ticketDetail.segments),e.xp6(2),e.AsE(" FARE ",d.ticketDetail.pricingInfo.baseFare," ",d.ticketDetail.pricingInfo.taxes," "),e.xp6(2),e.hij(" TOTAL ",d.ticketDetail.pricingInfo.totalFare," "),e.xp6(3),e.hij(" FARE CALC ",d.ticketDetail.fareCalc," "),e.xp6(7),e.AsE(" FOP-AGENCY CREDIT ",d.ticketDetail.paymentCardNumber," APPROVAL CODE-",d.ticketDetail.authorizationCode," "),e.xp6(2),e.lnq(" DATE OF ISSUE-",d.ticketDetail.ticketData.issueDate," ISSUED AT-",d.ticketDetail.ticketData.printStation," ",d.ticketDetail.ticketData.issuingAgent||""," "),e.xp6(4),e.hij(" ",d.ticketDetail.ticketData.endorsements," "))},dependencies:[_.ez,_.sg,_.O5,Z.N8,Z.Xq,v.AxE,v.Sm8],encapsulation:2}),s})();var ie=f(74713),H=f(24006),W=f(44143),se=f(24513),j=f(74891),de=f(88001),G=f(37094),Ze=f(98184);function pe(s,g){1&s&&(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 A(s,g){1&s&&e._UZ(0,"cf-icon",82)}function ye(s,g){1&s&&e._UZ(0,"cf-icon",83)}function R(s,g){if(1&s&&(e.TgZ(0,"div",84),e._UZ(1,"span"),e.TgZ(2,"span",85),e._uU(3),e.ALo(4,"date"),e.qZA()()),2&s){const r=g.$implicit;e.xp6(3),e.lnq("",r.startPoint," - ",r.endPoint," (",e.xi3(4,3,r.startTime,"HH:mm - dd/MM/yyyy"),")")}}function $(s,g){if(1&s){const r=e.EpF();e.TgZ(0,"div",86),e.NdJ("click",function(){e.CHM(r);const h=e.oxw(2);return e.KtG(h.gotoBookingDetail())}),e._uU(1," M\u1edf booking "),e.qZA()}}function be(s,g){1&s&&e._UZ(0,"cf-input-hint",91)}function Ee(s,g){if(1&s){const r=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(h){e.CHM(r);const k=e.oxw(2);return e.KtG(k.onSelectedChange(h))}),e.YNc(6,be,1,0,"cf-input-hint",90),e.qZA()()()}if(2&s){const r=e.oxw(2);e.xp6(5),e.Q6J("status","default")("data",r.optionAgent)("allowSearch",!0)("formControl",r.agentSelectControl)("status",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted)?"error":"default"),e.xp6(1),e.Q6J("ngIf",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted))}}function Ue(s,g){1&s&&(e.TgZ(0,"th",37),e._uU(1,"Chi\u1ebft kh\u1ea5u"),e.qZA())}function qe(s,g){if(1&s&&(e.TgZ(0,"td",97),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.hij(" (",e.lcZ(2,1,r.discountAmount),")")}}function Ie(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,r.totalDiscountFarePrice)," ")}}function we(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,r.total))}}function Be(s,g){if(1&s&&(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,qe,3,3,"td",95),e.TgZ(12,"td",96),e.YNc(13,Ie,3,3,"span",48),e.YNc(14,we,3,3,"ng-template",null,49,e.W1O),e.qZA()()),2&s){const r=g.$implicit,d=e.MAs(15),h=e.oxw(2);e.xp6(2),e.Oqu(r.name),e.xp6(2),e.Oqu(r.type),e.xp6(2),e.Oqu(e.lcZ(7,7,r.base)),e.xp6(3),e.Oqu(e.lcZ(10,9,r.tax)),e.xp6(2),e.Q6J("ngIf",h.hasDiscountFare),e.xp6(2),e.Q6J("ngIf",r.discountAmount&&h.hasDiscountFare)("ngIfElse",d)}}function Ne(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountBasePrice)," \u0111")}}function Fe(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalBasePrice)," \u0111")}}function Je(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function Se(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.hij("",e.lcZ(2,1,r.priceDetail.totalPrice)," \u0111")}}function Oe(s,g){if(1&s){const r=e.EpF();e.TgZ(0,"button",98),e.NdJ("click",function(h){e.CHM(r);const k=e.oxw(2);return e.KtG(k.onIssue(h))}),e._uU(1," Xu\u1ea5t v\xe9 "),e.qZA()}if(2&s){const r=e.oxw(2);e.Q6J("disabled",r.isLoading)}}function Pe(s,g){1&s&&(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 je(s,g){if(1&s&&(e.TgZ(0,"button",99,100),e._uU(3," Xu\u1ea5t v\xe9 "),e.YNc(4,Pe,4,0,"ng-template",null,101,e.W1O),e.qZA()),2&s){const r=e.MAs(5);e.Q6J("disabled",!0)("disabledOneClick",!0)("disabledOneClick",!0)("manualHandle",!1)("placement","topCenter")("cfTooltip",r)}}function Qe(s,g){1&s&&(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 Me(s,g){1&s&&(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 Ye(s,g){1&s&&e._UZ(0,"cf-icon",82)}function Le(s,g){1&s&&e._UZ(0,"cf-icon",83)}function He(s,g){if(1&s&&(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&s){const r=e.oxw(2);e.xp6(3),e.AsE(" ",r.bookingDetail.journeys[0].startPoint,"-",r.bookingDetail.journeys[0].endPoint,""),e.xp6(2),e.hij(" ",e.xi3(6,6,r.bookingDetail.journeys[0].startTime,"HH:mm - dd/MM/yyyy"),""),e.xp6(5),e.AsE(" ",r.bookingDetail.journeys[1].startPoint,"-",r.bookingDetail.journeys[1].endPoint,""),e.xp6(2),e.hij(" ",e.xi3(13,9,r.bookingDetail.journeys[1].startTime,"HH:mm - dd/MM/yyyy"),"")}}function Re(s,g){1&s&&(e.TgZ(0,"div",71),e._uU(1," Th\xf4ng tin li\xean h\u1ec7 "),e.qZA())}function ze(s,g){1&s&&e._UZ(0,"cf-input-hint",91)}function Ge(s,g){if(1&s){const r=e.EpF();e.TgZ(0,"div",108)(1,"cf-select",89),e.NdJ("selectedChange",function(h){e.CHM(r);const k=e.oxw(2);return e.KtG(k.onSelectedChange(h))}),e.YNc(2,ze,1,0,"cf-input-hint",90),e.qZA()()}if(2&s){const r=e.oxw(2);e.xp6(1),e.Q6J("status","default")("data",r.optionAgent)("allowSearch",!1)("formControl",r.agentSelectControl)("status",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted)?"error":"default"),e.xp6(1),e.Q6J("ngIf",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted))}}function $e(s,g){if(1&s&&(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&s){const r=e.oxw().$implicit;e.xp6(4),e.hij("(",e.lcZ(5,1,r.discountAmount),")")}}function Ve(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function Ke(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij("",e.lcZ(2,1,r.priceDetail.totalPrice)," \u0111")}}function Xe(s,g){if(1&s&&(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,$e,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,Ve,3,3,"span",48),e.YNc(29,Ke,3,3,"ng-template",null,49,e.W1O),e.qZA()()()),2&s){const r=g.$implicit,d=e.MAs(30),h=e.oxw(2);e.xp6(5),e.Oqu(r.name),e.xp6(5),e.Oqu(r.type),e.xp6(5),e.Oqu(e.lcZ(16,7,r.base)),e.xp6(6),e.Oqu(e.lcZ(22,9,r.tax)),e.xp6(2),e.Q6J("ngIf",h.hasDiscountFare),e.xp6(5),e.Q6J("ngIf",h.priceDetail.totalDiscountFareCharge&&h.hasDiscountFare)("ngIfElse",d)}}function We(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function et(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(2);e.xp6(1),e.hij("",e.lcZ(2,1,r.priceDetail.totalPrice)," \u0111")}}function tt(s,g){if(1&s){const r=e.EpF();e.TgZ(0,"button",114),e.NdJ("click",function(h){e.CHM(r);const k=e.oxw(2);return e.KtG(k.onIssue(h))}),e._uU(1,"Xu\u1ea5t v\xe9"),e.qZA()}}function nt(s,g){1&s&&(e.TgZ(0,"button",115,100),e._uU(3,"Xu\u1ea5t v\xe9"),e.qZA()),2&s&&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 it(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountBasePrice)," \u0111")}}function ot(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalBasePrice)," \u0111")}}function rt(s,g){if(1&s&&(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,it,3,3,"span",46),e.YNc(6,ot,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&s){const r=e.oxw(2);e.xp6(5),e.Q6J("ngIf",r.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!r.priceDetail.totalDiscountBasePrice),e.xp6(5),e.hij("",e.lcZ(12,4,r.priceDetail.totalAddonService),"\u0111"),e.xp6(6),e.hij("",e.lcZ(18,6,r.priceDetail.totalServiceFee),"\u0111")}}function at(s,g){if(1&s){const r=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,A,1,0,"cf-icon",17),e.YNc(22,ye,1,0,"cf-icon",18),e.TgZ(23,"span"),e._uU(24),e.qZA()(),e.YNc(25,R,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,$,2,0,"div",27),e.qZA(),e.YNc(42,Ee,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,Ue,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,Be,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,Ne,3,3,"span",46),e.YNc(72,Fe,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,Je,3,3,"span",48),e.YNc(90,Se,3,3,"ng-template",null,49,e.W1O),e.qZA()()()(),e.TgZ(92,"div",50),e.YNc(93,Oe,2,1,"button",51),e.YNc(94,je,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,Qe,5,0,"ng-container",46),e.YNc(109,Me,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,Ye,1,0,"cf-icon",17),e.YNc(122,Le,1,0,"cf-icon",18),e.TgZ(123,"div",66),e._uU(124),e.qZA()()(),e.YNc(125,He,14,12,"div",67),e.TgZ(126,"div",68),e.NdJ("click",function(){e.CHM(r);const h=e.oxw();return e.KtG(h.gotoBookingDetail())}),e._uU(127,"M\u1edf booking"),e.qZA()(),e.YNc(128,Re,2,0,"div",69),e.YNc(129,Ge,3,6,"div",70),e.TgZ(130,"div",71),e._uU(131," Chi ti\u1ebft chi ph\xed "),e.qZA(),e.YNc(132,Xe,31,11,"div",72),e.TgZ(133,"div",73),e.NdJ("click",function(){e.CHM(r);const h=e.MAs(147),k=e.oxw();return e.KtG(k.toggle(h))}),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,We,3,3,"span",48),e.YNc(140,et,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,tt,2,0,"button",79),e.YNc(145,nt,4,6,"button",80),e.qZA()(),e.YNc(146,rt,19,8,"ng-template",null,81,e.W1O),e.qZA()}if(2&s){const r=e.MAs(91),d=e.oxw();e.xp6(8),e.Q6J("src","assets/airline-logo/"+d.bookingDetail.airlineSystem+".png",e.LSH),e.xp6(3),e.hij("",d.bookingDetail.airlineSystem," -\xa0"),e.xp6(2),e.Oqu(d.bookingDetail.airlineName),e.xp6(2),e.hij(" H\u1ec7 th\u1ed1ng: ",d.bookingDetail.airlineSystem," "),e.xp6(5),e.Oqu(d.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngIf",1===d.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",d.bookingDetail.journeys.length>1),e.xp6(2),e.Oqu(d.bookingDetail.endPoint),e.xp6(1),e.Q6J("ngForOf",d.bookingDetail.journeys),e.xp6(6),e.Oqu(d.bookingDetail.bookingCode),e.xp6(9),e.Oqu(d.bookingDetail.statusText),e.xp6(1),e.Q6J("ngIf",d.bookingDetail.internal),e.xp6(1),e.Q6J("ngIf",!d.bookingDetail.internal),e.xp6(18),e.Q6J("ngIf",d.hasDiscountFare),e.xp6(4),e.Q6J("ngForOf",null==d.priceDetail?null:d.priceDetail.passengers),e.xp6(7),e.Q6J("ngIf",d.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!d.priceDetail.totalDiscountBasePrice),e.xp6(5),e.hij("",e.lcZ(78,44,d.priceDetail.totalAddonService)," \u0111 "),e.xp6(6),e.hij("",e.lcZ(84,46,d.priceDetail.totalServiceFee)," \u0111 "),e.xp6(6),e.Q6J("ngIf",d.priceDetail.totalDiscountFareCharge&&d.hasDiscountFare)("ngIfElse",r),e.xp6(4),e.Q6J("ngIf",!d.isDisableIssue),e.xp6(1),e.Q6J("ngIf",d.isDisableIssue),e.xp6(11),e.Oqu(d.bookingDetail.bookingCode),e.xp6(3),e.Q6J("ngIf","BOOKED"===d.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","ISSUED"===d.bookingDetail.status),e.xp6(3),e.Q6J("src","assets/airline-logo/"+d.bookingDetail.airlineSystem+".png",e.LSH),e.xp6(3),e.Oqu(d.bookingDetail.flightNumber),e.xp6(2),e.Oqu(d.bookingDetail.airlineName),e.xp6(3),e.Oqu(d.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngIf",1===d.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",d.bookingDetail.journeys.length>1),e.xp6(2),e.Oqu(d.bookingDetail.endPoint),e.xp6(1),e.Q6J("ngIf",2===d.bookingDetail.journeys.length),e.xp6(3),e.Q6J("ngIf",!d.bookingDetail.internal),e.xp6(1),e.Q6J("ngIf",!d.bookingDetail.internal),e.xp6(3),e.Q6J("ngForOf",null==d.priceDetail?null:d.priceDetail.passengers),e.xp6(1),e.ekj("!z-1000",d.increaseZIndex),e.xp6(6),e.Q6J("ngIf",d.priceDetail.totalDiscountFareCharge&&d.hasDiscountFare)("ngIfElse",r),e.xp6(3),e.Q6J("icon",d.iconChevron),e.xp6(2),e.Q6J("ngIf",!d.isDisableIssue),e.xp6(1),e.Q6J("ngIf",d.isDisableIssue)}}let st=(()=>{class s{constructor(r,d,h,k){this._fb=d,this._bottomSheetService=h,this._permissionService=k,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,r.registerIcons([v.llu,v.B2I,v.Ffn,v._tC,v.Ey$,v.fqi,v.n78]),this.agentSelectControl=this._fb.control("")}ngOnChanges(r){var d;this.agentSelectControl=null!==(d=this.bookingDetail)&&void 0!==d&&d.internal?this._fb.control(""):this._fb.control("",H.kI.required),this.bookingDetail.provider===de.QK.BSP&&(!this.bookingDetail.ticketingAllowed||!this._permissionService.hasPermission(x.or.CanIssuedFlightTicketBSP))&&(this.isDisableIssue=!0),this.bookingDetail.provider===de.QK.AIR_1G&&(!this.bookingDetail.ticketingAllowed||!this._permissionService.hasPermission(x.or.CanIssuedFlightTicket1G))&&(this.isDisableIssue=!0)}onIssue(r){r.stopPropagation(),this.isSubmitted=!0,this.agentSelectControl.valid&&this.issueBooking.emit()}gotoBookingDetail(){this.gotoBooking.emit()}onSelectedChange(r){this.selectedAgent.emit(r)}toggle(r){this.isBottomSheetOpen?this.closeBotomSheet():this.openBottomSheet(r)}openBottomSheet(r){this.bottomSheetRef=this._bottomSheetService.open(r,{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 s.\u0275fac=function(r){return new(r||s)(e.Y36(v.KNP),e.Y36(H.qu),e.Y36(G.a2),e.Y36(x.$A))},s.\u0275cmp=e.Xpm({type:s,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(r,d){if(1&r&&(e.YNc(0,pe,5,0,"div",0),e.YNc(1,at,148,48,"ng-template",null,1,e.W1O)),2&r){const h=e.MAs(2);e.Q6J("ngIf",d.isLoading)("ngIfElse",h)}},dependencies:[_.ez,_.sg,_.O5,_.JJ,_.uU,W.j$,W.v2,u.IA,v.AxE,v.Sm8,Z.N8,Z.Xq,ie.q,H.u5,H.JJ,H.UX,H.oH,se.Lk,j.f,Ze.xu],encapsulation:2}),s})(),ut=(()=>{class s{constructor(r,d,h,k){this.ref=r,this.bottomSheetData=d,this.bottomSheetRef=h,k.registerIcons([v.UNF]),r&&(this.priceChangeData=r.data.priceChangeData),d&&(this.priceChangeData=d.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 s.\u0275fac=function(r){return new(r||s)(e.Y36(ne.gb,8),e.Y36(G.Rr,8),e.Y36(G.Zu,8),e.Y36(v.KNP))},s.\u0275cmp=e.Xpm({type:s,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(r,d){1&r&&(e.TgZ(0,"div",0)(1,"div",1)(2,"cf-icon",2),e.NdJ("click",function(){return d.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 d.close()}),e._uU(26," H\u1ee7y "),e.qZA(),e.TgZ(27,"button",12),e.NdJ("click",function(){return d.ok()}),e._uU(28," Xu\u1ea5t v\xe9 "),e.qZA()()()),2&r&&(e.xp6(13),e.hij("",e.lcZ(14,4,d.priceChangeData.oldPrice)," \u0111"),e.xp6(3),e.AsE("",d.priceChangeData.type,"",e.lcZ(17,6,d.priceChangeData.priceGap)," \u0111"),e.xp6(6),e.hij("",e.lcZ(23,8,d.priceChangeData.newPrice)," \u0111"))},dependencies:[_.ez,_.JJ,v.AxE,v.Sm8,Z.N8,Z.Xq],encapsulation:2}),s})();function lt(s,g){if(1&s&&(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&s){const r=e.oxw();e.xp6(14),e.hij("",e.lcZ(15,2,r.discountChangeData.oldPrice)," \u0111"),e.xp6(6),e.hij("",e.lcZ(21,4,r.discountChangeData.newPrice)," \u0111")}}function ct(s,g){if(1&s&&(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&s){const r=e.oxw();e.xp6(13),e.hij("",e.lcZ(14,1,r.discountChangeData.newPrice)," \u0111")}}let dt=(()=>{class s{constructor(r,d,h,k){this.ref=d,this.bottomSheetData=h,this.bottomSheetRef=k,r.registerIcons([v.UNF]),d&&(this.discountChangeData=d.data.discountChangeData),h&&(this.discountChangeData=h.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 s.\u0275fac=function(r){return new(r||s)(e.Y36(v.KNP),e.Y36(ne.gb,8),e.Y36(G.Rr,8),e.Y36(G.Zu,8))},s.\u0275cmp=e.Xpm({type:s,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(r,d){1&r&&(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 d.close()}),e.qZA()(),e.YNc(5,lt,24,6,"div",4),e.YNc(6,ct,15,3,"div",5),e.TgZ(7,"div",6)(8,"button",7),e.NdJ("click",function(){return d.close()}),e._uU(9," H\u1ee7y "),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return d.ok()}),e._uU(11," \u0110\u1ed3ng \xfd & Xu\u1ea5t v\xe9 "),e.qZA()()()),2&r&&(e.xp6(5),e.Q6J("ngIf","DISCOUNT_REDUCED"===d.discountChangeData.type),e.xp6(1),e.Q6J("ngIf","DISCOUNT_REDUCED"!==d.discountChangeData.type))},dependencies:[_.ez,_.O5,_.JJ,v.AxE,v.Sm8,Z.N8,Z.Xq],encapsulation:2}),s})();function pt(s,g){1&s&&(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 gt(s,g){1&s&&e._UZ(0,"cf-icon",58)}function _t(s,g){1&s&&e._UZ(0,"cf-icon",59)}function E(s,g){if(1&s&&(e.TgZ(0,"div",57)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,gt,1,0,"cf-icon",31),e.YNc(4,_t,1,0,"cf-icon",32),e.TgZ(5,"span"),e._uU(6),e.qZA()()),2&s){const r=e.oxw(3);e.xp6(2),e.Oqu(r.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngIf",1===r.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",r.bookingDetail.journeys.length>1),e.xp6(2),e.Oqu(r.bookingDetail.endPoint)}}function D(s,g){if(1&s&&(e.TgZ(0,"div",60),e._UZ(1,"span"),e.TgZ(2,"span",61),e._uU(3),e.ALo(4,"date"),e.qZA()()),2&s){const r=g.$implicit;e.xp6(3),e.lnq("",r.startPoint," - ",r.endPoint," (",e.xi3(4,3,r.startTime,"HH:mm - dd/MM/yyyy"),")")}}function xe(s,g){1&s&&e._UZ(0,"div",45)}function De(s,g){if(1&s&&(e.TgZ(0,"div",37)(1,"div",38)(2,"div",39)(3,"div"),e._UZ(4,"img",40),e.qZA(),e.TgZ(5,"div",41)(6,"span",42),e._uU(7),e.qZA(),e.TgZ(8,"span",43),e._uU(9),e.qZA()(),e.TgZ(10,"div",44),e._uU(11),e.qZA()(),e._UZ(12,"div",45),e.TgZ(13,"div",46),e.YNc(14,E,7,4,"div",47),e.YNc(15,D,5,6,"div",48),e.qZA(),e.YNc(16,xe,1,0,"div",49),e.TgZ(17,"div",50)(18,"div",51),e._uU(19,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(20,"div",52),e._uU(21),e.qZA()(),e._UZ(22,"div",45),e.TgZ(23,"div",50)(24,"div",51),e._uU(25,"Tr\u1ea1ng th\xe1i"),e.qZA(),e.TgZ(26,"div",53),e._UZ(27,"cf-icon",54),e.TgZ(28,"div",55)(29,"label",56),e._uU(30),e.qZA()()()()()()),2&s){const r=e.oxw(2);e.xp6(4),e.Q6J("src","assets/airline-logo/"+r.bookingDetail.airlineSystem+".png",e.LSH),e.xp6(3),e.hij("",r.bookingDetail.airlineSystem," -\xa0"),e.xp6(2),e.Oqu(r.bookingDetail.airlineName),e.xp6(2),e.hij(" H\u1ec7 th\u1ed1ng: ",r.bookingDetail.airlineSystem," "),e.xp6(3),e.Q6J("ngIf",r.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngForOf",r.bookingDetail.journeys),e.xp6(1),e.Q6J("ngIf",r.bookingDetail.startPoint),e.xp6(5),e.Oqu(r.bookingDetail.bookingCode),e.xp6(9),e.Oqu(r.bookingDetail.statusText)}}function Q(s,g){1&s&&e._UZ(0,"cf-input-hint",62)}function Ae(s,g){1&s&&(e.TgZ(0,"th",69),e._uU(1,"Chi\u1ebft kh\u1ea5u"),e.qZA())}function Y(s,g){if(1&s&&(e.TgZ(0,"td",86),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.hij(" (",e.lcZ(2,1,r.discountAmount),")")}}function ue(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,r.totalDiscountFarePrice)," ")}}function M(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,r.total))}}function ve(s,g){if(1&s&&(e.TgZ(0,"tr")(1,"td",81),e._uU(2),e.qZA(),e.TgZ(3,"td",82),e._uU(4),e.qZA(),e.TgZ(5,"td",83),e._uU(6),e.ALo(7,"number"),e.qZA(),e.TgZ(8,"td",83),e._uU(9),e.ALo(10,"number"),e.qZA(),e.YNc(11,Y,3,3,"td",84),e.TgZ(12,"td",85),e.YNc(13,ue,3,3,"span",79),e.YNc(14,M,3,3,"ng-template",null,80,e.W1O),e.qZA()()),2&s){const r=g.$implicit,d=e.MAs(15),h=e.oxw(3);e.xp6(2),e.Oqu(r.name),e.xp6(2),e.Oqu(r.type),e.xp6(2),e.Oqu(e.lcZ(7,7,r.base)),e.xp6(3),e.Oqu(e.lcZ(10,9,r.tax)),e.xp6(2),e.Q6J("ngIf",h.hasDiscountFare),e.xp6(2),e.Q6J("ngIf",r.discountAmount&&h.hasDiscountFare)("ngIfElse",d)}}function oe(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountBasePrice)," \u0111")}}function ft(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalBasePrice)," \u0111")}}function mt(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function ht(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij("",e.lcZ(2,1,r.priceDetail.totalPrice)," \u0111")}}function xt(s,g){if(1&s&&(e.TgZ(0,"div",63)(1,"div",8),e._UZ(2,"cf-icon",9),e._uU(3," Chi ti\u1ebft chi ph\xed "),e.qZA(),e.TgZ(4,"div",64)(5,"div")(6,"table",65)(7,"thead")(8,"tr",66)(9,"th",67),e._uU(10,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(11,"th",68),e._uU(12,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(13,"th",69),e._uU(14,"Gi\xe1 v\xe9"),e.qZA(),e.TgZ(15,"th",69),e._uU(16,"Thu\u1ebf ph\xed"),e.qZA(),e.YNc(17,Ae,2,0,"th",70),e.TgZ(18,"th",71),e._uU(19,"T\u1ed5ng gi\xe1"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,ve,16,11,"tr",72),e.qZA()(),e._UZ(22,"hr",73),e.qZA(),e.TgZ(23,"div",74)(24,"div",75)(25,"div",76),e._uU(26,"T\u1ed5ng gi\xe1 g\u1ed1c"),e.qZA(),e.TgZ(27,"div",77),e.YNc(28,oe,3,3,"span",25),e.YNc(29,ft,3,3,"span",25),e.qZA()(),e.TgZ(30,"div",75)(31,"div",76),e._uU(32,"D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam"),e.qZA(),e.TgZ(33,"div",77),e._uU(34),e.ALo(35,"number"),e.qZA()(),e.TgZ(36,"div",75)(37,"div",76),e._uU(38,"Ph\xed d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(39,"div",77),e._uU(40),e.ALo(41,"number"),e.qZA()(),e.TgZ(42,"div",75)(43,"div",76),e._uU(44,"T\u1ed5ng chi ph\xed"),e.qZA(),e.TgZ(45,"div",78),e.YNc(46,mt,3,3,"span",79),e.YNc(47,ht,3,3,"ng-template",null,80,e.W1O),e.qZA()()()()()),2&s){const r=e.MAs(48),d=e.oxw(2);e.xp6(17),e.Q6J("ngIf",d.hasDiscountFare),e.xp6(4),e.Q6J("ngForOf",null==d.priceDetail?null:d.priceDetail.passengers),e.xp6(7),e.Q6J("ngIf",d.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!d.priceDetail.totalDiscountBasePrice),e.xp6(5),e.hij("",e.lcZ(35,8,d.priceDetail.totalAddonService)," \u0111 "),e.xp6(6),e.hij("",e.lcZ(41,10,d.priceDetail.totalServiceFee)," \u0111 "),e.xp6(6),e.Q6J("ngIf",d.priceDetail.totalDiscountFareCharge&&d.hasDiscountFare)("ngIfElse",r)}}function vt(s,g){1&s&&(e.ynx(0),e.O4$(),e.TgZ(1,"svg",87),e._UZ(2,"path",88),e.qZA(),e.kcU(),e.TgZ(3,"div",89),e._uU(4,"\u0110\xe3 gi\u1eef ch\u1ed7"),e.qZA(),e.BQk())}function Pt(s,g){1&s&&(e.ynx(0),e.O4$(),e.TgZ(1,"svg",90),e._UZ(2,"path",88),e.qZA(),e.kcU(),e.TgZ(3,"div",89),e._uU(4,"\u0110\xe3 xu\u1ea5t v\xe9"),e.qZA(),e.BQk())}function Ct(s,g){1&s&&e._UZ(0,"cf-icon",58)}function Zt(s,g){1&s&&e._UZ(0,"cf-icon",59)}function yt(s,g){if(1&s&&(e.TgZ(0,"div",91)(1,"div",92)(2,"div",28),e._uU(3),e.qZA(),e.TgZ(4,"div",21),e._uU(5),e.ALo(6,"date"),e.qZA()(),e._UZ(7,"cf-icon",59),e.TgZ(8,"div",92)(9,"div",28),e._uU(10),e.qZA(),e.TgZ(11,"div",21),e._uU(12),e.ALo(13,"date"),e.qZA()()()),2&s){const r=e.oxw(2);e.xp6(3),e.AsE(" ",r.bookingDetail.journeys[0].startPoint,"-",r.bookingDetail.journeys[0].endPoint,""),e.xp6(2),e.hij(" ",e.xi3(6,6,r.bookingDetail.journeys[0].startTime,"HH:mm - dd/MM/yyyy"),""),e.xp6(5),e.AsE(" ",r.bookingDetail.journeys[1].startPoint,"-",r.bookingDetail.journeys[1].endPoint,""),e.xp6(2),e.hij(" ",e.xi3(13,9,r.bookingDetail.journeys[1].startTime,"HH:mm - dd/MM/yyyy"),"")}}function bt(s,g){1&s&&e._UZ(0,"cf-input-hint",62)}function Et(s,g){if(1&s&&(e.TgZ(0,"div",105)(1,"div",106),e._uU(2,"Chi\u1ebft kh\u1ea5u"),e.qZA(),e.TgZ(3,"div",108),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&s){const r=e.oxw().$implicit;e.xp6(4),e.hij("(",e.lcZ(5,1,r.discountAmount),")")}}function Dt(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(4);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function At(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,r.priceDetail.totalPrice)," \u0111")}}function Tt(s,g){if(1&s&&(e.TgZ(0,"div",104)(1,"div",105)(2,"div",106),e._uU(3,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(4,"div",89),e._uU(5),e.qZA()(),e.TgZ(6,"div",105)(7,"div",106),e._uU(8,"Lo\u1ea1i"),e.qZA(),e.TgZ(9,"div",89),e._uU(10),e.qZA()(),e.TgZ(11,"div",105)(12,"div",106),e._uU(13,"Gi\xe1 v\xe9"),e.qZA(),e.TgZ(14,"div",89),e._uU(15),e.ALo(16,"number"),e.qZA()(),e.TgZ(17,"div",105)(18,"div",106),e._uU(19,"Thu\u1ebf ph\xed"),e.qZA(),e.TgZ(20,"div",89),e._uU(21),e.ALo(22,"number"),e.qZA()(),e.YNc(23,Et,6,3,"div",107),e.TgZ(24,"div",105)(25,"div",106),e._uU(26,"T\u1ed5ng chi ph\xed"),e.qZA(),e.TgZ(27,"div",89),e.YNc(28,Dt,3,3,"span",79),e.YNc(29,At,3,3,"ng-template",null,80,e.W1O),e.qZA()()()),2&s){const r=g.$implicit,d=e.MAs(30),h=e.oxw(3);e.xp6(5),e.Oqu(r.name),e.xp6(5),e.Oqu(r.type),e.xp6(5),e.Oqu(e.lcZ(16,7,r.base)),e.xp6(6),e.Oqu(e.lcZ(22,9,r.tax)),e.xp6(2),e.Q6J("ngIf",h.hasDiscountFare),e.xp6(5),e.Q6J("ngIf",h.priceDetail.totalDiscountFareCharge&&h.hasDiscountFare)("ngIfElse",d)}}function kt(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountFareCharge)," \u0111 ")}}function Ut(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(3);e.xp6(1),e.hij("",e.lcZ(2,1,r.priceDetail.totalPrice)," \u0111")}}function qt(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(4);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalDiscountBasePrice)," \u0111")}}function It(s,g){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&s){const r=e.oxw(4);e.xp6(1),e.hij(" ",e.lcZ(2,1,r.priceDetail.totalBasePrice)," \u0111")}}function wt(s,g){if(1&s&&(e.TgZ(0,"div",109)(1,"div",110)(2,"div",111),e._uU(3,"T\u1ed5ng gi\xe1 g\u1ed1c"),e.qZA(),e.TgZ(4,"div",112),e.YNc(5,qt,3,3,"span",25),e.YNc(6,It,3,3,"span",25),e.qZA()(),e.TgZ(7,"div",110)(8,"div",111),e._uU(9,"D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam"),e.qZA(),e.TgZ(10,"div",112),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",110)(14,"div",111),e._uU(15,"Ph\xed d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(16,"div",112),e._uU(17),e.ALo(18,"number"),e.qZA()()()),2&s){const r=e.oxw(3);e.xp6(5),e.Q6J("ngIf",r.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!r.priceDetail.totalDiscountBasePrice),e.xp6(5),e.hij("",e.lcZ(12,4,r.priceDetail.totalAddonService),"\u0111"),e.xp6(6),e.hij("",e.lcZ(18,6,r.priceDetail.totalServiceFee),"\u0111")}}function Bt(s,g){if(1&s){const r=e.EpF();e.TgZ(0,"div",93)(1,"div",94),e._uU(2," Chi ti\u1ebft chi ph\xed "),e.qZA(),e.YNc(3,Tt,31,11,"div",95),e.TgZ(4,"div",96),e.NdJ("click",function(){e.CHM(r);const h=e.MAs(18),k=e.oxw(2);return e.KtG(k.toggle(h))}),e.TgZ(5,"div",97)(6,"div",98)(7,"div",99),e._uU(8,"T\u1ed5ng chi ph\xed:"),e.qZA(),e.TgZ(9,"div",100),e.YNc(10,kt,3,3,"span",79),e.YNc(11,Ut,3,3,"ng-template",null,80,e.W1O),e.qZA(),e._UZ(13,"cf-icon",101),e.qZA()(),e.TgZ(14,"div")(15,"button",102),e.NdJ("click",function(h){e.CHM(r);const k=e.oxw(2);return e.KtG(k.onImport(h))}),e._uU(16,"Import"),e.qZA()()(),e.YNc(17,wt,19,8,"ng-template",null,103,e.W1O),e.qZA()}if(2&s){const r=e.MAs(12),d=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",null==d.priceDetail?null:d.priceDetail.passengers),e.xp6(1),e.ekj("!z-1000",d.increaseZIndex),e.xp6(6),e.Q6J("ngIf",d.priceDetail.totalDiscountFareCharge&&d.hasDiscountFare)("ngIfElse",r),e.xp6(3),e.Q6J("icon",d.iconChevron)}}function Nt(s,g){if(1&s){const r=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.YNc(4,De,31,9,"div",6),e.TgZ(5,"div",7)(6,"div",8),e._UZ(7,"cf-icon",9),e._uU(8," Th\xf4ng tin \u0111\u1ea1i l\xfd "),e.qZA(),e.TgZ(9,"div",10)(10,"cf-select",11),e.NdJ("selectedChange",function(h){e.CHM(r);const k=e.oxw();return e.KtG(k.onSelectedChange(h))}),e.YNc(11,Q,1,0,"cf-input-hint",12),e.qZA()()(),e.YNc(12,xt,49,12,"div",13),e.TgZ(13,"div",14)(14,"button",15),e.NdJ("click",function(h){e.CHM(r);const k=e.oxw();return e.KtG(k.onImport(h))}),e._uU(15," Import "),e.qZA()(),e.TgZ(16,"div",16)(17,"div",17),e._uU(18," Chi ti\u1ebft \u0111\u1eb7t ch\u1ed7 "),e.qZA(),e.TgZ(19,"div",18)(20,"div",19)(21,"div",20)(22,"div",21),e._uU(23,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(24,"div",22)(25,"div",23),e._uU(26),e.qZA(),e._UZ(27,"cf-icon",24),e.qZA()(),e.TgZ(28,"div",22),e.YNc(29,vt,5,0,"ng-container",25),e.YNc(30,Pt,5,0,"ng-container",25),e.qZA()(),e.TgZ(31,"div",26)(32,"div",22),e._UZ(33,"img",27),e.TgZ(34,"div",20)(35,"div",28),e._uU(36),e.qZA(),e.TgZ(37,"div",21),e._uU(38),e.qZA()()(),e.TgZ(39,"div",29)(40,"div",30),e._uU(41),e.qZA(),e.YNc(42,Ct,1,0,"cf-icon",31),e.YNc(43,Zt,1,0,"cf-icon",32),e.TgZ(44,"div",30),e._uU(45),e.qZA()()(),e.YNc(46,yt,14,12,"div",33),e.qZA(),e.TgZ(47,"div",34)(48,"cf-select",11),e.NdJ("selectedChange",function(h){e.CHM(r);const k=e.oxw();return e.KtG(k.onSelectedChange(h))}),e.TgZ(49,"label",35),e._uU(50," Th\xf4ng tin \u0111\u1ea1i l\xfd "),e.qZA(),e.YNc(51,bt,1,0,"cf-input-hint",12),e.qZA()(),e.YNc(52,Bt,19,6,"div",36),e.qZA()}if(2&s){const r=e.oxw();e.xp6(4),e.Q6J("ngIf",r.bookingDetail),e.xp6(6),e.Q6J("status","default")("data",r.optionAgent)("allowSearch",!0)("formControl",r.agentSelectControl)("status",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted)?"error":"default"),e.xp6(1),e.Q6J("ngIf",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted)),e.xp6(1),e.Q6J("ngIf",r.priceDetail),e.xp6(2),e.Q6J("disabled",r.isLoading),e.xp6(12),e.Oqu(r.bookingDetail.bookingCode),e.xp6(3),e.Q6J("ngIf","BOOKED"===r.bookingDetail.status),e.xp6(1),e.Q6J("ngIf","ISSUED"===r.bookingDetail.status),e.xp6(3),e.Q6J("src","assets/airline-logo/"+r.bookingDetail.airlineSystem+".png",e.LSH),e.xp6(3),e.Oqu(r.bookingDetail.flightNumber),e.xp6(2),e.Oqu(r.bookingDetail.airlineName),e.xp6(3),e.Oqu(r.bookingDetail.startPoint),e.xp6(1),e.Q6J("ngIf",1===r.bookingDetail.journeys.length),e.xp6(1),e.Q6J("ngIf",r.bookingDetail.journeys.length>1),e.xp6(2),e.Oqu(r.bookingDetail.endPoint),e.xp6(1),e.Q6J("ngIf",2===r.bookingDetail.journeys.length),e.xp6(2),e.Q6J("status","default")("data",r.optionAgent)("allowSearch",!0)("formControl",r.agentSelectControl)("status",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted)?"error":"default"),e.xp6(3),e.Q6J("ngIf",r.agentSelectControl.invalid&&(r.agentSelectControl.touched||r.agentSelectControl.dirty||r.isSubmitted)),e.xp6(1),e.Q6J("ngIf",r.priceDetail)}}let Ft=(()=>{class s{constructor(r,d,h,k){this._fb=d,this._bottomSheetService=h,this._permissionService=k,this.isLoading=!1,this.optionAgent=[],this.hasDiscountFare=!1,this.importBooking=new e.vpe,this.selectedAgent=new e.vpe,this.isSubmitted=!1,this.increaseZIndex=!1,this.iconChevron="chevron_up",this.isBottomSheetOpen=!1,r.registerIcons([v.llu,v.B2I,v.Ffn,v._tC,v.Ey$,v.fqi,v.n78]),this.agentSelectControl=this._fb.control("")}ngOnChanges(r){this.agentSelectControl=this._fb.control("",H.kI.required)}onImport(r){r.stopPropagation(),this.isSubmitted=!0,this.agentSelectControl.valid&&this.importBooking.emit()}onSelectedChange(r){this.selectedAgent.emit(r)}toggle(r){this.isBottomSheetOpen?this.closeBotomSheet():this.openBottomSheet(r)}openBottomSheet(r){this.bottomSheetRef=this._bottomSheetService.open(r,{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 s.\u0275fac=function(r){return new(r||s)(e.Y36(v.KNP),e.Y36(H.qu),e.Y36(G.a2),e.Y36(x.$A))},s.\u0275cmp=e.Xpm({type:s,selectors:[["import-pnr-detail"]],inputs:{bookingDetail:"bookingDetail",priceDetail:"priceDetail",isLoading:"isLoading",optionAgent:"optionAgent",hasDiscountFare:"hasDiscountFare"},outputs:{importBooking:"importBooking",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"],["class","bg-white py-4 px-6 mb-2 shadow-cf-md md:hidden",4,"ngIf"],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","mb-2","md:hidden"],[1,"text-heading-sm","text-neutral-black","p-6","flex","items-center","gap-x-2"],["icon","circle_information","size","small"],[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"],["class","bg-white rounded shadow-cf-md flex flex-col md:hidden",4,"ngIf"],[1,"text-right","py-6","px-4","border-t","border-neutral-gray-1","md:hidden"],["cf-button","","size","medium",3,"disabled","click"],[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"],[4,"ngIf"],[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"],["icon","arrow_right","size","small",4,"ngIf"],["icon","switch","size","small",4,"ngIf"],["class","flex justify-between items-center mt-3",4,"ngIf"],[1,"p-3","rounded-lg","bg-neutral-white","md:mt-2"],["cfLabel","",1,"text-express-sm","text-black"],["class","felx flex-col",4,"ngIf"],[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"],["class","text-heading-sm py-1 px-3 bg-neutral-gray-1 rounded flex gap-x-2 items-center w-fit",4,"ngIf"],["class","mt-3",4,"ngFor","ngForOf"],["class","w-[2px] h-[108px] border-l border-dashed border-neutral-gray-1",4,"ngIf"],[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"],[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"],["icon","switch","size","small"],[1,"mt-3"],[1,"text-espressive-sm","text-neutral-black"],["cfHint","","hint","Vui l\xf2ng ch\u1ecdn \u0111\u1ea1i l\xfd."],[1,"bg-white","rounded","shadow-cf-md","flex","flex-col","md:hidden"],[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"],[1,"min-w-[120px]","text-end","text-heading-md","text-primary-1-4"],[4,"ngIf","ngIfElse"],["noDiscountTempl",""],[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"],["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,"felx","flex-col"],[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"],["cf-button","",1,"w-24","justify-center",3,"click"],["totalPriceBts",""],[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"],[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(r,d){if(1&r&&(e.YNc(0,pt,5,0,"div",0),e.YNc(1,Nt,53,27,"ng-template",null,1,e.W1O)),2&r){const h=e.MAs(2);e.Q6J("ngIf",d.isLoading)("ngIfElse",h)}},dependencies:[_.ez,_.sg,_.O5,_.JJ,_.uU,W.j$,W.v2,u.IA,v.AxE,v.Sm8,Z.N8,Z.Xq,ie.q,H.u5,H.JJ,H.UX,H.oH,j.f],encapsulation:2}),s})()},57085:(ee,J,f)=>{f.d(J,{bz:()=>_,fJ:()=>q,$K:()=>Z,DW:()=>v,Ab:()=>l,i4:()=>x,aV:()=>u});const _=(m,p)=>m.get(p);var e=f(15439);const Z=(m,p)=>b=>{const T=b.controls[m];if(!T.value)return;const B=e(p).startOf("day").add(0,"hours").toDate().getTime(),I=e(T.value).toDate();I.setFullYear(I.getFullYear()+2);const P=I.getTime(),S=e(T.value).toDate();S.setFullYear(S.getFullYear()+12);const z=S.getTime();B<=z&&B>P?T.setErrors(null):B<=z?T.setErrors({DoBChildUnder:!0}):B>P&&T.setErrors({DoBChildUpper:!0})},v=(m,p)=>b=>{const T=b.controls[m];if(!T.value)return;const B=e(p).startOf("day").add(0,"hours").toDate().getTime(),I=e(T.value).toDate().getTime(),P=e(T.value).toDate();P.setFullYear(P.getFullYear()+2);const S=P.getTime();T.setErrors(B<=S&&B>I?null:{DoBInfant:!0})},q=(m,p)=>b=>{const T=b.controls[m];if(!T.value)return;const B=e(p).startOf("day").add(0,"hours").toDate().getTime(),I=e(T.value).toDate().getTime();T.setErrors(B-I>=378683424e3?null:{DoBAdult:!0})},l=m=>p=>{const b=p.controls[m];b.value&&b.setErrors(""!=b.value?null:{required:!0})},u=()=>m=>{let p=[];for(let b=0;b<m.controls.infantPassenger.controls.length;b++){const T=m.controls.infantPassenger.at(b).controls.parentIndex.value;p.push({index:b,parentIndex:T})}for(let b=0;b<m.controls.infantPassenger.controls.length;b++){const T=m.controls.infantPassenger.at(b).controls.parentIndex.value;p.filter(I=>I.parentIndex===T).length>1?m.controls.infantPassenger.at(b).controls.parentIndex.setErrors({ParentInfantDupplicate:!0}):m.controls.infantPassenger.at(b).controls.parentIndex.setErrors(null)}},x=(m,p)=>b=>{const T=b.controls[m],B=b.controls[p];if(!T.value||!B.value)return;const I=e(T.value).startOf("day").add(0,"hours").toDate().getTime();e(B.value).startOf("day").add(0,"hours").toDate().getTime()<=I?T.setErrors({issuanceDateInvalid:!0}):T.setErrors(null)}},57716:(ee,J,f)=>{f.d(J,{p:()=>e});var _=f(94650);let e=(()=>{class Z{constructor(q){this.el=q}onInputChange(q){const l=this.el.nativeElement,u=l.value,x=this.removeVietnameseAccents(u),m=this.removeSpecialCharacters(x);u!==m&&(l.value=m)}removeVietnameseAccents(q){const l={\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,x=>l[x]||x).toUpperCase()}removeSpecialCharacters(q){return q.replace(/[^a-zA-Z0-9]/g,"")}}return Z.\u0275fac=function(q){return new(q||Z)(_.Y36(_.SBq))},Z.\u0275dir=_.lG2({type:Z,selectors:[["","CfRemoveAccents",""]],hostBindings:function(q,l){1&q&&_.NdJ("input",function(x){return l.onInputChange(x)})},standalone:!0}),Z})()},40833:(ee,J,f)=>{function _(e,Z){if(Z.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+Z.length+" present")}f.d(J,{Z:()=>_})},91998:(ee,J,f)=>{function _(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)}f.d(J,{Z:()=>_})},35650:(ee,J,f)=>{f.d(J,{Z:()=>v});var _=f(91998),e=f(80953),Z=f(40833);function v(q,l){(0,Z.Z)(2,arguments);var u=(0,e.Z)(q),x=(0,_.Z)(l);return isNaN(x)?new Date(NaN):(x&&u.setDate(u.getDate()+x),u)}},43201:(ee,J,f)=>{f.d(J,{Z:()=>q});var _=f(91998),e=f(80953),Z=f(40833);function q(l,u){return(0,Z.Z)(2,arguments),function v(l,u){(0,Z.Z)(2,arguments);var x=(0,e.Z)(l),m=(0,_.Z)(u);if(isNaN(m))return new Date(NaN);if(!m)return x;var p=x.getDate(),b=new Date(x.getTime());return b.setMonth(x.getMonth()+m+1,0),p>=b.getDate()?b:(x.setFullYear(b.getFullYear(),b.getMonth(),p),x)}(l,12*(0,_.Z)(u))}},80953:(ee,J,f)=>{f.d(J,{Z:()=>Z});var _=f(86),e=f(40833);function Z(v){(0,e.Z)(1,arguments);var q=Object.prototype.toString.call(v);return v instanceof Date||"object"===(0,_.Z)(v)&&"[object Date]"===q?new Date(v.getTime()):"number"==typeof v||"[object Number]"===q?new Date(v):(("string"==typeof v||"[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))}},4688:(ee,J,f)=>{f.d(J,{b:()=>l});var _=f(36895),e=f(94650),Z=f(72506);function v(u,x){if(1&u){const m=e.EpF();e.TgZ(0,"cf-icon",3),e.NdJ("click",function(b){e.CHM(m);const T=e.oxw();return e.KtG(T.close(b))}),e.qZA()}}const q=["*"];let l=(()=>{class u{constructor(m,p,b){this.renderer=m,this.elementRef=p,this.mode="default",this.type="solid",this.size="medium",this.color="red",this.onClose=new e.vpe,b.registerIcons([Z.UNF])}ngOnChanges(m){this.loadClasses()}ngOnInit(){this.loadClasses()}loadClasses(){this.classes="rounded inline-flex justify-center items-center gap-x-1 "+this.getSizeClass()+" "+this.getModeClass()}getSizeClass(){return"small"===this.size?"py-1 px-2 text-express-sm":"xsmall"===this.size?"py-[2px] px-1 text-express-sm":"py-1.5 px-3 text-express-md"}getModeClass(){return"outline"===this.type?`bg-white bordertext-${this.color}-4 border-${this.color}-4`:"inverted"===this.type?`bg-${this.color}-1 text-${this.color}-4`:"gray-2"===this.color?"text-neutral-gray-6 bg-neutral-gray-2":`text-neutral-white bg-${this.color}-4`}close(m){this.onClose.emit(m),m.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}}return u.\u0275fac=function(m){return new(m||u)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(Z.KNP))},u.\u0275cmp=e.Xpm({type:u,selectors:[["cf-label"]],hostVars:2,hostBindings:function(m,p){2&m&&e.Tol(p.classes)},inputs:{mode:"mode",type:"type",size:"size",color:"color"},outputs:{onClose:"onClose"},standalone:!0,features:[e.TTD,e.jDz],ngContentSelectors:q,decls:4,vars:1,consts:[[1,"flex","justify-between","items-center","gap-x-2"],[1,"text-ellipsis","overflow-hidden","whitespace-normal","flex","items-center"],["icon","close","size","small","class","cursor-pointer",3,"click",4,"ngIf"],["icon","close","size","small",1,"cursor-pointer",3,"click"]],template:function(m,p){1&m&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,v,1,0,"cf-icon",2),e.qZA()),2&m&&(e.xp6(3),e.Q6J("ngIf","closeable"===p.mode))},dependencies:[_.ez,_.O5,Z.AxE,Z.Sm8],encapsulation:2,changeDetection:0}),u})()},86:(ee,J,f)=>{function _(e){return(_="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)}f.d(J,{Z:()=>_})}}]);