PageSourceSearch

https://cdn.almatar.com/web/6767.9148f8464e07e6b1.js

js almatar.com collected 2026-10-02 14:41:02 UTC 64,935 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkalmatar_b2c=self.webpackChunkalmatar_b2c||[]).push([[6767],{6767:(Je,P,c)=>{c.r(P),c.d(P,{MyBookingComponent:()=>Xe});var f=c(60177),d=c(89417),_=c(41780),M=c(15788),T=c(21413),B=c(18359),S=c(1807),u=c(56977),A=c(3380),D=c(25528),E=c(61917),G=c(48031),N=c(28790),z=c(52154),e=c(54438);function L(n,o){1&n&&e.nrm(0,"span",1)}let K=(()=>{class n{constructor(){this.action=e.hFB.required(),this.active=(0,e.hFB)(!1),this.selected=(0,e.CGW)()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-mb-action-card"]],inputs:{action:[e.Mj6.SignalBased,"action"],active:[e.Mj6.SignalBased,"active"]},outputs:{selected:"selected"},standalone:!0,features:[e.aNF],decls:11,vars:12,consts:[["type","button",1,"mb-action-card",3,"click","title"],[1,"mb-action-card__dot"],[1,"mb-action-card__icon-tile"],[1,"mb-action-card__body"],[1,"mb-action-card__label"],[1,"mb-action-card__sub"]],template:function(i,a){1&i&&(e.j41(0,"button",0),e.bIt("click",function(){return a.selected.emit(a.action().key)}),e.DNE(1,L,1,0,"span",1),e.j41(2,"div",2),e.nrm(3,"i"),e.k0s(),e.j41(4,"div",3)(5,"span",4),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"span",5),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()),2&i&&(e.AVh("mb-action-card--active",a.active()),e.Y8G("title",a.action().subtitleKey),e.R7$(),e.vxM(1,a.active()?1:-1),e.R7$(2),e.HbH(a.action().icon),e.R7$(3),e.JRh(e.bMT(7,8,a.action().labelKey)),e.R7$(3),e.JRh(e.bMT(10,10,a.action().subtitleKey)))},dependencies:[_.h,_.D9],styles:[".mb-action-card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;background:#fff;border:1.5px solid #e5e7eb;border-radius:8px;cursor:pointer;text-align:start;transition:transform .15s,box-shadow .15s,border-color .15s,background .15s;font-family:inherit;width:100%;-webkit-tap-highlight-color:transparent;touch-action:manipulation}@media (max-width: 480px){.mb-action-card[_ngcontent-%COMP%]{padding:14px 12px;gap:10px;min-height:80px}}.mb-action-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a;border-color:#1e3a5f}.mb-action-card--active[_ngcontent-%COMP%]{border-color:#e91e63!important;background:#fce4ec!important}.mb-action-card--active[_ngcontent-%COMP%]   .mb-action-card__icon-tile[_ngcontent-%COMP%]{background:#e91e631f;color:#e91e63}.mb-action-card--active[_ngcontent-%COMP%]   .mb-action-card__label[_ngcontent-%COMP%]{color:#e91e63}.mb-action-card__dot[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:#e91e63}.mb-action-card__icon-tile[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:6px;background:#eef2ff;color:#1e3a5f;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,color .15s}.mb-action-card__icon-tile[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:16px}.mb-action-card__body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;width:100%}.mb-action-card__label[_ngcontent-%COMP%]{font-size:12.5px;font-weight:700;color:#1f2937;word-break:break-word;overflow-wrap:break-word;line-height:1.3}.mb-action-card__sub[_ngcontent-%COMP%]{font-size:11px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]})}}return n})();const V=(n,o)=>o.key;function Y(n,o){if(1&n){const t=e.RV6();e.j41(0,"app-mb-action-card",10),e.bIt("selected",function(a){e.eBV(t);const r=e.XpG();return e.Njj(r.actionSelected.emit(a))}),e.k0s()}if(2&n){const t=o.$implicit,i=e.XpG();e.Y8G("action",t)("active",i.isActive(t.key))}}let X=(()=>{class n{constructor(){this.actions=e.hFB.required(),this.activeKey=(0,e.hFB
1)(null),this.activeKeys=(0,e.hFB)([]),this.actionSelected=(0,e.CGW)()}isActive(t){return this.activeKey()===t||this.activeKeys().includes(t)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-mb-action-grid"]],inputs:{actions:[e.Mj6.SignalBased,"actions"],activeKey:[e.Mj6.SignalBased,"activeKey"],activeKeys:[e.Mj6.SignalBased,"activeKeys"]},outputs:{actionSelected:"actionSelected"},standalone:!0,features:[e.aNF],decls:17,vars:7,consts:[[1,"mb-action-grid"],[1,"mb-action-grid__header"],[1,"mb-action-grid__header-left"],[1,"mb-action-grid__header-icon"],[1,"pi","pi-th-large"],[1,"mb-action-grid__title"],[1,"mb-action-grid__subtitle"],[1,"mb-action-grid__count"],[1,"mb-action-grid__grid"],[3,"action","active"],[3,"selected","action","active"]],template:function(i,a){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"i",4),e.k0s(),e.j41(5,"div")(6,"h3",5),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"span",7),e.EFF(13),e.k0s()(),e.j41(14,"div",8),e.Z7z(15,Y,1,2,"app-mb-action-card",9,V),e.k0s()()),2&i&&(e.R7$(7),e.SpI(" ",e.bMT(8,3,"my-booking.quick-actions")," "),e.R7$(3),e.SpI(" ",e.bMT(11,5,"my-booking.quick-actions-subtitle")," "),e.R7$(3),e.JRh(a.actions().length),e.R7$(2),e.Dyx(a.actions()))},dependencies:[K,_.h,_.D9],styles:[".mb-action-grid[_ngcontent-%COMP%]{background:#fff;border-radius:16px;border:1px solid #e5e7eb;box-shadow:0 2px 12px #0000000f;overflow:hidden}.mb-action-grid__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:linear-gradient(135deg,#f8faff,#f0f4ff);border-bottom:1px solid #e8edf5}.mb-action-grid__header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.mb-action-grid__header-icon[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#7c3aed,#6d28d9);display:flex;align-items:center;justify-content:center;flex-shrink:0}.mb-action-grid__header-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#fff;font-size:15px}.mb-action-grid__title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#0f172a;margin:0;line-height:1.2}.mb-action-grid__subtitle[_ngcontent-%COMP%]{font-size:11.5px;color:#94a3b8;margin:3px 0 0}.mb-action-grid__count[_ngcontent-%COMP%]{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#7c3aed;background:#7c3aed1a;border-radius:8px;flex-shrink:0}.mb-action-grid__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px}@media (max-width: 480px){.mb-action-grid__grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);gap:8px;padding:10px}}"]})}}return n})();var O=c(8878),J=c(11103),v=c(76707),h=c(49969);const w=(n,o)=>o.label,U=(n,o)=>o.title;function H(n,o){1&n&&(e.j41(0,"div",1),e.nrm(1,"i",2),e.j41(2,"span"),e.EFF(3,"Select an action above to see results here"),e.k0s()())}function Q(n,o){if(1&n&&(e.j41(0,"h2",8),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.result().title)}}function Z(n,o){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.result().subtitle)}}function W(n,o){if(1&n&&(e.j41(0,"li",12)(1,"span",13),e.EFF(2),e.k0s(),e.j41(3,"span",14),e.EFF(4),e.k0s()()),2&n){const t=o.$implicit;e.R7$(2),e.JRh(t.label),e.R7$(2),e.JRh(t.value)}}function q(n,o){if(1&n&&(e.j41(0,"ul",10),e.Z7z(1,W,5,2,"li",12,w),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Dyx(t.result().points)}}function ee(n,o){if(1&n&&(e.j41(0,"li",12)(1,"span",13),e.EFF(2),e.k0s(),e.j41(3,"span",14),e.EFF(4),e.k0s()()),2&n){const t=o.$implicit;e.R7$(2),e.JRh(t.label),e.R7$(),e.AVh("mb-result-panel__point-value--positive","positive"===t.valueClass)("mb-result-panel__point-value--negative","negative"===t.valueClass)("mb-result-panel__point-value--neutral","neutral"===t.valueClass),e.R7$(),e.JRh(t.value)}}function te(n,o){if(1&n&&(e.j41(0,"div",15)(1,"h4",16),e.EFF(2),e.k0s(),e.j41(3,"ul",10),e.Z7z(4,ee,5,8,"li",12,w),e.k0s()()),2&n){const t=o.$implicit;e.R7$(2),e.SpI(" ",t.title," "),e.R7$(2),e.Dyx(t.rows)}}function ne(n,o){if(1&n&&e.Z7z(0,te,6,1,"div",15,U),2&n){const t=e.XpG(2);e.Dyx(t.result().sections)}}function oe(n,o){if(1&n&&(e.j41(0,"div"),e.nrm(1,"i",2),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&n){const t=e.XpG(2);e.ZvI("mb-result-panel__callout mb-result-panel__callout--",t.result().callout.type,""),e.R7$(3),e.JRh(t.result().callout.message)}}function ie(n,o){if(1&n&&(e.j41(0,"div")(1,"div",3)(2,"div",4),e.nrm(3,"i",5),e.j41(4,"span",6),e.EFF(5),e.k0s()()(),e.j41(6,"div",7),e.DNE(7,Q,2,1,"h2",8)(8,Z,2,1,"p",9)(9,q,3,0,"ul",10)(10,ne,2,0)(11,oe,4,4,"div",11),e.k0s()()),2&n){const t=e.XpG();e.Y8G("@fadeInUp",void 0),e.R7$(5),e.JRh(t.actionLabel()),e.R7$(2),e.vxM(7,t.result().title?7:-1),e.R7$(),e.vxM(8,t.result().subtitle?8:-1),e.R7$(),e.vxM(9,t.result().points&&t.result().points.length>0?9:-1),e.R7$(),e.vxM(10,t.result().sections&&t.result().sections.length>0?10:-1),e.R7$(),e.vxM(11,t.result().callout?11:-1)}}let F=(()=>
1{class n{constructor(){this.actionLabel=(0,e.hFB)(""),this.status=(0,e.hFB)("idle"),this.result=(0,e.hFB)(null)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-mb-result-panel"]],inputs:{actionLabel:[e.Mj6.SignalBased,"actionLabel"],status:[e.Mj6.SignalBased,"status"],result:[e.Mj6.SignalBased,"result"]},standalone:!0,features:[e.aNF],decls:3,vars:2,consts:[[1,"mb-result-panel"],[1,"mb-result-panel__idle"],[1,"pi","pi-info-circle"],[1,"mb-result-panel__header"],[1,"mb-result-panel__header-left"],[1,"pi","pi-check-circle","mb-result-panel__check-icon"],[1,"mb-result-panel__header-label"],[1,"mb-result-panel__body"],[1,"mb-result-panel__title"],[1,"mb-result-panel__subtitle"],[1,"mb-result-panel__points"],[3,"class"],[1,"mb-result-panel__point"],[1,"mb-result-panel__point-label"],["dir","auto",1,"mb-result-panel__point-value"],[1,"mb-result-panel__section"],[1,"mb-result-panel__section-title"]],template:function(i,a){1&i&&(e.j41(0,"div",0),e.DNE(1,H,4,0,"div",1)(2,ie,12,7,"div"),e.k0s()),2&i&&(e.R7$(),e.vxM(1,"idle"===a.status()?1:-1),e.R7$(),e.vxM(2,"success"===a.status()&&a.result()?2:-1))},styles:[".mb-result-panel[_ngcontent-%COMP%]{background:#fff;border-radius:14px;border:1.5px solid #f1f5f9;overflow:hidden;box-shadow:0 2px 12px #0000000f}.mb-result-panel__idle[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:48px 24px;color:#94a3b8;text-align:center}.mb-result-panel__idle[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:28px;color:#cbd5e1}.mb-result-panel__idle[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13.5px;font-weight:500;color:#94a3b8}.mb-result-panel__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;background:linear-gradient(90deg,#7c3aed14,#764ba20f);border-bottom:1px solid rgba(124,58,237,.12)}.mb-result-panel__header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.mb-result-panel__check-icon[_ngcontent-%COMP%]{color:#7c3aed;font-size:15px}.mb-result-panel__header-label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#334155}.mb-result-panel__body[_ngcontent-%COMP%]{padding:20px}.mb-result-panel__title[_ngcontent-%COMP%]{font-size:22px;font-weight:800;color:#0f172a;margin:0 0 4px;letter-spacing:-.3px}.mb-result-panel__subtitle[_ngcontent-%COMP%]{font-size:13px;color:#64748b;margin:0 0 18px}.mb-result-panel__sections[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}.mb-result-panel__section[_ngcontent-%COMP%]{border:1.5px solid #f1f5f9;border-radius:10px;overflow:hidden}.mb-result-panel__section-title[_ngcontent-%COMP%]{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#64748b;background:#f8fafc;padding:7px 14px;border-bottom:1px solid #f1f5f9}.mb-result-panel__section-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-bottom:1px solid #f8fafc;font-size:13px}.mb-result-panel__section-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.mb-result-panel__section-row-label[_ngcontent-%COMP%]{color:#64748b;font-size:12.5px;font-weight:500}.mb-result-panel__section-row-value[_ngcontent-%COMP%]{font-weight:600;font-size:13px}.mb-result-panel__section-row-value--positive[_ngcontent-%COMP%]{color:#16a34a}.mb-result-panel__section-row-value--negative[_ngcontent-%COMP%]{color:#ef4444}.mb-result-panel__section-row-value--neutral[_ngcontent-%COMP%]{color:#0f172a}.mb-result-panel__section-divider[_ngcontent-%COMP%]{padding:5px 14px;font-size:10px;font-weight:700;letter-spacing:.05em;color:#94a3b8;background:#f8fafc;border-bottom:1px solid #f1f5f9;text-align:center;text-transform:uppercase}.mb-result-panel__points[_ngcontent-%COMP%]{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;border:1.5px solid #f1f5f9;border-radius:10px;overflow:hidden}.mb-result-panel__point[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #f8fafc}.mb-result-panel__point[_ngcontent-%COMP%]:last-child{border-bottom:none}.mb-result-panel__point[_ngcontent-%COMP%]:hover{background:#fafbff}.mb-result-panel__point-label[_ngcontent-%COMP%]{font-size:12px;color:#64748b;font-weight:500;width:140px;flex-shrink:0}.mb-result-panel__point-value[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#0f172a;flex:1}.mb-result-panel__point-value--positive[_ngcontent-%COMP%]{color:#16a34a}.mb-result-panel__point-value--negative[_ngcontent-%COMP%]{color:#ef4444}.mb-result-panel__point-value--neutral[_ngcontent-%COMP%]{color:#64748b}.mb-result-panel__callout[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;padding:13px 16px;border-radius:10px;font-size:12.5px;line-height:1.5;font-weight:500;margin-top:10px;background:#f0f4ff;border-left:3px solid #7c3aed;color:#334155}.mb-result-panel__callout--warning[_ngcontent-%COMP%]{border-left-color:#f97316;background:#f973160f}.mb-result-panel__callout--tip[_ngcontent-%COMP%]{border-left-color:#0ea5e9;background:#0ea5e912}.mb-result-panel__callout[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px;margin-top:1px;flex-shrink:0;color:#7c3aed}.mb-result-panel__callout--warning[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#f97316}.mb-result-panel__callout--tip[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#0ea5e9}.mb-result-panel__error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:32px 24px;color:#ef4444;font-size:13.5px;font-weight:500}.mb-result-panel__error[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:20px}"],data:{animation:[(0,h.hZ)("fadeInUp",[(0,h.kY)(":enter",[(0,h.iF)({opacity:0,transform:"translateY(8px)"}),(0,h.i0)("200ms ease-out",(0,h.iF)({opacity:1,transform:"translateY(0)"}))])])]}})}}return n})();const ae=()=>({width:"min(660px, 100vw)"}),re=()=>({padding:"0",overflow:"hidden"});function se(n,o){if(1&n&&(e.j41(0,"div",20)(1,"span",21),e.nrm(2,"i"),e.k0s(),e.j41(3,"div",22)(4,"span",23),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"span",24),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n){const t=o.item;e.R7$(2),e.HbH(t.icon),e.R7$(3),e.JRh(e.bMT(6,4,t.labelKey)),e.R7$(3),e.JRh(e.bMT(9,6,t.subtitleKey))}}function le(n,o){if(1&n&&(e.j41(0,"div",20)(1,"span",21),e.nrm(2,"i"),e.k0s(),e.j41(3,"div",22)(4,"span",23),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"span",24),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n){const t=o.item;e.R7$(2),e.HbH(t.icon),e.R7$(3),e.JRh(e.bMT(6,4,t.labelKey)),e.R7$(3),e.JRh(e.bMT(9,6,t.subtitleKey))}}let ce=(()=>
1{class n{constructor(){this.visible=(0,e.hFB)(!1),this.bookingData=(0,e.hFB)(null),this.actions=(0,e.hFB)([]),this.initialKey=(0,e.hFB)(null),this.lang=(0,e.hFB)("en"),this.closed=(0,e.CGW)(),this.openManage=(0,e.CGW)(),this.selectedAction=(0,e.vPA)(null),this.resultContent=(0,e.EWP)(()=>{const t=this.selectedAction(),i=this.bookingData();return t&&i?t.formatter(i,this.lang()):null}),this.resultStatus=(0,e.EWP)(()=>null!==this.resultContent()?"success":"idle"),(0,e.QZP)(()=>{const t=this.initialKey(),i=this.visible();if(i&&t){const a=this.actions().find(r=>r.key===t)??null;this.selectedAction.set(a)}else i||this.selectedAction.set(null)},{allowSignalWrites:!0})}onActionSelect(t){t&&this.selectedAction.set(t)}onVisibleChange(t){t||this.closed.emit()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-mb-action-dialog"]],inputs:{visible:[e.Mj6.SignalBased,"visible"],bookingData:[e.Mj6.SignalBased,"bookingData"],actions:[e.Mj6.SignalBased,"actions"],initialKey:[e.Mj6.SignalBased,"initialKey"],lang:[e.Mj6.SignalBased,"lang"]},outputs:{closed:"closed",openManage:"openManage"},standalone:!0,features:[e.aNF],decls:30,vars:33,consts:[["styleClass","mba-modern-dialog",3,"visibleChange","visible","modal","blockScroll","draggable","resizable","closeOnEscape","contentStyle","showHeader"],[1,"mba"],[1,"mba__header"],[1,"mba__header-left"],[1,"mba__header-icon"],[1,"pi","pi-search"],[1,"mba__header-title"],[1,"mba__header-sub"],["type","button",1,"mba__close",3,"click"],[1,"pi","pi-times"],[1,"mba__picker"],["bindLabel","labelKey",1,"mba__select",3,"change","items","ngModel","searchable","clearable"],["ng-label-tmp",""],["ng-option-tmp",""],[1,"mba__result"],[3,"actionLabel","status","result"],[1,"mba__footer"],["type","button",1,"mba__footer-manage",3,"click"],[1,"pi","pi-cog"],["type","button",1,"mba__footer-close",3,"click"],[1,"mba__option"],[1,"mba__option-icon-wrap"],[1,"mba__option-text"],[1,"mba__option-label"],[1,"mba__option-sub"]],template:function(i,a){if(1&i&&(e.j41(0,"p-dialog",0),e.bIt("visibleChange",function(p){return a.onVisibleChange(p)}),e.j41(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.nrm(5,"i",5),e.k0s(),e.j41(6,"div")(7,"div",6),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"div",7),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"button",8),e.bIt("click",function(){return a.closed.emit()}),e.nrm(14,"i",9),e.k0s()(),e.j41(15,"div",10)(16,"ng-select",11),e.bIt("change",function(p){return a.onActionSelect(p)}),e.DNE(17,se,10,8,"ng-template",12)(18,le,10,8,"ng-template",13),e.k0s()(),e.j41(19,"div",14),e.nrm(20,"app-mb-result-panel",15),e.nI1(21,"translate"),e.k0s(),e.j41(22,"div",16)(23,"button",17),e.bIt("click",function(){return a.openManage.emit()}),e.nrm(24,"i",18),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"button",19),e.bIt("click",function(){return a.closed.emit()}),e.EFF(28),e.nI1(29,"translate"),e.k0s()()()()),2&i){let r;e.Aen(e.lJ4(31,ae)),e.Y8G("visible",a.visible())("modal",!0)("blockScroll",!0)("draggable",!1)("resizable",!1)("closeOnEscape",!0)("contentStyle",e.lJ4(32,re))("showHeader",!1),e.R7$(8),e.SpI(" ",e.bMT(9,21,"my-booking.quick-actions")," "),e.R7$(3),e.SpI(" ",e.bMT(12,23,"my-booking.quick-actions-subtitle")," "),e.R7$(5),e.Y8G("items",a.actions())("ngModel",a.selectedAction())("searchable",!1)("clearable",!1),e.R7$(4),e.Y8G("actionLabel",e.bMT(21,25,null!==(r=null==(r=a.selectedAction())?null:r.labelKey)&&void 0!==r?r:""))("status",a.resultStatus())("result",a.resultContent()),e.R7$(5),e.SpI(" ",e.bMT(26,27,"my-booking.manage-booking")," "),e.R7$(3),e.SpI(" ",e.bMT(29,29,"my-booking.close")," ")}},dependencies:[f.MD,d.YN,d.BC,d.vS,O.P,O.l,J.tm,v.MQ,v.vr,v.Uq,v.ZZ,_.h,_.D9,F],styles:[".mba-modern-dialog{border-radius:20px!important;overflow:hidden;box-shadow:0 24px 64px #0000002e!important;border:none!important}  .mba-modern-dialog .p-dialog-content{padding:0!important;border-radius:20px!important;overflow:hidden}  .mba-modern-dialog .p-dialog-header,   .mba-modern-dialog .p-dialog-footer{display:none!important}@media (max-width: 680px){  .mba-modern-dialog{width:100vw!important;max-width:100vw!important;margin:0!important;border-radius:20px 20px 0 0!important;position:fixed!important;bottom:0!important;left:0!important;top:auto!important}  .mba-modern-dialog .p-dialog-content{border-radius:20px 20px 0 0!important}}.mba[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:88vh;font-family:inherit}@media (max-width: 680px){.mba[_ngcontent-%COMP%]{max-height:85vh}}.mba__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;background:#fff;border-bottom:1px solid #f1f5f9;flex-shrink:0}.mba__header-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.mba__header-icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#7c3aed,#6d28d9);display:flex;align-items:center;justify-content:center;flex-shrink:0}.mba__header-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#fff;font-size:16px}.mba__header-title[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:#0f172a;line-height:1.2}.mba__header-sub[_ngcontent-%COMP%]{font-size:12px;color:#94a3b8;margin-top:2px}.mba__close[_ngcontent-%COMP%]{width:34px;height:34px;border-radius:8px;border:1.5px solid #e2e8f0;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s}.mba__close[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px;color:#64748b}.mba__close[_ngcontent-%COMP%]:hover{background:#f8fafc;border-color:#cbd5e1}.mba__close[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{color:#334155}.mba__picker[_ngcontent-%COMP%]{padding:16px 24px;background:#f8fafc;border-bottom:1px solid #f1f5f9;flex-shrink:0}.mba__select[_ngcontent-%COMP%]{width:100%}.mba__option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:2px 0}.mba__option-icon-wrap[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:7px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;flex-shrink:0}.mba__option-icon-wrap[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px;color:#475569}.mba__option-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1px;min-width:0}.mba__option-label[_ngcontent-%COMP%]{font-size:13.5px;font-weight:600;color:#0f172a}.mba__option-sub[_ngcontent-%COMP%]{font-size:11.5px;color:#94a3b8}.mba__result[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:20px 24px;background:#f8fafc;min-height:200px;max-height:calc(88vh - 240px)}.mba__result[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.mba__result[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.mba__result[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:4px}.mba__result[_ngcontent-%COMP%]     .mb-result-panel{border:none;box-shadow:none;background:transparent}.mba__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;
1gap:10px;padding:14px 24px;background:#fff;border-top:1px solid #f1f5f9;flex-shrink:0}.mba__footer-manage[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 18px;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;border:none;background:linear-gradient(135deg,#7c3aed,#6d28d9);color:#fff;transition:opacity .15s,transform .15s}.mba__footer-manage[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px}.mba__footer-manage[_ngcontent-%COMP%]:hover{opacity:.9;transform:translateY(-1px)}.mba__footer-close[_ngcontent-%COMP%]{display:inline-flex;align-items:center;height:38px;padding:0 18px;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;background:#f1f5f9;color:#64748b;border:1.5px solid #e2e8f0;transition:all .15s}.mba__footer-close[_ngcontent-%COMP%]:hover{background:#e2e8f0;color:#334155}  .mba__select.ng-select .ng-select-container{border:1.5px solid #e2e8f0;border-radius:10px;min-height:48px;background:#fff;box-shadow:0 1px 4px #0000000a;font-family:inherit;transition:border-color .15s,box-shadow .15s}  .mba__select.ng-select .ng-select-container:hover{border-color:#cbd5e1}  .mba__select.ng-select .ng-select-container .ng-value-container{padding:0 14px;display:flex;align-items:center;flex-wrap:nowrap;overflow:hidden}  .mba__select.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#94a3b8;font-size:13.5px}  .mba__select.ng-select .ng-select-container .ng-value-container .ng-value{display:flex;align-items:center;flex:1;min-width:0;overflow:hidden}  .mba__select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0;position:absolute;width:0!important;opacity:0}  .mba__select.ng-select .ng-select-container .ng-arrow-wrapper{padding-right:12px}  .mba__select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow{border-color:#94a3b8 transparent transparent}  .mba__select.ng-select.ng-select-single.ng-has-value .ng-select-container .ng-value-container .ng-placeholder{display:none}  .mba__select.ng-select.ng-select-single.ng-has-value .ng-select-container .ng-value-container .ng-input>input{width:0!important}  .mba__select.ng-select.ng-select-focused .ng-select-container{border-color:#7c3aed;box-shadow:0 0 0 3px #7c3aed1f}  .mba__select.ng-select.ng-select-opened .ng-select-container{border-color:#7c3aed;border-radius:10px 10px 0 0}  .mba__select.ng-select.ng-select-opened .ng-select-container .ng-arrow{border-color:transparent transparent #7c3aed}  .mba__select .ng-dropdown-panel{border:1.5px solid #e2e8f0;border-top:none;border-radius:0 0 10px 10px;box-shadow:0 8px 24px #0000001a;background:#fff}  .mba__select .ng-dropdown-panel .ng-dropdown-panel-items{max-height:280px;padding:4px}  .mba__select .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{padding:8px 10px;border-radius:8px;margin:2px 0;color:#0f172a;background:transparent;transition:background .1s}  .mba__select .ng-dropdown-panel .ng-dropdown-panel-items .ng-option:hover,   .mba__select .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#f8fafc}  .mba__select .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background:#eff6ff}  .mba__select .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .mba__option-label{color:#7c3aed}  .mba__select .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .mba__option-icon-wrap{background:#7c3aed1f}  .mba__select .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .mba__option-icon-wrap i{color:#7c3aed}"]})}}return n})();const s=(n,o)=>null!=n&&""!==n?String(n):"ar"===o?"\u063a\u064a\u0631 \u0645\u062a\u0648\u0641\u0631":"Not available",pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],y=n=>{if(!n)return"";try{const o=new Date(n.replace("UTC","T"));if(isNaN(o.getTime()))return n;const t=String(o.getDate()).padStart(2,"0"),i=String(o.getHours()).padStart(2,"0"),a=String(o.getMinutes()).padStart(2,"0");return`${t} ${pe[o.getMonth()]} ${o.getFullYear()}, ${i}:${a}`}catch{return n}},R=(n,o)=>null==n?"ar"===o?"\u063a\u064a\u0631 \u0645\u062a\u0648\u0641\u0631":"Not available":`${Math.floor(n/60)}h ${n%60}m`,j={Onward:{ar:"\u0630\u0647\u0627\u0628"},Return:{ar:"\u0639\u0648\u062f\u0629"},"Terminal & Gate":{ar:"\u0627\u0644\u0645\u062d\u0637\u0629 \u0648\u0627\u0644\u0628\u0648\u0627\u0628\u0629"},"Baggage Allowance":{ar:"\u0633\u0645\u0627\u062d\u064a\u0629 \u0627\u0644\u0623\u0645\u062a\u0639\u0629"},"Cabin Class":{ar:"\u062f\u0631\u062c\u0629 \u0627\u0644\u0643\u0627\u0628\u064a\u0646\u0629"},"Booking Reference":{ar:"\u0645\u0631\u062c\u0639 \u0627\u0644\u062d\u062c\u0632"},PNR:{ar:"PNR"},"Booking ID":{ar:"\u0631\u0642\u0645 \u0627\u0644\u062d\u062c\u0632"},Status:{ar:"\u0627\u0644\u062d\u0627\u0644\u0629"},"Flight Schedule":{ar:"\u062c\u062f\u0648\u0644 \u0627\u0644\u0631\u062d\u0644\u0629"},Departure:{ar:"\u0627\u0644\u0645\u063a\u0627\u062f\u0631\u0629"},Arrival:{ar:"\u0627\u0644\u0648\u0635\u0648\u0644"},Duration:{ar:"\u0627\u0644\u0645\u062f\u0629"},"Booking Status":{ar:"\u062d\u0627\u0644\u0629 \u0627\u0644\u062d\u062c\u0632"},"Full Name":{ar:"\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0643\u0627\u0645\u0644"},"Document No":{ar:"\u0631\u0642\u0645 \u0627\u0644\u0648\u062b\u064a\u0642\u0629"},Email:{ar:"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a"},Adult:{ar:"\u0628\u0627\u0644\u063a"}
1,Child:{ar:"\u0637\u0641\u0644"},Infant:{ar:"\u0631\u0636\u064a\u0639"},Passenger:{ar:"\u0645\u0633\u0627\u0641\u0631"},"Payment Details":{ar:"\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u062f\u0641\u0639"},"Total Fare":{ar:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0623\u062c\u0631\u0629"},Currency:{ar:"\u0627\u0644\u0639\u0645\u0644\u0629"},"Payment Status":{ar:"\u062d\u0627\u0644\u0629 \u0627\u0644\u062f\u0641\u0639"},Airlines:{ar:"\u0634\u0631\u0643\u0627\u062a \u0627\u0644\u0637\u064a\u0631\u0627\u0646"},"Airline(s)":{ar:"\u0634\u0631\u0643\u0629 \u0627\u0644\u0637\u064a\u0631\u0627\u0646"},"Supplier ref":{ar:"\u0645\u0631\u062c\u0639 \u0627\u0644\u0645\u0648\u0631\u062f"},Supplier:{ar:"\u0627\u0644\u0645\u0648\u0631\u062f"},"Gate and terminal assignments are available at the airport on the day of travel.":{ar:"\u062a\u0639\u064a\u064a\u0646\u0627\u062a \u0627\u0644\u0628\u0648\u0627\u0628\u0629 \u0648\u0627\u0644\u0645\u062d\u0637\u0629 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0627\u0644\u0645\u0637\u0627\u0631 \u064a\u0648\u0645 \u0627\u0644\u0633\u0641\u0631."},"For live flight status and delays, please check the airline website or airport boards.":{ar:"\u0644\u0644\u0627\u0637\u0644\u0627\u0639 \u0639\u0644\u0649 \u062d\u0627\u0644\u0629 \u0627\u0644\u0631\u062d\u0644\u0629 \u0648\u0627\u0644\u062a\u0623\u062e\u064a\u0631\u0627\u062a \u0645\u0628\u0627\u0634\u0631\u0629\u064b\u060c \u064a\u0631\u062c\u0649 \u0645\u0631\u0627\u062c\u0639\u0629 \u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0644\u0644\u0634\u0631\u0643\u0629 \u0623\u0648 \u0644\u0648\u062d\u0627\u062a \u0627\u0644\u0645\u0637\u0627\u0631."}},l=(n,o)=>"ar"===o&&j[n]?.ar?j[n].ar:n,x=(n,o)=>"Return"===n?`\u2190 ${l("Return",o)}`:`\u2192 ${l("Onward",o)}`,de={ADT:"Adult",CNN:"Child",INF:"Infant"},ge={1:"terminal_info",2:"baggage_policy",3:"flight_status",4:"flight_timings",5:"pnr_info",6:"booking_overview",7:"passenger_info",8:"payment_status",9:"airline_info"},I=[{key:"booking_overview",labelKey:"my-booking.actions.booking_overview.label",subtitleKey:"my-booking.actions.booking_overview.subtitle",icon:"pi pi-list",formatter:(n,o)=>{const t=n.Legs??[],i=n.passengers??[],a=[];return a.push({title:l("Booking Reference",o),rows:[{label:l("PNR",o),value:s(n.pnr,o)},{label:l("Booking ID",o),value:s(n.almtaarBookingId,o)},{label:l("Supplier ref",o),value:s(n.pnr,o)},{label:l("Supplier",o),value:s(t[0]?.supplierName,o)},{label:l("Booking Status",o),value:s(n.status,o)}]}),t.forEach(r=>{const p=r.Segments??[],g=r.LegCabins??[],m=r.LegAirlinesNames??[],C=p.reduce((b,k)=>b+(k.SegmentElapsedTime??0),0);a.push({title:`${x(r.LegDirectionality,o)}: ${s(r.LegDepartureAirportCode,o)} \u2192 ${s(r.LegArrivalAirportCode,o)}`,rows:[{label:l("Departure",o),value:y(r.LegDepartureDateTime)},{label:l("Arrival",o),value:y(r.LegArrivalDateTime)},{label:l("Duration",o),value:C>0?R(C,o):s(null,o)},{label:l("Cabin Class",o),value:s(g[0]?.Name,o)},{label:l("Airline(s)",o),value:m.length>0?m.join(", "):s(null,o)},{label:"ar"===o?"\u0627\u0644\u0645\u0637\u0627\u0631 (\u0627\u0644\u0645\u063a\u0627\u062f\u0631\u0629)":"Dep. Airport",value:s(r.LegDepartureAirportName,o)},{label:"ar"===o?"\u0627\u0644\u0645\u0637\u0627\u0631 (\u0627\u0644\u0648\u0635\u0648\u0644)":"Arr. Airport",value:s(r.LegArrivalAirportName,o)},...g.map((b,k)=>({label:`${"ar"===o?"\u0623\u0645\u062a\u0639\u0629":"Baggage"} ${k+1}`,value:null!=b.BaggageQty?`${b.BaggageQty} ${s(b.BaggageUnit,o)}`:s(null,o)})),...p.map((b,k)=>({label:`${"ar"===o?"\u0631\u062d\u0644\u0629":"Flight"} ${k+1}`,value:`${s(b.SegmentAirlineCode,o)}${s(b.SegmentFlightNumber,o)} \xb7 ${s(b.SegmentDepartureAirportCode,o)} \u2192 ${s(b.SegmentArrivalAirportCode,o)}`}))]})}
1),i.forEach(r=>{const p=[r.name?.prefix,r.name?.givenName,r.name?.surName].filter(Boolean).join(" ");a.push({title:l({ADT:"Adult",CNN:"Child",INF:"Infant"}[r.type]??"Passenger",o),rows:[{label:l("Full Name",o),value:s(p,o)},{label:l("Document No",o),value:s(r.identity?.number??r.documentDetails,o)},{label:l("Email",o),value:s(r.email,o)}]})}),a.push({title:l("Payment Details",o),rows:[{label:l("Total Fare",o),value:null!=n.IteneraryTotalFareAmount?String(n.IteneraryTotalFareAmount):s(null,o)},{label:l("Currency",o),value:s(n.IteneraryTotalFareCurrency,o)},{label:l("Payment Status",o),value:s(n.paymentStatus,o)}]}),{sections:a}}},{key:"terminal_info",labelKey:"my-booking.actions.terminal_info.label",subtitleKey:"my-booking.actions.terminal_info.subtitle",icon:"pi pi-map-marker",formatter:(n,o)=>({points:(n.Legs??[]).map(i=>({label:x(i.LegDirectionality,o),value:`${s(i.LegDepartureAirportName,o)} \u2192 ${s(i.LegArrivalAirportName,o)}`})),callout:{type:"info",message:l("Gate and terminal assignments are available at the airport on the day of travel.",o)}})},{key:"baggage_policy",labelKey:"my-booking.actions.baggage_policy.label",subtitleKey:"my-booking.actions.baggage_policy.subtitle",icon:"pi pi-briefcase",formatter:(n,o)=>({sections:(n.Legs??[]).map(i=>{const a=i.LegCabins??[];return{title:`${x(i.LegDirectionality,o)}: ${s(i.LegDepartureAirportCode,o)} \u2192 ${s(i.LegArrivalAirportCode,o)}`,rows:[{label:l("Cabin Class",o),value:s(a[0]?.Name,o)},...a.map((r,p)=>({label:`${"ar"===o?"\u0623\u0645\u062a\u0639\u0629":"Baggage"} ${p+1}`,value:null!=r.BaggageQty?`${r.BaggageQty} ${s(r.BaggageUnit,o)}`:s(null,o)}))]}})})},{key:"pnr_info",labelKey:"my-booking.actions.pnr_info.label",subtitleKey:"my-booking.actions.pnr_info.subtitle",icon:"pi pi-tag",formatter:(n,o)=>({points:[{label:l("PNR",o),value:s(n.pnr,o)},{label:l("Booking ID",o),value:s(n.almtaarBookingId,o)},{label:l("Status",o),value:s(n.status,o)}]})},{key:"flight_timings",labelKey:"my-booking.actions.flight_timings.label",subtitleKey:"my-booking.actions.flight_timings.subtitle",icon:"pi pi-clock",formatter:(n,o)=>({sections:(n.Legs??[]).map(i=>{const r=(i.Segments??[]).reduce((p,g)=>p+(g.SegmentElapsedTime??0),0);return{title:`${x(i.LegDirectionality,o)}: ${s(i.LegDepartureAirportCode,o)} \u2192 ${s(i.LegArrivalAirportCode,o)}`,rows:[{label:l("Departure",o),value:y(i.LegDepartureDateTime)},{label:l("Arrival",o),value:y(i.LegArrivalDateTime)},{label:l("Duration",o),value:r>0?R(r,o):s(null,o)}]}})})},{key:"flight_status",labelKey:"my-booking.actions.flight_status.label",subtitleKey:"my-booking.actions.flight_status.subtitle",icon:"pi pi-chart-bar",formatter:(n,o)=>({points:[{label:l("Booking Status",o),value:s(n.status,o)},{label:l("PNR",o),value:s(n.pnr,o)},{label:l("Booking ID",o),value:s(n.almtaarBookingId,o)}],callout:{type:"info",message:l("For live flight status and delays, please check the airline website or airport boards.",o)}})},{key:"passenger_info",labelKey:"my-booking.actions.passenger_info.label",subtitleKey:"my-booking.actions.passenger_info.subtitle",icon:"pi pi-users",formatter:(n,o)=>({sections:(n.passengers??[]).map(i=>{const a=[i.name?.prefix,i.name?.givenName,i.name?.surName].filter(Boolean).join(" ");return{title:l(de[i.type]??"Passenger",o),rows:[{label:l("Full Name",o),value:s(a,o)},{label:l("Document No",o),value:s(i.identity?.number??i.documentDetails,o)},{label:l("Email",o),value:s(i.email,o)}]}})})},{key:"payment_status",labelKey:"my-booking.actions.payment_status.label",subtitleKey:"my-booking.actions.payment_status.subtitle",icon:"pi pi-money-bill",formatter:(n,o)=>({points:[{label:l("Total Fare",o),value:null!=n.IteneraryTotalFareAmount?String(n.IteneraryTotalFareAmount):s(null,o)},{label:l("Currency",o),value:s(n.IteneraryTotalFareCurrency,o)},{label:l("Payment Status",o),value:s(n.paymentStatus,o)},{label:l("Booking Status",o),value:s(n.status,o)}]})},{key:"airline_info",labelKey:"my-booking.actions.airline_info.label",subtitleKey:"my-booking.actions.airline_info.subtitle",icon:"pi pi-share-alt",formatter:(n,o)=>({sections:(n.Legs??[]).map(i=>{const a=i.Segments??[],r=i.LegAirlinesNames??[];return{title:`${x(i.LegDirectionality,o)}: ${s(i.LegDepartureAirportCode,o)} \u2192 ${s(i.LegArrivalAirportCode,o)}`,rows:[{label:l("Airline(s)",o),value:r.length>0?r.join(", "):s(null,o)},...a.map((p,g)=>({label:`${"ar"===o?"\u0631\u062d\u0644\u0629":"Flight"} ${g+1}`,value:`${s(p.SegmentAirlineCode,o)}${s(p.SegmentFlightNumber,o)} \xb7 ${s(p.SegmentDepartureAirportCode,o)} \u2192 ${s(p.SegmentArrivalAirportCode,o)}`}))]}})})}];var me=c(25558),$=c(7673),be=c(96354),_e=c(99437),ue=c(21626);let fe=(()=>{class n{constructor(t){this.http=t}getFlightBookingById(t){const i=String(t).trim().toUpperCase();return this.fetchFromType("upcoming",i).pipe((0,me.n)(a=>a?(0,$.of)(a):this.fetchFromType("previous",i)))}fetchFromType(t,i){return this.http.get(`/api/v1/user-profile/bookings/${t}/flights`,{params:{limit:"100",offset:"0"}}).pipe((0,be.T)(a=>{const r=a?.data??a??[];return(Array.isArray(r?.list)?r.list:Array.isArray(r?.data)?r.data:Array.isArray(r)?r:[]).find(g=>{const m=String(g.almtaarBookingId??"").toUpperCase(),C=String(g.BookingReference??g.bookingReference??"").toUpperCase();return m===i||C===i})??null}),(0,_e.W)(()=>(0,$.of)(null)))}static{this.\u0275fac=function(i){return new(i||n)(e.KVO(ue.Qq))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var he=c(51188),xe=c(96281),ke=c(60828),ve=c(54679);const ye=()=>({length:4,allowNumbersOnly:!0}),Ce=n=>({"mb-otp--error":n});function Me(n,o){1&n&&(e.j41(0,"span",26),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"my-booking.booking-id-required")," "))}function Pe(n,o){1&n&&(e.j41(0,"span",26),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"my-booking.phone-required")," "))}function Oe(n,o){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t.message)}}function we(n,o){if(1&n&&(e.j41(0,"div",27),e.DNE(1,Oe,2,1,"span",28),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.responseErrors)}}function Fe(n,o){1&n&&e.nrm(0,"span",29)}function Re(n,o){1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"my-booking.continue")))}function je(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"div",6),e.qSk(),e.j41(2,"svg",7),e.nrm(3,"rect",8)(4,"path",9)(5,"path",10),e.k0s()(),e.joV(),e.j41(6,"h1",11),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"p",12),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"form",13),e.bIt("ngSubmit",function(){e.eBV(t);const a=e.XpG();
1return e.Njj(a.onSubmitForm())}),e.j41(13,"div",14)(14,"label",15),e.EFF(15),e.nI1(16,"translate"),e.j41(17,"span",16),e.EFF(18,"*"),e.k0s()(),e.nrm(19,"input",17),e.nI1(20,"translate"),e.DNE(21,Me,3,3,"span",18),e.k0s(),e.j41(22,"div",14)(23,"label",19),e.EFF(24),e.nI1(25,"translate"),e.j41(26,"span",16),e.EFF(27,"*"),e.k0s()(),e.j41(28,"div",20),e.nrm(29,"app-phone-input",21),e.k0s(),e.DNE(30,Pe,3,3,"span",18),e.k0s(),e.DNE(31,we,2,1,"div",22),e.j41(32,"button",23),e.DNE(33,Fe,1,0,"span",24)(34,Re,3,3,"span",25),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(7),e.JRh(e.bMT(8,20,"my-booking.title")),e.R7$(3),e.JRh(e.bMT(11,22,"my-booking.description")),e.R7$(2),e.Y8G("formGroup",t.bookingForm),e.R7$(3),e.SpI(" ",e.bMT(16,24,"my-booking.booking-id-label")," "),e.R7$(4),e.AVh("mb-field__input--error",t.isFieldInvalid(t.bookingForm,"bookingId")),e.Y8G("placeholder",e.bMT(20,26,"my-booking.booking-id-placeholder")),e.R7$(2),e.Y8G("ngIf",t.isFieldInvalid(t.bookingForm,"bookingId")),e.R7$(3),e.SpI(" ",e.bMT(25,28,"my-booking.phone-label")," "),e.R7$(4),e.AVh("mb-field__phone--error",t.isFieldInvalid(t.bookingForm,"phone")),e.R7$(),e.Y8G("formControl",t.bookingForm.get("phone"))("defaultCountryCode",t.defaultPhoneCode),e.R7$(),e.Y8G("ngIf",t.isFieldInvalid(t.bookingForm,"phone")),e.R7$(),e.Y8G("ngIf",t.responseErrors.length),e.R7$(),e.AVh("mb-btn--loading",t.loading),e.Y8G("disabled",t.loading),e.R7$(),e.Y8G("ngIf",t.loading),e.R7$(),e.Y8G("ngIf",!t.loading)}}function Ie(n,o){if(1&n&&(e.j41(0,"p",12),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"strong",43),e.EFF(4),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,3,"my-booking.otp-desc")," "),e.R7$(3),e.Lme("",t.submittedPhone.code," ",t.submittedPhone.number,"")}}function $e(n,o){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t.message)}}function Te(n,o){if(1&n&&(e.j41(0,"div",27),e.DNE(1,$e,2,1,"span",28),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.responseErrors)}}function Be(n,o){if(1&n){const t=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(t);const a=e.XpG(2);return e.Njj(a.resendOtp())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",t.disableResend),e.R7$(),e.SpI(" ",e.bMT(2,2,"my-booking.resend")," ")}}function Se(n,o){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.nI1(2,"timerCountDown"),e.nI1(3,"translate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Lme(" ",e.i5U(2,2,t.expirationTimeInSec,!0)," ",e.bMT(3,5,"seconds")," ")}}function Ae(n,o){1&n&&e.nrm(0,"span",29)}function De(n,o){1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"my-booking.verify")))}function Ee(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"button",30),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.backToForm())}),e.qSk(),e.j41(2,"svg",31),e.nrm(3,"path",32),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.joV(),e.j41(6,"div",6),e.qSk(),e.j41(7,"svg",7),e.nrm(8,"rect",33)(9,"path",34)(10,"path",35),e.k0s()(),e.joV(),e.j41(11,"h2",11),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.DNE(14,Ie,5,5,"p",36),e.j41(15,"form",13),e.bIt("ngSubmit",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.onSubmitOtp())}),e.j41(16,"div",37),e.nrm(17,"ng-otp-input",38,0),e.k0s(),e.DNE(19,Te,2,1,"div",22),e.j41(20,"div",39)(21,"span",40),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,Be,3,4,"button",41)(25,Se,4,7,"span",42),e.k0s(),e.j41(26,"button",23),e.DNE(27,Ae,1,0,"span",24)(28,De,3,3,"span",25),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(4),e.SpI(" ",e.bMT(5,16,"my-booking.back")," "),e.R7$(8),e.JRh(e.bMT(13,18,"my-booking.otp-title")),e.R7$(2),e.Y8G("ngIf",t.submittedPhone),e.R7$(),e.Y8G("formGroup",t.otpForm),e.R7$(2),e.Y8G("formCtrl",t.otpForm.get("otp"))("config",e.lJ4(22,ye))("ngClass",e.eq3(23,Ce,t.responseErrors.length)),e.R7$(2),e.Y8G("ngIf",t.responseErrors.length),e.R7$(3),e.SpI(" ",e.bMT(23,20,t.canResend?"my-booking.resend-prompt":"sign-in.resend-code")," "),e.R7$(2),e.Y8G("ngIf",t.canResend),e.R7$(),e.Y8G("ngIf",!t.canResend),e.R7$(),e.AVh("mb-btn--loading",t.loading),e.Y8G("disabled",t.loading||t.otpForm.invali
1d),e.R7$(),e.Y8G("ngIf",t.loading),e.R7$(),e.Y8G("ngIf",!t.loading)}}function Ge(n,o){1&n&&(e.j41(0,"div",46)(1,"div",47),e.nrm(2,"div",48),e.k0s(),e.j41(3,"p",12),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,1,"my-booking.fetching")))}function Ne(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",46)(1,"div",6),e.qSk(),e.j41(2,"svg",7),e.nrm(3,"rect",49)(4,"path",50)(5,"circle",51),e.k0s()(),e.joV(),e.j41(6,"h2",11),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"p",12),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",52),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.searchAnother())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()}2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,3,"my-booking.not-found-title")," "),e.R7$(3),e.JRh(e.bMT(11,5,"my-booking.not-found-desc")),e.R7$(3),e.SpI(" ",e.bMT(14,7,"my-booking.try-again")," "))}function ze(n,o){1&n&&(e.j41(0,"div",71),e.nrm(1,"i",72),e.k0s())}function Le(n,o){if(1&n&&e.nrm(0,"app-mb-result-panel",73),2&n){const t=o.$implicit;e.Y8G("actionLabel",t.label)("status","success")("result",t.result)}}function Ke(n,o){if(1&n&&(e.j41(0,"div",65)(1,"div",66)(2,"div",67),e.nrm(3,"i",68),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.DNE(6,ze,2,0,"div",69)(7,Le,1,3,"app-mb-result-panel",70),e.k0s()),2&n){const t=e.XpG(2);e.R7$(4),e.SpI(" ",e.bMT(5,3,"my-booking.based-on-query")," "),e.R7$(2),e.Y8G("ngIf",t.bookingLoading),e.R7$(),e.Y8G("ngForOf",t.caseHighlights)}}function Ve(n,o){if(1&n){const t=e.RV6();e.j41(0,"almatar-flight-manage-booking",74),e.bIt("closed",function(){e.eBV(t);const a=e.XpG(2);return e.Njj(a.onManageBookingClosed())}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("selectedFlightBooking",t.bookingData)("showFlightManageBooking",!0)("logosURL","")("appLanguage",t.appLanguage)}}function Ye(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",53)(1,"button",30),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.searchAnother())}),e.qSk(),e.j41(2,"svg",31),e.nrm(3,"path",32),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.joV(),e.j41(6,"div",54)(7,"div",55),e.DNE(8,Ke,8,5,"div",56),e.j41(9,"app-mb-action-grid",57),e.bIt("actionSelected",function(a){e.eBV(t);const r=e.XpG();return e.Njj(r.onActionSelected(a))}),e.k0s(),e.j41(10,"div",58)(11,"button",59),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.downloadPdf())}),e.nrm(12,"i",60),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"button",61),e.bIt("click",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openManagePanel())}),e.nrm(16,"i",62),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()(),e.j41(19,"app-mb-action-dialog",63),e.bIt("closed",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.onDialogClosed())})("openManage",function(){e.eBV(t);const a=e.XpG();return e.Njj(a.openManagePanel())}),e.k0s(),e.DNE(20,Ve,1,4,"almatar-flight-manage-booking",64),e.k0s()}if(2&n){const t=e.XpG();e.R7$(4),e.SpI(" ",e.bMT(5,11,"my-booking.search-another")," "),e.R7$(4),e.Y8G("ngIf",t.caseActiveKeys.length>0),e.R7$(),e.Y8G("actions",t.flightActions),e.R7$(4),e.SpI(" ",e.bMT(14,13,"my-booking.save-pdf")," "),e.R7$(4),e.SpI(" ",e.bMT(18,15,"my-booking.manage-booking")," "),e.R7$(2),e.Y8G("visible",t.dialogVisible)("bookingData",t.bookingData)("actions",t.flightActions)("initialKey",t.activeActionKey)("lang",t.appLanguage),e.R7$(),e.Y8G("ngIf",t.showManagePanel)}}let Xe=(()=>{class n{constructor(t,i,a,r){this.authService=t,this.myBookingService=i,this.translate=a,this.route=r,this._destroy$=new T.B,this.step="form",this.loading=!1,this.responseErrors=[],this.bookingForm=new d.gE({bookingId:new d.MJ("",[d.k0.required]),phone:new d.MJ(null,[d.k0.required])}),this.otpForm=new d.gE({otp:new d.MJ("",[d.k0.required,d.k0.minLength(4)])}),this.uuid="",this.canResend=!1,this.expirationTimeInSec=0,this.disableResend=!1,this.countDown=new B.yU,this.bookingData=null,this.bookingLoading=!1,this.appLanguage="en",this.showManagePanel=!1,this.flightActions=I,this.activeActionKey=null,this.caseActiveKeys=[],this.dialogVisible=!1,this.caseHighlights=[],this.defaultPhoneCode=`+${z.dT.countryInitialValueNumber}`}ngOnInit(){this.appLanguage=this.translate.currentLang||localStorage.getItem("AppLanguage")||"en",this.autoFillFromUrl()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.countDown.unsubscribe()}
1onSubmitForm(){this.bookingForm.invalid?this.bookingForm.markAllAsTouched():(this.loading=!0,this.responseErrors=[],this.submittedPhone=this.bookingForm.value.phone,this.authService.submitPhone(this.submittedPhone.code+this.submittedPhone.number).pipe((0,u.Q)(this._destroy$)).subscribe({next:i=>{i?.data&&(this.uuid=i.data.uuid,this.startTimer(i.data.remainingSeconds||60),this.loading=!1,this.step="otp")},error:({error:i})=>{this.loading=!1,this.handleError(i)}}))}onSubmitOtp(){this.otpForm.invalid||(this.loading=!0,this.responseErrors=[],this.authService.validateOtp({phoneNumber:this.submittedPhone.code+this.submittedPhone.number,uuid:this.uuid,otp:this.otpForm.value.otp}).pipe((0,u.Q)(this._destroy$)).subscribe({next:()=>{this.loading=!1,this.resolveUrlCaseKeys(),this.step="manage",this.caseActiveKeys.length>0&&this.fetchBooking()},error:({error:i})=>{this.loading=!1,this.handleError(i)}}))}resendOtp(){this.disableResend||(this.disableResend=!0,this.authService.resendOtp(this.uuid).pipe((0,u.Q)(this._destroy$)).subscribe({next:t=>{t?.data&&(this.responseErrors=[],this.disableResend=!1,this.otpForm.reset(),this.ngOtpInput&&this.ngOtpInput.setValue(""),this.uuid=t.data.uuid,this.startTimer(t.data.remainingSeconds||60))},error:({error:t})=>{this.disableResend=!1,this.handleError(t)}}))}fetchBooking(){if(this.bookingData)return;this.bookingLoading=!0;const t=(this.bookingForm.value.bookingId??"").trim();this.myBookingService.getFlightBookingById(t).pipe((0,u.Q)(this._destroy$)).subscribe({next:i=>{this.bookingLoading=!1,i&&(this.bookingData=i,this.populateCaseHighlights(i))},error:()=>{this.bookingLoading=!1}})}resolveUrlCaseKeys(){const t=this.route.snapshot.queryParamMap.get("case");t&&(this.caseActiveKeys=t.split(",").map(i=>ge[parseInt(i.trim(),10)]).filter(Boolean),this.caseActiveKeys.length>0&&(this.activeActionKey=this.caseActiveKeys[0]))}populateCaseHighlights(t){this.caseHighlights=this.caseActiveKeys.map(i=>{const a=I.find(r=>r.key===i);return a?{key:i,label:this.translate.instant(a.labelKey),result:a.formatter(t,this.appLanguage)}:null}).filter(Boolean)}autoFillFromUrl(){const t=this.route.snapshot.queryParamMap,i=t.get("bookingId"),a=t.get("phone");if(i&&this.bookingForm.get("bookingId")?.setValue(i),!a)return;const r=a.trim().replace(/^(?!\+)/,"+"),p=r.match(/^(\+\d{1,3})(\d+)$/);if(!p)return;const g={code:p[1],number:p[2]};this.bookingForm.get("phone")?.setValue(g),this.submittedPhone=g,this.step="loading",this.loading=!0,this.responseErrors=[],this.authService.submitPhone(r).pipe((0,u.Q)(this._destroy$)).subscribe({next:m=>{this.loading=!1,m?.data?(this.uuid=m.data.uuid,this.startTimer(m.data.remainingSeconds||60),this.step="otp"):this.step="form"},error:({error:m})=>{this.loading=!1,this.step="form",this.handleError(m)}})}downloadPdf(){window.print()}startTimer(t=60){this.canResend=!1,this.expirationTimeInSec=t,this.countDown.unsubscribe(),this.countDown=(0,S.O)(0,1e3).pipe((0,u.Q)(this._destroy$)).subscribe(()=>{this.expirationTimeInSec--,this.expirationTimeInSec<=0&&(this.canResend=!0,this.countDown.unsubscribe())})}handleError(t){this.responseErrors=t?.errors?Array.isArray(t.errors)?t.errors:[t.errors]:[{field:"generic",message:this.translate.instant("ERRORS.hcs-101")}]}backToForm(){this.step="form",this.responseErrors=[],this.otpForm.reset(),this.countDown.unsubscribe()}searchAnother(){this.step="form",this.responseErrors=[],this.bookingData=null,this.caseHighlights=[],this.caseActiveKeys=[],this.activeActionKey=null,this.bookingForm.reset(),this.otpForm.reset();const t={code:this.defaultPhoneCode,number:""};this.bookingForm.get("phone")?.setValue(t)}onManageBookingClosed(){this.showManagePanel=!1}openManagePanel(){this.fetchBooking(),this.showManagePanel=!0}onActionSelected(t){this.activeActionKey=t,this.fetchBooking(),this.dialogVisible=!0}onDialogClosed(){this.dialogVisible=!1,this.activeActionKey=this.caseActiveKeys[0]??null}isFieldInvalid(t,i){const a=t.get(i);return!!(a&&a.invalid&&a.touched)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(A.u),e.rXU(fe),e.rXU(_.c$),e.rXU(he.nX))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-my-booking"]],viewQuery:function(i,a){if(1&i&&e.GBs(M.gj,5),2&i){let r;e.mGM(r=e.lsd())&&(a.ngOtpInput=r.first)}},standalone:!0,features:[e.aNF],decls:6,vars:5,consts:[["ngOtpInput",""],[1,"mb-page"],["class","mb-card",4,"ngIf"],["class","mb-card mb-card--center",4,"ngIf"],["class","mb-manage",4,"ngIf"],[1,"mb-card"],[1,"mb-card__icon"],["width","48","height","48","viewBox","0 0 48 48","fill","none"],["width","48","height","48","rx","12","fill","#F0F4FF"],["d","M16 14h16a2 2 0 012 2v16a2 2 0 01-2 2H16a2 2 0 01-2-2V16a2 2 0 012-2z","stroke","#2563EB","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","fill","none"],["d","M20 20h8M20 24h8M20 28h5","stroke","#2563EB","stroke-width","2","stroke-linecap","round"],[1,"mb-card__title"],[1,"mb-card__desc"],["novalidate","",1,"mb-form",3,"ngSubmit","formGroup"],[1,"mb-field"],["for","bookingId",1,"mb-field__label"],[1,"mb-field__required"],["id","bookingId","type","text","formControlName","bookingId","autocomplete","off",1,"mb-field__input",3,"placeholder"],["class","mb-field__error",4,"ngIf"],[1,"mb-field__label"],[1,"mb-field__phone"],["appValidPhone","",3,"formControl","defaultCountryCode"],["class","mb-errors",4,"ngIf"],["type","submit",1,"mb-btn","mb
1-btn--primary",3,"disabled"],["class","mb-btn__spinner",4,"ngIf"],[4,"ngIf"],[1,"mb-field__error"],[1,"mb-errors"],[4,"ngFor","ngForOf"],[1,"mb-btn__spinner"],["type","button",1,"mb-back",3,"click"],["width","20","height","20","viewBox","0 0 24 24","fill","none"],["d","M19 12H5M12 5l-7 7 7 7","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["width","48","height","48","rx","12","fill","#F0FFF4"],["d","M24 14a10 10 0 100 20 10 10 0 000-20z","stroke","#16A34A","stroke-width","2","fill","none"],["d","M20 24l3 3 5-6","stroke","#16A34A","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["class","mb-card__desc",4,"ngIf"],[1,"mb-otp"],["ngDefaultControl","",3,"formCtrl","config","ngClass"],[1,"mb-resend"],[1,"mb-resend__label"],["type","button","class","mb-resend__btn",3,"disabled","click",4,"ngIf"],["class","mb-resend__timer",4,"ngIf"],[1,"mb-card__phone"],["type","button",1,"mb-resend__btn",3,"click","disabled"],[1,"mb-resend__timer"],[1,"mb-card","mb-card--center"],[1,"mb-loader"],[1,"mb-loader__ring"],["width","48","height","48","rx","12","fill","#FFF1F0"],["d","M24 16v8M24 28v2","stroke","#DC2626","stroke-width","2.5","stroke-linecap","round"],["cx","24","cy","24","r","10","stroke","#DC2626","stroke-width","2","fill","none"],["type","button",1,"mb-btn","mb-btn--primary",3,"click"],[1,"mb-manage"],[1,"mb-manage__layout"],[1,"mb-manage__right"],["class","mb-cases",4,"ngIf"],[3,"actionSelected","actions"],[1,"mb-cta-bar"],["type","button",1,"mb-cta-bar__pdf",3,"click"],[1,"pi","pi-download"],["type","button",1,"mb-btn","mb-btn--primary","mb-manage-cta",3,"click"],[1,"pi","pi-cog"],[3,"closed","openManage","visible","bookingData","actions","initialKey","lang"],[3,"selectedFlightBooking","showFlightManageBooking","logosURL","appLanguage","closed",4,"ngIf"],[1,"mb-cases"],[1,"mb-cases__header"],[1,"mb-cases__badge"],[1,"pi","pi-info"],["class","mb-cases__loading",4,"ngIf"],[3,"actionLabel","status","result",4,"ngFor","ngForOf"],[1,"mb-cases__loading"],[1,"pi","pi-spin","pi-spinner"],[3,"actionLabel","status","result"],[3,"closed","selectedFlightBooking","showFlightManageBooking","logosURL","appLanguage"]],template:function(i,a){1&i&&(e.j41(0,"div",1),e.DNE(1,je,35,30,"div",2)(2,Ee,29,25,"div",2)(3,Ge,6,3,"div",3)(4,Ne,15,9,"div",3)(5,Ye,21,17,"div",4),e.k0s()),2&i&&(e.R7$(),e.Y8G("ngIf","form"===a.step),e.R7$(),e.Y8G("ngIf","otp"===a.step),e.R7$(),e.Y8G("ngIf","loading"===a.step),e.R7$(),e.Y8G("ngIf","not-found"===a.step),e.R7$(),e.Y8G("ngIf","manage"===a.step))},dependencies:[f.MD,f.YU,f.Sq,f.bT,d.X1,d.qT,d.me,d.BC,d.cb,d.l_,d.j4,d.JD,_.h,_.D9,D.j,xe.U,E.r,ke.G,M.Ph,M.gj,G.O,ve.t,N.q,X,ce,F],styles:[".mb-page[_ngcontent-%COMP%]{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:48px 16px 64px;background:#f5f7fb}@media (max-width: 860px){.mb-page[_ngcontent-%COMP%]{padding:32px 16px 48px}}@media (max-width: 480px){.mb-page[_ngcontent-%COMP%]{padding:16px 12px 40px;align-items:stretch}}.mb-card[_ngcontent-%COMP%]{width:100%;max-width:480px;background:#fff;border-radius:16px;box-shadow:0 2px 16px #00000014;padding:40px 36px;position:relative}@media (max-width: 480px){.mb-card[_ngcontent-%COMP%]{padding:28px 20px;border-radius:12px}}.mb-card--center[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}.mb-card__icon[_ngcontent-%COMP%]{margin-bottom:20px}.mb-card--center[_ngcontent-%COMP%]   .mb-card__icon[_ngcontent-%COMP%]{margin-bottom:0}.mb-card__title[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:#111827;margin:0 0 8px;line-height:1.3}@media (max-width: 480px){.mb-card__title[_ngcontent-%COMP%]{font-size:19px}}.mb-card__desc[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;line-height:1.6;margin:0 0 28px}.mb-card--center[_ngcontent-%COMP%]   .mb-card__desc[_ngcontent-%COMP%]{margin-bottom:0}.mb-card__phone[_ngcontent-%COMP%]{color:#111827;font-weight:600}.mb-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.mb-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.mb-field__label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#374151}.mb-field__required[_ngcontent-%COMP%]{color:#dc2626;margin-inline-start:2px}.mb-field__input[_ngcontent-%COMP%]{width:100%;height:48px;padding:0 14px;border:1.5px solid #d1d5db;border-radius:10px;font-size:15px;color:#111827;background:#fff;outline:none;transition:border-color .2s;box-sizing:border-box}.mb-field__input[_ngcontent-%COMP%]::placeholder{color:#9ca3af}.mb-field__input[_ngcontent-%COMP%]:focus{border-color:#7c3aed}.mb-field__input--error[_ngcontent-%COMP%]{border-color:#dc2626}.mb-field__phone[_ngcontent-%COMP%]{transition:border-color .2s}.mb-field__phone--error[_ngcontent-%COMP%]     .phone-number{border-color:#dc2626!important}.mb-field__phone[_ngcontent-%COMP%]     app-phone-input{display:block}.mb-field__phone[_ngcontent-%COMP%]     .phone-number{display:flex;align-items:center;border:1.5px solid #d1d5db;border-radius:10px;height:50px;margin:0;padding:0;overflow:visible;transition:border-color .2s;background:#fff}.mb-field__phone[_ngcontent-%COMP%]     .phone-number:focus-within{border-color:#7c3aed}.mb-field__phone[_ngcontent-%COMP%]     .phone-number__country{flex:0 0 auto;width:auto;padding:0;border-right:1px solid #e5e7eb;height:100%;display:flex;align-items:center}.mb-field__phone[_ngcontent-%COMP%]     .phone-number__country .ng-select{min-width:110px}.mb-field__phone[_ngcontent-%COMP%]     .phone-number__country .ng-select-container{border:none!important;border-radius:10px 0 0 10px!important;background:#f9fafb!important;height:48px!important;cursor:pointer}.mb-field__phone[_ngcontent-%COMP%]     .phone-number__country .ng-dropdown-panel{z-index:9999;min-width:220px}.mb-field__phone[_ngcontent-%COMP%]     .phone-number__input{flex:1;padding:0;height:100%;display:flex;align-items:center}.mb-field__phone[_ngcontent-%COMP%]     .phone-number-input.form-control{border:none!important;box-shadow:none!important;border-radius:0 10px 10px 0!important;height:100%!important;font-size:15px;background:transparent;padding:0 12px}.mb-field__phone[_ngcontent-%COMP%]     .phone-number-input.form-control:focus{outline:none;box-shadow:none!important}.mb-field__error[_ngcontent-%COMP%]{font-size:12px;color:#dc2626;margin-top:2px}.mb-errors[_ngcontent-%COMP%]{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;gap:4px}.mb-errors[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px;color:#dc2626;line-height:1.5}.mb-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer;border:none;transition:background .2s,opacity .2s}.mb-btn--primary[_ngcontent-%COMP%]{background:#7c3aed;color:#fff;width:100%}.mb-btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#6d28d9}.mb-btn--primary[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.mb-btn--loading[_ngcontent-%COMP%]{opacity:.7;pointer-events:none}.mb-btn__spinner[_ngcontent-%COMP%]{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:_ngcontent-%COMP%_mb-spin .7s linear infinite}@keyframes _ngcontent-%COMP%_mb-spin{to{transform:rotate(360deg)}}.mb-back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;background:none;border:none;color:#6b7280;font-size:13px;font-weight:500;cursor:pointer;padding:0;margin-bottom:24px;transition:color .15s}.mb-back[_ngcontent-%COMP%]:hover{color:#7c3aed}.mb-back[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{flex-shrink:0;width:18px;height:18px}.mb-otp[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:4px 0}.mb-otp--error[_ngcontent-%COMP%]     .otp-input{border-color:#dc2626!important}.mb-otp[_ngcontent-%COMP%]     ng-otp-input{display:flex;justify-content:center}.mb-otp[_ngcontent-%COMP%]     .otp-input{width:56px!important;height:56px!important;font-size:20px!important;font-weight:700;border:1.5px solid #d1d5db!important;border-radius:10px!important;margin:0 6px!important;text-align:center;color:#111827;transition:border-color .2s}.mb-otp[_ngcontent-%COMP%]     .otp-input:focus{border-color:#7c3aed!important;outline:none}@media (max-width: 360px){.mb-otp[_ngcontent-%COMP%]     .otp-input{width:48px!important;height:48px!important;font-size:18px!important;margin:0 4px!important}}.mb-resend[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;text-align:center}.mb-resend__label[_ngcontent-%COMP%]{font-size:13px;color:#6b7280}.mb-resend__btn[_ngcontent-%COMP%]{background:none;border:none;color:#7c3aed;font-size:13px;font-weight:600;cursor:pointer;padding:0}.mb-resend__btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.mb-resend__timer[_ngcontent-%COMP%]{font-size:13px;color:#9ca3af;font-weight:500}.mb-loader__ring[_ngcontent-%COMP%]{width:52px;height:52px;border:4px solid #e5e7eb;border-top-color:#7c3aed;border-radius:50%;animation:_ngcontent-%COMP%_mb-spin .8s linear infinite}.mb-manage[_ngcontent-%COMP%]{width:100%;max-width:680px}.mb-manage__layout[_ngcontent-%COMP%]{display:flex;gap:20px;align-items:flex-start}@media (max-width: 860px){.mb-manage__layout[_ngcontent-%COMP%]{flex-direction:column;gap:16px}}.mb-manage__left[_ngcontent-%COMP%]{flex:0 0 460px;min-width:0}@media (max-width: 1000px){.mb-manage__left[_ngcontent-%COMP%]{flex:0 0 400px}}@media (max-width: 860px){.mb-manage__left[_ngcontent-%COMP%]{flex:none;width:100%}}.mb-manage__right[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}@media (max-width: 860px){.mb-manage__right[_ngcontent-%COMP%]{width:100%}}@media print{app-almatar-header[_ngcontent-%COMP%], app-almatar-footer[_ngcontent-%COMP%], .mb-back[_ngcontent-%COMP%], .mb-cta-bar[_ng
1content-%COMP%], app-mb-action-grid[_ngcontent-%COMP%], app-mb-action-dialog[_ngcontent-%COMP%], almatar-flight-manage-booking[_ngcontent-%COMP%]{display:none!important}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{margin:0!important;padding:0!important}.mb-page[_ngcontent-%COMP%]{padding:0!important;margin:0!important;background:#fff!important}.mb-manage[_ngcontent-%COMP%]{max-width:100%!important;padding:0!important;margin:0!important}.mb-manage__right[_ngcontent-%COMP%]{padding:0!important;margin:0!important}.mb-cases[_ngcontent-%COMP%]{box-shadow:none!important;border:1px solid #ddd!important;break-inside:avoid;margin:0!important}.mb-cases__tabs[_ngcontent-%COMP%]{display:none!important}}.mb-manage-cta[_ngcontent-%COMP%]{width:auto!important;height:38px!important;font-size:13.5px!important;padding:0 24px;gap:8px}@media (max-width: 480px){.mb-manage-cta[_ngcontent-%COMP%]{flex:1;height:44px!important}}.mb-cases[_ngcontent-%COMP%]{background:#fff;border-radius:16px;border:1px solid #e8edf5;overflow:hidden;box-shadow:0 2px 12px #7c3aed14}.mb-cases__header[_ngcontent-%COMP%]{padding:14px 16px;background:linear-gradient(135deg,#f8faff,#f0f4ff);border-bottom:1px solid #e8edf5}.mb-cases__badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#7c3aed;background:#7c3aed1a;border:1px solid rgba(124,58,237,.2);border-radius:20px;padding:3px 10px}.mb-cases__badge[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:10px}.mb-cases__loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:28px;color:#7c3aed}.mb-cases__loading[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:22px}.mb-cases__result[_ngcontent-%COMP%]     .mb-result-panel{border:none;box-shadow:none;border-radius:0;background:transparent}.mb-cta-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}@media (max-width: 480px){.mb-cta-bar[_ngcontent-%COMP%]{align-items:stretch}}.mb-cta-bar__pdf[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 18px;border-radius:10px;font-size:13.5px;font-weight:600;cursor:pointer;background:#f1f5f9;color:#475569;border:1.5px solid #e2e8f0;transition:all .15s;white-space:nowrap}.mb-cta-bar__pdf[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:13px}.mb-cta-bar__pdf[_ngcontent-%COMP%]:hover{background:#e2e8f0;color:#1e293b}@media (max-width: 480px){.mb-cta-bar__pdf[_ngcontent-%COMP%]{flex:1;height:44px;justify-content:center}}[dir=rtl][_ngcontent-%COMP%]   .mb-back[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{transform:scaleX(-1)}"]})}}return n})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.