1"use strict";(self.webpackChunkfuse=self.webpackChunkfuse||[]).push([[3525],{3525:(Re,C,i)=>{i.r(C),i.d(C,{SalesAgentComponent:()=>Ee});var c=i(467),e=i(4438),j=i(9350),S=i(7707);function A(s,o){const t="object"==typeof o;return new Promise((n,r)=>{const a=new S.Ms({next:d=>{n(d),a.unsubscribe()},error:r,complete:()=>{t?n(o.defaultValue):r(new j.G)}});s.subscribe(a)})}var g=i(6013),h=i(4710),m=i(177),u=i(9417),G=i(2765),f=i(9213),M=i(5951),v=i(9991),_=i(7028),N=i(5312),I=i(2234),D=i(7927),l=i(4021),E=i(2491),k=i(1606),x=i(8056),R=i(6878);function B(s,o){1&s&&(e.j41(0,"div",4)(1,"div",5),e.nrm(2,"mat-spinner",6),e.j41(3,"p",7),e.EFF(4,"Loading Cart..."),e.k0s()()())}function Y(s,o){if(1&s&&(e.j41(0,"fuse-alert",8),e.EFF(1),e.k0s()),2&s){const t=e.XpG();e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message,"\n")}}function V(s,o){if(1&s&&(e.j41(0,"div")(1,"div"),e.EFF(2),e.k0s(),e.j41(3,"div",44),e.EFF(4),e.nI1(5,"currency"),e.k0s()()),2&s){const t=o.$implicit;e.R7$(2),e.SpI(" ",null==t?null:t.OfferableName," "),e.R7$(2),e.SpI(" ",e.i5U(5,2,null==t?null:t.Billing_TotalIncl,"R")," ")}}function O(s,o){if(1&s&&(e.j41(0,"div",42),e.DNE(1,V,6,5,"div",43),e.k0s()),2&s){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.onceOffs)}}function $(s,o){if(1&s&&(e.j41(0,"div",44),e.EFF(1),e.k0s()),2&s){const t=e.XpG().$implicit;e.R7$(),e.Lme(" ",t.amount," ",t.type," ")}}function U(s,o){if(1&s&&(e.j41(0,"div",44),e.EFF(1),e.k0s()),2&s){const t=e.XpG().$implicit;e.R7$(),e.Lme(" ",t.type," ",t.amount," ")}}function X(s,o){if(1&s&&(e.j41(0,"div",42)(1,"div"),e.EFF(2),e.k0s(),e.DNE(3,$,2,2,"div",46)(4,U,2,2,"div",46),e.k0s()),2&s){const t=o.$implicit;e.R7$(2),e.SpI(" Promo: ",null==t?null:t.name," "),e.R7$(),e.Y8G("ngIf","%"==t.type),e.R7$(),e.Y8G("ngIf","%"!=t.type)}}function z(s,o){if(1&s&&(e.j41(0,"div"),e.DNE(1,X,5,3,"div",45),e.k0s()),2&s){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.promoTypeArray)}}function W(s,o){if(1&s&&(e.j41(0,"div",32)(1,"div",39),e.EFF(2," Included: "),e.k0s(),e.DNE(3,O,2,1,"div",40)(4,z,2,1,"div",41),e.k0s()),2&s){const t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",t.onceOffs),e.R7$(),e.Y8G("ngIf",null==t.promoTypeArray?null:t.promoTypeArray.length)}}function K(s,o){if(1&s){const t=e.RV6();e.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"h2",12),e.EFF(4," Confirm Your Cart "),e.k0s(),e.j41(5,"p",13),e.EFF(6," Review your selected package and proceed to checkout "),e.k0s()(),e.j41(7,"div",9)(8,"div",14)(9,"div",15)(10,"div",12),e.EFF(11),e.k0s(),e.j41(12,"div",13),e.EFF(13),e.k0s()(),e.j41(14,"fuse-card",16)(15,"div",17)(16,"div",18),e.EFF(17," My cart "),e.k0s(),e.j41(18,"div",19),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.clearCart())}),e.nrm(19,"mat-icon",20),e.j41(20,"div",21),e.EFF(21,"Remove"),e.k0s()()(),e.nrm(22,"hr",22),e.j41(23,"div",17),e.nrm(24,"img",23),e.j41(25,"div",24),e.EFF(26),e.k0s()(),e.DNE(27,W,5,2,"div",25),e.nrm(28,"hr",22),e.j41(29,"div",26),e.EFF(30," Apply promo Code "),e.k0s(),e.j41(31,"div",27)(32,"div",28)(33,"input",29,0),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.promoCode,r)||(a.promoCode=r),e.Njj(r)}),e.k0s()(),e.j41(35,"div",30)(36,"button",31),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.redeemPromoCode(r.promoCode))}),e.EFF(37," Redeem "),e.k0s()()(),e.nrm(38,"hr",22),e.j41(39,"div",17)(40,"div",32)(41,"div",33),e.EFF(42," What you pay: "),e.k0s(),e.j41(43,"div",34),e.EFF(44),e.nI1(45,"currency"),e.k0s(),e.j41(46,"div",35),e.EFF(47),e.nI1(48,"currency"),e.k0s()()()()(),e.j41(49,"div",36)(50,"div",37)(51,"app-terms",38),e.bIt("termsAndConditions",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.termsCheck(r))}),e.k0s()()()()()()}if(2&s){const t=e.XpG();e.R7$(11),e.SpI(" ",null==t.corePackage?null:t.corePackage.PackageName," "),e.R7$(2),e.Lme(" Download ",null==t.corePackage?null:t.corePackage.MbpsDownload,"Mbps | Upload ",null==t.corePackage?null:t.corePackage.MbpsUpload,"Mbps "),e.R7$(6),e.Y8G("color","warn"),e.R7$(5),e.Y8G("src",t.providerLogo,e.B4B),e.R7$(2),e.Lme(" ",null==t.corePackage?null:t.corePackage.MbpsDownload,"/",null==t.corePackage?null:t.corePackage.MbpsUpload,"Mbps "),e.R7$(),e.Y8G("ngIf",t.onceOffs||0!==(null==t.promoTypeArray?null:t.promoTypeArray.length)),e.R7$(6),e.R50("ngModel",t.promoCode),e.R7$(11),e.SpI(" ",e.i5U(45,11,t.monthlyPrice,"R")," per month "),e.R7$(3),e.SpI(" ",e.i5U(48,14,t.onceoffPrice,"R")," once off ")}}let T=(()=>{class s{constructor(t,n,r,a,d,p,b){this._sharedMethods=t,this._authService=n,this.router=r,this._gtmService=a,this._webStorage=d,this.cdr=p,this.platformId=b,this.termsValue=new e.bkB,this.loading=!0,this.onceOffs=[],this.hasFibreInstalled=!1,this.onceoffPrice=0,this.monthlyPrice=0,this.disableButton=!0,this.integrationUrl=N.c.integrationUrl,this.promoTypeArray=[],this.showAlert=!1,this.termsList=[],this.allTermsAccepted=!1,this.gtmCount=0,this.reviewCartDealerEventCount=0}ngOnChanges(){var t=this;return(0,c.A)(function*(){var n;
1if(null!==t.lead){if(t.lead&&t.emailToken&&(t.channelPartnerOrderResult=yield t._sharedMethods.getChannelPartnerOrder(t.lead.LeadEntityID),t.channelPartnerOrderResult.success?(t.channelPartnerOrder=t.channelPartnerOrderResult.result,t.channelPartnerOrder.IsCompleted&&"Order"===t.lead.LeadActionTypeCode?(t.alert={type:"success",message:"Order completed successfully"},t.showAlert=!0):t.channelPartnerOrder.IsCompleted&&(t.alert={type:"warning",message:"Your order still requires final confirmation"},t.showAlert=!0)):t._authService.verifyEmailAddress(t.emailToken).subscribe({next:(n=(0,c.A)(function*(){t.alert={type:"success",message:"Account verified successfully"},t.showAlert=!0,t.accountVerified=!0,yield t._sharedMethods.createChannelPartnerOrder(t.lead.LeadEntityID,t.emailToken,!0,t.leadRegistrationToken,!1,t.passwordToken,t.userName)}),function(){return n.apply(this,arguments)})})),t.lead){if(t.corePackageResult=yield t._sharedMethods.getLinkedOfferablesByLeadId(t.lead.LeadEntityID),t.monthlyPrice=0,t.onceoffPrice=0,t.onceOffs=[],!t.corePackageResult?.success)return void t.stopLoading("error","We could not load the package on your order. Please try again, or contact support if the issue persists.");if(t.corePackageResult.success){for(const n of t.corePackageResult.result)if(n.Billing_IsRecurring){t.providerLogo=t.integrationUrl+"/organisations/"+t.corePackage?.PackageSupplierOrganisationEntityID+"/logo",t.corePackage=n;let r={PackageEntityID:n?.PackageEntityID,LeadEntityID:t.lead.LeadEntityID,Price:n.RecurringTotal??n.Billing_TotalTempIncl};t._webStorage.CartInfo.next(r),l.t.setItem("cartInfo",JSON.stringify(r)),t.calculateTotalPrice("add",!0,n.Billing_TempDiscountEnabled?n.Billing_TotalTempIncl:n.Billing_TotalIncl)}else t.onceOffs.find(a=>a.PackageEntityID===n.PackageEntityID)||(t.onceOffs.push(n),t.calculateTotalPrice("add",!1,n.Billing_TotalIncl));t.cdr.detectChanges(),t.loading=!1}}}else t.stopLoading("error","We could not load your order. Please re-open the link from your email, or contact support if the issue persists.")})()}redeemPromoCode(t){var n=this;return(0,c.A)(function*(){n.promoResult=yield n._sharedMethods.applyPromoCode(n.lead.LeadEntityID,t),n.promoSalesItemsResult=yield n._sharedMethods.getPromoSalesItems(n.lead.LeadEntityID),n.promoSalesItemsResult.success&&(n.promoCode="",n.promoSalesItems=n.promoSalesItemsResult.result,n.promoSalesItems.forEach(r=>{if(r.PromoCode){const a=r.Billing_TotalIncl=r.Billing_PriceIncl-r.Billing_TotalIncl;n.promoTypeArray.push({name:t,amount:r.Billing_DiscountAmount,type:"Fixed"==r.Billing_DiscountTypeCode?"R":"%"}),n.calculateTotalPrice("remove",r.Billing_IsRecurring,a)}})),n.promoResult.success?(n.alert={type:"success",message:"Promo code applied successfully"},n.showAlert=!0,n.promoAppliedResult=yield n._sharedMethods.getAppliedPromoCode(n.lead.LeadEntityID),n.promoApplied=n.promoAppliedResult.result):(n.alert={type:"error",message:n.promoResult.error},n.showAlert=!0)})()}calculateTotalPrice(t,n,r){n?t&&("add"==t?this.monthlyPrice+=r:this.monthlyPrice-=r):"add"==t?this.onceoffPrice+=r:this.onceoffPrice-=r}gtmEvent(){if((0,m.UE)(this.platformId))if(this.currentPageTitle){l.t.getItem("currentURL")?l.t.getItem("currentURL")==window.location.href||(this.referrer=l.t.getItem("currentURL"),l.t.setItem("currentURL",window.location.href),l.t.setItem("previousURL",this.referrer)):l.t.setItem("currentURL",window.location.href);const t=this.corePackage;if(this.reviewCartDealerEventCount<1){this.reviewCartDealerEventCount++;const n=window.location.href;this._gtmService.pushEvent({event:"review_cart_dealer",page_url:n,page_path:this.router.url,page_referrer:this.referrer?this.referrer:n,page_title:`${this.currentPageTitle}`,dealer_code:this.dealerCode,package_price:t?.Billing_TotalIncl})}}else{l.t.getItem("currentURL")?l.t.getItem("currentURL")==window.location.href||(this.referrer=l.t.getItem("currentURL"),l.t.setItem("currentURL",window.location.href),l.t.setItem("previousURL",this.referrer)):l.t.setItem("currentURL",window.location.href);const t=window.location.href;this._gtmService.pushEvent({event:"review_cart_online",page_url:t,page_path:this.router.url,page_referrer:this.referrer?this.referrer:t,page_title:"review_cart_online"})}}clearCart(){l.t.removeItem("cartInfo"),this._webStorage.CartInfo.next(0),this.router.navigate(["/"])}addressHasFibre(t){this.hasFibreInstalled=!t.value}termsCheck(t){this.termsList=t,this.allTermsAccepted=t.every(n=>!0===n.isAccepted),this.termsValue.emit(this.allTermsAccepted)}stopLoading(t,n){this.loading=!1,this.alert={type:t,message:n},this.showAlert=!0,this.cdr.detectChanges()}acceptTermsAndConditions(){var t=this;return(0,c.A)(function*(){if(t.allTermsAccepted&&t.termsList&&t.termsList.length>0){for(let r=0;r<t.termsList.length;r++)t.termsList[r].apiCallPassed=!!(yield t._sharedMethods.acceptTermsAndConditions(t.lead.LeadEntityID,t.termsList[r].TermsAndConditionsTemplateID)
1).success;if(!t.termsList.every(r=>r.apiCallPassed))return t.alert={type:"error",message:"Acceptance of terms and conditions failed"},t.showAlert=!0,!1}return!0})()}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(E.U),e.rXU(k.u),e.rXU(h.Ix),e.rXU(x.U),e.rXU(R.g),e.rXU(e.gRc),e.rXU(e.Agw))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["app-confirm-cart"]],inputs:{dealerCode:"dealerCode",currentPageTitle:"currentPageTitle",lead:"lead",emailToken:"emailToken",leadRegistrationToken:"leadRegistrationToken",passwordToken:"passwordToken",userName:"userName"},outputs:{termsValue:"termsValue"},standalone:!0,features:[e.OA$,e.aNF],decls:3,vars:3,consts:[["promoInput",""],["class","spinner-center-fullscreen",4,"ngIf"],["class","top-0.5 md:top-8 right-0.5 absolute !z-99",3,"appearance","showIcon","type",4,"ngIf"],["class"," w-full",4,"ngIf"],[1,"spinner-center-fullscreen"],[1,"spinner-center-content"],["color","accent","diameter","60",1,"mat-spinner-consistent","mb-4"],[1,"text-white","text-lg","font-medium"],[1,"top-0.5","md:top-8","right-0.5","absolute","!z-99",3,"appearance","showIcon","type"],[1,"w-full"],[1,"relative","z-10","px-4","py-4","pb-10","w-full","mx-auto","lg:max-w-6xl"],[1,"mb-4"],[1,"text-white","text-2xl","font-bold","mb-2"],[1,"text-white/80","text-lg"],[1,"bg-slate-800/50","rounded-2xl","shadow-xl","p-6","border","border-white/20","mb-6"],[1,"mb-6"],[1,"flex","flex-col","shadow-xl","p-5","rounded-2xl","bg-slate-700/30","border","border-white/10"],[1,"flex","flex-row","w-full","justify-between","items-center"],[1,"text-white","text-2xl","font-bold"],[1,"flex","flex-row","items-center","hover:cursor-pointer",3,"click"],["svgIcon","heroicons_solid:trash",3,"color"],[1,"text-red-500","ml-2","font-bold"],[1,"my-5","border-white/20"],["alt","ProviderLogoFile","loading","lazy",1,"h-4","md:h-8","w-auto",3,"src"],[1,"text-white","font-bold"],["class","flex flex-col",4,"ngIf"],[1,"flex","flex-row","pb-2","text-white","font-bold"],[1,"flex","flex-col","sm:flex-row","sm:justify-between","gap-3"],[1,"border","border-white/30","p-2","rounded-lg","w-full","bg-slate-600/30"],["matInput","","placeholder","Promo code",1,"text-white","placeholder:text-white/70","w-full",3,"ngModelChange","ngModel"],[1,"flex","justify-center","sm:justify-start"],["mat-flat-button","",1,"bg-accent","text-slate-800","rounded-lg","py-2","px-6","font-bold","w-full","sm:w-auto",3,"click"],[1,"flex","flex-col"],[1,"text-white","font-bold","text-lg","py-2"],[1,"text-accent","font-bold","text-2xl"],[1,"text-accent","font-bold","text-md"],[1,"bg-slate-800/50","rounded-2xl","p-6","border","border-white/20","mb-6"],[1,"space-y-4"],[1,"w-full",3,"termsAndConditions"],[1,"text-white","text-2xl","font-bold","py-4"],["class","flex flex-row w-full pb-2 text-white justify-between",4,"ngIf"],[4,"ngIf"],[1,"flex","flex-row","w-full","pb-2","text-white","justify-between"],[4,"ngFor","ngForOf"],[1,"font-bold"],["class","flex flex-row w-full pb-2 text-white justify-between",4,"ngFor","ngForOf"],["class","font-bold",4,"ngIf"]],template:function(n,r){1&n&&e.DNE(0,B,5,0,"div",1)(1,Y,2,5,"fuse-alert",2)(2,K,52,17,"div",3),2&n&&(e.Y8G("ngIf",r.loading),e.R7$(),e.Y8G("ngIf",r.showAlert),e.R7$(),e.Y8G("ngIf",!r.loading))},dependencies:[m.bT,I.Yq,u.YN,u.me,u.BC,u.vS,_.F,f.m_,f.An,m.oe,m.pM,M.Wk,G.g7,D.v],data:{animation:v.X}})}return s})();var y=i(9042),w=i(9183),P=i(3719);function H(s,o){1&s&&(e.j41(0,"div",5)(1,"div",6),e.nrm(2,"mat-spinner",7),e.j41(3,"p",8),e.EFF(4,"Loading..."),e.k0s()()())}function J(s,o){if(1&s&&(e.j41(0,"fuse-alert",9),e.EFF(1),e.k0s()),2&s){const t=e.XpG();e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message,"\n")}}function Q(s,o){1&s&&e.nrm(0,"mat-icon",27),2&s&&e.Y8G("svgIcon","heroicons_solid:eye")}function Z(s,o){1&s&&e.nrm(0,"mat-icon",27),2&s&&e.Y8G("svgIcon","heroicons_solid:eye-slash")}function q(s,o){1&s&&(e.j41(0,"div",28),e.EFF(1," Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one special character. "),e.k0s())}function ee(s,o){if(1&s){const t=e.RV6();e.j41(0,"div",10)(1,"div",11)(2,"div",12)(3,"h2",13),e.EFF(4," Create Your Account Password "),e.k0s(),e.j41(5,"p",14),e.EFF(6," A new Infini-fi account has been pre-set up for you. We just need you to create your new account password below and then you're one step closer to a super fast connection! "),e.k0s()(),e.j41(7,"div",10)(8,"div",15)(9,"fuse-card",16)(10,"div",17),e.EFF(11," Username "),e.k0s(),e.j41(12,"div",18)(13,"div",19)(14,"input",20,0),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.userName,r)||(a.userName=r),e.Njj(r)}),e.k0s()()(),e.j41(16,"div",17),e.EFF(17," Password "),e.k0s(),e.j41(18,"div",21)(19,"div",22)(20,"input",23,1),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.password,r)||(a.password=r),e.Njj(r)}),e.bIt("keyup",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.onPasswordChange(r))}),e.k0s(),e.j41(22,"button",24),e.bIt("click",function(){e.eBV(t);
1const r=e.sdS(21);return e.Njj(r.type="password"===r.type?"text":"password")}),e.DNE(23,Q,1,1,"mat-icon",25)(24,Z,1,1,"mat-icon",25),e.k0s()()(),e.DNE(25,q,2,0,"div",26),e.k0s()()()()()}if(2&s){const t=e.sdS(21),n=e.XpG();e.R7$(14),e.R50("ngModel",n.userName),e.R7$(6),e.R50("ngModel",n.password),e.R7$(3),e.Y8G("ngIf","password"===t.type),e.R7$(),e.Y8G("ngIf","text"===t.type),e.R7$(),e.Y8G("ngIf",!n.passwordIsValid)}}let te=(()=>{class s{constructor(t,n,r){this._router=t,this._gtmService=n,this.platformId=r,this.passwordValue=new e.bkB,this.loading=!0,this.showAlert=!1}ngOnChanges(){null!=this.userName&&(this.loading=!1)}onPasswordChange(t){const n=RegExp("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[$@$!%*?&])[A-Za-zd$@$!%*?&].{8,}");t.target.value.length>=8&&(this.password=t.target.value,n.test(this.password)?(this.passwordIsValid=!0,this.passwordValue.emit({password:this.password,passwordIsValid:this.passwordIsValid}),l.t.setItem("redirectAfterSignIn","true")):this.passwordIsValid=!1)}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(h.Ix),e.rXU(x.U),e.rXU(e.Agw))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["app-create-password"]],inputs:{userName:"userName"},outputs:{passwordValue:"passwordValue"},standalone:!0,features:[e.OA$,e.aNF],decls:3,vars:3,consts:[["usernameInput",""],["passwordField",""],["class","spinner-center-fullscreen",4,"ngIf"],["class","top-0.5 md:top-8 right-0.5 absolute !z-99",3,"appearance","showIcon","type",4,"ngIf"],["class","w-full",4,"ngIf"],[1,"spinner-center-fullscreen"],[1,"spinner-center-content"],["color","accent","diameter","60",1,"mat-spinner-consistent","mb-4"],[1,"text-white","text-lg","font-medium"],[1,"top-0.5","md:top-8","right-0.5","absolute","!z-99",3,"appearance","showIcon","type"],[1,"w-full"],[1,"relative","z-10","px-4","py-4","pb-10","w-full","mx-auto","lg:max-w-6xl"],[1,"mb-4"],[1,"text-white","text-2xl","font-bold","mb-2"],[1,"text-white/80","text-lg"],[1,"bg-slate-800/50","rounded-2xl","shadow-xl","p-6","border","border-white/20","mb-6"],[1,"flex","flex-col","shadow-xl","p-5","rounded-2xl","bg-slate-700/30","border","border-white/10"],[1,"flex","flex-row","pb-2","text-white","font-bold"],[1,"flex","flex-row","mb-8"],[1,"border","border-white/30","p-2","rounded-lg","w-full","bg-slate-600/30"],["matInput","","placeholder","Username","disabled","",1,"w-full","text-white","placeholder:text-white/70",3,"ngModelChange","ngModel"],[1,"flex","flex-row"],[1,"border","border-white/30","p-2","rounded-lg","w-full","flex","justify-between","items-center","bg-slate-600/30"],["matInput","","placeholder","Password","type","password",1,"w-full","text-white","placeholder:text-white/70",3,"ngModelChange","keyup","ngModel"],["mat-icon-button","","type","button","matSuffix","",1,"text-white/70",3,"click"],["class","icon-size-5",3,"svgIcon",4,"ngIf"],["class","text-red-400 mt-4",4,"ngIf"],[1,"icon-size-5",3,"svgIcon"],[1,"text-red-400","mt-4"]],template:function(n,r){1&n&&e.DNE(0,H,5,0,"div",2)(1,J,2,5,"fuse-alert",3)(2,ee,26,5,"div",4),2&n&&(e.Y8G("ngIf",r.loading),e.R7$(),e.Y8G("ngIf",r.showAlert),e.R7$(),e.Y8G("ngIf",!r.loading))},dependencies:[m.bT,I.Yq,_.F,u.X1,u.me,u.BC,f.m_,f.An,u.YN,u.vS,y.fS,y.fg,P.yw,w.D6,w.LG],data:{animation:v.X}})}return s})();var L=i(8834),re=i(3043),F=i(4247);function ne(s,o){1&s&&(e.j41(0,"div",5)(1,"div",6),e.nrm(2,"mat-spinner",7),e.j41(3,"p",8),e.EFF(4,"Loading..."),e.k0s()()())}function se(s,o){if(1&s&&(e.j41(0,"fuse-alert",9),e.EFF(1),e.k0s()),2&s){const t=e.XpG();e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message,"\n")}}function ae(s,o){1&s&&e.nrm(0,"mat-icon",26),2&s&&e.Y8G("svgIcon","heroicons_solid:eye")}function oe(s,o){1&s&&e.nrm(0,"mat-icon",26),2&s&&e.Y8G("svgIcon","heroicons_solid:eye-slash")}function ie(s,o){if(1&s){const t=e.RV6();e.j41(0,"div",10)(1,"div",11)(2,"div",12)(3,"h2",13),e.EFF(4," Login to Your Account "),e.k0s(),e.j41(5,"p",14),e.EFF(6," We have detected that you already have an existing account, please login."),e.nrm(7,"br"),e.EFF(8," Once logged in, you'll be one step closer to a super fast connection! "),e.k0s()(),e.j41(9,"div",10)(10,"div",15)(11,"fuse-card",16)(12,"div",17),e.EFF(13," Username "),e.k0s(),e.j41(14,"div",18)(15,"div",19)(16,"input",20,0),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.userName,r)||(a.userName=r),e.Njj(r)}),e.k0s()()(),e.j41(18,"div",17),e.EFF(19," Password "),e.k0s(),e.j41(20,"div",21)(21,"div",22)(22,"input",23,1),e.mxI("ngModelChange",function(r){e.eBV(t);const a=e.XpG();return e.DH7(a.password,r)||(a.password=r),e.Njj(r)}),e.bIt("keyup",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.onPasswordChange(r))}),e.k0s(),e.j41(24,"button",24),e.bIt("click",function(){e.eBV(t);const r=e.sdS(23);return e.Njj(r.type="password"===r.type?"text":"password")}),e.DNE(25,ae,1,1,"mat-icon",25)(26,oe,1,1,"mat-icon",25),e.k0s()()()()()()()()}if(2&s){const t=e.sdS(23),n=e.XpG();e.R7$(16),e.R50("ngModel",n.userName),e.R7$(6),e.R50("ngModel",n.password),e.R7$(3),e.Y8G("ngIf","password"===t.type),e.R7$(),e.Y8G("ngIf","text"===t.type)}}let le=(()=>{class s{constructor(){this.passwordValue=new e.bkB,this.loading=!0,this.showAlert=!1}ngOnChanges(){this.userName&&(this.loading=!1)}onPasswordChange(t){this.password=t.target.value,this.passwordValue.emit({password:this.password}),l.t.setItem("redirectAfterSignIn","true")}static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["app-login-existing"]],inputs:{userName:"userName",leadNumber:"leadNumber"},outputs:{passwordValue:"passwordValue"},standalone:!0,features:[e.OA$,e.aNF],decls:3,vars:3,consts:[["usernameInput",""],["passwordField",""],["class","spinner-center-fullscreen",4,"ngIf"],["class","top-0.5 md:top-8 right-0.5 absolute !z-99",3,"appearance","showIcon","type",4,"ngIf"],["class","w-full",4,"ngIf"],[1,"spinner-center-fullscreen"],[1,"spinner-center-content"],["color","accent","diameter","60",1,"mat-spinner-consistent","mb-4"],[1,"text-white","text-lg","font-medium"],[1,"top-0.5","md:top-8","right-0.5","absolute","!z-99",3,"appearance","showIcon","type"],[1,"w-full"],[1,"relative","z-10","px-4","py-4","pb-10","w-full","mx-auto","lg:max-w-6xl"],[1,"mb-4"],[1,"text-white","text-2xl","font-bold","mb-2"],[1,"text-white/80","text-lg"],[1,"bg-slate-800/50","rounded-2xl","shadow-xl","p-6","border","border-white/20","mb
1-6"],[1,"flex","flex-col","shadow-xl","p-5","rounded-2xl","bg-slate-700/30","border","border-white/10"],[1,"flex","flex-row","pb-2","text-white","font-bold"],[1,"flex","flex-row","mb-8"],[1,"border","border-white/30","p-2","rounded-lg","w-full","bg-slate-600/30"],["matInput","","placeholder","Username","disabled","",1,"w-full","text-white","placeholder:text-white/70",3,"ngModelChange","ngModel"],[1,"flex","flex-row"],[1,"border","border-white/30","p-2","rounded-lg","w-full","flex","justify-between","items-center","bg-slate-600/30"],["matInput","","placeholder","Password","type","password",1,"w-full","text-white","placeholder:text-white/70",3,"ngModelChange","keyup","ngModel"],["mat-icon-button","","type","button","matSuffix","",1,"text-white/70",3,"click"],["class","icon-size-5",3,"svgIcon",4,"ngIf"],[1,"icon-size-5",3,"svgIcon"]],template:function(n,r){1&n&&e.DNE(0,ne,5,0,"div",2)(1,se,2,5,"fuse-alert",3)(2,ie,27,4,"div",4),2&n&&(e.Y8G("ngIf",r.loading),e.R7$(),e.Y8G("ngIf",r.showAlert),e.R7$(),e.Y8G("ngIf",!r.loading))},dependencies:[m.bT,I.Yq,_.F,u.X1,u.me,u.BC,f.m_,f.An,u.YN,u.vS,y.fS,y.fg,P.yw]})}return s})();var de=i(6379);const ce=["stepper"],ue=()=>["/"];function pe(s,o){if(1&s&&(e.j41(0,"fuse-alert",34),e.EFF(1),e.k0s()),2&s){const t=e.XpG();e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message," ")}}function me(s,o){1&s&&(e.j41(0,"span",35),e.EFF(1,"Continue"),e.k0s())}function fe(s,o){1&s&&e.nrm(0,"mat-progress-spinner",36),2&s&&e.Y8G("diameter",24)("mode","indeterminate")}function he(s,o){if(1&s&&(e.j41(0,"fuse-alert",34),e.EFF(1),e.k0s()),2&s){const t=e.XpG(2);e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message," ")}}function ge(s,o){1&s&&(e.j41(0,"span",35),e.EFF(1,"Continue"),e.k0s())}function _e(s,o){1&s&&e.nrm(0,"mat-progress-spinner",36),2&s&&e.Y8G("diameter",24)("mode","indeterminate")}function ye(s,o){if(1&s){const t=e.RV6();e.j41(0,"mat-step",37,5)(2,"app-create-password",38),e.bIt("passwordValue",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.passwordEvent(r))}),e.k0s(),e.DNE(3,he,2,5,"fuse-alert",15),e.nrm(4,"hr",10),e.j41(5,"div",16)(6,"button",25),e.EFF(7," Back "),e.k0s(),e.j41(8,"button",39),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.createPassword())}),e.DNE(9,ge,2,0,"span",19)(10,_e,1,2,"mat-progress-spinner",20),e.k0s()()()}if(2&s){const t=e.XpG();e.R7$(2),e.Y8G("userName",t.userName),e.R7$(),e.Y8G("ngIf",t.showAlert),e.R7$(5),e.Y8G("color","accent")("disabled",t.disablePasswordButton||t.btnLoading),e.R7$(),e.Y8G("ngIf",!t.btnLoading),e.R7$(),e.Y8G("ngIf",t.btnLoading)}}function we(s,o){if(1&s&&(e.j41(0,"fuse-alert",34),e.EFF(1),e.k0s()),2&s){const t=e.XpG(2);e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message," ")}}function be(s,o){1&s&&(e.j41(0,"span",35),e.EFF(1,"Login"),e.k0s())}function ve(s,o){1&s&&e.nrm(0,"mat-progress-spinner",36),2&s&&e.Y8G("diameter",24)("mode","indeterminate")}function Ie(s,o){if(1&s){const t=e.RV6();e.j41(0,"mat-step",40,5)(2,"app-login-existing",41),e.bIt("passwordValue",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.captureLoginPassword(r))}),e.k0s(),e.DNE(3,we,2,5,"fuse-alert",15),e.nrm(4,"hr",10),e.j41(5,"div",16)(6,"button",25),e.EFF(7," Back "),e.k0s(),e.j41(8,"button",42),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.existingLogin())}),e.DNE(9,be,2,0,"span",19)(10,ve,1,2,"mat-progress-spinner",20),e.k0s()()()}if(2&s){const t=e.XpG();e.R7$(2),e.Y8G("userName",t.userName)("leadNumber",t.existingLeadNumber),e.R7$(),e.Y8G("ngIf",t.showAlert),e.R7$(5),e.Y8G("color","accent")("disabled",t.loginLoading),e.R7$(),e.Y8G("ngIf",!t.loginLoading),e.R7$(),e.Y8G("ngIf",t.loginLoading)}}function xe(s,o){if(1&s){const t=e.RV6();e.j41(0,"app-payment",43),e.bIt("hasPaymentMethod",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.hasPaymentMethodEvent(r))})("debitOrderMandate",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.debitOrderMandate(r))})("hasDebitOrderBeenSigned",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.hasDebitOrderBeenSigned(r))})("mandateAccepted",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.mandateAcceptedEvent(r))})("isDebitOrderRequired",function(r){e.eBV(t);const a=e.XpG();return e.Njj(a.isDebitOrderRequiredEvent(r))}),e.k0s()}if(2&s){const t=e.XpG();e.Y8G("dealerCode",t.dealerCode)("lead",t.lead)("monthlyAmount",t.monthlyAmount)("upFrontAmount",t.upFrontAmount)}}function Ce(s,o){if(1&s){const t=e.RV6();e.j41(0,"button",39),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.placeOrder())}),e.EFF(1," Confirm order "),e.k0s()}if(2&s){const t=e.XpG();e.Y8G("color","accent")("disabled",!t.hasPaymentMethod||t.isDebitOrderRequired&&!t.mandateAccepted&&!t.hasMandateSigned)}}function Ae(s,o){1&s&&(e.j41(0,"button",44),e.nrm(1,"mat-spinner",45),e.k0s()),2&s&&e.Y8G("color","accent")}let Ee=(()=>{class s{static#e=this.LEAD_ENTITY_ID_STORAGE_KEY="LeadEntityId";static#t=this.LEAD_UNAVAILABLE_MESSAGE="We could not load your order. Please re-open the link from your email, or contact support if the issue persists.";static#r=this.PASSWORD_LINK_MESSAGE="We could not set your password. This link may have expired or already been used. Please contact support so a new link can be sent to you.";constructor(t,n,r,a,d,p,b,ke){this._sharedMethods=t,this.activatedRouter=n,this._authService=r,this._gtmService=a,this._webStorage=d,this._router=p,this._changeDetectorRef=b,this.platformId=ke,this.disablePasswordButton=!0,this.confirmOrderValid=!1,this.disableLoginBtn=!1,this.loginLoading=!1,this.btnLoading=!1,this.showSummaryBtn=!1,this.allTermsAccepted=!1,this.showAlert=!1,this.hasFibreInstalled=!1,this.upFrontAmount=0,this.monthlyAmount=0,this.beforeTax=0,this.VAT=0,this.totalAmount=0,this.hasMandateSigned=!1,this.isDealerJourney=!1,this.hasPaymentMethod=!1,this.mandateAccepted=!1,this.isDebitOrderRequired=!1,this.isSignedIn=!1,this.kycValid=!1}ngOnInit(){var t=this;return(0,c.A)(function*(){l.t.getItem("redirectAfterSignIn")||(yield t.clearsessionStorage()),l.t.getItem("accessToken")&&(t.isSignedIn=!0),l.t.setItem("redirectAfterSignIn","false"),t.isExistingCustomer=yield t.checkIfExistingCustomer(),t.isDealerJourney=t.activatedRouter.snapshot.url.
1some(a=>"pre-orders"===a.path);const n=t.activatedRouter.snapshot.queryParamMap.get("username");t.userName=n?encodeURI(n).replace("%20","+").replace("%40","@"):"";const r=t.activatedRouter.snapshot.queryParamMap.get("lead_id");if(r)if(l.t.setItem(s.LEAD_ENTITY_ID_STORAGE_KEY,r),t.leadResult=yield t._sharedMethods.getLeadById(r),t.dealerCode=t.leadResult.result?.SalesAgentUserEntityID,t.leadResult.success&&t.leadResult.result){if(t.lead=t.leadResult.result,t.center={lat:t.lead?.Latitude,lng:t.lead?.Longitude},t.orderResult=yield t._sharedMethods.getLinkedOfferablesByLeadId(t.lead.LeadEntityID),t.orderResult.success&&(t.order=t.orderResult.result.filter(a=>!a.IsAddOn),l.t.setItem("preorderPackageEntityId",JSON.stringify(t.order[0]?.PackageEntityID)),t.addOns=t.orderResult.result.filter(a=>a.IsAddOn),t.order.forEach(a=>{t.monthlyAmount+=a.Billing_TempDiscountEnabled?a.Billing_TotalTempIncl:a.Billing_TotalIncl})),t.upFrontAmountResult=yield t._sharedMethods.getUpfrontAmountDue(t.lead.LeadEntityID),t.upFrontAmountResult.success){const a=t._sharedMethods.normalizeUpfrontAmountDue(t.upFrontAmountResult.result);t.upFrontAmount=a,t.VAT=a>0?a-a/1.15:0}}else t.failLeadLoad();else t.failLeadLoad();if(t.activatedRouter.snapshot.queryParamMap.get("password_token")&&(t.passwordToken=t.activatedRouter.snapshot.queryParamMap.get("password_token")),t.activatedRouter.snapshot.queryParamMap.get("email_token")&&(t.emailToken=t.activatedRouter.snapshot.queryParamMap.get("email_token")),t.activatedRouter.snapshot.queryParamMap.get("LeadRegistrationToken")&&(t.leadRegistrationToken=t.activatedRouter.snapshot.queryParamMap.get("LeadRegistrationToken")),l.t.getItem("preorderCustomerLoggedIn")){l.t.removeItem("preorderCustomerLoggedIn");for(let a=0;a<2;a++)t.stepper.next()}t.activatedRouter.snapshot.queryParamMap.get("status")&&("successful"==t.activatedRouter.snapshot.queryParamMap.get("status")?(t.alert={type:"success",message:"Your payment was successful!"},t.showAlert=!0,l.t.getItem("preorderCreditCardAdded")&&(t.hasPaymentMethod=!0),yield t.syncHasPaymentMethodFromCustomerPayments()):(t.alert={type:"error",message:"Your payment was not successful!"},t.showAlert=!0,yield t.syncHasPaymentMethodFromCustomerPayments()),setTimeout(()=>{t.stepper&&(t.stepper.selectedIndex=4)},100))})()}syncHasPaymentMethodFromCustomerPayments(){var t=this;return(0,c.A)(function*(){try{const n=yield t._sharedMethods.getCustomerPayments();if(!n.success)return;(n.result??[]).find(d=>!0===d.IsDefault&&!0===d.IsValidated)&&(t.hasPaymentMethod=!0,t._changeDetectorRef.detectChanges())}catch{}})()}checkout(){var t=this;return(0,c.A)(function*(){if(!t.btnLoading){t.btnLoading=!0,t.showAlert=!1;try{const n=t.lead?.LeadEntityID??t.resolveLeadEntityId();if(t.leadResult=yield t._sharedMethods.getLeadById(n),!t.leadResult?.success||!t.leadResult.result)return void t.setAlert("error",s.LEAD_UNAVAILABLE_MESSAGE);if(t.lead=t.leadResult.result,!(yield t.confirmCartComponent.acceptTermsAndConditions()))return;t.next(),t.isCustomerLoggedIn()}catch{t.setAlert("error","We could not continue with your order. Please try again, or contact support if the issue persists.")}finally{t.btnLoading=!1,t.refresh()}}})()}confirmKyc(t){this.kycValid=t}next(){this.stepper.next()}hasPaymentMethodEvent(t){this.hasPaymentMethod=t}hasDebitOrderBeenSigned(t){this.hasMandateSigned=t}mandateAcceptedEvent(t){this.mandateAccepted=t,console.log("\u{1f3af} Mandate accepted status:",t),t&&(this.alert={type:"success",message:"Debit order mandate accepted successfully!"},this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},3e3))}isDebitOrderRequiredEvent(t){this.isDebitOrderRequired=t,console.log("\u{1f50d} Debit order required status:",t)}termsCheckedValue(t){this.allTermsAccepted=t}passwordEvent(t){t.password?(this.password=t.password,this.disablePasswordButton=!1):this.disablePasswordButton=!0}isTermsComplete(t){this.showSummaryBtn=!!t.every(r=>!0===r.isAccepted)}createPassword(){var t=this;return(0,c.A)(function*(){if(t.btnLoading)return;if(t.btnLoading=!0,t.showAlert=!1,!t.userName||!t.passwordToken)return void t.releaseButton("error",s.PASSWORD_LINK_MESSAGE);const n=t.resolveLeadEntityId();var r;null!==n?t._authService.resetPassword(t.password,t.passwordToken,t.userName).subscribe({next:(r=(0,c.A)(function*(){try{t.channelPartnerOrderResult=yield t._sharedMethods.channelPartnerOrder(n,!1),t.stepper.next(),t._authService.signIn({Username:t.userName,Password:t.password}).subscribe({next:(a=(0,c.A)(function*(){t.isSignedIn=!0;try{yield t.updateCPLead(),t.btnLoading=!1,t.refresh()}catch{t.releaseButton("error","Your password was set, but we could not update your order. Please contact support if the issue persists.")}}),function(){return a.apply(this,arguments)}),error:()=>{t.releaseButton("error","Your password was set, but we could not sign you in. Please sign in with your new password.")}})}catch{t.releaseButton("error","Your password was set, but we could not continue with your order. Please contact support if the issue persists.")}var a}),function(){return r.apply(this,arguments)}),error:r=>{t.releaseButton("error",t.resetPasswordErrorMessage(r))}}):t.releaseButton("error",s.LEAD_UNAVAILABLE_MESSAGE)})()}releaseButton(t,n){this.btnLoading=!1,this.setAlert(t,n),this.refresh()}refresh(){try{this._changeDetectorRef.detectChanges()}catch{}}setAlert(t,n){this.alert={type:t,message:n},this.showAlert=!0}resetPasswordErrorMessage(t){const n=t?.error?.Message??t?.error?.message;return"string"==typeof n&&n.trim().length>0?n:s.PASSWORD_LINK_MESSAGE}failLeadLoad(){this.lead=null}confirmOrder(t){null!==t?(this.confirmOrderValid=!0,this.confirmOrderForm=t):this.confirmOrderValid=!1}updateCPLead(){var t=this;return(0,c.A)(function*(){t.lead?.LeadEntityID&&(yield t._sharedMethods.channelPartnerOrder(t.lead.LeadEntityID,!0),t.lead.PaymentType="DebitOrder",yield t._sharedMethods.updateLead(Object.assign(t.lead,t.confirmOrderForm)))})()}placeOrder(){var t=this;return(0,c.A)(function*(){if(!t.btnLoading){t.btnLoading=!0,t.showAlert=!1;try{const n=t.resolveLeadEntityId();if(null===n)throw new Error("Lead entity ID is missing or invalid");const r=yield t._sharedMethods.getLeadById(n);if(!r?.success||!r.result)throw new Error("Unable to retrieve the lead before placing the order");const a=r.result;if("Order"!==a.LeadActionTypeCode&&!(yield t._sharedMethods.updateLead({...a,LeadDescription:"Order",LeadActionTypeCode:"Order"}))?.success)throw new Error("Unable to convert the lead to an order");const d=yield t._sharedMethods.getLeadById(n),p=d?.result;if(!d?.success||!p||Number(p.LeadEntityID)!==n||"Order"!==p.LeadActionTypeCode)throw new Error("The lead conversion was not persisted");t.lead=p,yield t._webStorage.UpdateCart("remove"),l.t.removeItem(s.LEAD_ENTITY_ID_STORAGE_KEY),l.t.removeItem("DealerCode"),yield t._router.navigate(["/dashboard"])}catch{t.alert={type:"error",message:"An Error has occurred, please contact support, if this issue persists"},t.showAlert=!0}finally{t.btnLoading=!1}}})()}resolveLeadEntityId(){const t=this.lead?.LeadEntityID??this.activatedRouter.snapshot.queryParamMap.get("lead_id")??l.t.getItem(s.LEAD_ENTITY_ID_STORAGE_KEY),n=Number(t);return Number.isInteger(n)&&n>0?n:null}checkIfExistingCustomer(){var t=this;return(0,c.A)(function*(){const n=t.activatedRouter.snapshot.queryParamMap.get("email_token"),r=t.activatedRouter.snapshot.queryParamMap.get("account_id");try{const a=yield A(t._authService.getAccountIdMetadata(r));if(!a.email_verified)try{yield A(t._authService.verifyEmailAddress(n))}catch{t.alert={type:"error",message:"An Error has occurred, whilst verifying your email address, please contact support, if this issue persists"},t.showAlert=!0}return t.existingLeadNumber=t.activatedRouter.snapshot.queryParamMap.get("lead_id"),!0===a.can_login_email}catch{return t.alert={type:"error",message:"An Error has occurred, please contact support, if this issue persists"},t.showAlert=!0,!1}})()}existingLogin(){var t=this;return(0,c.A)(function*(){var r;t.loginLoading=!0,t._authService.signIn({Username:t.userName,Password:t.existingCustomerPassword}).subscribe({next:(r=(0,c.A)(function*(){t.isSignedIn=!0,t.loginLoading=!1,t.stepper.next(),l.t.setItem("preorderCustomerLoggedIn","true")}),function(){return r.apply(this,arguments)}),error:r=>{t.alert={type:"error",message:r.error},t.showAlert=!0,t.loginLoading=!1}})})()}captureLoginPassword(t){this.existingCustomerPassword=t.password}isCustomerLoggedIn(){this._authService.accessToken&&this.stepper.next()}clearsessionStorage(){return(0,c.A)(function*(){l.t.clear()})()}static#n=this.\u0275fac=function(n){return new(n||s)(e.rXU(E.U),e.rXU(h.nX),e.rXU(k.u),e.rXU(x.U),e.rXU(R.g),e.rXU(h.Ix),e.rXU(e.gRc),e.rXU(e.Agw))};static#s=this.\u0275cmp=e.VBU({type:s,selectors:[["app-sales-agent"]],viewQuery:function(n,r){if(1&n&&(e.GBs(ce,5),e.GBs(F.Y,5),e.GBs(T,5)),2&n){let a;e.mGM(a=e.lsd())&&(r.stepper=a.first),e.mGM(a=e.lsd())&&(r.paymentComponent=a.first),e.mGM(a=e.lsd())&&(r.confirmCartComponent=a.first)}},standalone:!0,features:[e.aNF],decls:52,vars:32,consts:[["stepper",""],["stepOne",""],["stepThree",""],["stepFour",""],["stepFive",""],["stepTwo",""],[1,"flex","flex-col","w-full","p-2","md:p-8"],[1,"flex","flex-col"],[1,"text-accent","text-3xl","font-extrabold"],[1,"text-white","pt-8"],[1,"my-5"],[1,"flex","flex-row","w-full","items-center","justify-center"],["labelPosition","bottom",1,"w-full"],["label","Confirm Cart",1,"text-white"],[3,"termsValue","dealerCode","currentPageTitle","lead","emailToken","userName","leadRegistrationToken","passwordToken"],["class","mt-8 z-99",3,"appearance","showIcon","type",4,"ngIf"],[1,"flex","flex-row","justify-end","mt-6"],["mat-flat-button","","matStepperBack","",1,"px-6","py-3","text-white","bg-slate-600","hover:bg-slate-500","font-bold","rounded-2xl","transition-colors","mr-6",3,"routerLink"],["mat-flat-button","","mat-button","",1,"text-md","font-bold",3,"click","disabled","color"],["class","text-md font-bold",4,"ngIf"],[3,"diameter","mode",4,"ngIf"],["label","Create Password","class","text-white",4,"ngIf"],["label","Login","class","text-white",4,"ngIf"],["label","Summary",1,"text-white"],[3,"acceptedTerms","lead","center","order","addOns","upFrontAmount","monthlyAmount","VAT"],["mat-flat-button","","mat-button","","matStepperBack","",1,"text-md","mr-6","bg-gray-300","border","border-black","text-black","font-bold"],["mat-flat-button","","mat-button","","matStepperNext","",1,"text-md","font-bold",3,"color"],["label","KYC and Compliance",1,"text-white"],[3,"kycValidEvent","isOrderJourney","leadEntityId"],["mat-flat-button","","mat-button","","matStepperNext","",1,"text-md","font-bold",3,"color","disabled"],["label","Payment",1,"text-white"],[3,"dealerCode","lead","monthlyAmount","upFrontAmount","hasPaymentMethod","debitOrderMandate","hasDebitOrderBeenSigned","mandateAccepted","isDebitOrderRequired",4,"ngIf"],["class","text-md font-bold","mat-flat-button","","mat-button","",3,"color","disabled","click",4,"ngIf"],["class","text-md font-bold","mat-flat-button","","mat-button","","matStepperNext","","disabled","",3,"color",4,"ngIf"],[1,"mt-8","z-99",3,"appearance","showIcon","type"],[1,"text-md","font-bold"],[3,"diameter","mode"],["label","Create Password",1,"text-white"],[3,"passwordValue","userName"],["mat-flat-button","","mat-button","",1,"text-md","font-bold",3,"click","color","disabled"],["label","Login",1,"text-white"],[3,"passwordValue","userName","leadNumber"],["mat-flat-button","","mat-button","",3,"click","color","disabled"],[3,"hasPaymentMethod","debitOrderMandate","hasDebitOrderBeenSigned","mandateAccepted","isDebitOrderRequired","dealerCode","lead","monthlyAmount","upFrontAmount"],["mat-flat-button","","mat-button","","matStepperNext","","disabled","",1,"text-md","font-bold",3,"color"],[1,"h-5","w-5","white"]],template:function(n,r){if(1&n){const a=e.RV6();
1e.j41(0,"div",6)(1,"div",7)(2,"div",8),e.EFF(3," Welcome to Infini-fi! "),e.k0s(),e.j41(4,"div",9),e.EFF(5," The below package has been pre-selected for you at the address: "),e.j41(6,"b"),e.EFF(7),e.k0s(),e.EFF(8,". Please confirm if this is the package you wish to purchase at this address, or change it below. "),e.k0s(),e.nrm(9,"hr",10),e.k0s(),e.j41(10,"div",11)(11,"mat-stepper",12,0)(13,"mat-step",13,1)(15,"app-confirm-cart",14),e.bIt("termsValue",function(p){return e.eBV(a),e.Njj(r.termsCheckedValue(p))}),e.k0s(),e.DNE(16,pe,2,5,"fuse-alert",15),e.nrm(17,"hr",10),e.j41(18,"div",16)(19,"button",17),e.EFF(20," Cancel "),e.k0s(),e.j41(21,"button",18),e.bIt("click",function(){return e.eBV(a),e.Njj(r.checkout())}),e.DNE(22,me,2,0,"span",19)(23,fe,1,2,"mat-progress-spinner",20),e.k0s()()(),e.DNE(24,ye,11,6,"mat-step",21)(25,Ie,11,7,"mat-step",22),e.j41(26,"mat-step",23,2)(28,"app-summary",24),e.bIt("acceptedTerms",function(p){return e.eBV(a),e.Njj(r.termsCheckedValue(p))}),e.k0s(),e.nrm(29,"hr",10),e.j41(30,"div",16)(31,"button",25),e.EFF(32," Back "),e.k0s(),e.j41(33,"button",26),e.EFF(34," Continue "),e.k0s()()(),e.j41(35,"mat-step",27,3)(37,"app-kyc-compliance",28),e.bIt("kycValidEvent",function(p){return e.eBV(a),e.Njj(r.confirmKyc(p))}),e.k0s(),e.nrm(38,"hr",10),e.j41(39,"div",16)(40,"button",25),e.EFF(41," Back "),e.k0s(),e.j41(42,"button",29),e.EFF(43," Continue "),e.k0s()()(),e.j41(44,"mat-step",30,4),e.DNE(46,xe,1,4,"app-payment",31),e.nrm(47,"hr",10),e.j41(48,"div",16)(49,"div",16),e.DNE(50,Ce,2,2,"button",32)(51,Ae,2,1,"button",33),e.k0s()()()()()()}2&n&&(e.R7$(7),e.JRh(null==r.lead?null:r.lead.Address),e.R7$(8),e.Y8G("dealerCode",r.dealerCode)("currentPageTitle","pre-orders_page")("lead",r.lead)("emailToken",r.emailToken)("userName",r.userName)("leadRegistrationToken",r.leadRegistrationToken)("passwordToken",r.passwordToken),e.R7$(),e.Y8G("ngIf",r.showAlert),e.R7$(3),e.Y8G("routerLink",e.lJ4(31,ue)),e.R7$(2),e.Y8G("disabled",r.btnLoading||!r.allTermsAccepted)("color","accent"),e.R7$(),e.Y8G("ngIf",!r.btnLoading),e.R7$(),e.Y8G("ngIf",r.btnLoading),e.R7$(),e.Y8G("ngIf",!r.isExistingCustomer),e.R7$(),e.Y8G("ngIf",r.isExistingCustomer),e.R7$(3),e.Y8G("lead",r.lead)("center",r.center)("order",r.order)("addOns",r.addOns)("upFrontAmount",r.upFrontAmount)("monthlyAmount",r.monthlyAmount)("VAT",r.VAT),e.R7$(5),e.Y8G("color","accent"),e.R7$(4),e.Y8G("isOrderJourney",!0)("leadEntityId",null==r.lead?null:r.lead.LeadEntityID),e.R7$(5),e.Y8G("color","accent")("disabled",!r.kycValid),e.R7$(4),e.Y8G("ngIf",r.isSignedIn),e.R7$(4),e.Y8G("ngIf",!r.btnLoading),e.R7$(),e.Y8G("ngIf",r.btnLoading))},dependencies:[g.aP,g.V5,g.M6,g.F7,L.Hl,L.$z,h.Wk,F.Y,re.w,_.F,te,T,le,m.bT,w.D6,w.LG,de.KycCompl
1ianceComponent],styles:[".mat-horizontal-stepper-header{pointer-events:none!important}"],data:{animation:v.X}})}return s})()}}]);
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.