1"use strict";(self.webpackChunkalmatar_b2c=self.webpackChunkalmatar_b2c||[]).push([[527],{83375:(F,R,i)=>{i.d(R,{S:()=>M});var m=i(54438),t=i(23903),p=i(60177),x=i(88972),A=i(41780);const O=y=>({disabled:y});function S(y,I){1&y&&(m.j41(0,"span"),m.EFF(1),m.nI1(2,"translate"),m.k0s()),2&y&&(m.R7$(),m.JRh(m.bMT(2,1,"SHARED.book-now")))}function b(y,I){1&y&&m.nrm(0,"app-loader"),2&y&&m.HbH("bookings")}function C(y,I){if(1&y){const _=m.RV6();m.j41(0,"div",1)(1,"p"),m.EFF(2),m.nI1(3,"translate"),m.k0s(),m.j41(4,"button",2),m.bIt("click",function(){m.eBV(_);const v=m.XpG();return m.Njj(v.bookNowWithoutPayment())}),m.DNE(5,S,3,3,"span",3)(6,b,1,2,"app-loader",4),m.k0s()()}if(2&y){const _=m.XpG();m.R7$(2),m.JRh(m.bMT(3,5,"HOTEL.can-book-only")),m.R7$(2),m.Y8G("ngClass",m.eq3(7,O,_.stopCallingBookNow))("disabled",_.stopCallingBookNow),m.R7$(),m.Y8G("ngIf",!_.pending),m.R7$(),m.Y8G("ngIf",_.pending)}}let M=(()=>{class y{constructor(_){this.hotelEndPoint=_,this.updateCart=new m.bkB,this.pending=!1}ngOnInit(){}bookNowWithoutPayment(){this.pending=!0,"flights"==this.product?this.updateCart.emit(!0):this.hotelEndPoint.bookNow(this.encryptedKey).subscribe(_=>{this.updateCart.emit(!0),this.pending=!1},_=>{this.updateCart.emit(!0),this.pending=!1})}static{this.\u0275fac=function(l){return new(l||y)(m.rXU(t.o))}}static{this.\u0275cmp=m.VBU({type:y,selectors:[["app-wallet-full-coverage"]],inputs:{cartDetails:"cartDetails",encryptedKey:"encryptedKey",product:"product",stopCallingBookNow:"stopCallingBookNow"},outputs:{updateCart:"updateCart"},decls:1,vars:1,consts:[["class","book-now-without-payment-section wrapper",4,"ngIf"],[1,"book-now-without-payment-section","wrapper"],[1,"btn","btn-primary","book-now","book-now-without-payment",3,"click","ngClass","disabled"],[4,"ngIf"],[3,"class",4,"ngIf"]],template:function(l,v){1&l&&m.DNE(0,C,7,9,"div",0),2&l&&m.Y8G("ngIf",null==v.cartDetails?null:v.cartDetails.showBookNowWithoutPayment)},dependencies:[p.YU,p.bT,x.V,A.D9],styles:[".wrapper[_ngcontent-%COMP%]{border-radius:5px;width:100%;margin-bottom:20px;padding:22px 20px 20px;box-shadow:0 2px 10px #36363614;-webkit-box-shadow:0 2px 10px 0 rgba(54,54,54,.08);-ms-box-shadow:0 2px 10px 0 rgba(54,54,54,.08);-moz-box-shadow:0 2px 10px 0 rgba(54,54,54,.08);-o-box-shadow:0 2px 10px 0 rgba(54,54,54,.08);background-color:var(--almatar-surface-card)}.book-now-without-payment-section[_ngcontent-%COMP%]{line-height:45px;display:flex;align-items:center;justify-content:space-between}.book-now-without-payment-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.book-now-without-payment-section[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:139px;height:45px;font-size:15px;font-weight:500;color:var(--almatar-surface-card);border:none}.book-now-without-payment-section[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .bookings{padding:10.5px 32px;position:relative;border-radius:4px;background-color:transparent;width:100%}.book-now-without-payment-section[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .bookings .content{position:absolute;top:calc(50% + 10px);left:calc(50% - 50px)}"]})}}return y})()},89644:(F,R,i)=>{i.d(R,{y:()=>p});var m=i(60177),t=i(54438);let p=(()=>{class x{static{this.\u0275fac=function(S){return new(S||x)}}static{this.\u0275mod=t.$C({type:x})}static{this.\u0275inj=t.G2t({imports:[m.MD]})}}return x})()},52075:(F,R,i)=>{i.d(R,{O:()=>rt});var m=i(60177),t=i(54438),p=i(89417),x=i(41780),A=i(70799),O=i(40605),S=i(77048),b=i(90117),C=i(8878),M=i(98862),y=i(26491),I=i(78315),_=i(52154),l=i(91369),v=i(51188),E=i(75480);const h=()=>({width:"25rem"}),T=d=>({active:d}),G=(d,g)=>({"send-again-disabled":d,"send-again-active":g}),N=(d,g)=>({redeemedAmount:d,remainingAmount:g}),Y=d=>({maxAmount:d});function z(d,g){1&d&&(t.j41(0,"div",1),t.nrm(1,"p-progressSpinner",12),t.k0s())}function L(d,g){if(1&d){const s=t.RV6();t.j41(0,"form",55)(1,"div",56)(2,"div",57)(3,"span",58),t.EFF(4,"05 |"),t.k0s(),t.nrm(5,"input",59),t.nI1(6,"translate"),t.k0s(),t.j41(7,"button",60),t.bIt("click",function(){t.eBV(s);
1const P=t.XpG(3);return t.Njj(P.requestOTP())}),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()}if(2&d){let s;const u=t.XpG(3);t.Y8G("formGroup",u.phoneNumberForm),t.R7$(),t.Y8G("ngClass",t.eq3(9,T,"VALID"===u.phoneNumberForm.status)),t.R7$(4),t.FS9("placeholder",t.bMT(6,5,"SHARED.phone-number")),t.R7$(2),t.Y8G("disabled",null==(s=u.phoneNumberForm.get("phoneNumber"))?null:s.invalid),t.R7$(),t.SpI(" ",t.bMT(9,7,"mokafaa.request-OTP")," ")}}function j(d,g){if(1&d){const s=t.RV6();t.j41(0,"form",55)(1,"div",56)(2,"div",57),t.nrm(3,"input",61),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",62),t.bIt("click",function(){t.eBV(s);const P=t.XpG(3);return t.Njj(P.requestOTP())}),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()}if(2&d){let s;const u=t.XpG(3);t.Y8G("formGroup",u.cifNumberForm),t.R7$(),t.Y8G("ngClass",t.eq3(10,T,"VALID"===u.cifNumberForm.status)),t.R7$(2),t.Mz_("placeholder"," ",t.bMT(4,6,"anb.CIFNumber"),""),t.R7$(2),t.Y8G("disabled",null==(s=u.cifNumberForm.get("cifNumber"))?null:s.invalid),t.R7$(),t.SpI(" ",t.bMT(7,8,"mokafaa.request-OTP")," ")}}function K(d,g){if(1&d){const s=t.RV6();t.j41(0,"div",53)(1,"button",54),t.bIt("click",function(){t.eBV(s);
1const P=t.XpG(2);return t.Njj(P.activeValidationMethod=P.validationMethods.PhoneNumber)}),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",54),t.bIt("click",function(){t.eBV(s);const P=t.XpG(2);return t.Njj(P.activeValidationMethod=P.validationMethods.cif)}),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.DNE(7,L,10,11,"form",55)(8,j,8,12)}if(2&d){const s=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.eq3(9,T,s.activeValidationMethod===s.validationMethods.PhoneNumber)),t.R7$(),t.SpI(" ",t.bMT(3,5,"SHARED.phone-number")," "),t.R7$(2),t.Y8G("ngClass",t.eq3(11,T,s.activeValidationMethod===s.validationMethods.cif)),t.R7$(),t.SpI(" ",t.bMT(6,7,"anb.CIFNumber")," "),t.R7$(2),t.vxM(7,s.activeValidationMethod===s.validationMethods.PhoneNumber?7:8)}}function Z(d,g){1&d&&(t.j41(0,"p",68),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&d&&(t.R7$(),t.JRh(t.bMT(2,1,"mokafaa.receive-OTP")))}function J(d,g){if(1&d&&(t.j41(0,"span",81),t.EFF(1),t.k0s()),2&d){const s=t.XpG(3);t.R7$(),t.JRh(s.formattedTime)}}function Q(d,g){if(1&d&&(t.j41(0,"div",82),t.nrm(1,"span",83),t.nI1(2,"translate"),t.k0s()),2&d){const s=t.XpG(4);t.R7$(),t.Y8G("innerHTML",t.i5U(2,1,"anb.minRedeemable",t.l_i(4,N,s.reedemFormGroup.get("amount").value,s.amount()-s.reedemFormGroup.get("amount").value)),t.npT)}}function $(d,g){if(1&d&&(t.nrm(0,"div",84),t.nI1(1,"translate")),2&d){const s=t.XpG(4);t.Y8G("innerHTML",t.i5U(1,1,"anb.maxRedeemable",t.eq3(4,Y,s.amount())),t.npT)}}function U(d,g){if(1&d&&(t.j41(0,"div",79),t.DNE(1,Q,3,7,"div",82)(2,$,2,6),t.k0s()),2&d){const s=t.XpG(3);t.R7$(),t.vxM(1,null!=s.reedemFormGroup.controls.amount.errors&&s.reedemFormGroup.controls.amount.errors.min?1:null!=s.reedemFormGroup.controls.amount.errors&&s.reedemFormGroup.controls.amount.errors.max?2:-1)}}function V(d,g){if(1&d&&(t.j41(0,"div",80),t.nrm(1,"span",83),t.nI1(2,"translate"),t.k0s()),2&d){const s=t.XpG(3);t.R7$(),t.Y8G("innerHTML",t.i5U(2,1,"anb.partialPayment",t.l_i(4,N,s.reedemFormGroup.get("amount").value,s.amount()-s.reedemFormGroup.get("amount").value)),t.npT)}}function at(d,g){if(1&d){const s=t.RV6();t.j41(0,"div",63)(1,"form",55)(2,"div",64)(3,"label",65),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nrm(6,"input",66),t.k0s(),t.j41(7,"div",67),t.DNE(8,Z,3,3,"p",68)(9,J,2,1),t.j41(10,"a",69),t.bIt("click",function(){t.eBV(s);
1const P=t.XpG(2);return t.Njj(P.requestOTP())}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"a",70),t.bIt("click",function(){t.eBV(s);const P=t.XpG(2);return t.Njj(P.changeNumber())}),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",64)(17,"label",71),t.EFF(18),t.nI1(19,"translate"),t.k0s(),t.j41(20,"div",72)(21,"span",73),t.qSk(),t.j41(22,"svg",74),t.nrm(23,"path",75),t.k0s(),t.joV(),t.j41(24,"span",76),t.EFF(25," | "),t.k0s()(),t.nrm(26,"input",77),t.j41(27,"button",78),t.bIt("click",function(){t.eBV(s);const P=t.XpG(2);return t.Njj(P.redeemPoints())}),t.EFF(28),t.nI1(29,"translate"),t.k0s()()(),t.DNE(30,U,3,1,"div",79)(31,V,3,7,"div",80),t.k0s()()}if(2&d){const s=t.XpG(2);t.R7$(),t.Y8G("formGroup",s.reedemFormGroup),t.R7$(3),t.JRh(t.bMT(5,11,"mokafaa.OTP-number")),t.R7$(4),t.vxM(8,0==s.remaining?8:9),t.R7$(2),t.Y8G("ngClass",t.l_i(21,G,0!=s.remaining,0==s.remaining)),t.R7$(),t.JRh(t.bMT(12,13,"sign-in.send-again")),t.R7$(3),t.JRh(t.bMT(15,15,"anb.changeNumber")),t.R7$(4),t.JRh(t.bMT(19,17,"mokafaa.amount")),t.R7$(9),t.Y8G("disabled","INVALID"===s.reedemFormGroup.status),t.R7$(),t.SpI(" ",t.bMT(29,19,"mokafaa.redeem-pay")," "),t.R7$(2),t.vxM(30,s.reedemFormGroup.controls.amount.invalid&&(s.reedemFormGroup.controls.amount.dirty||s.reedemFormGroup.controls.amount.touched)?30:-1),t.R7$(),t.vxM(31,s.reedemFormGroup.get("amount").value&&s.reedemFormGroup.get("amount").value<=s.amount()?31:-1)}}function q(d,g){if(1&d&&(t.j41(0,"div",13)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s()(),t.j41(4,"div",14)(5,"div",15),t.qSk(),t.j41(6,"svg",16),t.nrm(7,"path",17)(8,"path",18)(9,"path",19)(10,"path",20)(11,"path",21)(12,"path",22)(13,"path",23)(14,"path",24)(15,"path",25)(16,"path",26)(17,"path",27)(18,"path",28)(19,"path",29)(20,"path",30)(21,"path",31)(22,"path",32)(23,"path",33)(24,"path",34)(25,"path",35)(26,"path",36)(27,"path",37)(28,"path",38)(29,"path",39)(30,"path",40)(31,"path",41)(32,"path",42)(33,"path",43)(34,"path",44)(35,"path",45)(36,"path",46)(37,"path",47)(38,"path",48)(39,"path",49)(40,"path",50)(41,"path",51)(42,"path",52),t.k0s()(),t.joV(),t.j41(43,"p"),t.EFF(44),t.nI1(45,"translate"),t.k0s()(),t.DNE(46,K,9,13)(47,at,32,24)),2&d){const s=t.XpG();t.R7$(2),t.JRh(t.bMT(3,3,"anb.loyaltyPoints")),t.R7$(42),t.JRh(t.bMT(45,5,"anb.rewardsProgram")),t.R7$(2),t.vxM(46,s.showRedeemSection()?47:46)}}function tt(d,g){1&d&&(t.j41(0,"div",7),t.qSk(),t.j41(1,"svg",85),t.nrm(2,"path",86)(3,"path",87)(4,"path",88)(5,"path",89)(6,"path",90)(7,"path",91)(8,"path",92),t.k0s()())}function k(d,g){1&d&&(t.j41(0,"div",7),t.qSk(),t.j41(1,"svg",16),t.nrm(2,"path",17)(3,"path",18)(4,"path",19)(5,"path",20)(6,"path",21)(7,"path",22)(8,"path",23)(9,"path",24)(10,"path",25)(11,"path",26)(12,"path",27)(13,"path",28)(14,"path",29)(15,"path",30)(16,"path",31)(17,"path",32)(18,"path",33)(19,"path",34)(20,"path",35)(21,"path",36)(22,"path",37)(23,"path",38)(24,"path",39)(25,"path",40)(26,"path",41)(27,"path",42)(28,"path",43)(29,"path",44)(30,"path",45)(31,"path",46)(32,"path",47)(33,"path",48)(34,"path",49)(35,"path",50)(36,"path",51)(37,"path",52),t.k0s()())}function D(d,g){if(1&d&&(t.j41(0,"h3",8),t.EFF(1),t.k0s()),2&d){const s=t.XpG();t.R7$(),t.SpI(" ",s.currentErrorObject().title," ")}}function X(d,g){if(1&d&&(t.j41(0,"p",9),t.EFF(1),t.k0s()),2&d){const s=t.XpG();t.R7$(),t.SpI(" ",s.currentErrorObject().description," ")}}var w=function(d){return d.PhoneNumber="phoneNumber",d.cif="cif",d}(w||{});const ot={201:{icon:"error",title:"anb.201-title",description:"anb.201-subtitle"},202:{icon:"error",title:"anb.202-title",description:"anb.202-subtitle"},203:{icon:"error",title:"anb.203-title",description:"anb.203-subtitle"},204:{icon:"error",title:"anb.204-title",description:"anb.204-subtitle"},205:{icon:"error",title:"anb.205-title",description:"anb.205-subtitle"},206:{icon:"error",title:"anb.206-title",description:"anb.206-subtitle"},207:{icon:"error",title:"anb.207-title",description:"anb.207-subtitle"}};let rt=(()=>{class d{constructor(){this.translateService=(0,t.WQX)(x.c$),this.fb=(0,t.WQX)(p.ok),this.mokafaaService=(0,t.WQX)(y.O),this.paymentService=(0,t.WQX)(l.WG),this.router=(0,t.WQX)(v.Ix),this.paymentMethodsEnum=I.M3,this.bookData=t.hFB.required(),this.amount=t.hFB.required(),this.encryptedKey=t.hFB.required(),this.product=t.hFB.required(),this.openWarningPopupEvent=(0,t.CGW)(),this.showRedeemSection=(0,t.vPA)(!1),this.OTPRequestId=(0,t.vPA)(""),this.showValidationPopup=!1,this.phoneNumberForm=new p.gE({phoneNumber:new p.MJ(null,[p.k0.required,p.k0.pattern(/^\d{8}$/),p.k0.minLength(8),p.k0.maxLength(8)])}),this.cifNumberForm=new p.gE({cifNumber:new p.MJ(null,[p.k0.required,p.k0.minLength(8),p.k0.maxLength(8)])}),this.activeValidationMethod=w.PhoneNumber,this.validationMethods=w,this.remaining=0,this.isLoading=(0,t.vPA)(!1),this.currentErrorObject=(0,t.vPA)({icon:"error",title:"anb.206-title",description:"anb.206-subtitle"})}ngOnInit(){this.reedemFormGroup=this.fb.group({otp:[null,[p.k0.required,p.k0.minLength(4),p.k0.maxLength(6)]],amount:[null,[p.k0.required,p.k0.min(1),p.k0.max(Math.ceil(this.amount()))]]})}ngOnChanges(s){if(s.amount&&!s.amount.firstChange){const u=s.amount.currentValue;this.reedemFormGroup.get("amount")?.setValidators([p.k0.required,p.k0.min(1),p.k0.max(Math.ceil(u))]),this.reedemFormGroup.get("amount")?.updateValueAndValidity()}}changeNumber(){this.showRedeemSection.set(!1),this.stopTimer(),this.OTPRequestId.set("")}startTimer(){this.stopTimer(),this.remaining=180,this.sub=(0,O.Y)(1e3).pipe((0,S.v)(()=>this.remaining>0)).subscribe(()=>this.remaining--)}get formattedTime(){return`${Math.floor(this.remaining/60).toString().padStart(2,"0")}:${(this.remaining%60).toString().padStart(2,"0")}`}stopTimer(){this.sub&&this.sub.unsubscribe()}getErrorInfo(s){this.currentErrorObject.set(ot[s])}checkCouponValidation(){return!!this.bookData().couponCode&&(this.openWarningPopupEvent.emit(this.activeValidationMethod===w.PhoneNumber?this.phoneNumberForm.get("phoneNumber")?.value:this.cifNumberForm.get("cifNumber")?.value),!0)}
1requestOTP(){if(0==this.remaining&&(this.phoneNumberForm.markAllAsTouched(),this.cifNumberForm.markAllAsTouched(),!this.checkCouponValidation())){if(this.activeValidationMethod===w.PhoneNumber){if(!this.phoneNumberForm.valid)return}else if(!this.cifNumberForm.valid)return;this.isLoading.set(!0),(this.activeValidationMethod!==w.PhoneNumber||this.phoneNumberForm.valid)&&(this.activeValidationMethod!==w.cif||this.cifNumberForm.valid)&&this.mokafaaService.requsetOTP({paymentId:this.bookData().paymentId,...this.activeValidationMethod===w.PhoneNumber&&{phone:`+9665${this.phoneNumberForm.get("phoneNumber")?.value}`},...this.activeValidationMethod===w.cif&&{cif:this.cifNumberForm.get("cifNumber")?.value},paymentMethod:this.paymentMethodsEnum.ANB_PAY}).subscribe({next:({data:s})=>{this.OTPRequestId.set(s.OTPRequestId),this.isLoading.set(!1),this.showRedeemSection.set(!0),this.startTimer()},error:s=>{console.warn("\u{1f680} ~ AnbPointsComponent ~ requestOTP ~ err:",s),this.isLoading.set(!1),this.showStatusPopup(s)}})}}redeemPoints(){if(this.reedemFormGroup.markAllAsTouched(),!this.reedemFormGroup.valid||this.checkCouponValidation())return;const s={paymentId:this.bookData().paymentId,platform:"web",requestId:this.encryptedKey(),paymentMethod:this.paymentMethodsEnum.ANB_PAY,OTPRequestId:this.OTPRequestId(),OTPValue:this.reedemFormGroup.get("otp")?.value,amount:Math.floor(this.reedemFormGroup.get("amount")?.value),redirectURL:`${_.dT.baseURL}/${this.translateService.currentLang}/${this.product()}/loading/${this.encryptedKey()}`};this.paymentService.createTransition(this.product,Math.floor(this.reedemFormGroup.get("amount")?.value),s,"web").subscribe({next:u=>{u&&this.router.navigate([`${this.translateService.currentLang}/${this.product()}/loading/${this.encryptedKey()}`])},error:u=>{console.warn("\u{1f680} ~ AnbPointsComponent ~ redeemPoints ~ err:",u),this.showStatusPopup(u),this.OTPRequestId.set("")}})}showStatusPopup(s){const P=s.error.errors[0].code||s.status;[101,204,207,209,210,301,302,401,500,1012,1015,1017,2007].includes(P)?this.currentErrorObject.set({icon:"error",title:this.translateService.instant(`anb.${P}-title`),description:this.translateService.instant(`anb.${P}-subtitle`)}):this.currentErrorObject.set({icon:"error",title:"",description:s.error?.message||s.error?.errors[0]?.message||s.message||"anb.redeem-error-msg"}),this.showValidationPopup=!0}close(){this.showValidationPopup=!1}static{this.\u0275fac=function(u){return new(u||d)}}static{this.\u0275cmp=t.VBU({type:d,selectors:[["Anb-points"]],inputs:{bookData:[t.Mj6.SignalBased,"bookData"],amount:[t.Mj6.SignalBased,"amount"],encryptedKey:[t.Mj6.SignalBased,"encryptedKey"],product:[t.Mj6.SignalBased,"product"]},outputs:{openWarningPopupEvent:"openWarningPopupEvent"},standalone:!0,features:[t.OA$,t.aNF],decls:17,vars:19,consts:[[1,"anb-points","my-3"],[1,"d-flex","justify-content-center","align-items-center",2,"height","200px"],[3,"visibleChange","visible","modal","draggable","resizable"],[1,"hotels-message-popup__header"],[1,"hotels-message-popup__close-icon",3,"click","name"],[1,"hotels-message-popup__content"],[1,"hotels-message-popup__icon-wrapper"],[1,"hotels-message-popup__icon"],[1,"hotels-message-popup__title"],[1,"hotels-message-popup__desc"],[1,"hotels-message-popup__buttons"],[3,"click"],["strokeWidth","4","animationDuration",".5s"],[1,"header"],[1,"d-flex","anb-points__content"],[1,"icon"],["width","49","height","25","viewBox","0 0 49 25","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.6895 5.13486C11.3974 4.31349 9.77745 4.19075 8.36965 4.81387C6.04582 5.83351 3.8377 7.1175 1.80314 8.62808C0.655686 9.47778 0 10.7712 0 12.1685C0 13.5658 0.646044 14.8498 1.78385 15.69C3.79913 17.1817 5.98796 18.4657 8.28286 19.4854L9.03498 16.3415C7.16434 15.4634 5.38049 14.3966 3.73163 13.1693C3.28808 12.8388 3.22058 12.4045 3.22058 12.1685C3.22058 11.7625 3.41343 11.3849 3.74127 11.1394C5.58298 9.77989 7.57897 8.61864 9.68102 7.69341C10.2692 7.4385 10.7417 7.67452 10.9249 7.78782C11.0985 7.90111 11.5131 8.23155 11.5131 8.85466V19.3626H14.7337V8.85466C14.7337 7.34408 13.9719 5.9468 12.6702 5.13486","fill","#0072DA"],["d","M46.7954 8.61974C44.7608 7.10916 42.5527 5.82517 40.2289 4.80553L40.1903 4.89994L39.4575 7.93998C41.3571 8.818 43.1698 9.89429 44.8476 11.1405C45.1755 11.386 45.3683 11.7636 45.3683 12.1696C45.3683 12.4056 45.3008 12.8399 44.8573 13.1704C43.0252 14.5393 41.0196 15.7006 38.9175 16.6353C38.3293 16.8996 37.8472 16.6636 37.664 16.5503C37.4904 16.437 37.0758 16.1065 37.0758 15.4929V0H33.8359V15.4929C33.8359 17.0035 34.617 18.3913 35.9091 19.2127C36.6515 19.6847 37.5097 19.9208 38.3679 19.9208C39.2261 19.9208 39.6407 19.7886 40.2482 19.5242C42.572 18.4951 44.7801 17.2112 46.8147 15.7006C47.9525 14.8603 48.5985 13.5763 48.5985 12.179C48.5985 10.7723 47.9428 9.47888 46.7954 8.63862","fill","#0072DA"],["d","M31.3166 19.3633H28.0864V10.3376C28.0864 8.81753 26.8233 7.58074 25.2708 7.58074H20.6521V19.3633H17.4219V7.55242C17.4219 5.8247 18.8586 4.41797 20.6232 4.41797H25.2708C28.6071 4.41797 31.3166 7.07092 31.3166 10.3376V19.3633Z","fill","#0072DA"],["d","M28.965 23.5954V23.7937L28.9168 23.822C28.8396 23.822 28.7914 23.8032 28.7432 23.7843C28.7432 23.8126 28.7529 23.8409 28.7529 23.8692C28.7529 24.1525 28.2611 24.4546 27.7982 24.4546C27.3354 24.4546 26.9883 24.1619 26.9883 23.7087C26.9883 23.2556 27.0751 23.1895 27.239 22.9629L27.4029 23.0573C27.2872 23.2461 27.2197 23.4538 27.2197 23.6332C27.2197 23.9731 27.4608 24.1808 27.8079 24.1808C28.155 24.1808 28.5311 24.0109 28.5311 23.8126C28.5311 23.6143 28.5021 23.6899 28.4443 23.6332L28.1936 23.3594L28.3672 23.1989C28.6275 23.4727 28.704
16 23.5671 28.9168 23.5766L28.965 23.6049V23.5954ZM27.75 24.8417C27.75 24.9266 27.6825 25.0022 27.5958 25.0022C27.509 25.0022 27.4318 24.9266 27.4318 24.8417C27.4318 24.7567 27.509 24.6812 27.5958 24.6812C27.6825 24.6812 27.75 24.7473 27.75 24.8417ZM28.155 24.8417C28.155 24.9266 28.0875 25.0022 28.0007 25.0022C27.914 25.0022 27.8368 24.9361 27.8368 24.8417C27.8368 24.7473 27.914 24.6906 28.0007 24.6906C28.0875 24.6906 28.155 24.7567 28.155 24.8417Z","fill","#0072DA"],["d","M29.8622 23.5936V23.7918L29.8043 23.8202C29.6018 23.8202 29.4379 23.7541 29.3608 23.6219C29.2836 23.7541 29.1197 23.8202 28.9076 23.8202L28.8594 23.7918V23.5936L28.9076 23.5652C29.1101 23.5652 29.2451 23.4992 29.2451 23.3198V22.81H29.4765V23.3198C29.4765 23.4897 29.6018 23.5747 29.8043 23.5747L29.8622 23.603V23.5936ZM29.2065 22.3757C29.2065 22.2907 29.2836 22.2246 29.3704 22.2246C29.4572 22.2246 29.5343 22.2907 29.5343 22.3757C29.5343 22.4606 29.4572 22.5362 29.3704 22.5362C29.2836 22.5362 29.2065 22.4701 29.2065 22.3757Z","fill","#0072DA"],["d","M31.5591 23.1964C31.5591 23.6024 31.212 23.8101 30.5467 23.8101H29.8138L29.7656 23.7818V23.5835L29.8138 23.5552H30.0742V21.752H30.296V23.187C30.4985 22.8094 30.7588 22.5922 31.0191 22.5922C31.2795 22.5922 31.5688 22.8471 31.5688 23.187M30.5563 23.5458C31.0674 23.5458 31.347 23.4136 31.347 23.1964C31.347 22.9793 31.1927 22.8566 31.0191 22.8566C30.8456 22.8566 30.5467 23.102 30.3345 23.5458H30.5563Z","fill","#0072DA"],["d","M33.1041 23.5642L33.1523 23.602V23.7908L33.1041 23.8286H32.8823C32.7859 24.2251 32.5063 24.4517 32.1591 24.4517C31.812 24.4517 31.9084 24.4234 31.7734 24.3573L31.8409 24.1213C31.947 24.1685 32.0531 24.1968 32.1495 24.1968C32.3616 24.1968 32.5641 24.0835 32.6509 23.8286H32.4484C32.0531 23.8286 31.8602 23.5737 31.8602 23.2527C31.8602 22.9317 32.082 22.6484 32.3713 22.6484C32.6605 22.6484 32.9209 22.9506 32.9209 23.4981C32.9209 24.0457 32.9209 23.5453 32.9209 23.5737H33.1041V23.5642ZM32.6991 23.5642V23.5265C32.6991 23.1299 32.6027 22.8939 32.3713 22.8939C32.1399 22.8939 32.0916 23.0544 32.0916 23.2432C32.0916 23.432 32.1977 23.5642 32.487 23.5642H32.7088H32.6991Z","fill","#0072DA"],["d","M33.0547 23.7916V23.5933L33.1029 23.565C33.3343 23.565 33.4404 23.48 33.4404 23.3195V21.7617H33.6718V23.3195C33.6718 23.6499 33.4693 23.8293 33.1125 23.8293L33.0643 23.801L33.0547 23.7916Z","fill","#0072DA"],["d","M34.2978 21.752H34.0664V23.8196H34.2978V21.752Z","fill","#0072DA"],["d","M37.3947 23.5954V23.7937L37.3465 23.822C37.2693 23.822 37.2211 23.8032 37.1729 23.7843C37.1729 23.8126 37.1825 23.8409 37.1825 23.8692C37.1825 24.1525 36.6908 24.4546 36.2279 24.4546C35.7651 24.4546 35.418 24.1619 35.418 23.7087C35.418 23.2556 35.5048 23.1895 35.6687 22.9629L35.8326 23.0573C35.7169 23.2461 35.6494 23.4538 35.6494 23.6332C35.6494 23.9731 35.8904 24.1808 36.2376 24.1808C36.5847 24.1808 36.9608 24.0109 36.9608 23.8126C36.9608 23.6143 36.9318 23.6899 36.874 23.6332L36.6233 23.3594L36.7968 23.1989C37.0572 23.4727 37.1343 23.5671 37.3465 23.5766L37.3947 23.6049V23.5954ZM36.1797 24.8417C36.1797 24.9266 36.1122 25.0022 36.0254 25.0022C35.9387 25.0022 35.8615 24.9266 35.8615 24.8417C35.8615 24.7567 35.9387 24.6812 36.0254 24.6812C36.1122 24.6812 36.1797 24.7473 36.1797 24.8417ZM36.5847 24.8417C36.5847 24.9266 36.5172 25.0022 36.4304 25.0022C36.3436 25.0022 36.2665 24.9361 36.2665 24.8417C36.2665 24.7473 36.3436 24.6906 36.4304 24.6906C36.5172 24.6906 36.5847 24.7567 36.5847 24.8417Z","fill","#0072DA"],["d","M37.2969 23.7905V23.5922L37.3451 23.5639C37.5861 23.5639 37.7115 23.4695 37.7115 23.2712C37.7115 23.073 37.644 22.7992 37.5572 22.6198L37.7694 22.5254C37.8658 22.7237 37.9429 23.0447 37.9429 23.2807C37.9429 23.5167 37.7501 23.8283 37.3451 23.8283L37.2969 23.7999V23.7905ZM37.5379 24.2814C37.5379 24.1965 37.6151 24.1209 37.7019 24.1209C37.7886 24.1209 37.8658 24.187 37.8658 24.2814C37.8658 24.3758 37.7983 24.4419 37.7019 24.4419C37.6054 24.4419 37.5379 24.3664 37.5379 24.2814Z","fill","#0072DA"],["d","M39.5433 23.5954V23.7937L39.4951 23.822C39.3601 23.822 39.254 23.7937 39.1769 23.7465C39.1094 24.1619 38.849 24.464 38.473 24.464C38.0969 24.464 38.1258 24.3885 38.0391 24.2941L38.1644 24.0958C38.2801 24.1619 38.3958 24.1997 38.4826 24.1997C38.7526 24.1997 38.9551 23.9353 38.9551 23.5482C38.9551 23.1612 38.8876 23.2744 38.8008 23.0384L39.0226 22.9629L39.1576 23.35C39.2154 23.5199 39.2926 23.5766 39.5047 23.5766L39.5529 23.6049L39.5433 23.5954Z","fill","#0072DA"],["d","M41.0556 23.5932V23.7915L41.0074 23.8198C40.6217 23.8198 40.4481 23.7726 40.2456 23.6215C40.0335 23.7537 39.8
1021 23.8198 39.4935 23.8198L39.4453 23.7915V23.5932L39.4935 23.5649C39.7442 23.5649 39.9082 23.5366 40.0721 23.4799L39.6574 23.1117V22.8662C39.8021 22.7057 40.0528 22.6113 40.2939 22.6113C40.5349 22.6113 40.8531 22.7529 40.8531 23.0267C40.8531 23.3005 40.7374 23.31 40.4578 23.4894C40.5735 23.5366 40.7181 23.5649 41.017 23.5649L41.0652 23.5932H41.0556ZM39.8503 23.0173L40.2649 23.3666C40.4481 23.2816 40.6313 23.14 40.6313 23.0456C40.6313 22.9512 40.4867 22.8662 40.3035 22.8662C40.1203 22.8662 39.966 22.9134 39.8599 23.0079","fill","#0072DA"],["d","M40.9609 23.7916V23.5933L41.0091 23.565C41.2406 23.565 41.3466 23.48 41.3466 23.3195V21.7617H41.5781V23.3195C41.5781 23.6499 41.3756 23.8293 41.0188 23.8293L40.9706 23.801L40.9609 23.7916Z","fill","#0072DA"],["d","M42.2041 21.752H41.9727V23.8196H42.2041V21.752Z","fill","#0072DA"],["d","M45.5599 23.5933V23.7916L45.5117 23.8199C45.2996 23.8199 45.1453 23.7349 45.0778 23.6122C44.9235 23.7821 44.6246 23.8388 44.2582 23.8388C43.67 23.8388 43.3711 23.6499 43.3711 23.2251C43.3711 22.8002 43.4193 22.8474 43.5061 22.6114L43.6893 22.6586C43.6314 22.8474 43.6025 22.9985 43.6025 23.1307C43.6025 23.4328 43.7954 23.5744 44.2582 23.5744C44.721 23.5744 44.9525 23.5083 44.9525 23.3195V21.7617H45.1839V23.3289C45.1839 23.48 45.3092 23.5744 45.5214 23.5744L45.5696 23.6027L45.5599 23.5933ZM44.2678 22.7908C44.1907 22.7908 44.1232 22.7908 44.0461 22.7719V22.6397C44.1232 22.6397 44.1907 22.6586 44.2582 22.6586C44.345 22.6586 44.4125 22.6586 44.4125 22.6303C44.4125 22.602 44.3643 22.602 44.3161 22.5925L44.2486 22.5737C44.1329 22.5548 44.0846 22.5076 44.0846 22.4132C44.0846 22.3187 44.1907 22.2149 44.3064 22.2149C44.4221 22.2149 44.4607 22.2527 44.5089 22.3282L44.4221 22.3943C44.4028 22.3565 44.3546 22.3471 44.3161 22.3471C44.2775 22.3471 44.21 22.3659 44.21 22.4037C44.21 22.4415 44.2486 22.4509 44.2968 22.4604L44.3739 22.4792C44.48 22.4981 44.5378 22.5453 44.5378 22.6397C44.5378 22.7342 44.4318 22.8002 44.2678 22.8002","fill","#0072DA"],["d","M46.4481 23.5936V23.7918L46.3903 23.8202C46.1878 23.8202 46.0239 23.7541 45.9467 23.6219C45.8696 23.7541 45.7057 23.8202 45.4935 23.8202L45.4453 23.7918V23.5936L45.4935 23.5652C45.696 23.5652 45.831 23.4992 45.831 23.3198V22.81H46.0624V23.3198C46.0624 23.4897 46.1878 23.5747 46.3903 23.5747L46.4481 23.603V23.5936ZM45.7924 22.3757C45.7924 22.2907 45.8696 22.2246 45.9564 22.2246C46.0431 22.2246 46.1203 22.2907 46.1203 22.3757C46.1203 22.4606 46.0431 22.5362 45.9564 22.5362C45.8696 22.5362 45.7924 22.4701 45.7924 22.3757Z","fill","#0072DA"],["d","M47.3427 23.5942V23.7924L47.2848 23.8207C47.0823 23.8207 46.9184 23.7547 46.8413 23.6225C46.7641 23.7547 46.6002 23.8207 46.3881 23.8207L46.3398 23.7924V23.5942L46.3881 23.5658C46.5905 23.5658 46.7255 23.4997 46.7255 23.3204V22.8105H46.957V23.3204C46.957 23.4903 47.0823 23.5753 47.2848 23.5753L47.3427 23.6036V23.5942ZM47.0052 24.2739C47.0052 24.3589 46.9377 24.4344 46.8413 24.4344C46.7448 24.4344 46.6773 24.3589 46.6773 24.2739C46.6773 24.189 46.7545 24.1134 46.8413 24.1134C46.928 24.1134 47.0052 24.1795 47.0052 24.2739Z","fill","#0072DA"],["d","M47.2461 23.7916V23.5933L47.2943 23.565C47.5257 23.565 47.6318 23.48 47.6318 23.3195V21.7617H47.8632V23.3195C47.8632 23.6499 47.6607 23.8293 47.3039 23.8293L47.2557 23.801L47.2461 23.7916Z","fill","#0072DA"],["d","M48.4931 21.752H48.2617V23.8196H48.4931V21.752Z","fill","#0072DA"],["d","M0.046875 23.4034C0.046875 23.0919 0.297578 22.9314 0.692919 22.9314H0.953265V22.8653C0.953265 22.6481 0.818271 22.5632 0.644707 22.5632C0.471143 22.5632 0.374719 22.6576 0.326506 22.7992L0.114372 22.752C0.152942 22.5065 0.374718 22.3555 0.644707 22.3555C0.914695 22.3555 1.19433 22.5443 1.19433 22.8936V23.8094H1.00148L0.953265 23.6017C0.866483 23.7339 0.721846 23.8283 0.50007 23.8283C0.278294 23.8283 0.046875 23.6961 0.046875 23.394M0.953265 23.1674V23.1202H0.702562C0.422931 23.1202 0.297579 23.2146 0.297579 23.3846C0.297579 23.5545 0.394003 23.6111 0.548282 23.6111C0.702561 23.6111 0.953265 23.4884 0.953265 23.1674Z","fill","#0072DA"],["d","M1.6875 23.8188V22.3838H1.92856V22.6293C2.02499 22.4593 2.16962 22.3555 2.36247 22.3555C2.55532 22.3555 2.49747 22.3744 2.56496 22.4027L2.51675 22.6198C2.4589 22.5915 2.40104 22.5726 2.3239 22.5726C2.10213 22.5726 1.92856 22.7992 1.92856 23.2713V23.8094H1.6875V23.8188Z","fill","#0072DA"],["d","M2.77734 23.4034C2.77734 23.0919 3.02805 22.9314 3.42339 22.9314H3.68373V22.8653C3.68373 22.6481 3.54874 22.5632 3.37518 22.5632C3.20161 22.5632 3.10519 22.6576 3.05697 22.7992L2.84484 22.7
152C2.88341 22.5065 3.10519 22.3555 3.37518 22.3555C3.64516 22.3555 3.9248 22.5443 3.9248 22.8936V23.8094H3.73195L3.68373 23.6017C3.59695 23.7339 3.45232 23.8283 3.23054 23.8283C3.00876 23.8283 2.77734 23.6961 2.77734 23.394M3.68373 23.1674V23.1202H3.43303C3.1534 23.1202 3.02805 23.2146 3.02805 23.3846C3.02805 23.5545 3.12447 23.6111 3.27875 23.6111C3.43303 23.6111 3.68373 23.4884 3.68373 23.1674Z","fill","#0072DA"],["d","M4.66684 23.6398V23.8098H4.42578V21.7988H4.66684V22.5636C4.76327 22.4408 4.91755 22.3653 5.09111 22.3653C5.52502 22.3653 5.7468 22.6863 5.7468 23.1017C5.7468 23.5171 5.51538 23.8381 5.09111 23.8381C4.66684 23.8381 4.7247 23.7343 4.66684 23.6398ZM5.50574 23.0923C5.50574 22.7807 5.34182 22.5636 5.07183 22.5636C4.80184 22.5636 4.64756 22.7901 4.64756 23.0923C4.64756 23.3944 4.80184 23.621 5.07183 23.621C5.34182 23.621 5.50574 23.4038 5.50574 23.0923Z","fill","#0072DA"],["d","M7.03906 23.8188V22.3838H7.28012V22.6576C7.38619 22.4782 7.55975 22.3555 7.76225 22.3555C7.96474 22.3555 8.21544 22.516 8.21544 22.8181V23.8188H7.97438V22.8747C7.97438 22.6765 7.87796 22.5726 7.70439 22.5726C7.53083 22.5726 7.28012 22.8086 7.28012 23.2052V23.8188H7.03906Z","fill","#0072DA"],["d","M8.62891 23.4034C8.62891 23.0919 8.87961 22.9314 9.27495 22.9314H9.5353V22.8653C9.5353 22.6481 9.4003 22.5632 9.22674 22.5632C9.05317 22.5632 8.95675 22.6576 8.90854 22.7992L8.6964 22.752C8.73497 22.5065 8.95675 22.3555 9.22674 22.3555C9.49673 22.3555 9.77636 22.5443 9.77636 22.8936V23.8094H9.58351L9.5353 23.6017C9.44851 23.7339 9.30388 23.8283 9.0821 23.8283C8.86032 23.8283 8.62891 23.6961 8.62891 23.394M9.5353 23.1674V23.1202H9.28459C9.00496 23.1202 8.87961 23.2146 8.87961 23.3846C8.87961 23.5545 8.97603 23.6111 9.13031 23.6111C9.28459 23.6111 9.5353 23.4884 9.5353 23.1674Z","fill","#0072DA"],["d","M10.3366 23.3755V22.5919H10.0859V22.3842H10.3366V21.9499L10.5777 21.7988V22.3842H10.973V22.5919H10.5777V23.3944C10.5777 23.5549 10.6548 23.6304 10.7802 23.6304C10.9055 23.6304 10.8959 23.6304 10.9441 23.5926L11.002 23.7909C10.9248 23.8287 10.838 23.8381 10.7513 23.8381C10.5006 23.8381 10.327 23.6965 10.327 23.3755","fill","#0072DA"],["d","M11.3477 21.9688C11.3477 21.8744 11.4248 21.7988 11.5212 21.7988C11.6176 21.7988 11.6948 21.8744 11.6948 21.9688C11.6948 22.0632 11.6176 22.1387 11.5212 22.1387C11.4248 22.1387 11.3477 22.0632 11.3477 21.9688ZM11.4055 22.3842H11.6466V23.8192H11.4055V22.3842Z","fill","#0072DA"],["d","M12.0898 23.1016C12.0898 22.7146 12.3502 22.3652 12.7937 22.3652C13.2373 22.3652 13.4976 22.7146 13.4976 23.1016C13.4976 23.4887 13.2373 23.838 12.7937 23.838C12.3502 23.838 12.0898 23.4887 12.0898 23.1016ZM13.2469 23.1016C13.2469 22.8278 13.0927 22.5729 12.7937 22.5729C12.4948 22.5729 12.3405 22.8278 12.3405 23.1016C12.3405 23.3754 12.4948 23.6303 12.7937 23.6303C13.0927 23.6303 13.2469 23.3754 13.2469 23.1016Z","fill","#0072DA"],["d","M13.9609 23.8188V22.3838H14.202V22.6576C14.3081 22.4782 14.4816 22.3555 14.6841 22.3555C14.8866 22.3555 15.1373 22.516 15.1373 22.8181V23.8188H14.8963V22.8747C14.8963 22.6765 14.7998 22.5726 14.6263 22.5726C14.4527 22.5726 14.202 22.8086 14.202 23.2052V23.8188H13.9609Z","fill","#0072DA"],["d","M15.5547 23.4034C15.5547 23.0919 15.8054 22.9314 16.2007 22.9314H16.4611V22.8653C16.4611 22.6481 16.3261 22.5632 16.1525 22.5632C15.979 22.5632 15.8825 22.6576 15.8343 22.7992L15.6222 22.752C15.6608 22.5065 15.8825 22.3555 16.1525 22.3555C16.4225 22.3555 16.7021 22.5443 16.7021 22.8936V23.8094H16.5093L16.4611 23.6017C16.3743 23.7339 16.2297 23.8283 16.0079 23.8283C15.7861 23.8283 15.5547 23.6961 15.5547 23.394M16.4611 23.1674V23.1202H16.2104C15.9307 23.1202 15.8054 23.2146 15.8054 23.3846C15.8054 23.5545 15.9018 23.6111 16.0561 23.6111C16.2104 23.6111 16.4611 23.4884 16.4611 23.1674Z","fill","#0072DA"],["d","M17.4442 21.7988H17.2031V23.8098H17.4442V21.7988Z","fill","#0072DA"],["d","M19.0536 23.6398V23.8098H18.8125V21.7988H19.0536V22.5636C19.15 22.4408 19.3043 22.3653 19.4778 22.3653C19.9117 22.3653 20.1335 22.6863 20.1335 23.1017C20.1335 23.5171 19.9021 23.8381 19.4778 23.8381C19.0536 23.8381 19.1114 23.7343 19.0536 23.6398ZM19.8925 23.0923C19.8925 22.7807 19.7285 22.5636 19.4585 22.5636C19.1886 22.5636 19.0343 22.7901 19.0343 23.0923C19.0343 23.3944 19.1886 23.621 19.4585 23.621C19.7285 23.621 19.8925 23.4038 19.8925 23.0923Z","fill","#0072DA"],["d","M20.5 23.4034C20.5 23.0919 20.7507 22.9314 21.146 22.9314H21.4064V22.8653C21.4064 22.6481 21.2714 22.5632 21.0978 22.5632C20.9243 22.5632 20.8278 22.6576 20.7796 22.7992L20.5675 22.752C20.6061 22.5065 20.8278 22.3555 21.0978 22.3555C21.3678 22.3555 21.6475 22.5443 21.6475 22.8936V23.8094H21.4546L21.4064 23.6017C21.3196 23.7339 21.175 23.8283 20.9532 23.8283C20.7314 23.8283 20.5 23.6961 20.5 23.394M21.4064 23.1674V23.1202H21.1557C20.8761 23.1202 20.7507 23.2146 20.7507 23.3846C20.7507 23.5545 20.8471 23.6111 21.0014 23.6111C21.1557 23.6111 21.4064 23.4884 21.4064 23.1674Z","fill","#0072DA"],["d","M22.1406 23.8188V22.3838H22.3817V22.6576C22.4878 22.4782 22.6613 22.3555 22.8638 22.3555C23.0663 22.3555 23.317 22.516 23.317 22.8181V23.8188H23.0759V22.8747C23.0759 22.6765 22.9795 22.5726 22.806 22.5726C22.6324 22.5726 22.3817 22.8086 22.3817 23.2052V23.8188H22.1406Z","fill","#0072DA"],["d","M23.8555 23.8192V21.7988H24.0965V22.9979L24.6654 22.3842H24.9644L24.3472 23.0451L25.0126 23.8192H24.7136L24.0965 23.0923V23.8192H23.8555Z","fill","#0072DA"],[1,"anb-points__tabs-wrapper","my-2"],[3,"click","ngClass"],[3,"formGroup"],[1,"anb-points__otp-container","mt-2",3,"ngClass"],[1,"ph
1one-box"],[1,"prefix"],["type","text","formControlName","phoneNumber",1,"form-control","phone-input",3,"placeholder"],[1,"btn","request-btn",3,"click","disabled"],["formControlName","cifNumber","type","text",1,"form-control","phone-input",3,"placeholder"],["type","submit",1,"btn","request-btn",3,"click","disabled"],[1,"anb-points__redeem-section","mt-4"],[1,"mb-4"],["for","otpInput",1,"form-label"],["type","text","id","otpInput","placeholder","Enter OTP","formControlName","otp","maxlength","6",1,"form-control","otp-input","mt-2"],[1,"timer-section"],[1,"mb-0"],["id","sendAgain",3,"click","ngClass"],[1,"change-number",3,"click"],["for","amountInput",1,"form-label"],[1,"amount-input-wrapper","mt-2"],[1,"currency-symbol"],["width","15","height","15","viewBox","0 0 15 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.8268 11.4079C14.0823 10.8416 14.2511 10.2268 14.3158 9.58212L10.1046 10.4778V8.75601L13.8267 7.96504C14.0821 7.39872 14.251 6.78388 14.3157 6.13924L10.1045 7.03412V0.842159C9.45923 1.20447 8.88616 1.68674 8.42032 2.25561V7.39223L6.73613 7.7502V0C6.09085 0.362181 5.51778 0.844578 5.05194 1.41345V8.10806L1.28355 8.90883C1.02809 9.47515 0.859096 10.09 0.794276 10.7346L5.05194 9.82981V11.9981L0.48902 12.9677C0.233558 13.534 0.0646933 14.1489 0 14.7935L4.7761 13.7785C5.16489 13.6977 5.49906 13.4678 5.71631 13.1515L6.59222 11.8529V11.8526C6.68315 11.7183 6.73613 11.5563 6.73613 11.3818V9.47184L8.42032 9.11386V12.5574L13.8267 11.4077L13.8268 11.4079Z","fill","#1B1A1F"],[1,"px-2"],["type","number","id","amountInput","placeholder","Enter amount","formControlName","amount","min","1",1,"amount-input"],["id","redeemBtn",1,"redeem-btn",3,"click","disabled"],[1,"mt-1"],[1,"custom-alert","success","d-flex","align-items-center","gap-2"],["id","timer",1,"timer"],[1,"custom-alert","error"],[3,"innerHTML"],[1,"custom-alert","error",3,"innerHTML"],["width","79","height","79","viewBox","0 0 79 79","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M38.2264 66.6488C54.1002 66.6488 66.9684 53.8718 66.9684 38.1105C66.9684 22.3493 54.1002 9.57227 38.2264 9.57227C22.3526 9.57227 9.48438 22.3493 9.48438 38.1105C9.48438 53.8718 22.3526 66.6488 38.2264 66.6488Z","fill","#FCB609"],["d","M39.497 9.11697C34.0736 9.11697 28.9829 10.5247 24.5719 12.9905C28.6342 10.8094 33.2841 9.57041 38.2261 9.57041C54.0999 9.57041 66.9682 22.3474 66.9682 38.1086C66.9682 53.8699 54.0999 66.6471 38.2261 66.6471C22.3523 66.6471 9.48402 53.8699 9.48402 38.1086C9.48402 33.2017 10.7319 28.5848 12.9285 24.5531C10.4452 28.9327 9.02734 33.9873 9.02734 39.3706C9.02734 56.079 22.6691 69.6261 39.4988 69.6261C56.3284 69.6261 69.9702 56.0807 69.9702 39.3706C69.9702 22.6603 56.3284 9.11523 39.4988 9.11523L39.497 9.11697Z","fill","#AC720E"],["d","M24.5748 12.9902C19.6505 15.6335 15.5918 19.6634 12.9297 24.5528C15.6697 19.7196 19.7072 15.7109 24.5748 12.9902Z","fill","#729823"],["d","M46.384 22.6346C46.384 20.1591 44.3629 18.1523 41.8698 18.1523C39.3766 18.1523 37.3555 20.1591 37.3555 22.6346V44.9899C37.3555 47.4654 39.3766 49.4722 41.8698 49.4722C44.3629 49.4722 46.384 47.4654 46.384 44.9899V22.6346Z","fill","#AC720E"],["d","M41.898 52.3301H41.8415C39.364 52.3301 37.3555 54.3243 37.3555 56.7843C37.3555 59.2443 39.364 61.2386 41.8415 61.2386H41.898C44.3756 61.2386 46.384 59.2443 46.384 56.7843C46.384 54.3243 44.3756 52.3301 41.898 52.3301Z","fill","#AC720E"],["d","M44.0129 21.8514C44.0129 19.3759 41.9918 17.3691 39.4987 17.3691C37.0055 17.3691 34.9844 19.3759 34.9844 21.8514V44.2628C34.9844 46.7382 37.0055 48.745 39.4987 48.745C41.9918 48.745 44.0129 46.7382 44.0129 44.2628V21.8514Z","fill","white"],["d","M44.0129 56.0291C44.0129 53.5537 41.9918 51.5469 39.4987 51.5469C37.0055 51.5469 34.9844 53.5537 34.9844 56.0291C34.9844 58.5046 37.0055 60.5114 39.4987 60.5114C41.9918 60.5114 44.0129 58.5046 44.0129 56.0291Z","fill","white"]],template:function(u,P){1&u&&(t.j41(0,"section",0),t.DNE(1,z,2,0,"div",1)(2,q,48,7),t.k0s(),t.j41(3,"p-dialog",2),t.mxI("visibleChange",function(et){return t.DH7(P.showValidationPopup,et)||(P.showValidationPopup=et),et}),t.j41(4,"div",3)(5,"almatar-icon",4),t.nI1(6,"translate"),t.bIt("click",function(){return P.showValidationPopup=!1}),t.k0s()(),t.j41(7,"div",5)(8,"div",6),t.DNE(9,tt,9,0,"div",7)(10,k,38,0),t.k0s(),t.DNE(11,D,2,1,"h3",8)(12,X,2,1,"p",9),t.k0s(),t.j41(13,"div",10)(14,"button",11),t.bIt("click",function(){return P.close()}),t.EFF(15),t.nI1(16,"translate"),t.k0s()()()),2&u&&(t.R7$(),t.vxM(1,P.isLoading()?1:2),t.R7$(2),t.Aen(t.lJ4(18,h)),t.R50("visible",P.showValidationPopup),t.Y8G("modal",!0)("draggable",!1)("resizable",!1),t.R7$(2),t.Y8G("name","x-mark"),t.BMQ("aria-label",t.bMT(6,14,"SHARED.close"))("role","button"),t.R7$(4),t.vxM(9,"error"==P.currentErrorObject().icon?9:10),t.R7$(2),t.vxM(11,P.currentErrorObject().title?11:-1),t.R7$(),t.vxM(12,P.currentErrorObject().description?12:-1),t.R7$(3),t.SpI(" ",t.bMT(16,16,"SHARED.ok")," "))},dependencies:[A.xs,x.h,x.D9,p.YN,p.qT,p.me,p.Q0,p.BC,p.cb,p.tU,p.VZ,p.X1,p.j4,p.JD,m.YU,b.d,b.p,C.P,C.l,M.o,E.t],styles:[".anb-points[_ngcontent-%COMP%]{background-color:var(--almatar-neutral-surface-card);border-radius:var(--almatar-border-radius);padding:var(--almatar-payment-space);margin-top:var(--almatar-payment-space)}.anb-points[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:calc(21 * var(--almatar-font-size-ratio, 1) * 1px);
1font-weight:var(--almatar-font-weight-semibold);margin-bottom:var(--almatar-payment-space);text-align:start;margin-top:0}.anb-points__content[_ngcontent-%COMP%]{gap:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);align-items:center}.anb-points__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.anb-points__tabs-wrapper[_ngcontent-%COMP%]{padding:4px;background-color:#f7f7f8;width:-moz-fit-content;width:fit-content;border-radius:6px}.anb-points__tabs-wrapper[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:#0072da;cursor:pointer;background:transparent}.anb-points__tabs-wrapper[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:#c1d9f8!important}.anb-points__otp-container[_ngcontent-%COMP%]{background:#f2f2f2;border-radius:6px;overflow:hidden;display:flex;height:56px}.anb-points__otp-container.active[_ngcontent-%COMP%]{border:2px solid var(--almatar-neutral-text-highlight-static)}.anb-points__otp-container[_ngcontent-%COMP%] .phone-box[_ngcontent-%COMP%]{flex-grow:1;display:flex;align-items:center;padding:0 4px;background:#f2f2f2}.anb-points__otp-container[_ngcontent-%COMP%] .phone-box[_ngcontent-%COMP%] .prefix[_ngcontent-%COMP%]{color:#555;font-weight:500;margin-right:8px;text-wrap:nowrap}.anb-points__otp-container[_ngcontent-%COMP%] .phone-box[_ngcontent-%COMP%] .phone-input[_ngcontent-%COMP%]{background:transparent!important;border:none;box-shadow:none;padding-inline:3px;font-size:16px}.anb-points__otp-container[_ngcontent-%COMP%] .phone-box[_ngcontent-%COMP%] .phone-input[_ngcontent-%COMP%]::placeholder{color:#7a7a7a}@media (max-width: 479px){.anb-points__otp-container[_ngcontent-%COMP%] .phone-box[_ngcontent-%COMP%] .phone-input[_ngcontent-%COMP%]{width:150px}}.anb-points__otp-container[_ngcontent-%COMP%] .request-btn[_ngcontent-%COMP%]{background:var(--almatar-neutral-text-highlight-static);color:#fff;border-radius:0;padding:12px 20px;font-weight:500;border:none;font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px)}.anb-points__otp-container[_ngcontent-%COMP%] .request-btn[_ngcontent-%COMP%]:disabled{background:#707083;cursor:not-allowed}@media (max-width: 479px){.anb-points[_ngcontent-%COMP%] .paymentPoints-wrapper.border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid var(--almatar-neutral-surface-input-default);margin-bottom:var(--almatar-payment-space)}}.anb-points__redeem-section[_ngcontent-%COMP%] .form-label[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.anb-points__redeem-section[_ngcontent-%COMP%] .otp-input[_ngcontent-%COMP%]{background-color:#e9ecef;border:none;border-radius:12px;padding:20px;font-size:1.1rem;color:var(--almatar-neutral-text-primary-static);display:block;width:100%}.anb-points__redeem-section[_ngcontent-%COMP%] .otp-input[_ngcontent-%COMP%]:focus{background-color:#e9ecef;box-shadow:none;border:none}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;margin:15px 0 30px}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%] .timer[_ngcontent-%COMP%]{color:var(--almatar-neutral-text-highlight-static);font-size:1.1rem;font-weight:500}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%] .send-again-disabled[_ngcontent-%COMP%]{color:#adb5bd;text-decoration:none;font-size:14px;cursor:not-allowed;font-weight:500}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%] .send-again-disabled[_ngcontent-%COMP%]:hover{text-decoration-line:underline;cursor:pointer}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%] .send-again-active[_ngcontent-%COMP%]{color:var(--almatar-neutral-text-highlight-static);text-decoration:none;font-size:14px;cursor:not-allowed;font-weight:500}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%] .send-again-active[_ngcontent-%COMP%]:hover{text-decoration-line:underline;cursor:pointer}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%] .change-number[_ngcontent-%COMP%]{color:var(--almatar-neutral-text-highlight-static);text-decoration:none;font-size:14px;font-weight:500}.anb-points__redeem-section[_ngcontent-%COMP%] .timer-section[_ngcontent-%COMP%] .change-number[_ngcontent-%COMP%]:hover{text-decoration-line:underline;cursor:pointer}.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:12px;background-color:#e9ecef;height:56px;overflow:hidden}.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%] .amount-input[_ngcontent-%COMP%]{flex:1;background-color:#e9ecef;border:none;padding:20px;font-size:1.1rem;color:var(--almatar-neutral-text-primary-static)}.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%] .amount-input[_ngcontent-%COMP%]:focus{background-color:#e9ecef;box-shadow:none;outline:none}.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%] .currency-symbol[_ngcontent-%COMP%]{background-color:#e9ecef;padding:20px;
1display:flex;align-items:center;font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:600;color:#000}.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%] .redeem-btn[_ngcontent-%COMP%]{background-color:var(--almatar-neutral-text-highlight-static);color:#fff;border:none;padding:12px 24px;font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:500;border-radius:0 12px 12px 0;cursor:pointer;transition:background-color .3s}.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%] .redeem-btn[_ngcontent-%COMP%]:disabled{background-color:var(--almatar-neutral-text-disabled)}@media (max-width: 479px){.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%] .currency-symbol[_ngcontent-%COMP%]{padding-inline:10px}.anb-points__redeem-section[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%] .amount-input[_ngcontent-%COMP%]{padding-inline:0px}}@media (max-width: 576px){.amount-input-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:stretch}.amount-input-wrapper[_ngcontent-%COMP%] .amount-input[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.amount-input-wrapper[_ngcontent-%COMP%] .redeem-btn[_ngcontent-%COMP%]{flex:0 0 110px;padding:20px 0;text-align:center;white-space:nowrap}}.custom-alert[_ngcontent-%COMP%]{height:56px;border-radius:12px;padding:12px;gap:5111px}.custom-alert.success[_ngcontent-%COMP%]{background-color:#f0fdf5}.custom-alert.error[_ngcontent-%COMP%]{background-color:#ffe5e8}.custom-alert.warning[_ngcontent-%COMP%]{background-color:#ffc107;color:#000}.custom-alert.info[_ngcontent-%COMP%]{background-color:#17a2b8}.hotels-message-popup__header[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;padding:24px 24px 0;border-top-right-radius:var(--almatar-border-radius);border-top-left-radius:var(--almatar-border-radius)}.hotels-message-popup__image[_ngcontent-%COMP%]{display:block;margin:auto auto 16px}.hotels-message-popup__icon-wrapper[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin:auto}.hotels-message-popup__icon[_ngcontent-%COMP%]{display:block}.hotels-message-popup__icon[_ngcontent-%COMP%] svg{color:var(--almatar-primary-icon-interactive)}.hotels-message-popup__buttons[_ngcontent-%COMP%]{padding:0 24px 24px;display:flex}.hotels-message-popup__buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1;width:100%;height:56px;opacity:1;border-radius:6px;padding:12px 16px;background-color:var(--almatar-primary);color:var(--almatar-text-on-primary);outline:none;cursor:pointer}@media (min-width: 479px){.hotels-message-popup__buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-weight:var(--almatar-font-weight-semibold)}}.hotels-message-popup__buttons[_ngcontent-%COMP%] button-disabled[_ngcontent-%COMP%]{opacity:.7;cursor:not-allowed}.hotels-message-popup__content[_ngcontent-%COMP%]{padding:0 24px 24px;text-align:center}.hotels-message-popup__title[_ngcontent-%COMP%]{margin-bottom:calc(8 * var(--almatar-font-size-ratio, 1) * 1px);font-size:calc(21 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:511;color:var(--almatar-neutral-text-primary-static)}@media (max-width: 768px){.hotels-message-popup__title[_ngcontent-%COMP%]{font-size:calc(18 * var(--almatar-font-size-ratio, 1) * 1px)}}.hotels-message-popup__desc[_ngcontent-%COMP%]{margin:0;color:var(--almatar-neutral-text-secondary-static);font-size:calc(14 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-regular);width:95%}@media (max-width: 768px){.hotels-message-popup__desc[_ngcontent-%COMP%]{font-size:calc(14 * var(--almatar-font-size-ratio, 1) * 1px)}} p-dynamicdialog .hotels-popup-dialog.p-dialog{border:none;border-radius:24px;width:458px}@media (max-width: 479px){ p-dynamicdialog .hotels-popup-dialog.p-dialog{width:100%}} p-dynamicdialog .hotels-popup-dialog.p-dialog .p-dialog-header{display:none} p-dynamicdialog .hotels-popup-dialog.p-dialog .p-dialog-content{padding:0!important} p-dynamicdialog .hotels-popup-dialog.p-dialog .p-dialog-content:last-of-type{border-radius:12px} body .p-component{border:none!important;border-radius:12px} .p-dialog .p-dialog-header{display:none;border:none} .p-dialog .p-dialog-content{padding:0!important;border-radius:12px} .p-dialog .p-dialog-content:last-of-type{border-bottom-right-radius:12px;border-bottom-left-radius:12px}"]})}}return d})()},34923:(F,R,i)=>{i.d(R,{W:()=>M});var m=i(10467),t=i(54438),p=i(59598),x=i(25046),A=i(17409),O=i(52154),S=i(21897),b=i(51188),C=i(41780);let M=(()=>{class y{constructor(_,l,v,E,h,T){this.activatedRoute=_,this.paymentService=l,this._errorMod
1alsService=v,this.translateService=E,this.router=h,this.riskService=T,this.productId="",this.encryptedKey="",this.applePayEvent=new t.bkB}ngOnInit(){this.encryptedKey=this.router.url.toString().includes("/flights/")?this.activatedRoute.snapshot.params.cartId:this.activatedRoute.snapshot.params.encryptedKey,setTimeout(()=>{this.checkSessionID()},1500)}checkSessionID(){var _=this;return(0,m.A)(function*(){const l=yield _.riskService.getDeviceSessionId();l&&(_.paymentService.deviceSessionId=l)})()}onApplePayButtonClicked(){var _=this;return(0,m.A)(function*(){if(!ApplePaySession)return void console.warn("\u274c Apple Pay is not supported in this browser.");const l=new ApplePaySession(14,{countryCode:O.dT.supportedCountryForApplePay,currencyCode:_.currencyCode,supportedNetworks:["discover","visa","masterCard","amex"],merchantCapabilities:["supports3DS"],total:{label:"almatar",amount:_.amount,type:"final"}});l.begin(),l.onvalidatemerchant=function(){var v=(0,m.A)(function*(E){try{const h=yield _.paymentService.validateMerchant(E.validationURL).toPromise();if(!h.data)throw new Error("Merchant validation failed.");l.completeMerchantValidation(h.data)}catch(h){console.warn("Merchant validation error:",h);const T=new x.A;T.paymetFaild=!0,_._errorModalsService.showErrorModal(_.translateService.instant("SHARED.APPLE_PAY_ERR_MERCHANT"),T,"",_.encryptedKey),l.abort()}});return function(E){return v.apply(this,arguments)}}(),l.onpaymentauthorized=function(){var v=(0,m.A)(function*(E){try{const h=yield _.paymentService.processPayment(E.payment.token,_.checkoutCode).toPromise();201==h.status?(l.completePayment(ApplePaySession.STATUS_SUCCESS),window.location.href=h?.data?.redirectUrl):l.completePayment(ApplePaySession.STATUS_FAILURE)}catch(h){console.warn("\u274c Payment Processing Error:",h),l.completePayment(ApplePaySession.STATUS_FAILURE)}});return function(E){return v.apply(this,arguments)}}(),l.oncancel=v=>{console.warn("\u26a0\ufe0f Apple Pay session was canceled.",v)}})()}static{this.\u0275fac=function(l){return new(l||y)(t.rXU(b.nX),t.rXU(p.W),t.rXU(A.i3),t.rXU(C.c$),t.rXU(b.Ix),t.rXU(S.r))}}static{this.\u0275cmp=t.VBU({type:y,selectors:[["almatar-apple-pay"]],inputs:{amount:"amount",currencyCode:"currencyCode",checkoutCode:"checkoutCode"},outputs:{applePayEvent:"applePayEvent"},decls:4,vars:3,consts:[["id","apple-pay-container","buttonstyle","white-outline","locale","en-US",1,"apple-pay-button",3,"click"],["src","assets/img/apple-logo.svg","alt","Apple Pay","loading","lazy",1,"apple-pay-button__img"]],template:function(l,v){1&l&&(t.j41(0,"button",0),t.bIt("click",function(){return v.onApplePayButtonClicked()}),t.nrm(1,"img",1),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&l&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"SHARED.pay"),"\n"))},dependencies:[C.D9],styles:[".apple-pay-button[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-weight:var(--almatar-font-weight-regular);border-radius:6px;box-shadow:none;outline:none;border:0;cursor:pointer;font-size:calc(18 * var(--almatar-font-size-ratio, 1) * 1px);display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;width:100%;max-width:230px;height:56px}.apple-pay-button__img[_ngcontent-%COMP%]{height:1.5rem}.apple-pay-button__img[_ngcontent-%COMP%]:dir(rtl){margin-left:10px}"]})}}return y})()},20849:(F,R,i)=>{i.d(R,{AP:()=>m.A,Od:()=>p.O});var m=i(971),p=(i(34923),i(52075))},971:(F,R,i)=>{i.d(R,{A:()=>A});var m=i(10467),t=i(54438),p=i(41780),x=i(52197);let A=(()=>{class O{constructor(){this.renderer=(0,t.WQX)(t.sFG),this.el=(0,t.WQX)(t.aKT),this.translate=(0,t.WQX)(p.c$),this.amount=t.hFB.required()}loadMispayWidgetAndGetLink(){return new Promise((b,C)=>{this.loadMispayWidget().then(()=>this.getLinkForWidget()).then(()=>b()).catch(M=>C(M))})}loadMispayScript(){return new Promise((b,C)=>{if(document.querySelector('script[data-mispay="true"]'))return void b();const M=this.renderer.createElement("script");M.src=x.c.mispaySecretKey,M.defer=!0,M.async=!0,M.setAttribute("data-mispay","true"),M.onload=()=>b(),M.onerror=y=>C(y),this.renderer.appendChild(document.head,M)})}loadMispayWidget(){var b=this;return(0,m.A)(function*(){try{yield b.loadMispayScript();const C=b.renderer.createElement("mispay-widget");b.renderer.setAttribute(C,"amount",String(b.amount())),b.renderer.setAttribute(C,"lang",b.translate.currentLang||"en"),yield b.renderer.appendChild(b.el.nativeElement.querySelector("#widgetContainer"),C)}catch(C){console.warn("Error loading Mispay widget:",C)}})()}getLinkForWidget(){return new Promise(b=>{const M=this.el.nativeElement.querySelector("mispay-widget").shadowRoot;this.link=M.querySelector(".mispay-widget-text a"),b()})}showWidget(){if(this.link)try{this.link.click()}catch(b){console.warn("Error opening Mispay link:",b)}}static{this.\u0275fac=function(C){return new(C||O)}}static{this.\u0275cmp=t.VBU({type:O,selectors:[["app-mispay-widget-wrapper"]],inputs:{amount:[t.Mj6.SignalBased,"amount"]},standalone:!0,features:[t.aNF],decls:1,vars:0,consts:[["id","widgetContainer",2,"display","none"]],template:function(C,M){1&C&&t.nrm(0,"div",0)},changeDetection:0})}}return O})()},21755:(F,R,i)=>{i.d(R,{v:()=>En});var m=i(10467),t=i(54438),p=i(60177),x=i(517),A=i(9310),O=i(41780),S=i(66012),b=i(88437),C=i(29662),M=i(17409),y=i(25046),I=i(36809),_=i(60188),l=i(89417),v=i(28140),E=i(72782),h=i(52154),T=i(56164),G=i(21500),N=i(14352),Y=i(3380),z=i(5942),L=i(49734),j=i(345);function K(n,c){1&n&&(t.j41(0,"div",4)(1,"div",5),t.nrm(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"div",10),t.k0s()())}function Z(n,c){if(1&n){const e=t.RV6();t.qex(0),t.DNE(1,K,7,0,"div",2),t.j41(2,"iframe",3),t.bIt("load",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.onLoad())}),t.k0s(),t.bVm()}if(2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.loading),t.R7$(),t.Y8G("src",e.tamaraWidgetUrl,t.f$h)}}function J(n,c){1&n&&t.EFF(0," OPS there was an error loading the payment widget, amount should not be null. Please try again later.\n")}let Q=(()=>{class n{constructor(e,a){this.sanitizer=e,this.config=a,this.loading=!0,this.tamaraWidgetUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`${h.dT.tamarBaseV2URL}?lang=${a.data.lang}&public_key=${h.dT.tamaraPublicKey}&country=SA&amount=${a.data.amount}`)}onLoad(){this.loading=!1}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(j.up),t.rXU(L.sb))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["almatar-tamara-widget-v2"]],standalone:!0,features:[t.aNF],decls:3,vars:2,consts:[["elseTemplate",""],[4,"ngIf","ngIfElse"],["class","payment-loader",4,"ngIf"],["width","100%","height","100%","title","Tamara Payment Widget",2,"border","none","overflow","hidden",3,"load","src"],[1,"payment-loader"],[1,"spinner"],[1,"rect1"],[1,"rect2"],[1,"rect3"],[1,"rect4"],[1,"rect5"]],template:function(a,o){if(1&a&&t.DNE(0,Z,3,2,"ng-container",1)(1,J,1,0,"ng-template",null,0,t.C5r),2&a){const r=t.sdS(2);t.Y8G("ngIf",o.config.data.amount)("ngIfElse",r)}},dependencies:[p.MD,p.bT],styles:['.tph[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%]{color:transparent!important;border-radius:2px;background:linear-gradient(to right,#e7e6e6,#ddd)}.tph[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{visibility:hidden}.hide-text[_ngcontent-%COMP%]{text-indent:-9999px;overflow:hidden;width:0;height:0;display:inline-block}.bold[_ngcontent-%COMP%]{font-weight:600}.center-text[_ngcontent-%COMP%]{text-align:center}.no-select[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.padding[_ngcontent-%COMP%]{padding:10px}.margin[_ngcontent-%COMP%]{margin:10px}.margin-bottom[_ngcontent-%COMP%]{display:block;margin-bottom:10px}.radius[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius)}.radius.radius-half[_ngcontent-%COMP%]{border-radius:6px}.stretch[_ngcontent-%COMP%]{display:block;width:100%}
1.tab-gradient[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:transparent;color:#2d2b5a;border-radius:34px;border:1px solid #2D2B5A}.tab-gradient[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#fff}.tab-gradient.tab-active[_ngcontent-%COMP%]{border:none;color:#fff;background:#543cd0;background:linear-gradient(90deg,#543cd0,#ff4e6e)}.button[_ngcontent-%COMP%]{border:none;padding:0 10px;height:34px;color:#fff;border-radius:34px;font-size:15px;display:flex;justify-content:center;align-items:center;box-sizing:border-box;cursor:pointer}.button[disabled][_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.button.btn-bold[_ngcontent-%COMP%]{text-decoration:none;height:40px;line-height:40px;background:#2d2b5a;padding:0 20px;box-shadow:1px 1px 2px #2d2b5acc;border-radius:12px}.button.btn-bold[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#deedfa}.button.btn-add[_ngcontent-%COMP%]{color:#2d2b5a;text-decoration:none;line-height:34px;padding:0 20px;height:40px;background:transparent;border-radius:12px;border:1px dashed #9593BD}.button.btn-add[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-aux[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;height:40px;background:#39bb92;padding:0 20px;border-radius:12px}.button.btn-aux[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:12px}.button.btn-aux-mini[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini-outline[_ngcontent-%COMP%]{text-decoration:none;background:transparent;color:#2d2b5a;padding:0 20px;border:1px solid #2D2B5A;border-radius:12px}.button.btn-aux-mini-outline[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-simple[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:6px}.button.btn-simple[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-alert[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;border-radius:6px;display:inline-flex;height:45px;border-radius:var(--almatar-border-radius);background-color:#d56976;padding:0 40px}.shell-image[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);transition:all ease;position:relative;overflow:hidden;height:200px}@keyframes _ngcontent-%COMP%_shell-animate{0%{left:200%}to{left:-50%}}.shell-image[_ngcontent-%COMP%]:after{content:"";position:absolute;width:200%;height:200%;inset:0;animation:_ngcontent-%COMP%_shell-animate 1.5s alternate-reverse ease-in infinite;box-shadow:inset 0 0 200px 200px #ececec,0 0 200px 200px #ececec}.input[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;border:1px solid #9593BD;border-radius:var(--almatar-border-radius);padding:0 10px;min-height:54px;box-sizing:border-box;font-size:15px;flex-grow:1;background-color:transparent;font-weight:600;text-decoration:none;color:#2d2b5a;font-weight:400}.input[_ngcontent-%COMP%]::placeholder, .input-link[_ngcontent-%COMP%]::placeholder{color:#9593bd}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{outline:none}.input[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%]{top:0;visibility:visible;opacity:1}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{border-color:#2d2b5a}.input.leading-icon[_ngcontent-%COMP%], .input-link.leading-icon[_ngcontent-%COMP%]{text-indent:20px}.input.no-border[_ngcontent-%COMP%], .input-link.no-border[_ngcontent-%COMP%]{border:none}.no-scrollbars[_ngcontent-%COMP%]{overflow:scroll;overflow:-moz-scrollbars-none;scrollbar-width:none;-ms-overflow-style:none}.no-scrollbars[_ngcontent-%COMP%]::-webkit-scrollbar{width:0!important;height:0!important}.no-scrollbars[_ngcontent-%COMP%]:-webkit-scrollbar{width:0;height:0}.b2c-card[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);width:100%}.b2c-card.payment-wrapper[_ngcontent-%COMP%]{background-color:var(--almatar-neutral-surface-card);padding:var(--almatar-payment-space);margin-bottom:var(--almatar-payment-space)!important;border-radius:var(--almatar-border-radius)}.radio-button-style[_ngcontent-%COMP%]{padding-inline-start:30px;margin-inline-end:0;color:#464646;max-width:90%;position:relative;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{border:2px solid var(--almatar-primary-surface)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]:after{background-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{opacity:1;background-color:var(--almatar-primary-surface)}.radio-button-style[_ngcontent-%COMP%] .payment_methods_options[_ngcontent-%COMP%]{font-size:15px;color:#363636;font-weight:500}.radio-button-style[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:50%;left:0;transform:translateY(-11px);height:20px;width:20px;border:2px solid var(--almatar-primary-surface);border-radius:50%}.radio-button-style[_ngcontent-%COMP%] .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;height:13px;width:13px;border-color:var(--almatar-primary-surface);border-radius:50%;display:block} .tamara-dialog{width:100%;height:100%} .tamara-dialog .p-dialog-content{padding:0!important;overflow:hidden} .tamara-dialog .p-dialog-header{position:absolute;top:8px;right:22px;padding:.5rem;background-color:transparent;border:0px} .tamara-dialog .p-dialog-header-icons{background-color:var(--almatar-secondary-surface-hover);color:var(--almatar-secondary-icon-on-surface);border-radius:8px} .tamara-dialog .p-dialog-header-icon:focus{outline:none!important;box-shadow:none!important} [dir=rtl] .tamara-dialog .p-dialog-header{right:auto;left:7px!important}.payment-loader[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}.payment-loader[_ngcontent-%COMP%]:after{content:"";position:absolute;background:convert-rgba(#363636,.08);top:0;left:0;width:100%;height:100%;z-index:9}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{position:relative;z-index:10;width:50px;height:100px;text-align:center;font-size:10px;top:50%;left:50%;transform:translate(-50%,-50%)}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#7f41b8;height:100%;width:10px;display:inline-block;animation:_ngcontent-%COMP%_sk-stretchdelay 1.2s infinite ease-in-out;border:1px solid #eee;border-radius:134px}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect3[_ngcontent-%COMP%]{animation-delay:-1s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-stretchdelay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}']})}}return n})();
1function $(n,c){1&n&&(t.j41(0,"div",4)(1,"div",5),t.nrm(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"div",10),t.k0s()())}function U(n,c){if(1&n){const e=t.RV6();t.j41(0,"iframe",11),t.bIt("load",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.onLoad())}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("src",e.tabbyWidgetUrl,t.f$h)}}function V(n,c){if(1&n&&(t.qex(0),t.DNE(1,$,7,0,"div",2)(2,U,1,1,"iframe",3),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.loading),t.R7$(),t.Y8G("ngIf",e.tabbyWidgetUrl)}}function at(n,c){1&n&&t.EFF(0," OPS there was an error loading the payment widget, amount should not be null. Please try again later.\n")}let q=(()=>{class n{constructor(e,a,o){this.sanitizer=e,this.config=a,this.el=o,this.loading=!0,this.tabbyWidgetUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`${h.dT.tabbyBaseURLV2}/${a.data.lang}/?price=${a.data.amount}¤cy=${a.data.currencyCode}&merchant_code=${a.data.merchantCode}&public_key=${h.dT.tabbyPublicKey}`)}onLoad(){this.loading=!1}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(j.up),t.rXU(L.sb),t.rXU(t.aKT))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["almatar-tabby-widget-v2"]],standalone:!0,features:[t.aNF],decls:3,vars:2,consts:[["elseTemplate",""],[4,"ngIf","ngIfElse"],["class","payment-loader",4,"ngIf"],["width","100%","height","100%","style","border: none; overflow: hidden","title","Tabby Payment Widget",3,"src","load",4,"ngIf"],[1,"payment-loader"],[1,"spinner"],[1,"rect1"],[1,"rect2"],[1,"rect3"],[1,"rect4"],[1,"rect5"],["width","100%","height","100%","title","Tabby Payment Widget",2,"border","none","overflow","hidden",3,"load","src"]],template:function(a,o){if(1&a&&t.DNE(0,V,3,2,"ng-container",1)(1,at,1,0,"ng-template",null,0,t.C5r),2&a){const r=t.sdS(2);t.Y8G("ngIf",o.config.data.amount)("ngIfElse",r)}},dependencies:[p.MD,p.bT],styles:['.tph[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%]{color:transparent!important;border-radius:2px;background:linear-gradient(to right,#e7e6e6,#ddd)}.tph[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{visibility:hidden}.hide-text[_ngcontent-%COMP%]{text-indent:-9999px;overflow:hidden;width:0;height:0;display:inline-block}.bold[_ngcontent-%COMP%]{font-weight:600}.center-text[_ngcontent-%COMP%]{text-align:center}.no-select[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.padding[_ngcontent-%COMP%]{padding:10px}.margin[_ngcontent-%COMP%]{margin:10px}.margin-bottom[_ngcontent-%COMP%]{display:block;margin-bottom:10px}.radius[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius)}.radius.radius-half[_ngcontent-%COMP%]{border-radius:6px}.stretch[_ngcontent-%COMP%]{display:block;width:100%}.tab-gradient[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:transparent;color:#2d2b5a;border-radius:34px;border:1px solid #2D2B5A}.tab-gradient[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#fff}.tab-gradient.tab-active[_ngcontent-%COMP%]{border:none;color:#fff;background:#543cd0;background:linear-gradient(90deg,#543cd0,#ff4e6e)}.button[_ngcontent-%COMP%]{border:none;padding:0 10px;height:34px;color:#fff;border-radius:34px;font-size:15px;display:flex;justify-content:center;align-items:center;box-sizing:border-box;cursor:pointer}.button[disabled][_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.button.btn-bold[_ngcontent-%COMP%]{text-decoration:none;height:40px;line-height:40px;background:#2d2b5a;padding:0 20px;box-shadow:1px 1px 2px #2d2b5acc;border-radius:12px}.button.btn-bold[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#deedfa}.button.btn-add[_ngcontent-%COMP%]{color:#2d2b5a;text-decoration:none;line-height:34px;padding:0 20px;height:40px;background:transparent;border-radius:12px;border:1px dashed #9593BD}.button.btn-add[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-aux[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;height:40px;background:#39bb92;padding:0 20px;border-radius:12px}.button.btn-aux[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:12px}.button.btn-aux-mini[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini-outline[_ngcontent-%COMP%]{text-decoration:none;background:transparent;color:#2d2b5a;padding:0 20px;border:1px solid #2D2B5A;border-radius:12px}.button.btn-aux-mini-outline[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-simple[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:6px}.button.btn-simple[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-alert[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;border-radius:6px;display:inline-flex;height:45px;border-radius:var(--almatar-border-radius);background-color:#d56976;padding:0 40px}.shell-image[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);transition:all ease;position:relative;overflow:hidden;height:200px}@keyframes _ngcontent-%COMP%_shell-animate{0%{left:200%}to{left:-50%}}.shell-image[_ngcontent-%COMP%]:after{content:"";position:absolute;width:200%;height:200%;inset:0;animation:_ngcontent-%COMP%_shell-animate 1.5s alternate-reverse ease-in infinite;box-shadow:inset 0 0 200px 200px #ececec,0 0 200px 200px #ececec}.input[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;border:1px solid #9593BD;border-radius:var(--almatar-border-radius);padding:0 10px;min-height:54px;box-sizing:border-box;font-size:15px;flex-grow:1;background-color:transparent;font-weight:600;text-decoration:none;color:#2d2b5a;font-weight:400}.input[_ngcontent-%COMP%]::placeholder, .input-link[_ngcontent-%COMP%]::placeholder{color:#9593bd}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{outline:none}.input[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%]{top:0;visibility:visible;opacity:1}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{border-color:#2d2b5a}.input.leading-icon[_ngcontent-%COMP%], .input-link.leading-icon[_ngcontent-%COMP%]{text-indent:20px}.input.no-border[_ngcontent-%COMP%], .input-link.no-border[_ngcontent-%COMP%]{border:none}.no-scrollbars[_ngcontent-%COMP%]{overflow:scroll;overflow:-moz-scrollbars-none;scrollbar-width:none;-ms-overflow-style:none}.no-scrollbars[_ngcontent-%COMP%]::-webkit-scrollbar{width:0!important;height:0!important}.no-scrollbars[_ngcontent-%COMP%]:-webkit-scrollbar{width:0;height:0}.b2c-card[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);width:100%}.b2c-card.payment-wrapper[_ngcontent-%COMP%]{background-color:var(--almatar-neutral-surface-card);padding:var(--almatar-payment-space);margin-bottom:var(--almatar-payment-space)!important;border-radius:var(--almatar-border-radius)}.radio-button-style[_ngcontent-%COMP%]{padding-inline-start:30px;margin-inline-end:0;color:#464646;max-width:90%;position:relative;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{border:2px solid var(--almatar-primary-surface)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]:after{background-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{opacity:1;background-color:var(--almatar-primary-surface)}.radio-button-style[_ngcontent-%COMP%] .payment_methods_options[_ngcontent-%COMP%]{font-size:15px;color:#363636;font-weight:500}.radio-button-style[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:50%;left:0;transform:translateY(-11px);height:20px;width:20px;border:2px solid var(--almatar-primary-surface);border-radius:50%}.radio-button-style[_ngcontent-%COMP%] .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;height:13px;width:13px;border-color:var(--almatar-primary-surface);border-radius:50%;display:block} .tabby-dialog{width:100%;height:100%} .tabby-dialog .p-dialog-content{padding:0!important;overflow:hidden} .tabby-dialog .p-dialog-header{position:absolute;top:8px;right:13px;padding:.5rem;background-color:transparent;border:0px} .tabby-dialog .p-dialog-header-icons{background-color:var(--almatar-secondary-surface-hover);color:var(--almatar-secondary-icon-on-surface);border-radius:8px} .tabby-dialog .p-dialog-header-icon:focus{outline:none!important;box-shadow:none!important}.payment-loader[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}.payment-loader[_ngcontent-%COMP%]:after{content:"";position:absolute;background:convert-rgba(#363636,.08);top:0;left:0;width:100%;height:100%;z-index:9}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{position:relative;z-index:10;width:50px;height:100px;text-align:center;font-size:10px;top:50%;left:50%;transform:translate(-50%,-50%)}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#7f41b8;height:100%;width:10px;display:inline-block;animation:_ngcontent-%COMP%_sk-stretchdelay 1.2s infinite ease-in-out;border:1px solid #eee;border-radius:134px}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect3[_ngcontent-%COMP%]{animation-delay:-1s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-stretchdelay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}} [dir=rtl] .tabby-dialog .p-dialog-header{right:auto;left:7px!important}']})}}return n})();var tt=i(93792),D=(i(20849),i(89079)),X=i(7673),w=i(88141),ot=i(96697),rt=i(20205),d=i(
152197),g=i(78315),s=i(63793),u=i(91369),P=i(48594),it=i(47446),et=i(81021),st=i(51188),bt=i(36860),Pt=i(45864),yt=i(32479),ct=i(88972);const ft=n=>({"d-none":n});function Ct(n,c){if(1&n&&(t.j41(0,"div",1)(1,"p",2),t.EFF(2),t.nI1(3,"translate"),t.j41(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"span"),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.nrm(12,"div",3),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,5,"stc_note.pay-using")," "),t.R7$(3),t.JRh(t.bMT(6,7,"stc_note.mobile-number")),t.R7$(2),t.SpI(" ",t.bMT(8,9,"stc_note.or")," "),t.R7$(3),t.JRh(t.bMT(11,11,"stc_note.QR-code")),t.R7$(2),t.Y8G("ngClass",t.eq3(13,ft,(null==e.formData?null:e.formData.acceptedPaymentMethods.includes("stc_pay"))&&!e.showSTCForm))}}let Mt=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["app-stc-form"]],inputs:{formData:"formData",showSTCForm:"showSTCForm"},decls:1,vars:1,consts:[["id","STC-payment",4,"ngIf"],["id","STC-payment"],[1,"stc_note"],[1,"activeSTC",3,"ngClass"]],template:function(a,o){1&a&&t.DNE(0,Ct,13,15,"div",0),2&a&&t.Y8G("ngIf",null==o.formData||null==o.formData.acceptedPaymentMethods?null:o.formData.acceptedPaymentMethods.includes("stc_pay"))},dependencies:[p.YU,p.bT,O.D9],styles:["#STC-payment[_ngcontent-%COMP%] .stc_note[_ngcontent-%COMP%]{margin-bottom:0;padding-left:2rem;color:#363636}#STC-payment[_ngcontent-%COMP%] .stc_note[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ae449c}#STC-payment[_ngcontent-%COMP%] .wpwl-group-mobilePhone.show{width:70%;justify-content:space-between;margin-bottom:0}
1#STC-payment[_ngcontent-%COMP%] .wpwl-group-mobilePhone.show .wpwl-wrapper-mobilePhone{min-width:220px;width:auto}#STC-payment[_ngcontent-%COMP%] .wpwl-group-mobilePhone.show .wpwl-wrapper-mobilePhone input{width:100%}#STC-payment[_ngcontent-%COMP%] .wpwl-container-card{display:none!important}#STC-payment[_ngcontent-%COMP%] .wpwl-group-submit .wpwl-button-pay{right:10px;bottom:-240px}@media (max-width: 2000px){#STC-payment[_ngcontent-%COMP%] .wpwl-group-submit .wpwl-button-pay{bottom:-20px}}#STC-payment[_ngcontent-%COMP%] #wpwl-registrations{display:none!important}#STC-payment.default-button[_ngcontent-%COMP%] .wpwl-group-submit .wpwl-button-pay{bottom:-110px}"]})}}return n})();var Ot=i(61519);const vt=["class","animate-card"];let xt=(()=>{class n{constructor(){}ngOnInit(){}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["",8,"animate-card"]],attrs:vt,decls:15,vars:0,consts:[[1,"checkout"],[1,"credit-card-box"],[1,"flip"],[1,"front"],[1,"number"],[1,"card-holder"],[1,"card-expiration-date"],[1,"back"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.EFF(5," 4363 1234 5678 9101 "),t.k0s(),t.j41(6,"div",5)(7,"div"),t.EFF(8,"CARD HOLDER"),t.k0s()(),t.j41(9,"div",6)(10,"label"),t.EFF(11,"Expires: "),t.k0s(),t.j41(12,"div"),t.EFF(13,"MM/YY"),t.k0s()()(),t.nrm(14,"div",7),t.k0s()()())},styles:[".checkout[_ngcontent-%COMP%]{position:relative;background:url(/assets/img/Card.svg) no-repeat center;z-index:2;transition:.6s;transform-style:preserve-3d;transform:translateZ(0);padding:6rem 1rem}.checkout[_ngcontent-%COMP%] .credit-card-box[_ngcontent-%COMP%]{position:relative}.checkout[_ngcontent-%COMP%] .credit-card-box[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{position:absolute;top:20px;left:15px;font-size:20px}.checkout[_ngcontent-%COMP%] .credit-card-box[_ngcontent-%COMP%] .card-holder[_ngcontent-%COMP%]{position:absolute;top:4rem;left:1rem}.checkout[_ngcontent-%COMP%] .credit-card-box[_ngcontent-%COMP%] .card-expiration-date[_ngcontent-%COMP%]{position:absolute;top:3.5rem;display:flex;right:1rem;align-items:center}.checkout[_ngcontent-%COMP%] .credit-card-box[_ngcontent-%COMP%] .card-expiration-date[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:0 .5rem 0 0;font-size:9px}.checkout[_ngcontent-%COMP%] .credit-card-box[_ngcontent-%COMP%] .card-expiration-date[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:12px}.checkout.hover[_ngcontent-%COMP%]{background:url(/assets/img/cvv-view-back.png) no-repeat center;transform:rotateY(180deg) translateZ(0)}.checkout.hover[_ngcontent-%COMP%] .credit-card-box[_ngcontent-%COMP%]{opacity:0}"]})}}return n})();var Tt=i(21413),dt=i(56977),mt=i(62380);const kt=["gift-pay-later-confirm",""];let wt=(()=>{class n{constructor(e){this.translateService=e,this.payNowEvent=new t.bkB,this.payLaterEvent=new t.bkB,this.destroy$=new Tt.B,this.modalActionsConfig=[],this.translateService.get("SHARED.GIFT.GIFTLIST.pay-later").pipe((0,dt.Q)(this.destroy$)).subscribe(a=>{this.modalActionsConfig[0]={actionText:a,buttonType:v.O.ghostButton,actionType:E.Q.cancel}}),this.translateService.get("SHARED.GIFT.GIFTLIST.pay-now").pipe((0,dt.Q)(this.destroy$)).subscribe(a=>{this.modalActionsConfig[1]={actionText:a,buttonType:v.O.secondaryButton,actionType:E.Q.confirm}})}payNow(){this.payNowEvent.emit()}payLater(){this.payLaterEvent.emit()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(O.c$))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["","gift-pay-later-confirm",""]],inputs:{appView:"appView"},outputs:{payNowEvent:"payNowEvent",payLaterEvent:"payLaterEvent"},attrs:kt,decls:10,vars:12,consts:[["shared-modal","",3,"cancelEvent","confirmEvent","showCloseButton","appView","modalActionsConfig"],[1,"modal-content","text-center"],["src","assets/img/gift-box.svg","alt","",1,"gift-img"],[1,"sub-title"]],template:function(a,o){1&a&&(t.j41(0,"div",0),t.bIt("cancelEvent",function(){return o.payLater()})("confirmEvent",function(){return o.payNow()}),t.j41(1,"div")(2,"div",1),t.nrm(3,"img",2),t.j41(4,"h3"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",3),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()()),2&a&&(t.Y8G("showCloseButton",!1)("appView",o.appView)("modalActionsConfig",o.modalActionsConfig),t.R7$(),t.ZvI("BNPL-modal ",o.appView,""),t.R7$(4),t.JRh(t.bMT(6,8,"SHARED.GIFT.GIFTLIST.will-lose-gift")),t.R7$(3),t.JRh(t.bMT(9,10,"SHARED.GIFT.GIFTLIST.want-to-continue")))},dependencies:[mt.Y,O.D9],styles:['.tph[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%]{color:transparent!important;border-radius:2px;background:linear-gradient(to right,#e7e6e6,#ddd)}.tph[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{visibility:hidden}.hide-text[_ngcontent-%COMP%]{text-indent:-9999px;overflow:hidden;width:0;height:0;display:inline-block}.bold[_ngcontent-%COMP%]{font-weight:600}.center-text[_ngcontent-%COMP%]{text-align:center}.no-select[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.padding[_ngcontent-%COMP%]{padding:10px}.margin[_ngcontent-%COMP%]{margin:10px}.margin-bottom[_ngcontent-%COMP%]{display:block;margin-bottom:10px}.radius[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius)}.radius.radius-half[_ngcontent-%COMP%]{border-radius:6px}.stretch[_ngcontent-%COMP%]{display:block;width:100%}
1.tab-gradient[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:transparent;color:#2d2b5a;border-radius:34px;border:1px solid #2D2B5A}.tab-gradient[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#fff}.tab-gradient.tab-active[_ngcontent-%COMP%]{border:none;color:#fff;background:#543cd0;background:linear-gradient(90deg,#543cd0,#ff4e6e)}.button[_ngcontent-%COMP%]{border:none;padding:0 10px;height:34px;color:#fff;border-radius:34px;font-size:15px;display:flex;justify-content:center;align-items:center;box-sizing:border-box;cursor:pointer}.button[disabled][_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.button.btn-bold[_ngcontent-%COMP%]{text-decoration:none;height:40px;line-height:40px;background:#2d2b5a;padding:0 20px;box-shadow:1px 1px 2px #2d2b5acc;border-radius:12px}.button.btn-bold[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#deedfa}.button.btn-add[_ngcontent-%COMP%]{color:#2d2b5a;text-decoration:none;line-height:34px;padding:0 20px;height:40px;background:transparent;border-radius:12px;border:1px dashed #9593BD}.button.btn-add[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-aux[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;height:40px;background:#39bb92;padding:0 20px;border-radius:12px}.button.btn-aux[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:12px}.button.btn-aux-mini[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini-outline[_ngcontent-%COMP%]{text-decoration:none;background:transparent;color:#2d2b5a;padding:0 20px;border:1px solid #2D2B5A;border-radius:12px}.button.btn-aux-mini-outline[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-simple[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:6px}.button.btn-simple[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-alert[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;border-radius:6px;display:inline-flex;height:45px;border-radius:var(--almatar-border-radius);background-color:#d56976;padding:0 40px}.shell-image[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);transition:all ease;position:relative;overflow:hidden;height:200px}@keyframes _ngcontent-%COMP%_shell-animate{0%{left:200%}to{left:-50%}}.shell-image[_ngcontent-%COMP%]:after{content:"";position:absolute;width:200%;height:200%;inset:0;animation:_ngcontent-%COMP%_shell-animate 1.5s alternate-reverse ease-in infinite;box-shadow:inset 0 0 200px 200px #ececec,0 0 200px 200px #ececec}.input[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;border:1px solid #9593BD;border-radius:var(--almatar-border-radius);padding:0 10px;min-height:54px;box-sizing:border-box;font-size:15px;flex-grow:1;background-color:transparent;font-weight:600;text-decoration:none;color:#2d2b5a;font-weight:400}.input[_ngcontent-%COMP%]::placeholder, .input-link[_ngcontent-%COMP%]::placeholder{color:#9593bd}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{outline:none}.input[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%]{top:0;visibility:visible;opacity:1}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{border-color:#2d2b5a}.input.leading-icon[_ngcontent-%COMP%], .input-link.leading-icon[_ngcontent-%COMP%]{text-indent:20px}.input.no-border[_ngcontent-%COMP%], .input-link.no-border[_ngcontent-%COMP%]{border:none}.no-scrollbars[_ngcontent-%COMP%]{overflow:scroll;overflow:-moz-scrollbars-none;scrollbar-width:none;-ms-overflow-style:none}.no-scrollbars[_ngcontent-%COMP%]::-webkit-scrollbar{width:0!important;height:0!important}.no-scrollbars[_ngcontent-%COMP%]:-webkit-scrollbar{width:0;height:0}.b2c-card[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);width:100%}.b2c-card.payment-wrapper[_ngcontent-%COMP%]{background-color:var(--almatar-neutral-surface-card);padding:var(--almatar-payment-space);margin-bottom:var(--almatar-payment-space)!important;border-radius:var(--almatar-border-radius)}.radio-button-style[_ngcontent-%COMP%]{padding-inline-start:30px;margin-inline-end:0;color:#464646;max-width:90%;position:relative;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{border:2px solid var(--almatar-primary-surface)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]:after{background-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{opacity:1;background-color:var(--almatar-primary-surface)}.radio-button-style[_ngcontent-%COMP%] .payment_methods_options[_ngcontent-%COMP%]{font-size:15px;color:#363636;font-weight:500}.radio-button-style[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:50%;left:0;transform:translateY(-11px);height:20px;width:20px;border:2px solid var(--almatar-primary-surface);border-radius:50%}.radio-button-style[_ngcontent-%COMP%] .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;height:13px;width:13px;border-color:var(--almatar-primary-surface);border-radius:50%;display:block}.BNPL-modal[_ngcontent-%COMP%]{padding:10px}
1.BNPL-modal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{text-align:initial;padding:10px 55px;border:none}.BNPL-modal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .gift-img[_ngcontent-%COMP%]{object-fit:contain;width:70px;margin:0 auto 20px}.BNPL-modal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin-bottom:16px}.BNPL-modal.pwa[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{padding:10px}.text-center[_ngcontent-%COMP%]{text-align:center!important}']})}}return n})();const It=["almatar-installments-content",""],Et=(n,c)=>({max:n,min:c});function Rt(n,c){if(1&n&&(t.j41(0,"li"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"img",2),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span"),t.EFF(7),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"span"),t.EFF(11),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,7,"tabby.tabby-bottom-sheet.installment-from")," "),t.R7$(2),t.Y8G("src",e.tamaraImgSrc,t.B4B),t.R7$(),t.SpI(" ",t.bMT(5,9,"tabby.tabby-bottom-sheet.tabby-installment1")," "),t.R7$(3),t.JRh(e.ranges.PAY_BY_INSTALMENTS.min),t.R7$(),t.SpI(" ",t.bMT(9,11,"tabby.tabby-bottom-sheet.tabby-installment2")," "),t.R7$(3),t.JRh(e.ranges.PAY_BY_INSTALMENTS.max),t.R7$(),t.SpI(" ",t.bMT(13,13,"tabby.tabby-bottom-sheet.tabby-installment3")," ")}}function At(n,c){if(1&n&&(t.j41(0,"li"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"img",3),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span"),t.EFF(7),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"span"),t.EFF(11),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,7,"tabby.tabby-bottom-sheet.installment-from")," "),t.R7$(2),t.Y8G("src",e.tabbyImgSrc,t.B4B),t.R7$(),t.SpI(" ",t.bMT(5,9,"tabby.tabby-bottom-sheet.tabby-installment1")," "),t.R7$(3),t.JRh(e.ranges.TABBY_PAY_INSTALLMENTS.min),t.R7$(),t.SpI(" ",t.bMT(9,11,"tabby.tabby-bottom-sheet.tabby-installment2")," "),t.R7$(3),t.JRh(e.ranges.TABBY_PAY_INSTALLMENTS.max),t.R7$(),t.SpI(" ",t.bMT(13,13,"tabby.tabby-bottom-sheet.tabby-installment3")," ")}}function St(n,c){if(1&n&&(t.j41(0,"li"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"img",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,3,"tabby.tabby-bottom-sheet.tabby-pay-later-1")," "),t.R7$(2),t.Y8G("src",e.tabbyImgSrc,t.B4B),t.R7$(),t.SpI(" ",t.i5U(5,5,"tabby.tabby-bottom-sheet.tabby-pay-later-2",t.l_i(8,Et,e.ranges.TABBY_PAY_LATER.max,e.ranges.TABBY_PAY_LATER.min))," ")}}function Nt(n,c){if(1&n&&(t.j41(0,"li"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"img",3),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span"),t.EFF(7),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"span"),t.EFF(11),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,7,"tabby.tabby-bottom-sheet.installment-from")," "),t.R7$(2),t.Y8G("src",e.tamamImgSrc,t.B4B),t.R7$(),t.SpI(" ",t.bMT(5,9,"tabby.tabby-bottom-sheet.tamam-installment1")," "),t.R7$(3),t.JRh(e.ranges.TAMAM_PAY_INSTALLMENTS.min),t.R7$(),t.SpI(" ",t.bMT(9,11,"tabby.tabby-bottom-sheet.tamam-installment2")," "),t.R7$(3),t.JRh(e.ranges.TAMAM_PAY_INSTALLMENTS.max),t.R7$(),t.SpI(" ",t.bMT(13,13,"tabby.tabby-bottom-sheet.tamam-installment3")," ")}}function Lt(n,c){if(1&n&&(t.j41(0,"li"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"img",4),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span"),t.EFF(7),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"span"),t.EFF(11),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,7,"tabby.tabby-bottom-sheet.installment-from")," "),t.R7$(2),t.Y8G("src",e.mispay,t.B4B),t.R7$(),t.SpI(" ",t.bMT(5,9,"tabby.tabby-bottom-sheet.tamam-installment1")," "),t.R7$(3),t.JRh(e.ranges[e.paymentMethodsEnum.MISPAY_INSTALLMENTS].min),t.R7$(),t.SpI(" ",t.bMT(9,11,"tabby.tabby-bottom-sheet.tamam-installment2")," "),t.R7$(3),t.JRh(e.ranges[e.paymentMethodsEnum.MISPAY_INSTALLMENTS].max),t.R7$(),t.SpI(" ",t.bMT(13,13,"tabby.tabby-bottom-sheet.tamam-installment3")," ")}}function Dt(n,c){if(1&n&&(t.j41(0,"li"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"img",3),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span"),t.EFF(7),t.nI1(8,"translate"),t.k0s()()),2&n){const e=t.XpG();
1t.R7$(),t.SpI(" ",t.bMT(2,4,"tabby.tabby-bottom-sheet.installment-from")," "),t.R7$(2),t.Y8G("src",e.tamamImgSrc,t.B4B),t.R7$(),t.SpI(" ",t.bMT(5,6,"tabby.tabby-bottom-sheet.tamam-hint1")," "),t.R7$(3),t.JRh(t.bMT(8,8,"tabby.tabby-bottom-sheet.tamam-hint2"))}}let Bt=(()=>{class n{constructor(){this.ranges={},this.tabbyImgSrc="payment/tabby.svg",this.tamamImgSrc="payment/tamam.svg",this.mispay="payment/mispay.svg",this.tamaraImgSrc="tamara/Tamara-icon.svg",this.paymentMethodsEnum=g.M3}ngOnInit(){this.paymentMethodsRanges.forEach(e=>{this.ranges[e.name]={min:e.currency_limits.SAR.min,max:e.currency_limits.SAR.max}}),"ar"==this.lang&&(this.tamaraImgSrc="tamara/Tamara-ar-icon.svg")}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["","almatar-installments-content",""]],inputs:{paymentMethodsRanges:"paymentMethodsRanges",lang:"lang"},attrs:It,decls:11,vars:12,consts:[[1,"list"],[4,"ngIf"],["loading","lazy",1,"tamara",3,"src"],["loading","lazy",3,"src"],["loading","lazy",1,"mx-1",3,"src"]],template:function(a,o){1&a&&(t.j41(0,"ul",0)(1,"li"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.DNE(5,Rt,14,15,"li",1)(6,At,14,15,"li",1)(7,St,6,11,"li",1)(8,Nt,14,15,"li",1)(9,Lt,14,15,"li",1)(10,Dt,9,10,"li",1),t.k0s()),2&a&&(t.R7$(2),t.Lme(" ",t.bMT(3,8,"tabby.tabby-bottom-sheet.tabby-and-tmara-title-1")," ",t.bMT(4,10,"tabby.tabby-bottom-sheet.tabby-and-tmara-title-2")," "),t.R7$(3),t.Y8G("ngIf",o.ranges.PAY_BY_INSTALMENTS),t.R7$(),t.Y8G("ngIf",o.ranges.TABBY_PAY_INSTALLMENTS),t.R7$(),t.Y8G("ngIf",o.ranges.TABBY_PAY_LATER),t.R7$(),t.Y8G("ngIf",o.ranges.TAMAM_PAY_INSTALLMENTS),t.R7$(),t.Y8G("ngIf",o.ranges[o.paymentMethodsEnum.MISPAY_INSTALLMENTS]),t.R7$(),t.Y8G("ngIf",o.ranges.TAMAM_PAY_INSTALLMENTS))},dependencies:[p.bT,O.D9],styles:[".list ul{list-style:none;padding:8px 16px 0;margin:0;border-radius:4px;border:1px solid var(--almatar-neutral-border-default-card)} .list ul li{font-size:14px;font-weight:400;line-height:1.7rem;text-align:initial;border-bottom:1px solid var(--almatar-neutral-border-default-card);padding:8px 0 16px} .list ul li:last-child{border-bottom:none} .list ul li img{transform:translateY(30%)} .list ul li .tamara{width:52px} .list ul li span{font-weight:800}"]})}}return n})();var nt=i(70875),ht=i(59598),Ft=i(60356),Vt=i(23903),Wt=i(55088),Gt
1=i(85628),ut=i(26491);const Yt=["payment-with-points-header",""];let jt=(()=>{class n{constructor(){this.toggleMokafaaView=new t.bkB(!1)}toggleMokafaa(e){this.showMokafaaSection=!this.showMokafaaSection,this.toggleMokafaaView.emit(e.target.checked)}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["","payment-with-points-header",""]],inputs:{showMokafaaSection:"showMokafaaSection",img:"img",title:"title"},outputs:{toggleMokafaaView:"toggleMokafaaView"},attrs:Yt,decls:6,vars:3,consts:[[1,"custom-checkbox-container"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"checkmark"],["alt","",3,"src"],[1,"mokafaa-text","medium-font"]],template:function(a,o){1&a&&(t.j41(0,"label",0)(1,"input",1),t.mxI("ngModelChange",function(f){return t.DH7(o.showMokafaaSection,f)||(o.showMokafaaSection=f),f}),t.bIt("change",function(f){return o.toggleMokafaa(f)}),t.k0s(),t.nrm(2,"span",2)(3,"img",3),t.j41(4,"span",4),t.EFF(5),t.k0s()()),2&a&&(t.R7$(),t.R50("ngModel",o.showMokafaaSection),t.R7$(2),t.Y8G("src",o.img,t.B4B),t.R7$(2),t.JRh(o.title))},dependencies:[l.Zm,l.BC,l.vS],styles:['.custom-checkbox-container[_ngcontent-%COMP%]{display:flex;align-items:flex-end;position:relative;padding-inline:var(--almatar-payment-space);cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none;margin-bottom:24px}.custom-checkbox-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:calc(16 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-regular)}.custom-checkbox-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{padding-inline-start:18px;padding-inline-end:16px}.custom-checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.custom-checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:var(--almatar-primary);border-color:var(--almatar-primary)}.custom-checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}.custom-checkbox-container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:auto;left:0;height:20px;width:20px;border:2px solid var(--almatar-primary);border-radius:3px}.custom-checkbox-container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none}.custom-checkbox-container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{left:5px;top:1px;width:6px;height:12px;border:solid var(--almatar-surface-card);border-width:0 3px 3px 0;transform:rotate(45deg)}.custom-checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:disabled ~ .checkmark[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-disabled)!important;cursor:not-allowed}.custom-checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked:disabled ~ .checkmark[_ngcontent-%COMP%]{background-color:var(--almatar-secondary-disabled)!important;border-color:var(--almatar-secondary-disabled)!important}.custom-checkbox-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked:disabled ~ .checkmark[_ngcontent-%COMP%]:after{border:solid var(--almatar-text-on-primary--disabled);border-width:0 3px 3px 0}']})}}return n})();var pt=i(1807),_t=i(54679);const $t=["payment-with-points-otp-redeem",""],Ut=n=>({totalAmount:n});function Xt(n,c){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"timerCountDown"),t.nI1(3,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme(" ",t.bMT(2,2,e.expirationTimeInSec)," ",t.bMT(3,4,"mokafaa.time-receive-OTP")," ")}}function Ht(n,c){if(1&n){const e=t.RV6();t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"a",23),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.resendOTP())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"mokafaa.receive-OTP")," "),t.R7$(3),t.JRh(t.bMT(5,4,"mokafaa.resend-again")))}function zt(n,c){1&n&&t.nrm(0,"app-loader")}function Kt(n,c){1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"mokafaa.redeem-pay")))}function Zt(n,c){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"span"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.EFF(6),t.nI1(7,"translate"),t.j41(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.EFF(11),t.nI1(12,"translate"),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",t.bMT(2,7,"mokafaa.mokafa-redeem-hint")," "),t.R7$(3),t.Lme("",e.getNumberValue(e.amount.value)," ",t.bMT(5,9,"mokafaa.mokafa-redeem-hint1")," "),t.R7$(2),t.SpI(" ",t.bMT(7,11,"mokafaa.and")," "),t.R7$(3),t.Lme("",e.totalPrice-e.amount.value," ",t.bMT(10,13,"mokafaa.mokafa-redeem-hint2"),""),t.R7$(2),t.SpI(" ",t.bMT(12,15,"mokafaa.mokafa-redeem-hint3")," ")}}function Jt(n,c){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI("",t.i5U(2,1,"mokafaa.mokafa-redeem-hint-amount",t.eq3(4,Ut,e.totalPrice))," ")}}function Qt(n,c){1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI("",t.bMT(2,1,"mokafaa.mokafa-redeem-zero-msg")," "))}function qt(n,c){if(1&n&&(t.j41(0,"div",24),t.nrm(1,"img",25),t.DNE(2,Zt,13,17,"span",7)(3,Jt,3,6,"span",7)(4,Qt,3,3,"span",7),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",e.amount.value&&e.getNumberValue(e.amount.value)&&e.amount.value<e.totalPrice),t.R7$(),t.Y8G("ngIf",e.amount.value>e.totalPrice),t.R7$(),t.Y8G("ngIf",!e.amount.value||!e.getNumberValue(e.amount.value))}}let te=(()=>{class n{constructor(e){this._paymentService=e,this.tick=1e3,this.showResendAgain=!1,this.showHint=!1,this.timeout=null,this.tryTimes=2,this.callRedeem=!1,this.displayPhone=new t.bkB(!1),this.resendOTPReq=new t.bkB(!1),this.otpNumber=new l.MJ(null,[this.validationOTP]),this.amount=new l.MJ(null,[this.validationAmount]),this.redeemPointsClicked=new t.bkB}ngOnInit(){this.expirationTimeInSec=nt.qH[this.paymentMethod],this.totalPrice=Math.ceil(this.totalPrice),this.amount.patchValue(this.totalPrice),this.countDown=(0,pt.O)(0,this.tick).subscribe(e=>{this.expirationTimeInSec=--this.expirationTimeInSec,0==this.expirationTimeInSec&&(this.showResendAgain=!0,this.countDown.unsubscribe())})}changeNumber(){this.displayPhone.emit(!0)}resendOTP(){!this.expirationTimeInSec&&this.tryTimes&&(this.showResendAgain=!1,this.resendOTPReq.emit(!0),this.tryTimes--,this.restartTime())}restartTime(){this.expirationTimeInSec=nt.qH[this.paymentMethod],this.countDown.unsubscribe(),this.countDown=(0,pt.O)(0,this.tick).subscribe(e=>{this.expirationTimeInSec=--this.expirationTimeInSec,0==this.expirationTimeInSec&&(this.showResendAgain=!0,this.countDown.unsubscribe())})}validationOTP(e){return!e.value||isNaN(e.value)||4!=e.value.slice("").length?{invalidValue:!0}:null}validationAmount(e){return!e.value||isNaN(e.value)?{invalidValue:!0}:null}redeemPoints(){if(this.amount.valid&&this.otpNumber.valid){this.callRedeem=!0;let e=parseInt(this.amount.value);e>this.totalPrice&&(e=this.totalPrice),this.redeemPointsClicked.emit
1({amount:e,otpValue:this.otpNumber.value})}else this.callRedeem=!1}handleAmountMsg(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>{13!=e.keyCode&&(this.showHint=!0)},300)}ngOnChanges(e){e.totalPrice&&(this.totalPrice=Math.ceil(this.totalPrice))}getNumberValue(e){return parseInt(e)}ngOnDestroy(){this.countDown.unsubscribe()}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(ht.W))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["","payment-with-points-otp-redeem",""]],inputs:{OTPDisabled:"OTPDisabled",paymentMethod:"paymentMethod",totalPrice:"totalPrice"},outputs:{displayPhone:"displayPhone",resendOTPReq:"resendOTPReq",redeemPointsClicked:"redeemPointsClicked"},features:[t.OA$],attrs:$t,decls:36,vars:22,consts:[[1,"otp"],[1,"otp-wrapper"],["for","otp_number"],[1,"otp-number"],["type","tel","id","otp_number","maxlength","4","minlength","4",3,"placeholder","formControl","value"],[1,"btn","otp-button",3,"click"],[1,"otp-note"],[4,"ngIf"],[1,"redeem"],[1,"redeem-wrapper"],["for","redeem_amount"],[1,"redeem-amount"],[1,"input-wrapper"],["type","tel","id","redeem_amount",3,"keyup","formControl","value"],[1,"currency-hint"],["width","15","height","16","viewBox","0 0 15 16","fill","currentColor","aria-hidden","true","data-slot","icon","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6"],["clip-path","url(#clip0_6759_198911)"],["d","M9.594 14.1741C9.33854 14.7405 9.16967 15.3553 9.10498 15.9999L14.5111 14.8507C14.7665 14.2844 14.9353 13.6695 15.0001 13.0249L9.594 14.1741Z","fill","currentColor"],["d","M14.5109 11.4079C14.7664 10.8416 14.9353 10.2268 15 9.58212L10.7888 10.4778V8.75601L14.5108 7.96504C14.7663 7.39872 14.9351 6.78388 14.9998 6.13924L10.7886 7.03412V0.842159C10.1434 1.20447 9.5703 1.68674 9.10446 2.25561V7.39223L7.42027 7.7502V0C6.77499 0.362181 6.20192 0.844578 5.73608 1.41345V8.10806L1.96769 8.90883C1.71223 9.47515 1.54324 10.09 1.47842 10.7346L5.73608 9.82981V11.9981L1.17316 12.9677C0.917701 13.534 0.748836 14.1489 0.684143 14.7935L5.46024 13.7785C5.84904 13.6977 6.1832 13.4678 6.40046 13.1515L7.27636 11.8529V11.8526C7.36729 11.7183 7.42027 11.5563 7.42027 11.3818V9.47184L9.10446 9.11386V12.5574L14.5108 11.4077L14.5109 11.4079Z","fill","currentColor"],["id","clip0_6759_198911"],["width","14.3158","height","16","fill","white","transform","translate(0.684204)"],[1,"btn","redeem-button",3,"click","disabled"],["class","error-mokafaa-message",4,"ngIf"],[3,"click"],[1,"error-mokafaa-message"],["src","assets/mokafaa/info_blue.svg","alt","mokafaa info"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"label",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",3),t.nrm(6,"input",4),t.nI1(7,"translate"),t.j41(8,"button",5),t.bIt("click",function(){return o.changeNumber()}),t.EFF(9),t.nI1(10,"translate"),t.k0s()()(),t.j41(11,"div",6),t.DNE(12,Xt,4,6,"p",7)(13,Ht,6,6,"p",7),t.k0s(),t.j41(14,"div",8)(15,"div",9)(16,"label",10),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.j41(19,"div",11)(20,"div",12)(21,"input",13),t.bIt("keyup",function(f){return o.handleAmountMsg(f)}),t.k0s(),t.j41(22,"span",14),t.EFF(23,"( "),t.qSk(),t.j41(24,"svg",15)(25,"g",16),t.nrm(26,"path",17)(27,"path",18),t.k0s(),t.j41(28,"defs")(29,"clipPath",19),t.nrm(30,"rect",20),t.k0s()()(),t.EFF(31," )"),t.k0s()(),t.joV(),t.j41(32,"button",21),t.bIt("click",function(){return o.redeemPoints()}),t.DNE(33,zt,1,0,"app-loader",7)(34,Kt,3,3,"span",7),t.k0s()()()(),t.DNE(35,qt,5,3,"div",22),t.k0s()),2&a&&(t.R7$(3),t.JRh(t.bMT(4,14,"mokafaa.OTP-number")),t.R7$(3),t.Y8G("placeholder",t.bMT(7,16,"mokafaa.OTP-number"))("formControl",o.otpNumber)("value",o.otpNumber.value),t.R7$(3),t.SpI(" ",t.bMT(10,18,"mokafaa.change-number")," "),t.R7$(3),t.Y8G("ngIf",!o.showResendAgain),t.R7$(),t.Y8G("ngIf",o.showResendAgain),t.R7$(4),t.JRh(t.bMT(18,20,"mokafaa.amount")),t.R7$(4),t.Y8G("formControl",o.amount)("value",o.amount.value),t.R7$(11),t.Y8G("disabled",o.otpNumber.invalid||o.amount.invalid),t.R7$(),t.Y8G("ngIf",o.callRedeem),t.R7$(),t.Y8G("ngIf",!o.callRedeem),t.R7$(),t.Y8G("ngIf",o.showHint&&o.amount.value!=o.totalPrice))},dependencies:[p.bT,l.me,l.BC,l.xh,l.tU,ct.V,l.l_,O.D9,_t.t],styles:['.placeholder[_ngcontent-%COMP%]{color:var(--almatar-neutral-text-secondary-static);font-size:16px;
1font-weight:var(--almatar-font-weight-regular)}.otp-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:var(--almatar-payment-space)}.otp[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:var(--almatar-neutral-text-highlight-static);position:relative;margin:8px 0;display:inline-block}.otp-number[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:450px}.otp-number[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:56px;width:calc(100% - 124px);padding-inline-end:30px;text-align:start;direction:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--almatar-border-radius);border-bottom-left-radius:var(--almatar-border-radius)}.otp-button[_ngcontent-%COMP%]{flex:0 0 124px;min-height:56px;font-size:16px;font-weight:var(--almatar-font-weight-medium);border-radius:0;padding:0;background-color:var(--almatar-primary);color:var(--almatar-text-on-primary);border-top-right-radius:var(--almatar-border-radius);border-bottom-right-radius:var(--almatar-border-radius)}.otp-button[_ngcontent-%COMP%]:disabled{background-color:var(--almatar-primary-disabled)}.otp-note[_ngcontent-%COMP%]{display:flex}.otp-note[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--almatar-neutral-text-highlight-static);font-size:14px;font-weight:var(--almatar-font-weight-regular)}.otp-note[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{margin-right:10px}.otp-note[_ngcontent-%COMP%] p.counter[_ngcontent-%COMP%]{font-weight:500;color:var(--almatar-primary-surface);margin-inline:10px}.otp-note[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--almatar-primary-surface);text-decoration:underline;cursor:pointer;font-weight:var(--almatar-font-weight-medium)}.otp-note[_ngcontent-%COMP%] p.disabled[_ngcontent-%COMP%]{position:relative}.otp-note[_ngcontent-%COMP%] p.disabled[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;background-color:#fffc}.redeem-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:.75rem}.redeem[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:var(--almatar-neutral-text-highlight-static);position:relative;margin:0 0 8px;display:inline-block}.redeem-amount[_ngcontent-%COMP%]{border-radius:2px;display:flex;align-items:center;max-width:450px}.redeem-amount[_ngcontent-%COMP%] .input-wrapper[_ngcontent-%COMP%]{position:relative;width:calc(100% - 124px)}.redeem-amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:56px;width:100%;padding-inline-end:30px;text-align:start;direction:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--almatar-border-radius);border-bottom-left-radius:var(--almatar-border-radius)}.redeem-amount[_ngcontent-%COMP%] .currency-hint[_ngcontent-%COMP%]{position:absolute;right:10px;top:30%;color:var(--almatar-neutral-text-disabled)}.redeem-amount[_ngcontent-%COMP%] .currency-hint[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:12px;height:12px}.redeem-button[_ngcontent-%COMP%]{min-width:124px;min-height:56px;font-size:16px;font-weight:var(--almatar-font-weight-medium);border-radius:0;padding:0;background-color:var(--almatar-primary);color:var(--almatar-text-on-primary);border-top-right-radius:var(--almatar-border-radius);border-bottom-right-radius:var(--almatar-border-radius)}.redeem-button[_ngcontent-%COMP%]:disabled{background-color:var(--almatar-primary-disabled)}.error-mokafaa-message[_ngcontent-%COMP%]{background-color:var(--almatar-information-surface-info-banner);border:1px solid var(--almatar-information-surface-info-banner);padding:12px 0;color:var(--almatar-information-text-info);text-align:inherit;font-weight:var(--almatar-font-weight-regular);display:flex;border-radius:8px}.error-mokafaa-message[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 10px}.error-mokafaa-message[_ngcontent-%COMP%] span[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:var(--almatar-font-weight-bold)}#rtl[_nghost-%COMP%] .otp-number[_ngcontent-%COMP%] input[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .otp-number[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--almatar-border-radius);border-bottom-right-radius:var(--almatar-border-radius)}#rtl[_nghost-%COMP%] .otp-button[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .otp-button[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--almatar-border-radius);border-bottom-left-radius:var(--almatar-border-radius)}
1#rtl[_nghost-%COMP%] .redeem-amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .redeem-amount[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--almatar-border-radius);border-bottom-right-radius:var(--almatar-border-radius)}#rtl[_nghost-%COMP%] .redeem-amount[_ngcontent-%COMP%] .currency-hint[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .redeem-amount[_ngcontent-%COMP%] .currency-hint[_ngcontent-%COMP%]{left:10px;right:auto}#rtl[_nghost-%COMP%] .redeem-button[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .redeem-button[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--almatar-border-radius);border-bottom-left-radius:var(--almatar-border-radius)}']})}}return n})();var gt=i(97009);const ee=["payment-with-points-phone",""],ne=n=>({mb:n});function ae(n,c){if(1&n){const e=t.RV6();t.j41(0,"img",10),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.clearPhoneNumber())}),t.k0s()}}function oe(n,c){1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"mokafaa.request-OTP")))}function ie(n,c){1&n&&t.nrm(0,"app-loader")}function re(n,c){1&n&&(t.nrm(0,"div",13),t.nI1(1,"translate")),2&n&&t.Y8G("alertType","invali
1d")("alertIcon","information-circle")("alertText",t.bMT(1,3,"mokafaa.makafaa-phone-error"))}function se(n,c){if(1&n&&(t.j41(0,"span",16),t.EFF(1),t.nI1(2,"timerCountDown"),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.JRh(t.bMT(2,1,e.counter))}}function ce(n,c){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.nI1(2,"translate"),t.DNE(3,se,3,3,"span",15),t.k0s()),2&n){const e=t.XpG(3);t.R7$(),t.SpI(" ",t.bMT(2,2,"mokafaa.makafaa-phone-already-exist"),". "),t.R7$(2),t.Y8G("ngIf",e.showExpired)}}function pe(n,c){if(1&n&&(t.j41(0,"div",14),t.DNE(1,ce,4,4,"div",8),t.k0s()),2&n){const e=t.XpG(2);t.Y8G("alertType","invalid")("alertIcon","information-circle"),t.R7$(),t.Y8G("ngIf",e.showOTPTimer)}}function le(n,c){if(1&n&&t.DNE(0,re,2,5,"div",11)(1,pe,2,3,"div",12),2&n){const e=t.XpG();t.Y8G("ngIf",e.requestOTPError&&!e.showOTPTimer),t.R7$(),t.Y8G("ngIf",e.showOTPTimer)}}let de=(()=>{class n{constructor(e){this.mokafaaService=e,this.showExpired=!1,this.showError=!1,this.requestingOTP=!1,this.loading=!1,this.showHaveOtp=!1,this.showRemoveIcon=!1,this.requestOTPValue=new t.bkB,this.phoneNumberForm=new l.gE({phoneNumber:new l.MJ(null,[l.k0.required,l.k0.minLength(9),l.k0.maxLength(10)])}),this.mokafaaService.isRequestingOTPCallState.subscribe(a=>{this.requestingOTP=a})}ngOnInit(){this.counter=nt.qH[this.paymentMethod],this.phoneNumber&&(this.phoneNumberForm.patchValue({phoneNumber:this.phoneNumber}),this.showRemoveIcon=!0),"QITAF"===this.paymentMethod&&this.phoneNumberForm.get("phoneNumber").setValidators([l.k0.required,l.k0.pattern("^0?5\\d{8}$")])}requestOTP(){this.showError=!this.phoneNumberForm.valid,this.mokafaaService.isRequestingOTPCall.next(!0),this.phoneNumberForm.valid&&(this.requestOTPValue.emit({phoneNumber:this.phoneNumberForm.value.phoneNumber}),this.loading=!0)}clearPhoneNumber(){this.phoneNumberForm.patchValue({phoneNumber:null}),this.showRemoveIcon=!1}toggleRemoveIcon(e){this.showRemoveIcon=e.target.value}ngOnChanges(e){if(e.phoneNumber&&(this.phoneNumberForm.patchValue({phoneNumber:this.phoneNumber}),this.showRemoveIcon=!!this.phoneNumber.length),e.haveOTP&&e.haveOTP.currentValue&&(this.showHaveOtp=!0),e.showOTPTimer)if(this.showOTPTimer){this.showExpired=!0,this.wrongPhone=this.phoneNumber,this.phoneNumberForm.patchValue({phoneNumber:this.phoneNumber});const a=1e3;this.counter=nt.qH[this.paymentMethod],this.countDown=(0,pt.O)(0,a).subscribe(o=>{this.counter=--this.counter,0==this.counter&&(this.showOTPTimer=!1,this.countDown.unsubscribe())})}else this.showExpired=!1}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(ut.O))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["","payment-with-points-phone",""]],inputs:{phoneNumber:"phoneNumber",haveOTP:"haveOTP",isOTPRequest:"isOTPRequest",requestOTPError:"requestOTPError",showOTPTimer:"showOTPTimer",paymentMethod:"paymentMethod"},outputs:{requestOTPValue:"requestOTPValue"},features:[t.OA$],attrs:ee,decls:13,vars:9,consts:[[1,"mokafaa-phone",3,"ngClass"],[1,"mokafaa-phone-code"],["src","../../../../../../assets/mokafaa/KSA.svg","alt","ksa logo"],[1,"mokafaa-phone-number"],[3,"formGroup"],["type","tel","placeholder","** *** ****","formControlName","phoneNumber",1,"form-control",3,"keyup"],["src","../../../../../../assets/mokafaa/remove.svg","alt","",3,"click",4,"ngIf"],[1,"btn","mokafaa-otp",3,"click","disabled"],[4,"ngIf"],[3,"ngIf"],["src","../../../../../../assets/mokafaa/remove.svg","alt","",3,"click"],["alerts","","class","wallet-alert",3,"alertType","alertIcon","alertText",4,"ngIf"],["alerts","","class","wallet-alert",3,"alertType","alertIcon",4,"ngIf"],["alerts","",1,"wallet-alert",3,"alertType","alertIcon","alertText"],["alerts","",1,"wallet-alert",3,"alertType","alertIcon"],["class","timer",4,"ngIf"],[1,"timer"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"img",2),t.j41(3,"span"),t.EFF(4,"+966"),t.k0s()(),t.j41(5,"div",3)(6,"form",4)(7,"input",5),t.bIt("keyup",function(f){return o.toggleRemoveIcon(f)}),t.k0s(),t.DNE(8,ae,1,0,"img",6),t.k0s(),t.j41(9,"button",7),t.bIt("click",function(){return o.requestOTP()}),t.DNE(10,oe,3,3,"span",8)(11,ie,1,0,"app-loader",8),t.k0s()()(),t.DNE(12,le,2,2,"ng-template",9)),2&a&&(t.Y8G("ngClass",t.eq3(7,ne,o.showError)),t.R7$(6),t.Y8G("formGroup",o.phoneNumberForm),t.R7$(2),t.Y8G("ngIf",o.showRemoveIcon),t.R7$(),t.Y8G("disabled",o.phoneNumberForm.get("phoneNumber").invalid||o.wrongPhone==o.phoneNumberForm.value.phoneNumber&&o.showOTPTimer),t.R7$(),t.Y8G("ngIf",!o.requestingOTP),t.R7$(),t.Y8G("ngIf",o.loading&&o.requestingOTP),t.R7$(),t.Y8G("ngIf",o.requestOTPError||o.showOTPTimer))},dependencies:[p.YU,p.bT,l.qT,l.me,l.BC,l.cb,ct.V,l.j4,l.JD,gt.Z,O.D9,_t.t],styles:[".mokafaa-phone[_ngcontent-%COMP%]{display:flex;align-items:flex-end;margin-block:8px;gap:8px;flex-wrap:wrap}.mokafaa-phone-code[_ngcontent-%COMP%]{background-color:var(--almatar-input-default);border-radius:var(--almatar-border-radius);padding:var(--almatar-payment-space);display:flex;align-items:center;flex:0 0 94px}@media (max-width: 400px){.mokafaa-phone-code[_ngcontent-%COMP%]{flex:0 0 100%}}.mokafaa-phone-code[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px}.mokafaa-phone-code[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-inline-end:8px;border-radius:50%;width:24px;height:24px;object-fit:cover}.mokafaa-phone-number[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;flex:1 0 250px}.mokafaa-phone-number[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{position:relative;width:100%}.mokafaa-phone-number[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:56px;width:100%;padding-inline-end:30px;text-align:start;direction:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--almatar-border-radius);border-bottom-left-radius:var(--almatar-border-radius)}.mokafaa-phone-number[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 6px);right:18px;
1cursor:pointer}.mokafaa-phone.mb[_ngcontent-%COMP%]{margin-bottom:14px}.mokafaa-phone[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:124px}.mokafaa-otp[_ngcontent-%COMP%]{min-width:124px;min-height:56px;font-size:16px;font-weight:var(--almatar-font-weight-medium);border-radius:0;padding:0;background-color:var(--almatar-primary);color:var(--almatar-text-on-primary);border-top-right-radius:var(--almatar-border-radius);border-bottom-right-radius:var(--almatar-border-radius)}.mokafaa-otp[_ngcontent-%COMP%]:disabled{background-color:var(--almatar-primary-disabled)}.mokafaa-warning[_ngcontent-%COMP%]{padding:10px!important;display:flex}.mokafaa-warning[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-inline-end:10px}#rtl[_nghost-%COMP%] .mokafaa-phone-number[_ngcontent-%COMP%] input[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .mokafaa-phone-number[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--almatar-border-radius);border-bottom-right-radius:var(--almatar-border-radius)}#rtl[_nghost-%COMP%] .mokafaa-phone-number[_ngcontent-%COMP%] img[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .mokafaa-phone-number[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{right:auto;left:18px}#rtl[_nghost-%COMP%] .mokafaa-otp[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .mokafaa-otp[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--almatar-border-radius);border-bottom-left-radius:var(--almatar-border-radius)}"]})}}return n})();const me=["paymentWithPoints",""];function he(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",4),t.bIt("requestOTPValue",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.handleRequestOTP(o))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("paymentMethod",e.paymentMethod)("showOTPTimer",e.showOTPTimer)("requestOTPError",e.requestOTPError)("haveOTP",e.haveOTP)("isOTPRequest",e.isOTPRequest)("phoneNumber",e.phoneNumber)}}function ue(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",5),t.bIt("displayPhone",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.displayPhone(o))})("resendOTPReq",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.resendOTPReq())})("redeemPointsClicked",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.redeemPoints(o))}),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("paymentMethod",e.paymentMethod)("OTPDisabled",e.OTPDisabled)("totalPrice",e.bookingDetails.totalPrice)}}function _e(n,c){if(1&n&&t.DNE(0,he,1,6,"section",3)(1,ue,1,3,"ng-template",2),2&n){const e=t.XpG();t.Y8G("ngIf",e.requestOTPValue),t.R7$(),t.Y8G("ngIf",!e.requestOTPValue)}}let ge=(()=>{class n{constructor(e,a,o,r,f,B,H){this._mokafaaErrorsService=e,this.hotelEndPoint=a,this.api=o,this.dataService=r,this.router=f,this._mokafaa=B,this._paymentService=H,this.toggleMokafaaView=!1,this.requestOTPError=!1,this.requestOTPValue=!0,this.haveOTP=!1,this.IsCoupon=!1,this.subscribers={},this.isOTPRequest=!1,this.OTPDisabled=!1,this.showOTPTimer=!1,this.currentLanguage="",this.openWarningPopupEvent=new t.bkB,this.phoneNumberValue=new t.bkB,this.updatePayment=new t.bkB,this.hidePayment=new t.bkB,this.mokafaaSelectedEvent=new t.bkB,this.IsRedeemFinished=new t.bkB,this.updateCart=new t.bkB,this.openRedeemErrorPopupEvent=new t.bkB,this.updateCustomerPaymentChoice=new t.bkB,this.dataService.getLang().subscribe(W=>{this.currentLanguage=W}),this._mokafaa.callOTPState.subscribe(W=>{W.getOTP&&this.mokafaaSelected&&this.getOTP(this.phoneNumber)})}ngOnInit(){this.module=this.module.toLocaleLowerCase(),this.getPhoneValue(),"flights"==this.module&&(this.bookingDetails.totalPrice=this.bookingDetails.TotalFareAmountAfterAllCustDiscounts)}requestOTP(e){this.IsCoupon?this.openWarningPopupEvent.emit(e.phoneNumber):this.getOTP(e)}resetAllControls(){this.getPhoneValue(),this.requestOTPError=!1,this.showOTPTimer=!1}handleRequestOTP({phoneNumber:e}){this.phoneNumber=e,this._mokafaa.isRequestingOTPCall.next(!0),this.IsCoupon?(this._mokafaa.isRequestingOTPCall.next(!0),this.openWarningPopupEvent.emit(this.phoneNumber)):this.checkModule(this.paymentMethod)}checkModule(e){"flights"==this.module?this.handleServiseFees(e):"hotels"==this.module&&"payLater"==this.bookingDetails.customerPaymentChoice?this.updateCustomerChoice():this.getOTP()}updateCustomerChoice(){this.hotelEndPoint.updateCustomerPaymentChoice(this.encryptedKey,"payNow").subscribe(e=>{this.updateCart.emit(),this.getOTP()},e=>{this.updateCart.emit()})}getPhoneValue(){const e=this.bookingDetails.passengers?this.bookingDetails.passengers[0].phoneNumber:this.phoneNumber;e&&"+966"==e.slice(0,4)?this.phoneNumber=e.slice(4):this.phoneNumber||(this.phoneNumber="")}handleServiseFees(e){"payment_form"!=this.selectedPaymentMethod?this.updatePaymentType("Card").subscribe(a=>{this.updatePayment.emit(a),this.getOTP()}):this.getOTP()}updatePaymentType(e){return this.api.put({endpoint:`/api/v3/flights-consumer/booking/update-cart/${this.encryptedKey}`,body:{paymentType:e}})}getOTP(e){const a={paymentId:this.bookingDetails.paymentId,phone:this.phoneNumber,paymentMethod:this.paymentMethod};this.haveOTP=!1,this._mokafaa.isRequestingOTPCall.next(!0),this.subscribers.getTransaction=this._mokafaa.requsetOTP(a).subscribe(o=>{this.requestOTPValue=!1,this.phoneNumber=e&&e.phoneNumber?e.phoneNumber:this.phoneNumber,this.phoneNumberValue.emit(this.phoneNumber),this.hidePayment.emit(!0),this._mokafaa.OTPRequestId.next(o.data.OTPRequestId),this.mokafaaOTPRequestId=o.data.OTPRequestId,this._mokafaa.isRequestingOTPCall.next(!1)},o=>{if(this._mokafaa.isRequestingOTPCall.next(!1),sessionStorage.getItem("phoneNumber")){const r=JSON.parse(sessionStorage.getItem("phoneNumber"));r.number==this.phoneNumber&&(this.mokafaaOTPRequestId=r.id,this._mokafaa.OTPRequestId.next(this.mokafaaOTPRequestId))}this.handleOTPError(o)})}handleOTPError(e){210==e.error.errors[0].code?this.mokafaaOTPRequestId?(this.requestOTPValue=!1,this.hidePayment.emit(!0)):(this.showOTPTimer=!0,this.hidePayment.emit(!1)):(this.showOTPTimer=!1,this.requestOTPError=!0)}ngOnChanges(e){e.mokafaaSelected&&(this.toggleMokafaaView=this.mokafaaSelected,0==this.mokafaaSelected&&(this.requestOTPValue=!0)),e.bookingDetails&&(this.IsCoupon=!!this.bookingDetails.couponCode,"flights"==this.module&&(this.bookingDetails.totalPrice=this.bookingDetails.TotalFareAmou
1ntAfterAllCustDiscounts),this.phoneNumber||this.getPhoneValue()),e.callOTPAfterUpdatePaymentType&&!e.callOTPAfterUpdatePaymentType.firstChange&&this.getOTP()}displayPhone(e){this.requestOTPValue=e,this.showOTPTimer=!1,this.phoneNumberValue.emit(this.phoneNumber),this.hidePayment.emit(!1)}resendOTPReq(){this.getOTP()}redeemPoints(e){const a={paymentId:this.bookingDetails.paymentId,platform:"web",requestId:this.encryptedKey,paymentMethod:this.paymentMethod,OTPRequestId:this._mokafaa.OTPRequestId.getValue(),OTPValue:e.otpValue,amount:Math.floor(e.amount),redirectURL:`${h.dT.baseURL}/${this.currentLanguage}/${this.module}/loading/${this.encryptedKey}`};this._paymentService.createTransition(this.product,Math.floor(e.amount),a,"web").subscribe(o=>{o&&this.router.navigate([`${this.currentLanguage}/${this.module}/loading/${this.encryptedKey}`])},o=>{const r=this._mokafaaErrorsService.getMokafaaError(o.error.errors[0].code);this._mokafaa.OTPRequestId.next(null),this.mokafaaOTPRequestId=null,this.requestOTPValue=!0,this.openRedeemErrorPopupEvent.emit(r)})}toggleMokafaa(e){this.toggleMokafaaView=e,this.requestOTPError=!1,this.showOTPTimer=!1,this.mokafaaSelectedEvent.emit(e),e||this.requestOTPValue?(this.phoneNumber="",this.getPhoneValue()):(sessionStorage.setItem("phoneNumber",JSON.stringify({number:this.phoneNumber,id:this.mokafaaOTPRequestId})),this.getPhoneValue(),this.displayPhone(!this.requestOTPValue))}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(Wt.t),t.rXU(Vt.o),t.rXU(Gt.G),t.rXU(Ft.m),t.rXU(st.Ix),t.rXU(ut.O),t.rXU(ht.W))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["","paymentWithPoints",""]],inputs:{product:"product",encryptedKey:"encryptedKey",redirectURL:"redirectURL",phoneNumber:"phoneNumber",bookingDetails:"bookingDetails",mokafaaSelected:"mokafaaSelected",cancelOTPRequest:"cancelOTPRequest",callOTPAfterUpdatePaymentType:"callOTPAfterUpdatePaymentType",module:"module",selectedPaymentMethod:"selectedPaymentMethod",img:"img",title:"title",paymentMethod:"paymentMethod"},outputs:{openWarningPopupEvent:"openWarningPopupEvent",phoneNumberValue:"phoneNumberValue",updatePayment:"updatePayment",hidePayment:"hidePayment",mokafaaSelectedEvent:"mokafaaSelectedEvent",IsRedeemFinished:"IsRedeemFinished",updateCart:"updateCart",openRedeemErrorPopupEvent:"openRedeemErrorPopupEvent",updateCustomerPaymentChoice:"updateCustomerPaymentChoice"},features:[t.OA$],attrs:me,decls:3,vars:4,consts:[[1,"paymentPoints-wrapper"],["payment-with-points-header","",3,"toggleMokafaaView","showMokafaaSection","img","title"],[3,"ngIf"],["payment-with-points-phone","",3,"paymentMethod","showOTPTimer","requestOTPError","haveOTP","isOTPRequest","phoneNumber","requestOTPValue",4,"ngIf"],["payment-with-points-phone","",3,"requestOTPValue","paymentMethod","showOTPTimer","requestOTPError","haveOTP","isOTPRequest","phoneNumber"],["payment-with-points-otp-redeem","",1,"otp-view",3,"displayPhone","resendOTPReq","redeemPointsClicked","paymentMethod","OTPDisabled","totalPrice"]],template:function(a,o){1&a&&(t.j41(0,"section",0)(1,"section",1),t.bIt("toggleMokafaaView",function(f){return o.toggleMokafaa(f)}),t.k0s(),t.DNE(2,_e,2,2,"ng-template",2),t.k0s()),2&a&&(t.R7$(),t.Y8G("showMokafaaSection",o.mokafaaSelected)("img",o.img)("title",o.title),t.R7$(),t.Y8G("ngIf",o.toggleMokafaaView))},dependencies:[p.bT,jt,te,de],styles:[".paymentPoints-wrapper[_ngcontent-%COMP%]{padding-top:var(--almatar-payment-space)}.otp-view[_ngcontent-%COMP%]{margin-top:var(--almatar-payment-space)}"]})}}return n})();var be=i(85592);const Pe=["payment-with-points-container",""],ye=n=>({"border-bottom":n});function fe(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",6),t.nI1(1,"translate"),t.bIt("mokafaaSelectedEvent",function(o){t.eBV(e);const r=t.XpG().$implicit,f=t.XpG();return t.Njj(f.mokafaaSelectedEventPoints(o,r))})("phoneNumberValue",function(o){t.eBV(e);const r=t.XpG().$implicit,f=t.XpG();return t.Njj(f.phoneNumberValuePoints(o,r))})("hidePayment",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.hidePaymentPoints(o))})("updateCart",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.updateCartPoints())})("openRedeemErrorPopupEvent",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openRedeemErrorPopupEventPoints(o))})("IsRedeemFinished",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.onRedeemFinishedPoints())})("openWarningPopupEvent",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.openWarningPopupEventPoints(o))})("updatePayment",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.updatePaymentPoints(o))}),t.k0s()}if(2&n){const e=t.XpG(),a=e.$implicit,o=e.index,r=t.XpG();t.Y8G("ngClass",t.eq3(16,ye,o<r.paymentMethodsWithPoints.length-1))("mokafaaSelected",r.selectedPaymentPointsMethod==a)("module",r.module)("encryptedKey",r.encryptedKey)("product",r.product)("bookingDetails",r.bookingDetails)("phoneNumber",r.phoneNumber)("img",r.paymentMethodConfig[a].img)("title",t.bMT(1,14,r.paymentMethodConfig[a].label))("redirectURL",r.redirectURL)("cancelOTPRequest",r.cancelOTPRequest)("paymentMethod",a)("callOTPAfterUpdatePaymentType",r.callOTPAfterUpdatePaymentType)("selectedPaymentMethod",r.selectedPaymentMethod)}}function Ce(n,c){if(1&n&&(t.qex(0),t.j41(1,"div",4),t.DNE(2,fe,2,18,"section",5),t.k0s(),t.bVm()),2&n){const e=c.$implicit,a=t.XpG();t.R7$(2),t.Y8G("ngIf",!a.redeemView||a.selectedPaymentPointsMethod&&a.selectedPaymentPointsMethod==e)}}function Me(n,c){1&n&&(t.nrm(0,"almatar-shared-message-hint",7),t.nI1(1,"translate")),2&n&&t.Y8G("message",t.bMT(1,1,"SHARED.QITAF_PARTNER_POINTS_HINT"))}let Oe=(()=>{class n{constructor(){this.paymentMethodConfig=nt.B4,this.mokafaaSelectedEvent=new t.bkB,this.updateCart=new t.bkB,this.openRedeemErrorPopupEvent=new t.bkB,this.hidePayment=new t.bkB,this.IsRedeemFinished=new t.bkB,this.openWarningPopupEvent=new t.bkB,this.phoneNumberValue=new t.bkB,this.updatePayment=new t.bkB}updateCartPoints(){this.updateCart.emit()}openRedeemErrorPopupEventPoints(e){this.redeemView=!1,this.openRedeemErrorPopupEvent.emit(e)}onRedeemFinishedPoints(){this.IsRedeemFinished.emit()}openWarningPopupEventPoints(e){this.openWarningPopupEvent.emit(e)}mokafaaSelectedEventPoints(e,a){this.selectedPaymentPointsMethod=e?a:"",this.mokafaaSelectedEvent.emit(e)}phoneNumberValuePoints(e,a){this.phoneNumberValue.emit(e)}hidePaymentPoints(e){this.redeemView=e,this.hidePayment.emit(e)}updatePaymentPoints(e){this.updatePayment.emit(e)}static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["","payment-with-points-container",""]],inputs:{paymentMethodsWithPoints:"paymentMethodsWithPoints",module:"module",encryptedKey:"encryptedKey",product:"product",bookingDetails:"bookingDetails",phoneNumber:"phoneNumber",redirectURL:"redirectURL",cancelOTPRequest:"cancelOTPRequest",callOTPAfterUpdatePaymentType:"callOTPAfterUpdatePaymentType",selectedPaymentMethod:"selectedPaymentMethod",isQitafEarned:"isQitafEarned",qitafData:"qitafData"},outputs:{mokafaaSelectedEvent:"mokafaaSelectedEvent",updateCart:"updateCart",openRedeemErrorPopupEvent:"openRedeemErrorPopupEvent",hidePayment:"hidePayment",IsRedeemFinished:"IsRedeemFinished",openWarningPopupEvent:"openWarningPopupEvent",phoneNumberValue:"phoneNumberValue",updatePayment:"updatePayment"},attrs:Pe,decls:7,vars:5,consts:[[1,"paymentPoints-container","loyalityContainer"],[1,"header"],[4,"ngFor","ngForOf"],[3,"message",4,"ngIf"],[1,"col-12","col-lg-8","col-md-9"],["class","paymentPoints-wrapper","paymentWithPoints","",3,"ngClass","mokafaaSelected","module","encryptedKey","product","bookingDetails","phoneNumber","img","title","redirectURL","cancelOTPRequest","paymentMethod","callOTPAfterUpdatePaymentType","selectedPaymentMethod","mokafaaSelectedEvent","phoneNumberValue","hidePayment","updateCart","openRedeemErrorPopupEvent","IsRedeemFinished","openWarningPopupEvent","updatePayment",4,"ngIf"],["paymentWithPoints","",1,"paymentPoints-wrapper",3,"mokafaaSelectedEvent","phoneNumberValue","hidePayment","updateCart","openRedeemErrorPopupEvent","IsRedeemFinished","openWarningPopupEvent","updatePayment","ngClass","mokafaaSelected","module","encryptedKey","product","bookingDetails","phoneNumber","img","title","redirectURL","cancelOTPRequest","paymentMethod","callOTPAfterUpdatePaymentType","selectedPaymentMethod"],[3,"message"]],template:function(a,o){1&a&&(t.j41(0,"section",0)(1,"div",1)(2,"h3"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.DNE(5,Ce,3,1,"ng-container",2)(6,Me,2,3,"almatar-shared-message-hint",3),t.k0s()),2&a&&(t.R
17$(3),t.JRh(t.bMT(4,3,"PROFILE.SHARED.paymentPage.paymentPoints-title")),t.R7$(2),t.Y8G("ngForOf",o.paymentMethodsWithPoints),t.R7$(),t.Y8G("ngIf",o.isQitafEarned&&(null==o.qitafData?null:o.qitafData.isActive)))},dependencies:[p.YU,p.Sq,p.bT,ge,be.J,O.D9],styles:[".paymentPoints-container[_ngcontent-%COMP%]{background-color:var(--almatar-neutral-surface-card);border-radius:var(--almatar-border-radius);padding:var(--almatar-payment-space);margin-top:var(--almatar-payment-space)}.paymentPoints-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:calc(21 * var(--almatar-font-size-ratio, 1) * 1px);font-weight:var(--almatar-font-weight-semibold);margin-bottom:var(--almatar-payment-space);text-align:start;margin-top:0}@media (max-width: 479px){.paymentPoints-container[_ngcontent-%COMP%] .paymentPoints-wrapper.border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid var(--almatar-neutral-surface-input-default);margin-bottom:var(--almatar-payment-space)}}"]})}}return n})();var ve=i(75480),xe=i(9600),Te=i(91393),ke=i(2294),we=i(87701),Ie=i(971),Ee=i(52075),Re=i(34923),Ae=i(35327);const Se=["mispayWidget"],Ne=[[["","extraBtn",""]]],Le=["[extraBtn]"],De=n=>({"b2b-card":n}),Be=n=>({"radio-btn-width":n}),Fe=n=>({"balance-gap":n}),Ve=(n,c,e)=>[n,"SAR",c,!1,e],We=n=>({"payment-options__relative":n}),Ge=n=>({later:n}),Ye=(n,c)=>({"d-none":n,"no-border":c});function je(n,c){if(1&n&&t.nrm(0,"app-mispay-widget-wrapper",6,0),2&n){const e=t.XpG();t.Y8G("amount",e.amountInBaseCurrency)}}function $e(n,c){if(1&n){const e=t.RV6();t.j41(0,"Anb-points",7),t.bIt("selected",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.activePaymentOption=o.paymentMethodsEnum.AL_RAJHI_MOKAFAA)})("openWarningPopupEvent",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.handleOpenWarningPopupEvent(o))}),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("amount",e.amountInBaseCurrency)("bookData",e.bookData)("encryptedKey",e.encryptedKey)("product",e.product.toLocaleLowerCase())("isSelected",e.activePaymentOption==e.paymentMethodsEnum.AL_RAJHI_MOKAFAA)}}function Ue(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",8),t.bIt("updateCart",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.getCartDetails())})("openRedeemErrorPopupEvent",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.handleOpenRedeemErrorPopupEvent(o))})("hidePayment",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.handleHidePayment(o))})("IsRedeemFinished",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.handleOnRedeemFinished())})("openWarningPopupEvent",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.handleOpenWarningPopupEvent(o))})("phoneNumberValue",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.phoneNumber=o)}),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("paymentMethodsWithPoints",e.paymentMethodsWithPoints)("selectedPaymentMethod",e.activePaymentOption)("module",e.product)("encryptedKey",e.encryptedKey)("product",e.product)("bookingDetails",e.bookData)("phoneNumber",e.phoneNumber)("redirectURL",e.redirectURL)("callOTPAfterUpdatePaymentType",e.callOTPAfterUpdatePaymentType)("qitafData",e.qitafData)("isQitafEarned",e.isQitafEarned)}}function Xe(n,c){1&n&&(t.j41(0,"h5",26),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"sideMenu.online-booking-with-no-commission")," "))}function He(n,c){if(1&n){const e=t.RV6();t.j41(0,"app-book-now-pay-later",27),t.bIt("unActiveMCC",function(o){t.eBV(e);const r=t.XpG(3);return t.Njj(r.updateMCCStatus(o))}),t.j41(1,"app-radio-button",28),t.bIt("selectedPaymentWay",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.selectedPaymentWay("book_later"))}),t.k0s()()}if(2&n){const e=t.XpG(3);t.Y8G("stopCallingBookNow",e.stopCallingBookNow)("cancellationTime",e.bookData.bookNowPayLaterCancellationTime)("encryptedKey",e.encryptedKey)("activePaymentOption",e.activePaymentOption),t.R7$(),t.Y8G("labelText","HOTEL.book_now_by_later")("initialState","book_later"==e.activePaymentOption)("value","book_later")}}function ze(n,c){1&n&&(t.j41(0,"section",29),t.nrm(1,"div",25),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.Y8G("alertType","security")("alertIcon","information-circle")("alertText",t.bMT(2,3,"SHARED.PAYMENT_NOT_APPLICABLE")))}function Ke(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",30)(1,"app-radio-button",28),t.bIt("selectedPaymentWay",function(o){t.eBV(e);const r=t.XpG(3);return t.Njj(r.selectedPaymentWay(o))}),t.k0s(),t.nrm(2,"app-stc-form",31),t.k0s()}if(2&n){const e=t.XpG(3);t.R7$(),t.Y8G("labelText","STC")("initialState","stc_pay"===e.activePaymentOption)("value","pay_now_STC"),t.R7$(),t.Y8G("showSTCForm","stc_pay"===e.activePaymentOption)("formData",e.paymentWrapperData)}}function Ze(n,c){if(1&n&&t.nrm(0,"app-currency-code-icon",44),2&n){const e=t.XpG(7);t.Y8G("currency",e.currentCurrencyObj)}}function Je(n,c){if(1&n&&(t.j41(0,"span",41)(1,"span",42),t.DNE(2,Ze,1,1,"app-currency-code-icon",43),t.EFF(3),t.nI1(4,"exchange_round"),t.k0s()()),2&n){const e=t.XpG(6);t.R7$(2),t.Y8G("ngIf",e.currentCurrencyObj),t.R7$(),t.SpI(" ",t.iJd(4,2,t.sMw(8,Ve,e.total,e.currentCurrencyObj,e.FRACTION))," ")}}
1function Qe(n,c){1&n&&(t.j41(0,"span",41),t.EFF(1,"loading..."),t.k0s())}function qe(n,c){if(1&n&&(t.j41(0,"div",36)(1,"div",37),t.nrm(2,"img",38),t.DNE(3,Je,5,12,"span",39)(4,Qe,2,0,"span",39),t.k0s(),t.j41(5,"div",40),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&n){const e=c.ngIf,a=t.XpG(5);t.R7$(),t.HbH(e&&e.amount>e.threshold?"good-balance":"low-balance"),t.Y8G("ngClass",t.eq3(9,Fe,a.isB2B||a.isCrd)),t.R7$(2),t.Y8G("ngIf",a.total),t.R7$(),t.Y8G("ngIf",!a.total),t.R7$(2),t.SpI(" ",t.bMT(7,7,a.balanceMsg)," ")}}function tn(n,c){if(1&n&&(t.qex(0),t.DNE(1,qe,8,11,"div",35),t.nI1(2,"async"),t.nI1(3,"async"),t.bVm()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngIf",t.bMT(3,3,e.isAlmatarPayEnabled&&t.bMT(2,1,e.isWalletEnabled$)&&e.balance$))}}function en(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",32)(1,"app-radio-button",33),t.bIt("selectedPaymentWay",function(o){t.eBV(e);const r=t.XpG(3);return t.Njj(r.selectedPaymentWay(o))}),t.k0s(),t.DNE(2,tn,4,5,"ng-container",34),t.k0s()}if(2&n){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(8,De,e.isB2B||e.isCrd)),t.R7$(),t.Y8G("isDisabled",!e.isAlmatarPayEnabled)("labelText",e.walletPaymentLabel)("addTranslate",!1)("initialState","ALMATAR_PAY"===e.activePaymentOption)("value","ALMATAR_PAY")("ngClass",t.eq3(10,Be,e.isB2B||e.isCrd)),t.R7$(),t.Y8G("appRoleBasedAccess",e.balanceAccessRoles)}}function nn(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",53)(1,"img",54),t.bIt("click",function(){t.eBV(e);const o=t.XpG(6);return t.Njj(o.openMispayWidgetComponentModal())}),t.k0s()()}if(2&n){const e=t.XpG(6);t.R7$(),t.AVh("disabled",e.activePaymentOption!=e.paymentMethodsEnum.MISPAY)}}function an(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",53)(1,"img",55),t.bIt("click",function(){t.eBV(e);const o=t.XpG(6);return t.Njj(o.openMispayWidgetComponentModal())}),t.k0s()()}if(2&n){const e=t.XpG(6);t.R7$(),t.AVh("disabled",e.activePaymentOption!=e.paymentMethodsEnum.MISPAY_INSTALLMENTS)}}function on(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",53)(1,"img",56),t.bIt("click",function(){t.eBV(e);const o=t.XpG(6);return t.Njj(o.openTabbyModal(o.tabbyOption))}),t.k0s()()}if(2&n){const e=t.XpG(6);t.R7$(),t.ZvI("info-tabby ",e.tabbyOption,""),t.AVh("disabled","TABBY_PAY_INSTALLMENTS"!=e.activePaymentOption)}}function rn(n,c){if(1&n){const e=t.RV6();t.j41(0,"app-radio-button",50),t.bIt("selectedPaymentWay",function(){t.eBV(e);
1const o=t.XpG(2).$implicit,r=t.XpG(3);return t.Njj(r.handlePaymentOption(o))}),t.DNE(1,nn,2,2,"section",51)(2,an,2,2,"section",51)(3,on,2,5,"section",51),t.nrm(4,"div",52),t.k0s()}if(2&n){const e=t.XpG(2).$implicit,a=t.XpG(3);t.HbH(e),t.Y8G("postImage",a.paymentMethodConfig[e].img)("labelText",a.paymentMethodConfig[e].label)("labelTextHasDynamicValue",e==a.paymentMethodsEnum.PAY_BY_INSTALMENTS?a.paymentMethodConfig[e].max_installment_number:null)("initialState",a.activePaymentOption==e)("value",e)("alignment","space-between")("subTitle",a.paymentMethodConfig[e].sub_label),t.R7$(),t.Y8G("ngIf","MISPAY"==e),t.R7$(),t.Y8G("ngIf",e==a.paymentMethodsEnum.MISPAY_INSTALLMENTS),t.R7$(),t.Y8G("ngIf","TABBY_PAY_INSTALLMENTS"==e)}}function sn(n,c){if(1&n&&(t.j41(0,"div"),t.DNE(1,rn,5,13,"app-radio-button",49),t.k0s()),2&n){const e=t.XpG().$implicit,a=t.XpG(3);t.R7$(),t.Y8G("ngIf",a.paymentMethodConfig[e])}}function cn(n,c){1&n&&(t.j41(0,"div",60)(1,"p"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&n&&(t.R7$(2),t.SpI("*",t.bMT(3,1,"tamam.tamam-error"),""))}function pn(n,c){if(1&n&&(t.j41(0,"form",57)(1,"p"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div"),t.nrm(5,"input",58),t.nI1(6,"translate"),t.DNE(7,cn,4,3,"div",59),t.k0s()()),2&n){const e=t.XpG(4);t.Y8G("formGroup",e.tamamForm),t.R7$(2),t.JRh(t.bMT(3,4,"tamam.tamam-input-placeholder")),t.R7$(3),t.Y8G("placeholder",t.bMT(6,6,"tamam.tamam-input-placeholder")),t.R7$(2),t.Y8G("ngIf",e.tamamError)}}function ln(n,c){if(1&n){const e=t.RV6();t.j41(0,"div",61),t.bIt("click",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.changePopUpText("PAY_BY_LATER"))}),t.nrm(1,"img",62),t.k0s()}if(2&n){const e=t.XpG().$implicit;t.Y8G("ngClass",t.eq3(1,Ge,"PAY_BY_LATER"==e))}}function dn(n,c){if(1&n&&(t.j41(0,"p",73),t.nrm(1,"img",74),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.j41(10,"span"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.EFF(13),t.nI1(14,"translate"),t.k0s()()),2&n){const e=t.XpG(7);t.R7$(3),t.SpI(" ",t.bMT(4,7,"mokafaa.mokafa-redeemed-hint")," "),t.R7$(3),t.Lme("",e.mokafaaData.paymentAmount," ",t.bMT(7,9,"mokafaa.mokafa-redeem-hint1")," "),t.R7$(2),t.SpI(" ",t.bMT(9,11,"mokafaa.and")," "),t.R7$(3),t.Lme("",e.mokafaaData.remainingAmount," ",t.bMT(12,13,"mokafaa.mokafa-redeem-hint2"),""),t.R7$(2),t.SpI(" ",t.bMT(14,15,"mokafaa.mokafa-redeemed-hint2")," ")}}function mn(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",75),t.bIt("formReady",function(){t.eBV(e);const o=t.XpG(7);return t.Njj(o.hideLoader())}),t.k0s()}if(2&n){const e=t.XpG(7);t.Y8G("paymentData",e.paymentWrapperData)("paymentLocalScript",e.paymentLocalScript)}}function hn(n,c){if(1&n){const e=t.RV6();t.j41(0,"section",76),t.bIt("checkoutPayment",function(o){t.eBV(e);const r=t.XpG(7);return t.Njj(r.checkoutPayment(o))})("formReady",function(){t.eBV(e);const o=t.XpG(7);return t.Njj(o.hideLoader())}),t.k0s()}if(2&n){const e=t.XpG(7);t.Y8G("buttonClass",e.paymentOptionMethods.indexOf("PAY_BY_INSTALMENTS")>-1&&e.paymentOptionMethods.indexOf("PAY_BY_LATER")>-1?"after-two-card":e.paymentOptionMethods.indexOf("PAY_BY_INSTALMENTS")>-1?"after-one-card":"")("checkoutData",e.paymentWrapperData)("isPaymentDisabled",e.isPaymentDisabled)}}function un(n,c){1&n&&t.nrm(0,"app-loader"),2&n&&t.HbH("without-background")}function _n(n,c){if(1&n&&(t.j41(0,"section",67)(1,"div",68)(2,"h4"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",69)(6,"div",70),t.DNE(7,dn,15,17,"ng-template",46)(8,mn,1,2,"section",71)(9,hn,1,3,"section",72)(10,un,1,2,"app-loader",66),t.k0s()()()()),2&n){const e=t.XpG(6);t.R7$(3),t.JRh(t.bMT(4,5,"FILL_REQUIRED_DATA")),t.R7$(4),t.Y8G("ngIf",e.isMokafaa),t.R7$(),t.Y8G("ngIf",(null==e.paymentWrapperData?null:e.paymentWrapperData.gateway)==e.paymentTypes.hyperPay),t.R7$(),t.Y8G("ngIf",e.paymentOptionMethods&&"payment_form"==e.activePaymentOption&&(null==e.paymentWrapperData?null:e.paymentWrapperData.gateway)==e.paymentTypes.checkout),t.R7$(),t.Y8G("ngIf",!e.formLoader)}}function gn(n,c){1&n&&t.nrm(0,"app-loader"),2&n&&t.HbH("without-background")}function bn(n,c){if(1&n){const e=t.RV6();t.j41(0,"almatar-payment-credit-card-frame",64),t.bIt("paymentOption",function(o){t.eBV(e);const r=t.XpG(5);return t.Njj(r.selectedPaymentWay(o))})("updatePayment",function(o){t.eBV(e);const r=t.XpG(5);return t.Njj(r.getUpdatedTransition(o))}),t.DNE(1,_n,11,7,"section",65)(2,gn,1,2,"app-loader",66),t.j41(3,"div",47),t.nrm(4,"div",48),t.k0s()()}if(2&n){const e=t.XpG(5);t.Y8G("ngClass",t.l_i(12,Ye,!e.acceptedPaymentMethods.includes("payment_form"),!e.showMCC||e.MCCardPaymentData.isMultiple||!e.bookData.canBeMultiple||!e.paymentOptionMethods.length))("unActiveMCC",e.unActiveMCC)("product",e.product)("bookingId",e.bookingId)("currentCurrencyObj",e.currentCurrencyObj)("cartDetails",e.bookData)("MCCardPaymentData",e.MCCardPaymentData)("activePaymentOption",e.activePaymentOption)("showMCC",e.showMCC)("showStcIcon",e.showStcIcon),t.R7$(),t.Y8G("ngIf",e.loadTransaction||e.isMokafaa),t.R7$(),t.Y8G("ngIf",!e.loadTransaction)}}function Pn(n,c){if(1&n&&(t.j41(0,"div"),t.DNE(1,bn,5,15,"almatar-payment-credit-card-frame",63),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngIf",e.bookData&&((null==e.paymentWrapperData?null:e.paymentWrapperData.gateway)==e.paymentTypes.hyperPay||(null==e.paymentWrapperData?null:e.paymentWrapperData.gateway)==e.paymentTypes.checkout)&&e.enablePaymentwrapper)}}function yn(n,c){if(1&n){const e=t.RV6();t.j41(0,"img",77),t.bIt("click",function(){t.eBV(e);const o=t.XpG(4);return t.Njj(o.activeTamara())}),t.k0s()}if(2&n){const e=t.XpG(4);t.AVh("disabled","PAY_BY_INSTALMENTS"!=e.activePaymentOption)}}function fn(n,c){if(1&n&&(t.j41(0,"section",45),t.DNE(1,sn,2,1,"div",11)(2,pn,8,8,"ng-template",46)(3,ln,2,3,"ng-template",46)(4,Pn,2,1,"div",11),t.j41(5,"div",47),t.nrm(6,"div",48),t.k0s(),t.DNE(7,yn,1,2,"ng-template",46,1,t.C5r),t.k0s()),2&n){const e=c.$implicit,a=t.XpG(3);t.Y8G("ngClass",t.eq3(6,We,"PAY_BY_INSTALMENTS"==e)),t.R7$(),t.Y8G("ngIf",!a.isMultiple&&!a.hidePaymentForm),t.R7$(),t.Y8G("ngIf","TAMAM_PAY_INSTALLMENTS"==a.activePaymentOption&&"TAMAM_PAY_INSTALLMENTS"==e),t.R7$(),t.Y8G("ngIf","PAY_BY_LATER"==e),t.R7$(),t.Y8G("ngIf","PAYMENT_FORM"==e||"payment_form"==e),t.R7$(3),t.Y8G("ngIf","PAY_BY_INSTALMENTS"==e&&!a.isMultiple)}}function Cn(n,c){if(1&n){const e=t.RV6();t.j41(0,"div",78)(1,"div",79),t.nrm(2,"almatar-icon",80),t.j41(3,"p"),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span",81),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.installmentPopup=!0)}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()()}
12&n&&(t.R7$(2),t.Y8G("name","information-circle"),t.R7$(2),t.SpI(" ",t.bMT(5,3,"SHARED.payment-hint-tmara-tabby")," "),t.R7$(3),t.JRh(t.bMT(8,5,"SHARED.learn-more")))}function Mn(n,c){if(1&n&&(t.j41(0,"div")(1,"h4",16),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Xe,3,3,"h5",17),t.j41(5,"section",18),t.DNE(6,He,2,7,"app-book-now-pay-later",19),t.k0s(),t.DNE(7,ze,3,5,"section",20)(8,Ke,3,5,"section",21)(9,en,3,12,"section",22)(10,fn,9,8,"ng-template",23)(11,Cn,9,7,"div",24),t.nrm(12,"div",25),t.nI1(13,"translate"),t.k0s()),2&n){const e=t.XpG(2);t.R7$(2),t.SpI(" ",t.bMT(3,11,"sideMenu.payment-methods")," "),t.R7$(2),t.Y8G("ngIf",e.showHintForOnlineBooking),t.R7$(2),t.Y8G("ngIf",e.showBNPLSection&&4!=(null==e.bookData?null:e.bookData.currentPaymentStatus)),t.R7$(),t.Y8G("ngIf",e.showAlmatarPayHint),t.R7$(),t.Y8G("ngIf",e.activePaymentOption&&e.displaySTC&&!e.isMultiple),t.R7$(),t.Y8G("ngIf",e.isAlmatarPayEnabled&&e.loadTransaction&&e.acceptedPaymentMethods.includes(e.paymentMethodsEnum.ALMATAR_PAY)),t.R7$(),t.Y8G("ngForOf",e.paymentOptionMethods),t.R7$(),t.Y8G("ngIf",!e.hidePaymentForm&&!e.isMultiple&&e.showTamaraNote&&(e.otherAllPayment.length<e.otherPaymentOption.length||e.excludedPaymentChannels.includes("tamara")||e.excludedPaymentChannels.includes("tabby"))||e.excludedPaymentChannels.includes(e.paymentMethodsEnum.MISPAY_INSTALLMENTS)),t.R7$(),t.Y8G("alertType","security")("alertIcon","shield-check")("alertText",t.bMT(13,13,"SHARED.SECURITY_PROTECTED"))}}function On(n,c){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"almatar-apple-pay",82),t.bIt("applePayEvent",function(o){t.eBV(e);const r=t.XpG(2);return t.Njj(r.continue(o))}),t.k0s(),t.bVm()}if(2&n){const e=t.XpG(2);t.R7$(),t.Y8G("currencyCode",null==e.paymentWrapperData?null:e.paymentWrapperData.currency)("amount",null==e.paymentWrapperData?null:e.paymentWrapperData.amount)("checkoutCode",null==e.paymentWrapperData?null:e.paymentWrapperData.checkoutCode)}}function vn(n,c){1&n&&(t.j41(0,"section",83),t.SdG(1),t.k0s())}function xn(n,c){if(1&n){const e=t.RV6();t.j41(0,"button",86),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.continue())}),t.j41(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&n){const e=t.XpG(3);t.Y8G("disabled",!e.activePaymentOption),t.BMQ("id","Hotels"===e.product?"main-hotel-submit-button":null),t.R7$(2),t.JRh(t.bMT(3,3,"confirm-Payment"))}}function Tn(n,c){if(1&n&&(t.j41(0,"section",84),t.DNE(1,xn,4,5,"button",85),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf","TW"==e.activePaymentOption||"PAY_BY_INSTALMENTS"==e.activePaymentOption||"PAY_BY_LATER"==e.activePaymentOption||"TABBY_PAY_INSTALLMENTS"==e.activePaymentOption||"TAMAM_PAY_INSTALLMENTS"==e.activePaymentOption||e.activePaymentOption==e.paymentMethodsEnum.MISPAY_INSTALLMENTS||"ALMATAR_PAY"==e.activePaymentOption&&(e.isB2B||e.isCrd))}}function kn(n,c){if(1&n){const e=t.RV6();t.j41(0,"div",87),t.bIt("payNowEvent",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.handlePayNowGiftEvent())})("payLaterEvent",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.handlePayLaterGiftEvent())}),t.k0s()}}function wn(n,c){if(1&n){const e=t.RV6();t.j41(0,"div",88),t.nI1(1,"translate"),t.bIt("confirmEvent",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.installmentPopup=!1)})("cancelEvent",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.installmentPopup=!1)}),t.j41(2,"div",89),t.nrm(3,"section",90),t.k0s()()}if(2&n){const e=t.XpG(2);t.Y8G("sharedModeltitle",t.bMT(1,5,"tabby.tabby-bottom-sheet.sheet-title"))("showCloseButton",!0)("modalActionsConfig",e.modalActionsConfig),t.R7$(3),t.Y8G("lang",e.language)("paymentMethodsRanges",e.otherPaymentOption)}}function In(n,c){if(1&n&&(t.j41(0,"section",9)(1,"section",10),t.DNE(2,Mn,14,15,"div",11),t.k0s(),t.DNE(3,On,2,3,"ng-container",11)(4,vn,2,0,"section",12)(5,Tn,2,1,"section",13)(6,kn,1,0,"div",14)(7,wn,4,7,"div",15),t.k0s()),2&n){const e=t.XpG();t.R7$(2),t.Y8G("ngIf",!e.hidePaymentForm),t.R7$(),t.Y8G("ngIf","APPLE_PAY"==e.activePaymentOption),t.R7$(),t.Y8G("ngIf",!e.hidePaymentForm),t.R7$(),t.Y8G("ngIf",!e.displayBNPLButton&&!e.hidePaymentForm&&!e.busyLoadingTransaction),t.R7$(),t.Y8G("ngIf",e.giftCancelationConfirm),t.R7$(),t.Y8G("ngIf",e.installmentPopup)}}let En=(()=>{class n{get isGodobaB2C(){return h.dT.brandName===G.l.b2c_godoba}constructor(e,a,o,r,f,B,H,W,lt,Rn,An,Sn,Nn,Ln,Dn,Bn,Fn,Vn,Wn){this.router=e,this.formBuilder=a,this._PaymentFormService=o,this.api=r,this.dialogService=f,this.shared=B,this._errorMod
1alsService=H,this._currencyRoeService=W,this.businessPartnersService=lt,this._PaymentService=Rn,this.timeTracker=An,this._paymentOptionService=Sn,this.platformId=Nn,this.platForm=Ln,this.authService=Dn,this.almatarRouterService=Bn,this.xMarketService=Fn,this.activeRoute=Vn,this.webengageTrackingService=Wn,this._store=(0,t.WQX)(A.il),this.destroyRef=(0,t.WQX)(t.abz),this.seoService=(0,t.WQX)(rt.B),this.offline=!1,this.discount=[],this.isPaymentDisabled=!1,this.showHintForOnlineBooking=!1,this.showMCC=!1,this.showStcIcon=!1,this.allowPublicRoute=!1,this.isManageBooking=!1,this.callOTPAfterUpdatePaymentType=!1,this.updateCart=new t.bkB,this.showPaymentPopUp=new t.bkB,this.showOtherOptions=new t.bkB,this.selectPaymentChoice=new t.bkB,this.updateSelectPaymentChoice=new t.bkB,this.removeCouponWithTamara=new t.bkB,this.showMokafaaToggle=new t.bkB,this.paymentInitialized=new t.bkB,this.hidePayment=new t.bkB,this.openWarningPopupEvent=new t.bkB,this.IsRedeemFinished=new t.bkB,this.openRedeemErrorPopupEvent=new t.bkB,this.acceptedPaymentMethodsValue=new t.bkB,this.paymentMethodsReady=new t.bkB,this.hideGift=new t.bkB,this.enablePaymentwrapper=h.dT.enablePaymentwrapper,this.paymentMethodsEnum=g.M3,this.appliedCoupon=!1,this.giftCancelationConfirm=!1,this.unActiveMCC=!1,this.isMokafaa=!1,this.mokafaaData={},this.acceptedPaymentMethods=[],this.inactivePaymentMethods=[],this.paymentMethodsWithPoints=[],this.paymentTypes=I.TL.paymentTypes,this.formLoader=!0,this.loading=!0,this.showBNPLSection=!1,this.loadTransaction=!1,this.loadBNPLSection=!1,this.timeTrackerTime=!1,this.displaySTC=!1,this.isMultiple=!1,this.paymentTransactionTimer=!1,this.showPartialPaymentPopup=!1,this.busyLoadingTransaction=!1,this.subscribers={},this.paymentOptionMethods=[],this.MCCardPaymentData=new g.ZR,this.showTamaraNote=!1,this.showTamaraHint="",this.tamaraPopUpText={PAY_BY_INSTALMENTS:{title:{en:"Installments",ar:"\u0642\u0633\u0637 \u0639\u0644\u064a \u062b\u0644\u0627\u062a \u062f\u0641\u0639\u0627\u062a"},subTitle:{en:"Book your trip and installment on three, without interest or hidden fees",ar:"\u0627\u062d\u062c\u0632 \u0644\u0631\u062d\u0644\u062a\u0643 \u0648\u0642\u0633\u0637 \u0639\u0644\u064a \u062a\u0644\u0627\u062b \u062f\u0641\u0639\u0627\u062a \u060c \u0628\u062f\u0648\u0646 \u0641\u0648\u0627\u0626\u062f \u0623\u0648 \u0631\u0633\u0648\u0645 \u0645\u062e\u0641\u064a\u0629"}},PAY_BY_LATER:{title:{en:"Travel NOW Pay later",ar:"\u0633\u0627\u0641\u0631 \u0627\u0644\u062d\u064a\u0646 \u0648\u0627\u062f\u0641\u0639 \u0628\u0639\u062f\u064a\u0646"},subTitle:{en:"Book your trip now and pay later, without interest or hidden fees",ar:"\u0627\u062d\u062c\u0632 \u0644\u0631\u062d\u0644\u062a\u0643 \u0627\u0644\u0622\u0646 \u0648\u0627\u062f\u0641\u0639 \u0628\u0639\u062f\u064a\u0646\u060c \u0628\u062f\u0648\u0646 \u0641\u0648\u0627\u0626\u062f \u0623\u0648 \u0631\u0633\u0648\u0645 \u0645\u062e\u0641\u064a\u0629"}}},this.phoneNumber="",this.accountLoaded=!1,this.balanceMsg="",this.displayPayButton=!0,this.isEmployeeBooking=!1,this.displayBNPLButton=!1,this.FRACTION=s.m.FRACTION,this.tabbyPaymentMethods=[],this.paymentMethodConfig=I.B4,this.showTabbyOptions=!1,this.installmentPopup=!1,this.paymentPopup=!1,this.otherAllPayment=[],this.paymentStopped=!1,this.isBrowser=!1,this.isB2B=h.dT.isB2B,this.balanceAccessRoles=[g.Uc.ADMIN,g.Uc.SUPER_ADMIN,g.Uc.BRANCH_ADMIN,g.Uc.BRANCH_GROUP_ADMIN],this.isWalletEnabled$=this._store.select(N.ts),this.CurrencySizeEnum=z.k,this.isCrd=h.dT.isCrd,this.brandName=h.dT.brandName,this.brandEnum=G.l,this.openTamaraDialog=!1,this.openTabbyDialog=!1,this.isServiceCart=!1,this.preventSubmitting=(0,t.hFB)(!1),this.isBrowser=(0,p.UE)(this.platformId),this.paymentWrapperData=new S.F,(0,t.WQX)(O.c$).get("Got-it").pipe((0,D.pQ)()).subscribe(Gn=>{this.modalActionsConfig=[{actionText:Gn,buttonType:v.O.secondaryButton,actionType:E.Q.confirm}]})}checkIfEmployee(){const e=JSON.parse(localStorage.getItem("employeesData"));this.isEmployeeBooking=e?.role?.includes(g.Uc.EMPLOYEE)}ngOnInit(){this.isBrowser&&this.seoService.addPrefetchLink(d.c.mispaySecretKey,"script"),this.currencyPipe=new tt.v,this.shared.getCurrencies().pipe((0,D.pQ)(this.destroyRef)).subscribe(o=>{this.currencies=o}),this._store.select(N.W$).pipe((0,D.pQ)(this.destroyRef)).subscribe(o=>{this.isAlmatarPayEnabled=o}),this._store.select((0,N.Q5)(this.language)).pipe((0,D.pQ)(this.destroyRef)).subscribe(o=>{this.walletPaymentLabel=o}),this.isB2B&&(this.checkIfEmployee(),this._store.select(N.bW).pipe((0,w.M)(o=>this.isWalletEnabled$.pipe(r=>(r&&o.includes(g.Uc.EMPLOYEE)&&(this.balanceAccessRoles.push(g.Uc.EMPLOYEE),this.getBalance()),(0,X.of)()))),(0,D.pQ)(this.destroyRef)).subscribe()),this.accountLoaded=!1,this.tamamForm=this.formBuilder.group({customerNationalId:["",[l.k0.required,l.k0.minLength(10),l.k0.maxLength(15)]]}),this.otherPaymentOption=JSON.parse(sessionStorage.getItem("options"))||[];const e=this.otherPaymentOption.find(o=>"PAY_BY_INSTALMENTS"===o.name);e&&(this.paymentMethodConfig.PAY_BY_INSTALMENTS.max_installment_number=e.max_installment_number||g.w7.PAY_BY_INSTALMENTS),this.otherPaymentOption||this.isBrowser&&this._paymentOptionService.getPaymentOption("Hotels"==this.product?"accommodation":this.product).subscribe(r=>{this._paymentOptionService.cacheOption(r.data),this.otherPaymentOption=JSON.parse(sessionStorage.getItem("options"))}),"ar"==this.language&&(this.paymentMethodConfig.PAY_BY_INSTALMENTS.img="tamara/Tamara-ar-icon.svg",this.paymentMethodConfig.PAY_BY_LATER.img="tamara/Tamara-ar-icon.svg");const a=JSON.parse(localStorage.getItem("employeesData"));if(this.isAlmatarPayEnabled&&a?.role[0]!==g.Uc.EMPLOYEE){this.activePaymentOption="ALMATAR_PAY";const o=JSON.parse(localStorage.getItem("userData")),r=localStorage.getItem("selectedCorporate");let f=o?.profile?.corporate_id;a?.role[0]===g.Uc.SUPER_ADMIN&&r&&(f=JSON.parse(r)?.id),this.getBalance()}else this.isB2B&&(this.activePaymentOption="payment_form");localStorage.setItem("currentLang",this.language),this.getPaymentForm(
1)}getBalance(){this.balance$=this.businessPartnersService.loadBalance(),this.balance$.subscribe(e=>{this.total=e.data.amount})}hideLoader(){this.formLoader=!0,this._PaymentFormService.convertPriceToCurrentCurrency(this.paymentWrapperData.amount,this.currency,this.currentCurrencyObj,!0)}activeTamara(){if("PAY_BY_INSTALMENTS"==this.activePaymentOption){this.openTamaraDialog=!1;const e=document.createElement("script");e.src=`${h.dT.tamarBaseURL}`,document.body.appendChild(e),this.tamaraOptionData(),setTimeout(()=>{window.tamaraWidgetConfig={lang:`${this.language}`,country:"SA",publicKey:`${h.dT.tamaraPublicKey}`,css:" .tamara-summary-widget--inline-outlined { border:none !important;padding:0px !important;}\n .tamara-summary-widget--inline-outlined:hover{background-color: transparent !important;}"},window.TamaraWidgetV2?.refresh(),this.tamaraDialog=this.dialogService.open(Q,{data:{lang:`${this.language}`,amount:this.amountInBaseCurrency},width:"70vh",height:"80vh",dismissableMask:!0,closeOnEscape:!0,styleClass:"tamara-dialog"})},500)}else this.openTamaraDialog=!0,this.handlePaymentOption("PAY_BY_INSTALMENTS")}activeTabby(){window.TamaraProductWidget&&(this.tamaraOptionData(),window.TamaraProductWidget.init({lang:`${this.language}`}),window.TamaraProductWidget.render())}openTabbyModal(){var e=this;return(0,m.A)(function*(){if("TABBY_PAY_INSTALLMENTS"==e.activePaymentOption){const r="AE"===(yield e.shared.detectGeoLocation()).apiData?.countryCode,f=r?"AED":"SAR",B=r?h.dT.tabbyMerchantCodeUAE:h.dT.tabbyMerchantCodeKSA;let H=e.amountInBaseCurrency;if(r){const W=e.currencies.find(lt=>"AED"===lt.code);H=e.currencyPipe.transform(e.amountInBaseCurrency,"SAR",W,!0,"",!1)}e.tabbyDialog=e.dialogService.open(q,{data:{lang:`${e.language}`,amount:H,currencyCode:f,merchantCode:B},width:"70vh",height:"80vh",dismissableMask:!0,closeOnEscape:!0,styleClass:"tabby-dialog"}),e.openTabbyDialog=!1}else e.openTabbyDialog=!0,e.handlePaymentOption("TABBY_PAY_INSTALLMENTS")})()}handleCurrency(e){const r=this._currencyRoeService.getROEConfig({code:e.currency,roe:e.roe},{code:this.currentCurrencyObj.tr_currency_code,roe:this.currentCurrencyObj.rate});this.currentCurrencyObj.rate=r.ROE,this.paymentWrapperData.currentCurrency=this.currentCurrencyObj.tr_currency_code,this.paymentWrapperData.price=r.isSupported?this.paymentWrapperData.amount:this._PaymentFormService.convertPriceToCurrentCurrency(this.paymentWrapperData.amount,this.currency,this.currentCurrencyObj,!0),this.PaymentInfo(!1)}selectPaymentOption(e,a){return this.platForm.IOS&&!this.activePaymentOption&&e.includes("apple_pay")?"APPLE_PAY":a||e[0]}emitPaymentMethodsReady(){this.paymentMethodsReady.emit({acceptedPaymentMethods:[...this.acceptedPaymentMethods],inactivePaymentMethods:[...this.inactivePaymentMethods]}),this.acceptedPaymentMethodsValue.emit([...this.acceptedPaymentMethods])}handleHotelsPaymentOptions(e){"payLater"!==this.bookData.customerPaymentChoice?(!this.activePaymentOption||!e.acceptedPaymentMethods.includes(this.activePaymentOption))&&(this.activePaymentOption=this.selectPaymentOption(e.acceptedPaymentMethods)):this.bookData.canBookNow||(this.activePaymentOption=this.selectPaymentOption(e.acceptedPaymentMethods,this.activePaymentOption),this.showAlmatarPayHint=this.isAlmatarPayEnabled&&!e.acceptedPaymentMethods.includes("ALMATAR_PAY"),this.isAlmatarPayEnabled=this.isAlmatarPayEnabled&&!!e.acceptedPaymentMethods.includes("ALMATAR_PAY"),this.acceptedPaymentMethodsValue.emit(e.acceptedPaymentMethods)),this.emitPaymentMethodsReady()}handleFlightsPaymentOptions(e){this.activePaymentOption=(this.existPaymentMethod(this.activePaymentOption,e.acceptedPaymentMethods),this.selectPaymentOption(e.acceptedPaymentMethods,this.activePaymentOption)),this.showTabbyOptions=!1,this.emitPaymentMethodsReady()}unsubscribeTransaction(){this.subscribers.getTransaction&&this.subscribers.getTransaction.unsubscribe()}handleTransactionState(e){const a={roe:e.roe,amount:e.amount,remainingSeconds:e.remainingSeconds};this.loadTransaction=!0,this.otherAllPayment=this._paymentOptionService.checkPaymentOptionCashed(this.currentCurrencyObj,this.paymentAmount,!0)||[],this.checkTabbyOption(),this.excludedPaymentChannels.includes("Tamara")?(this.showTamaraNote=!1,this.paymentOptionMethods=[]):this.showTamaraNote=!0,this.appliedCoupon="flights"===this.product.toLowerCase()&&this.discount.length||!!this.bookData.couponCode,this._PaymentService.currentTransaction(a),(this.bookData.status===x.cg.created&&"Hotels"===this.product||["Fl
1ights","Holidays"].includes(this.product))&&this.initTimeTracker(a.remainingSeconds||0,"transaction")}handlePreviousPaymentDialogSelection(){this.openTamaraDialog&&(this.activeTamara(),this.openTamaraDialog=!1),this.openTabbyDialog&&(this.openTabbyModal(),this.openTabbyDialog=!1)}checkTabbyOption(){this.tabbyPaymentMethods=[],this.paymentOptionMethods=[],this.acceptedPaymentMethods.forEach(e=>{"TABBY_PAY_INSTALLMENTS"==e?(this.tabbyPaymentMethods.push("TABBY_PAY_INSTALLMENTS_3"),this.tabbyPaymentMethods.push("TABBY_PAY_INSTALLMENTS_6"),this.paymentOptionMethods.includes("TABBY_PAY_INSTALLMENTS")||this.paymentOptionMethods.push("TABBY_PAY_INSTALLMENTS")):"TABBY_PAY_LATER"==e?(this.tabbyPaymentMethods.push(e),this.paymentOptionMethods.includes("TABBY_PAY")||this.paymentOptionMethods.push("TABBY_PAY")):("PAY_BY_INSTALMENTS"==e||"PAY_BY_LATER"==e||"apple_pay"==e||"TAMAM_PAY_INSTALLMENTS"==e||e==this.paymentMethodsEnum.MISPAY_INSTALLMENTS||"payment_form"==e)&&this.paymentOptionMethods.push(this.toCamelCase(e))}),this.tabbyActivePayment=this.tabbyPaymentMethods[0],this.handleTabbyOption()}handleMokafaa(e){e.transactions.length&&I.wM.includes(e.transactions[0].gateway)?(this.isMokafaa=!0,this.isAlmatarPayEnabled=!1,this.activePaymentOption="payment_form",this.mokafaaData={paymentAmount:e.paidAmount,remainingAmount:e.transactionDefaultAmount},this.hideGift.emit(!0)):this.isMokafaa=!1}handleRouting(e){this.almatarRouterService.navigate("Flights"===this.product?`/${this.allowPublicRoute?"flights-":"flights/"}confirmation/${this.encryptedKey}`:this.offline?`/hotels/confirmation/offline/${this.bookData.encryptedKey}`:`/${this.allowPublicRoute?"hotels-":"hotels/"}confirmation/${this.bookData.encryptedKey}`)}handleTimeTracking(e){const a=e.paymentRemainingSeconds||0;(this.bookData.status===x.cg.created&&"Hotels"===this.product||["Flights","Holidays"].includes(this.product))&&this.initTimeTracker(a)}PaymentInfo(e=!0){this.loading=!0,this._PaymentService.getPaymentInfo(this.bookData.paymentId).pipe((0,ot.s)(1)).subscribe(({data:a})=>{if(!a)return;this.paymentInfo=a,this.amountInBaseCurrency=a.amountInBaseCurrency,this.bookData.canBeMultiple=a.canBeMultiple,this.bookData.currentPaymentStatus=a.status,this.handlePreviousPaymentDialogSelection(),this.handleMokafaa(a),this.MCCardPaymentData=this._PaymentService.setMCCOptionData(a,this.bookData),this.displayBNPL(),a.transactions.length>=1&&(this.displaySTC=!1,this.showOtherOptions.emit(!1)),"payLater"!==this.bookData.customerPaymentChoice&&!this.isMokafaa&&this._PaymentService.setMCCTimer(a.isMultiple),this.bookData.isMultiple=a.isMultiple,this.isMultiple=a.isMultiple;const o=new g.A1;this._PaymentService.currentPaymentDataInfo(o.mapCurrentPaymentData(a)),[s.J.CREATED,s.J.PARTIALLY_PAID].includes(a.status)&&a.amount?e&&this.getPaymentForm():"Flights"==this.product?this.almatarRouterService.navigate(`/${this.allowPublicRoute?"flights-":"flights/"}confirmation/${this.encryptedKey}`):this.offline?this.almatarRouterService.navigate(`/hotels/confirmation/offline/${this.bookData.encryptedKey}`):this.handleRouting(a),this.handleTimeTracking(a)},a=>{const o={err:a,type:"true"};400===a.error.status&&"hcs-108"===a.error.errors[0]?.message?this.updateCart.emit(o):(o.type="timerOnError",this.showPaymentPopUp.emit(o))})}displayBNPL(){this.loadBNPLSection=this.bookData.showBookNowPayLater,this.showBNPLSection=this.bookData.showBookNowPayLater&&this.MCCardPaymentData.currentCard<=1,"payLater"==this.bookData.customerPaymentChoice&&(this.activePaymentOption="book_later")}getUpdatedTransition(e){this.loading=!0,this.loadTransaction=!1,this._PaymentService.currentTransaction(null),this.isMultiple=e.status,e.status?this.bookData.isMultiple=e.status:this.subscribers.transaction&&this.subscribers.transaction.unsubscribe(),this.getPaymentForm(e.amount)}activePayLater(){this.activePaymentOption="book_later",this.displayPayButton=!1,this.displayBNPLButton=!0,"payNow"==this.bookData.customerPaymentChoice&&(this.stopCallingBookNow=!0,this.updateCustomerPaymentChoice(I.Z8.CustomerPaymentChoice.PayLater),this._PaymentService.setMCCTimer(!1))}payNowOption(){"payNow"!=this.bookData.customerPaymentChoice&&this.bookData.status==x.cg.created&&this.updateCustomerPaymentChoice(I.Z8.CustomerPaymentChoice.PayNow)}updateCustomerPaymentChoice(e){this.activePaymentOption="book_later",this.isUpdatingCustomerPaymentChoice=!0,this.api.post({endpoint:`/api/hotel/v3/booking/choose-payment?key=${this.encryptedKey}&paymentChoice=${e}`}).subscribe({next:a=>{this.updateCart.emit()},error:a=>{this.updateCart.emit()}})}getCartDetails(){this.updateCart.emit()}handleHidePayment(e){this.hidePaymentForm=e,this.hidePayment.emit(e)}handleOnRedeemFinished(){this.IsRedeemFinished.emit()}handleOpenRedeemErrorPopupEvent(e){this.openRedeemErrorPopupEvent.emit(e)}handleOpenWarningPopupEvent(e){this.openWarningPopupEvent.emit(e)}updateMCCStatus(e){this.unActiveMCC=e,this.paymentInitialized.emit("BookNowPayLater")}selectedPaymentWay(e,a=!1){try{if(this.loadTransaction=!0,this.activePaymentOption=e,"pay_now_CC"===e)this.showTabbyOptions=!1,this.payNowOption(),e="payment_form",this.changeSelectedOption("payment_form"),this.bookData.isMultiple&&this._PaymentFormService.convertPriceToCurrentCurrency(this.paymentWrapperData.amount,this.currency,this.currentCurrencyObj),this._PaymentService.setMCCTimer(this.bookData.isMultiple),this.displayPayButton=!0,this.displayBNPLButton=!1;else if("pay_now_STC"===e)this.showTabbyOptions=!1,this.bookData.customerPaymentChoice="payNow"==this.bookData.customerPaymentChoice?"payNow":"payLater",this.payNowOption(),this.changeSelectedOption("stc_pay",this.MCCardPaymentData.amount),this.bookData.isMultiple&&this._PaymentFormService.convertPriceToCurrentCurrency(this.bookData.totalPrice,this.currency,this.currentCurrencyObj,!0),this._PaymentService.setMCCTimer(!1),this.displayPayButton=!0,this.displayBNPLButton=!1;else if("PAY_BY_INSTALMENTS"==e||"PAY_BY_LATER"==e)this.showTabbyOptions=!1,this.payNowOption(),this.displayBNPLButton=!1;else if("TABBY_PAY_INSTALLMENTS"==e)this.handleTabbyOption(),this.showTabbyOptions=!0;else if("TW"==e)a=!0;else if("book_later"==e){if(!this.IsGiftsAllowPayLater)return void(this.giftCancelationConfirm=!0)}else e==this.paymentMethodsEnum.MISPAY_INSTALLMENTS||e==this.paymentMethodsEnum.APPLE_PAY||e==this.paymentMethodsEnum.TAMAM_PAY_INSTALLMENTS||e==this.paymentMethodsEnum.ALMATAR_PAY||this.activePayLater(),this.showTabbyOptions=!1;"boolean"==typeof a&&!a&&this.selectPaymentChoice.emit(e),"Hotels"==this.product&&this.handlePreviousPaymentDialogSelection(),this.updateSelectPaymentChoice.emit(e)}catch(o){console.warn("\u{1f680} ~ PaymentWrapperComponent ~ selectedPaymentWay ~ error:",o)}}handlePayNowGiftEvent(){this.giftCancelationConfirm=!1,this.activePaymentOption="payment_form"}handlePayLaterGiftEvent(){this.giftCancelationConfirm=!1,this.selectedPaymentWay("")}changeSelectedOption(e,a){this.activePaymentOption=this._PaymentFormService.changePaymentMethod(e,a)}initTimeTracker(e=0,a){const o={type:"",data:{}};if("transaction"===a){this.unsubscribeTransaction();const r=localStorage.getItem("testingTimeOut")||"0";this.subscribers.transaction=this.timeTracker.start(parseInt(r)||e||0).subscribe(f=>{this.paymentTransactionTimer=!0,this.timeTrackerTime||(o.type="Refresh",this.showPaymentPopUp.emit(o))})}else{this.subscribers["time-tracker"]&&this.subscribers["time-tracker"].unsubscribe();const r=localStorage.getItem("testingTimeOut")||"0";this.subscribers["time-tracker"]=this.timeTracker.start(parseInt(r)||e||0).pipe((0,ot.s)(1),(0,D.pQ)(this.destroyRef)).subscribe(f=>{this.timeTrackerTime=!0,this.unsubscribeTransaction(),4!=this.bookData.currentPaymentStatus||this.isMokafaa?(o.type="timer",this.showPaymentPopUp.emit(o)):(o.type="partial",this.showPaymentPopUp.emit(o))})}}ngOnChanges(e){(e.updateFrom||e.bookData?.currentValue)&&(0==(this._paymentOptionService.checkPaymentOptionCashed(this.currentCurrencyObj,"Flights"==this.product?this.bookData.TotalFareAmou
1ntAfterAllCustDiscounts:this.bookData.totalPrice,!0)||[]).length&&"tamara"==e.bookData.currentValue.paymentChannel?(this.removeCouponWithTamara.emit(!0),this.paymentOptionMethods=[]):this.PaymentInfo()),(e.currentCurrencyObj&&!e.currentCurrencyObj.firstChange&&e.currentCurrencyObj.currentValue||e.getTransaction||e.bookData&&e.bookData.previousValue&&e.bookData.currentValue&&e.bookData.previousValue.couponCode!==e.bookData.currentValue.couponCode)&&this.getPaymentForm(),e.hidePaymentflag&&(this.hidePaymentForm=this.hidePaymentflag),e.isPaymentDisabled&&!e.isPaymentDisabled.currentValue&&e.isPaymentDisabled.previousValue&&this.paymentStopped&&this.payment(),this.isPaymentDisabled&&(this.paymentStopped=!0)}handlePaymentOption(e,a){try{this.selectedPaymentWay(e,a),this.showTamaraHint=e,this.activePaymentOption=e,this.displayPayButton=!1}catch(o){console.warn("\u{1f680} ~ PaymentWrapperComponent ~ handlePaymentOption ~ error:",o)}}checkoutPayment(e){this.paymentInitialized.emit(e)}continue(){this.paymentInitialized.emit(this.activePaymentOption),!this.preventSubmitting()&&(this.triggerWebengagePaymentInitiated(this.normalizePaymentMethod()),setTimeout(()=>{this.isPaymentDisabled?this.paymentStopped=!0:this.payment()},100))}handleRedirection(){let e=`${h.dT.baseURL}/${this.language}`;if(h.dT.enableCountryInRoutes){const o=this.xMarketService.getXMarket(),r=this.xMarketService.getRoutingCountry(o);r&&(e=`${e}/${r}`)}return this.redirectURL?.redirectURL?.includes("online")?e=this?.redirectURL?.redirectURL:(e=`${e}/${this.product.toLowerCase()}/loading/${this.encryptedKey}`,this.isManageBooking&&(e=`${e}/${this.bookingId}`)),this.allowPublicRoute&&(e=e.replace(`${this.product.toLowerCase()}/loading/`,`${this.product.toLowerCase()}-loading/`)),e}payment(){const e=this.normalizePaymentMethod();this.isTamamInvalid()||("ALMATAR_PAY"===this.activePaymentOption?this.handleAlmatarPay(e):this.isInstallmentOrPayLater()&&this.handleInstallmentsOrPayLater(e))}normalizePaymentMethod(){return"TABBY_PAY_INSTALLMENTS"===this.activePaymentOption?this.tabbyActivePayment.startsWith("TABBY_PAY_INSTALLMENTS")?"TABBY_PAY_INSTALLMENTS":this.tabbyActivePayment:this.activePaymentOption}isTamamInvalid(){return"TAMAM_PAY_INSTALLMENTS"===this.activePaymentOption&&!this.tamamForm.valid&&(this.tamamError=!0,!0)}isInstallmentOrPayLater(){return I.AU.includes(this.activePaymentOption)||I.Lv.includes(this.activePaymentOption)||"TW"===this.activePaymentOption}prepareRedirectURL(e,a=!1){if(this.brandEnum.sanad===this.brandName&&!h.dT.isCrd)return{redirectURL:this.authService.successUrl.value||this.handleRedirection(),requestId:this.bookData.paymentID,paymentMethod:e};if(e==this.paymentMethodsEnum.MISPAY_INSTALLMENTS)return{redirectURL:this.handleRedirection(),requestId:this.bookData.paymentID,amount:this.amountInBaseCurrency,paymentMethod:e};if(a){let r=`${h.dT.baseURL}/${this.language}`;if(h.dT.enableCountryInRoutes){const f=this.xMarketService.getXMarket(),B=this.xMarketService.getRoutingCountry(f);B&&(r=`${r}/${B}`)}return r=`${r}/${this.product.toLowerCase()}/loading/offline/${this.encryptedKey}`,{redirectURL:r,requestId:this.bookData.paymentID,paymentMethod:e}}return{redirectURL:this.handleRedirection(),requestId:this.bookData.paymentID,paymentMethod:e}}handleAlmatarPay(e){this.redirectURL=this.prepareRedirectURL(e);const a=this._PaymentService.retrieveTransaction();a.amount===this.paymentWrapperData.amount&&this._PaymentService.createTransition(`${this.product}`,a.amount,this.redirectURL,"web").subscribe({next:()=>window.location.href=this.redirectURL.redirectURL,error:o=>this.showPaymentError(o,"paymetFaild")})}handleInstallmentsOrPayLater(e){this.redirectURL=this.prepareRedirectURL(e,this.offline),this.redirectURL.currency=this.currentCurrencyObj.code,"TAMAM_PAY_INSTALLMENTS"===this.activePaymentOption&&(this.redirectURL.customerNationalId=this.tamamForm.controls.customerNationalId.value);const a=this._PaymentService.retrieveTransaction();this._PaymentService.createTransition(`${this.product}`,a.amount,this.redirectURL,"web").subscribe({next:({data:o})=>{o&&(this.redirectURL={redirectURL:this.redirectURL.redirectURL,requestId:this.encryptedKey},window.location.href=o.checkoutURL)},error:()=>this.showPaymentError(this.encryptedKey,"tabbyError")})}
1showPaymentError(e,a){const o=new y.A;o[a]=!0,this._errorModalsService.showErrorModal(e?.error?.errors?.[0]?.message||e,o,this.offline?"refresh":"paymetFaild"===a?"ok":"refresh",this.encryptedKey)}getPaymentForm(e){this.unsubscribeTransaction(),(!this.checkTamaraWithCouponAndWallet(this.bookData)||this.bookData.couponCode)&&(this.redirectURL.currency=this.currentCurrencyObj.code,this.isBrowser&&(this.isGodobaB2C&&(this.redirectURL.paymentMethod="THAWANI_CREDIT_CARD"),this.busyLoadingTransaction=!0,this.subscribers.getTransaction=this._PaymentService.createTransition(this.product,e,this.redirectURL).subscribe({next:({data:a})=>{a&&(this.busyLoadingTransaction=!1,this.paymentWrapperData=a,this.handleCurrency(a),this.loading=!1,this.inactivePaymentMethods=a.inactivePaymentMethods&&Object.keys(a.inactivePaymentMethods).length?Object.keys(a.inactivePaymentMethods):[],this.displaySTC=a.acceptedPaymentMethods.includes("stc_pay"),this.acceptedPaymentMethods=[...a.acceptedPaymentMethods],this.paymentMethodsWithPoints=this._PaymentService.getInterSectionMethods(a.acceptedPaymentMethods,I.Y4),"Hotels"===this.product?this.handleHotelsPaymentOptions(a):"Flights"===this.product&&this.handleFlightsPaymentOptions(a),this.showTabbyOptions="TABBY_PAY_INSTALLMENTS"===this.activePaymentOption,this.displayBNPLButton="book_later"===this.activePaymentOption,"stc_pay"===this.activePaymentOption&&setTimeout(()=>this.changeSelectedOption("stc_pay"),100),this.updateSelectPaymentChoice.emit(this.activePaymentOption),I._P.includes(this.activePaymentOption)&&setTimeout(()=>this.handlePaymentOption(this.activePaymentOption,!0),100),this.showTamaraHint=["PAY_BY_INSTALMENTS","PAY_BY_LATER"].includes(this.activePaymentOption)?this.activePaymentOption:"",this.paymentAmount=a.amount,this.handleTransactionState(a),this.paymentWrapperData?.gateway===this.paymentTypes.TW&&(this.paymentOptionMethods.unshift(this.paymentTypes.TW),setTimeout(()=>{(!this.isAlmatarPayEnabled||this.isEmployeeBooking)&&(this.activePaymentOption||=this.paymentTypes.TW)},100)))},error:a=>this.busyLoadingTransaction=!1})))}openMispayWidgetComponentModal(){var e=this;setTimeout((0,m.A)(function*(){yield e.mispayWidget.loadMispayWidgetAndGetLink(),e.mispayWidget.showWidget()}),1800)}toCamelCase(e){return e.toUpperCase().replace(/_([A-Z])/g,(a,o)=>`_${o.toUpperCase()}`)}existPaymentMethod(e,a){return a.find(o=>o.includes(e))||null}checkTamaraWithCouponAndWallet(e){return"tamara"===e.paymentChannel||"tabby"===e.paymentChannel||"tamam"===e.paymentChannel}handleTabbyOption(){new window.TabbyPromo({selector:"#TABBY_PAY_INSTALLMENTS_3",currency:this.currency.code,price:this.paymentAmount,lang:this.language,installmentsCount:3}),new window.TabbyPromo({selector:"#TABBY_PAY_INSTALLMENTS_6",currency:this.currency.code,price:this.paymentAmount,lang:this.language,installmentsCount:6})}tamaraOptionData(){const e=document.querySelector(".tamara-product-widget");e&&(e.setAttribute("data-price",this.paymentWrapperData.amount),e.setAttribute("data-currency","SAR"),e.setAttribute("data-inline-type","2"),e.setAttribute("data-lang",this.language))}changePopUpText(e){const a=setInterval(()=>{const o=document.querySelector(".tamara-popup .tamara-popup__statement"),r=document.querySelector(".tamara-popup .tamara-popup__submoto");o&&r&&(o.textContent=this.tamaraPopUpText[e].title[this.language],r.textContent=this.tamaraPopUpText[e].subTitle[this.language],clearInterval(a))},10)}ngOnDestroy(){this.tamaraDialog&&this.tamaraDialog.close()}triggerWebengagePaymentInitiated(e){try{this.webengageTrackingService.trackPaymentInitiated({productType:this.product,totalPrice:this.paymentInfo?.amountInBaseCurrency??this.amountInBaseCurrency??this.bookData?.totalPrice??0,paymentMethod:e,currentTransaction:this.paymentInfo?.currentTransaction,transactions:this.paymentInfo?.transactions,wallet:this.bookData?.wallet,bookingId:this.bookingId})}catch(a){console.warn("\u{1f680} ~ PaymentWrapperComponent ~ triggerWebengagePaymentInitiated ~ error:",a)}}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(st.Ix),t.rXU(l.ok),t.rXU(u.o6),t.rXU(u.Gf),t.rXU(L.o3),t.rXU(C.d),t.rXU(M.i3),t.rXU(_.R),t.rXU(T.X),t.rXU(u.WG),t.rXU(b.B),t.rXU(u.nc),t.rXU(t.Agw),t.rXU(bt.OD),t.rXU(Y.u),t.rXU(P.$E),t.rXU(it.A),t.rXU(st.nX),t.rXU(et.Sx))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["almatar-payment-wrapper"]],viewQuery:function(a,o){if(1&a&&t.GBs(Se,5),2&a){let r;t.mGM(r=t.lsd())&&(o.mispayWidget=r.first)}},inputs:{bookData:"bookData",getTransaction:"getTransaction",currentLang:"currentLang",encryptedKey:"encryptedKey",currency:"currency",baseCurrencyObj:"baseCurrencyObj",currentCurrencyObj:"currentCurrencyObj",stopCallingBookNow:"stopCallingBookNow",updateFrom:"updateFrom",product:"product",redirectURL:"redirectURL",paymentLocalScript:"paymentLocalScript",bookingId:"bookingId",language:"language",offline:"offline",discount:"discount",excludedPaymentChannels:"excludedPaymentChannels",isPaymentDisabled:"isPaymentDisabled",showForm:"show
1Form",IsGiftsAllowPayLater:"IsGiftsAllowPayLater",isUpdatingCustomerPaymentChoice:"isUpdatingCustomerPaymentChoice",showHintForOnlineBooking:"showHintForOnlineBooking",activePaymentMethod:"activePaymentMethod",showMCC:"showMCC",showStcIcon:"showStcIcon",allowPublicRoute:"allowPublicRoute",isManageBooking:"isManageBooking",activePaymentOption:"activePaymentOption",hidePaymentForm:"hidePaymentForm",hidePaymentflag:"hidePaymentflag",isQitafEarned:"isQitafEarned",qitafData:"qitafData",isServiceCart:"isServiceCart",preventSubmitting:[t.Mj6.SignalBased,"preventSubmitting"]},outputs:{updateCart:"updateCart",showPaymentPopUp:"showPaymentPopUp",showOtherOptions:"showOtherOptions",selectPaymentChoice:"selectPaymentChoice",updateSelectPaymentChoice:"updateSelectPaymentChoice",removeCouponWithTamara:"removeCouponWithTamara",showMokafaaToggle:"showMokafaaToggle",paymentInitialized:"paymentInitialized",hidePayment:"hidePayment",openWarningPopupEvent:"openWarningPopupEvent",IsRedeemFinished:"IsRedeemFinished",openRedeemErrorPopupEvent:"openRedeemErrorPopupEvent",acceptedPaymentMethodsValue:"acceptedPaymentMethodsValue",paymentMethodsReady:"paymentMethodsReady",hideGift:"hideGift"},features:[t.Jv_([L.o3]),t.OA$],ngContentSelectors:Le,decls:4,vars:4,consts:[["mispayWidget",""],["payNow",""],[3,"amount",4,"ngIf"],[3,"amount","bookData","encryptedKey","product","isSelected","selected","openWarningPopupEvent",4,"ngIf"],["payment-with-points-container","","class","payment-with-points-container",3,"paymentMethodsWithPoints","selectedPaymentMethod","module","encryptedKey","product","bookingDetails","phoneNumber","redirectURL","callOTPAfterUpdatePaymentType","qitafData","isQitafEarned","updateCart","openRedeemErrorPopupEvent","hidePayment","IsRedeemFinished","openWarningPopupEvent","phoneNumberValue",4,"ngIf"],["class","payment-wrapper-section",4,"ngIf"],[3,"amount"],[3,"selected","openWarningPopupEvent","amount","bookData","encryptedKey","product","isSelected"],["payment-with-points-container","",1,"payment-with-points-container",3,"updateCart","openRedeemErrorPopupEvent","hidePayment","IsRedeemFinished","openWarningPopupEvent","phoneNumberValue","paymentMethodsWithPoints","selectedPaymentMethod","module","encryptedKey","product","bookingDetails","phoneNumber","redirectURL","callOTPAfterUpdatePaymentType","qitafData","isQitafEarned"],[1,"payment-wrapper-section"],[1,"payment-wrapper-container","b2c-card","payment-wrapper","paymentMethodContainer"],[4,"ngIf"],["class","form-actions send-for-approval-wrapper",4,"ngIf"],["class","form-actions",4,"ngIf"],["gift-pay-later-confirm","",3,"payNowEvent","payLaterEvent",4,"ngIf"],["shared-modal","","class","installment-popup",3,"sharedModeltitle","showCloseButton","modalActionsConfig","confirmEvent","cancelEvent",4,"ngIf"],[1,"payment_method_title"],["class","payment_method_title-hint",4,"ngIf"],[1,"b2c-card"],[3,"stopCallingBookNow","cancellationTime","encryptedKey","activePaymentOption","unActiveMCC",4,"ngIf"],["class","b2c-card ammal-pay warrning",4,"ngIf"],["class","b2c-card payment-wrapper",4,"ngIf"],["class","b2c-card ammal-pay payment-wrapper",3,"ngClass",4,"ngIf"],["ngFor","",3,"ngForOf"],["class","hint-container",4,"ngIf"],["alerts","",1,"security-container",3,"alertType","alertIcon","alertText"],[1,"payment_method_title-hint"],[3,"unActiveMCC","stopCallingBookNow","cancellationTime","encryptedKey","activePaymentOption"],[3,"selectedPaymentWay","labelText","initialState","value"],[1,"b2c-card","ammal-pay","warrning"],[1,"b2c-card","payment-wrapper"],[3,"showSTCForm","formData"],[1,"b2c-card","ammal-pay","payment-wrapper",3,"ngClass"],[3,"selectedPaymentWay","isDisabled","labelText","addTranslate","initialState","value","ngClass"],[4,"appRoleBasedAccess"],["class","wallet",4,"ngIf"],[1,"wallet"],[3,"ngClass"],["src","../../../../../../assets/img/wallet-icon.svg","alt","wallet icon"],["class","balance",4,"ngIf"],[1,"balanceMsg"],[1,"balance"],[1,"currency"],[3,"currency",4,"ngIf"],[3,"currency"],[1,"payment-options",3,"ngClass"],[3,"ngIf"],["id","animate-card"],[1,"animate-card"],[3,"class","postImage","labelText","labelTextHasDynamicValue","initialState","value","alignment","subTitle","selectedPaymentWay",4,"ngIf"],[3,"selectedPaymentWay","postImage","labelText","labelTextHasDynamicValue","initialState","value","alignment","subTitle"],["class","tabby-radio-button",4,"ngIf"],["id","TABBY_PAY_INSTALLMENTS_3"],[1,"tabby-radio-button"],["src","../../../../assets/img/info.svg","alt","",1,"info-tabby",3,"click"],["src","../../../../assets/img/info.svg","alt","",1,"info-mispay",3,"click"],["src","../../../../assets/img/info.svg","alt","info icon",3,"click"],[1,"tamam-container",3,"formGroup"],["type","text","formControlName","customerNationalId",1,"form-control",3,"placeholder"],["class","error",4,"ngIf"],[1,"error"],["data-disable-paylater","false","data-payment-type","paylater","data-lang","en","data-inject-template","false",1,"tamara-product-widget",3,"click","ngClass"],["src","../../../../assets/img/info.svg","alt",""],["id","payment_wrapper",3,"ngClass","unActiveMCC","product","bookingId","currentCurrencyObj","cartDetails","MCCardPaymentData","activePaymentOption","showMCC","showStcIcon","paymentOption","updatePayment",4,"ngIf"],["id","payment_wrapper",3,"paymentOption","updatePayment","ngClass","unActiveMCC","product","bookingId","currentCurrencyObj","cartDetails","MCCardPaymentData","activePaymentOption","showMCC","showStcIcon"],["id","payment__iframe",4,"ngIf"],[3,"class",4,"ngIf"],["id","payment__iframe"],[1,"content"],[1,"content__container"],[1,"payment__wrapper"],["HP","",3,"paymentData","paymentLocalScript","formReady",4,"ngIf"],["CH","",3,"buttonClass","checkoutData","isPaymentDisabled","checkoutPayment","formReady",4,"ngIf"],[1,"mokafaa-hint"],["src","assets/mokafaa/info_blue.svg","alt","mokafaa info"],["HP","",3,"formReady","paymentData","paymentLocalScript"],["CH","",3,"checkoutPayment","formReady","buttonClass","checkoutData","isPaymentDisabled"],["src","../../../../assets/img/info.svg","alt","info icon",1,"tamara-product-widget",3,"click"],[1,"hint-container"],[1,"alert-warning"],[1,"information-circle",3,"name"],[1,"learn",3,"click"],[1,"form-actions",3,"applePayEvent","currencyCode","amount","checkoutCode"],[1,"form-actions","send-for-approval-wrapper"],[1,"form-actions"],["class","btn btn-success wpwl-button align-left",3,"disabled","click",4,"ngIf"],[1,"btn","btn-success","wpwl-button","align-left",3,"click","disabled"],["gift-pay-later-confirm","",3,"payNowEvent","payLaterEvent"],["shared-modal","",1,"installment-popup",3,"confirmEvent","cancelEvent","sharedModeltitle","showCloseButton","modalActionsConfig"],[1,"modal-container"],["almatar-installments-content","",1,"list",3,"lang","paymentMethodsRanges"]],template:function(a,o){1&a&&(t.NAR(Ne),t.DNE(0,je,2,1,"app-mispay-widget-wrapper",2)(1,$e,1,5,"Anb-points",3)(2,Ue,1,11,"section",4)(3,In,8,6,"section",5)),2&a&&(t.Y8G("ngIf",o.acceptedPaymentMethods.includes(o.paymentMethodsEnum.MISPAY_INSTALLMENTS)),t.R7$(),t.Y8G("ngIf",o.acceptedPaymentMethods.includes(o.paymentMethodsEnum.ANB_PAY)),t.R7$(),t.Y8G("ngIf",o.paymentMethodsWithPoints.length&&!o.isGodobaB2C),t.R7$(),t.Y8G("ngIf",o.showForm))},dependencies:[p.YU,p.Sq,p.bT,Pt.w,yt.I,ct.V,Mt,Ot.d,xt,wt,mt.Y,Bt,l.qT,l.me,l.BC,l.cb,l.j4,l.JD,Oe,ve.t,gt.Z,xe.X,Te.H,ke.R,we.M,Ie.A,Ee.O,Re.W,p.Jj,O.D9,Ae.v],styles:['.tph[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%]{color:transparent!important;border-radius:2px;background:linear-gradient(to right,#e7e6e6,#ddd)}.tph[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .text-placeholder[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{visibility:hidden}.hide-text[_ngcontent-%COMP%]{text-indent:-9999px;overflow:hidden;width:0;height:0;display:inline-block}.bold[_ngcontent-%COMP%]{font-weight:600}.center-text[_ngcontent-%COMP%]{text-align:center}.no-select[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.padding[_ngcontent-%COMP%]{padding:10px}.margin[_ngcontent-%COMP%]{margin:10px}.margin-bottom[_ngcontent-%COMP%]{display:block;margin-bottom:10px}.radius[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius)}.radius.radius-half[_ngcontent-%COMP%]{border-radius:6px}.stretch[_ngcontent-%COMP%]{display:block;width:100%}
1.tab-gradient[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:transparent;color:#2d2b5a;border-radius:34px;border:1px solid #2D2B5A}.tab-gradient[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#fff}.tab-gradient.tab-active[_ngcontent-%COMP%]{border:none;color:#fff;background:#543cd0;background:linear-gradient(90deg,#543cd0,#ff4e6e)}.button[_ngcontent-%COMP%]{border:none;padding:0 10px;height:34px;color:#fff;border-radius:34px;font-size:15px;display:flex;justify-content:center;align-items:center;box-sizing:border-box;cursor:pointer}.button[disabled][_ngcontent-%COMP%]{opacity:.6;pointer-events:none}.button.btn-bold[_ngcontent-%COMP%]{text-decoration:none;height:40px;line-height:40px;background:#2d2b5a;padding:0 20px;box-shadow:1px 1px 2px #2d2b5acc;border-radius:12px}.button.btn-bold[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#deedfa}.button.btn-add[_ngcontent-%COMP%]{color:#2d2b5a;text-decoration:none;line-height:34px;padding:0 20px;height:40px;background:transparent;border-radius:12px;border:1px dashed #9593BD}.button.btn-add[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-aux[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;height:40px;background:#39bb92;padding:0 20px;border-radius:12px}.button.btn-aux[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:12px}.button.btn-aux-mini[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-aux-mini-outline[_ngcontent-%COMP%]{text-decoration:none;background:transparent;color:#2d2b5a;padding:0 20px;border:1px solid #2D2B5A;border-radius:12px}.button.btn-aux-mini-outline[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#2d2b5a}.button.btn-simple[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;padding:0 20px;background:#39bb92;border-radius:6px}.button.btn-simple[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{font-weight:400;color:#eff8e7}.button.btn-alert[_ngcontent-%COMP%]{text-decoration:none;line-height:34px;border-radius:6px;display:inline-flex;height:45px;border-radius:var(--almatar-border-radius);background-color:#d56976;padding:0 40px}.shell-image[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);transition:all ease;position:relative;overflow:hidden;height:200px}@keyframes _ngcontent-%COMP%_shell-animate{0%{left:200%}to{left:-50%}}.shell-image[_ngcontent-%COMP%]:after{content:"";position:absolute;width:200%;height:200%;inset:0;animation:_ngcontent-%COMP%_shell-animate 1.5s alternate-reverse ease-in infinite;box-shadow:inset 0 0 200px 200px #ececec,0 0 200px 200px #ececec}.input[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;border:1px solid #9593BD;border-radius:var(--almatar-border-radius);padding:0 10px;min-height:54px;box-sizing:border-box;font-size:15px;flex-grow:1;background-color:transparent;font-weight:600;text-decoration:none;color:#2d2b5a;font-weight:400}.input[_ngcontent-%COMP%]::placeholder, .input-link[_ngcontent-%COMP%]::placeholder{color:#9593bd}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{outline:none}.input[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%], .input-link[_ngcontent-%COMP%]:focus + .placeholder[_ngcontent-%COMP%]{top:0;visibility:visible;opacity:1}.input[_ngcontent-%COMP%]:focus, .input-link[_ngcontent-%COMP%]:focus{border-color:#2d2b5a}.input.leading-icon[_ngcontent-%COMP%], .input-link.leading-icon[_ngcontent-%COMP%]{text-indent:20px}.input.no-border[_ngcontent-%COMP%], .input-link.no-border[_ngcontent-%COMP%]{border:none}.no-scrollbars[_ngcontent-%COMP%]{overflow:scroll;overflow:-moz-scrollbars-none;scrollbar-width:none;-ms-overflow-style:none}.no-scrollbars[_ngcontent-%COMP%]::-webkit-scrollbar{width:0!important;height:0!important}.no-scrollbars[_ngcontent-%COMP%]:-webkit-scrollbar{width:0;height:0}.b2c-card[_ngcontent-%COMP%]{border-radius:var(--almatar-border-radius);width:100%}.b2c-card.payment-wrapper[_ngcontent-%COMP%]{background-color:var(--almatar-neutral-surface-card);padding:var(--almatar-payment-space);margin-bottom:var(--almatar-payment-space)!important;border-radius:var(--almatar-border-radius)}.radio-button-style[_ngcontent-%COMP%]{padding-inline-start:30px;margin-inline-end:0;color:#464646;max-width:90%;position:relative;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{border:2px solid var(--almatar-primary-surface)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)!important}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark.disabled[_ngcontent-%COMP%]:after{background-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{opacity:1;background-color:var(--almatar-primary-surface)}.radio-button-style[_ngcontent-%COMP%] .payment_methods_options[_ngcontent-%COMP%]{font-size:15px;color:#363636;font-weight:500}.radio-button-style[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:50%;left:0;transform:translateY(-11px);height:20px;width:20px;border:2px solid var(--almatar-primary-surface);border-radius:50%}.radio-button-style[_ngcontent-%COMP%] .checkmark.disabled[_ngcontent-%COMP%]{border-color:var(--almatar-secondary-text-on-surface-disabled)}.radio-button-style[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;margin:auto;height:13px;width:13px;border-color:var(--almatar-primary-surface);border-radius:50%;display:block}.payment-with-points-container[_ngcontent-%COMP%]{margin-bottom:var(--almatar-payment-space)}.payment-wrapper-section[_ngcontent-%COMP%]{position:relative}.payment_method_title[_ngcontent-%COMP%]{margin-top:0;margin-bottom:28px}.payment_method_title-hint[_ngcontent-%COMP%]{margin-top:0;margin-bottom:28px;color:var(--almatar-gift-theme-4-secondary-text)}#animate-card[_ngcontent-%COMP%]{width:38%;display:none}#animate-card.show[_ngcontent-%COMP%]{display:inline-block!important;position:absolute;top:35%}.payment-form[_ngcontent-%COMP%]{margin-bottom:1rem}.b2c-card.payment-wrapper.full-credit-card[_ngcontent-%COMP%]{margin-bottom:6rem!important}.b2c-card.payment-wrapper.full-credit-card[_ngcontent-%COMP%] .wpwl-group-submit .wpwl-button-pay{bottom:-90px!important}.b2b-card[_ngcontent-%COMP%]{padding-inline:0!important;display:flex;justify-content:space-between;align-items:center;margin-top:16px}.radio-btn-width[_ngcontent-%COMP%]{flex-grow:1}
1.payment-expired[_ngcontent-%COMP%] .modal-content{width:45%!important}.payment-options[_ngcontent-%COMP%]{margin-bottom:var(--almatar-payment-space)}.payment-options[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:30px}.payment-options__relative[_ngcontent-%COMP%]{position:relative}.payment-options[_ngcontent-%COMP%] .TABBY_PAY_INSTALLMENTS[_ngcontent-%COMP%] .pre-image, .payment-options[_ngcontent-%COMP%] .TW[_ngcontent-%COMP%] .pre-image{width:54px!important}.payment-options[_ngcontent-%COMP%] .PAY_BY_INSTALMENTS[_ngcontent-%COMP%] .pre-image{width:54px!important}.learn-more[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:12px}.learn-more[_ngcontent-%COMP%] P[_ngcontent-%COMP%]{font-weight:600}.learn-more[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{width:9px;margin:0}.space-between[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.btn-spacing[_ngcontent-%COMP%]{padding:10px 41.2px}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 41.2px;font-size:16px;font-weight:500;position:absolute;bottom:-60px;height:56px}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .pay-space[_ngcontent-%COMP%]{margin:0 17px!important}.form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:15px!important;display:inline-block}.rtl[_nghost-%COMP%] .form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{left:10px}.rtl[_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%]{right:40%;left:auto}.rtl[_nghost-%COMP%] .info-tabby.disabled[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-tabby.disabled[_ngcontent-%COMP%]{opacity:.5}@media (max-width: 1441px){.rtl[_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%]{right:48%}}@media (max-width: 1281px){.rtl[_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%]{right:50%}}@media (max-width: 992px){.rtl[_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%]{right:60%}}@media (max-width: 768px){.rtl[_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%]{right:70%}}@media (max-width: 479px){.rtl[_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-tabby[_ngcontent-%COMP%]{right:90%}}.rtl[_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%]{right:21%;left:auto}.rtl[_nghost-%COMP%] .info-mispay.disabled[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-mispay.disabled[_ngcontent-%COMP%]{opacity:.5}@media (max-width: 1441px){.rtl[_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%]{right:21%}}@media (max-width: 1281px){.rtl[_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%]{right:25%}}@media (max-width: 992px){.rtl[_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%]{right:60%}}@media (max-width: 768px){.rtl[_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%]{right:70%}}@media (max-width: 479px){.rtl[_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .info-mispay[_ngcontent-%COMP%]{right:90%}}.rtl[_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .alert-warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .rtl [_nghost-%COMP%] .hint-container[_ngcontent-%COMP%] .alert-warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:calc(100% - 24px)}.info-tabby[_ngcontent-%COMP%]{position:absolute;left:40%;top:5px}.info-tabby.disabled[_ngcontent-%COMP%]{opacity:.5}@media (max-width: 1441px){.info-tabby[_ngcontent-%COMP%]{left:48%}}@media (max-width: 1281px){.info-tabby[_ngcontent-%COMP%]{left:50%}}@media (max-width: 992px){.info-tabby[_ngcontent-%COMP%]{left:60%}}@media (max-width: 768px){.info-tabby[_ngcontent-%COMP%]{left:70%}}@media (max-width: 479px){.info-tabby[_ngcontent-%COMP%]{left:90%}}.info-mispay[_ngcontent-%COMP%]{position:absolute;
1left:14%;top:5px}.info-mispay.disabled[_ngcontent-%COMP%]{opacity:.5}@media (max-width: 1441px){.info-mispay[_ngcontent-%COMP%]{left:21%}}@media (max-width: 1281px){.info-mispay[_ngcontent-%COMP%]{left:17%}}@media (max-width: 992px){.info-mispay[_ngcontent-%COMP%]{left:60%}}@media (max-width: 768px){.info-mispay[_ngcontent-%COMP%]{left:70%}}@media (max-width: 479px){.info-mispay[_ngcontent-%COMP%]{left:90%}}.tamara-product-widget[_ngcontent-%COMP%]{width:15px;cursor:pointer;position:absolute;top:3px;left:47%;border:none!important;padding:0}.tamara-product-widget.disabled[_ngcontent-%COMP%]{opacity:.5}.tamara-product-widget[_ngcontent-%COMP%] .tamara-summary-widget--inline-outlined{border:none}.tamara-product-widget.later[_ngcontent-%COMP%]{left:32%}@media (max-width: 1441px){.tamara-product-widget[_ngcontent-%COMP%]{left:60%}}@media (max-width: 992px){.tamara-product-widget[_ngcontent-%COMP%]{left:70%}}@media (max-width: 768px){.tamara-product-widget[_ngcontent-%COMP%]{left:70%}}@media (max-width: 479px){.tamara-product-widget[_ngcontent-%COMP%]{left:90%}}#rtl[_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%]{left:auto;right:47%}#rtl[_nghost-%COMP%] .tamara-product-widget.disabled[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .tamara-product-widget.disabled[_ngcontent-%COMP%]{opacity:.5}@media (max-width: 1441px){#rtl[_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%]{right:60%}}@media (max-width: 768px){#rtl[_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%]{right:70%}}@media (max-width: 479px){#rtl[_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%], #rtl [_nghost-%COMP%] .tamara-product-widget[_ngcontent-%COMP%]{right:90%}} .tamara-popup .tamara-popup__wrap::-webkit-scrollbar{display:none} .security-container{margin-top:16px} .security-container .alerts-wrapper p{font-size:14px!important}@media (max-width: 768px){ .security-container .alerts-wrapper p{font-size:12px!important}}.tamara-desc[_ngcontent-%COMP%]{font-size:12px!important}.payment-loader[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}.payment-loader[_ngcontent-%COMP%]:after{content:"";position:absolute;background:convert-rgba(#363636,.08);top:0;left:0;width:100%;height:100%;z-index:9}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{position:relative;z-index:10;width:50px;height:100px;text-align:center;font-size:10px;top:50%;left:50%;transform:translate(-50%,-50%)}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#7f41b8;height:100%;width:10px;display:inline-block;animation:_ngcontent-%COMP%_sk-stretchdelay 1.2s infinite ease-in-out;border:1px solid #eee;border-radius:134px}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect3[_ngcontent-%COMP%]{animation-delay:-1s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.payment-loader[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%] .rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-stretchdelay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}} #rtl .payment-loader .spinner{right:50%}.tamam-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;padding:20px 0;width:100%}.tamam-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;margin:0}.tamam-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:260px;height:45px;margin-inline-start:20px}.tamam-container[_ngcontent-%COMP%] .radio-button-style{flex-direction:column;align-items:initial;position:relative}.tamam-container[_ngcontent-%COMP%] .radio-button-style p{margin-bottom:0!important}.tamam-container[_ngcontent-%COMP%] .tabby-radio-button[_ngcontent-%COMP%]{display:flex;margin-top:3px}.tamam-container[_ngcontent-%COMP%] .tabby-radio-button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0!important}.tamam-container[_ngcontent-%COMP%] .tabby-radio-button[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{padding:0!important;color:#ae459c}.error[_ngcontent-%COMP%]{display:flex}.error[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-inline-start:20px;color:#d56976;font-size:12px;font-weight:400;padding:0!important}.installment-popup[_ngcontent-%COMP%] .list li img{transform:translate(0)!important}.hint[_ngcontent-%COMP%]{padding-inline-start:8px!important}.learn[_ngcontent-%COMP%]{cursor:pointer}.mokafaa-hint[_ngcontent-%COMP%]{background-color:#eaf5ff;border:1px solid #3c91e0;padding:10px 0}.mokafaa-hint[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 10px!important}.mokafaa-hint[_ngcontent-%COMP%] span[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:900}[_nghost-%COMP%] .tamara-summary-widget--inline-outlined[_ngcontent-%COMP%]{border:none!important}.hint-container[_ngcontent-%COMP%] .alert-warning[_ngcontent-%COMP%]{background-color:var(--almatar-information-surface-info-banner);padding:var(--almatar-border-radius);border-radius:var(--almatar-border-radius);
1display:flex;align-items:center;gap:12px}.hint-container[_ngcontent-%COMP%] .alert-warning[_ngcontent-%COMP%] .information-circle[_ngcontent-%COMP%]{width:24px;height:24px;display:block;color:var(--almatar-information-text-info)}.hint-container[_ngcontent-%COMP%] .alert-warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:var(--almatar-font-weight-regular);color:var(--almatar-information-text-info);margin:0;width:calc(100% - 36px)}.hint-container[_ngcontent-%COMP%] .alert-warning[_ngcontent-%COMP%] p[_ngcontent-%COMP%] .learn[_ngcontent-%COMP%]{font-weight:var(--almatar-font-weight-medium);color:var(--almatar-information-text-info);text-decoration:underline}.balance-gap[_ngcontent-%COMP%]{display:flex;gap:.5rem}.currency[_ngcontent-%COMP%]{direction:ltr;display:inline-block}.content[_ngcontent-%COMP%] .payment__wrapper[_ngcontent-%COMP%]{border-bottom:1px solid var(--almatar-neutral-border-default-card);margin-bottom:var(--almatar-payment-space)}.content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:16px;margin:0 0 2px;color:var(--almatar-neutral-text-highlight-static);font-weight:var(--almatar-font-weight-regular)}@media (max-width: 479px){.content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px}}.no-border[_nghost-%COMP%] .content[_ngcontent-%COMP%] .payment__wrapper[_ngcontent-%COMP%], .no-border [_nghost-%COMP%] .content[_ngcontent-%COMP%] .payment__wrapper[_ngcontent-%COMP%]{border-bottom:none;margin-bottom:0}']})}}return n})()},76092:(F,R,i)=>{i.d(R,{w:()=>tt});var m=i(60177),t=i(29114),p=i(69278),x=i(36212),A=i(79240),O=i(33650),S=i(81070),b=i(45896),C=i(34180),M=i(41780),y=i(88437),I=i(46496),_=i(5475),l=i(99006),v=i(20140),E=i(81274),h=i(26368),T=i(54438);let G=(()=>{class k{static{this.\u0275fac=function(w){return new(w||k)}}static{this.\u0275mod=T.$C({type:k})}static{this.\u0275inj=T.G2t({imports:[m.MD,M.h]})}}return k})();var N=i(89417),Y=i(54086),z=i(85592);let L=(()=>{class k{static{this.\u0275fac=function(w){return new(w||k)}}static{this.\u0275mod=T.$C({type:k})}static{this.\u0275inj=T.G2t({imports:[m.MD,M.h,Y.Y,z.J]})}}return k})();var j=i(98862),K=i(59232),Z=i(60341),J=i(1095),Q=i(91393),$=i(2294),U=i(87701),V=i(20849);const q=[y.B,I.h,_.N,l.b,v.y];let tt=(()=>{class k{static{this.\u0275fac=function(w){return new(w||k)}}static{this.\u0275mod=T.$C({type:k})}static{this.\u0275inj=T.G2t({providers:[...q],imports:[m.MD,t.L,p.v,x.i,A.B,O.D,S.K,b.y,C.Q,M.h,E.T,h.b,G,N.X1,L,Y.Y,j.o,K.k,Z.y,J.Z,Q.H,$.R,U.M,V.Od]})}}return k})()}}]);
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.