-
Notifications
You must be signed in to change notification settings - Fork 0
/
9301.70ab97b0b3f27b57.js
1 lines (1 loc) · 142 KB
/
9301.70ab97b0b3f27b57.js
1
"use strict";(self.webpackChunkcheapflightclient=self.webpackChunkcheapflightclient||[]).push([[9301],{89301:(Di,Ce,b)=>{b.r(Ce),b.d(Ce,{BookingDetailPageComponent:()=>yi});var A=b(36895),xe=b(37094),Y=b(83700),Te=b(87683),B=b(72506),Ze=b(44143),Pe=b(4688),Ne=b(76331),ke=b(40529),V=b(90602),D=b(45881),v=b(67460),P=b(91951),ye=b(99251),$=b(89319),Oe=b(26655),Fe=b(76978),De=b(95911),N=b(88001),x=b(40899),Ue=b(89701),Le=b(64190),w=b(53820),Q=b(44586),G=b(52013),e=b(94650);let Me=(()=>{class a{constructor(t){this.actionChange=new e.vpe,t.registerIcons([B.esH,B.UNF])}onActionChange(t){this.actionChange.emit(t)}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(B.KNP))},a.\u0275cmp=e.Xpm({type:a,selectors:[["suggest-register-order"]],outputs:{actionChange:"actionChange"},standalone:!0,features:[e.jDz],decls:33,vars:0,consts:[[1,"w-[288px]","h-auto","fixed","bottom-[30px]","right-[30px]","p-4","rounded","shadow-cf-info-card","bg-neutral-gray-6","text-white","md:hidden"],[1,"flex","gap-x-4","justify-between","items-start"],[1,"flex","justify-between","items-start","gap-x-2"],["icon","search","size","medium"],[1,"flex","flex-col","gap-y-4"],[1,"flex","flex-col","gap-y-1"],[1,"text-express-md"],[1,"text-body-md-short"],["cf-button","","size","medium","type","secondary",1,"!w-fit","bg-neutral-white",3,"click"],["icon","close","size","small",3,"click"],[1,"hidden","md:block","w-full","h-auto","p-4","rounded","shadow-cf-info-card","bg-functional-1-1"],["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","#845D9C"],["d","M12 6.25C12.4142 6.25 12.75 6.58579 12.75 7V7.00999C12.75 7.42421 12.4142 7.75999 12 7.75999C11.5858 7.75999 11.25 7.42421 11.25 7.00999V7C11.25 6.58579 11.5858 6.25 12 6.25Z","fill","white"],["d","M12 9.25003C12.4142 9.25003 12.75 9.58582 12.75 10L12.75 17C12.75 17.4142 12.4142 17.75 12 17.75C11.5858 17.75 11.25 17.4142 11.25 17V10C11.25 9.58582 11.5858 9.25003 12 9.25003Z","fill","white"],["cf-button","","size","medium",1,"!w-fit",3,"click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),e._UZ(4,"cf-icon",3),e.qZA(),e.TgZ(5,"div",4)(6,"div",5)(7,"div",6),e._uU(8,"Canh v\xe9 r\u1ebb \u0111\u1ec3 t\u0103ng l\u1ee3i nhu\u1eadn"),e.qZA(),e.TgZ(9,"div",7),e._uU(10,"T\u1ef1 \u0111\u1ed9ng canh v\xe9 r\u1ebb h\u01a1n \u0111\u1eb7t ch\u1ed7 hi\u1ec7n t\u1ea1i v\xe0 nh\u1eadn c\u1eadp nh\u1eadt khi gi\xe1 t\u0103ng."),e.qZA()(),e.TgZ(11,"button",8),e.NdJ("click",function(){return n.onActionChange("register_order")}),e._uU(12," Canh v\xe9 ngay "),e.qZA()()(),e.TgZ(13,"div")(14,"cf-icon",9),e.NdJ("click",function(){return n.onActionChange("close")}),e.qZA()()()(),e.TgZ(15,"div",10)(16,"div",1)(17,"div",2)(18,"div"),e.O4$(),e.TgZ(19,"svg",11),e._UZ(20,"path",12)(21,"path",13)(22,"path",14),e.qZA()(),e.kcU(),e.TgZ(23,"div",4)(24,"div",5)(25,"div",6),e._uU(26,"Canh v\xe9 r\u1ebb \u0111\u1ec3 t\u0103ng l\u1ee3i nhu\u1eadn"),e.qZA(),e.TgZ(27,"div",7),e._uU(28,"T\u1ef1 \u0111\u1ed9ng canh v\xe9 r\u1ebb h\u01a1n \u0111\u1eb7t ch\u1ed7 hi\u1ec7n t\u1ea1i v\xe0 nh\u1eadn c\u1eadp nh\u1eadt khi gi\xe1 t\u0103ng."),e.qZA()(),e.TgZ(29,"button",15),e.NdJ("click",function(){return n.onActionChange("register_order")}),e._uU(30," Canh v\xe9 ngay "),e.qZA()()(),e.TgZ(31,"div")(32,"cf-icon",9),e.NdJ("click",function(){return n.onActionChange("close")}),e.qZA()()()())},dependencies:[A.ez,B.AxE,B.Sm8,Y.N8,Y.Xq],encapsulation:2}),a})();var Be=b(50494),I=b(15439),E=b(28746),Z=b(17414),Ee=b(82761),qe=b(62733),we=b(28490),Ke=b(97579),je=b(20553),Re=b(62331),Je=b(64425),Ae=b(9381),He=b(70800),Ye=b(77492),Ve=b(78533),$e=b(27849),Qe=b(9497),Ge=b(53041);function Xe(a,c){1&a&&(e.TgZ(0,"cf-label",37),e._uU(1," PNR \u0111ang m\u1edf "),e.qZA()),2&a&&e.Q6J("color","green")}function ze(a,c){1&a&&(e.TgZ(0,"cf-label",37),e._uU(1," PNR \u0111\xe3 kh\xf3a "),e.qZA()),2&a&&e.Q6J("color","red")}function We(a,c){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Xe,2,1,"cf-label",36),e.YNc(2,ze,2,1,"cf-label",36),e.qZA()),2&a){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!t.isLockPnr),e.xp6(1),e.Q6J("ngIf",t.isLockPnr)}}function et(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",38),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.onLockPnr())}),e.TgZ(1,"div",39),e._uU(2,"Kh\xf3a PNR"),e.qZA(),e._UZ(3,"cf-switch",40),e.qZA()}if(2&a){const t=e.oxw(4);e.xp6(3),e.Q6J("checked",t.isLockPnr)("color","#E03C31")}}function tt(a,c){if(1&a&&(e.TgZ(0,"div",34),e.YNc(1,We,3,2,"div",16),e.YNc(2,et,4,2,"div",35),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.isShowStatusLock),e.xp6(1),e.Q6J("ngIf",t.canLockPnr)}}function it(a,c){if(1&a&&(e.TgZ(0,"div",31)(1,"div",8)(2,"div",9),e._UZ(3,"div",10),e.TgZ(4,"div",11),e._uU(5,"Th\xf4ng tin h\xe0nh kh\xe1ch"),e.qZA()(),e.YNc(6,tt,3,2,"div",32),e.qZA(),e._UZ(7,"booking-passenger-info",33),e.qZA()),2&a){const t=e.oxw(2);e.xp6(6),e.Q6J("ngIf",!t.isPreviewPnr),e.xp6(1),e.Q6J("passengerInfos",t.passengerInfos)}}function nt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.onRefreshPnr())}),e.O4$(),e.TgZ(1,"svg",42),e._UZ(2,"path",43),e.qZA(),e._uU(3," L\xe0m m\u1edbi d\u1eef li\u1ec7u "),e.qZA()}}const Ie=function(){return["BOOKED","ISSUED"]};function ot(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"booking-detail",44),e.NdJ("actionChange",function(i){const s=e.CHM(t).$implicit,r=e.oxw(2);return e.KtG(r.onActionChange(i,s))}),e.qZA()}if(2&a){const t=c.$implicit,n=e.oxw(2);e.Q6J("isShowMore",!0)("bookingDetail",t)("isBooked",e.DdM(5,Ie).includes(t.status))("isMultiJourney",n.isMultiJourney)("hasDiscountFare",n.hasDiscountFare)}}function at(a,c){if(1&a&&(e.TgZ(0,"tr")(1,"td",52),e._UZ(2,"img",53),e.qZA(),e.TgZ(3,"td",52),e._uU(4),e.qZA(),e.TgZ(5,"td",52),e._uU(6),e.qZA(),e.TgZ(7,"td",52),e._uU(8),e.qZA(),e.TgZ(9,"td",52),e._uU(10),e.qZA(),e.TgZ(11,"td",52),e._uU(12),e.ALo(13,"number"),e.qZA()()),2&a){const t=c.$implicit;e.xp6(2),e.Q6J("src",t.airlineLogo,e.LSH),e.xp6(2),e.Oqu(t.flight),e.xp6(2),e.Oqu(t.departDate),e.xp6(2),e.Oqu(t.passengerName),e.xp6(2),e.Oqu(t.serviceName),e.xp6(2),e.Oqu(e.lcZ(13,6,t.totalCharge))}}function st(a,c){if(1&a&&(e.TgZ(0,"div",45)(1,"div",46)(2,"span",47),e._uU(3,"H\xe0nh l\xfd & d\u1ecbch v\u1ee5 b\u1ed5 sung"),e.qZA()(),e.TgZ(4,"div")(5,"table",48)(6,"thead")(7,"tr",49)(8,"th",50),e._uU(9,"H\xe3ng bay"),e.qZA(),e.TgZ(10,"th",50),e._uU(11,"Chuy\u1ebfn bay"),e.qZA(),e.TgZ(12,"th",50),e._uU(13,"Ng\xe0y \u0111i"),e.qZA(),e.TgZ(14,"th",50),e._uU(15,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(16,"th",50),e._uU(17,"T\xean d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(18,"th",50),e._uU(19,"T\u1ed5ng gi\xe1"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,at,14,8,"tr",51),e.qZA()()()()),2&a){const t=e.oxw(2);e.xp6(21),e.Q6J("ngForOf",t.listBaggage)}}function rt(a,c){if(1&a&&(e.TgZ(0,"tr")(1,"td",52),e._UZ(2,"img",53),e.qZA(),e.TgZ(3,"td",52),e._uU(4),e.qZA(),e.TgZ(5,"td",52),e._uU(6),e.qZA(),e.TgZ(7,"td",52),e._uU(8),e.qZA(),e.TgZ(9,"td",52),e._uU(10),e.qZA(),e.TgZ(11,"td",55),e._uU(12),e.ALo(13,"number"),e.qZA()()),2&a){const t=c.$implicit;e.xp6(2),e.Q6J("src",t.airlineLogo,e.LSH),e.xp6(2),e.Oqu(t.flight),e.xp6(2),e.Oqu(t.departDate),e.xp6(2),e.Oqu(t.passengerName),e.xp6(2),e.Oqu(t.serviceName),e.xp6(2),e.Oqu(e.lcZ(13,6,t.totalCharge))}}function lt(a,c){if(1&a&&(e.TgZ(0,"div",45)(1,"div",46)(2,"span",47),e._uU(3,"D\u1ecbch v\u1ee5"),e.qZA()(),e.TgZ(4,"div")(5,"table",48)(6,"thead")(7,"tr",49)(8,"th",50),e._uU(9,"H\xe3ng bay"),e.qZA(),e.TgZ(10,"th",50),e._uU(11,"Chuy\u1ebfn bay"),e.qZA(),e.TgZ(12,"th",50),e._uU(13,"Ng\xe0y \u0111i"),e.qZA(),e.TgZ(14,"th",50),e._uU(15,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(16,"th",50),e._uU(17,"T\xean d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(18,"th",54),e._uU(19,"T\u1ed5ng gi\xe1"),e.qZA()()(),e.TgZ(20,"tbody"),e.YNc(21,rt,14,8,"tr",51),e.qZA()()()()),2&a){const t=e.oxw(2);e.xp6(21),e.Q6J("ngForOf",t.listService)}}function ct(a,c){if(1&a&&(e.TgZ(0,"tr")(1,"td",52),e._uU(2),e.qZA(),e.TgZ(3,"td",52),e._uU(4),e.qZA(),e.TgZ(5,"td",55),e._uU(6),e.ALo(7,"number"),e.qZA()()),2&a){const t=c.$implicit;e.xp6(2),e.Oqu(t.chargeTypeName),e.xp6(2),e.Oqu(t.description),e.xp6(2),e.Oqu(e.lcZ(7,3,t.totalCharge))}}function dt(a,c){if(1&a&&(e.TgZ(0,"div",45)(1,"div",46)(2,"span",47),e._uU(3,"D\u1ecbch v\u1ee5 kh\xe1c"),e.qZA()(),e.TgZ(4,"div")(5,"table",48)(6,"thead")(7,"tr",49)(8,"th",50),e._uU(9,"Lo\u1ea1i ph\xed"),e.qZA(),e.TgZ(10,"th",50),e._uU(11,"M\xf4 t\u1ea3"),e.qZA(),e.TgZ(12,"th",54),e._uU(13,"S\u1ed1 ti\u1ec1n"),e.qZA()()(),e.TgZ(14,"tbody"),e.YNc(15,ct,8,5,"tr",51),e.qZA()()()()),2&a){const t=e.oxw(2);e.xp6(15),e.Q6J("ngForOf",t.listOtherCharge)}}function ut(a,c){if(1&a&&(e.TgZ(0,"tr")(1,"td",52)(2,"div",56),e._UZ(3,"img",57),e.TgZ(4,"div"),e._uU(5),e.qZA()()(),e.TgZ(6,"td",52),e._uU(7),e.qZA(),e.TgZ(8,"td",52),e._uU(9),e.qZA(),e.TgZ(10,"td",52),e._uU(11),e.qZA()()),2&a){const t=c.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("src",t.airlineLogo,e.LSH),e.xp6(2),e.AsE("",t.startPoint," - ",t.endPoint,""),e.xp6(2),e.hij(" ",n.hasAdtPax?t.fareClass+" - "+t.fareBasis:"-"," "),e.xp6(2),e.hij(" ",n.hasChdPax?t.fareClass+" - "+t.fareBasis:"-"," "),e.xp6(2),e.hij(" ",n.hasInfPax?t.fareClass+" - "+t.fareBasis:"-"," ")}}function ht(a,c){if(1&a&&(e.TgZ(0,"div",45)(1,"div",46)(2,"span",47),e._uU(3,"H\u1ea1ng ch\u1ed7 - Fare Basis"),e.qZA()(),e.TgZ(4,"div")(5,"table",48)(6,"thead")(7,"tr",49)(8,"th",50),e._uU(9,"Ch\u1eb7ng bay"),e.qZA(),e.TgZ(10,"th",50),e._uU(11,"Ng\u01b0\u1eddi l\u1edbn (ADT)"),e.qZA(),e.TgZ(12,"th",50),e._uU(13,"Tr\u1ebb em (CHD)"),e.qZA(),e.TgZ(14,"th",50),e._uU(15,"Em b\xe9 (INF)"),e.qZA()()(),e.TgZ(16,"tbody"),e.YNc(17,ut,12,6,"tr",51),e.qZA()()()()),2&a){const t=e.oxw(2);e.xp6(17),e.Q6J("ngForOf",t.fareBasisInfos)}}function gt(a,c){1&a&&e._UZ(0,"th",50)}function pt(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&a){const t=e.oxw().$implicit;e.xp6(1),e.hij("(",t.status,")")}}function _t(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"td",52)(1,"a",61),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit,o=e.oxw(3);return e.KtG(o.onShowTicketInfo(i.ticketNumber))}),e._uU(2," Xem chi ti\u1ebft "),e.qZA()()}}function mt(a,c){if(1&a&&(e.TgZ(0,"tr")(1,"td",52)(2,"div",59),e._uU(3),e.YNc(4,pt,2,1,"span",16),e.qZA()(),e.TgZ(5,"td",52),e._uU(6),e.qZA(),e.TgZ(7,"td",52),e._uU(8),e.qZA(),e.TgZ(9,"td",52),e._uU(10),e.qZA(),e.TgZ(11,"td",52),e._uU(12),e.qZA(),e.YNc(13,_t,3,0,"td",60),e.qZA()),2&a){const t=c.$implicit;e.xp6(3),e.hij(" ",t.ticketNumber," "),e.xp6(1),e.Q6J("ngIf","VOID"===t.status),e.xp6(2),e.Oqu(t.journeyName),e.xp6(2),e.Oqu(t.bookingCode),e.xp6(2),e.Oqu(t.passengerName),e.xp6(2),e.Oqu(t.airline),e.xp6(1),e.Q6J("ngIf",t.isDetail)}}function vt(a,c){if(1&a&&(e.TgZ(0,"div",45)(1,"div",46)(2,"span",47),e._uU(3,"S\u1ed1 v\xe9"),e.qZA()(),e.TgZ(4,"div")(5,"table",48)(6,"thead")(7,"tr",49)(8,"th",50),e._uU(9,"S\u1ed1 v\xe9"),e.qZA(),e.TgZ(10,"th",50),e._uU(11,"H\xe0nh tr\xecnh"),e.qZA(),e.TgZ(12,"th",50),e._uU(13,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(14,"th",50),e._uU(15,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(16,"th",50),e._uU(17,"H\xe3ng"),e.qZA(),e.YNc(18,gt,1,0,"th",58),e.qZA()(),e.TgZ(19,"tbody"),e.YNc(20,mt,14,7,"tr",51),e.qZA()()()()),2&a){const t=e.oxw(2);e.xp6(18),e.Q6J("ngIf","QH"!==t.listTicketInfo[0].airline),e.xp6(2),e.Q6J("ngForOf",t.listTicketInfo)}}function ft(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div")(1,"button",41),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.getFareRule())}),e._uU(2," \u0110i\u1ec1u ki\u1ec7n gi\xe1 v\xe9 "),e.qZA()()}}function bt(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.totalDiscountFareCharge),",",".")," \u0111 ")}}function Ct(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.hij("",e.Dn7(2,1,e.lcZ(3,5,t.totalPrice),",",".")||"N/A"," \u0111")}}function xt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",67)(1,"div",73),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onShowIdentityReservation())}),e.TgZ(2,"div"),e._uU(3,"B\u1ea3o l\u01b0u \u0111\u1ecbnh danh"),e.qZA(),e._UZ(4,"cf-icon",74),e.qZA(),e.TgZ(5,"div",75),e._uU(6),e.ALo(7,"replace"),e.ALo(8,"number"),e.qZA()()}if(2&a){const t=e.oxw(3);e.xp6(6),e.hij("",e.Dn7(7,1,e.lcZ(8,5,t.creditShellTotal),",",".")," \u0111")}}function Tt(a,c){if(1&a&&(e.TgZ(0,"div")(1,"div",62)(2,"div",63),e._UZ(3,"div",10),e.TgZ(4,"div",11),e._uU(5,"T\u1ed5ng chi ph\xed h\xe0nh tr\xecnh"),e.qZA()(),e.YNc(6,ft,3,0,"div",16),e.qZA(),e.TgZ(7,"div",64),e._UZ(8,"price-detail",65),e.TgZ(9,"div",66)(10,"div",67)(11,"div",68),e._uU(12,"T\u1ed5ng chi ph\xed"),e.qZA(),e.TgZ(13,"div",69),e.YNc(14,bt,4,7,"span",70),e.YNc(15,Ct,4,7,"ng-template",null,71,e.W1O),e.qZA()(),e.YNc(17,xt,9,7,"div",72),e.qZA()()()),2&a){const t=e.MAs(16),n=e.oxw(2);e.xp6(6),e.Q6J("ngIf",n.hasInternationalFlight),e.xp6(2),e.Q6J("priceDetail",n.priceDetail)("hasDiscountFare",n.hasDiscountFare),e.xp6(6),e.Q6J("ngIf",n.totalDiscountFareCharge&&n.hasDiscountFare)("ngIfElse",t),e.xp6(3),e.Q6J("ngIf",0!=n.creditShellTotal)}}function kt(a,c){1&a&&(e.TgZ(0,"div",76),e._UZ(1,"cf-icon",77),e.TgZ(2,"div")(3,"div",78),e._uU(4,"L\u01b0u \xfd:"),e.qZA(),e.TgZ(5,"ul",79)(6,"li",80),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",80),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 yt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div")(1,"div",63),e._UZ(2,"div",10),e.TgZ(3,"div",11),e._uU(4,"Canh v\xe9 r\u1ebb"),e.qZA()(),e.TgZ(5,"div",81)(6,"table",48)(7,"thead")(8,"tr",49)(9,"th",82),e._uU(10,"Ng\u01b0\u1eddi th\u1ef1c hi\u1ec7n"),e.qZA(),e.TgZ(11,"th",82),e._uU(12,"Ng\xe0y y\xeau c\u1ea7u"),e.qZA(),e.TgZ(13,"th",82),e._uU(14,"PNR m\u1edbi"),e.qZA(),e.TgZ(15,"th",82),e._uU(16,"Tr\u1ea1ng th\xe1i"),e.qZA(),e._UZ(17,"th"),e.qZA()(),e.TgZ(18,"tbody")(19,"tr")(20,"td",83),e._uU(21),e.qZA(),e.TgZ(22,"td",83),e._uU(23),e.qZA(),e.TgZ(24,"td",84)(25,"a",85),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.gotoBookingDetail(i.monitorOrderInfo.airline,i.monitorOrderInfo.pnr))}),e._uU(26),e.qZA()(),e.TgZ(27,"td",84)(28,"label",86),e._uU(29),e.qZA()(),e.TgZ(30,"td",84)(31,"a",85),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.onOrderDetail(i.monitorOrderInfo.orderId))}),e._uU(32,"Chi ti\u1ebft"),e.qZA()()()()()()()}if(2&a){const t=e.oxw(2);e.xp6(21),e.Oqu(t.monitorOrderInfo.userAction),e.xp6(2),e.Oqu(t.monitorOrderInfo.timeCreate),e.xp6(3),e.Oqu(t.monitorOrderInfo.pnr||"-"),e.xp6(2),e.Tol(t.monitorOrderInfo.stateLabel.style),e.xp6(1),e.Oqu(null==t.monitorOrderInfo.stateLabel?null:t.monitorOrderInfo.stateLabel.name)}}function Dt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",23,87),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(1),o=e.oxw(2);return e.KtG(o.mobileTabChange("TOTAL_PRICE",i))}),e._uU(2," T\u1ed5ng chi ph\xed "),e.qZA()}if(2&a){const t=e.oxw(2);e.ekj("text-secondary-3-4","TOTAL_PRICE"===t.mobileTabMode)("!border-secondary-3-4","TOTAL_PRICE"===t.mobileTabMode)("bg-secondary-3-1","TOTAL_PRICE"===t.mobileTabMode)}}function Bt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",23,88),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(1),o=e.oxw(2);return e.KtG(o.mobileTabChange("FARE_RULE",i))}),e._uU(2," \u0110i\u1ec1u ki\u1ec7n gi\xe1 v\xe9 "),e.qZA()}if(2&a){const t=e.oxw(2);e.ekj("text-secondary-3-4","FARE_RULE"===t.mobileTabMode)("!border-secondary-3-4","FARE_RULE"===t.mobileTabMode)("bg-secondary-3-1","FARE_RULE"===t.mobileTabMode)}}function Et(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",23,89),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(1),o=e.oxw(2);return e.KtG(o.mobileTabChange("TICKET_FACE",i))}),e._uU(2," M\u1eb7t v\xe9 "),e.qZA()}if(2&a){const t=e.oxw(2);e.ekj("text-secondary-3-4","TICKET_FACE"===t.mobileTabMode)("!border-secondary-3-4","TICKET_FACE"===t.mobileTabMode)("bg-secondary-3-1","TICKET_FACE"===t.mobileTabMode)}}function At(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",23,90),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(1),o=e.oxw(2);return e.KtG(o.mobileTabChange("TICKET_NUMBER",i))}),e._uU(2," S\u1ed1 v\xe9 "),e.qZA()}if(2&a){const t=e.oxw(2);e.ekj("text-secondary-3-4","TICKET_NUMBER"===t.mobileTabMode)("!border-secondary-3-4","TICKET_NUMBER"===t.mobileTabMode)("bg-secondary-3-1","TICKET_NUMBER"===t.mobileTabMode)}}function It(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",23,91),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(1),o=e.oxw(2);return e.KtG(o.mobileTabChange("REMARK",i))}),e._uU(2," Remark "),e.qZA()}if(2&a){const t=e.oxw(2);e.ekj("text-secondary-3-4","REMARK"===t.mobileTabMode)("!border-secondary-3-4","REMARK"===t.mobileTabMode)("bg-secondary-3-1","REMARK"===t.mobileTabMode)}}function St(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",23,92),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(1),o=e.oxw(2);return e.KtG(o.mobileTabChange("LOWFARE",i))}),e._uU(2," Canh v\xe9 r\u1ebb "),e.qZA()}if(2&a){const t=e.oxw(2);e.ekj("text-secondary-3-4","LOWFARE"===t.mobileTabMode)("!border-secondary-3-4","LOWFARE"===t.mobileTabMode)("bg-secondary-3-1","LOWFARE"===t.mobileTabMode)}}function Zt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",23,93),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(1),o=e.oxw(2);return e.KtG(o.mobileTabChange("HISTORY",i))}),e._uU(2," L\u1ecbch s\u1eed "),e.qZA()}if(2&a){const t=e.oxw(2);e.ekj("text-secondary-3-4","HISTORY"===t.mobileTabMode)("!border-secondary-3-4","HISTORY"===t.mobileTabMode)("bg-secondary-3-1","HISTORY"===t.mobileTabMode)}}function Pt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"suggest-register-order",94),e.NdJ("actionChange",function(i){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onChangeSuggest(i))}),e.qZA()}}function Nt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",99)(1,"button",41),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onRefreshPnr())}),e.O4$(),e.TgZ(2,"svg",42),e._UZ(3,"path",43),e.qZA(),e._uU(4," L\xe0m m\u1edbi d\u1eef li\u1ec7u "),e.qZA()()}}function Ot(a,c){1&a&&(e.TgZ(0,"cf-label",37),e._uU(1," PNR \u0111ang m\u1edf "),e.qZA()),2&a&&e.Q6J("color","green")}function Ft(a,c){1&a&&(e.TgZ(0,"cf-label",37),e._uU(1," PNR \u0111\xe3 kh\xf3a "),e.qZA()),2&a&&e.Q6J("color","red")}function Ut(a,c){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Ot,2,1,"cf-label",36),e.YNc(2,Ft,2,1,"cf-label",36),e.qZA()),2&a){const t=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!t.isLockPnr),e.xp6(1),e.Q6J("ngIf",t.isLockPnr)}}function Lt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",38),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.onLockPnr())}),e.TgZ(1,"div",39),e._uU(2,"Kh\xf3a PNR"),e.qZA(),e._UZ(3,"cf-switch",40),e.qZA()}if(2&a){const t=e.oxw(4);e.xp6(3),e.Q6J("checked",t.isLockPnr)("color","#E03C31")}}function Mt(a,c){if(1&a&&(e.TgZ(0,"div",34),e.YNc(1,Ut,3,2,"div",16),e.YNc(2,Lt,4,2,"div",35),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.isShowStatusLock),e.xp6(1),e.Q6J("ngIf",t.canLockPnr)}}function qt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"booking-detail-mobile",100),e.NdJ("onDetailClick",function(){const o=e.CHM(t).$implicit,s=e.oxw(3);return e.KtG(s.mobileDetailClick(o))})("actionChange",function(i){const s=e.CHM(t).$implicit,r=e.oxw(3);return e.KtG(r.onActionChange(i,s))}),e.qZA()}if(2&a){const t=c.$implicit,n=e.oxw(3);e.Q6J("bookingDetail",t)("isMultiJourney",n.isMultiJourney)}}function wt(a,c){1&a&&(e.TgZ(0,"div",105),e._uU(1,"H\xe0nh l\xfd & d\u1ecbch v\u1ee5 b\u1ed5 sung"),e.qZA())}function Kt(a,c){if(1&a&&(e.TgZ(0,"div",106)(1,"div",107)(2,"div",108),e._uU(3,"H\xe3ng bay"),e.qZA(),e.TgZ(4,"div",109),e._uU(5),e.qZA()(),e.TgZ(6,"div",107)(7,"div",108),e._uU(8,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(9,"div",109),e._uU(10),e.qZA()(),e.TgZ(11,"div",107)(12,"div",108),e._uU(13,"Chuy\u1ebfn bay"),e.qZA(),e.TgZ(14,"div",109),e._uU(15),e.qZA()(),e.TgZ(16,"div",107)(17,"div",108),e._uU(18,"Ng\xe0y \u0111i"),e.qZA(),e.TgZ(19,"div",109),e._uU(20),e.qZA()(),e.TgZ(21,"div",107)(22,"div",108),e._uU(23,"T\xean d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(24,"div",109),e._uU(25),e.qZA()(),e.TgZ(26,"div",107)(27,"div",108),e._uU(28,"T\u1ed5ng gi\xe1"),e.qZA(),e.TgZ(29,"div",109),e._uU(30),e.ALo(31,"replace"),e.ALo(32,"number"),e.qZA()()()),2&a){const t=c.$implicit;e.xp6(5),e.Oqu(t.airlineName),e.xp6(5),e.Oqu(t.passengerName),e.xp6(5),e.Oqu(t.flight),e.xp6(5),e.Oqu(t.departDate),e.xp6(5),e.Oqu(t.serviceName),e.xp6(5),e.hij("",e.Dn7(31,6,e.lcZ(32,10,t.totalCharge),",","."),"\u0111")}}function jt(a,c){if(1&a&&(e.TgZ(0,"div",101)(1,"cf-collapse",101)(2,"cf-collapse-panel",102),e.YNc(3,wt,2,0,"ng-template",null,103,e.W1O),e.YNc(5,Kt,33,12,"div",104),e.qZA()()()),2&a){const t=e.MAs(4),n=e.oxw(3);e.xp6(2),e.Q6J("title",t)("active",!1)("contentClass","!p-0 bg-transparent")("panelClass","!p-3 bg-neutral-white rounded-lg"),e.xp6(3),e.Q6J("ngForOf",n.listBaggage)}}function Rt(a,c){1&a&&(e.TgZ(0,"div",105),e._uU(1,"D\u1ecbch v\u1ee5"),e.qZA())}function Jt(a,c){if(1&a&&(e.TgZ(0,"div",106)(1,"div",107)(2,"div",108),e._uU(3,"H\xe3ng bay"),e.qZA(),e.TgZ(4,"div",109),e._uU(5),e.qZA()(),e.TgZ(6,"div",107)(7,"div",108),e._uU(8,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(9,"div",109),e._uU(10),e.qZA()(),e.TgZ(11,"div",107)(12,"div",108),e._uU(13,"Chuy\u1ebfn bay"),e.qZA(),e.TgZ(14,"div",109),e._uU(15),e.qZA()(),e.TgZ(16,"div",107)(17,"div",108),e._uU(18,"Ng\xe0y \u0111i"),e.qZA(),e.TgZ(19,"div",109),e._uU(20),e.qZA()(),e.TgZ(21,"div",107)(22,"div",108),e._uU(23,"T\xean d\u1ecbch v\u1ee5"),e.qZA(),e.TgZ(24,"div",109),e._uU(25),e.qZA()(),e.TgZ(26,"div",107)(27,"div",108),e._uU(28,"T\u1ed5ng gi\xe1"),e.qZA(),e.TgZ(29,"div",109),e._uU(30),e.ALo(31,"replace"),e.ALo(32,"number"),e.qZA()()()),2&a){const t=c.$implicit;e.xp6(5),e.Oqu(t.airlineName),e.xp6(5),e.Oqu(t.passengerName),e.xp6(5),e.Oqu(t.flight),e.xp6(5),e.Oqu(t.departDate),e.xp6(5),e.Oqu(t.serviceName),e.xp6(5),e.hij("",e.Dn7(31,6,e.lcZ(32,10,t.totalCharge),",","."),"\u0111")}}function Ht(a,c){if(1&a&&(e.TgZ(0,"div",101)(1,"cf-collapse",101)(2,"cf-collapse-panel",102),e.YNc(3,Rt,2,0,"ng-template",null,103,e.W1O),e.YNc(5,Jt,33,12,"div",104),e.qZA()()()),2&a){const t=e.MAs(4),n=e.oxw(3);e.xp6(2),e.Q6J("title",t)("active",!1)("contentClass","!p-0 bg-transparent")("panelClass","!p-3 bg-neutral-white rounded-lg"),e.xp6(3),e.Q6J("ngForOf",n.listService)}}function Yt(a,c){1&a&&(e.TgZ(0,"div",105),e._uU(1,"Canh v\xe9 r\u1ebb"),e.qZA())}function Vt(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",101)(1,"cf-collapse",101)(2,"cf-collapse-panel",102),e.YNc(3,Yt,2,0,"ng-template",null,103,e.W1O),e.TgZ(5,"div",106)(6,"div",107)(7,"div",108),e._uU(8,"Ng\u01b0\u1eddi th\u1ef1c hi\u1ec7n"),e.qZA(),e.TgZ(9,"div",109),e._uU(10),e.qZA()(),e.TgZ(11,"div",107)(12,"div",108),e._uU(13,"Ng\xe0y y\xeau c\u1ea7u"),e.qZA(),e.TgZ(14,"div",109),e._uU(15),e.qZA()(),e.TgZ(16,"div",107)(17,"div",108),e._uU(18,"PNR m\u1edbi"),e.qZA(),e.TgZ(19,"a",85),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.gotoBookingDetail(i.monitorOrderInfo.airline,i.monitorOrderInfo.pnr))}),e._uU(20),e.qZA()(),e.TgZ(21,"div",107)(22,"div",108),e._uU(23,"Tr\u1ea1ng th\xe1i"),e.qZA(),e.TgZ(24,"label",86),e._uU(25),e.qZA()(),e.TgZ(26,"div",110),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onOrderDetail(i.monitorOrderInfo.orderId))}),e.TgZ(27,"span"),e._uU(28,"Chi ti\u1ebft"),e.qZA()()()()()()}if(2&a){const t=e.MAs(4),n=e.oxw(3);e.xp6(2),e.Q6J("title",t)("active",!1)("contentClass","!p-0 bg-transparent")("panelClass","!p-3 bg-neutral-white rounded-lg"),e.xp6(8),e.Oqu(n.monitorOrderInfo.userAction),e.xp6(5),e.Oqu(n.monitorOrderInfo.timeCreate),e.xp6(5),e.Oqu(n.monitorOrderInfo.pnr||"-"),e.xp6(4),e.Tol(n.monitorOrderInfo.stateLabel.style),e.xp6(1),e.Oqu(null==n.monitorOrderInfo.stateLabel?null:n.monitorOrderInfo.stateLabel.name)}}function $t(a,c){if(1&a&&(e.TgZ(0,"div",95)(1,"div",62),e.YNc(2,Nt,5,0,"div",96),e.YNc(3,Mt,3,2,"div",32),e.qZA(),e.YNc(4,qt,1,2,"booking-detail-mobile",97),e.YNc(5,jt,6,5,"div",98),e.YNc(6,Ht,6,5,"div",98),e.YNc(7,Vt,29,10,"div",98),e.qZA()),2&a){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",t.isRefreshPnr&&t.has1AProvider),e.xp6(1),e.Q6J("ngIf",!t.isPreviewPnr),e.xp6(1),e.Q6J("ngForOf",t.bookingDetails),e.xp6(1),e.Q6J("ngIf",t.hasBaggageSelected),e.xp6(1),e.Q6J("ngIf",t.hasSeatSelected),e.xp6(1),e.Q6J("ngIf",t.isMonitorOrderInfo)}}function Qt(a,c){if(1&a&&(e.TgZ(0,"div",112)(1,"div",107)(2,"div",108),e._uU(3,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(4,"div",109),e._uU(5),e.qZA()(),e.TgZ(6,"div",107)(7,"div",108),e._uU(8,"Lo\u1ea1i h\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(9,"div",109),e._uU(10),e.qZA()(),e.TgZ(11,"div",107)(12,"div",108),e._uU(13,"Ng\xe0y sinh"),e.qZA(),e.TgZ(14,"div",109),e._uU(15),e.qZA()(),e.TgZ(16,"div",107)(17,"div",108),e._uU(18,"Gi\u1edbi t\xednh"),e.qZA(),e.TgZ(19,"div",109),e._uU(20),e.qZA()()()),2&a){const t=c.$implicit;e.xp6(5),e.Oqu((null==t?null:t.name)||"N/A"),e.xp6(5),e.Oqu((null==t?null:t.type)||"N/A"),e.xp6(5),e.Oqu((null==t?null:t.birthday)||"N/A"),e.xp6(5),e.Oqu((null==t?null:t.sex)||"N/A")}}function Gt(a,c){if(1&a&&(e.TgZ(0,"div",95)(1,"div",105),e._uU(2,"Th\xf4ng tin kh\xe1ch h\xe0ng"),e.qZA(),e.YNc(3,Qt,21,4,"div",111),e.TgZ(4,"div",105),e._uU(5,"Th\xf4ng tin li\xean h\u1ec7"),e.qZA(),e.TgZ(6,"div",112)(7,"div",107)(8,"div",108),e._uU(9,"M\xe3 v\xf9ng"),e.qZA(),e.TgZ(10,"div",109),e._uU(11,"+84"),e.qZA()(),e.TgZ(12,"div",107)(13,"div",108),e._uU(14,"S\u1ed1 \u0111i\u1ec7n tho\u1ea1i"),e.qZA(),e.TgZ(15,"div",109),e._uU(16),e.qZA()(),e.TgZ(17,"div",107)(18,"div",108),e._uU(19,"Email"),e.qZA(),e.TgZ(20,"div",109),e._uU(21),e.qZA()()()()),2&a){const t=e.oxw(2);e.xp6(3),e.Q6J("ngForOf",t.passengerInfos),e.xp6(13),e.Oqu((null==t.bookingContact?null:t.bookingContact.phone)||"N/A"),e.xp6(5),e.Oqu((null==t.bookingContact?null:t.bookingContact.email)||"N/A")}}function Xt(a,c){if(1&a&&(e.TgZ(0,"div",107)(1,"div",108),e._uU(2,"Chi\u1ebft kh\u1ea5u"),e.qZA(),e.TgZ(3,"div",114),e._uU(4),e.ALo(5,"replace"),e.ALo(6,"number"),e.qZA()()),2&a){const t=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.Dn7(5,1,e.lcZ(6,5,t.discountAmount),",","."),"\u0111 ")}}function zt(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.totalDiscountFarePrice),",",".")," ")}}function Wt(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(e.Dn7(2,1,e.lcZ(3,5,t.total),",",".")||"N/A")}}function ei(a,c){if(1&a&&(e.TgZ(0,"div",112)(1,"div",107)(2,"div",108),e._uU(3,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(4,"div",109),e._uU(5),e.qZA()(),e.TgZ(6,"div",107)(7,"div",108),e._uU(8,"Lo\u1ea1i kh\xe1ch"),e.qZA(),e.TgZ(9,"div",109),e._uU(10),e.qZA()(),e.TgZ(11,"div",107)(12,"div",108),e._uU(13,"Gi\xe1 v\xe9"),e.qZA(),e.TgZ(14,"div",109),e._uU(15),e.ALo(16,"replace"),e.ALo(17,"number"),e.qZA()(),e.TgZ(18,"div",107)(19,"div",108),e._uU(20,"Thu\u1ebf ph\xed"),e.qZA(),e.TgZ(21,"div",109),e._uU(22),e.ALo(23,"replace"),e.ALo(24,"number"),e.qZA()(),e.YNc(25,Xt,7,7,"div",113),e.TgZ(26,"div",107)(27,"div",108),e._uU(28,"T\u1ed5ng gi\xe1"),e.qZA(),e.TgZ(29,"div",109),e.YNc(30,zt,4,7,"span",70),e.YNc(31,Wt,4,7,"ng-template",null,71,e.W1O),e.qZA()()()),2&a){const t=c.$implicit,n=e.MAs(32),i=e.oxw(3);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.base),",","."),"\u0111 "),e.xp6(7),e.hij("",e.Dn7(23,13,e.lcZ(24,17,t.tax),",","."),"\u0111"),e.xp6(3),e.Q6J("ngIf",i.hasDiscountFare),e.xp6(5),e.Q6J("ngIf",t.discountAmount&&i.hasDiscountFare)("ngIfElse",n)}}function ti(a,c){if(1&a&&(e.TgZ(0,"div",95),e.YNc(1,ei,33,19,"div",111),e.qZA()),2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",null==t.priceDetail?null:t.priceDetail.passengers)}}function ii(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.totalDiscountFareCharge),",",".")," \u0111 ")}}function ni(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.totalPrice),",",".")," \u0111 ")}}function oi(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",130)(1,"div"),e._uU(2," B\u1ea3o l\u01b0u \u0111\u1ecbnh danh "),e.qZA(),e.TgZ(3,"cf-icon",131),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(4);return e.KtG(i.onShowIdentityReservation())}),e.qZA()()}}function ai(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw(4);e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.priceDetail.totalDiscountBasePrice),",",".")," \u0111")}}function si(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw(4);e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.priceDetail.totalBasePrice),",",".")," \u0111")}}function ri(a,c){if(1&a&&(e.TgZ(0,"div",128),e._uU(1),e.ALo(2,"replace"),e.ALo(3,"number"),e.qZA()),2&a){const t=e.oxw(4);e.xp6(1),e.hij(" ",e.Dn7(2,1,e.lcZ(3,5,t.creditShellTotal),",",".")," \u0111 ")}}function li(a,c){if(1&a&&(e.TgZ(0,"div",121)(1,"div",122)(2,"div",123)(3,"div",124)(4,"div",125),e._uU(5," Gi\xe1 v\xe9 m\xe1y bay "),e.qZA(),e.TgZ(6,"div",125),e._uU(7," D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam "),e.qZA(),e.TgZ(8,"div",125),e._uU(9," Ph\xed d\u1ecbch v\u1ee5 "),e.qZA(),e.YNc(10,oi,4,0,"div",126),e.qZA()(),e.TgZ(11,"div",127)(12,"div",128),e.YNc(13,ai,4,7,"span",16),e.YNc(14,si,4,7,"span",16),e.qZA(),e.TgZ(15,"div",128),e._uU(16),e.ALo(17,"replace"),e.ALo(18,"number"),e.qZA(),e.TgZ(19,"div",128),e._uU(20),e.ALo(21,"replace"),e.ALo(22,"number"),e.qZA(),e.YNc(23,ri,4,7,"div",129),e.qZA()()()),2&a){const t=e.oxw(3);e.xp6(10),e.Q6J("ngIf",0!=t.creditShellTotal),e.xp6(3),e.Q6J("ngIf",t.priceDetail.totalDiscountBasePrice),e.xp6(1),e.Q6J("ngIf",!t.priceDetail.totalDiscountBasePrice),e.xp6(2),e.hij(" ",e.Dn7(17,6,e.lcZ(18,10,(t.priceDetail.totalAddonService||0)+(t.priceDetail.totalOthersCharge||0)),",",".")," \u0111 "),e.xp6(4),e.hij(" ",e.Dn7(21,12,e.lcZ(22,16,t.priceDetail.totalServiceFee),",",".")," \u0111 "),e.xp6(3),e.Q6J("ngIf",0!=t.creditShellTotal)}}function ci(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",115),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(11),o=e.oxw(2);return e.KtG(o.togglePriceBottomSheet(i))}),e.TgZ(1,"div",116)(2,"div",116)(3,"div",117),e._uU(4," T\u1ed5ng chi ph\xed: "),e.qZA(),e.TgZ(5,"div",118),e.YNc(6,ii,4,7,"span",70),e.YNc(7,ni,4,7,"ng-template",null,71,e.W1O),e.qZA()(),e._UZ(9,"cf-icon",119),e.qZA(),e.YNc(10,li,24,18,"ng-template",null,120,e.W1O),e.qZA()}if(2&a){const t=e.MAs(8),n=e.oxw(2);e.ekj("z-1000",n.zIndexPriceIncrease),e.xp6(6),e.Q6J("ngIf",n.totalDiscountFareCharge&&n.hasDiscountFare)("ngIfElse",t)}}function di(a,c){if(1&a&&(e.TgZ(0,"div",95),e._UZ(1,"fare-rule-modal",132),e.qZA()),2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("fareRuleBsp",t.fareRuleBsp)}}function ui(a,c){if(1&a){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",133)(2,"div",134),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onShare())}),e._UZ(3,"cf-icon",135),e.TgZ(4,"div",136),e._uU(5," Sao ch\xe9p "),e.qZA()(),e._UZ(6,"booking-text-origin",137),e.qZA(),e.BQk()}if(2&a){const t=c.$implicit;e.xp6(6),e.Q6J("bookingText",t)}}function hi(a,c){if(1&a&&(e.TgZ(0,"div",95),e.YNc(1,ui,7,1,"ng-container",51),e.qZA()),2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.listBookingText)}}function gi(a,c){if(1&a&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&a){const t=e.oxw().$implicit;e.xp6(1),e.hij("(",t.status,")")}}function pi(a,c){if(1&a&&(e.TgZ(0,"div",112)(1,"div",107)(2,"div",108),e._uU(3,"S\u1ed1 v\xe9"),e.qZA(),e.TgZ(4,"div",109),e._uU(5),e.YNc(6,gi,2,1,"span",16),e.qZA()(),e.TgZ(7,"div",107)(8,"div",108),e._uU(9,"H\xe0nh tr\xecnh"),e.qZA(),e.TgZ(10,"div",109),e._uU(11),e.qZA()(),e.TgZ(12,"div",107)(13,"div",108),e._uU(14,"M\xe3 \u0111\u1eb7t ch\u1ed7"),e.qZA(),e.TgZ(15,"div",109),e._uU(16),e.qZA()(),e.TgZ(17,"div",107)(18,"div",108),e._uU(19,"H\xe0nh kh\xe1ch"),e.qZA(),e.TgZ(20,"div",109),e._uU(21),e.qZA()(),e.TgZ(22,"div",107)(23,"div",108),e._uU(24,"H\xe3ng"),e.qZA(),e.TgZ(25,"div",109),e._uU(26),e.qZA()()()),2&a){const t=c.$implicit;e.xp6(5),e.hij("",t.ticketNumber," "),e.xp6(1),e.Q6J("ngIf","VOID"===t.status),e.xp6(5),e.Oqu(t.journeyName),e.xp6(5),e.hij("",t.bookingCode," "),e.xp6(5),e.Oqu(t.passengerName),e.xp6(5),e.hij("",t.airline," ")}}function _i(a,c){if(1&a&&(e.TgZ(0,"div",95),e.YNc(1,pi,27,6,"div",111),e.qZA()),2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.listTicketInfo)}}function mi(a,c){if(1&a&&(e.TgZ(0,"div",95),e._UZ(1,"remark-booking-page",20),e.qZA()),2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("listBookingCode",t.listBookingCode)}}function vi(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",106)(1,"div",107)(2,"div",108),e._uU(3,"Ng\u01b0\u1eddi th\u1ef1c hi\u1ec7n"),e.qZA(),e.TgZ(4,"div",109),e._uU(5),e.qZA()(),e.TgZ(6,"div",107)(7,"div",108),e._uU(8,"Ng\xe0y y\xeau c\u1ea7u"),e.qZA(),e.TgZ(9,"div",109),e._uU(10),e.qZA()(),e.TgZ(11,"div",107)(12,"div",108),e._uU(13,"PNR m\u1edbi"),e.qZA(),e.TgZ(14,"a",85),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.gotoBookingDetail(i.monitorOrderInfo.airline,i.monitorOrderInfo.pnr))}),e._uU(15),e.qZA()(),e.TgZ(16,"div",107)(17,"div",108),e._uU(18,"Tr\u1ea1ng th\xe1i"),e.qZA(),e.TgZ(19,"label",86),e._uU(20),e.qZA()(),e.TgZ(21,"div",110),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(3);return e.KtG(i.onOrderDetail(i.monitorOrderInfo.orderId))}),e.TgZ(22,"span"),e._uU(23,"Chi ti\u1ebft"),e.qZA()()()}if(2&a){const t=e.oxw(3);e.xp6(5),e.Oqu(t.monitorOrderInfo.userAction),e.xp6(5),e.Oqu(t.monitorOrderInfo.timeCreate),e.xp6(5),e.Oqu(t.monitorOrderInfo.pnr||"-"),e.xp6(4),e.Tol(t.monitorOrderInfo.stateLabel.style),e.xp6(1),e.Oqu(null==t.monitorOrderInfo.stateLabel?null:t.monitorOrderInfo.stateLabel.name)}}function fi(a,c){if(1&a&&(e.TgZ(0,"div",95),e.YNc(1,vi,24,6,"div",138),e.qZA()),2&a){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.isMonitorOrderInfo)}}function bi(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"suggest-register-order",139),e.NdJ("actionChange",function(i){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onChangeSuggest(i))}),e.qZA()}}const Ci=function(a){return{"bg-[#FFF4F3]":a}};function xi(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",4)(1,"div",5),e.YNc(2,it,8,2,"div",6),e.TgZ(3,"div",7)(4,"div",8)(5,"div",9),e._UZ(6,"div",10),e.TgZ(7,"div",11),e._uU(8,"Chi ti\u1ebft \u0111\u1eb7t ch\u1ed7"),e.qZA()(),e.YNc(9,nt,4,0,"button",12),e.qZA(),e.TgZ(10,"div",13),e.YNc(11,ot,1,6,"booking-detail",14),e.qZA()(),e.YNc(12,st,22,1,"div",15),e.YNc(13,lt,22,1,"div",15),e.YNc(14,dt,16,1,"div",15),e.YNc(15,ht,18,1,"div",15),e.YNc(16,vt,21,2,"div",15),e.YNc(17,Tt,18,6,"div",16),e.YNc(18,kt,10,0,"div",17),e.YNc(19,yt,33,6,"div",16),e.qZA(),e.TgZ(20,"div",18)(21,"cf-booking-text",19),e.NdJ("actionShare",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.onShare())})("modeChange",function(i){e.CHM(t);const o=e.oxw();return e.KtG(o.changeModeBookingText(i))}),e.qZA(),e._UZ(22,"remark-booking-page",20),e.qZA(),e.TgZ(23,"div",21)(24,"div",22)(25,"div",23,24),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(26),o=e.oxw();return e.KtG(o.mobileTabChange("BOOKING_DETAIL",i))}),e._uU(27," Chi ti\u1ebft \u0111\u1eb7t ch\u1ed7 "),e.qZA(),e.TgZ(28,"div",23,25),e.NdJ("click",function(){e.CHM(t);const i=e.MAs(29),o=e.oxw();return e.KtG(o.mobileTabChange("PAX_INFO",i))}),e._uU(30," Th\xf4ng tin h\xe0nh kh\xe1ch "),e.qZA(),e.YNc(31,Dt,3,6,"div",26),e.YNc(32,Bt,3,6,"div",26),e.YNc(33,Et,3,6,"div",26),e.YNc(34,At,3,6,"div",26),e.YNc(35,It,3,6,"div",26),e.YNc(36,St,3,6,"div",26),e.YNc(37,Zt,3,6,"div",26),e.qZA(),e.YNc(38,Pt,1,0,"suggest-register-order",27),e.YNc(39,$t,8,6,"div",28),e.YNc(40,Gt,22,3,"div",28),e.YNc(41,ti,2,1,"div",28),e.YNc(42,ci,12,4,"div",29),e.YNc(43,di,2,1,"div",28),e.YNc(44,hi,2,1,"div",28),e.YNc(45,_i,2,1,"div",28),e.YNc(46,mi,2,1,"div",28),e.YNc(47,fi,2,1,"div",28),e.qZA(),e.YNc(48,bi,1,0,"suggest-register-order",30),e.qZA()}if(2&a){const t=e.oxw();e.Q6J("ngClass",e.VKq(47,Ci,!t.isPreviewPnr&&t.isShowStatusLock)),e.xp6(2),e.Q6J("ngIf",t.isSuccess),e.xp6(7),e.Q6J("ngIf",t.isRefreshPnr&&t.has1AProvider),e.xp6(2),e.Q6J("ngForOf",t.bookingDetails),e.xp6(1),e.Q6J("ngIf",t.hasBaggageSelected),e.xp6(1),e.Q6J("ngIf",t.hasSeatSelected),e.xp6(1),e.Q6J("ngIf",null==t.listOtherCharge?null:t.listOtherCharge.length),e.xp6(1),e.Q6J("ngIf",t.hasInternationalFlight&&t.fareBasisInfos&&(null==t.fareBasisInfos[0]?null:t.fareBasisInfos[0].fareClass)&&(null==t.fareBasisInfos[0]?null:t.fareBasisInfos[0].fareBasis)&&"CANCEL"!=t.bookingDetails[0].status),e.xp6(1),e.Q6J("ngIf",t.listTicketInfo.length&&"VJ"!==t.listTicketInfo[0].airline),e.xp6(1),e.Q6J("ngIf",t.isSuccess&&t.totalPrice&&e.DdM(49,Ie).includes(t.bookingDetails[0].status)),e.xp6(1),e.Q6J("ngIf",t.hasInternationalFlight&&"CANCEL"!=t.bookingDetails[0].status),e.xp6(1),e.Q6J("ngIf",t.isMonitorOrderInfo),e.xp6(2),e.Q6J("listBookingText",t.listBookingText)("modeBookingText",t.modeBookingText)("bookingContact",t.bookingContact)("listBookingTextExplain",t.listBookingTextExplain),e.xp6(1),e.Q6J("listBookingCode",t.listBookingCode),e.xp6(3),e.ekj("text-secondary-3-4","BOOKING_DETAIL"===t.mobileTabMode)("!border-secondary-3-4","BOOKING_DETAIL"===t.mobileTabMode)("bg-secondary-3-1","BOOKING_DETAIL"===t.mobileTabMode),e.xp6(3),e.ekj("text-secondary-3-4","PAX_INFO"===t.mobileTabMode)("!border-secondary-3-4","PAX_INFO"===t.mobileTabMode)("bg-secondary-3-1","PAX_INFO"===t.mobileTabMode),e.xp6(3),e.Q6J("ngIf",t.isShowBookingInfo),e.xp6(1),e.Q6J("ngIf",t.isShowBookingInfo&&t.hasInternationalFlight),e.xp6(1),e.Q6J("ngIf",t.isShowBookingInfo),e.xp6(1),e.Q6J("ngIf",t.isShowBookingInfo),e.xp6(1),e.Q6J("ngIf",t.isShowBookingInfo),e.xp6(1),e.Q6J("ngIf",t.isShowBookingInfo),e.xp6(1),e.Q6J("ngIf",t.isShowBookingInfo),e.xp6(1),e.Q6J("ngIf",t.isOpenSuggest),e.xp6(1),e.Q6J("ngIf","BOOKING_DETAIL"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","PAX_INFO"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","TOTAL_PRICE"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","TOTAL_PRICE"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","FARE_RULE"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","TICKET_FACE"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","TICKET_NUMBER"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","REMARK"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf","LOWFARE"===t.mobileTabMode),e.xp6(1),e.Q6J("ngIf",!t.isLockPnr&&t.isOpenSuggest)}}function Ti(a,c){if(1&a){const t=e.EpF();e.TgZ(0,"div",140)(1,"div",141)(2,"div"),e._UZ(3,"img",142),e.qZA(),e.TgZ(4,"div",143)(5,"div",144),e._uU(6,"R\u1ea5t ti\u1ebfc, \u0111\xe3 c\xf3 l\u1ed7i x\u1ea3y ra"),e.qZA(),e.TgZ(7,"div",145)(8,"p"),e._uU(9),e.qZA()()(),e.TgZ(10,"div",146)(11,"button",147),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.getBookingDetail())}),e._UZ(12,"cf-icon",148),e._uU(13," Th\u1eed l\u1ea1i "),e.qZA()()()()}if(2&a){const t=e.oxw();e.xp6(9),e.hij("",t.messageError,". Vui l\xf2ng ki\u1ec3m tra v\xe0 th\u1eed l\u1ea1i sau")}}function ki(a,c){1&a&&(e.TgZ(0,"div",149),e._UZ(1,"cf-spinner"),e.qZA())}let yi=(()=>{class a{constructor(t,n,i,o,s,r,l,p,f,h,d,_,T,u,k,S,K,j,R,J,H){this.route=t,this._bookingDetailService=n,this._cfRegister=i,this._flightDataService=o,this._modal=s,this._locationDataService=r,this._manageBookingService=l,this._toastService=p,this.clipboard=f,this._permissionService=h,this._bottomSheetService=d,this._mobileDetectService=_,this._ticketLowFareService=T,this._route=u,this._eventLogService=k,this._sockerService=S,this._requestReroutingService=K,this._detectMobileService=j,this._systemService=R,this._searchFlightService=J,this.location=H,this.passengerInfos=[],this.bookingDetails=[],this.isSuccess=!1,this.isLoading=!1,this.dataBaggageInput=[],this.hasBaggageSelected=!1,this.dataSeatInput=[],this.hasSeatSelected=!1,this.listBaggage=[],this.listService=[],this.listOtherCharge=[],this.listJourneyBasic=[],this.listAction=[],this.listBookingText=[],this.listBookingTextExplain=[],this.modeBookingText="explain",this.isCopied=!1,this.listTicketInfo=[],this.actionOption=[{value:"booking_detail",name:"M\u1edf booking",icon:"external_link",enabled:[x.or.ViewAllFlightBookingDetail,x.or.ViewOwnFlightBookingDetail].some(C=>this._permissionService.hasPermission(C))},{value:"void",name:"Void v\xe9",icon:"coupon_slash",enabled:[x.or.CanVoidFlightTicket].some(C=>this._permissionService.hasPermission(C))},{value:"issue",name:"Xu\u1ea5t v\xe9",icon:"grouping",enabled:[x.or.CanIssuedFlightTicket].some(C=>this._permissionService.hasPermission(C))},{value:"boarding_pass",name:"M\u1eb7t v\xe9",icon:"coupon",enabled:[x.or.CreateFlightTicketFace].some(C=>this._permissionService.hasPermission(C))},{value:"addon_baggage",name:"Th\xeam h\xe0nh l\xfd",icon:"",enabled:[x.or.CanAddonFlightBaggage].some(C=>this._permissionService.hasPermission(C))},{value:"addon_seat",name:"Th\xeam ch\u1ed7 ng\u1ed3i",icon:"",enabled:[x.or.CanAddonFlightSeat].some(C=>this._permissionService.hasPermission(C))},{value:"register_order",name:"Canh v\xe9 r\u1ebb",icon:"price_down",enabled:this._permissionService.hasPermission(x.or.CanMonitorLowFareTicket)},{value:"add_journey",name:"Th\xeam h\xe0nh tr\xecnh",icon:"",enabled:[x.or.CanAddFlightJourney].some(C=>this._permissionService.hasPermission(C))},{value:"rerouting",name:"\u0110\u1ed5i h\xe0nh tr\xecnh",icon:"",enabled:[x.or.CanUpdateFlightJourney].some(C=>this._permissionService.hasPermission(C))},{value:"delete_segments",name:"H\u1ee7y h\xe0nh tr\xecnh",icon:"delete",enabled:this._permissionService.hasPermission(x.or.CanDeleteFlightSegment)},{value:"delete_each_journey",name:"H\u1ee7y h\xe0nh tr\xecnh",icon:"delete",enabled:[x.or.CanDeleteFlightSegment].some(C=>this._permissionService.hasPermission(C))},{value:"cancel_booking",name:"H\u1ee7y h\xe0nh tr\xecnh",icon:"delete",enabled:[x.or.CancelBookingBSP,x.or.CancelBookingAIR_1G].some(C=>this._permissionService.hasPermission(C))},{value:"send_email",name:"G\u1eedi email",icon:"email",enabled:[x.or.CanSendEmail].some(C=>this._permissionService.hasPermission(C))},{value:"separate_passengers",name:"T\xe1ch h\xe0nh kh\xe1ch",icon:"",enabled:[x.or.CanSplitPassengerVJ,x.or.CanSplitPassengerVN].some(C=>this._permissionService.hasPermission(C))},{value:"update_pax_info",name:"S\u1eeda h\xe0nh kh\xe1ch",icon:"",enabled:[x.or.CanUpdatePaxInfoVJ].some(C=>this._permissionService.hasPermission(C))},{value:"check_in_online",name:"Check in",icon:"",enabled:!0},{value:"open_audit_log",name:"Ki\u1ec3m to\xe1n \u0111\u1eb7t ch\u1ed7",icon:"",enabled:[x.or.CanViewAuditLogVJ].some(C=>this._permissionService.hasPermission(C))},{value:"snapshot_pnr",name:"Xem snapshot",icon:"",enabled:[x.or.CanLockPNR].some(C=>this._permissionService.hasPermission(C))&&this._permissionService.isBooker()},{value:"other",name:"Kh\xe1c",icon:"options_vertical",enabled:[x.or.CanAddonFlightSeat,x.or.CanAddonFlightBaggage].some(C=>this._permissionService.hasPermission(C)),items:[{value:"addon_baggage",name:"Th\xeam h\xe0nh l\xfd",icon:"",enabled:[x.or.CanAddonFlightBaggage].some(C=>this._permissionService.hasPermission(C))},{value:"addon_seat",name:"Th\xeam ch\u1ed7 ng\u1ed3i",icon:"",enabled:[x.or.CanAddonFlightSeat].some(C=>this._permissionService.hasPermission(C))}]}],this.listBookingCode=[],this.isShowRemark=!this._permissionService.isVNAccount(),this.messageError="",this.maxBag=10,this.zIndexPriceIncrease=!1,this.mobileTabMode="BOOKING_DETAIL",this.isOpenSuggest=!1,this.isMonitorOrderInfo=!1,this.isMultiJourney=!1,this.MODIFY_TYPE=V.Io,this.isShowBookingInfo=!1,this.hasInternationalFlight=!1,this.has1AProvider=!1,this.fareBasisInfos=[],this.hasAdtPax=!1,this.hasChdPax=!1,this.hasInfPax=!1,this.hasDiscountFare=!1,this.isRefreshPnr=this._permissionService.hasPermission(x.or.CanRefreshPnr),this.isLockPnr=!1,this.canLockPnr=!1,this.isShowStatusLock=this._permissionService.isAgent1()&&!this._permissionService.hasPermission(x.or.CanLockPNR),this.isPreviewPnr=!1,i.registerIcons([B.xgX,B.Ey$,B.tLH,B.xbi,B.NYs,B.Hge,B.n78,B.fqi,B.esH,B.cnj,B.$f3,B.gW0]),this.bookingCode=t.snapshot.params.bookingCode,this.airline=t.snapshot.params.airline,this.modifyType=history.state.modifyType,this.location.replaceState(this.location.path(),"",{})}ngOnInit(){const t=this.route.snapshot.queryParams,n=t.type;this.provider=t.provider,n&&"preview"===n&&this.provider?(this.isPreviewPnr=!0,this.getSnapshotPnr()):this.route.params.subscribe(i=>{this.bookingCode=i.bookingCode,this.airline=i.airline,this.getBookingDetail()}),this.handleSocketTimoutEvent()}handleSocketTimoutEvent(){const n=this._permissionService.getCurrentUser().userId;this._sockerService.timeoutEvent$.subscribe({next:i=>{this.refTimoutModal&&this.refTimoutModal.close(),this.refTimoutBts&&this.refTimoutBts.dismiss(),i.receiverId===n&&(this._toastService.add({severity:"success",summary:"Xu\u1ea5t v\xe9 th\xe0nh c\xf4ng",detail:"M\xe3 \u0111\u1eb7t ch\u1ed7 \u0111\xe3 \u0111\u01b0\u1ee3c xu\u1ea5t v\xe9 th\xe0nh c\xf4ng!",sticky:!1}),this.getBookingDetail())}})}getBookingDetail(t=!1){this.isLoading=!0,this._bookingDetailService.getBookingDetail(this.bookingCode,this.airline,t).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:n=>{var i;if("OK"===n.status)t&&this._toastService.add({severity:"success",summary:"Th\xe0nh c\xf4ng",detail:"C\u1eadp nh\u1eadt tr\u1ea1ng th\xe1i m\u1edbi nh\u1ea5t c\u1ee7a v\xe9 th\xe0nh c\xf4ng.",sticky:!1}),this.handleBoookingDetailResult(n);else if(this.isSuccess=!1,t)this._toastService.add({severity:"error",summary:"Th\u1ea5t b\u1ea1i",detail:"C\u1eadp nh\u1eadt tr\u1ea1ng th\xe1i v\xe9 th\u1ea5t b\u1ea1i. Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",sticky:!0});else{const o=null!==(i=n.objectError.errorDescription.vi)&&void 0!==i?i:n.objectError.errorDescription.en;this.messageError=o,this._toastService.add({severity:"error",summary:"Xem chi ti\u1ebft th\u1ea5t b\u1ea1i",detail:o,sticky:!0})}},error:()=>{this.isSuccess=!1,t?this._toastService.add({severity:"error",summary:"Th\u1ea5t b\u1ea1i",detail:"C\u1eadp nh\u1eadt tr\u1ea1ng th\xe1i v\xe9 th\u1ea5t b\u1ea1i. Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",sticky:!0}):this.messageError="\u0110\xe3 c\xf3 l\u1ed7i x\u1ea3y ra trong qu\xe1 tr\xednh th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng n\xe0y"}})}handleBoookingDetailResult(t){var n,i,o;this.isLockPnr="LOCKED"===t.data.stateLockPnr,this.isShowBookingInfo=["BOOKED","ISSUED"].includes(t.data.state),this.checkModifyBooking(),!this.isLockPnr&&this.checkSuggestRegisterOrder(),this.isSuccess=!0,this.bookingDetailResult=t,this.discountPercentage=t.data.discountPercentage,this.hasDiscountFare=!!this.discountPercentage,this.listBookingCode=[{bookingCode:t.data.bookingCode}],this.hasInternationalFlight=["BSP","AIR_1G"].includes((null===(n=t.data.provider)||void 0===n?void 0:n.toUpperCase())||""),this.has1AProvider=["BSP"].includes((null===(i=t.data.provider)||void 0===i?void 0:i.toUpperCase())||""),this.canLockPnr=this._permissionService.hasPermission(x.or.CanLockPNR)&&["ISSUED","CANCEL","VOID"].includes(t.data.state)&&!["VJ","VU"].includes((null===(o=t.data.provider)||void 0===o?void 0:o.toUpperCase())||""),this.initPassenger(),this.initCreditShellPrice(),this.initBookingDetail(),this.checkMultiJourney(),this.listBaggage=[],this.mappingJourneyBasic(),this._getSeatCharge(),this._getBaggageCharge(),this.getOtherCharge(),this.initPriceDetail(),this.initTotalPrice(),this.getBookingContact(),this.getBooingText(),this.getListTicketInfo(),this.getFareBasis()}initCreditShellPrice(){this.creditShellTotal=this.bookingDetailResult.data.creditShell?this.bookingDetailResult.data.creditShell.paxShellBreakDown.map(t=>t.refund.charge.total).reduce((t,n)=>t+n,0):0}checkModifyBooking(){if(this.modifyType===V.Io.UPDATE_JOURNEY)if(this.modifyType=V.Io.NONE,this._detectMobileService.isMobile()){const t=this._bottomSheetService.open(v.Q4,{headerTitle:"D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"H\xe0nh l\xfd v\xe0 gh\u1ebf ng\u1ed3i \u0111\xe3 mua c\xf3 th\u1ec3 s\u1ebd kh\xf4ng t\u1ef1 \u0111\u1ed9ng th\xeam v\xe0o h\xe0nh tr\xecnh m\u1edbi. \u0110\u1ea1i l\xfd vui l\xf2ng t\u1ef1 ki\u1ec3m tra l\u1ea1i.",okText:"\u0110\xf3ng",cancelText:"",hasIcon:!0,status:"info"}});t.containerInstance._rightButtonClick.subscribe(()=>{t.dismiss()})}else this._modal.open(v.V0,{title:"D\u1ecbch v\u1ee5 c\u1ed9ng th\xeam",body:"H\xe0nh l\xfd v\xe0 gh\u1ebf ng\u1ed3i \u0111\xe3 mua c\xf3 th\u1ec3 s\u1ebd kh\xf4ng t\u1ef1 \u0111\u1ed9ng th\xeam v\xe0o h\xe0nh tr\xecnh m\u1edbi. \u0110\u1ea1i l\xfd vui l\xf2ng t\u1ef1 ki\u1ec3m tra l\u1ea1i.",okText:"\u0110\xf3ng",hasCancel:!1})}checkSuggestRegisterOrder(){this._ticketLowFareService.canMonitorLowFare({airline:this.airline,pnr:this.bookingCode}).subscribe({next:n=>{"OK"===n.status&&(n.data.monitorOrderInfo?(this.monitorOrderInfo={orderId:n.data.monitorOrderInfo.orderId,pnr:n.data.monitorOrderInfo.pnr,airline:n.data.monitorOrderInfo.airline,state:n.data.monitorOrderInfo.state,stateLabel:this.getSateLabel(n.data.monitorOrderInfo.state),timeCreate:n.data.monitorOrderInfo.timeCreate?I(n.data.monitorOrderInfo.timeCreate).format("HH:mm DD/MM/YYYY"):"",userAction:n.data.monitorOrderInfo.userActionInfo.name},this.isMonitorOrderInfo=!0):this.isMonitorOrderInfo=!1,n.data.canSuggestMonitor.enable&&this.handleShowSuggest())}})}getSateLabel(t){switch(t){case w.b.CREATE:case w.b.IN_PROCESS:return{name:"\u0110ang canh v\xe9",style:"text-secondary-7-5 bg-secondary-7-1"};case w.b.IN_PROCESS_PRICE_UP:return{name:"Gi\xe1 \u0111\xe3 t\u0103ng",style:"text-primary-1-4 bg-primary-7-1"};case w.b.COMPLETED:return{name:"\u0110\xe3 canh v\xe9 r\u1ebb",style:"text-secondary-5-3 bg-secondary-5-1"};case w.b.CANCEL:return{name:"\u0110\xe3 b\u1ecb h\u1ee7y",style:"text-neutral-white bg-[#00000099]"};case w.b.EXPIRED:return{name:"\u0110\xe3 h\u1ebft h\u1ea1n",style:"text-neutral-gray-6 bg-neutral-gray-2"};default:return{name:"",style:""}}}handleShowSuggest(){this.isOpenSuggest=!0,setTimeout(()=>{this.isOpenSuggest=!1},3e4)}getBookingContact(){this.bookingContact=this.bookingDetailResult.data.bookingContact}getBooingText(){var t;this.listBookingText=[Object.assign(Object.assign({},this.bookingDetailResult.data.bookingText),{segmentTexts:"CANCEL"!=this.bookingDetailResult.data.state?this.bookingDetailResult.data.bookingText.segmentTexts:[],airline:this.bookingDetailResult.data.airline,totalPrice:"CANCEL"!=this.bookingDetailResult.data.state?new Intl.NumberFormat("vi-VN",{style:"currency",currency:"VND"}).format((null===(t=this.bookingDetailResult.data.bookingText)||void 0===t?void 0:t.totalPrice)||0):"",timeLimit:this.bookingDetails[0].timeHoldBooking})];const n=this.bookingDetailResult.data.bookingTextExplain;n&&(this.listBookingTextExplain=[Object.assign(Object.assign({},n),{segmentTexts:"CANCEL"!=this.bookingDetailResult.data.state?n.segmentTexts:[],bags:"CANCEL"!=this.bookingDetailResult.data.state?n.bags:[],seatCharge:"CANCEL"!=this.bookingDetailResult.data.state?n.seatCharge:[],ssrCharge:"CANCEL"!=this.bookingDetailResult.data.state?n.ssrCharge:[],totalCharge:"CANCEL"!=this.bookingDetailResult.data.state?n.totalCharge:"",totalPrice:"CANCEL"!=this.bookingDetailResult.data.state?n.totalPrice:0})],this.bookingTextExplain=this.getExplaneText())}initPassenger(){var t,n;this.passengerInfos=(null===(t=this.bookingDetailResult.data.passengers)||void 0===t?void 0:t.map(i=>("ADT"===i.getType()&&(this.hasAdtPax=!0),"CHD"===i.getType()&&(this.hasChdPax=!0),"INF"===i.getType()&&(this.hasInfPax=!0),{name:i.getName(),type:i.getType(),sex:i.getGender(),birthday:i.getBirthday()})))||[],this.passengers=(null===(n=this.bookingDetailResult.data.passengers)||void 0===n?void 0:n.map(i=>({name:i.getName(),type:i.type,typeName:i.getType(),key:i.key})))||[]}syncDelayPoint(t){for(let n=0;n<t.length-1;n++)t[n+1].delay=t[n].delay,t[n].delay=0;return t}checkMultiJourney(){const t=this.bookingDetailResult.data.journeys;this.isMultiJourney=t.length>1&&(t[0].departure.airport.code!=t[1].arrival.airport.code||t[0].arrival.airport.code!==t[1].departure.airport.code)}initBookingDetail(){var t,n,i,o,s,r,l,p,f,h,d,_,T,u,k,S,K,j,R,J,H,C;const g=this.bookingDetailResult.data;this.listAction.push(g.getAction()),g.journeys.forEach(m=>{g.provider===N.QK.VN&&"VN"===m.airline&&(m.segments=this.syncDelayPoint(m.segments))}),this.bookingDetails=[{agentId:g.agentId||"N/A",coOwnerId:g.coOwnerId||"N/A",bookingCode:g.bookingCode||"N/A",holdLimitTime:(null===(t=g.bookingTextExplain)||void 0===t?void 0:t.holdLimitTime)||"N/A",provider:g.provider||"",supplier:g.supplier||"",bookingCodeDisplay:g.bookingCode||"N/A",airline:g.airline||"N/A",airlineLogo:this._flightDataService.getAirlineLogoByCode(g.airline),mobileAirlineLogo:["VJ","VN","QH"].includes(g.airline)?"assets/airline-logo/"+g.airline+"_small.png":"assets/airline-logo/"+g.airline+".png",airlineName:["VJ","VN","QH"].includes(g.airline)?this._flightDataService.getAirlineSystemNameByCode(g.airline):g.airlineName,airlineSystem:g.airline||"N/A",startPoint:null!==(i=null===(n=g.journeys[0])||void 0===n?void 0:n.departure.airport.code)&&void 0!==i?i:"N/A",endPoint:1===g.journeys.length?null===(o=g.journeys[0])||void 0===o?void 0:o.arrival.airport.code:null===(s=g.journeys[g.journeys.length-1])||void 0===s?void 0:s.departure.airport.code,status:g.state,issued:g.issued||!1,statusText:g.getStatusText(),statusDesc:"N/A",caCode:"N/A",timeHoldBooking:null!==(r=g.bookDetail)&&void 0!==r&&r.timeHoldBooking?I(g.bookDetail.timeHoldBooking).format("HH:mm, DD/MM/YYYY"):"",timeHoldPricing:null!==(l=g.bookDetail)&&void 0!==l&&l.timeKeepPrice?I(g.bookDetail.timeKeepPrice).format("HH:mm, DD/MM/YYYY"):"N/A",tourCode:"N/A",totalFare:null!==(p=g.fareCharges)&&void 0!==p&&p.total?g.fareCharges.total.total:null,totalDiscountFare:0,totalServiceFee:null!==(f=g.totalCharges)&&void 0!==f&&f.total?g.totalCharges.total.totalServiceFee:null,totalCharge:(null===(h=g.totalCharges)||void 0===h?void 0:h.total.total)||0,totalAddonCharge:null!==(T=null===(_=null===(d=g.totalCharges)||void 0===d?void 0:d.total)||void 0===_?void 0:_.totalAddonCharge)&&void 0!==T?T:0,targetPriceOrder:null===(u=g.fareCharges)||void 0===u?void 0:u.getTotalChargeOrder(),flightNumber:`${(null===(S=null===(k=g.journeys[0])||void 0===k?void 0:k.segments[0])||void 0===S?void 0:S.airline)||""}${(null===(j=null===(K=g.journeys[0])||void 0===K?void 0:K.segments[0])||void 0===j?void 0:j.flightNumber)||""}`,journeys:(null===(R=g.journeys)||void 0===R?void 0:R.map(m=>{var O,F,U,L,M,q,X,z,W,ee,te,ie,ne;return{key:m.key,airline:m.airline||"N/A",airlineLogo:this._flightDataService.getAirlineLogoByCode(m.airline),airlineName:m.airlineName||"N/A",operating:m.operating||"N/A",operatingName:m.operatingName||"N/A",startPoint:(null===(F=null===(O=m.departure)||void 0===O?void 0:O.airport)||void 0===F?void 0:F.code)||"N/A",startPointName:this._locationDataService.getCityNameByCode(m.departure.airport.code),endPoint:(null===(L=null===(U=m.arrival)||void 0===U?void 0:U.airport)||void 0===L?void 0:L.code)||"N/A",endPointName:this._locationDataService.getCityNameByCode(m.arrival.airport.code),startTime:null!==(M=m.departure)&&void 0!==M&&M.localTime?I(m.departure.localTime).toDate():void 0,endTime:null!==(q=m.arrival)&&void 0!==q&&q.localTime?I(m.arrival.localTime).toDate():void 0,segments:(null===(X=m.segments)||void 0===X?void 0:X.map(y=>{var oe,ae,se,re,le,ce,de,ue,he,ge,pe,_e,me,ve,fe,be;const Se=y.getDelayString();return{airline:y.airline||"N/A",airlineName:y.operatingName||"N/A",airlineLogo:this._flightDataService.getAirlineLogoByCode(y.operating||y.airline),startPoint:(null===(ae=null===(oe=y.departure)||void 0===oe?void 0:oe.airport)||void 0===ae?void 0:ae.code)||"N/A",startPointName:this._locationDataService.getCityNameByCode((null===(re=null===(se=y.departure)||void 0===se?void 0:se.airport)||void 0===re?void 0:re.code)||""),endPoint:(null===(ce=null===(le=y.arrival)||void 0===le?void 0:le.airport)||void 0===ce?void 0:ce.code)||"N/A",endPointName:this._locationDataService.getCityNameByCode((null===(ue=null===(de=y.arrival)||void 0===de?void 0:de.airport)||void 0===ue?void 0:ue.code)||""),startTime:null!==(he=y.departure)&&void 0!==he&&he.localTime?I(y.departure.localTime).toDate():void 0,endTime:null!==(ge=y.arrival)&&void 0!==ge&&ge.localTime?I(y.arrival.localTime).toDate():void 0,flightNumber:y.flightNumber||"N/A",duration:y.getDurationString(),shortDuration:(0,Ue.N)(y.duration),key:y.key||"N/A",operating:y.operating||"N/A",operatingName:y.operatingName||"N/A",codeAirline:y.codeAirline||"N/A",checkedBaggage:(null===(pe=y.bookedInfo)||void 0===pe?void 0:pe.checkedBaggage)||"N/A",fareClass:(null===(_e=y.bookedInfo)||void 0===_e?void 0:_e.fareClass)||"N/A",fareType:(null===(me=y.bookedInfo)||void 0===me?void 0:me.fareType)||(null===(ve=y.bookedInfo)||void 0===ve?void 0:ve.fareClass)||"",fareBasic:(null===(fe=y.bookedInfo)||void 0===fe?void 0:fe.fareBasic)||"N/A",handBaggage:(null===(be=y.bookedInfo)||void 0===be?void 0:be.handBaggage)||"N/A",accompaniedService:g.getAccompaniedService(m.key),modelAirplane:y.modelAirplane||"N/A",stopPoint:Se?`D\u1eebng t\u1ea1i: ${this._locationDataService.getAirportNameByCode(y.departure.airport.code)} (${y.departure.airport.code}). Th\u1eddi gian d\u1eebng: ${Se}`:""}}))||[],journeyStatus:{active:null!==(W=null===(z=m.status)||void 0===z?void 0:z.active)&&void 0!==W&&W,cancelled:null!==(te=null===(ee=m.status)||void 0===ee?void 0:ee.cancelled)&&void 0!==te&&te,disrupted:null!==(ne=null===(ie=m.status)||void 0===ie?void 0:ie.disrupted)&&void 0!==ne&&ne}}}))||[],passengers:(null===(J=g.passengers)||void 0===J?void 0:J.map(m=>{var O,F,U,L,M,q;return{index:m.index,name:m.getName(),firstName:m.firstName||"N/A",lastName:m.lastName||"N/A",type:m.getType(),farePrice:(null===(O=g.fareCharges)||void 0===O?void 0:O.getBaseCharge(m.type))-(null===(F=g.fareCharges)||void 0===F?void 0:F.getDiscount(m.type)),tax:(null===(U=g.fareCharges)||void 0===U?void 0:U.getTaxCharge(m.type))||0,vat:(null===(L=g.fareCharges)||void 0===L?void 0:L.getVATCharge(m.type))||0,discountAmount:null===(M=g.fareCharges)||void 0===M?void 0:M.getDiscountByPercent(m.type,this.discountPercentage),get totalDiscountFarePrice(){return this.total-this.discountAmount},total:(null===(q=g.fareCharges)||void 0===q?void 0:q.getTotalCharge(m.type))||0,key:m.key||"N/A",parentKey:m.parentKey||"N/A",birthday:m.birthday||"N/A",namePrefix:m.namePrefix||"N/A",gender:m.gender||"N/A",documentType:m.document?m.document[0].documentType:"",issuanceDate:m.document?m.document[0].issuanceDate:"",expiryDate:m.document?m.document[0].expiryDate:"",issuanceCountry:m.document?m.document[0].issuanceCountry:"",nationality:m.document?m.document[0].nationality:"",number:m.document?m.document[0].number:"",defaultDocumentInfo:m.defaultDocumentInfo}}))||[],actions:this.getListTicketAction(g.state,g.provider),bookingTextExplain:null==g?void 0:g.bookingTextExplain,serviceFeeDetail:g.serviceFeeDetail,isVJCancelAllJourney:"VJ"==g.airline&&0==g.journeys.length,ticketingAllowed:null!==(C=null===(H=g.bookDetail)||void 0===H?void 0:H.ticketingAllowed)&&void 0!==C&&C}]}initPriceDetail(){var t,n,i,o;this.priceDetail={provider:[this.bookingDetailResult.data.provider],totalBasePrice:null===(t=this.bookingDetailResult.data.totalCharges)||void 0===t?void 0:t.total.totalFareCharge,totalDiscountBasePrice:0,totalServiceFee:null===(n=this.bookingDetailResult.data.totalCharges)||void 0===n?void 0:n.total.totalServiceFee,totalAddonService:this.computeTotalChargeAddOn(),totalOthersCharge:null===(i=this.bookingDetailResult.data.totalCharges)||void 0===i?void 0:i.total.totalOthersCharge,passengers:this.passengers.map(s=>{var r,l,p,f,h,d;return{name:s.name,type:s.typeName,base:(null===(r=this.bookingDetailResult.data.fareCharges)||void 0===r?void 0:r.getBaseCharge(s.type))-(null===(l=this.bookingDetailResult.data.fareCharges)||void 0===l?void 0:l.getDiscount(s.type)),tax:(null===(p=this.bookingDetailResult.data.fareCharges)||void 0===p?void 0:p.getTaxCharge(s.type))+(null===(f=this.bookingDetailResult.data.fareCharges)||void 0===f?void 0:f.getVATCharge(s.type)),discountAmount:null===(h=this.bookingDetailResult.data.fareCharges)||void 0===h?void 0:h.getDiscountByPercent(s.type,this.discountPercentage),total:null===(d=this.bookingDetailResult.data.fareCharges)||void 0===d?void 0:d.getTotalCharge(s.type),get totalDiscountFarePrice(){return this.total-this.discountAmount}}})},this.totalDiscountAmount=null===(o=this.priceDetail.passengers)||void 0===o?void 0:o.reduce((s,r)=>s+((null==r?void 0:r.discountAmount)||0),0),this.priceDetail.totalDiscountBasePrice=this.priceDetail.totalBasePrice-this.totalDiscountAmount,this.bookingDetails.forEach(s=>{s.totalDiscountFare=s.totalFare-this.totalDiscountAmount})}initTotalPrice(){var t;this.totalPrice=null===(t=this.bookingDetailResult.data.totalCharges)||void 0===t?void 0:t.total.total,this.totalDiscountFareCharge=this.totalPrice-this.totalDiscountAmount}onActionChange(t,n){if(this.isLockPnr&&(!this._permissionService.isBooker()||this.isPreviewPnr)&&!["boarding_pass"].includes(t))return this.isLoading=!0,void setTimeout(()=>{if(this.isLoading=!1,this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:"Th\xf4ng b\xe1o",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"K\u1ebft n\u1ed1i t\u1edbi h\xe3ng h\xe0ng kh\xf4ng \u0111ang kh\xf4ng \u1ed5n \u0111\u1ecbnh. Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",okText:"\u0110\xf3ng",cancelText:"",hasIcon:!0,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()})}else this._modal.open(v.V0,{title:"Th\xf4ng b\xe1o",body:"K\u1ebft n\u1ed1i t\u1edbi h\xe3ng h\xe0ng kh\xf4ng \u0111ang kh\xf4ng \u1ed5n \u0111\u1ecbnh. Vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.",okText:"\u0110\xf3ng",cancelText:"",hasCancel:!1})},300);const i={airline:n.airlineSystem,bookingCode:n.bookingCode,payNow:"ISSUED"===n.status,bookingStatus:n.status,provider:n.provider||""};switch(t){case"addon_baggage":return this.onAddonBaggage(i);case"addon_seat":return this.onAddonSeat(i);case"void":return this.onVoidBooking();case"issue":return this.onIssueBooking(i,n);case"boarding_pass":return this.onShowBoardingPass(n);case"delete_segments":case"cancel_booking":return this.onDeleteSegment(n);case"copy_pnr":return this.onCopyBookingCode(n.bookingCode);case"register_order":return this._eventLogService.captureOpenFormDownFare({hasPNR:1,source:1}),this.onRegisterOrder(n);case"send_email":return this.onSendEmail(n);case"rerouting":return this.onRerouting(n);case"add_journey":return this.onAddonJourney(n);case"delete_each_journey":return this.onDeleteEachJourney(n);case"separate_passengers":return this.onSeparatePassengers(n);case"check_in_online":return this.onCheckInOnline(n);case"update_pax_info":return this.onUpdatePaxInfo(n);case"open_audit_log":return this.onOpenAuditLog(n);case"snapshot_pnr":return this.onPreviewPnr();default:return}}onAddonBaggage(t){var n;if(N.PY&&"VN"===(null===(n=this.bookingDetailResult.data.airline)||void 0===n?void 0:n.toUpperCase()))return void this._modal.open(v.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"});if(this.dataBaggageInput=this.mappingDataBaggageInput(),!this.dataBaggageInput.length||this.dataBaggageInput.every(o=>!o.journeys.length))return void this._toastService.add({severity:"error",summary:"Th\xeam h\xe0nh l\xfd th\u1ea5t b\u1ea1i",detail:"H\xe0nh l\xfd \u0111\xe3 c\xf3",sticky:!0});const i=Object.assign({},t);if(this._mobileDetectService.isMobile()){const o=this._bottomSheetService.open($.AddOnBaggageModalComponent,{headerTitle:"Th\xeam h\xe0nh l\xfd",leftButtonIcon:"arrow_left",leftButtonIconClass:"text-neutral-gray-4",rightButtonIcon:"",containerFullHeigh:!0,data:{dataBaggageInput:this.dataBaggageInput,addonBaggageReq:i,type:"baggage_addon",bookingInfo:t}});o.containerInstance._leftButtonClick.subscribe(s=>o.dismiss()),o.afterDismissed().subscribe(s=>{s&&this.processAddonBaggage(t,s)})}else this._modal.open($.AddOnBaggageModalComponent,{dataBaggageInput:this.dataBaggageInput,addonBaggageReq:i,type:"baggage_addon",bookingInfo:t}).afterClosed$.subscribe({next:s=>{this.processAddonBaggage(t,s.data)}})}processAddonBaggage(t,n){var i;const o=n;if(o&&o.success)if(this._mobileDetectService.isMobile()){const s=this._bottomSheetService.open(v.z5,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",data:{title:"Th\xeam h\xe0nh l\xfd th\xe0nh c\xf4ng!",content:"<div>\u0110\xe3 th\xeam h\xe0nh l\xfd cho booking code:</div>",status:"success",okText:"OK",extraText:`${t.bookingCode}`}});s.containerInstance._rightButtonClick.subscribe(r=>s.dismiss()),s.afterDismissed().subscribe(r=>{this.getBookingDetail()})}else this._modal.open(v.z5,{title:"Th\xeam h\xe0nh l\xfd th\xe0nh c\xf4ng!",content:"<div>\u0110\xe3 th\xeam h\xe0nh l\xfd cho booking code:</div>",status:"success",okText:"OK",extraText:`${t.bookingCode}`}).afterClosed$.subscribe({next:r=>{this.getBookingDetail()}});if(o&&!o.success){const s=null!==(i=o.objectError.errorDescription.vi)&&void 0!==i?i:o.objectError.errorDescription.en;this._toastService.add({severity:"error",summary:"Th\xeam h\xe0nh l\xfd th\u1ea5t b\u1ea1i",detail:s,sticky:!0})}}onAddonSeat(t){this.dataSeatInput=this.mappingDataSeatInput();const n=Object.assign({},t);if(this._mobileDetectService.isMobile()){const i=this._bottomSheetService.open($.AddOnSeatModalComponent,{headerTitle:"Th\xeam ch\u1ed7 ng\u1ed3i",leftButtonIcon:"arrow_left",leftButtonIconClass:"text-neutral-gray-4",rightButtonIcon:"",containerFullHeigh:!0,data:{dataSeatInput:this.dataSeatInput,addonSeatReq:n,type:"seat_addon",bookingInfo:t}});i.containerInstance._leftButtonClick.subscribe(o=>i.dismiss()),i.afterDismissed().subscribe(o=>{this.processAddonSeat(t,o)})}else this._modal.open($.AddOnSeatModalComponent,{dataSeatInput:this.dataSeatInput,addonSeatReq:n,type:"seat_addon",bookingInfo:t}).afterClosed$.subscribe({next:o=>{this.processAddonSeat(t,o.data)}})}processAddonSeat(t,n){let i=n;if(n.data&&!n.data.addOnCharges&&n.data.data&&(i=n.data),i&&i.success){const s=i.data.addOnCharges.map(r=>({charge:Object.assign({},r.charge.charge),seatInfos:{journeyKey:r.seatItem.journeyKey,mapCell:Object.assign({},r.seatItem.mapCell),passengerKey:r.seatItem.passengerKey,segmentKey:r.seatItem.segmentKey}}));if(this.bookingDetailResult.data.seatCharges.push(...s),this._getSeatCharge(),this.initPriceDetail(),this.totalPrice=this.bookingDetailResult.data.totalCharges.total.total+this.computeTotalChargeAddOn(),this._mobileDetectService.isMobile()){const r=this._bottomSheetService.open(v.z5,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",data:{title:"Th\xeam ch\u1ed7 ng\u1ed3i th\xe0nh c\xf4ng!",content:"<div>\u0110\xe3 th\xeam ch\u1ed7 ng\u1ed3i cho booking code:</div>",status:"success",okText:"OK",extraText:`${t.bookingCode}`}});r.containerInstance._rightButtonClick.subscribe(l=>r.dismiss()),r.afterDismissed().subscribe(l=>{this.getBookingDetail()})}else this._modal.open(v.z5,{title:"Th\xeam ch\u1ed7 ng\u1ed3i th\xe0nh c\xf4ng!",content:"<div>\u0110\xe3 th\xeam ch\u1ed7 ng\u1ed3i cho booking code:</div>",status:"success",okText:"OK",extraText:`${t.bookingCode}`}).afterClosed$.subscribe({next:l=>{this.getBookingDetail()}})}if(i&&!i.success){const o=i.objectError.errorDescription.vi?i.objectError.errorDescription.vi:i.objectError.errorDescription.en;if(this._mobileDetectService.isMobile()){const s=this._bottomSheetService.open(v.z5,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",data:{title:"Th\xeam ch\u1ed7 ng\u1ed3i th\u1ea5t b\u1ea1i",content:`<div>\n <div>${o}</div>\n <div>Vui l\xf2ng th\u1eed l\u1ea1i sau!</div>\n </div>`,status:"error",okText:"Th\u1eed l\u1ea1i",cancelText:"\u0110\xf3ng"}});s.containerInstance._rightButtonClick.subscribe(r=>s.dismiss())}else this._modal.open(v.z5,{title:"Th\xeam ch\u1ed7 ng\u1ed3i th\u1ea5t b\u1ea1i",content:`<div>\n <div>${o}</div>\n <div>Vui l\xf2ng th\u1eed l\u1ea1i sau!</div>\n </div>`,status:"error",okText:"Th\u1eed l\u1ea1i",cancelText:"\u0110\xf3ng"})}}mappingDataBaggageInput(){const t=this.bookingDetailResult.data;let n=t.passengers.filter(i=>"INFANT"!==i.type).map(i=>{var o;return{passengerKey:i.key,passengerType:i.type,passengerName:i.lastName+" "+i.firstName,addBaggageFee:(null===(o=i.passengerDerivativeFee)||void 0===o?void 0:o.addBaggageFee)||0,journeys:t.journeys.filter(s=>{const r=t.ssrCharges?t.ssrCharges.filter(l=>"baggage"===l.ssrInfo.category.name.toLowerCase()&&l.ssrInfo.journeyKey===s.key&&l.ssrInfo.passengerKey===i.key):[];return!("VN"===s.airline&&r.length>=this.maxBag||"VN"!==s.airline&&r.length)&&s}).map(s=>{const r=I(s.departure.localTime).toDate();return{airlineName:this._flightDataService.getAirlineSystemNameByCode(s.airline),airlineLogo:this._flightDataService.getAirlineLogoByCode(s.airline),journeyKey:s.key,flight:s.airline.concat(" ",s.segments[0].flightNumber),flightNumber:s.segments[0].flightNumber,journeyName:`D\u1ecbch v\u1ee5 b\u1ed5 sung ${s.departure.airport.code}-${s.arrival.airport.code}, ${(0,A.p6)(r,"EEEE, ","vi-VN")} ${r.getDate()} th\xe1ng ${r.getMonth()+1}, ${r.getFullYear()}`,leg:s.leg,fareOptionKey:"",startCode:s.departure.airport.code,endCode:s.arrival.airport.code,startTime:(0,A.p6)(new Date(s.departure.localTime),"EEEE, dd/MM/yyyy","vi-VN"),baggageOptions:[],baggageSelected:{baggageName:"",baggageKey:"",containerKey:"",totalCharge:0}}})}});return n=n.filter(i=>i.journeys.length),n}mappingDataSeatInput(){const t=this.bookingDetailResult.data;return t.journeys.map(i=>({segments:i.segments.map(o=>{const s=I(o.departure.localTime).toDate(),r=`${(0,A.p6)(s,"EEEE, ","vi-VN")} ${s.getDate()} th\xe1ng ${s.getMonth()+1}, ${s.getFullYear()}`;return{airline:o.airline,flightNumber:o.flightNumber,bookingCode:t.bookingCode,serviceName:`Th\xeam ch\u1ed7 ng\u1ed3i tr\xean chuy\u1ebfn bay ${o.departure.airport.code}-${o.arrival.airport.code}, ${r}`,airlineLogo:this._flightDataService.getAirlineLogoByCode(o.airline),jetCode:"N/A",startCode:o.departure.airport.code,endCode:o.arrival.airport.code,departDate:r,passengers:t.passengers.filter(l=>"INFANT"!==l.type).map(l=>{var p,f,h;const d=null===(p=t.seatCharges)||void 0===p?void 0:p.find(T=>T.seatInfos.passengerKey===l.key&&T.seatInfos.journeyKey===i.key&&T.seatInfos.segmentKey===o.key),_=!(null===(f=t.passengers)||void 0===f||!f.find(T=>T.parentKey==l.key));return{passengerName:`${l.lastName} ${l.firstName}`,passengerType:l.type.toLowerCase(),passengerKey:l.key,includeInfant:_,addSeatFee:(null===(h=l.passengerDerivativeFee)||void 0===h?void 0:h.addSeatFee)||0,seatSelected:{containerKey:"",seat:d?d.seatInfos.mapCell.row+d.seatInfos.mapCell.identifier:"",seatKey:d?d.seatInfos.key:"",totalPrice:d?d.charge.total:0}}}),segmentKey:o.key,segmentIndex:o.index,journeyKey:i.key,leg:i.leg,active:!1,seatSegment:{rows:[],cols:[],containerKey:"",seatMaps:[]},available:!(t.seatCharges&&t.seatCharges.some(l=>l.seatInfos.journeyKey===i.key&&l.seatInfos.segmentKey===o.key))}})})).flatMap(i=>i.segments).map((i,o)=>Object.assign(Object.assign({},i),{active:0===o}))}mappingJourneyBasic(){this.listJourneyBasic=this.bookingDetails.filter(t=>"INVALID"!==t.status).map(t=>({journeyInfo:t.journeys.map(n=>({airlineLogo:n.airlineLogo,flight:`${n.startPoint} - ${n.endPoint}`,startTime:n.startTime?(0,A.p6)(new Date(n.startTime),"dd/MM/yyyy","vi-VN"):void 0,journeyKey:n.key}))})).flatMap(t=>t.journeyInfo)}computeTotalChargeAddOn(){return this.listBaggage.reduce((i,o)=>i+o.totalCharge,0)+this.listService.reduce((i,o)=>i+o.totalCharge,0)}_getSeatCharge(){this.listService.length=0;const t=this.bookingDetailResult.data,n=t.journeys.flatMap(o=>o.segments),i=t.passengers;if(t.seatCharges&&t.seatCharges.length){const o=t.seatCharges.map(s=>{const r=i.find(p=>p.key===s.seatInfos.passengerKey),l=n.find(p=>p.key===s.seatInfos.segmentKey);return{airlineName:l?this._flightDataService.getAirlineNameByCode(l.airline):"",airlineLogo:l?this._flightDataService.getAirlineLogoByCode(l.airline):"",journeyKey:"",flight:l?l.departure.airport.code+" - "+l.arrival.airport.code:"",flightName:l?this._locationDataService.getCityNameByCode(l.departure.airport.code)+" - "+this._locationDataService.getCityNameByCode(l.arrival.airport.code):"",flightNumber:l?`${l.airline}${l.flightNumber}`:"",departDate:l?(0,A.p6)(new Date(l.departure.localTime),"dd/MM/yyyy","vi-VN"):"",passengerKey:r?r.key:"",passengerName:r?r.lastName+" "+r.firstName:"",serviceKey:"",totalCharge:s.charge.total,serviceName:s.seatInfos.mapCell.seatNumber?s.seatInfos.mapCell.seatNumber:s.seatInfos.mapCell.row+s.seatInfos.mapCell.identifier,categoryName:"seat"}});this.listService.push(...o)}this.hasSeatSelected=this.listService.some(o=>o)}_getBaggageCharge(){const t=this.bookingDetailResult.data,n=t.journeys,i=t.passengers;if(t.ssrCharges&&t.ssrCharges.length){const o=t.ssrCharges.map(s=>{const r=i.find(p=>p.key===s.ssrInfo.passengerKey),l=n.find(p=>p.key===s.ssrInfo.journeyKey);return{airlineName:l?this._flightDataService.getAirlineNameByCode(l.airline):"",airlineLogo:l?this._flightDataService.getAirlineLogoByCode(l.airline):"",journeyKey:l?l.key:"",flight:l?l.departure.airport.code+" - "+l.arrival.airport.code:"",flightName:l?this._locationDataService.getCityNameByCode(l.departure.airport.code)+" - "+this._locationDataService.getCityNameByCode(l.arrival.airport.code):"",flightNumber:"",departDate:l?(0,A.p6)(new Date(l.departure.localTime),"dd/MM/yyyy","vi-VN"):"",passengerKey:r?r.key:"",passengerName:r?r.lastName+" "+r.firstName:"",serviceKey:"",totalCharge:s.charge.total,serviceName:s.ssrInfo.name,categoryName:s.ssrInfo.category.name.toLowerCase()}});this.listBaggage.push(...o)}this.hasBaggageSelected=this.listBaggage.some(o=>o)}getOtherCharge(){var t;const i=o=>{switch(o.toUpperCase()){case"MODIFY":return"Thay \u0111\u1ed5i h\xe0nh tr\xecnh";case"CANCEL":return"H\u1ee7y h\xe0nh tr\xecnh";default:return""}};this.listOtherCharge=(null===(t=this.bookingDetailResult.data.otherCharges)||void 0===t?void 0:t.map(o=>({chargeTypeName:i(o.otherChargeInfo.code),description:o.otherChargeInfo.category.description,totalCharge:o.charge.total})))||[]}onVoidBooking(){if(this._mobileDetectService.isMobile()){const t=this._bottomSheetService.open(D.hF,{headerTitle:"Void v\xe9",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",rightButtonIcon:"",containerFullHeigh:!0,data:{bookingCode:this.bookingCode,airline:this.airline}});t.containerInstance._leftButtonClick.subscribe(n=>t.dismiss()),t.afterDismissed().subscribe(n=>{n&&this.getBookingDetail()})}else this._modal.open(D.hF,{bookingCode:this.bookingCode,airline:this.airline}).afterClosed$.subscribe({next:n=>{n.data&&this.getBookingDetail()}})}getIssueData(t){var n;const i=null===(n=t.passengers.filter(s=>"INF"!==s.type))||void 0===n?void 0:n.map(s=>{const r=t.passengers.filter(l=>"INF"===l.type).find(l=>l.parentKey===s.key);return{firstName:s.firstName,lastName:s.lastName,type:s.type,child:r?{firstName:r.firstName,lastName:r.lastName,type:r.type}:null}});return{bookingCode:t.bookingCode,passengers:i,segments:t.journeys.flatMap(s=>s.segments).map(s=>({flightNumber:`${s.airline}${s.flightNumber}`,startCode:s.startPoint,endCode:s.endPoint,route:`${s.startPoint}${s.endPoint}`,departDate:s.startTime?(0,A.p6)(s.startTime,"dMMM","en-US"):"",startTime:s.startTime?(0,A.p6)(s.startTime,"HH:mm","vi-VN"):"",endTime:s.endTime?(0,A.p6)(s.endTime,"HH:mm","vi-VN"):""})),totalCharge:this.totalDiscountFareCharge&&this.hasDiscountFare?this.totalDiscountFareCharge:this.totalPrice}}onIssueBooking(t,n){var i,o;if("ISSUED"===t.status&&N.PY&&"VN"===(null===(i=t.airline)||void 0===i?void 0:i.toUpperCase()))return void this._modal.open(v.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 s_title="Xu\u1ea5t v\xe9 th\xe0nh c\xf4ng",s_content="M\xe3 \u0111\u1eb7t ch\u1ed7 \u0111\xe3 \u0111\u01b0\u1ee3c xu\u1ea5t v\xe9 th\xe0nh c\xf4ng!",r={title:"Xu\u1ea5t v\xe9 th\u1ea5t b\u1ea1i",content:"Xu\u1ea5t 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!",status:"error"},l={agentId:"",bookingCode:t.bookingCode,bookingPrice:0,internal:!0,provider:t.provider||"",checkDiscountFee:!0,passengers:[]},p=this.bookingDetails[0].passengers.some(f=>f.defaultDocumentInfo);if("BSP"===(null===(o=t.provider)||void 0===o?void 0:o.toUpperCase())&&p){const f=h=>{l.passengers=this.bookingDetails[0].passengers.map(d=>{const _=h.find(T=>T.index==T.index);return{documentInfo:[{documentType:"PASSPORT",issuanceDate:null!=_&&_.issuanceDate&&I(null==_?void 0:_.issuanceDate).format("YYYY-MM-DD")||"",expiryDate:null!=_&&_.expiryDate&&I(null==_?void 0:_.expiryDate).format("YYYY-MM-DD")||"",issuanceCountry:(null==_?void 0:_.issuanceCountry)||"",nationality:(null==_?void 0:_.nationality)||"",number:(null==_?void 0:_.number)||""}],index:d.index}}),this.isLoading=!0,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:d=>{if(this.isLoading=!0,"OK"===d.status&&d.data)this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail();else if("DS-EL005"===d.objectError.errorCode){const _=d.objectError.errorData.priceInfo.newPrice-d.objectError.errorData.priceInfo.oldPrice,T={newPrice:d.objectError.errorData.priceInfo.newPrice,oldPrice:d.objectError.errorData.priceInfo.oldPrice,priceGap:Math.abs(_),type:_>0?"+":"-"};this._modal.open(P.EH,{priceChangeData:T}).afterClosed$.subscribe({next:k=>{k.data&&(this.isLoading=!0,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:S=>{"OK"===S.status?(this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail()):"DS-EH001"===S.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=S.objectError.errorDescription.vi?S.objectError.errorDescription.vi:S.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:S=>{S instanceof Z.W?this.hanldeTimeoutIssue():(r.content=d.objectError.errorDescription.vi?d.objectError.errorDescription.vi:d.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))}}))}})}else if("BE-EF045"===d.objectError.errorCode){const _={newPrice:d.objectError.errorData.newPriceTicket,oldPrice:d.objectError.errorData.oldPriceTicket,get priceGap(){return Math.abs(this.newPrice-this.oldPrice)},type:d.objectError.errorData.discountChange};if(this._detectMobileService.isMobile()){const T=this._bottomSheetService.open(P.Gn,{headerTitle:"Th\xf4ng b\xe1o thay \u0111\u1ed5i chi\u1ebft kh\u1ea5u",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{discountChangeData:_}});T.containerInstance._rightButtonClick.subscribe(()=>{T.dismiss()}),T.afterDismissed().subscribe({next:u=>{u&&(this.isLoading=!0,l.checkDiscountFee=!1,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:k=>{"OK"===k.status?(this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail()):"DS-EH001"===k.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=k.objectError.errorDescription.vi?k.objectError.errorDescription.vi:k.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:k=>{k instanceof Z.W?this.hanldeTimeoutIssue():(r.content=d.objectError.errorDescription.vi?d.objectError.errorDescription.vi:d.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))}}))}})}else this._modal.open(P.Gn,{discountChangeData:_}).afterClosed$.subscribe({next:u=>{u.data&&(this.isLoading=!0,l.checkDiscountFee=!1,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:k=>{"OK"===k.status?(this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail()):"DS-EH001"===k.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=k.objectError.errorDescription.vi?k.objectError.errorDescription.vi:k.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:k=>{k instanceof Z.W?this.hanldeTimeoutIssue():(r.content=d.objectError.errorDescription.vi?d.objectError.errorDescription.vi:d.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))}}))}})}else"DS-EH001"===d.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=d.objectError.errorDescription.vi?d.objectError.errorDescription.vi:d.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:d=>{d instanceof Z.W?this.hanldeTimeoutIssue():this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0})}})};if(this._detectMobileService.isMobile()){const h=this._bottomSheetService.open(v.V0,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"C\u1ea7n b\u1ed5 sung \u0111\u1ea7y \u0111\u1ee7 th\xf4ng tin h\u1ed9 chi\u1ebfu c\u1ee7a h\xe0nh kh\xe1ch tr\u01b0\u1edbc khi xu\u1ea5t v\xe9",okText:"B\u1ed5 sung",cancelText:"\u0110\xf3ng",hasIcon:!0}});h.containerInstance._rightButtonClick.subscribe(()=>{h.dismiss()}),h.afterDismissed().subscribe({next:d=>{if(d){const _=[];this.bookingDetails[0].passengers.forEach((u,k)=>{_.push({index:u.index,key:u.key||"",name:u.lastName+" "+u.firstName,parentKey:"N/A"==u.parentKey||null==u.parentKey?"":u.parentKey,type:u.type,child:"N/A",selected:0==k,gender:u.gender,firstName:u.firstName,lastName:u.lastName,dayOfBirth:u.birthday?u.birthday:"",parentName:"",fullType:u.type,issuanceDate:u.issuanceDate,expiryDate:u.expiryDate,issuanceCountry:u.issuanceCountry,nationality:u.nationality,number:u.number})});const T=this._bottomSheetService.open(D.vj,{headerTitle:"Ch\u1ec9nh s\u1eeda h\u1ed9 chi\u1ebfu",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{listPaxUpdate:_}});T.containerInstance._rightButtonClick.subscribe(()=>{T.dismiss()}),T.afterDismissed().subscribe({next:u=>{u&&f(u)}})}}})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"C\u1ea7n b\u1ed5 sung \u0111\u1ea7y \u0111\u1ee7 th\xf4ng tin h\u1ed9 chi\u1ebfu c\u1ee7a h\xe0nh kh\xe1ch tr\u01b0\u1edbc khi xu\u1ea5t v\xe9",okText:"B\u1ed5 sung",cancelText:"\u0110\xf3ng"}).afterClosed$.subscribe({next:d=>{if(d.data){const _=[];this.bookingDetails[0].passengers.forEach((u,k)=>{_.push({index:u.index,key:u.key||"",name:u.lastName+" "+u.firstName,parentKey:"N/A"==u.parentKey||null==u.parentKey?"":u.parentKey,type:u.type,child:"N/A",selected:0==k,gender:u.gender,firstName:u.firstName,lastName:u.lastName,dayOfBirth:u.birthday?u.birthday:"",parentName:"",fullType:u.type,issuanceDate:u.issuanceDate,expiryDate:u.expiryDate,issuanceCountry:u.issuanceCountry,nationality:u.nationality,number:u.number})}),this._modal.open(D.vj,{listPaxUpdate:_}).afterClosed$.subscribe({next:u=>{u.data&&f(u.data)}})}}})}else{const f=()=>{this.isLoading=!0,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:h=>{if(this.isLoading=!0,"OK"===h.status&&h.data)this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail();else if("DS-EL005"===h.objectError.errorCode){const d=h.objectError.errorData.priceInfo.newPrice-h.objectError.errorData.priceInfo.oldPrice,_={newPrice:h.objectError.errorData.priceInfo.newPrice,oldPrice:h.objectError.errorData.priceInfo.oldPrice,priceGap:Math.abs(d),type:d>0?"+":"-"};this._modal.open(P.EH,{priceChangeData:_}).afterClosed$.subscribe({next:u=>{u.data&&(this.isLoading=!0,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:k=>{"OK"===k.status?(this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail()):"DS-EH001"===k.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=k.objectError.errorDescription.vi?k.objectError.errorDescription.vi:k.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:k=>{k instanceof Z.W?this.hanldeTimeoutIssue():(r.content=h.objectError.errorDescription.vi?h.objectError.errorDescription.vi:h.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))}}))}})}else if("BE-EF045"===h.objectError.errorCode){const d={newPrice:h.objectError.errorData.newPriceTicket,oldPrice:h.objectError.errorData.oldPriceTicket,get priceGap(){return Math.abs(this.newPrice-this.oldPrice)},type:h.objectError.errorData.discountChange};if(this._detectMobileService.isMobile()){const _=this._bottomSheetService.open(P.Gn,{headerTitle:"Th\xf4ng b\xe1o thay \u0111\u1ed5i chi\u1ebft kh\u1ea5u",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{discountChangeData:d}});_.containerInstance._rightButtonClick.subscribe(()=>{_.dismiss()}),_.afterDismissed().subscribe({next:T=>{T&&(this.isLoading=!0,l.checkDiscountFee=!1,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:u=>{"OK"===u.status?(this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail()):"DS-EH001"===u.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=u.objectError.errorDescription.vi?u.objectError.errorDescription.vi:u.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:u=>{u instanceof Z.W?this.hanldeTimeoutIssue():(r.content=h.objectError.errorDescription.vi?h.objectError.errorDescription.vi:h.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))}}))}})}else this._modal.open(P.Gn,{discountChangeData:d}).afterClosed$.subscribe({next:T=>{T.data&&(this.isLoading=!0,l.checkDiscountFee=!1,this._manageBookingService.issueTicket(l).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:u=>{"OK"===u.status?(this._toastService.add({severity:"success",summary:s_title,detail:s_content,sticky:!1}),this.getBookingDetail()):"DS-EH001"===u.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=u.objectError.errorDescription.vi?u.objectError.errorDescription.vi:u.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:u=>{u instanceof Z.W?this.hanldeTimeoutIssue():(r.content=h.objectError.errorDescription.vi?h.objectError.errorDescription.vi:h.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))}}))}})}else"DS-EH001"===h.objectError.errorCode?this.hanldeTimeoutIssue():(r.content=h.objectError.errorDescription.vi?h.objectError.errorDescription.vi:h.objectError.errorDescription.en,this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0}))},error:h=>{h instanceof Z.W?this.hanldeTimeoutIssue():this._toastService.add({severity:r.status,summary:r.title,detail:r.content,sticky:!0})}})};if(this._detectMobileService.isMobile()){const h=this._bottomSheetService.open(v._3,{headerTitle:"X\xe1c nh\u1eadn xu\u1ea5t v\xe9",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{issueDataConfirm:this.getIssueData(n)}});h.containerInstance._rightButtonClick.subscribe(()=>{h.dismiss()}),h.afterDismissed().subscribe(d=>{d&&f()})}else this._modal.open(v._3,{issueDataConfirm:this.getIssueData(n)}).afterClosed$.subscribe({next:d=>{d.data&&f()}})}}onShare(){const t="origin"===this.modeBookingText?this.getOriginText():this.bookingTextExplain;this.clipboard.copy(t),this.isCopied=!0,setTimeout(()=>{this.isCopied=!1},2e3)}getOriginText(){if(this.listBookingText){let t="";return this.listBookingText.forEach(n=>{var i,o,s,r,l,p,f,h,d,_,T;"VN"===n.airline?(t+=`${n.bookingCodeText}\r\n`,t+=(null!==(i=n.passengerTexts)&&void 0!==i?i:[]).join("\r\n")+"\r\n",t+=(null!==(o=n.segmentTexts)&&void 0!==o?o:[]).join("\r\n ")+"\r\n",t+="TKT/TIME LIMIT\r\n ",t+=(null!==(s=n.ticketTexts)&&void 0!==s?s:[]).join("\r\n ")+"\r\n",t+="VCR COUPON DATA EXISTS *VI TO DISPLAY\r\n",t+="PHONES\r\n ",t+=(null!==(r=n.contactTexts)&&void 0!==r?r:[]).join("\r\n ")+"\r\n",t+="PASSENGER EMAIL DATA EXISTS *PE TO DISPLAY ALL\r\n",t+="PRICE QUOTE RECORD EXISTS - *PQS\r\n",t+="FREQUENT TRAVELER\r\n",t+=(null!==(l=n.frequentTexts)&&void 0!==l?l:[]).join("\r\n ")+"\r\n",t+="TICKETED RETAINED REISSUE EXISTS - *PQS\r\n",t+="VN FACTS\r\n ",t+=(null!==(p=n.ssrTexts)&&void 0!==p?p:[]).join("\r\n ")+"\r\n",n.remarkTexts&&(t+="REMARKS\r\n ",t+=(null!==(f=n.remarkTexts)&&void 0!==f?f:[]).join("\r\n ")),t+=(null!==(h=n.agentTexts)&&void 0!==h?h:[]).join("\r\n")):(t+=`${n.bookingCodeText}\r\n`,t+=(null===(d=n.passengerTexts)||void 0===d?void 0:d.join(" "))+"\r\n",t+=(null===(_=n.segmentTexts)||void 0===_?void 0:_.join("\r\n"))+"\r\n",t+=`TOTAL PRICE: ${n.totalPrice} VND\r\n`,n.timeLimit&&(t+=`TIME LIMIT: ${n.timeLimit}\r\n`),t+=(null!==(T=n.contactTexts)&&void 0!==T?T:[]).join("\r\n"))}),t||""}return""}getExplaneText(){if(this.listBookingTextExplain){let t="";return this.listBookingTextExplain.forEach(n=>{var i;t+=(0,Le.K)(n),t+="NOTE:\r\n",t+=null===(i=n.warning)||void 0===i?void 0:i.join("\r\n")}),t||""}return""}changeModeBookingText(t){this.modeBookingText=t}onShowBoardingPass(t){if(this._mobileDetectService.isMobile()){const n=this._bottomSheetService.open(ke.G,{headerTitle:"M\u1eb7t v\xe9",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{bookingDetail:t,listBaggage:this.listBaggage,listService:this.listService,totalPrice:this.totalPrice,addonServiceCharge:(this.priceDetail.totalAddonService||0)+(this.priceDetail.totalOthersCharge||0),isMultiJourney:this.isMultiJourney}});n.containerInstance._leftButtonClick.subscribe(i=>n.dismiss())}else this._modal.open(ke.G,{bookingDetail:t,listBaggage:this.listBaggage,listService:this.listService,totalPrice:this.totalPrice,addonServiceCharge:(this.priceDetail.totalAddonService||0)+(this.priceDetail.totalOthersCharge||0),isMultiJourney:this.isMultiJourney})}getListTicketAction(t,n){switch(t){case"BOOKED":if("VJ"===n){const i=["issue","boarding_pass","addon_baggage","addon_seat","register_order","send_email","rerouting","add_journey","delete_each_journey"];return this._permissionService.hasPermission(x.or.CanSplitPassengerVJ)&&this._systemService.isFeatureEnabled(N.Ke.Web_Features_SplitPassenger_SplitPassengerVJ_Enable)&&i.push("separate_passengers"),this._permissionService.hasPermission(x.or.CanUpdatePaxInfoVJ)&&i.push("update_pax_info"),this._permissionService.hasPermission(x.or.CanViewAuditLogVJ)&&i.push("open_audit_log"),this.actionOption.filter(o=>0==this.bookingDetailResult.data.journeys.length?["add_journey"].includes(o.value):i.includes(o.value))}if("VN"===n){const i=["issue","boarding_pass","delete_segments","register_order","send_email"];return this._permissionService.hasPermission(x.or.CanSplitPassengerVN)&&i.push("separate_passengers"),this.actionOption.filter(o=>i.includes(o.value))}if("GDS"===n)return this.actionOption.filter(i=>["boarding_pass"].includes(i.value));if("QH"===n)return this.actionOption.filter(i=>["issue","boarding_pass","register_order","send_email"].includes(i.value));if("VU"===n)return this.actionOption.filter(i=>["issue","boarding_pass"].includes(i.value));{const i=["boarding_pass"];return"BSP"===(null==n?void 0:n.toUpperCase())&&(this._permissionService.hasPermission(x.or.CanIssuedFlightTicketBSP)&&i.push("issue"),this._permissionService.hasPermission(x.or.CancelBookingBSP)&&i.push("cancel_booking")),"AIR_1G"===(null==n?void 0:n.toUpperCase())&&(i.push("send_email"),this._permissionService.hasPermission(x.or.CanIssuedFlightTicket1G)&&i.push("issue")),this.actionOption.filter(o=>i.includes(o.value))}case"ISSUED":if("VN"===n){const i=["void","boarding_pass","addon_baggage","delete_segments","register_order","send_email","check_in_online"];return!this.isPreviewPnr&&this.isLockPnr&&i.push("snapshot_pnr"),this._permissionService.hasPermission(x.or.CanSplitPassengerVN)&&i.push("separate_passengers"),this.actionOption.filter(o=>i.includes(o.value))}if("GDS"===n)return this.actionOption.filter(i=>["boarding_pass"].includes(i.value));if("QH"===n){const i=["boarding_pass","addon_baggage","send_email","check_in_online"];return!this.isPreviewPnr&&this.isLockPnr&&i.push("snapshot_pnr"),N.kp.qh&&i.push("addon_seat"),this.actionOption.filter(o=>i.includes(o.value))}if("VJ"===n){const i=["boarding_pass","addon_baggage","addon_seat","send_email","rerouting","add_journey","delete_each_journey","check_in_online"];return!this.isPreviewPnr&&this.isLockPnr&&i.push("snapshot_pnr"),this._permissionService.hasPermission(x.or.CanSplitPassengerVJ)&&this._systemService.isFeatureEnabled(N.Ke.Web_Features_SplitPassenger_SplitPassengerVJ_Enable)&&i.push("separate_passengers"),i.push("update_pax_info"),i.push("open_audit_log"),this.actionOption.filter(o=>0==this.bookingDetailResult.data.journeys.length?["add_journey","separate_passengers"].includes(o.value):i.includes(o.value))}{const i=["boarding_pass","check_in_online"];return!this.isPreviewPnr&&this.isLockPnr&&i.push("snapshot_pnr"),"BSP"===(null==n?void 0:n.toUpperCase())&&this._permissionService.hasPermission(x.or.CancelBookingBSP)&&i.push("cancel_booking"),"AIR_1G"===(null==n?void 0:n.toUpperCase())&&i.push("send_email"),this.actionOption.filter(o=>i.includes(o.value))}case"VOID":return this.actionOption.filter("VJ"===n?i=>["boarding_pass","addon_baggage","addon_seat"].includes(i.value):"GDS"===n?i=>["boarding_pass"].includes(i.value):i=>["issue","boarding_pass","delete_segments"].includes(i.value));default:return[]}}getListTicketInfo(){var t;const n=this.bookingDetails[0];this.listTicketInfo=(null===(t=this.bookingDetailResult.data.ticketInfos)||void 0===t?void 0:t.map(i=>({ticketNumber:i.ticketNumber,journeyName:`${i.journeyDeparture} - ${i.journeyArrival}`,bookingCode:n.bookingCode,passengerName:i.passengerName,airline:i.airline,airlineName:i.airline,status:i.status,ticketType:i.ticketType,isDetail:"QH"!==i.airline&&"FARE"===i.ticketType||!1})))||[]}getFareBasis(){this.fareBasisInfos=[],this.bookingDetails.forEach(t=>{t.journeys.forEach(n=>{n.segments.forEach(i=>{this.fareBasisInfos.push({airline:i.airline||"",airlineLogo:i.airlineLogo||"",startCode:i.startPoint||"",startPoint:i.startPointName||"",endCode:i.endPoint||"",endPoint:i.endPointName||"",fareClass:i.fareClass||"",fareBasis:i.fareBasic||""})})})})}onShowTicketInfo(t){N.PY&&"VN"===this.bookingDetailResult.data.airline.toUpperCase()?this._modal.open(v.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"}):(this.isLoading=!0,this._manageBookingService.getTicketDetail(t).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:n=>{var i,o;if(n.success&&n.data){const s=this.proccessTicketDetail(n.data);this._modal.open(P.co,{ticketDetail:s,isAction:!1,airline:this.airline})}else{const s=(null===(i=n.objectError)||void 0===i?void 0:i.errorDescription.vi)||(null===(o=n.objectError)||void 0===o?void 0:o.errorDescription.en);this._toastService.add({severity:"error",summary:"Xem s\u1ed1 v\xe9 th\u1ea5t b\u1ea1i",detail:s,sticky:!0})}}}))}proccessTicketDetail(t){return{ticketNumber:t.ticketInfo.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(n=>({number:n.number,airline:n.marketingAirline,flightNumber:n.flightNumber,classCode:n.bookingClassCode,date:n.departureDate,brdoff:n.originLocation+n.destinationLocation,time:n.departureTime,status:n.segmentStatus,fareBasis:n.fareBasis,statusCode:n.ticketStatus,baggageAllowance:n.baggageAllowance})),pricingInfo:{baseFare:t.pricingInfo.baseFare.currencyCode.concat(" ",t.pricingInfo.baseFare.amount),taxes:t.pricingInfo.taxes.map(n=>n.amount.concat(n.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("")}}}onDeleteSegment(t){const n=t.journeys.flatMap(o=>o.segments).map((o,s)=>({order:s+1,segmentKey:o.key,journey:`${o.startPointName} (${o.startPoint}) - ${o.endPointName} (${o.endPoint})`,startTime:I(o.startTime).format("HH:mm DD/MM/YYYY"),flightNumber:`${o.airline}${o.flightNumber}`,status:"CREATE"})),i={airline:t.airline,bookingCode:t.bookingCode,provider:t.provider};if(this._mobileDetectService.isMobile()){const o=this._bottomSheetService.open(D.df,{headerTitle:"H\u1ee7y h\xe0nh tr\xecnh",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{listSegmentData:n,bookingInfo:i}});o.containerInstance._leftButtonClick.subscribe(s=>o.dismiss()),o.afterDismissed().subscribe(s=>{s&&this.getBookingDetail(!0)})}else this._modal.open(D.df,{listSegmentData:n,bookingInfo:i}).afterClosed$.subscribe({next:s=>{s.data&&this.getBookingDetail(!0)}})}togglePriceBottomSheet(t){const n=this._bottomSheetService.open(t,{headerTitle:"Gi\xe1 v\xe9",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4"});this.zIndexPriceIncrease=!0,n.afterDismissed().subscribe(i=>{this.zIndexPriceIncrease=!1}),n.containerInstance._rightButtonClick.subscribe(i=>{n.dismiss()})}mobileDetailClick(t){const n=this._bottomSheetService.open(D.iU,{headerTitle:"Chi ti\u1ebft \u0111\u1eb7t ch\u1ed7",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{flightInfos:[this.getFlightInfoDetail(t)],hasDiscountFare:this.hasDiscountFare,hasInternationalFlight:this.hasInternationalFlight}});n.containerInstance._leftButtonClick.subscribe(i=>{n.dismiss()})}mobileTabChange(t,n){this.mobileTabMode=t,n.scrollIntoView({behavior:"smooth",inline:"center"}),"FARE_RULE"===this.mobileTabMode&&this.getFareRule()}getFlightInfoDetail(t){var n,i,o,s,r,l;return{supplier:t.supplier,provider:t.provider,segments:t.journeys.flatMap((f,h)=>f.segments.map((d,_)=>({airline:d.airline,airlineSystem:d.airline,airlineName:d.airlineName,airlineLogo:d.airlineLogo,mobileAirlineLogo:["VJ","VN","QH"].includes(d.airline)?"assets/airline-logo/"+d.airline+"_small.png":"assets/airline-logo/"+d.airline+".png",flightNumber:d.airline+d.flightNumber,startTime:I(d.startTime).format("HH:mm"),startDate:I(d.startTime).format("DD/MM/YYYY"),startPoint:d.startPoint,startPointName:d.startPointName,startAirport:this._locationDataService.getAirportNameByCode(d.startPoint),endTime:I(d.endTime).format("HH:mm"),endDate:I(d.endTime).format("DD/MM/YYYY"),endPoint:d.endPoint,endPointName:d.endPointName,endAirport:this._locationDataService.getAirportNameByCode(d.endPoint),stopPoint:d.stopPoint,modelAirplane:d.modelAirplane,badge:0===h?"Chi\u1ec1u \u0111i":"Chi\u1ec1u v\u1ec1",rules:[{name:"Th\u1eddi gian bay",value:d.duration},{name:"Lo\u1ea1i m\xe1y bay",value:d.modelAirplane},{name:"H\u1ea1ng ch\u1ed7",value:"QH"===d.airline?d.fareType:d.fareClass},{name:"H\xe0nh l\xfd k\xfd g\u1eedi",value:d.checkedBaggage||"N/A"},{name:"H\xe0nh l\xfd x\xe1ch tay",value:d.handBaggage||"N/A"}]}))),status:t.status,statusDesc:t.statusDesc,timeHoldBooking:t.timeHoldBooking,timeHoldPricing:t.timeHoldPricing,airlineSystem:t.airlineSystem,airlineName:t.airlineName,totalFare:t.totalFare,totalDiscountBasePrice:t.totalDiscountFare,passengers:t.passengers.map(f=>({name:f.name,type:f.type,farePrice:f.farePrice,discountAmount:f.discountAmount,totalDiscountFarePrice:f.totalDiscountFarePrice,tax:f.tax,vat:f.vat,total:f.total})),journeyStatus:{active:null!==(i=null===(n=t.journeys[0].journeyStatus)||void 0===n?void 0:n.active)&&void 0!==i&&i,cancelled:null!==(s=null===(o=t.journeys[0].journeyStatus)||void 0===o?void 0:o.cancelled)&&void 0!==s&&s,disrupted:null!==(l=null===(r=t.journeys[0].journeyStatus)||void 0===r?void 0:r.disrupted)&&void 0!==l&&l}}}onCopyBookingCode(t){this.clipboard.copy(t)}onChangeSuggest(t){switch(this._eventLogService.captureOpenFormDownFare({hasPNR:1,source:2}),t){case"register_order":this.isOpenSuggest=!1,this.onRegisterOrder(this.bookingDetails[0]);break;case"close":this.isOpenSuggest=!1}}onRegisterOrder(t){const n={airline:t.airline,pnr:t.bookingCode};this.isLoading=!0,this._ticketLowFareService.canMonitorLowFare(n).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:i=>{var o,s,r,l;if("OK"===i.status&&null!==(o=i.data.canMonitor)&&void 0!==o&&o.enable)if(this._mobileDetectService.isMobile()){const p=this._bottomSheetService.open(Q.g,{headerTitle:"T\u1ea1o y\xeau c\u1ea7u canh v\xe9 r\u1ebb",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",containerFullHeigh:!0,data:{bookingDetail:t,sourceEvent:"BOOKING_DETAIL"}});p.containerInstance._rightButtonClick.subscribe(f=>p.dismiss())}else{const p=this._modal.open(Q.g,{bookingDetail:t,sourceEvent:"BOOKING_DETAIL"});p.afterClosed$.subscribe({next:f=>{f.data||p.close(!1)}})}else if("OK"!==i.status||null!==(s=i.data.canMonitor)&&void 0!==s&&s.enable){const p=null===(l=null===(r=i.objectError)||void 0===r?void 0:r.errorDescription)||void 0===l?void 0:l.vi;if(this._mobileDetectService.isMobile()){const f=this._bottomSheetService.open(v.Q4,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"M\xe3 \u0111\u1eb7t ch\u1ed7 kh\xf4ng h\u1ee3p l\u1ec7",body:p,okText:"Canh v\xe9 kh\xe1c",cancelText:"\u0110\xf3ng",hasIcon:!0,status:"error"}});f.containerInstance._rightButtonClick.subscribe(()=>{f.dismiss()}),f.afterDismissed().subscribe(h=>{h&&this.onRegisterNewPnrOrder()})}else this._modal.open(G.V,{title:"M\xe3 \u0111\u1eb7t ch\u1ed7 kh\xf4ng h\u1ee3p l\u1ec7",content:p,status:"error",cancelText:"\u0110\xf3ng",okText:"Canh v\xe9 kh\xe1c",secondaryAction:!0}).afterClosed$.subscribe({next:h=>{h.data&&this.onRegisterNewPnrOrder()}})}else{let p="Xem danh s\xe1ch";p="TPS-TLF006"===i.data.canMonitor.reason.errorCode?"Qu\u1ea3n l\xfd canh v\xe9":"Canh v\xe9 kh\xe1c";const f=i.data.canMonitor.reason.desc;if(this._mobileDetectService.isMobile()){const h=this._bottomSheetService.open(v.Q4,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"M\xe3 \u0111\u1eb7t ch\u1ed7 kh\xf4ng h\u1ee3p l\u1ec7",body:f,okText:p,cancelText:"\u0110\xf3ng",hasIcon:!0,status:"error"}});h.containerInstance._rightButtonClick.subscribe(()=>{h.dismiss()}),h.afterDismissed().subscribe(d=>{d?"TPS-TLF006"===i.data.canMonitor.reason.errorCode?this._route.navigate(["admin/manage-pnr-orders"]):this.onRegisterNewPnrOrder():h.dismiss()})}else this._modal.open(G.V,{title:"M\xe3 \u0111\u1eb7t ch\u1ed7 kh\xf4ng h\u1ee3p l\u1ec7",content:f,status:"error",cancelText:"\u0110\xf3ng",okText:p,secondaryAction:!0}).afterClosed$.subscribe({next:d=>{d.data&&("TPS-TLF006"===i.data.canMonitor.reason.errorCode?this._route.navigate(["admin/manage-pnr-orders"]):this.onRegisterNewPnrOrder())}})}},error:()=>{const i="Canh v\xe9 kh\xe1c";if(this._mobileDetectService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"M\xe3 \u0111\u1eb7t ch\u1ed7 kh\xf4ng h\u1ee3p l\u1ec7",body:`M\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${t.bookingCode}</strong> kh\xf4ng h\u1ee3p l\u1ec7 \u0111\u1ec3 t\u1ea1o y\xeau c\u1ea7u canh v\xe9. Vui l\xf2ng canh v\xe9 v\u1edbi m\xe3 \u0111\u1eb7t ch\u1ed7 kh\xe1c.`,okText:i,cancelText:"\u0110\xf3ng",hasIcon:!0,status:"error"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe(s=>{s&&this.onRegisterNewPnrOrder()})}else this._modal.open(G.V,{title:"M\xe3 \u0111\u1eb7t ch\u1ed7 kh\xf4ng h\u1ee3p l\u1ec7",content:`M\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${t.bookingCode}</strong> kh\xf4ng h\u1ee3p l\u1ec7 \u0111\u1ec3 t\u1ea1o y\xeau c\u1ea7u canh v\xe9. Vui l\xf2ng canh v\xe9 v\u1edbi m\xe3 \u0111\u1eb7t ch\u1ed7 kh\xe1c.`,status:"error",cancelText:"\u0110\xf3ng",okText:i,secondaryAction:!0}).afterClosed$.subscribe({next:s=>{s.data&&this.onRegisterNewPnrOrder()}})}})}onRegisterNewPnrOrder(){if(this._eventLogService.captureOpenFormDownFare({hasPNR:0,source:1}),this._mobileDetectService.isMobile()){const t=this._bottomSheetService.open(Q.g,{headerTitle:"T\u1ea1o y\xeau c\u1ea7u canh v\xe9 r\u1ebb",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",leftButtonIcon:"",containerFullHeigh:!0,data:{isSuggest:!0,sourceEvent:"SUGGEST"}});t.containerInstance._rightButtonClick.subscribe(n=>t.dismiss())}else this._modal.open(Q.g,{isSuggest:!0,sourceEvent:"SUGGEST"})}gotoBookingDetail(t,n){this._route.navigate([`admin/booking-detail/${t}/${n}`])}gotoDownFareDetail(t){this._route.navigate([`admin/pnr-order-detail/${t}`])}onOrderDetail(t){this._route.navigate([`admin/pnr-order-detail/${t}`])}onSendEmail(t){if(this._mobileDetectService.isMobile()){const n=this._bottomSheetService.open(De.B,{headerTitle:"Th\xf4ng tin m\u1eb7t v\xe9",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",rightButtonIcon:"",containerFullHeigh:!1,data:{emailInfo:{bookingCode:t.bookingCode,provider:t.provider,email:this.bookingContact.email}}});n.containerInstance._leftButtonClick.subscribe(i=>n.dismiss())}else this._modal.open(De.B,{emailInfo:{bookingCode:t.bookingCode,provider:t.provider,email:this.bookingContact.email}})}hanldeTimeoutIssue(){this._mobileDetectService.isMobile()?(this.refTimoutBts=this._bottomSheetService.open(v.NK,{headerTitle:"",leftButtonIcon:"",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!1,data:{title:"\u0110ang x\u1eed l\xfd xu\u1ea5t v\xe9",body:"Qu\xfd \u0111\u1ea1i l\xfd vui l\xf2ng \u0111\u1ee3i trong gi\xe2y l\xe1t ho\u1eb7c ch\u1ee7 \u0111\u1ed9ng theo d\xf5i tr\u1ea1ng th\xe1i v\xe9 \u1edf m\u1ee5c Qu\u1ea3n l\xfd \u0111\u1eb7t ch\u1ed7",cancelText:"\u0110\xf3ng",okText:"M\u1edf qu\u1ea3n l\xfd \u0111\u1eb7t ch\u1ed7"}}),this.refTimoutBts.containerInstance._leftButtonClick.subscribe(t=>this.refTimoutBts.dismiss()),this.refTimoutBts.afterDismissed().subscribe({next:t=>{t&&this._route.navigate(["admin/manage-booking"])}})):(this.refTimoutModal=this._modal.open(v.NK,{title:"\u0110ang x\u1eed l\xfd xu\u1ea5t v\xe9",body:"Qu\xfd \u0111\u1ea1i l\xfd vui l\xf2ng \u0111\u1ee3i trong gi\xe2y l\xe1t ho\u1eb7c ch\u1ee7 \u0111\u1ed9ng theo d\xf5i tr\u1ea1ng th\xe1i v\xe9 \u1edf m\u1ee5c Qu\u1ea3n l\xfd \u0111\u1eb7t ch\u1ed7",cancelText:"\u0110\xf3ng",okText:"M\u1edf qu\u1ea3n l\xfd \u0111\u1eb7t ch\u1ed7"}),this.refTimoutModal.afterClosed$.subscribe({next:t=>{t.data&&this._route.navigate(["admin/manage-booking"])}}))}onRerouting(t){if(this.creditShellTotal)if(this._detectMobileService.isMobile()){const n=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 \u0110\u1ed5i h\xe0nh tr\xecnh",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"\u0110\u1ed1i v\u1edbi v\xe9 c\xf3 ho\xe0n b\u1ea3o l\u01b0u \u0111\u1ecbnh danh, vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 th\u1ef1c hi\u1ec7n \u0111\u1ed5i h\xe0nh tr\xecnh theo ch\xednh s\xe1ch c\u1ee7a h\xe3ng.",okText:"\u0110\xf3ng",cancelText:"",hasIcon:!0,status:"info"}});n.containerInstance._rightButtonClick.subscribe(()=>{n.dismiss()})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 \u0110\u1ed5i h\xe0nh tr\xecnh",body:"\u0110\u1ed1i v\u1edbi v\xe9 c\xf3 ho\xe0n b\u1ea3o l\u01b0u \u0111\u1ecbnh danh, vui l\xf2ng li\xean h\u1ec7 Booker \u0111\u1ec3 th\u1ef1c hi\u1ec7n \u0111\u1ed5i h\xe0nh tr\xecnh theo ch\xednh s\xe1ch c\u1ee7a h\xe3ng.",okText:"\u0110\xf3ng",hasCancel:!1});else this.isLoading=!0,this._ticketLowFareService.checkProcessingDownFare(t.bookingCode).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:n=>{var i;if("OK"===n.status)if(n.data.checkProcessingDownFare)if(this._mobileDetectService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"Kh\xf4ng th\u1ec3 \u0110\u1ed5i h\xe0nh tr\xecnh khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng",hasIcon:!0,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe({next:s=>{s&&this._route.navigate([`admin/pnr-order-detail/${n.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"Kh\xf4ng th\u1ec3 \u0110\u1ed5i h\xe0nh tr\xecnh khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng"}).afterClosed$.subscribe({next:s=>{s.data&&this._route.navigate([`admin/pnr-order-detail/${n.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}});else{const o=r=>{switch(r){case"ADULT":case"CHD":default:return"ADT";case"INFANT":return"INF"}},s={airline:t.airline,airlineName:t.airlineName,status:t.status,bookingCode:t.bookingCode,journeys:(null===(i=t.journeys)||void 0===i?void 0:i.map((r,l)=>{var p;return{journeyKey:r.key||"",airline:r.airline||"N/A",airlineName:r.airlineName||"N/A",airlineLogo:r.airlineLogo||"",startPointCode:r.startPoint||"N/A",startPointName:r.startPointName||"N/A",endPointCode:r.endPoint||"N/A",endPointName:r.endPointName||"N/A",startTime:null!==(p=r.startTime)&&void 0!==p?p:new Date,redirectType:r.segments.length>1?"N\u1ed1i chuy\u1ebfn":"Bay th\u1eb3ng",statusText:t.statusText,selected:0===l}}))||[],passengers:this.passengers.map(r=>({name:r.name,type:r.type,typeDisplay:o(r.type),baseFare:0,taxFee:0,totalPrice:0}))};this._requestReroutingService.setBookingDetailReroutingData(s),this._route.navigate(["admin/rerouting"])}}})}onAddonJourney(t){this.isLoading=!0,this._ticketLowFareService.checkProcessingDownFare(t.bookingCode).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:n=>{var i;if("OK"===n.status)if(n.data.checkProcessingDownFare)if(this._mobileDetectService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"Kh\xf4ng th\u1ec3 Th\xeam h\xe0nh tr\xecnh khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng",hasIcon:!0,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe({next:s=>{s&&this._route.navigate([`admin/pnr-order-detail/${n.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"Kh\xf4ng th\u1ec3 Th\xeam h\xe0nh tr\xecnh khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng"}).afterClosed$.subscribe({next:s=>{s.data&&this._route.navigate([`admin/pnr-order-detail/${n.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}});else{const o=r=>{switch(r){case"ADULT":default:return"ADT";case"CHILD":return"CHD";case"INFANT":return"INF"}},s={airline:t.airline,airlineName:t.airlineName,status:t.status,bookingCode:t.bookingCode,journeys:(null===(i=t.journeys)||void 0===i?void 0:i.map((r,l)=>{var p;return{journeyKey:r.key||"",airline:r.airline||"N/A",airlineName:r.airlineName||"N/A",airlineLogo:r.airlineLogo||"",startPointCode:r.startPoint||"N/A",startPointName:r.startPointName||"N/A",endPointCode:r.endPoint||"N/A",endPointName:r.endPointName||"N/A",startTime:null!==(p=r.startTime)&&void 0!==p?p:new Date,redirectType:r.segments.length>1?"N\u1ed1i chuy\u1ebfn":"Bay th\u1eb3ng",statusText:t.statusText,selected:0===l}}))||[],passengers:this.passengers.map(r=>({name:r.name,type:r.type,typeDisplay:o(r.type),baseFare:0,taxFee:0,totalPrice:0}))};this._requestReroutingService.setBookingDetailReroutingData(s),this._route.navigate(["admin/add-journey"])}}})}onDeleteEachJourney(t){this.isLoading=!0,this._manageBookingService.validateBeforeModifyJourney(t.bookingCode,"CANCEL_JOURNEY").subscribe({next:n=>{this.isLoading=!1,n.status&&(1==n.data.canModify?(this.journeyForDeletes=t.journeys.map((i,o)=>({index:o,pnr:t.bookingCode,journeyKey:i.key,airlineLogoUrl:`assets/airline-logo/${i.airline}_short_logo.png`,airlineCode:i.airline,airlineName:i.airlineName,startPointCode:i.startPoint,endPointCode:i.endPoint,startPointName:i.startPointName,endPointName:i.endPointName,startDate:i.startTime,journeyType:i.segments.length>1?i.segments.length-1+" ch\u1eb7ng d\u1eebng":"Bay th\u1eb3ng",status:t.status,isSelected:0==o})),this.openSelectJourneyForCancel()):"DOWN_FARE"==n.data.type&&this._modal.open(v.V0,{title:"V\xe9 \u0111ang \u0111\u01b0\u1ee3c canh",body:"Kh\xf4ng th\u1ec3 h\u1ee7y h\xe0nh tr\xecnh khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng",hasIcon:!0}).afterClosed$.subscribe({next:o=>{o.data&&this.gotoDownFareDetail(n.data.orderId)}}))},error:n=>{this.isLoading=!1,console.log(n)}})}openSelectJourneyForCancel(){if(this._detectMobileService.isMobile()){const t=this._bottomSheetService.open(D.Xg,{headerTitle:"Ch\u1ecdn h\xe0nh tr\xecnh c\u1ea7n h\u1ee7y",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{journeys:this.journeyForDeletes}});t.containerInstance._leftButtonClick.subscribe(n=>t.dismiss()),t.afterDismissed().subscribe(n=>{n&&this.onDeleteJourneyConfirm(n.journey,n.quotation)})}else this._modal.open(D.Xg,{journeys:this.journeyForDeletes}).afterClosed$.subscribe({next:n=>{n.data&&this.onDeleteJourneyConfirm(n.data.journey,n.data.quotation)}})}onDeleteJourneyConfirm(t,n){let i={airline:t.airlineCode,journeyKey:t.journeyKey,pnr:t.pnr,startPointCode:t.startPointCode,endPointCode:t.endPointCode,startDate:t.startDate,journeyType:t.journeyType,status:t.status,currentJourneyPrice:n.data.cancelJourney.charge.total,paid:"BOOKED"==t.status?0:"ISSUED"==t.status?n.data.cancelJourney.charge.total:0,cancelFee:n.data.cancelCharge.total,totalFee:"BOOKED"==t.status?n.data.totalCharge.total:void 0,noGiveBack:"ISSUED"==t.status?n.data.nonRefund.total:void 0,reservePrice:"ISSUED"==t.status?n.data.refund.total:void 0,totalCharge:n.data.totalCharge.total};if(this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(D.mO,{headerTitle:"X\xe1c nh\u1eadn chi ph\xed",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{journeyConfirm:i}});o.containerInstance._leftButtonClick.subscribe(s=>o.dismiss()),o.afterDismissed().subscribe(s=>{s&&s&&("OK"==s.type&&(this._toastService.add({severity:"success",summary:"H\u1ee7y h\xe0nh tr\xecnh th\xe0nh c\xf4ng",detail:"H\xe0nh tr\xecnh \u0111\xe3 \u0111\u01b0\u1ee3c h\u1ee7y th\xe0nh c\xf4ng!",sticky:!1}),this.getBookingDetail()),"FAILED"==s.type&&"BE-EA019"==s.data&&this._modal.open(v.V0,{title:"Qu\xe1 th\u1eddi h\u1ea1n h\u1ee7y h\xe0nh tr\xecnh",body:"B\u1ea1n ch\u1ec9 c\xf3 th\u1ec3 th\u1ef1c hi\u1ec7n H\u1ee7y h\xe0nh tr\xecnh tr\u01b0\u1edbc gi\u1edd bay 24 ti\u1ebfng",okText:"\u0110\xf3ng",hasIcon:!0,hasCancel:!1}),"BACK"==s.type&&this.openSelectJourneyForCancel())})}else this._modal.open(D.mO,{journeyConfirm:i}).afterClosed$.subscribe({next:s=>{s.data&&"OK"==s.data.type&&(this._toastService.add({severity:"success",summary:"H\u1ee7y h\xe0nh tr\xecnh th\xe0nh c\xf4ng",detail:"H\xe0nh tr\xecnh \u0111\xe3 \u0111\u01b0\u1ee3c h\u1ee7y th\xe0nh c\xf4ng!",sticky:!1}),this.getBookingDetail()),"FAILED"==s.data.type&&"BE-EA019"==s.data.data&&this._modal.open(v.V0,{title:"Qu\xe1 th\u1eddi h\u1ea1n h\u1ee7y h\xe0nh tr\xecnh",body:"B\u1ea1n ch\u1ec9 c\xf3 th\u1ec3 th\u1ef1c hi\u1ec7n H\u1ee7y h\xe0nh tr\xecnh tr\u01b0\u1edbc gi\u1edd bay 24 ti\u1ebfng",okText:"\u0110\xf3ng",hasIcon:!0,hasCancel:!1}),"BACK"==s.data.type&&this.openSelectJourneyForCancel()}})}onShowIdentityReservation(){let t=this.bookingDetailResult.data.creditShell,n={pnr:t.bookingCode,expirationDate:void 0,passengers:t.paxShellBreakDown.map(i=>{let o="";switch(i.type){case"ADULT":o="ADT";break;case"CHILD":o="CHD";break;case"INFANT":o="INF"}return{name:i.lastName+" "+i.firstName,type:o,price:i.refund.charge.total}})};if(this._detectMobileService.isMobile()){this.zIndexPriceIncrease=!1;const i=this._bottomSheetService.open(D.$u,{headerTitle:"B\u1ea3o l\u01b0u \u0111\u1ecbnh danh h\xe0nh kh\xe1ch",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{info:n}});i.containerInstance._leftButtonClick.subscribe(o=>{this.zIndexPriceIncrease=!0,i.dismiss()}),i.afterDismissed().subscribe(o=>this.zIndexPriceIncrease=!0)}else this._modal.open(D.$u,{info:n})}onSeparatePassengers(t){const n=[];if(t.passengers.filter(i=>"INF"!==i.type).forEach(i=>{n.push({index:i.index,key:i.key||"",name:i.name,parentKey:i.parentKey||"",type:i.type,child:"N/A",selected:!1})}),t.passengers.filter(i=>"INF"===i.type).forEach(i=>{const o=n.find(s=>s.key===i.parentKey);o&&(o.child=i.name)}),n.length>=2)this.isLoading=!0,this._ticketLowFareService.checkProcessingDownFare(t.bookingCode).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:i=>{if("OK"===i.status)if(i.data.checkProcessingDownFare)if(this._mobileDetectService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"Kh\xf4ng th\u1ec3 T\xe1ch kh\xe1ch khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng",hasIcon:!0,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe({next:s=>{s&&this._route.navigate([`admin/pnr-order-detail/${i.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"Kh\xf4ng th\u1ec3 T\xe1ch kh\xe1ch khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng"}).afterClosed$.subscribe({next:s=>{s.data&&this._route.navigate([`admin/pnr-order-detail/${i.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}});else if(this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(D.zb,{headerTitle:"Ch\u1ecdn h\xe0nh kh\xe1ch c\u1ea7n t\xe1ch",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{listPassengers:n,bookingDetail:t}});o.containerInstance._leftButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe({next:s=>{s&&(s===this.bookingCode?this.getBookingDetail():(this.bookingCode=s,this._route.navigate([`admin/booking-detail/${this.airline}/${this.bookingCode}`])))}})}else this._modal.open(D.zb,{listPassengers:n,bookingDetail:t}).afterClosed$.subscribe({next:s=>{s.data&&(s.data===this.bookingCode?this.getBookingDetail():(this.bookingCode=s.data,this._route.navigate([`admin/booking-detail/${this.airline}/${this.bookingCode}`])))}})},error:()=>{if(this._detectMobileService.isMobile()){const i=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"Kh\xf4ng th\u1ec3 T\xe1ch kh\xe1ch. Vui l\xf2ng th\u1eed l\u1ea1i sau",okText:"\u0110\xf3ng",cancelText:"",hasIcon:!0,status:"info"}});i.containerInstance._rightButtonClick.subscribe(()=>{i.dismiss()})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"Kh\xf4ng th\u1ec3 T\xe1ch kh\xe1ch. Vui l\xf2ng th\u1eed l\u1ea1i sau",okText:"\u0110\xf3ng",hasCancel:!1})}});else if(this._mobileDetectService.isMobile()){const i=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"V\xe9 ph\u1ea3i c\xf3 t\u1ed1i thi\u1ec3u 2 kh\xe1ch \u0111\u1ec3 th\u1ef1c hi\u1ec7n thao t\xe1c t\xe1ch.",okText:"\u0110\xf3ng",cancelText:"",hasIcon:!0,status:"info"}});i.containerInstance._rightButtonClick.subscribe(()=>{i.dismiss()})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"V\xe9 ph\u1ea3i c\xf3 t\u1ed1i thi\u1ec3u 2 kh\xe1ch \u0111\u1ec3 th\u1ef1c hi\u1ec7n thao t\xe1c t\xe1ch.",okText:"\u0110\xf3ng",hasCancel:!1})}onCheckInOnline(t){switch(t.airline){case"QH":window.open("https://digital.bambooairways.com/ssci/identification");break;case"VN":window.open("https://booking.vietnamairlines.com/ssci/identification");break;case"VJ":window.open("https://www.vietjetair.com/vi/checkin");break;case"VU":window.open("https://booking.vietravelairlines.com/vi/checkin")}}onUpdatePaxInfo(t){const n=[];t.passengers.forEach((i,o)=>{n.push({index:i.index,key:i.key||"",name:i.lastName+" "+i.firstName,parentKey:"N/A"==i.parentKey||null==i.parentKey?"":i.parentKey,type:i.type,child:"N/A",selected:0==o,gender:i.gender,firstName:i.firstName,lastName:i.lastName,dayOfBirth:i.birthday?i.birthday:"",parentName:"",fullType:i.type})}),t.passengers.filter(i=>"INF"===i.type).forEach(i=>{const o=n.find(s=>s.key===i.parentKey);o&&(o.child=i.name)}),n.filter(i=>"INF"===i.type).forEach(i=>{const o=t.passengers.find(s=>s.key===i.parentKey);o&&(i.parentName=o.lastName+" "+o.firstName)}),this.isLoading=!0,this._manageBookingService.checkCurrentTimeBeforeDeparture(t.airline,t.bookingCode,3).subscribe({next:i=>{if("OK"===i.status&&i.data.isCurrentTimeBeforeDeparture)this._ticketLowFareService.checkProcessingDownFare(t.bookingCode).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:o=>{if("OK"===o.status)if(o.data.checkProcessingDownFare)if(this._detectMobileService.isMobile()){const s=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"Kh\xf4ng th\u1ec3 ch\u1ec9nh s\u1eeda h\xe0nh kh\xe1ch khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng",hasIcon:!0,status:"info"}});s.containerInstance._rightButtonClick.subscribe(()=>{s.dismiss()}),s.afterDismissed().subscribe({next:r=>{r&&this._route.navigate([`admin/pnr-order-detail/${o.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"Kh\xf4ng th\u1ec3 ch\u1ec9nh s\u1eeda h\xe0nh kh\xe1ch khi \u0111ang canh v\xe9 r\u1ebb. Vui l\xf2ng h\u1ee7y canh v\xe9 h\xe0nh tr\xecnh n\xe0y tr\u01b0\u1edbc khi ti\u1ebfp t\u1ee5c.",okText:"M\u1edf canh v\xe9",cancelText:"\u0110\xf3ng"}).afterClosed$.subscribe({next:r=>{r.data&&this._route.navigate([`admin/pnr-order-detail/${o.data.orderId}`],{state:{isUpdated:!1,isUpdatedFail:!1}})}});else if(this._detectMobileService.isMobile()){const s=this._bottomSheetService.open(D.Pt,{headerTitle:"Ch\u1ecdn h\xe0nh kh\xe1ch c\u1ea7n ch\u1ec9nh s\u1eeda",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{listPassengers:n,bookingDetail:t}});s.containerInstance._leftButtonClick.subscribe(()=>{s.dismiss()}),s.afterDismissed().subscribe({next:r=>{"OK"==r.type&&(this._toastService.add({severity:"success",summary:"S\u1eeda th\xf4ng tin kh\xe1ch th\xe0nh c\xf4ng",detail:"Th\xf4ng tin h\xe0nh kh\xe1ch \u0111\u01b0\u1ee3c s\u1eeda th\xe0nh c\xf4ng!",sticky:!1}),this.getBookingDetail()),"FAILED"==r.type&&this._modal.open(v.V0,{title:"S\u1eeda h\xe0nh kh\xe1ch th\u1ea5t b\u1ea1i",body:r.data.errorDescription.vi,okText:"\u0110\xf3ng",hasIcon:!0,hasCancel:!1})}})}else this._modal.open(D.Pt,{listPassengers:n,bookingDetail:t}).afterClosed$.subscribe({next:r=>{"OK"==r.data.type&&(this._toastService.add({severity:"success",summary:"S\u1eeda th\xf4ng tin kh\xe1ch th\xe0nh c\xf4ng",detail:"Th\xf4ng tin h\xe0nh kh\xe1ch \u0111\u01b0\u1ee3c s\u1eeda th\xe0nh c\xf4ng!",sticky:!1}),this.getBookingDetail()),"FAILED"==r.data.type&&this._modal.open(v.V0,{title:"S\u1eeda h\xe0nh kh\xe1ch th\u1ea5t b\u1ea1i",body:r.data.data.errorDescription.vi,okText:"\u0110\xf3ng",hasIcon:!0,hasCancel:!1})}})},error:()=>{if(this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"Kh\xf4ng th\u1ec3 ch\u1ec9nh s\u1eeda h\xe0nh kh\xe1ch. Vui l\xf2ng th\u1eed l\u1ea1i sau",okText:"\u0110\xf3ng",cancelText:"",hasIcon:!0,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()})}else this._modal.open(v.V0,{title:"Kh\xf4ng th\u1ec3 ti\u1ebfp t\u1ee5c",body:"Kh\xf4ng th\u1ec3 ch\u1ec9nh s\u1eeda h\xe0nh kh\xe1ch. Vui l\xf2ng th\u1eed l\u1ea1i sau",okText:"\u0110\xf3ng",hasCancel:!1})}});else if(this.isLoading=!1,this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:"Qu\xe1 th\u1eddi h\u1ea1n s\u1eeda h\xe0nh kh\xe1ch",rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"B\u1ea1n ch\u1ec9 c\xf3 th\u1ec3 th\u1ef1c hi\u1ec7n S\u1eeda h\xe0nh kh\xe1ch tr\u01b0\u1edbc gi\u1edd bay 3 ti\u1ebfng",okText:"\u0110\xf3ng",cancelText:"",hasIcon:!0,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()})}else this._modal.open(v.V0,{title:"Qu\xe1 th\u1eddi h\u1ea1n s\u1eeda h\xe0nh kh\xe1ch",body:"B\u1ea1n ch\u1ec9 c\xf3 th\u1ec3 th\u1ef1c hi\u1ec7n S\u1eeda h\xe0nh kh\xe1ch tr\u01b0\u1edbc gi\u1edd bay 3 ti\u1ebfng",okText:"\u0110\xf3ng",hasCancel:!1})},error:i=>{this.isLoading=!1}})}onOpenAuditLog(t){this.isLoading=!0,this._manageBookingService.getAuditLog(t.airline,t.bookingCode).subscribe({next:n=>{if(this.isLoading=!1,"OK"===n.status){let i=n.data.auditLogs.map(o=>({dateTime:o.dateAndTime,reservation:o.reservation,user:o.user,description:o.description,oldValue:o.oldValue,newValue:o.newValue}));if("VJ"==t.airline)if(this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(D.z_,{headerTitle:"Ki\u1ec3m to\xe1n \u0111\u1eb7t ch\u1ed7",rightButtonIcon:"",leftButtonIcon:"close",leftButtonIconClass:"text-neutral-gray-4",containerFullHeigh:!0,data:{auditLogs:i,pnr:t.bookingCode}});o.containerInstance._leftButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe({next:s=>{}})}else this._modal.open(D.z_,{auditLogs:i,pnr:t.bookingCode}).afterClosed$.subscribe({next:s=>{}})}},error:n=>{this.isLoading=!1}})}getFareRule(){const t={journeyInfo:[{provider:this.bookingDetails[0].provider,journeyKey:this.bookingDetails[0].journeys[0].key||"",bookingCode:this.bookingDetails[0].bookingCode||""}]};this.isLoading=!0,this._searchFlightService.getFareRule(t).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:n=>{"OK"===n.status?(this.fareRuleBsp=n.data,this._detectMobileService.isMobile()||this._modal.open(D.a7,{fareRuleBsp:this.fareRuleBsp,isBsp:!0})):this._toastService.add({severity:"error",summary:"C\xf3 l\u1ed7i x\u1ea3y ra",detail:"Kh\xf4ng th\u1ec3 xem th\xf4ng tin \u0111i\u1ec1u ki\u1ec7n gi\xe1 v\xe9",sticky:!0})},error:()=>{this._toastService.add({severity:"error",summary:"C\xf3 l\u1ed7i x\u1ea3y ra",detail:"Kh\xf4ng th\u1ec3 xem th\xf4ng tin \u0111i\u1ec1u ki\u1ec7n gi\xe1 v\xe9",sticky:!0})}})}onRefreshPnr(){this.getBookingDetail(!0)}onLockPnr(){const t="M\u1edf kh\xf3a PNR",n="X\xe1c nh\u1eadn kh\xf3a PNR",i=o=>{this.isLoading=!0;const s={actionType:o,airline:this.bookingDetails[0].airline,provider:this.bookingDetails[0].provider,bookingCode:this.bookingDetails[0].bookingCode};this._manageBookingService.lockPnr(s).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:r=>{var l;if("OK"===r.status){this.isLockPnr="LOCKED"===r.data.state;const p=Object.assign(Object.assign({},r),{data:(0,Be.yE)(ye.eG,r.data.bookingRetrieveData,{excludeExtraneousValues:!0})});this.handleBoookingDetailResult(p),this._toastService.add({severity:"success",summary:"Th\xe0nh c\xf4ng",detail:`M\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${s.bookingCode}</strong> \u0111\xe3 \u0111\u01b0\u1ee3c ${this.isLockPnr?"kh\xf3a":"m\u1edf kh\xf3a"} th\xe0nh c\xf4ng!`,sticky:!1})}else{const p=null!==(l=r.objectError.errorDescription.vi)&&void 0!==l?l:r.objectError.errorDescription.en;this._toastService.add({severity:"error",summary:"Th\u1ea5t b\u1ea1i",detail:p,sticky:!0})}},error:()=>{this._toastService.add({severity:"error",summary:"C\xf3 l\u1ed7i x\u1ea3y ra",detail:`Kh\xf4ng th\u1ec3 thao t\xe1c ${this.isLockPnr?"kh\xf3a":"m\u1edf kh\xf3a"} tr\xean m\xe3 \u0111\u1eb7t ch\u1ed7 <strong>${s.bookingCode}</strong> ngay l\xfac n\xe0y. Vui l\xf2ng th\u1eed l\u1ea1i sau!`,sticky:!0})}})};if(this.isLockPnr)if(this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:t,rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"",okText:"M\u1edf kh\xf3a",cancelText:"H\u1ee7y",hasIcon:!1,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe({next:s=>{s&&i("UNLOCKED")}})}else this._modal.open(v.V0,{title:"",body:t,okText:"M\u1edf kh\xf3a",cancelText:"H\u1ee7y",hasIcon:!1}).afterClosed$.subscribe({next:s=>{s.data&&i("UNLOCKED")}});else if(this._detectMobileService.isMobile()){const o=this._bottomSheetService.open(v.Q4,{headerTitle:n,rightButtonIcon:"close",rightButtonIconClass:"text-neutral-gray-4",data:{title:"",body:"",okText:"Kh\xf3a",cancelText:"H\u1ee7y",hasIcon:!1,status:"info"}});o.containerInstance._rightButtonClick.subscribe(()=>{o.dismiss()}),o.afterDismissed().subscribe({next:s=>{s&&i("LOCKED")}})}else this._modal.open(v.V0,{title:"",body:n,okText:"Kh\xf3a",cancelText:"H\u1ee7y",hasIcon:!1}).afterClosed$.subscribe({next:s=>{s.data&&i("LOCKED")}})}onPreviewPnr(){const i=`admin/booking-detail/${this.bookingDetails[0].airline}/${this.bookingDetails[0].bookingCode}?${new URLSearchParams({type:"preview",provider:this.bookingDetails[0].provider}).toString()}`;window.open(i,"_blank")}getSnapshotPnr(){const t={bookingCode:this.bookingCode,airline:this.airline,provider:this.provider};this.isLoading=!0,this._manageBookingService.getSnapshotPnr(t).pipe((0,E.x)(()=>this.isLoading=!1)).subscribe({next:n=>{var i;if("OK"===n.status){const o=Object.assign(Object.assign({},n),{data:(0,Be.yE)(ye.eG,n.data.bookingRetrieveData,{excludeExtraneousValues:!0})});this.handleBoookingDetailResult(o)}else{this.isSuccess=!1;const o=null!==(i=n.objectError.errorDescription.vi)&&void 0!==i?i:n.objectError.errorDescription.en;this.messageError=o,this._toastService.add({severity:"error",summary:"Xem chi ti\u1ebft th\u1ea5t b\u1ea1i",detail:o,sticky:!0})}},error:()=>{this.isSuccess=!1,this.messageError="\u0110\xe3 c\xf3 l\u1ed7i x\u1ea3y ra trong qu\xe1 tr\xednh th\u1ef1c hi\u1ec7n h\xe0nh \u0111\u1ed9ng n\xe0y"}})}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(Ee.gz),e.Y36(V.P3),e.Y36(B.KNP),e.Y36(qe.G),e.Y36(Ke.oE),e.Y36(we._),e.Y36(je.fB),e.Y36(Re.BX),e.Y36(Je.TU),e.Y36(x.$A),e.Y36(xe.a2),e.Y36(Ae.L),e.Y36(He.s),e.Y36(Ee.F0),e.Y36(Ye.x),e.Y36(Ve.$),e.Y36($e.h),e.Y36(Ae.L),e.Y36(Qe.o),e.Y36(Ge.t7),e.Y36(A.Ye))},a.\u0275cmp=e.Xpm({type:a,selectors:[["booking-detail-page"]],hostAttrs:[1,"md:h-full"],standalone:!0,features:[e.jDz],decls:4,vars:3,consts:[[1,"w-full","h-full"],["class","w-full h-full flex gap-x-4 justify-center p-4 md:p-0",3,"ngClass",4,"ngIf"],["class","w-full h-full p-[30px]",4,"ngIf"],["class","flex justify-center p-6",4,"ngIf"],[1,"w-full","h-full","flex","gap-x-4","justify-center","p-4","md:p-0",3,"ngClass"],[1,"w-[764px]","h-full","flex","flex-col","gap-2","md:hidden"],["class","mb-2",4,"ngIf"],[1,""],[1,"flex","justify-between","items-center","mb-4"],[1,"flex","gap-x-[20px]"],[1,"w-1","bg-primary-2-4"],[1,"text-heading-md","text-neutral-black"],["cf-button","","size","medium","type","secondary","class","justify-center gap-x-2 button-md bg-neutral-white",3,"click",4,"ngIf"],[1,"flex","flex-col","gap-y-2"],[3,"isShowMore","bookingDetail","isBooked","isMultiJourney","hasDiscountFare","actionChange",4,"ngFor","ngForOf"],["class","bg-white rounded shadow-cf-md p-6",4,"ngIf"],[4,"ngIf"],["class","py-1.5 px-3 bg-functional-1-1 flex gap-x-2 mt-2 rounded",4,"ngIf"],[1,"mt-12","w-[340px]","h-fit","flex","flex-col","gap-y-4","md:hidden"],[3,"listBookingText","modeBookingText","bookingContact","listBookingTextExplain","actionShare","modeChange"],[3,"listBookingCode"],[1,"md:flex","hidden","flex-col","w-full"],[1,"py-2","px-4","md:flex","hidden","whitespace-nowrap","overflow-x-scroll","bg-neutral-white","sticky","min-h-[52px]","top-0","z-[1]","shadow-cf-sm"],[1,"px-4","py-1.5","rounded-full","text-espressive-md","text-neutral-gray-4","border","border-transparent",3,"click"],["bookingDetailTab",""],["paxInfoTab",""],["class","px-4 py-1.5 rounded-full text-espressive-md text-neutral-gray-4 border border-transparent",3,"text-secondary-3-4","!border-secondary-3-4","bg-secondary-3-1","click",4,"ngIf"],["class","hidden md:block pt-4 px-4",3,"actionChange",4,"ngIf"],["class","p-4 gap-y-3 md:flex md:flex-col hidden w-full",4,"ngIf"],["class","bg-neutral-white pt-3 pr-4 pb-3 pl-4 flex-row gap-0 items-end justify-end w-full fixed bottom-0 hidden md:flex",3,"z-1000","click",4,"ngIf"],["class","md:hidden",3,"actionChange",4,"ngIf"],[1,"mb-2"],["class","flex items-center gap-x-4",4,"ngIf"],[3,"passengerInfos"],[1,"flex","items-center","gap-x-4"],["class","cursor-pointer flex items-center gap-x-3",3,"click",4,"ngIf"],["type","inverted",3,"color",4,"ngIf"],["type","inverted",3,"color"],[1,"cursor-pointer","flex","items-center","gap-x-3",3,"click"],[1,"text-body-md"],[1,"pointer-events-none",3,"checked","color"],["cf-button","","size","medium","type","secondary",1,"justify-center","gap-x-2","button-md","bg-neutral-white",3,"click"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7016 3.35256C10.5945 3.49315 10.5476 3.6705 10.5713 3.84564C10.5949 4.02078 10.6871 4.17937 10.8276 4.28656C11.5552 4.8409 12.104 5.5968 12.4056 6.46037C12.7073 7.32393 12.7485 8.25709 12.5243 9.14392C12.3001 10.0308 11.8203 10.8322 11.1445 11.4486C10.4686 12.065 9.62659 12.4693 8.72293 12.6112L9.1956 12.1379C9.31704 12.0122 9.38423 11.8438 9.38271 11.669C9.3812 11.4942 9.31108 11.327 9.18748 11.2033C9.06387 11.0797 8.89666 11.0096 8.72187 11.0081C8.54707 11.0066 8.37867 11.0738 8.25293 11.1952L6.58627 12.8619C6.46128 12.9869 6.39107 13.1565 6.39107 13.3332C6.39107 13.51 6.46128 13.6795 6.58627 13.8046L8.25293 15.4712C8.37867 15.5927 8.54707 15.6599 8.72187 15.6583C8.89666 15.6568 9.06387 15.5867 9.18748 15.4631C9.31108 15.3395 9.3812 15.1723 9.38271 14.9975C9.38423 14.8227 9.31704 14.6543 9.1956 14.5286L8.6336 13.9672C9.82831 13.8403 10.9574 13.3576 11.8747 12.5818C12.792 11.8059 13.4553 10.7725 13.7787 9.61542C14.1021 8.45833 14.0708 7.23081 13.6887 6.09175C13.3066 4.95269 12.5914 3.95456 11.6356 3.22656C11.495 3.11948 11.3177 3.0726 11.1425 3.09622C10.9674 3.11985 10.8088 3.21205 10.7016 3.35256ZM9.41493 2.19523L7.74827 0.52856C7.62857 0.407724 7.46722 0.337206 7.29723 0.331438C7.12725 0.325671 6.96149 0.385092 6.83388 0.497538C6.70627 0.609983 6.62646 0.76695 6.6108 0.93631C6.59513 1.10567 6.64478 1.27461 6.7496 1.40856L6.80493 1.47123L7.36693 2.03323C6.19219 2.15818 5.08046 2.62712 4.17111 3.38125C3.26175 4.13538 2.59523 5.14116 2.25508 6.2725C1.91494 7.40385 1.91631 8.61043 2.25902 9.741C2.60173 10.8716 3.27053 11.8758 4.1816 12.6279C4.31837 12.7361 4.49213 12.7865 4.66558 12.7681C4.83903 12.7497 4.99838 12.6641 5.10942 12.5296C5.22047 12.395 5.27437 12.2224 5.25957 12.0486C5.24478 11.8748 5.16245 11.7137 5.03027 11.5999C4.33704 11.0274 3.82387 10.267 3.55242 9.40993C3.28097 8.55286 3.26279 7.63563 3.50006 6.76848C3.73734 5.90133 4.21998 5.12114 4.88998 4.52168C5.55998 3.92221 6.38883 3.52898 7.27693 3.38923L6.80493 3.86189C6.68537 3.98187 6.61595 4.14285 6.61078 4.31215C6.60561 4.48145 6.66508 4.64637 6.7771 4.77341C6.88912 4.90046 7.0453 4.9801 7.21391 4.99616C7.38253 5.01222 7.55094 4.9635 7.68493 4.85989L7.7476 4.80456L9.41427 3.13789C9.52905 3.0231 9.598 2.87037 9.60819 2.70835C9.61838 2.54633 9.5691 2.38616 9.4696 2.25789L9.41493 2.19523Z","fill","#212121"],[3,"isShowMore","bookingDetail","isBooked","isMultiJourney","hasDiscountFare","actionChange"],[1,"bg-white","rounded","shadow-cf-md","p-6"],[1,"mb-4","flex","items-center","gap-x-3"],[1,"text-heading-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"],[4,"ngFor","ngForOf"],[1,"text-body-md","text-neutral-black","py-3"],[1,"w-[48px]","h-[24px]","object-contain",3,"src"],[1,"text-right","text-espressive-sm","text-neutral-gray-4","py-3"],[1,"text-right","text-body-md","text-neutral-black","py-3"],[1,"flex","gap-x-2","items-center"],[1,"w-[80px]","h-[40px]","object-contain","md:w-9","md:h-9",3,"src"],["class","text-left text-espressive-sm text-neutral-gray-4 py-3",4,"ngIf"],[1,"break-all","w-[200px]"],["class","text-body-md text-neutral-black py-3",4,"ngIf"],[1,"text-espressive-sm","text-secondary-3-4","cursor-pointer",3,"click"],[1,"flex","justify-between","items-center"],[1,"flex","gap-x-[20px]","my-4"],[1,"bg-white","rounded","shadow-cf-md"],[3,"priceDetail","hasDiscountFare"],[1,"p-6","flex","flex-col","items-end","gap-[10px]"],[1,"flex","items-center","gap-4"],[1,"text-espressive-md","text-neutral-black"],[1,"min-w-[140px]","text-end","text-heading-lg","text-secondary-3-4"],[4,"ngIf","ngIfElse"],["noDiscountTempl",""],["class","flex items-center gap-4",4,"ngIf"],[1,"flex","items-center","space-x-2","text-espressive-sm","font-semibold","text-secondary-3-4","cursor-pointer",3,"click"],["icon","chevron_right"],[1,"min-w-[140px]","text-end","text-body-md-short","text-neutral-gray-6"],[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"],[1,"px-6","pt-6","pb-6","bg-white","rounded","shadow-cf-md"],[1,"text-left","text-espressive-sm","text-neutral-gray-4","pb-3"],[1,"text-body-md","text-neutral-black","pt-4"],[1,"pt-4"],[1,"text-express-md","text-secondary-3-4","hover:underline","cursor-default","whitespace-nowrap",3,"click"],[1,"text-express-sm","rounded","py-1","px-2"],["totalPriceTab",""],["fareRuleTab",""],["ticketPriceTab",""],["ticketNumberTab",""],["remarkTab",""],["lowfareTab",""],["historyTab",""],[1,"hidden","md:block","pt-4","px-4",3,"actionChange"],[1,"p-4","gap-y-3","md:flex","md:flex-col","hidden","w-full"],["class","flex justify-end",4,"ngIf"],[3,"bookingDetail","isMultiJourney","onDetailClick","actionChange",4,"ngFor","ngForOf"],["class"," w-full",4,"ngIf"],[1,"flex","justify-end"],[3,"bookingDetail","isMultiJourney","onDetailClick","actionChange"],[1,"w-full"],[3,"title","active","contentClass","panelClass"],["titleTemplate",""],["class","flex flex-col mt-3 rounded-lg bg-neutral-white p-3 gap-y-2",4,"ngFor","ngForOf"],[1,"text-espressive-sm","text-neutral-black"],[1,"flex","flex-col","mt-3","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-[104px]"],[1,"text-espressive-md","text-neutral-gray-6"],[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","flex flex-col rounded-lg bg-neutral-white p-3 gap-y-2",4,"ngFor","ngForOf"],[1,"flex","flex-col","rounded-lg","bg-neutral-white","p-3","gap-y-2"],["class","flex items-center gap-x-5",4,"ngIf"],[1,"text-espressive-md","text-secondary-5-3"],[1,"bg-neutral-white","pt-3","pr-4","pb-3","pl-4","flex-row","gap-0","items-end","justify-end","w-full","fixed","bottom-0","hidden","md:flex",3,"click"],[1,"flex","flex-row","gap-1","items-center","justify-start","shrink-0","relative"],[1,"text-neutral-gray-4","text-left","relative","text-espressive-xs"],[1,"text-secondary-3-4","text-center","relative","text-heading-sm"],["icon","chevron_up","size","small"],["totalPriceBottomSheet",""],[1,"flex","flex-col","gap-4","items-start","justify-start","w-full","relative","p-4","pb-12"],[1,"flex","flex-row","gap-6","items-center","justify-start","self-stretch","shrink-0","relative"],[1,"flex","flex-row","gap-3","items-center","justify-start","flex-1","relative"],[1,"flex","flex-col","gap-1","items-start","justify-start","shrink-0","relative"],[1,"text-neutral-gray-4","text-left","relative","text-body-sm"],["class","text-neutral-gray-4 text-left relative text-body-sm flex items-center space-x-2",4,"ngIf"],[1,"flex","flex-col","gap-1","items-end","justify-center","shrink-0","relative"],[1,"text-neutral-gray-4","text-right","relative","text-body-sm"],["class","text-neutral-gray-4 text-right relative text-body-sm",4,"ngIf"],[1,"text-neutral-gray-4","text-left","relative","text-body-sm","flex","items-center","space-x-2"],["icon","circle_information",3,"click"],[3,"fareRuleBsp"],[1,"bg-neutral-white","rounded-lg","border-solid","p-4","flex","flex-col","gap-2","items-end","justify-start","shrink-0","w-full","relative","overflow-hidden"],[1,"flex","flex-row","gap-1.5","items-center","justify-start","shrink-0","relative",3,"click"],["size","small","icon","copy"],[1,"text-neutral-gray-6","text-center","relative","flex","items-center","justify-center","text-body-md"],[1,"text-body-sm","w-full",3,"bookingText"],["class","flex flex-col mt-3 rounded-lg bg-neutral-white p-3 gap-y-2",4,"ngIf"],[1,"md:hidden",3,"actionChange"],[1,"w-full","h-full","p-[30px]"],[1,"py-[120px]","shadow-cf-info-card","bg-neutral-white","rounded-lg","flex","flex-col","items-center","gap-y-8"],["src","assets/images/error.svg","alt",""],[1,"text-center","flex","flex-col","gap-y-2"],[1,"text-heading-lg"],[1,"text-body-md-short"],[1,"flex","gap-x-[30px]"],["cf-button","","size","medium",3,"click"],["cfHeadIcon","","icon","refresh","size","small",1,"mr-2"],[1,"flex","justify-center","p-6"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.YNc(1,xi,49,50,"div",1),e.YNc(2,Ti,14,1,"div",2),e.YNc(3,ki,2,0,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",!n.isLoading&&n.isSuccess),e.xp6(1),e.Q6J("ngIf",!n.isLoading&&!n.isSuccess),e.xp6(1),e.Q6J("ngIf",n.isLoading))},dependencies:[D.Js,D.AT,D.Cg,B.AxE,B.Sm8,A.ez,A.mk,A.sg,A.O5,A.JJ,Fe.AS,v.OR,Ze.j$,Y.N8,Y.Xq,v.bY,Oe.N,xe.DW,D.CY,Te.B,Te.K,v.gx,Me,D.a7,Ne.I,Pe.b],encapsulation:2}),a})()}}]);