1"use strict";(self.webpackChunkubc_consumer_main=self.webpackChunkubc_consumer_main||[]).push([[3606],{95128:(st,H,I)=>{I.d(H,{E:()=>tt});var W=I(31635),J=I(93364),j=I(34143),K=I(50689),V=I(33212),F=I(49894),$=I(54438),q=I(60177);function et(Z,G){if(1&Z&&($.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5),$.EFF(5),$.k0s(),$.j41(6,"div",6),$.EFF(7),$.k0s()(),$.nrm(8,"div",7),$.j41(9,"div",8)(10,"div",5),$.EFF(11),$.k0s(),$.j41(12,"div",6),$.EFF(13),$.k0s()()(),$.j41(14,"div",9),$.EFF(15),$.k0s()()()),2&Z){const k=$.XpG();$.R7$(5),$.JRh(k.todayLabel),$.R7$(2),$.JRh(k.todayPrice),$.R7$(4),$.JRh(k.monthlyLabel),$.R7$(2),$.JRh(k.monthlyPrice),$.R7$(2),$.JRh(k.subtitleText)}}let tt=class mt{constructor(G,k,B){this.marketConfigurationService=G,this.translateService=k,this.checkoutService=B,this.todayLabel="",this.monthlyLabel="",this.subtitleText="",this.show=!0,this.todayPrice="$0.00",this.monthlyPrice="$0.00",this.isLCPRMarket=!1}ngOnInit(){this.isLCPRMarket=this.marketConfigurationService.getBrandMarket()===j.emF.PUERTORICO,this.todayLabel||(this.todayLabel=this.translateService.getTranslation("MOBILE_CHECKOUT.MOBILE_ORDER_CONFIRMATION.NEW_ORDER_CONFIRMATION.IN_YOUR_ORDER.TODAY")),this.monthlyLabel||(this.monthlyLabel=this.translateService.getTranslation("MOBILE_CHECKOUT.MOBILE_ORDER_CONFIRMATION.NEW_ORDER_CONFIRMATION.IN_YOUR_ORDER.MONTHLY")),this.subtitleText||(this.subtitleText=this.translateService.getTranslation("SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FINAL_PRICES")),"$0.00"===this.todayPrice&&"$0.00"===this.monthlyPrice&&this.loadPricingSummary()}ngOnDestroy(){}loadPricingSummary(){try{this.checkoutService.retrieveCart().pipe((0,F.s)(this)).subscribe(G=>{G&&this.calculatePrices(G)})}catch{}}calculatePrices(G){const k=G.totalPriceList?.totalPriceList?.find(Q=>"AMOUNT_DUE_TODAY"===Q.priceType);k?.priceWithTax?.value?.value&&(this.todayPrice=`$${parseFloat(k.priceWithTax.value.value.toString()).toFixed(2)}`);const B=G.totalPriceList?.totalPriceList?.find(Q=>"RECURRING"===Q.priceType);B?.priceWithTax?.value?.value&&(this.monthlyPrice=`$${parseFloat(B.priceWithTax.value.value.toString()).toFixed(2)}`)}static{this.\u0275fac=function(k){return new(k||mt)($.rXU(J.ey),$.rXU(K.vXy),$.rXU(V.CheckoutService))}}static{this.\u0275cmp=$.VBU({type:mt,selectors:[["lla-mobile-pricing-summary"]],inputs:{todayLabel:"todayLabel",monthlyLabel:"monthlyLabel",subtitleText:"subtitleText",show:"show",todayPrice:"todayPrice",monthlyPrice:"monthlyPrice"},standalone:!1,decls:1,vars:1,consts:[["class","llac-mobile-pricing-summary",4,"ngIf"],[1,"llac-mobile-pricing-summary"],[1,"llac-mobile-pricing-summary__container"],[1,"llac-mobile-pricing-summary__row"],[1,"llac-mobile-pricing-summary__section","llac-mobile-pricing-summary__section--today"],[1,"llac-mobile-pricing-summary__label","b4-regular"],[1,"llac-mobile-pricing-summary__price","b3-bold"],[1,"llac-mobile-pricing-summary__divider"],[1,"llac-mobile-pricing-summary__section","llac-mobile-pricing-summary__section--monthly"],[1,"llac-mobile-pricing-summary__subtitle"]],template:function(k,B){1&k&&$.DNE(0,et,16,5,"div",0),2&k&&$.Y8G("ngIf",B.show&&B.isLCPRMarket)},dependencies:[q.bT],styles:['.llac-mobile-pricing-summary[_ngcontent-%COMP%]{width:100%;display:none;flex-direction:column;align-items:center;box-sizing:border-box;margin-top:8px}@media (max-width: 599px){.llac-mobile-pricing-summary[_ngcontent-%COMP%]{display:flex!important}}.llac-mobile-pricing-summary__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:16px;width:100%;box-sizing:border-box;border-radius:16px;border:none;background:#f7f7f8}.llac-mobile-pricing-summary__row[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;margin-bottom:8px}.llac-mobile-pricing-summary__section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;padding:0}.llac-mobile-pricing-summary__divider[_ngcontent-%COMP%]{width:2px;height:54px;background:var(--w-color-border-neutral, #E9E9EA);flex-shrink:0}.llac-mobile-pricing-summary__label[_ngcontent-%COMP%]{color:#292c35;text-align:center;font-size:14px;line-height:140%}.llac-mobile-pricing-summary__price[_ngcontent-%COMP%]{color:#0071ce;text-align:center;line-height:140%;font-size:24px}.llac-mobile-pricing-summary__subtitle[_ngcontent-%COMP%]{color:var(--w-color-neutral-400, #93959A);text-align:center;font-feature-settings:"liga" off,"clig" off;font-size:12px;font-style:normal;font-weight:400;line-height:140%}']})}};tt=(0,W.__decorate)([(0,F.d)(),(0,W.__metadata)("design:paramtypes",[J.ey,K.vXy,V.CheckoutService])],tt)},40636:(st,H,I)=>{I.d(H,{d:()=>K}),I(95128);var J=I(60177),j=I(54438);let K=(()=>{class V{static{this.\u0275fac=function(q){return new(q||V)}}static{this.\u0275mod=j.$C({type:V})}static{this.\u0275inj=j.G2t({imports:[J.MD]})}}return V})()},53606:(st,H,I)=>
1{I.r(H),I.d(H,{PaymentSummaryModule:()=>Le});var W=I(60177),J=I(73955),j=I(7901),K=I(98300),V=I(31635),F=I(34143),$=I(3366),q=I(63318),et=I(97421),tt=I(21462),Z=I(50689),G=I(27876),k=I(75915),B=I(93364),Q=I(49894),z=I(7673),dt=I(27468),yt=I(96697),ft=I(70980),ut=I(88141),ct=I(25558),nt=I(99437),gt=I(62592),it=I(26215),_t=I(3050),ot=I(27207),ht=I(82245),t=I(54438),Tt=I(40281),Pt=I(73284),Mt=I(38016),Et=I(66152),xt=I(51130),St=I(79385),At=I(80173),vt=I(23545);function Ct(o,a){if(1&o&&(t.j41(0,"div"),t.nrm(1,"lla-alert",25),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.Y8G("status",e.paymentData.alertStatus)("statusIcon",e.paymentData.alertIcon)("type","default")("body",e.paymentData.alertMessage)("fullWidthAlert",!0)("alertClose",!1)("toastBanner",!0)("previousExistingAlert",!1)}}function Dt(o,a){if(1&o){const e=t.RV6();t.j41(0,"span",26),t.bIt("click",function(i){return t.eBV(e),t.Njj(i.stopPropagation())}),t.nrm(1,"lla-icon",27),t.k0s()}if(2&o){t.XpG();const e=t.sdS(41);t.Y8G("tooltipVariant","list")("contentTemplate",e)("tooltipArrow",!0)("tooltipbackGroundColor","black")("closeIconTooltip",!0)("showToolTip",!0)("defaultPosition","bottom-center")("keepInViewport",!0)("contentAlignment","flex-start"),t.R7$(),t.Y8G("iconClass","information-circle-outline")("size","sm")("iconColor","neutral-700")}}function bt(o,a){if(1&o&&(t.j41(0,"p",28),t.EFF(1),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.SpI(" ",e.paymentData.dueMonthly.disclaimer," ")}}function Rt(o,a){if(1&o&&t.nrm(0,"lla-order-summary-table-list",31),2&o){const e=t.XpG().$implicit;t.AVh("discount-item",e.isDiscount),t.Y8G("secondaryListContent",e.name)("secondaryListIcon","")("price",e.price)("priceFont","b4-regular")("secondaryListDivider",!1)}}function Nt(o,a){if(1&o&&(t.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"span",36),t.EFF(5),t.k0s()()()(),t.j41(6,"div",37)(7,"span",38),t.EFF(8),t.k0s()()()),2&o){const e=t.XpG().$implicit,n=t.XpG(),i=t.sdS(35);
1t.R7$(4),t.Y8G("tooltipVariant","list")("contentTemplate",i)("tooltipArrow",!0)("tooltipbackGroundColor","black")("closeIconTooltip",!0)("showToolTip",!0===e.showTooltip)("defaultPosition",n.tooltipPosition),t.R7$(),t.JRh(e.name),t.R7$(3),t.JRh(e.price)}}function Ot(o,a){if(1&o&&(t.qex(0),t.DNE(1,Rt,1,7,"lla-order-summary-table-list",29)(2,Nt,9,9,"div",30),t.bVm()),2&o){const e=a.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngIf",e.name!==n.getTranslatedData("PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES")),t.R7$(),t.Y8G("ngIf",e.name===n.getTranslatedData("PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES")&&!n.isZeroPrice(e.price))}}function It(o,a){if(1&o&&(t.j41(0,"p",28),t.EFF(1),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.SpI(" ",e.paymentData.dueToday.disclaimer," ")}}function Ft(o,a){if(1&o&&(t.j41(0,"div",43)(1,"span",44),t.EFF(2),t.k0s()()),2&o){const e=t.XpG(4).$implicit;t.R7$(2),t.JRh(e.tooltipData.title)}}function Lt(o,a){if(1&o&&(t.j41(0,"span",52),t.EFF(1),t.k0s()),2&o){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.price||"$0.00")}}function Ut(o,a){if(1&o&&(t.j41(0,"div",53)(1,"span",54),t.EFF(2),t.k0s(),t.j41(3,"span",55),t.EFF(4),t.k0s()()),2&o){const e=a.$implicit;t.R7$(2),t.JRh(e.secItem),t.R7$(2),t.JRh(e.secPrice||"$0.00")}}function Yt(o,a){if(1&o&&(t.j41(0,"div",53)(1,"span",54),t.EFF(2),t.k0s(),t.j41(3,"span",55),t.EFF(4,"$0.00"),t.k0s()()),2&o){const e=t.XpG().$implicit;t.R7$(2),t.JRh(e.description)}}function $t(o,a){1&o&&t.nrm(0,"hr",56)}function wt(o,a){if(1&o&&(t.j41(0,"div",45),t.qex(1),t.j41(2,"div",46)(3,"span",47),t.EFF(4),t.k0s(),t.DNE(5,Lt,2,1,"span",48),t.k0s(),t.DNE(6,Ut,5,2,"div",49)(7,Yt,5,1,"div",50)(8,$t,1,0,"hr",51),t.bVm(),t.k0s()),2&o){const e=a.$implicit,n=a.last,i=t.XpG(4).$implicit,s=t.XpG();t.R7$(4),t.JRh(e.description),t.R7$(),t.Y8G("ngIf",e.price&&e.description!==s.getTranslatedData("PAYMENT_SUMMARY.PLAN")),t.R7$(),t.Y8G("ngForOf",e.secEl),t.R7$(),t.Y8G("ngIf",!e.secEl||0===e.secEl.length),t.R7$(),t.Y8G("ngIf",!n||n&&i.tooltipData.total)}}function kt(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",57)(2,"span",58),t.EFF(3),t.k0s(),t.j41(4,"span",59),t.EFF(5),t.k0s()(),t.bVm()),2&o){const e=t.XpG(4).$implicit;t.R7$(3),t.JRh(e.tooltipData.total.label),t.R7$(2),t.JRh(e.tooltipData.total.price||"$0.00")}}function Vt(o,a){if(1&o&&(t.j41(0,"div",60)(1,"p"),t.EFF(2),t.k0s()()),2&o){const e=t.XpG(4).$implicit;t.R7$(2),t.JRh(e.tooltipData.footer)}}function Gt(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",39),t.DNE(2,Ft,3,1,"div",40),t.j41(3,"div"),t.DNE(4,wt,9,5,"div",41),t.k0s(),t.DNE(5,kt,6,2,"ng-container",7)(6,Vt,3,1,"div",42),t.k0s(),t.bVm()),2&o){const e=t.XpG(3).$implicit;t.R7$(2),t.Y8G("ngIf",e.tooltipData.title),t.R7$(2),t.Y8G("ngForOf",e.tooltipData.sections),t.R7$(),t.Y8G("ngIf",e.tooltipData.total),t.R7$(),t.Y8G("ngIf",e.tooltipData.footer)}}function Xt(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",39)(2,"div",61)(3,"p",62),t.EFF(4),t.k0s()()(),t.bVm()),2&o){const e=t.XpG(4);t.R7$(4),t.JRh(e.getTranslatedData("PAYMENT_SUMMARY.NO_TOOLTIP_DATA"))}}function jt(o,a){if(1&o&&t.DNE(0,Gt,7,4,"ng-container",7)(1,Xt,5,1,"ng-container",7),2&o){const e=t.XpG(2).$implicit;t.Y8G("ngIf",e.tooltipData&&e.tooltipData.sections&&e.tooltipData.sections.length>0),t.R7$(),t.Y8G("ngIf",!e.tooltipData||!e.tooltipData.sections||0===e.tooltipData.sections.length)}}function Bt(o,a){if(1&o&&(t.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35),t.DNE(4,jt,2,2,"ng-template",null,4,t.C5r),t.j41(6,"span",36),t.EFF(7),t.k0s()()()(),t.j41(8,"div",37)(9,"span",38),t.EFF(10),t.k0s()()()),2&o){const e=t.sdS(5),n=t.XpG().$implicit,i=t.XpG();t.R7$(6),t.Y8G("tooltipVariant","list")("contentTemplate",e)("tooltipArrow",!0)("tooltipbackGroundColor","black")("closeIconTooltip",!0)("showToolTip",!0===n.showTooltip)("defaultPosition",i.tooltipPosition),t.R7$(),t.JRh(n.name),t.R7$(3),t.JRh(n.price)}}function zt(o,a){if(1&o&&(t.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"span",36),t.EFF(5),t.k0s()()()(),t.j41(6,"div",37)(7,"span",38),t.EFF(8),t.k0s()()()),2&o){const e=t.XpG().$implicit,n=t.XpG(),i=t.sdS(37);
1t.R7$(4),t.Y8G("tooltipVariant","list")("contentTemplate",i)("tooltipArrow",!0)("tooltipbackGroundColor","black")("closeIconTooltip",!0)("showToolTip",!0)("defaultPosition",n.tooltipPosition),t.R7$(),t.JRh(e.name),t.R7$(3),t.JRh(e.price)}}function Wt(o,a){if(1&o&&t.nrm(0,"lla-order-summary-table-list",31),2&o){const e=t.XpG().$implicit;t.AVh("discount-item",e.isDiscount),t.Y8G("secondaryListContent",e.name)("secondaryListIcon","")("price",e.price)("priceFont","b4-regular")("secondaryListDivider",!1)}}function Jt(o,a){if(1&o&&(t.qex(0),t.DNE(1,Bt,11,9,"div",30)(2,zt,9,9,"div",30)(3,Wt,1,7,"lla-order-summary-table-list",29),t.bVm()),2&o){const e=a.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngIf",e.isTaxLink&&e.name===n.getTranslatedData("PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES")&&!n.isZeroPrice(e.price)),t.R7$(),t.Y8G("ngIf",e.isTaxLink&&e.name===n.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAXES")&&!n.isZeroPrice(e.price)),t.R7$(),t.Y8G("ngIf",!e.isTaxLink)}}function Ht(o,a){if(1&o&&(t.j41(0,"p",28),t.EFF(1),t.k0s()),2&o){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.paymentData.originalPricing.dueMonthly.disclaimer," ")}}function Kt(o,a){if(1&o&&t.nrm(0,"lla-order-summary-table-list",31),2&o){const e=t.XpG().$implicit;t.AVh("discount-item",e.isDiscount),t.Y8G("secondaryListContent",e.name)("secondaryListIcon","")("price",e.price)("priceFont","b4-regular")("secondaryListDivider",!1)}}function Zt(o,a){if(1&o&&(t.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"span",36),t.EFF(5),t.k0s()()()(),t.j41(6,"div",37)(7,"span",38),t.EFF(8),t.k0s()()()),2&o){const e=t.XpG().$implicit,n=t.XpG(2),i=t.sdS(35);
1t.R7$(4),t.Y8G("tooltipVariant","list")("contentTemplate",i)("tooltipArrow",!0)("tooltipbackGroundColor","black")("closeIconTooltip",!0)("showToolTip",!0===e.showTooltip)("defaultPosition",n.tooltipPosition),t.R7$(),t.JRh(e.name),t.R7$(3),t.JRh(e.price)}}function Qt(o,a){if(1&o&&(t.qex(0),t.DNE(1,Kt,1,7,"lla-order-summary-table-list",29)(2,Zt,9,9,"div",30),t.bVm()),2&o){const e=a.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.name!==n.getTranslatedData("PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES")),t.R7$(),t.Y8G("ngIf",e.name===n.getTranslatedData("PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES")&&!n.isZeroPrice(e.price))}}function qt(o,a){if(1&o&&(t.j41(0,"p",28),t.EFF(1),t.k0s()),2&o){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.paymentData.originalPricing.dueToday.disclaimer," ")}}function te(o,a){if(1&o&&(t.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"span",36),t.EFF(5),t.k0s()()()(),t.j41(6,"div",37)(7,"span",38),t.EFF(8),t.k0s()()()),2&o){const e=t.XpG().$implicit,n=t.XpG(2),i=t.sdS(35);t.R7$(4),t.Y8G("tooltipVariant","list")("contentTemplate",i
1)("tooltipArrow",!0)("tooltipbackGroundColor","black")("closeIconTooltip",!0)("showToolTip",!0===e.showTooltip)("defaultPosition",n.tooltipPosition),t.R7$(),t.JRh(e.name),t.R7$(3),t.JRh(e.price)}}function ee(o,a){if(1&o&&(t.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"span",36),t.EFF(5),t.k0s()()()(),t.j41(6,"div",37)(7,"span",38),t.EFF(8),t.k0s()()()),2&o){const e=t.XpG().$implicit,n=t.XpG(2),i=t.sdS(37);t.R7$(4),t.Y8G("tooltipVariant","list")("contentTemplate",i)("tooltipArrow",!0)("tooltipbackGroundColor","black")("closeIconTooltip",!0)("showToolTip",!0)("defaultPosition",n.tooltipPosition),t.R7$(),t.JRh(e.name),t.R7$(3),t.JRh(e.price)}}function ae(o,a){if(1&o&&t.nrm(0,"lla-order-summary-table-list",31),2&o){const e=t.XpG().$implicit;t.AVh("discount-item",e.isDiscount),t.Y8G("secondaryListContent",e.name)("secondaryListIcon","")("price",e.price)("priceFont","b4-regular")("secondaryListDivider",!1)}}function ne(o,a){if(1&o&&(t.qex(0),t.DNE(1,te,9,9,"div",30)(2,ee,9,9,"div",30)(3,ae,1,7,"lla-order-summary-table-list",29),t.bVm()),2&o){const e=a.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngIf",e.isTaxLink&&e.name===n.getTranslatedData("PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES")&&!n.isZeroPrice(e.price)),t.R7$(),t.Y8G("ngIf",e.isTaxLink&&e.name===n.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAXES")&&!n.isZeroPrice(e.price)),t.R7$(),t.Y8G("ngIf",!e.isTaxLink)}}function ie(o,a){if(1&o){const e=t.RV6();t.j41(0,"div",63)(1,"lla-accordion",64)(2,"lla-expansion-panel",65),t.bIt("opened",function(i){t.eBV(e);const s=t.XpG();return t.Njj(s.handleDataLayerOnOriginalPricingAccordionOpen(i))}),t.j41(3,"div",66)(4,"lla-generic-card",67)(5,"div",12)(6,"div",13)(7,"h3",14),t.EFF(8),t.k0s(),t.j41(9,"div",16),t.EFF(10),t.k0s(),t.DNE(11,Ht,2,1,"p",17),t.k0s(),t.nrm(12,"hr",18),t.j41(13,"div",19),t.DNE(14,Qt,3,2,"ng-container",20),t.k0s()()(),t.j41(15,"lla-generic-card",67)(16,"div",12)(17,"div",13)(18,"h3",14),t.EFF(19),t.k0s(),t.j41(20,"div",16),t.EFF(21),t.k0s(),t.DNE(22,qt,2,1,"p",17),t.k0s(),t.nrm(23,"hr",18),t.j41(24,"div",19),t.DNE(25,ne,4,3,"ng-container",20),t.k0s()()()()()()()}if(2&o){const e=t.XpG();t.R7$(),t.Y8G("multiMode",!0),t.R7$(),t.Y8G("title",e.seeOriginalPricingTitle)("description",e.seeOriginalPricingDescription)("id","original-pricing")("isCollapsed",!1)("showBorder",!1)("isBorder","roundborder")("multiMode",!0)("changeFontOnExpand",!1)("titleFontSize","b3-bold"),t.R7$(6),t.JRh(e.paymentData.originalPricing.dueMonthly.title),t.R7$(2),t.JRh(e.paymentData.originalPricing.dueMonthly.amount),t.R7$(),t.Y8G("ngIf",e.paymentData.originalPricing.dueMonthly.disclaimer),t.R7$(3),t.Y8G("ngForOf",e.paymentData.originalPricing.dueMonthly.items),t.R7$(5),t.JRh(e.paymentData.originalPricing.dueToday.title),t.R7$(2),t.JRh(e.paymentData.originalPricing.dueToday.amount),t.R7$(),t.Y8G("ngIf",e.paymentData.originalPricing.dueToday.disclaimer),t.R7$(3),t.Y8G("ngForOf",e.paymentData.originalPricing.dueToday.items)}}function oe(o,a){if(1&o&&(t.j41(0,"div",43)(1,"span",44),t.EFF(2),t.k0s()()),2&o){const e=t.XpG(3);t.R7$(2),t.JRh(e.paymentData.tooltipData.title)}}function re(o,a){if(1&o&&(t.j41(0,"span",52),t.EFF(1),t.k0s()),2&o){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.price||"$0.00")}}function se(o,a){if(1&o&&(t.j41(0,"div",53)(1,"span",54),t.EFF(2),t.k0s(),t.j41(3,"span",55),t.EFF(4),t.k0s()()),2&o){const e=a.$implicit;t.R7$(2),t.JRh(e.secItem),t.R7$(2),t.JRh(e.secPrice||"$0.00")}}function ce(o,a){if(1&o&&(t.j41(0,"div",53)(1,"span",54),t.EFF(2),t.k0s(),t.j41(3,"span",55),t.EFF(4,"$0.00"),t.k0s()()),2&o){const e=t.XpG().$implicit;t.R7$(2),t.JRh(e.description)}}function le(o,a){1&o&&t.nrm(0,"hr",56)}function me(o,a){if(1&o&&(t.j41(0,"div",45),t.qex(1),t.j41(2,"div",46)(3,"span",47),t.EFF(4),t.k0s(),t.DNE(5,re,2,1,"span",48),t.k0s(),t.DNE(6,se,5,2,"div",49)(7,ce,5,1,"div",50)(8,le,1,0,"hr",51),t.bVm(),t.k0s()),2&o){const e=a.$implicit,n=a.last,i=t.XpG(3);t.R7$(4),t.JRh(e.description),t.R7$(),t.Y8G("ngIf",e.price&&e.description!==i.getTranslatedData("PAYMENT_SUMMARY.PLAN")),t.R7$(),t.Y8G("ngForOf",e.secEl),t.R7$(),t.Y8G("ngIf",!e.secEl||0===e.secEl.length),t.R7$(),t.Y8G("ngIf",!n||n&&i.paymentData.tooltipData.total)}}function pe(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",57)(2,"span",58),t.EFF(3),t.k0s(),t.j41(4,"span",59),t.EFF(5),t.k0s()(),t.bVm()),2&o){const e=t.XpG(3);t.R7$(3),t.JRh(e.paymentData.tooltipData.total.label),t.R7$(2),t.JRh(e.paymentData.tooltipData.total.price||"$0.00")}}function de(o,a){if(1&o&&(t.j41(0,"div",60)(1,"p"),t.EFF(2),t.k0s()()),2&o){const e=t.XpG(3);t.R7$(2),t.JRh(e.paymentData.tooltipData.footer)}}function ue(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",39),t.DNE(2,oe,3,1,"div",40),t.j41(3,"div"),t.DNE(4,me,9,5,"div",41),t.k0s(),t.DNE(5,pe,6,2,"ng-container",7)(6,de,3,1,"div",42),t.k0s(),t.bVm()),2&o){const e=t.XpG(2);t.R7$(2),t.Y8G("ngIf",e.paymentData.tooltipData.title),t.R7$(2),t.Y8G("ngForOf",e.paymentData.tooltipData.sections),t.R7$(),t.Y8G("ngIf",e.paymentData.tooltipData.total),t.R7$(),t.Y8G("ngIf",e.paymentData.tooltipData.footer)}}function ge(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",39)(2,"div",61)(3,"p",62),t.EFF(4),t.k0s()()(),t.bVm()),2&o){const e=t.XpG(2);t.R7$(4),t.JRh(e.getTranslatedData("PAYMENT_SUMMARY.NO_TOOLTIP_DATA"))}}function _e(o,a){if(1&o&&t.DNE(0,ue,7,4,"ng-container",7)(1,ge,5,1,"ng-container",7),2&o){const e=t.XpG();t.Y8G("ngIf",e.paymentData.tooltipData&&e.paymentData.tooltipData.sections&&e.paymentData.tooltipData.sections.length>0),t.R7$(),t.Y8G("ngIf",!e.paymentData.tooltipData||!e.paymentData.tooltipData.sections||0===e.paymentData.tooltipData.sections.length)}}function he(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",68)(2,"div",43)(3,"span",44),t.EFF(4),t.k0s()(),t.j41(5,"div",61)(6,"div",69)(7,"span",70),t.EFF(8),t.k0s(),t.j41(9,"span",71),t.EFF(10),t.k0s()()(),t.nrm(11,"hr",72),t.j41(12,"div",60)(13,"p",62),t.EFF(14),t.k0s()()(),t.bVm()),2&o){const e=t.XpG(2);t.R7$(4),t.JRh(e.paymentData.deviceTaxTooltipData.title||e.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAXES_TOOLTIP")),t.R7$(4),t.SpI(" ",e.paymentData.deviceTaxTooltipData.taxName||e.getTranslatedData("PAYMENT_SUMMARY.IVU_TAX")," "),t.R7$(2),t.SpI(" ",e.paymentData.deviceTaxTooltipData.taxAmount||e.deviceTaxAmount," "),t.R7$(4),t.SpI(" ",e.paymentData.deviceTaxTooltipData.disclaimer||e.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAX_DISCLAIMER")," ")}}function ye(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",68)(2,"div",43)(3,"span",44),t.EFF(4),t.k0s()(),t.j41(5,"div",61)(6,"div",69)(7,"span",70),t.EFF(8),t.k0s(),t.j41(9,"span",71),t.EFF(10),t.k0s()()(),t.nrm(11,"hr",72),t.j41(12,"div",60)(13,"p",62),t.EFF(14),t.k0s()()(),t.bVm()),2&o){const e=t.XpG(2);t.R7$(4),t.JRh(e.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAXES_TOOLTIP")),t.R7$(4),t.JRh(e.getTranslatedData("PAYMENT_SUMMARY.IVU_TAX")),t.R7$(2),t.JRh(e.deviceTaxAmount),t.R7$(4),t.JRh(e.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAX_DISCLAIMER"))}}function fe(o,a){if(1&o&&t.DNE(0,he,15,4,"ng-container",7)(1,ye,15,4,"ng-container",7),2&o){const e=t.XpG();t.Y8G("ngIf",e.paymentData.deviceTaxTooltipData),t.R7$(),t.Y8G("ngIf",!e.paymentData.deviceTaxTooltipData)}}function Te(o,a){if(1&o&&(t.j41(0,"div",43)(1,"span",44),t.EFF(2),t.k0s()()),2&o){const e=t.XpG(3);t.R7$(2),t.JRh(e.paymentData.tooltipDataToday.title)}}function Pe(o,a){if(1&o&&(t.j41(0,"span",52),t.EFF(1),t.k0s()),2&o){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.price||"$0.00")}}function Me(o,a){if(1&o&&(t.j41(0,"div",53)(1,"span",54),t.EFF(2),t.k0s(),t.j41(3,"span",55),t.EFF(4),t.k0s()()),2&o){const e=a.$implicit;t.R7$(2),t.JRh(e.secItem),t.R7$(2),t.JRh(e.secPrice||"$0.00")}}function Ee(o,a){if(1&o&&(t.j41(0,"div",53)(1,"span",54),t.EFF(2),t.k0s(),t.j41(3,"span",55),t.EFF(4,"$0.00"),t.k0s()()),2&o){const e=t.XpG().$implicit;t.R7$(2),t.JRh(e.description)}}function xe(o,a){1&o&&t.nrm(0,"hr",56)}function Se(o,a){if(1&o&&(t.j41(0,"div",45),t.qex(1),t.j41(2,"div",46)(3,"span",47),t.EFF(4),t.k0s(),t.DNE(5,Pe,2,1,"span",48),t.k0s(),t.DNE(6,Me,5,2,"div",49)(7,Ee,5,1,"div",50)(8,xe,1,0,"hr",51),t.bVm(),t.k0s()),2&o){const e=a.$implicit,n=a.last,i=t.XpG(3);t.R7$(4),t.JRh(e.description),t.R7$(),t.Y8G("ngIf",e.price&&e.description!==i.getTranslatedData("PAYMENT_SUMMARY.PLAN")),t.R7$(),t.Y8G("ngForOf",e.secEl),t.R7$(),t.Y8G("ngIf",!e.secEl||0===e.secEl.length),t.R7$(),t.Y8G("ngIf",!n||n&&i.paymentData.tooltipDataToday.total)}}function Ae(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",57)(2,"span",58),t.EFF(3),t.k0s(),t.j41(4,"span",59),t.EFF(5),t.k0s()(),t.bVm()),2&o){const e=t.XpG(3);t.R7$(3),t.JRh(e.paymentData.tooltipDataToday.total.label),t.R7$(2),t.JRh(e.paymentData.tooltipDataToday.total.price||"$0.00")}}function ve(o,a){if(1&o&&(t.j41(0,"div",60)(1,"p"),t.EFF(2),t.k0s()()),2&o){const e=t.XpG(3);t.R7$(2),t.JRh(e.paymentData.tooltipDataToday.footer)}}function Ce(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",39),t.DNE(2,Te,3,1,"div",40),t.j41(3,"div"),t.DNE(4,Se,9,5,"div",41),t.k0s(),t.DNE(5,Ae,6,2,"ng-container",7)(6,ve,3,1,"div",42),t.k0s(),t.bVm()),2&o){const e=t.XpG(2);t.R7$(2),t.Y8G("ngIf",e.paymentData.tooltipDataToday.title),t.R7$(2),t.Y8G("ngForOf",e.paymentData.tooltipDataToday.sections),t.R7$(),t.Y8G("ngIf",e.paymentData.tooltipDataToday.total),t.R7$(),t.Y8G("ngIf",e.paymentData.tooltipDataToday.footer)}}function De(o,a){if(1&o&&(t.qex(0),t.j41(1,"div",39)(2,"div",61)(3,"p",62),t.EFF(4),t.k0s()()(),t.bVm()),2&o){const e=t.XpG(2);t.R7$(4),t.JRh(e.getTranslatedData("PAYMENT_SUMMARY.NO_TOOLTIP_DATA"))}}function be(o,a){if(1&o&&t.DNE(0,Ce,7,4,"ng-container",7)(1,De,5,1,"ng-container",7),2&o){const e=t.XpG();t.Y8G("ngIf",e.paymentData.tooltipDataToday&&e.paymentData.tooltipDataToday.sections&&e.paymentData.tooltipDataToday.sections.length>0),t.R7$(),t.Y8G("ngIf",!e.paymentData.tooltipDataToday||!e.paymentData.tooltipDataToday.sections||0===e.paymentData.tooltipDataToday.sections.length)}}function Re(o,a){if(1&o&&(t.j41(0,"div",73)(1,"div",74)(2,"span",75),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"lla-icon",76),t.k0s(),t.j41(6,"div",77)(7,"p",78),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"div",79),t.nrm(11,"div",80),t.j41(12,"div",81)(13,"div",82)(14,"span",62),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"span",62),t.EFF(18),t.k0s()(),t.j41(19,"div",83)(20,"div",82)(21,"span",62),t.EFF(22),t.nI1(23,"translate"),t.k0s(),t.j41(24,"span",62),t.EFF(25),t.k0s()(),t.j41(26,"p",84),t.EFF(27),t.nI1(28,"translate"),t.k0s()()()(),t.j41(29,"div",85),t.nrm(30,"div",86),t.j41(31,"div",87)(32,"div",88)(33,"span",58),t.EFF(34),t.nI1(35,"translate"),t.k0s(),t.j41(36,"span",44),t.EFF(37),t.k0s()(),t.j41(38,"p",89),t.EFF(39),t.nI1(40,"translate"),t.k0s()()()()()),2&o){const e=t.XpG();t.R7$(3),t.JRh(t.bMT(4,13,"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_TITLE")),t.R7$(2),t.Y8G("iconClass","close-outline")("iconColor","neutral-0")("size","sm"),t.R7$(3),t.SpI(" ",t.bMT(9,15,"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_BODY")," "),t.R7$(7),t.JRh(t.bMT(16,17,"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_MONTHLY")),t.R7$(3),t.JRh(e.paymentData.dueMonthly.amount),t.R7$(4),t.JRh(t.bMT(23,19,"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_ACTIVATION")),t.R7$(3),t.JRh(e.firstMonthTooltipActivationDisplay),t.R7$(2),t.SpI(" ",t.bMT(28,21,"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_ONE_TIME_NOTE")," "),t.R7$(7),t.JRh(t.bMT(35,23,"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_TOTAL")),t.R7$(3),t.JRh(e.firstMonthTooltipTotalDisplay),t.R7$(2),t.SpI(" ",t.bMT(40,25,e.firstMonthTooltipFooterKey)," ")}}let lt=class pt{constructor(a,e,n,i,s,c,m,l,_,P,v,C,N){this.router=a,this.paymentSummaryService=e,this.checkoutProgressService=n,this.translateService=i,this.checkoutService=s,this.taxesFeesService=c,this.marketConfigurationService=m,this.dataLayerService=l,this.cartService=_,this.numberReservationService=P,this.physicalSimReservationService=v,this.clickToCallService=C,this.orderSummaryService=N,this.pageTitle="",this.seeOriginalPricingTitle="",this.seeOriginalPricingDescription="",this.continueButtonText="",this.hasCustomerCallMeBackTriggered=!1,this.addShippingInfoFired=!1,this.todayPrice="$0.00",this.monthlyPrice="$0.00",this.productApiByCode={},this.autopayDiscountByProductCode={},this.autopayDiscountLoadRequested=!1,this.deviceTaxAmount="$0.00",this.deviceTaxPercentage="0",this.zeroPriceText="$0.00",this.tooltipPosition="bottom-center",this.lineSpecificTaxes=[],this.cartLevelRecurringTax=0,this.isPaymentSummaryContinueInProgress=!1,this.storedTotalPlanTaxAmount=0,this.preventTaxDuplicates=!0,this.paymentData={alertMessage:"",alertStatus:"info",alertIcon:"information-circle-outline",showAlert:!0,dueMonthly:{title:"",amount:"$0.00",disclaimer:"",items:[]},dueToday:{title:"",amount:"$0.00",disclaimer:"",items:[]},originalPricing:{dueMonthly:{title:"",amount:"$0.00",disclaimer:"",items:[]},dueToday:{title:"",amount:"$0.00",disclaimer:"",items:[]}},pricingDetails:[],tooltipData:{title:"",sections:[],total:{label:"",price:"$0.00"},footer:""},tooltipDataToday:{title:"",sections:[],total:{label:"",price:"$0.00"},footer:""},deviceTaxTooltipData:{title:"",taxName:"",taxPercentage:"0",taxAmount:"$0.00",disclaimer:""}},this.enableFirstMonthTooltipWithoutActivationFee=!1}get showFirstMonthMonthlyTooltip(){const a=this.marketConfigurationService.getBrandMarket();return(a===F.emF.PUERTORICO||a===F.emF.LCPR)&&(!!this.enableFirstMonthTooltipWithoutActivationFee||this.getTotalActivationFeeAmount()>0)}get firstMonthTooltipActivationDisplay(){const a=this.getTotalActivationFeeAmount();return a>0?`$${a.toFixed(2)}`:this.zeroPriceText}get firstMonthTooltipTotalDisplay(){return`$${(this.parsePriceString(this.paymentData?.dueMonthly?.amount||"0")+this.getTotalActivationFeeAmount()).toFixed(2)}`}get firstMonthTooltipFooterKey(){return this.isUpdateTaxesPassed()?"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_FOOTER_TAX_INCLUDED":"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.FIRST_MONTH_TOOLTIP_FOOTER"}isUpdateTaxesPassed(){try{return!0===JSON.parse(localStorage.getItem(F.ZM_.IS_UPDATE_TAXES_PASSED)??"false")}catch{return!1}}getTotalActivationFeeAmount(){const a=this.collectLcprCartItems(this.cartDetails);if(a.length)return a.reduce((n,i)=>n+(Array.isArray(i?.additionalCharges)?i.additionalCharges:[]).reduce((c,m)=>{const l=(m?.chargeName??"").toString().toLowerCase(),_=(m?.chargeCode??"").toString().toUpperCase();if(!l.includes("activation")&&!_.includes("ACTIVATION"))return c;const P=Number(m?.chargeAmount??m?.value);return c+(Number.isFinite(P)&&P>0?P:0)},0),0);const e=Array.isArray(this.cartDetails?.entries)?this.cartDetails.entr
1ies:[];return e.length?e.reduce((n,i)=>{const s=this.getActivationFeeFromEntry(i);return n+(s?this.parsePriceString(s):0)},0):0}ngOnInit(){const a=localStorage.getItem(F.ZM_.CART_ID),e=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO||this.marketConfigurationService.getBrandMarket()===F.emF.LCPR;a||e?(this.initializeTranslations(),this.triggerAbandonCallMeBackForCreditScore(),this.checkoutService.refreshCart(),this.loadCartData(),this.handleDataLayerPaymentUpdated()):this.router.navigateByUrl("/")}triggerAbandonCallMeBackForCreditScore(){if(this.hasCustomerCallMeBackTriggered)return;const a=String(localStorage.getItem("creditScoreLetter")||window.creditScore||"").trim().toUpperCase();"P"!==a&&"Q"!==a||(this.hasCustomerCallMeBackTriggered=!0,this.clickToCallService.triggerC2C(F.ZnJ.LEAD,F.Xj7.Summary))}handleDataLayerPaymentUpdated(){JSON.parse(localStorage.getItem("UserData")||"{}"),localStorage;let{fixedCount:s,prepaidCount:c,postpaidCount:m}=localStorage.billlingAccountFlag?JSON.parse(localStorage.billlingAccountFlag):{};let _="";const P=window.isExistingDetected;_=void 0===P||!1===P?localStorage.UserData&&JSON.parse(localStorage.UserData).gigyaAccount?.profile?.email?"Existing Logged":"new user":"Existing Detected";let v="";v=localStorage?.UserData?this.dataLayerService.getCommonCreditScore():window.creditScore?window.creditScore:void 0,window,window,localStorage?.UserData?JSON.parse(localStorage.UserData):localStorage,localStorage?.UserData?JSON.parse(localStorage.UserData):localStorage}ngOnDestroy(){}getTranslatedData(a,e={}){return this.translateService.getTranslation(a,e)}getTaxesLabel(){let a=this.getTranslatedData("PAYMENT_SUMMARY.TAXES");if((!a||""===a.trim()||"PAYMENT_SUMMARY.TAXES"===a)&&(a=this.getTranslatedData("SHOPPING_CART_SUMMARY.ORDER_SUMMARY.PLAN_TAXES_FEES")),!a||""===a.trim()||"SHOPPING_CART_SUMMARY.ORDER_SUMMARY.PLAN_TAXES_FEES"===a){const n=this.translateService.getCurrentLang();a="es"===n||n?.startsWith("es")?"Tasas e Impuestos":"Taxes"}if(a===(this.getTranslatedData("PAYMENT_SUMMARY.LINE")||"Line")||"line"===a.toLowerCase()||"l\xednea"===a.toLowerCase()){const n=this.translateService.getCurrentLang();a="es"===n||n?.startsWith("es")?"Tasas e Impuestos":"Taxes"}return a}isZeroPrice(a){if(!a)return!0;const e=String(a).trim();if(""===e)return!0;const n=e.replace(/[$,]/g,"").trim(),i=parseFloat(n);return isNaN(i)||Math.abs(i)<.001}getPlanTaxesAndFeesLabel(){let a=this.getTranslatedData("PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES");if(a===(this.getTranslatedData("PAYMENT_SUMMARY.LINE")||"Line")||"line"===a?.toLowerCase()||"l\xednea"===a?.toLowerCase()){const n=this.translateService.getCurrentLang();a="es"===n||n?.startsWith("es")?"Impuestos y cargos del plan":"Plan Taxes & Fees"}if(!a||""===a.trim()||"PAYMENT_SUMMARY.PLAN_TAXES_AND_FEES"===a){const n=this.translateService.getCurrentLang();a="es"===n||n?.startsWith("es")?"Impuestos y cargos del plan":"Plan Taxes & Fees"}return a}initializeTranslations(){this.pageTitle=this.getTranslatedData("PAYMENT_SUMMARY.PAGE_TITLE"),this.seeOriginalPricingTitle=this.getTranslatedData("PAYMENT_SUMMARY.SEE_ORIGINAL_PRICING"),this.seeOriginalPricingDescription=this.getTranslatedData("PAYMENT_SUMMARY.ORIGINAL_PRICING_DESCRIPTION"),this.continueButtonText=this.getTranslatedData("PAYMENT_SUMMARY.CONTINUE_BUTTON"),this.paymentData.dueMonthly.title=this.getTranslatedData("PAYMENT_SUMMARY.DUE_MONTHLY"),this.paymentData.dueMonthly.disclaimer=this.getTranslatedData("PAYMENT_SUMMARY.MONTHLY_DISCLAIMER"),this.paymentData.dueToday.title=this.getTranslatedData("PAYMENT_SUMMARY.DUE_TODAY"),this.paymentData.dueToday.disclaimer=this.getTranslatedData("PAYMENT_SUMMARY.ONE_TIME_PAYMENT"),this.paymentData.alertMessage=this.getTranslatedData("PAYMENT_SUMMARY.ALERT_MESSAGE"),this.paymentData.tooltipData.title=this.getTranslatedData("PAYMENT_SUMMARY.PRICING_DETAILS"),this.paymentData.tooltipData.total.label=this.getTranslatedData("PAYMENT_SUMMARY.TOTAL"),this.paymentData.tooltipData.footer=this.getTranslatedData("PAYMENT_SUMMARY.TOOLTIP_FOOTER"),this.paymentData.deviceTaxTooltipData&&(this.paymentData.deviceTaxTooltipData.title=this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAXES_TOOLTIP"),this.paymentData.deviceTaxTooltipData.taxName=this.getTranslatedData("PAYMENT_SUMMARY.IVU_TAX"),this.paymentData.deviceTaxTooltipData.disclaimer=this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAX_DISCLAIMER")),this.paymentData.originalPricing&&(this.paymentData.originalPricing.dueMonthly.title=this.paymentData.dueMonthly.title,this.paymentData.originalPricing.dueMonthly.disclaimer=this.getTranslatedData("PAYMENT_SUMMARY.ORIGINAL_PRICING"),this.paymentData.originalPricing.dueToday.title=this.paymentData.dueToday.title,this.paymentData.originalPricing.dueToday.disclaimer=this.getTranslatedData("PAYMENT_SUMMARY.ORIGINAL_PRICING")),this.zeroPriceText=this.getTranslatedData("SHOPPING_CART_SUMMARY.ORDER_SUMMARY.ZERO_PRICE")||"$0.00";const a=this.translateService.getTranslation("PAYMENT_SUMMARY");this.preventTaxDuplicates=!a||!1!==a.prevent_tax_duplicates&&!1!==a.preventTaxDuplicates,this.setTooltipPosition(),window.addEventListener("resize",()=>this.setTooltipPosition())}setTooltipPosition(){this.tooltipPosition=window.innerWidth<=599?"top-center":"bottom-center"}loadCartData(){this.shoppingCart$=this.checkoutService.retrieveCart(),this.shoppingCart$.pipe((0,Q.s)(this)).subscribe(a=>{a&&(this.cartDetails=a,this.processCartData(a),this.fireAddShippingInfoIfNeeded(a))})}fireAddShippingInfoIfNeeded(a){if(this.addShippingInfoFired||!(0,ht.u2)(ht.WQ.PAYMENT_SUMMARY,Array.isArray(a.entries)?a.entries:[]))return;this.addShippingInfoFired=!0;const e=this.checkoutService.retrieveCart(),n=this.checkoutService.mapSelectedProducts(a.entries),i=this.checkoutService.getMobilePlanStepsDetails(F.XHp.MobilePlanCheckoutPayment),s=this.marketConfigurationService.getConfig(),c=this.marketConfigurationService.getGlobalConfiguration()?.currency,m=this.marketConfigurationService.getGlobalConfiguration()?.leadEvent,l=localStorage.getItem(F.ZM_.SELECTEDDEVICESIMTYPE)||void 0;this.dataLayerService.addShippingInfo(e,s,c,m,n,i,l)}processCartData(a){const{entries:e=[],totalPriceList:n,packAmountDueToday:s,totalTaxList:c,totalPrice:l}=a,P=Array.isArray(e)?e:[];this.loadAutopayDiscountProductData(P),this.processDueMonthly(P,c,a),this.processDueToday(n,P,s,c,l,a),this.buildPricingDetails(n,c,P)}processDueMonthly(a,e,n){const i=[],s=n?.totalPriceList?.totalPriceList?.filter(p=>p.priceType===F.QR8.RECURRING)||[],c=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO;a.forEach((p,r)=>{const x=p.product||{},R=x.categories||[],d=this.getEntryCategoryCodeForDisplay(p),T=this.isEntryPlanLine(p),y=this.isEntryDeviceLine(p,n),f=c&&R.some(O=>{const g=O.code?O.code.toLowerCase():"";return"prepaid"===g||g.includes("prepago")});if(T){const O=x.name||"Plan",g=this.resolvePlanEntryCurrentPrice(p),h=this.getPlanPriceWithoutTax(p,g);let A=f?this.getPrepaidBasePlanPrice(p,h):c?this.getLcprPostpaidMonthlyPlanLinePrice(p,h,n):this.getWithoutAutopayPlanPrice(p,h,n);i.push({name:O,price:A,itemType:"plan",categoryCode:d})}if(y&&p.installmentMonthValue&&"FULL"!==p.installmentMonthValue&&"ONE_TIME"!==p.installmentMonthValue){const O=x.baseProductName||x.name||this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_NAME");let g;const h=c?n?.items?.find(D=>!(D.id!==p.entryNumber&&D.id!==Number(p.entryNumber)||"DEVICE"!==(D.itemType||"").toUpperCase()&&"DEVICE"!==(D.bundleItemType||"").toUpperCase())):void 0,A=h?.pricing?.monthlyDeviceInstallment;if(c&&h){const D=null==A||"number"!=typeof A&&""===String(A).trim()?0:"number"==typeof A?A:this.parsePriceToNumber(String(A))??0;g=Number.isFinite(D)?`$${Number(D).toFixed(2)}`:this.zeroPriceText}else g=c?p.totalPrice?.formattedValue||p.basePrice?.formattedValue||this.zeroPriceText:`$${(((p.fullPrice?.value||0)-(p.basePrice?.value||0))/(parseInt(p.installmentMonthValue)||1)).toFixed(2)}`;const u=parseInt(p.installmentMonthValue)||1,E=this.getTranslatedData("PAYMENT_SUMMARY.INSTALLMENTS_TEXT").replace("[X]",u.toString()).replace("{{months}}",u.toString());i.push({name:`${O} - ${E}`,price:g,itemType:"device",categoryCode:d})}}),c&&this.appendLcprDeviceMonthlyFromCartItems(n,i);let m=0;const l=new Map;this.lineSpecificTaxes=[];let _=0;const P=this.getRecurringTotalTaxValueFromCart(n);if(c&&P>0&&(this.cartLevelRecurringTax=P),a.forEach(p=>{const x=(p.product||{}).categories||[],R=this.isEntryPlanLine(p),d=this.isAddonEntry(p),T=R&&!d,y=c&&Array.isArray(n?.items)?n.items:[],f=y.length>0?y.find(g=>!(g.id!==p.entryNumber&&g.entryNumber!==p.entryNumber||"PLAN"!==g.itemType&&"PLAN"!==g.bundleItemType)):void 0,O=c&&f&&(Number(f.taxCharges)>0||Number(f.taxAmount)>0||Array.isArray(f.taxes)&&f.taxes.length>0);if(T&&(O||p.cartPrice&&p.cartPrice.cartPrice)){_++;const g=new Map;let h=0,A=!1;
1if(O&&f.taxes?.length&&(f.taxes.forEach(u=>{const E=u.name||u.taxName||"Tax",S=Number(u.taxAmount??u.value??0)||parseFloat(String(u.formattedValue||"0").replace(/[^0-9.-]+/g,"")||"0");if(E&&S>0){const D=l.get(E)||0;l.set(E,D+S);const Y=g.get(E)||0;g.set(E,Y+S),h+=S}}),0===h&&(Number(f.taxCharges)>0||Number(f.taxAmount)>0))){const u=Number(f.taxCharges)||Number(f.taxAmount);g.set("Tax",u),h=u,l.set("Tax",(l.get("Tax")||0)+u)}if(!O&&p.cartPrice&&p.cartPrice.cartPrice&&(p.cartPrice.cartPrice.forEach(u=>{if("RECURRING"===u.priceType||"BUY"===u.priceType){const E=u.totalTaxValue||u.priceWithTax?.totalTaxValue;E&&parseFloat(E.value||"0")>0&&(A=!0)}}),p.cartPrice.cartPrice.forEach(u=>{if("RECURRING"===u.priceType||"BUY"===u.priceType){const E=u.totalTaxValue||u.priceWithTax?.totalTaxValue;if(E&&parseFloat(E.value||"0")>0)if(u.taxes&&Array.isArray(u.taxes))u.taxes.forEach(S=>{const D=S.name||"",Y=parseFloat(S.value||"0");if(D&&Y>0){const w=l.get(D)||0;l.set(D,w+Y);const X=g.get(D)||0;g.set(D,X+Y),h+=Y}});else{const S=parseFloat(E.value||"0"),D=E.name||"Tax",Y=l.get(D)||0;l.set(D,Y+S),g.set(D,S),h+=S}else!A&&u.taxes&&Array.isArray(u.taxes)&&u.taxes.forEach(S=>{const D=S.name||"",Y=parseFloat(S.value||"0");if(D&&Y>0){const w=l.get(D)||0;l.set(D,w+Y);const X=g.get(D)||0;g.set(D,X+Y),h+=Y}})}})),g.size>0){const u=this.getEntryTaxes(p,!1,void 0,n);c&&x.some(Y=>{const w=Y.code?Y.code.toLowerCase():"";return"prepaid"===w||w.includes("prepago")});let S=[];u&&null!=u.monthlyTaxDetails&&Array.isArray(u.monthlyTaxDetails)&&u.monthlyTaxDetails.length>0&&(S=u.monthlyTaxDetails);let D=h;S&&S.length>0&&(D=0,S.forEach(Y=>{const X=parseFloat(String(Y?.formattedValue||Y?.value||Y?.formatted||"0").replace(/[^0-9.-]+/g,"")||"0");!isNaN(X)&&0!==X&&(D+=X)})),this.lineSpecificTaxes.push({lineNumber:_,taxes:g,total:D,entry:p,taxDetails:S})}}}),this.lineSpecificTaxes.forEach(p=>{const r=p.entry,x=a.filter(d=>{const T=d.product?.categories||[],f=((T.length?T[T.length-1]:{}).code||"").toLowerCase(),O="device"===f||"devices"===f||"smartphones"===f,g=d.parentEntryNumber==r.entryNumber||d.parentEntryNumber===String(r.entryNumber);return O&&g}).map(d=>d.entryNumber);a.filter(d=>{const T=this.isAddonEntry(d),y=d.parentEntryNumber==r.entryNumber||d.parentEntryNumber===String(r.entryNumber),f=x.includes(Number(d.parentEntryNumber))||x.includes(d.parentEntryNumber);return T&&(y||f)}).forEach(d=>{const T=this.getEntryTaxes(d,!1,void 0,n);if(T.monthlyTaxDetails&&T.monthlyTaxDetails.length>0){const f=p.taxDetails||[];T.monthlyTaxDetails.forEach(O=>{const g=parseFloat(String(O?.formattedValue||O?.value||O?.formatted||"0").replace(/[^0-9.-]+/g,"")||"0");if(!g||isNaN(g))return;const h=this.getTranslatedTaxName(O.name||""),A=f.find(u=>this.getTranslatedTaxName(u.name||"")===h);if(A){const u=String(A.formattedValue??A.value??"0").replace(/[^0-9.-]+/g,"")||"0",S=(parseFloat(u)||0)+g;A.value=S,A.formattedValue=`$${S.toFixed(2)}`}else f.push({name:O.name,value:g,formattedValue:O.formattedValue||`$${g.toFixed(2)}`})}),p.taxDetails=f}const y=this.parsePriceString(T.monthlyTax||"0");y>0&&(p.total=(p.total||0)+y)})}),this.lineSpecificTaxes.length>0){m=0;let p=!1;this.lineSpecificTaxes.forEach(r=>{if(r.taxDetails&&Array.isArray(r.taxDetails)&&r.taxDetails.length>0){p=!0;const x=[];let R=0;r.taxDetails.forEach(d=>{const y=parseFloat(String(d?.formattedValue||d?.value||d?.formatted||"0").replace(/[^0-9.-]+/g,"")||"0");if(d&&(d.formattedValue||d.value||d.formatted)&&!isNaN(y)&&0!==y){let f=d.name||"Tax";if(d.name){const O=d.name.toLowerCase().trim();O.includes("state")||O.includes("estatal")?f=this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":O.includes("municipal")?f=this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":O.includes("pr universal")||O.includes("fondo")||O.includes("servicio universal de puerto rico")?f=this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":O.includes("federal")?f=this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":(O.includes("emergency")||O.includes("emergencia"))&&(f=this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee")}f=f.trim(),f&&f.length>0&&(this.preventTaxDuplicates?-1===x.findIndex(g=>g.name===f)&&x.push({name:f,value:y}):x.push({name:f,value:y}))}}),x.forEach(d=>{R+=d.value}),m+=R}}
1),p||this.lineSpecificTaxes.forEach(r=>{r.total&&r.total>0&&(m+=r.total)})}else l.size>0&&l.forEach(p=>{m+=p});P>0&&0===this.lineSpecificTaxes.length&&(m=P),this.storedTotalPlanTaxAmount=m;const v=`$${m.toFixed(2)}`;this.isZeroPrice(v)||i.push({name:this.getPlanTaxesAndFeesLabel(),price:v,itemType:"tax",showTooltip:!0}),c&&a.forEach(p=>{if(((p.product||{}).categories||[]).some(d=>{const T=d.code?d.code.toLowerCase():"";return"prepaid"===T||T.includes("prepago")})){const d=this.getActivationFeeFromEntry(p);if(d&&this.parsePriceString(d)>0){const y=this.getTranslatedData("SHOPPING_CART_SUMMARY.ACTIVATION_FEES.ACTIVATION_FEE_NAME")||"One-Time Activation Fee";i.push({name:y,price:d,itemType:"other"})}}}),a.forEach(p=>{if(!(p?.product?.categories||[]).some(y=>"upgrade_addons"===(y?.code||"").toLowerCase()))return;const R=Array.isArray(p.cartPrice?.cartPrice)?p.cartPrice.cartPrice.find(y=>"RECURRING"===y?.priceType):null,d=R?.dutyFreeAmount?.formattedValue||R?.taxIncludedAmount?.formattedValue||p.basePrice?.formattedValue||p.totalPrice?.formattedValue||"";if(!d||this.parsePriceString(d)<=0)return;const T=this.getTranslatedData("SHOPPING_CART_SUMMARY.ORDER_SUMMARY.QUICK_UPGRADE_LABEL")||p.product?.name||"Quick Upgrade";i.push({name:T,price:d,itemType:"quickUpgrade"})}),a.forEach(p=>{if(!(p?.product?.categories||[]).some(y=>"insurance_addons"===(y?.code||"").toLowerCase()))return;const R=Array.isArray(p.cartPrice?.cartPrice)?p.cartPrice.cartPrice.find(y=>"RECURRING"===y?.priceType):null,d=R?.dutyFreeAmount?.formattedValue||R?.taxIncludedAmount?.formattedValue||p.basePrice?.formattedValue||p.totalPrice?.formattedValue||"";!d||this.parsePriceString(d)<=0||i.push({name:p.product?.name||"Insurance",price:d,itemType:"insurance"})});const C=this.extractDiscounts(a,"recurring",n);C.length>0&&i.push(...C);const N={device:0,quickUpgrade:1,insurance:2,plan:3,tax:4,discount:4.5,other:5};i.sort((p,r)=>(N[p.itemType]??5)-(N[r.itemType]??5)),this.paymentData.dueMonthly.items=i;let M=this.zeroPriceText;if(c){const p=i.reduce((r,x)=>r+this.parsePriceString(x.price),0);M=`$${Math.max(0,p).toFixed(2)}`}else{const p=n.totalRecurringPrice;p&&p.formattedValue&&p.formattedValue!==this.zeroPriceText?M=p.formattedValue:s.length>0&&(M=s[0]?.priceWithTax?.value?.formattedValue||this.zeroPriceText)}const L=String(M||""),b=(Number(L.replace(/[^0-9.-]+/g,""))||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});this.paymentData.dueMonthly.amount=`$${b}`,M&&M!==this.zeroPriceText&&this.paymentSummaryService.setDueMonthlyPrice(M),this.paymentData.originalPricing&&(this.buildOriginalPricingFromLocalStorage("monthly")||this.buildOriginalPricingSection(i,"monthly"))}processDueToday(a,e,n,i,s,c){const m=[],l=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO,_=a?.totalPriceList?.filter(r=>r.priceType===F.QR8.AMOUNT_DUE_TODAY)||[];let P=0;const v=[];if(e.forEach(r=>{const R=(r.product||{}).categories||[],d=R.some(y=>{const f=y.code?y.code.toLowerCase():"";return"postpaid"===f||"prepaid"===f||"mobile"===f||f.includes("plan")||f.includes("pospago")||f.includes("prepago")}),T=R.some(y=>{const f=y.code?y.code.toLowerCase():"";return"prepaid"===f||f.includes("prepago")});if(d){const y=this.getEntryTaxes(r,!1,void 0,this.cartDetails);let f=0,O=T;T?f=parseFloat(y.monthlyTax.replace(/[^0-9.-]+/g,"")||"0"):(f=parseFloat(y.todayTax.replace(/[^0-9.-]+/g,"")||"0"),O=!1);const g=e.filter(u=>{const E=u.product?.categories||[],D=((E.length?E[E.length-1]:{}).code||"").toLowerCase(),Y="device"===D||"devices"===D||"smartphones"===D||"smartwatches"===D||"tablets"===D,w=u.parentEntryNumber==r.entryNumber||u.parentEntryNumber===String(r.entryNumber);return Y&&w}).map(u=>u.entryNumber),h=e.filter(u=>{const E=this.isAddonEntry(u),S=u.parentEntryNumber==r.entryNumber||u.parentEntryNumber===String(r.entryNumber),D=g.includes(Number(u.parentEntryNumber))||g.includes(u.parentEntryNumber);return E&&(S||D)});let A=O?y.monthlyTaxDetails||[]:y.todayTaxDetails||[];h.forEach(u=>{const E=this.getEntryTaxes(u,!1,void 0,this.cartDetails);
1let S=parseFloat(E.todayTax.replace(/[^0-9.-]+/g,"")||"0"),D=!1;if(0===S&&u.cartPrice?.cartPrice){const Y=u.cartPrice.cartPrice.find(w=>"ONETIME"===w.priceType||"AMOUNT_DUE_TODAY"===w.priceType);if(Y){const w=(Y.taxIncludedAmount?.formattedValue||Y.taxIncludedAmount?.value)??Y.priceWithTax?.value?.formattedValue??"0",X=(Y.dutyFreeAmount?.formattedValue||Y.dutyFreeAmount?.value)??Y.priceWithOutTax?.value?.formattedValue??"0",rt=parseFloat(String(w).replace(/[^0-9.-]+/g,"")||"0"),at=parseFloat(String(X).replace(/[^0-9.-]+/g,"")||"0");rt>0&&rt>at&&(S=rt-at,A=[...A,{name:"Tax",value:S,formattedValue:`$${S.toFixed(2)}`,priceType:"ONETIME"}],D=!0)}}f+=S,D||(E.todayTaxDetails&&E.todayTaxDetails.length>0?A=[...A,...E.todayTaxDetails]:S>0&&E.monthlyTaxDetails&&E.monthlyTaxDetails.length>0&&(A=[...A,...E.monthlyTaxDetails]))}),P+=f,v.push({lineNumber:v.length+1,taxAmount:f,entry:r,taxDetails:A})}}),v.length>0){const r=`$${P.toFixed(2)}`;if(!this.isZeroPrice(r)){const x=this.buildAggregatedTooltipDataToday(v,e);m.push({name:this.getPlanTaxesAndFeesLabel(),price:r,isTaxLink:!0,showTooltip:!0,tooltipData:x})}}e.forEach(r=>{const x=r.product||{};if((x.categories||[]).some(T=>{const y=T.code?T.code.toLowerCase():"";return"prepaid"===y||y.includes("prepago")})&&l){const T=x.name||"Plan";let y=r.totalPrice?.formattedValue||r.basePrice?.formattedValue||this.zeroPriceText;const f=this.getUpfrontPeriodFromLocalStorage();f>1&&(y=`$${(parseFloat(y.replace(/[^0-9.-]+/g,"")||"0")*f).toFixed(2)}`),m.push({name:T,price:y})}});let C=!1,N=!1;e.forEach((r,x)=>{const R=r.product||{},T=(R.categories||[]).some(g=>{const h=g.code?g.code.toLowerCase():"";return"device"===h||"devices"===h||"smartphones"===h||"smartwatches"===h||"tablets"===h}),y=r.installmentMonthValue,f="FULL"===y||"ONE_TIME"===y,O=T&&r.promoApplied&&(0===r.totalPrice?.value||"$0.00"===r.totalPrice?.formattedValue||r.totalPrice?.formattedValue===this.zeroPriceText);if(T&&f&&r.basePrice){const g=R.baseProductName||R.name||this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_NAME");let h=this.zeroPriceText,A=!1;if(O)h=r.netPrice?.formattedValue||r.basePrice?.formattedValue||r.fullPrice?.formattedValue||this.zeroPriceText;else{if(this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO){const u=r?.planType;"NEW_NUMBER"===u&&r.depositPriceWithNewNumber?(h=`$${r.depositPriceWithNewNumber}`,A=!0):"PORTABILITY"===u&&(r.depositPriceWithPortedNumber||r.depositPriceWithNewNumber)?(h=`$${r.depositPriceWithPortedNumber||r.depositPriceWithNewNumber}`,A=!0):h=r.totalPrice?.formattedValue||r.basePrice.formattedValue||this.zeroPriceText}else h=r.totalPrice?.formattedValue||r.basePrice.formattedValue||this.zeroPriceText;if(this.parsePriceString(h)<=0){const u=this.getItemDueTodayFromCartItems(r?.entryNumber,c,"DEVICE");u>0&&(h=`$${u.toFixed(2)}`)}}m.push({name:g,price:h}),C=!0,N=!0}else if(T&&!f){const g=R.baseProductName||R.name||this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_NAME"),h=this.getTranslatedData("PAYMENT_SUMMARY.DOWNPAYMENT_TEXT");let A=this.zeroPriceText,u=!1;if(this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO){const E=r?.planType;if("NEW_NUMBER"===E&&r.depositPriceWithNewNumber?(A=`$${r.depositPriceWithNewNumber}`,u=!0):"PORTABILITY"===E&&(r.depositPriceWithPortedNumber||r.depositPriceWithNewNumber)&&(A=`$${r.depositPriceWithPortedNumber||r.depositPriceWithNewNumber}`,u=!0),this.parsePriceString(A)<=0){const S=this.getItemDueTodayFromCartItems(r?.entryNumber,c,"DEVICE");S>0&&(A=`$${S.toFixed(2)}`)}}m.push({name:`${g} - ${h}`,price:A}),C=!0,N=!0}});const M=e.some(r=>((r.product||{}).categories||[]).some(d=>{const T=d.code?d.code.toLowerCase():"";return"device"===T||"devices"===T||"smartphones"===T||"smartwatches"===T||"tablets"===T}));if(!C&&M){const r=this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_NAME"),x=this.getTranslatedData("PAYMENT_SUMMARY.DOWNPAYMENT_TEXT");m.push({name:`${r} - ${x}`,price:this.zeroPriceText})}!N&&M&&m.push({name:this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_NAME"),price:this.zeroPriceText});let L=0,U="11.5";const b=new Set;e.forEach(r=>{((r.product||{}).categories||[]).some(T=>{const y=T.code?T.code.toLowerCase():"";return"postpaid"===y||"prepaid"===y||"mobile"===y||y.includes("plan")||y.includes("pospago")||y.includes("prepago")})&&b.add(r.entryNumber)}),e.forEach(r=>{if(((r.product||{}).categories||[]).some(T=>{const y=T.code?T.code.toLowerCase():"";return"device"===y||"devices"===y||"smartphones"===y||"smartwatches"===y||"tablets"===y})){const T=r.parentEntryNumber;if(b.has(parseInt(T))||b.has(T)){const O=this.getEntryTaxes(r,!0,r.installmentMonthValue,this.cartDetails),g=parseFloat(O.todayTax.replace(/[^0-9.
1-]+/g,"")||"0");L+=g,O.todayTaxDetails&&Array.isArray(O.todayTaxDetails)&&O.todayTaxDetails.forEach(h=>{h.name&&h.name.toLowerCase().includes("ivu")&&(U="11.5")})}}}),this.deviceTaxAmount=`$${L.toFixed(2)}`,this.deviceTaxPercentage=U,this.paymentData.deviceTaxTooltipData&&L>0&&(this.paymentData.deviceTaxTooltipData.taxAmount=this.deviceTaxAmount,this.paymentData.deviceTaxTooltipData.taxPercentage=U),L>0&&!this.isZeroPrice(this.deviceTaxAmount)&&m.push({name:this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAXES"),price:this.deviceTaxAmount,isTaxLink:!0,itemType:"tax"});const p=this.extractDiscounts(e,"onetime",c);if(p.length>0&&m.push(...p),l&&e.forEach(r=>{const x=r.product||{},R=x.categories||[],d=R.some(f=>{const O=f.code?f.code.toLowerCase():"";return O.includes("accessory")||O.includes("accessories")}),T=R.some(f=>{const O=f.code?f.code.toLowerCase():"";return O.includes("insurance")||O.includes("seguro")}),y=R.some(f=>"upgrade_addons"===(f?.code||"").toLowerCase());if(d&&!T&&!y){const f=x.name||"Accessory";let O=this.zeroPriceText;if(r.cartPrice&&r.cartPrice.cartPrice){const g=r.cartPrice.cartPrice.find(h=>"ONETIME"===h.priceType||"AMOUNT_DUE_TODAY"===h.priceType);g&&(O=g.priceWithTax?.value?.formattedValue||g.priceWithOutTax?.value?.formattedValue||this.zeroPriceText)}O===this.zeroPriceText&&r.totalPrice&&(O=r.totalPrice.formattedValue||this.zeroPriceText),O!==this.zeroPriceText&&this.parsePriceString(O)>0&&m.push({name:f,price:O})}}),this.paymentData.dueToday.items=m,l){const r=m.reduce((x,R)=>x+parseFloat(R.price.replace(/[^0-9.-]+/g,"")||"0"),0);this.paymentData.dueToday.amount=`$${r.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}else if(_.length>0){const x=_[0]?.priceWithTax?.value?.formattedValue||null;if(x&&x!==this.zeroPriceText){const d=(Number(x.replace(/[^0-9.-]+/g,""))||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});this.paymentData.dueToday.amount=`$${d}`}else this.paymentData.dueToday.amount=this.zeroPriceText}else this.paymentData.dueToday.amount=this.zeroPriceText;this.paymentData.dueToday.amount&&this.paymentSummaryService.setDueTodayPrice(this.paymentData.dueToday.amount),this.paymentData.originalPricing&&this.buildOriginalPricingSection(m,"today")}getItemDueTodayFromCartItems(a,e,n){const i=e?.items||[];if(!Array.isArray(i)||!i.length||null==a)return 0;const s=i.find(P=>P?.id===a);if(!s)return 0;const c=String(s?.itemType||s?.bundleItemType||"").toUpperCase();if(n&&c&&c!==n)return 0;const m=s?.pricing||{},l=m?.preTaxDueToday??("PLAN"===c?m?.planUpfrontAmount:m?.deviceUpfrontAmount)??0;let _="number"==typeof l?l:this.parsePriceToNumber(String(l))||0;if(!_){const P="PLAN"===c?m?.planUpfrontAmount:m?.deviceUpfrontAmount;_=("number"==typeof P?P:this.parsePriceToNumber(String(P??"")))||this.parsePriceToNumber(String(m?.dueTodayValue??""))||0}return _||0}buildOriginalPricingSection(a,e){if(!this.paymentData.originalPricing)return;const n=this.getPlanTaxesAndFeesLabel(),i=this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_TAXES"),s=a.filter(c=>c.name!==n&&c.name!==i&&!c.isTaxLink);if("monthly"===e){this.paymentData.originalPricing.dueMonthly.items=[...s];const c=this.sumLineItemPrices(s),l=(Number(String(c).replace(/[^0-9.-]+/g,""))||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});this.paymentData.originalPricing.dueMonthly.amount=`$${l}`}else{let m;if(this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO){const v=this.getTranslatedData("PAYMENT_SUMMARY.DOWNPAYMENT_TEXT");m=s.map(C=>{const N=(C.name||"").toLowerCase(),M=(v||"downpayment").toLowerCase();return N.includes(M)?{...C,price:this.zeroPriceText}:{...C}})}else m=[...s];this.paymentData.originalPricing.dueToday.items=m;const l=this.sumLineItemPrices(m),P=(Number(String(l).replace(/[^0-9.-]+/g,""))||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});this.paymentData.originalPricing.dueToday.amount=`$${P}`}}buildOriginalPricingFromLocalStorage(a){if(!this.paymentData.originalPricing||"monthly"!==a)return!1;try{const e=localStorage.getItem("originalPrice");if(!e)return!1;const n=JSON.parse(e);if(!Array.isArray(n)||0===n.length)return!1;const i=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO,s=[];if(n.forEach(_=>{const P=_.product||{},v=P.categories||[],C=this.getEntryCategoryCodeForDisplay(_),N=this.isEntryPlanLine(_),M=this.isEntryDeviceLine(_,this.cartDetails),L=i&&v.some(U=>{const b=U.code?U.code.toLowerCase():"";return"prepaid"===b||b.includes("prepago")});if(N){const U=P.name||"Plan",b=this.resolvePlanEntryCurrentPrice(_),p=this.getPlanPriceWithoutTax(_,b),r=L?this.getPrepaidBasePlanPrice(_,p):i?this.getLcprPostpaidMonthlyPlanLinePrice(_,p,this.cartDetails):this.getWithoutAutopayPlanPrice(_,p,this.cartDetails);s.push({name:U,price:r,itemType:"plan",categoryCode:C})}if(M&&_.installmentMonthValue&&"FULL"!==_.installmentMonthValue&&"ONE_TIME"!==_.installmentMonthValue){const U=P.name||this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_NAME");let b;const p=i&&Array.isArray(this.cartDetails?.items)?this.cartDetails.items:[],r=p.length>0?p.find(T=>!(T.id!==_.entryNumber&&T.id!==Number(_.entryNumber)||"DEVICE"!==(T.itemType||"").toUpperCase()&&"DEVICE"!==(T.bundleItemType||"").toUpperCase())):void 0,x=r?.pricing?.monthlyDeviceInstallment;if(i&&r){const T=null==x||"number"!=typeof x&&""===String(x).trim()?0:"number"==typeof x?x:this.parsePriceToNumber(String(x))??0;b=Number.isFinite(T)?`$${Number(T).toFixed(2)}`:this.zeroPriceText}else b=i?_.totalPrice?.formattedValue||_.basePrice?.formattedValue||this.zeroPriceText:`$${(((_.fullPrice?.value||0)-(_.basePrice?.value||0))/(parseInt(_.installmentMonthValue)||1)).toFixed(2)}`;const R=parseInt(_.installmentMonthValue)||1,d=this.getTranslatedData("PAYMENT_SUMMARY.INSTALLMENTS_TEXT").replace("[X]",R.toString()).replace("{{months}}",R.toString());s.push({name:`${U} - ${d}`,price:b,itemType:"device",categoryCode:C})}}),0===s.length)return!1;this.paymentData.originalPricing.dueMonthly.items=s;const c=this.sumLineItemPrices(s),l=(Number(String(c).replace(/[^0-9.
1-]+/g,""))||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return this.paymentData.originalPricing.dueMonthly.amount=`$${l}`,!0}catch{return!1}}parsePriceToNumber(a){if(!a)return 0;const e=a.replace(/[^0-9.-]/g,"");return parseFloat(e)||0}sumLineItemPrices(a){const e=(a||[]).reduce((n,i)=>n+this.parsePriceToNumber(i.price||""),0);return`$${Math.max(0,e).toFixed(2)}`}getStoredOriginalTaxes(){try{const a=localStorage.getItem(F.ZM_.ORIGINAL_PAYMENT_TAXES);if(!a)return null;const e=JSON.parse(a);if(e&&"number"==typeof e.planTaxMonthly&&"number"==typeof e.planTaxToday&&"number"==typeof e.deviceTax)return e}catch{}return null}extractDiscounts(a,e,n){const i=[],s=n??this.cartDetails;this.marketConfigurationService.getBrandMarket();let l=0;if(a.forEach(_=>{const v=(_.product||{}).categories||[],C=this.isEntryPlanLine(_),N=v.some(p=>{const r=(p.code||"").toLowerCase();return"prepaid"===r||r.includes("prepago")}),M=this.resolveAutomaticPayOptionsFromCartItems(_,s)||String(_?.automaticPayOptions||"").trim(),L="false"===localStorage.getItem("paymentTncAutopayCheckbox");if(M&&"WITHOUT_AUTOPAY"!==M&&!L&&("recurring"===e&&C||"onetime"===e&&N)){const p=this.getAutopayDiscountAmountForEntry(_,M);p>0&&(l+=p)}(_.appliedProductPromotions||[]).forEach(p=>{const r=p.description||p.promotion?.description||"",x=p.consumedBudget?.formattedValue||"";if(x&&r){let d="";d=r.toLowerCase().includes("multiline")||r.toLowerCase().includes("multil\xednea")?this.getTranslatedData("PAYMENT_SUMMARY.MULTILINE_DISCOUNT"):this.getTranslatedData("PAYMENT_SUMMARY.DISCOUNT_CAMPAIGN").replace("[Campaign name]",r).replace("{{campaign}}",r),d&&i.push({name:d,price:`-${x}`,isDiscount:!0})}})}),l>0){const _=this.getTranslatedData("PAYMENT_SUMMARY.AUTOPAY_DISCOUNT");i.unshift({name:_,price:`-$${l.toFixed(2)}`,isDiscount:!0})}return i.push(...this.extractLcprCartItemPromotionDiscountRows(s,e,a)),i}getAutopayDiscountAmount(a){return this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO?"AUTOPAY_CC"===a?5:"AUTOPAY"===a||"AUTOPAY_ACH"===a?10:0:0}collectLcprCartItems(a){const e=[],n=new Set,i=s=>{const c=s?.items;if(Array.isArray(c))for(const m of c){const l=`${m?.id??""}-${m?.productId??""}`;n.has(l)||(n.add(l),e.push(m))}};return i(a),i(a?.data),i(this.cartDetails),i(this.cartDetails?.data),e}resolveAutomaticPayOptionsFromCartItems(a,e){const n=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO,i=String(a?.automaticPayOptions??"").trim();if(!n||null==a?.entryNumber)return i;const s=["AUTOPAY_CC","AUTOPAY","AUTOPAY_ACH","WITHOUT_AUTOPAY"];if(i&&s.includes(i))return i;const c=this.collectLcprCartItems(e),m=Number(a.entryNumber),l=String(a?.product?.code??"").trim(),_=c.find(v=>Number(v.id)===m&&("PLAN"===String(v.itemType||"").toUpperCase()||"PLAN"===String(v.bundleItemType||"").toUpperCase()))||c.find(v=>("PLAN"===String(v.itemType||"").toUpperCase()||"PLAN"===String(v.bundleItemType||"").toUpperCase())&&l&&String(v.productId||"").trim()===l),P=String(_?.pricing?.priceType??"").trim().toUpperCase();return P&&s.includes(P)?P:i}appendLcprDeviceMonthlyFromCartItems(a,e){const n=this.collectLcprCartItems(a);for(const i of n){if("DEVICE"!==String(i.itemType||"").toUpperCase()&&"DEVICE"!==String(i.bundleItemType||"").toUpperCase())continue;const c=i.pricing?.monthlyDeviceInstallment,m="number"==typeof c?c:this.parsePriceToNumber(String(c??""));if(!Number.isFinite(m)||m<=0||e.some(C=>"device"===C.itemType&&Math.abs(this.parsePriceString(String(C.price??""))-m)<.005))continue;const _=Number(i.pricing?.instalments??i.pricing?.installments??i.pricing?.installmentMonths??0)||36,P=i.productName||this.getTranslatedData("PAYMENT_SUMMARY.DEVICE_NAME"),v=this.getTranslatedData("PAYMENT_SUMMARY.INSTALLMENTS_TEXT").replace("[X]",String(_)).replace("{{months}}",String(_));e.push({name:`${P} - ${v}`,price:`$${m.toFixed(2)}`,itemType:"device",categoryCode:"device"})}}loadAutopayDiscountProductData(a){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO||this.autopayDiscountLoadRequested)return;const n=new Set;a.forEach(s=>{if(!this.isPlanCartEntry(s))return;const c=(s?.product?.code??s?.product?.product_code??"").trim();c&&n.add(c)});const i=Array.from(n).join(",");i&&(this.autopayDiscountLoadRequested=!0,this.orderSummaryService.getPrepaidAutopayDiscountFromProductApi(i).pipe((0,yt.s)(1),(0,Q.s)(this)).subscribe(({discounts:s,products:c})=>{Object.keys(s).length>0&&(this.autopayDiscountByProductCode=s,this.productApiByCode={...this.productApiByCode,...c}),this.cartDetails&&this.processCartData(this.cartDetails)}))}isPlanCartEntry(a){const e=a?.product?.categories;if(!Array.isArray(e)||0===e.length)return!1;const n=String(e[e.length-1]?.code||"").toLowerCase();return"postpaid"===n||"prepaid"===n||n.includes("postpaid")||n.includes("prepaid")}getPlanLineCount(){const a=this.cartDetails?.entries;if(!Array.isArray(a))return 1;const e=a.filter(n=>this.isPlanCartEntry(n)).length;return e>0?e:1}getAutopayDiscountAmountForEntry(a,e){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO)return 0;const i=e??a?.automaticPayOptions??"";if("WITHOUT_AUTOPAY"===i||!i)return 0;const c=(a?.product?.categories||[]).some(_=>String(_?.code||"").toLowerCase().includes("prepaid")),m=c?"AUTOPAY_CC":i,l=a?.product?.code??a?.product?.product_code??"";if(l&&this.productApiByCode[l]){const _=this.productApiByCode[l],P=this.getPlanLineCount();return c?it.g$.getAutopayDiscountFromProduct(_,P,m):it.g$.getPostpaidAutopayDiscountAmount(_,P,m,this.getAutopayDiscountAmount(i))}return l&&void 0!==this.autopayDiscountByProductCode[l]&&c?this.autopayDiscountByProductCode[l]:c?this.getAutopayDiscountAmount(i):0}getWithoutAutopayPlanPrice(a,e,n){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO)return e;const c=this.resolveAutomaticPayOptionsFromCartItems(a,n??this.cartDetails)||String(a?.automaticPayOptions||"").trim(),m=this.getAutopayDiscountAmount(c);if(0===m)return e;const l=this.parsePriceString(e);return 0===l?e:`$${(l+m).toFixed(2)}`}getPrepaidBasePlanPrice(a,e){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO)return e;const i=this.getAutopayDiscountAmountForEntry(a,"AUTOPAY_CC");if(0===i)return e;const s=this.getRecurringPriceFromEntry(a),c=s>0?s:this.parsePriceString(e);return 0===c?e:`$${(c+i).toFixed(2)}`}getRecurringPriceFromEntry(a){const e=a?.cartPrice?.cartPrice;if(!Array.isArray(e))return 0;const n=e.find(c=>"RECURRING"===c?.priceType);if(!n)return 0;
1const i=n.dutyFreeAmount?.formattedValue||n.priceWithOutTax?.value?.formattedValue;if(i)return this.parsePriceString(i);const s=n.dutyFreeAmount?.value??n.priceWithOutTax?.value?.value;return null!=s&&""!==s&&Number(s)||0}parsePriceString(a){if(!a)return 0;const e=a.replace(/[^0-9.-]+/g,"");return parseFloat(e)||0}getEntryCategoryCodeForDisplay(a){const e=a?.product?.categories||[],i=e.find(s=>s.primary)?.code||(e.length?e[e.length-1]?.code:"");return i?String(i).toLowerCase():""}isEntryPlanLine(a){return!this.isEntryDeviceLine(a,void 0)&&(a?.product?.categories||[]).some(n=>{const i=(n.code||"").toLowerCase();return"postpaid"===i||"prepaid"===i||"mobile"===i||i.includes("plan")||i.includes("pospago")||i.includes("prepago")||i.includes("fmc")})}isEntryDeviceLine(a,e){if((a?.product?.categories||[]).some(m=>{const l=(m.code||"").toLowerCase();return"device"===l||"devices"===l||"smartphones"===l||l.includes("smartphone")}))return!0;const i=a?.installmentMonthValue;if(!i||"FULL"===String(i).toUpperCase()||"ONE_TIME"===String(i).toUpperCase())return!1;const s=this.collectLcprCartItems(e??this.cartDetails),c=Number(a?.entryNumber);return s.some(m=>Number(m.id)===c&&"DEVICE"===String(m.itemType||m.bundleItemType||"").toUpperCase())}getLcprPostpaidPlanPriceAfterAdjustments(a,e){let n=e;const i=this.getActivationFeeFromEntry(a);if(i){const s=this.parsePriceString(i),c=this.parsePriceString(n);s>0&&c>s&&(n=`$${(c-s).toFixed(2)}`)}return n}getLcprPostpaidMonthlyPlanLinePrice(a,e,n){const i=this.getLcprPostpaidPlanPriceAfterAdjustments(a,e),s=this.resolveAutomaticPayOptionsFromCartItems(a,n)||String(a?.automaticPayOptions||"").trim();return this.getAutopayDiscountAmount(s)>0?this.getWithoutAutopayPlanPrice(a,i,n):i}extractLcprCartItemPromotionDiscountRows(a,e,n){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO||"recurring"!==e)return[];const i=this.collectLcprCartItems(a??this.cartDetails),s=[],c=this.getTranslatedData("SHOPPING_CART_SUMMARY.ORDER_SUMMARY.ON_US_TEXT")||"On us",m=l=>{if("DEVICE"!==String(l.itemType||l.bundleItemType||"").toUpperCase()||!l.promotionApplied)return null;const _=Number(l.discountAmount);if(Number.isFinite(_)&&_>0)return _;const P=String(l.promotionName||"").toLowerCase(),v=P.includes("on_us")||P.includes("onus"),C=l.pricing?.monthlyDeviceInstallment??l.pricing?.monthlyDeviceInstallmentValue;let N="number"==typeof C?C:Number(C);if((!Number.isFinite(N)||N<=0)&&(N=this.parsePriceString(String(C??""))),!Number.isFinite(N)||N<=0)return null;const M=Number(l.finalPrice);return v||0===M?N:null};for(const l of i){const _=m(l);null!=_&&_>0&&s.push({name:c,price:`-$${_.toFixed(2)}`,isDiscount:!0})}if(0===s.length&&n?.length)for(const l of n){if(!this.isEntryDeviceLine(l,a??void 0)||!l.promoApplied)continue;const _=l.installmentMonthValue;if(!_||"FULL"===String(_).toUpperCase()||"ONE_TIME"===String(_).toUpperCase()||0!==Number(l.totalPrice?.value)&&"$0.00"!==l.totalPrice?.formattedValue&&l.totalPrice?.formattedValue!==this.zeroPriceText)continue;const C=Array.isArray(l.cartPrice?.cartPrice)?l.cartPrice.cartPrice.find(M=>"RECURRING"===M?.priceType):null;let N=Number(C?.dutyFreeAmount?.value??C?.taxIncludedAmount?.value);if((!Number.isFinite(N)||N<=0)&&(N=this.parsePriceString(String(C?.dutyFreeAmount?.formattedValue||C?.taxIncludedAmount?.formattedValue||""))),N>0){s.push({name:c,price:`-$${N.toFixed(2)}`,isDiscount:!0});break}}return s}getActivationFeeFromEntry(a){const e=this.getTranslatedData("SHOPPING_CART_SUMMARY.ACTIVATION_FEES.ACTIVATION_FEE_NAME")||"";if(a?.product?.llaFees&&Array.isArray(a.product.llaFees)){const n=a.product.llaFees.find(i=>i.name===e);if(n)return n.formattedValue||(n.value?`$${parseFloat(n.value).toFixed(2)}`:"")}if(a?.cartPrice?.fees){const n=a.cartPrice.fees.find(i=>i.name===e);if(n)return n.formattedValue||""}if(a?.cartPrice?.cartPrice&&Array.isArray(a.cartPrice.cartPrice))for(const n of a.cartPrice.cartPrice)if(n?.fees){const i=n.fees.find(s=>s.name===e);if(i)return i.formattedValue||""}return""}resolvePlanEntryCurrentPrice(a){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO)return a.totalPrice?.formattedValue||a.basePrice?.formattedValue||this.zeroPriceText;const n=(Array.isArray(a?.cartPrice?.cartPrice)?a.cartPrice.cartPrice.find(i=>
1"RECURRING"===i?.priceType):null)?.dutyFreeAmount;if(null!=n?.value&&""!==n.value){const i=Number(n.value);if(Number.isFinite(i))return`$${i.toFixed(2)}`}if(n?.formattedValue)return n.formattedValue;if(null!=a?.basePrice?.value&&""!==a.basePrice.value){const i=Number(a.basePrice.value);if(Number.isFinite(i))return`$${i.toFixed(2)}`}if(null!=a?.totalPrice?.value&&""!==a.totalPrice.value){const i=Number(a.totalPrice.value);if(Number.isFinite(i))return`$${i.toFixed(2)}`}return a.totalPrice?.formattedValue||a.basePrice?.formattedValue||this.zeroPriceText}getPlanPriceWithoutTax(a,e){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO)return e;let i=0;if(a.cartPrice&&a.cartPrice.cartPrice&&a.cartPrice.cartPrice.forEach(m=>{if("RECURRING"===m.priceType){const l=m.totalTaxValue||m.priceWithTax?.totalTaxValue;l&&parseFloat(l.value||"0")>0?i+=parseFloat(l.value||"0"):m.taxes&&Array.isArray(m.taxes)&&m.taxes.forEach(_=>{const P=parseFloat(_.value||"0");P>0&&(i+=P)})}}),0===i)return e;const c=this.parsePriceString(e)-i;return c<0?e:`$${c.toFixed(2)}`}buildPricingDetails(a,e,n=[]){const s=[],c={description:this.getTranslatedData("PAYMENT_SUMMARY.PLAN"),price:"",secEl:[]},m=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO;if(n.forEach(b=>{const p=b.product||{},r=p.categories||[],x=this.isEntryPlanLine(b),R=m&&r.some(d=>{const T=d.code?d.code.toLowerCase():"";return"prepaid"===T||T.includes("prepago")});if(x){const d=p.name||"Plan",T=this.resolvePlanEntryCurrentPrice(b),y=this.getPlanPriceWithoutTax(b,T);let f=R?this.getPrepaidBasePlanPrice(b,y):m?this.getLcprPostpaidMonthlyPlanLinePrice(b,y,this.cartDetails):this.getWithoutAutopayPlanPrice(b,y,this.cartDetails);f!==this.zeroPriceText&&c.secEl.push({secItem:d,secPrice:f})}}),s.push(c),this.lineSpecificTaxes.length>0){const b=this.getTaxesLabel(),p=this.getTranslatedData("PAYMENT_SUMMARY.LINE")||"Line";this.lineSpecificTaxes.forEach(r=>{let x=[],R=!1;if(r.taxDetails&&Array.isArray(r.taxDetails)&&r.taxDetails.length>0)x=[...r.taxDetails],R=!0;else if(r.entry){const g=this.getEntryTaxes(r.entry,!1,void 0,this.cartDetails);if(g&&null!=g.monthlyTaxDetails&&Array.isArray(g.monthlyTaxDetails)&&g.monthlyTaxDetails.length>0)x=[...g.monthlyTaxDetails];else if(g&&r.entry?.cartPrice?.cartPrice){const h=[],A=r.entry?.product?.categories?.some(u=>{const E=(u?.code||"").toLowerCase();return"prepaid"===E||E.includes("prepago")});r.entry.cartPrice.cartPrice.forEach(u=>{if(("RECURRING"===u.priceType||"BUY"===u.priceType)&&u.taxes&&Array.isArray(u.taxes)){const E=!A&&u.fees&&Array.isArray(u.fees)&&u.fees.length>0,S=new Set;u.taxes.forEach(D=>{const Y=parseFloat(D.value||D.formattedValue?.replace(/[^0-9.-]+/g,"")||"0");if(Y>0){if(E){const w=this.getTranslatedTaxName(D.name||"");if(S.has(w))return;S.add(w)}h.push({name:D.name||"Tax",value:Y,formattedValue:D.formattedValue||`$${Y.toFixed(2)}`,priceType:u.priceType})}})}}),h.length>0&&(x=[...h])}}if(!R&&r.entry&&Array.isArray(x)){const g=r.entry,h=(n||[]).filter(u=>{const E=u.product?.categories||[],D=((E.length?E[E.length-1]:{}).code||"").toLowerCase(),Y="device"===D||"devices"===D||"smartphones"===D,w=u.parentEntryNumber==g.entryNumber||u.parentEntryNumber===String(g.entryNumber);return Y&&w}).map(u=>u.entryNumber);(n||[]).filter(u=>{const E=this.isAddonEntry(u),S=u.parentEntryNumber==g.entryNumber||u.parentEntryNumber===String(g.entryNumber),D=h.includes(Number(u.parentEntryNumber))||h.includes(u.parentEntryNumber);return E&&(S||D)}).forEach(u=>{const E=this.getEntryTaxes(u,!1,void 0,this.cartDetails);E.monthlyTaxDetails&&E.monthlyTaxDetails.length>0&&E.monthlyTaxDetails.forEach(S=>{const D=parseFloat(String(S?.formattedValue??S?.value??S?.formatted??"0").replace(/[^0-9.-]+/g,"")||"0");if(!D||isNaN(D))return;const Y=this.getTranslatedTaxName(S.name||""),w=x.find(X=>this.getTranslatedTaxName(X.name||"")===Y);if(w){const X=String(w.formattedValue??w.value??"0").replace(/[^0-9.-]+/g,"")||"0",at=(parseFloat(X)||0)+D;w.value=at,w.formattedValue=`$${at.toFixed(2)}`}else x.push({name:S.name,value:D,formattedValue:S.formattedValue||`$${D.toFixed(2)}`})})})}const d=[];let T=0;const y=[];if(Array.isArray(x)&&x.length>
10){if(x.forEach(g=>{const A=parseFloat(String(g?.formattedValue||g?.value||g?.formatted||"0").replace(/[^0-9.-]+/g,"")||"0");if(g&&(g.formattedValue||g.value||g.formatted)&&!isNaN(A)&&0!==A){let u=g.name||"Tax";if(g.name){const E=g.name.toLowerCase().trim();E.includes("state")||E.includes("estatal")?u=this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":E.includes("municipal")?u=this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":E.includes("pr universal")||E.includes("fondo")||E.includes("servicio universal de puerto rico")?u=this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":E.includes("federal")?u=this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":(E.includes("emergency")||E.includes("emergencia"))&&(u=this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee")}if(u=u.trim(),u&&u.length>0)if(this.preventTaxDuplicates){const E=d.findIndex(S=>S.name===u);-1===E?d.push({name:u,value:A}):d[E].value+=A}else d.push({name:u,value:A})}}),d.forEach(g=>{T+=g.value}),d.forEach(g=>{g.name&&g.name.trim().length>0&&y.push({secItem:g.name.trim(),secPrice:`$${g.value.toFixed(2)}`})}),r.total&&r.total>0){if(Math.abs(T-r.total)>.01){const A=this.lineSpecificTaxes.findIndex(u=>u.lineNumber===r.lineNumber);-1!==A&&(this.lineSpecificTaxes[A].total=T)}}else if(T>0){const g=this.lineSpecificTaxes.findIndex(h=>h.lineNumber===r.lineNumber);-1!==g&&(this.lineSpecificTaxes[g].total=T)}}else{if(r.entry){const g=this.getEntryTaxes(r.entry,!1,void 0,this.cartDetails);g&&null!=g.monthlyTaxDetails&&Array.isArray(g.monthlyTaxDetails)&&g.monthlyTaxDetails.length>0&&(g.monthlyTaxDetails.forEach(h=>{const u=parseFloat(String(h?.formattedValue||h?.value||h?.formatted||"0").replace(/[^0-9.-]+/g,"")||"0");if(h&&(h.formattedValue||h.value||h.formatted)&&!isNaN(u)&&0!==u){let E=h.name||"Tax";if(h.name){const S=h.name.toLowerCase().trim();S.includes("state")||S.includes("estatal")?E=this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":S.includes("municipal")?E=this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":S.includes("pr universal")||S.includes("fondo")||S.includes("servicio universal de puerto rico")?E=this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":S.includes("federal")?E=this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":(S.includes("emergency")||S.includes("emergencia"))&&(E=this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee")}if(E=E.trim(),E&&E.length>0)if(this.preventTaxDuplicates){const S=d.findIndex(D=>D.name===E);-1===S?d.push({name:E,value:u}):d[S].value+=u}else d.push({name:E,value:u})}}),d.forEach(h=>{T+=h.value}),d.forEach(h=>{h.name&&h.name.trim().length>0&&y.push({secItem:h.name.trim(),secPrice:`$${h.value.toFixed(2)}`})}))}if(0===y.length&&r.taxes&&"function"==typeof r.taxes.forEach&&(r.taxes.forEach((g,h)=>{let A=h;if(h.toLowerCase().includes("state")||h.toLowerCase().includes("estatal")?A=this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":h.toLowerCase().includes("municipal")?A=this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":h.toLowerCase().includes("pr universal")||h.toLowerCase().includes("fondo")?A=this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":h.toLowerCase().includes("federal")?A=this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":(h.toLowerCase().includes("emergency")||h.toLowerCase().includes("emergencia"))&&(A=this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee"),A&&A.trim())if(this.preventTaxDuplicates){const u=d.findIndex(E=>E.name===A);-1===u?d.push({name:A,value:g}):d[u].value+=g}else d.push({name:A,value:g})}),d.forEach(g=>{T+=g.value}),d.forEach(g=>{y.push({secItem:g.name,secPrice:`$${g.value.toFixed(2)}`})})),0===y.length&&r.total&&r.total>0){T=r.total;const g=[];if(r.entry){const h=this.getEntryTaxes(r.entry,!1,void 0,this.cartDetails);h&&null!=h.monthlyTaxDetails&&Array.isArray(h.monthlyTaxDetails)&&h.monthlyTaxDetails.length>
10&&(h.monthlyTaxDetails.forEach(A=>{const E=parseFloat(String(A?.formattedValue||A?.value||A?.formatted||"0").replace(/[^0-9.-]+/g,"")||"0");if(A&&(A.formattedValue||A.value||A.formatted)&&!isNaN(E)&&0!==E){let S=A.name||"Tax";if(A.name){const D=A.name.toLowerCase().trim();D.includes("state")||D.includes("estatal")?S=this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":D.includes("municipal")?S=this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":D.includes("pr universal")||D.includes("fondo")||D.includes("servicio universal de puerto rico")?S=this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":D.includes("federal")?S=this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":(D.includes("emergency")||D.includes("emergencia"))&&(S=this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee")}if(S=S.trim(),S&&S.length>0)if(this.preventTaxDuplicates){const D=g.findIndex(Y=>Y.name===S);-1===D?g.push({name:S,value:E}):g[D].value+=E}else g.push({name:S,value:E})}}),g.forEach(A=>{A.name&&A.name.trim().length>0&&y.push({secItem:A.name.trim(),secPrice:`$${A.value.toFixed(2)}`})}))}0===y.length&&y.push({secItem:this.getPlanTaxesAndFeesLabel(),secPrice:`$${T.toFixed(2)}`})}}const O={description:`${b} (${r.lineNumber} ${p})`,price:`$${T.toFixed(2)}`,secEl:y};0===O.secEl.length&&0===T&&[{key:"PAYMENT_SUMMARY.STATE_SALES_TAX",default:"State Sales Tax"},{key:"PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX",default:"Municipal Sales Tax"},{key:"PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND",default:"PR Universal Service Fund"},{key:"PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE",default:"Federal Universal Service"},{key:"PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE",default:"Emergency Services Fee"}].forEach(h=>{O.secEl.push({secItem:this.getTranslatedData(h.key)||h.default,secPrice:"$0.00"})}),s.push(O)})}else if(this.cartLevelRecurringTax>0){const r={description:`${this.getTaxesLabel()} (1 ${this.getTranslatedData("PAYMENT_SUMMARY.LINE")||"Line"})`,price:`$${this.cartLevelRecurringTax.toFixed(2)}`,secEl:[{secItem:this.getPlanTaxesAndFeesLabel(),secPrice:`$${this.cartLevelRecurringTax.toFixed(2)}`}]};s.push(r)}let l=0,_=0;c.secEl&&c.secEl.length>0&&c.secEl.forEach(b=>{const p=parseFloat(String(b.secPrice||"0").replace(/[^0-9.-]+/g,"")||"0");isNaN(p)||(l+=p)});let P=0;s.forEach(b=>{b.description&&b.description.includes("Taxes")&&b.secEl&&Array.isArray(b.secEl)&&b.secEl.forEach(p=>{const r=parseFloat(String(p.secPrice||"0").replace(/[^0-9.-]+/g,"")||"0");!isNaN(r)&&r>0&&(P+=r)})});let v=0;this.lineSpecificTaxes&&this.lineSpecificTaxes.length>0&&this.lineSpecificTaxes.forEach(b=>{b.total&&b.total>0&&(v+=b.total)});let C=0;this.lineSpecificTaxes&&this.lineSpecificTaxes.length>0&&this.lineSpecificTaxes.forEach(b=>{b.taxDetails&&Array.isArray(b.taxDetails)&&b.taxDetails.forEach(p=>{const x=String(p?.formattedValue??p?.value??p?.formatted??"").replace(/[^0-9.-]+/g,"")||"0",R=parseFloat(x);isNaN(R)||(C+=R)})});const N=a?.totalPriceList?.find(b=>"RECURRING"===b.priceType),M=parseFloat(N?.priceWithTax?.totalTaxValue?.value||"0")||0;if(_=C>0?C:v>0?v:M>0?M:Math.max(P,this.storedTotalPlanTaxAmount||0),this.paymentData&&this.paymentData.dueMonthly&&this.paymentData.dueMonthly.items&&this.paymentData.dueMonthly.items.length>0){const b=this.getPlanTaxesAndFeesLabel();let p=this.paymentData.dueMonthly.items.find(r=>"tax"===r.itemType);if(p||(p=this.paymentData.dueMonthly.items.find(r=>r.name===b||r.name?.includes("Plan Taxes")||r.name?.includes("Taxes"))),p){p.price=`$${_.toFixed(2)}`;const r=this.paymentData.dueMonthly.items.reduce((x,R)=>x+this.parsePriceString(R.price),0);this.paymentData.dueMonthly.amount=`$${Math.max(0,r).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`}}const L=l+_,U=L>0?`$${L.toFixed(2)}`:this.zeroPriceText;s.length>0?(this.paymentData.tooltipData.title=this.getTranslatedData("PAYMENT_SUMMARY.PRICING_DETAILS"),this.paymentData.tooltipData.total.label=this.getTranslatedData("PAYMENT_SUMMARY.TOTAL"),this.paymentData.tooltipData.total.price=U,this.paymentData.tooltipData.footer=this.getTranslatedData("PAYMENT_SUMMARY.TOOLTIP_FOOTER"),this.paymentData.tooltipData.sections=s):this.paymentData.tooltipData.sections=[],this.buildTooltipDataToday(n)}buildAggregatedTooltipDataToday(a,e){const n=[],i=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO,s={description:this.getTranslatedData("PAYMENT_SUMMARY.PLAN")||"Plan",price:"",secEl:[]};e.forEach(P=>{const v=P.product||{},C=v.categories||[],N=this.isEntryPlanLine(P),M=i&&C.some(L=>{const U=L.code?L.code.toLowerCase():"";return"prepaid"===U||U.includes("prepago")});if(N){const L=v.name||"Plan",U=this.resolvePlanEntryCurrentPrice(P),b=this.getPlanPriceWithoutTax(P,U);let p=M?this.getPrepaidBasePlanPrice(P,b):i?this.getLcprPostpaidMonthlyPlanLinePrice(P,b,this.cartDetails):this.getWithoutAutopayPlanPrice(P,b,this.cartDetails);p!==this.zeroPriceText&&s.secEl.push({secItem:L,secPrice:p})}}),n.push(s);const c=this.getTaxesLabel(),m=this.getTranslatedData("PAYMENT_SUMMARY.LINE")||"Line";a.forEach(P=>{const v={description:`${c} (${P.lineNumber} ${m})`,price:`$${P.taxAmount.toFixed(2)}`,secEl:[]};if(P.taxDetails&&P.taxDetails.length>0){const C=new Map;
1P.taxDetails.forEach(N=>{if(N&&N.formattedValue){const M=parseFloat(N.formattedValue.replace(/[^0-9.-]+/g,"")||"0");if(!isNaN(M)&&0!==M){let L=N.name||N.taxLabel||"Tax";if(N.name||N.taxLabel){const U=(N.name||N.taxLabel||"").toLowerCase().trim();U.includes("state")||U.includes("estatal")?L=this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":U.includes("municipal")?L=this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":U.includes("pr universal")||U.includes("fondo")||U.includes("servicio universal de puerto rico")?L=this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":U.includes("federal")?L=this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":(U.includes("emergency")||U.includes("emergencia"))&&(L=this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee")}L=L.trim(),L&&L.length>0&&(C.has(L)||C.set(L,M))}}}),C.forEach((N,M)=>{M&&M.trim().length>0&&v.secEl.push({secItem:M.trim(),secPrice:`$${N.toFixed(2)}`})})}else[{key:"PAYMENT_SUMMARY.STATE_SALES_TAX",default:"State Sales Tax"},{key:"PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX",default:"Municipal Sales Tax"},{key:"PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND",default:"PR Universal Service Fund"},{key:"PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE",default:"Federal Universal Service"},{key:"PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE",default:"Emergency Services Fee"}].forEach(N=>{v.secEl.push({secItem:this.getTranslatedData(N.key)||N.default,secPrice:"$0.00"})});n.push(v)});let l=0;s.secEl&&s.secEl.length>0&&s.secEl.forEach(P=>{const v=this.parsePriceString(P.secPrice||"0");l+=v}),a.forEach(P=>{l+=P.taxAmount});const _=`$${l.toFixed(2)}`;return{title:this.getTranslatedData("PAYMENT_SUMMARY.PRICING_DETAILS"),total:{label:this.getTranslatedData("PAYMENT_SUMMARY.TOTAL"),price:_},footer:this.getTranslatedData("PAYMENT_SUMMARY.TOOLTIP_FOOTER"),sections:n}}buildTooltipDataToday(a){const e=[],n=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO,i={description:this.getTranslatedData("PAYMENT_SUMMARY.PLAN")||"Plan",price:"",secEl:[]};a.forEach(C=>{const N=C.product||{},M=N.categories||[],L=this.isEntryPlanLine(C),U=n&&M.some(b=>{const p=b.code?b.code.toLowerCase():"";return"prepaid"===p||p.includes("prepago")});if(L){const b=N.name||"Plan",p=this.resolvePlanEntryCurrentPrice(C),r=this.getPlanPriceWithoutTax(C,p);let x=U?this.getPrepaidBasePlanPrice(C,r):n?this.getLcprPostpaidMonthlyPlanLinePrice(C,r,this.cartDetails):this.getWithoutAutopayPlanPrice(C,r,this.cartDetails);x!==this.zeroPriceText&&i.secEl.push({secItem:b,secPrice:x})}}),e.push(i);const s=this.getTaxesLabel(),c=this.getTranslatedData("PAYMENT_SUMMARY.LINE")||"Line",m=this.getTranslatedData("PAYMENT_SUMMARY.LINES")||`${c}s`,l={description:this.lineSpecificTaxes.length>0?`${s} (${1===this.lineSpecificTaxes[0]?.lineNumber?`1 ${c}`:`${this.lineSpecificTaxes[0]?.lineNumber} ${m}`})`:`${s} (1 ${c})`,price:"$0.00",secEl:[]};[{key:"PAYMENT_SUMMARY.STATE_SALES_TAX",default:"State Sales Tax"},{key:"PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX",default:"Municipal Sales Tax"},{key:"PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND",default:"PR Universal Service Fund"},{key:"PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE",default:"Federal Universal Service"},{key:"PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE",default:"Emergency Services Fee"}].forEach(C=>{l.secEl.push({secItem:this.getTranslatedData(C.key)||C.default,secPrice:"$0.00"})}),e.push(l);let P=0;i.secEl&&i.secEl.length>0&&i.secEl.forEach(C=>{const N=this.parsePriceString(C.secPrice||"0");P+=N});const v=`$${P.toFixed(2)}`;this.paymentData.tooltipDataToday.title=this.getTranslatedData("PAYMENT_SUMMARY.PRICING_DETAILS"),this.paymentData.tooltipDataToday.total.label=this.getTranslatedData("PAYMENT_SUMMARY.TOTAL"),this.paymentData.tooltipDataToday.total.price=v,this.paymentData.tooltipDataToday.footer=this.getTranslatedData("PAYMENT_SUMMARY.TOOLTIP_FOOTER"),this.paymentData.tooltipDataToday.sections=e}buildLineSpecificTooltipDataToday(a,e,n){const i=[],s=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO,c={description:this.getTranslatedData("PAYMENT_SUMMARY.PLAN")||"Plan",price:"",secEl:[]},m=n.product||{},_=s&&(m.categories||[]).some(R=>{const d=R.code?R.code.toLowerCase():"";return"prepaid"===d||d.includes("prepago")}
1),P=m.name||"Plan",v=this.resolvePlanEntryCurrentPrice(n),C=this.getPlanPriceWithoutTax(n,v);let N=_?this.getPrepaidBasePlanPrice(n,C):s?this.getLcprPostpaidMonthlyPlanLinePrice(n,C,this.cartDetails):this.getWithoutAutopayPlanPrice(n,C,this.cartDetails);N!==this.zeroPriceText&&c.secEl.push({secItem:P,secPrice:N}),i.push(c);const U={description:`${this.getTaxesLabel()} (${a} ${this.getTranslatedData("PAYMENT_SUMMARY.LINE")||"Line"})`,price:`$${e.toFixed(2)}`,secEl:[]},b=this.getEntryTaxes(n,!1,void 0,this.cartDetails),p=_?b.monthlyTaxDetails:b.todayTaxDetails;if(p&&p.length>0){const R=new Map;p.forEach(d=>{if(d&&d.formattedValue){const T=parseFloat(d.formattedValue.replace(/[^0-9.-]+/g,"")||"0");if(!isNaN(T)&&0!==T){let y=d.name||d.taxLabel||"Tax";if(d.name||d.taxLabel){const f=(d.name||d.taxLabel||"").toLowerCase().trim();f.includes("state")||f.includes("estatal")?y=this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":f.includes("municipal")?y=this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":f.includes("pr universal")||f.includes("fondo")||f.includes("servicio universal de puerto rico")?y=this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":f.includes("federal")?y=this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":(f.includes("emergency")||f.includes("emergencia"))&&(y=this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee")}if(y=y.trim(),y&&y.length>0){const f=R.get(y)||0;R.set(y,f+T)}}}}),R.forEach((d,T)=>{T&&T.trim().length>0&&U.secEl.push({secItem:T.trim(),secPrice:`$${d.toFixed(2)}`})})}else[{key:"PAYMENT_SUMMARY.STATE_SALES_TAX",default:"State Sales Tax"},{key:"PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX",default:"Municipal Sales Tax"},{key:"PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND",default:"PR Universal Service Fund"},{key:"PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE",default:"Federal Universal Service"},{key:"PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE",default:"Emergency Services Fee"}].forEach(d=>{U.secEl.push({secItem:this.getTranslatedData(d.key)||d.default,secPrice:"$0.00"})});i.push(U);const x=`$${(this.parsePriceString(N||"0")+e).toFixed(2)}`;return{title:this.getTranslatedData("PAYMENT_SUMMARY.PRICING_DETAILS"),total:{label:this.getTranslatedData("PAYMENT_SUMMARY.TOTAL"),price:x},footer:this.getTranslatedData("PAYMENT_SUMMARY.TOOLTIP_FOOTER"),sections:i}}isAddonEntry(a){return(a?.product?.categories||[]).some(n=>{const i=(n?.code||"").toLowerCase();return"upgrade_addons"===i||"insurance_addons"===i})}getTranslatedTaxName(a){if(!a||!a.trim())return"Tax";const e=a.toLowerCase().trim();return e.includes("state")||e.includes("estatal")?this.getTranslatedData("PAYMENT_SUMMARY.STATE_SALES_TAX")||"State Sales Tax":e.includes("municipal")?this.getTranslatedData("PAYMENT_SUMMARY.MUNICIPAL_SALES_TAX")||"Municipal Sales Tax":e.includes("pr universal")||e.includes("fondo")||e.includes("servicio universal de puerto rico")?this.getTranslatedData("PAYMENT_SUMMARY.PR_UNIVERSAL_SERVICE_FUND")||"PR Universal Service Fund":e.includes("federal")?this.getTranslatedData("PAYMENT_SUMMARY.FEDERAL_UNIVERSAL_SERVICE")||"Federal Universal Service":e.includes("emergency")||e.includes("emergencia")?this.getTranslatedData("PAYMENT_SUMMARY.EMERGENCY_SERVICES_FEE")||"Emergency Services Fee":a.trim()}getRecurringTotalTaxValueFromCart(a){const e=a;if(this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO&&null!=e?.totalTax?.value){const m=Number(e.totalTax.value);if(!isNaN(m)&&m>0)return m}const i=e?.totalPriceList?.totalPriceList;if(!i||!Array.isArray(i))return 0;const c=i.find(m=>"RECURRING"===m.priceType)?.priceWithTax?.totalTaxValue;return c?parseFloat(c.value||"0"):0}getEntryTaxes(a,e=!1,n,i){let s=0,c=0;const m=[],l=[],_=i,v=this.marketConfigurationService.getBrandMarket()===F.emF.PUERTORICO&&Array.isArray(_?.items)?_.items:[];if(v.length>0&&null!=a?.entryNumber){const M=v.find(L=>
1L.id===a.entryNumber||L.entryNumber===a.entryNumber);if(M&&(Number(M.taxCharges)>0||Number(M.taxAmount)>0||Array.isArray(M.taxes)&&M.taxes.length>0)){const L=Number(M.taxCharges)||Number(M.taxAmount)||0,U=Array.isArray(M.taxes)?M.taxes:[];if(U.forEach(b=>{const p=Number(b.taxAmount??b.value??0)||parseFloat(String(b.formattedValue||"0").replace(/[^0-9.-]+/g,"")||"0"),r=b.name||b.taxName||"Tax",x=b.formattedValue||`$${p.toFixed(2)}`,R={name:r,value:p,formattedValue:x,priceType:"DEVICE"===M.itemType?"ONETIME":"RECURRING"};"DEVICE"===M.itemType?(s+=p,m.push(R)):(c+=p,l.push(R))}),0===U.length&&L>0){const b={name:"Tax",value:L,formattedValue:`$${L.toFixed(2)}`,priceType:"DEVICE"===M.itemType?"ONETIME":"RECURRING"};"DEVICE"===M.itemType?(s=L,m.push(b)):(c=L,l.push(b))}return{todayTax:`$${s.toFixed(2)}`,monthlyTax:`$${c.toFixed(2)}`,taxDetails:[...m,...l],todayTaxDetails:m.length>0?m:void 0,monthlyTaxDetails:l.length>0?l:void 0}}}return a?.cartPrice&&a.cartPrice.cartPrice&&Array.isArray(a.cartPrice.cartPrice)&&a.cartPrice.cartPrice.forEach((M,L)=>{const U=M.totalTaxValue||M.priceWithTax?.totalTaxValue,b=M.taxes&&Array.isArray(M.taxes)&&M.taxes.length>0;if(!e&&("RECURRING"===M.priceType||"BUY"===M.priceType)&&!b&&U&&parseFloat(U.value||"0")>0){const r=parseFloat(U.value||"0"),x=U.formattedValue||`$${r.toFixed(2)}`;c+=r,r>0&&l.push({name:U.name||"Tax",value:r,formattedValue:x,priceType:M.priceType})}else if(M.taxes&&Array.isArray(M.taxes)){const r=a?.product?.categories?.some(d=>{const T=(d?.code||"").toLowerCase();return"prepaid"===T||T.includes("prepago")}),x=!e&&!r&&("RECURRING"===M.priceType||"BUY"===M.priceType)&&M.fees&&Array.isArray(M.fees)&&M.fees.length>0,R=new Set;M.taxes.forEach((d,T)=>{const y=parseFloat(d.value||d.formattedValue?.replace(/[^0-9.-]+/g,"")||"0");let f=d.name||"";const O=d.formattedValue||`$${y.toFixed(2)}`;if(d.rate&&f){const h=parseFloat(d.rate);isNaN(h)||(f=`${f} (%${h})`)}if(x&&y>0){const h=this.getTranslatedTaxName(f);if(R.has(h))return;R.add(h)}let g=!1;if(e?"ONETIME"===M.priceType||"AMOUNT_DUE_TODAY"===M.priceType?(g=!0,s+=y):"RECURRING"===M.priceType&&(a.cartPrice.cartPrice.some(A=>"ONETIME"===A.priceType||"AMOUNT_DUE_TODAY"===A.priceType)?(g=!1,c+=y,g=!0,s+=y):(g=!1,c+=y)):"RECURRING"===M.priceType||"BUY"===M.priceType?(g=!1,c+=y):("ONETIME"===M.priceType||"AMOUNT_DUE_TODAY"===M.priceType)&&(g=!0,s+=y),y>0){const h={name:f,value:y,formattedValue:O,priceType:M.priceType};g?m.push(h):l.push(h)}})}}),a?.taxValues&&Array.isArray(a.taxValues)&&0===m.length&&0===l.length&&a.taxValues.forEach(M=>{const L=parseFloat(M?.appliedValue||M?.value||"0"),U=M?.name||"",b=M?.formattedValue||`$${L.toFixed(2)}`,p={name:U,value:L,formattedValue:b,priceType:M?.taxType||M?.priceType};"RECURRING"===M?.taxType||"RECURRING"===M?.priceType?(c+=L,l.push(p)):(s+=L,m.push(p))}),{todayTax:`$${s.toFixed(2)}`,monthlyTax:`$${c.toFixed(2)}`,taxDetails:[...m,...l],todayTaxDetails:m.length>0?m:void 0,monthlyTaxDetails:l.length>0?l:void 0}}onContinue(){if(this.handleDataLayerOnContinue(),!this.cartDetails)return;const a=this.marketConfigurationService.getBrandMarket();a!==F.emF.PUERTORICO&&a!==F.emF.LCPR||this.isPaymentSummaryContinueInProgress||this.shouldDeferPaymentSummaryReservationToLineConfiguration(this.cartDetails)||this.allPlanEntriesHaveMsisdn(this.cartDetails)?this.navigateAfterPaymentSummaryContinue():(this.isPaymentSummaryContinueInProgress=!0,this.checkoutService.showLoader(),this.runPaymentSummaryReservationFlow(this.cartDetails).pipe((0,ft.j)(()=>{this.isPaymentSummaryContinueInProgress=!1,this.checkoutService.hideLoader()})).subscribe({next:()=>this.navigateAfterPaymentSummaryContinue(),error:()=>this.navigateAfterPaymentSummaryContinue()}))}shouldDeferPaymentSummaryReservationToLineConfiguration(a){return!!(0,ot.GO)(a,this.router.url)||!(0,ot.uc)(a)}navigateAfterPaymentSummaryContinue(){if(this.cartDetails&&this.fireAddShippingInfoIfNeeded(this.cartDetails),(0,ot.jS)(this.cartDetails,this.router.url))return this.checkoutProgressService.mobilePlanCheckoutConfiguration(F.XHp.LineConfiguration),void this.checkoutProgressService.mobileFlowRedirectTo(F.XHp.LineConfiguration);const{skip:a,activations:e}=this.checkoutService.getMobileLineConfigurationSkipPayload(this.cartDetails);a&&e.length&&this.cartDetails&&(0,ot.uc)(this.cartDetails)?this.checkoutProgressService.navigateMobileCheckoutSkippingLineConfigurationStep(this.cartDetails,e):(this.checkoutProgressService.mobilePlanCheckoutConfiguration(F.XHp.LineConfiguration),this.checkoutProgressService.mobileFlowRedirectTo(F.XHp.LineConfiguration))}runPaymentSummaryReservationFlow(a){const e=this.buildReservationLine
1sFromCart(a);if(!e.length)return(0,z.of)(null);const n=String(a.guid||"").trim();if(!n)return(0,z.of)(null);const i=(a.user?.uid?.trim()||n||"").trim(),s=encodeURIComponent(i),c=i||n||"",m=e.filter(l=>"new-number"===l.selectedNumberOption);return 0===m.length?(this.persistReservedMsisdns(null,e,n),this.syncLcprSimReservationAndSimDetails(e,n,s)):this.numberReservationService.getAndReserveNumbers({cartId:n,customerId:c||"anonymous",amount:String(m.length)}).pipe((0,ut.M)(l=>{this.persistReservedMsisdns(l,e,n)}),(0,ct.n)(()=>this.syncLcprSimReservationAndSimDetails(e,n,s)),(0,nt.W)(l=>(console.error("[Payment Summary] Number reservation flow failed:",l),this.persistReservedMsisdns(null,e,n),this.syncLcprSimReservationAndSimDetails(e,n,s))))}syncLcprSimReservationAndSimDetails(a,e,n){return this.processPhysicalSimReservationsForPaymentSummary(a).pipe((0,ct.n)(()=>this.updateSimDetailsForPaymentSummary(a,n)),(0,ct.n)(()=>this.saveSIMReservationToHybrisForPaymentSummary(e)))}persistReservedMsisdns(a,e,n){const i=e.filter(v=>"new-number"===v.selectedNumberOption),s=e.filter(v=>"keep-number"===v.selectedNumberOption&&!!v.portNumber),c=a?.availableMsisdns?.msisdns&&Array.isArray(a.availableMsisdns.msisdns)?a.availableMsisdns.msisdns:[];let m=0;const P=[...i.map(v=>{const C=c[m]||"";return m+=1,v.reservationMsisdn=C||null,{entryNumber:v.entryNumber,simType:v.selectedActivation,numberOption:v.selectedNumberOption,msisdn:C,nokiaReservationId:C||""}}),...s.map(v=>({entryNumber:v.entryNumber,simType:v.selectedActivation,numberOption:v.selectedNumberOption,msisdn:v.portNumber,nokiaReservationId:v.portNumber||""}))];P.length?localStorage.setItem("reservedMsisdns",JSON.stringify({msisdns:c,unlockKey:a?.availableMsisdns?.unlockKey||"",reservationId:a?.reservation?.reservationId||"",cartId:n,entryReservations:P})):localStorage.removeItem("reservedMsisdns")}processPhysicalSimReservationsForPaymentSummary(a){if(this.marketConfigurationService.getBrandMarket()!==F.emF.PUERTORICO)return(0,z.of)(null);const e=a.filter(i=>("new-number"===i.selectedNumberOption||"keep-number"===i.selectedNumberOption)&&"sim-card"===i.selectedActivation);if(!e.length)return(0,z.of)(null);localStorage.removeItem("physicalSimReservations");const n=e.map(i=>{const s=this.physicalSimReservationService.buildLcprReservationRequest(1);return this.physicalSimReservationService.reservePhysicalSim(s).pipe((0,ut.M)(c=>{const m=JSON.parse(localStorage.getItem("physicalSimReservations")||"[]"),l=Array.isArray(m)?m:[];l.push({entryNumber:i.entryNumber,reservationId:c?.id,msisdn:i.reservationMsisdn||i.portNumber||null,simType:i.selectedActivation,numberOption:i.selectedNumberOption,timestamp:(new Date).toISOString()}),localStorage.setItem("physicalSimReservations",JSON.stringify(l))}),(0,nt.W)(c=>(console.error("[Payment Summary] Physical SIM reservation failed:",c),(0,z.of)(null))))});return(0,dt.p)(n)}saveSIMReservationToHybrisForPaymentSummary(a){const e=this.marketConfigurationService.getBrandMarket();if(e!==F.emF.PUERTORICO&&e!==F.emF.LCPR)return(0,z.of)(null);const n=this.physicalSimReservationService.buildNumberInfoFromLocalStorage(a);return n&&0!==n.numberInfoEntries.length?this.physicalSimReservationService.saveNumberInfoInCart(n).pipe((0,nt.W)(i=>(console.error("[Payment Summary] saveNumberInfoInCart failed:",i),(0,z.of)(null)))):(0,z.of)(null)}updateSimDetailsForPaymentSummary(a,e){const n=String(this.cartDetails?.guid||this.cartDetails?.code||"").trim(),i=a.map(s=>{const c=s.portabilityNumberCheckUID||this.getPortabilityUIDFromCart(s.entryNumber),m={cartId:n,entryNumber:s.entryNumber,esim:"esim"===s.selectedActivation?"eSIM":"PhysicalSIM",portability:"keep-number"===s.selectedNumberOption?"PORTABILITY":"NEW_NUMBER",userId:e};return"keep-number"===s.selectedNumberOption&&s.portNumber&&c&&(m.portabilityNumberCheckUID=c,m.portableNumber=s.portNumber.replace(/\D/g,"")),this.cartService.updateSimDetails(m).pipe((0,nt.W)(l=>(console.error("[Payment Summary] updateSimDetails failed:",l),(0,z.of)(null))))});return i.length?(0,dt.p)(i):(0,z.of)(null)}getPortabilityUIDFromCart(a){const e=this.cartDetails?.entries||[],n=e.find(s=>
1Number(s.entryNumber)===Number(a)),i=e.find(s=>Number(s.parentEntryNumber)===Number(a));return n?.portabilityNumberCheckUID||i?.portabilityNumberCheckUID||n?.bringYourOwnDevice?.portabilityNumberCheckUID||n?.bringYourOwnDevice?.portabilityDetails?.portabilityNumberCheckUID||""}buildReservationLinesFromCart(a){const e=this.getPlanEntriesFromCart(a),n=this.getStoredMobileLineConfig(),i=a?.entries||[],s=e.length;return e.map((c,m)=>{const l=Number(c.entryNumber);if(!Number.isFinite(l))return null;const _=n[m],P=c.bringYourOwnDevice,v=this.getDeviceEntryForPlanPaymentSummary(i,l);let C=this.resolveActivationFromSources(_,P);C||(C=this.getActivationFromDeviceEntryPaymentSummary(v)),C||(C=this.getActivationFromEntrySimSelectionsPaymentSummary(l)),!C&&1===s&&(C=this.normalizeActivationPaymentSummary(typeof localStorage<"u"&&localStorage.getItem(F.ZM_.SELECTEDDEVICESIMTYPE)||""));let N=this.resolveNumberOptionFromSources(_,P);if(N||(N=this.getNumberOptionFromDeviceEntryPaymentSummary(v)),!N&&1===s&&(N=this.getNumberOptionFromSelectedProductPaymentSummary(c)),!C||!N)return null;const M=v&&"PORTABILITY"===String(v.planType||"").toUpperCase()?String(v.portableNumber||"").trim():"";return{entryNumber:l,selectedActivation:C,selectedNumberOption:N,portNumber:(_?.phone_number_mobile||"").trim()||this.getPortableNumberFromByodPaymentSummary(P)||M,portabilityNumberCheckUID:_?.portabilityNumberCheckUID?.trim()||this.getPortabilityUidFromByodPaymentSummary(P)||String(v?.portabilityNumberCheckUID||v?.portabilityNumberCheckUid||"").trim(),reservationMsisdn:null}}).filter(c=>!!c)}getDeviceEntryForPlanPaymentSummary(a,e){return a.find(n=>{const i=n.parentEntryNumber;if(null==i)return!1;const s="string"==typeof i?parseInt(i,10):i;return!isNaN(s)&&s===e})}getActivationFromDeviceEntryPaymentSummary(a){if(!a)return null;const e=a.simDetails?.toString().trim()||"",n=a.typeOfSim?.code?.toString().trim()||"",i=(e||n).toLowerCase();return"esim"===i||"e sim"===i?"esim":"physicalsim"===i||"physical"===i||i.includes("sim")&&i.includes("physical")||"sim f\xedsica"===i?"sim-card":null}getNumberOptionFromDeviceEntryPaymentSummary(a){if(!a)return null;const e=a.planType?.toString().trim().toUpperCase()||"";return"NEW_NUMBER"===e||"NUEVA_LINEA"===e||"NEWLINE"===e?"new-number":"PORTABILITY"===e||"PORTABILIDAD"===e?"keep-number":null}getActivationFromEntrySimSelectionsPaymentSummary(a){if(typeof localStorage>"u")return null;try{const e=JSON.parse(localStorage.getItem("entrySimSelections")||"{}"),n=e[a]??e[String(a)];if(!n||"string"!=typeof n)return null;const i=n.toLowerCase();return i.includes("esim")||"e sim"===i?"esim":i.includes("tarjeta")||i.includes("physical")||i.includes("f\xedsica")||i.includes("fisica")?"sim-card":null}catch{return null}}getNumberOptionFromSelectedProductPaymentSummary(a){if(typeof localStorage>"u")return null;try{const e=localStorage.getItem("selectedProduct");if(!e)return null;const n=JSON.parse(e);if(!Array.isArray(n))return null;const i=String(a.product?.code||""),s=l=>{const _=l?.planType??l?.bringYourOwnDevice?.planType;if(!_)return null;const P=String(_).toUpperCase();return"PORTABILITY"===P||"PORTABILIDAD"===P?"keep-number":"NEW_NUMBER"===P||"NUEVA_LINEA"===P?"new-number":null},c=n.find(l=>(l?.code||l?.productCode)===i);if(c){const l=s(c);if(l)return l}const m=n.filter(l=>"device"===l?.type);return 1===m.length?s(m[0]):null}catch{return null}}getStoredMobileLineConfig(){try{const a=localStorage.getItem("mobileLineConfig");if(!a)return[];const e=JSON.parse(a);return Array.isArray(e)?e:[]}catch{return[]}}resolveActivationFromSources(a,e){const i=this.normalizeActivationPaymentSummary(a?.selectedActivation||a?.sim_option_mobile||"");return i||this.normalizeActivationPaymentSummary(String(e?.simType||e?.sim_type||""))}resolveNumberOptionFromSources(a,e){const i=this.normalizeNumberOptionPaymentSummary(a?.selectedNumberOption||a?.number_option_mobile||"");if(i)return i;const s=e?.planType||e?.plan_type;return s?this.normalizeNumberOptionPaymentSummary(String(s)):null}getPortableNumberFromByodPaymentSummary(a){return String(a?.portableNumber||a?.phoneNumber||"").trim()}getPortabilityUidFromByodPaymentSummary(a){return String(a?.portabilityNumberCheckUID||a?.portabilityNumberCheckUid||"").trim()}normalizeActivationPaymentSummary(a){const e=String(a||"").toLowerCase().trim().replace(/[\s_]/g,"").replace(/[^a-z]/g,"");return e?"esim"===e||"esimcard"===e?"esim":"simcard"===e||"physicalsim"===e?"sim-card":null:null}normalizeNumberOptionPaymentSummary(a){const e=String(a||"").trim().toUpperCase().replace(/[\s_]/g,"-");return"NEW-NUMBER"===e||"NEWNUMBER"===e||"NEWLINE"===e?"new-number":"KEEP-NUMBER"===e||"KEEPMYNUMBER"===e||"PORTABILITY"===e||"PORTABILIDAD"===e?"keep-number":"NUEVA-LINEA"===e?"new-number":null}allPlanEntriesHaveMsisdn(a){const e=this.getPlanEntriesFromCart(a);return!!e.length&&e.every(n=>String(n?.msisdnNumber||"").trim().length>0)}getPlanEntriesFromCart(a){return(a?.entries||[]).filter(n=>{const s=n.product?.categories;if(!Array.isArray(s)||0===s.length)return!1;const c=s[s.length-1],m=String(c?.code||"").toLowerCase();return"postpaid"===m||"prepaid"===m||"mobile"===m||m.includes("plan")||m.includes("pospago")||m.includes("prepago")})}resolvePortabilityUIDForUpdateSim(a,e,n){const i=e.find(c=>Number(c.entryNumber)===Number(a))||n.find(c=>"PLAN"===String(c.itemType||c.bundleItemType||"").toUpperCase()&&Number(c.id)===Number(a)),s=e.find(c=>Number(c.parentEntryNumber)===Number(a))||n.find(c=>"DEVICE"===String(c.itemType||c.bundleItemType||"").toUpperCase()&&Number(c.relatedItemId)===Number(a));return i?.portabilityNumberCheckUID||s?.portabilityNumberCheckUID||i?.bringYourOwnDevice?.portabilityNumberCheckUID||i?.bringYourOwnDevice?.portabilityDetails?.portabilityNumberCheckUID||""}handleDataLayerOnOriginalPricingAccordionOpen(a){this.dataLayerService.sendEventForPaymentSummaryOriginalPricingAccordion(a,this.seeOriginalPricingDescription,this.seeOriginalPricingTitle)}handleDataLayerOnContinue(){let{fixedCount:a,prepaidCount:e,postpaidCount:n}=localStorage.billlingAccountFlag?JSON.parse(localStorage.billlingAccountFlag):{};JSON.parse(localStorage.getItem("UserData")??"{}");const s=void 0!==a&&void 0!==e&&void 0!==n;let c="";const m=window.isExistingDetected;c=void 0===m||!1===m?localStorage.UserData&&JSON.parse(localStorage.UserData).gigyaAccount?.profile?.email?"Existing Logged":"new user":"Existing Detected",new URL(window.location.href);const _={event_category:"button interaction",event_action:"click continue",event_label:"Updated Payments | Continue",step_position:localStorage?.currentStepPosition||1,user_t
1ype:c,existing_customer_config:s?"Fixed "+a+", Pre "+e+", Post "+n:void 0,buying_customer_config:s?"Fixed "+a+", Pre "+e+", Post "+n:void 0,item_name:localStorage?.selectedCategory,journey:localStorage.flow_start_page};this.dataLayerService.sendEventOnClickContinue(_)}onAlertClose(){this.paymentData.showAlert=!1}getUpfrontPeriodFromLocalStorage(){try{const a=localStorage.getItem("cartForPrepaidCheckout");if(a){const n=JSON.parse(a)?.upfront_period||1;return"number"==typeof n?n:1}}catch(a){console.warn("Failed to parse cartForPrepaidCheckout:",a)}return 1}static{this.\u0275fac=function(e){return new(e||pt)(t.rXU(j.Ix),t.rXU(et.m),t.rXU(tt.p),t.rXU(Z.vXy),t.rXU(G._),t.rXU(k.E),t.rXU(B.ey),t.rXU(Z.hWh),t.rXU($.mx),t.rXU(gt.T),t.rXU(_t.K),t.rXU(q.ClickToCallService),t.rXU(it.g$))}}static{this.\u0275cmp=t.VBU({type:pt,selectors:[["lla-payment-summary"]],standalone:!1,decls:42,vars:16,consts:[["pricingTooltipTemplate",""],["deviceTaxesTooltipTemplate",""],["pricingTooltipTemplateToday",""],["firstMonthMonthlyTooltipTemplate",""],["todayAggregatedTooltip",""],[1,"llac-payment-summary"],[1,"llac-payment-summary__alert-wrapper"],[4,"ngIf"],[1,"llac-payment-summary__container"],[1,"b2-regular","llac-payment-summary__title"],[1,"llac-payment-summary__sections"],[1,"llac-payment-card"],["body",""],[1,"llac-payment-card__header"],[1,"llac-payment-card__title","b3-bold"],["class","monthly-info-tooltip-host","llaReactiveTooltip","",3,"tooltipVariant","contentTemplate","tooltipArrow","tooltipbackGroundColor","closeIconTooltip","showToolTip","defaultPosition","keepInViewport","contentAlignment","click",4,"ngIf"],[1,"llac-payment-card__amount","b1-bold"],["class","llac-payment-card__disclaimer label-regular",4,"ngIf"],[1,"llac-payment-card__divider"],[1,"llac-payment-card__items"],[4,"ngFor","ngForOf"],[1,"llac-payment-summary__accordion-wrapper"],["class","llac-payment-summary__accordion",4,"ngIf"],[1,"llac-payment-summary__button-container"],["types","primary","buttonSize","large",3,"clickHandler","text","disabled"],[3,"status","statusIcon","type","body","fullWidthAlert","alertClose","toastBanner","previousExistingAlert"],["llaReactiveTooltip","",1,"monthly-info-tooltip-host",3,"click","tooltipVariant","contentTemplate","tooltipArrow","tooltipbackGroundColor","closeIconTooltip","showToolTip","defaultPosition","keepInViewport","contentAlignment"],[3,"iconClass","size","iconColor"],[1,"llac-payment-card__disclaimer","label-regular"],[3,"secondaryListContent","secondaryListIcon","price","priceFont","secondaryListDivider","discount-item",4,"ngIf"],["class","order-summary-table-secondary-list",4,"ngIf"],[3,"secondaryListContent","secondaryListIcon","price","priceFont","secondaryListDivider"],[1,"order-summary-table-secondary-list"],[1,"order-summary-table-secondary-list__content"],[1,"secondary-list"],[1,"secondary-list__content"],["llaReactiveTooltip","",1,"taxes-fees-link","b4-regular",3,"tooltipVariant","contentTemplate","tooltipArrow","tooltipbackGroundColor","closeIconTooltip","showToolTip","defaultPosition"],[1,"order-summary-table-secondary-list__price-section"],[1,"price","b4-regular"],[1,"tooltip-template"],["class","tooltip-template__header header-bg-black",4,"ngIf"],["class","tooltip-template__body tooltip-template__items",4,"ngFor","ngForOf"],["class","tooltip-template__note",4,"ngIf"],[1,"tooltip-template__header","header-bg-black"],[1,"b4-bold"],[1,"tooltip-template__body","tooltip-template__items"],[1,"primary-div"],[1,"b4-bold","title-el"],["class","b4-bold price-el",4,"ngIf"],["class","secondary-div",4,"ngFor","ngForOf"],["class","secondary-div",4,"ngIf"],["class","tooltip-divider",4,"ngIf"],[1,"b4-bold","price-el"],[1,"secondary-div"],[1,"b4-regular","sec-title-el"],[1,"b4-regular","sec-price-el"],[1,"tooltip-divider"],[1,"tooltip-template__footer"],[1,"b3-bold"],[1,"b4-bold","final-price"],[1,"tooltip-template__note"],[1,"tooltip-template__body"],[1,"b4-regular"],[1,"llac-payment-summary__accordion"],[3,"multiMode"],[3,"opened","title","description","id","isCollapsed","showBorder","isBorder","multiMode","changeFontOnExpand","titleFontSize"],[1,"llac-payment-summary__original-pricing"],[1,"llac-payment-card","llac-payment-card--accordion"],[1,"tooltip-template","device-tax-tooltip"],[1,"device-tax-row"],[1,"device-tax-label","b4-regular"],[1,"device-tax-price","b4-regular"],[1,"device-tax-divider"],[1,"tooltip-template","first-month-monthly-tooltip"],[1,"first-month-monthly-tooltip__header"],[1,"b4-bold","first-month-monthly-tooltip__title"],[1,"tooltip-template__tooltip-close-icon","first-month-monthly-tooltip__close",3,"iconClass","iconColor","size"],[1,"first-month-monthly-tooltip__body"],[1,"b4-regular","first-month-monthly-tooltip__description"],[1,"first-month-monthly-tooltip__group"],["role","separator",1,"first-month-monthly-tooltip__divider"],[1,"first-month-monthly-tooltip__items"],[1,"first-month-monthly-tooltip__row"],[1,"first-month-monthly-tooltip__activation"],[1,"first-month-monthly-tooltip__one-time"],[1,"first-month-monthly-tooltip__total-group"],["role","separator",1,"first-month-monthly-tooltip__divider","first-month-monthly-tooltip__divider--total"],[1,"first-month-monthly-tooltip__total-block"],[1,"first-month-monthly-tooltip__row","first-month-monthly-tooltip__row--total"],[1,"first-month-monthly-tooltip__footer"]],template:function(e,n){if(1&e){const i=t.RV6();t.j41(0,"div",5)(1,"div",6),t.DNE(2,Ct,2,8,"div",7),t.k0s(),t.j41(3,"div",8)(4,"div",9),t.EFF(5),t.k0s(),t.j41(6,"div",10)(7,"lla-generic-card",11)(8,"div",12)(9,"div",13)(10,"h3",14),t.EFF(11),t.DNE(12,Dt,2,12,"span",15),t.k0s(),t.j41(13,"div",16),t.EFF(14),t.k0s(),t.DNE(15,bt,2,1,"p",17),t.k0s(),t.nrm(16,"hr",18),t.j41(17,"div",19),t.DNE(18,Ot,3,2,"ng-container",20),t.k0s()()(),t.j41(19,"lla-generic-card",11)(20,"div",12)(21,"div",13)(22,"h3",14),t.EFF(23),t.k0s(),t.j41(24,"div",16),t.EFF(25),t.k0s(),t.DNE(26,It,2,1,"p",17),t.k0s(),t.nrm(27,"hr",18),t.j41(28,"div",19),t.DNE(29,Jt,4,3,"ng-container",20),t.k0s()()()(),t.j41(30,"div",21),t.DNE(31,ie,26,18,"div",22),t.k0s(),t.j41(32,"div",23)(33,"lla-button",24),t.bIt("clickHandler",function(){return t.eBV(i),t.Njj(n.onContinue())}),t.k0s()()()(),t.DNE(34,_e,2,2,"ng-template",null,0,t.C5r)(36,fe,2,2,"ng-template",null,1,t.C5r)(38,be,2,2,"ng-template",null,2,t.C5r)(40,Re,41,27,"ng-template",null,3,t.C5r)}2&e&&(t.R7$(2),t.Y8G("ngIf",n.paymentData.showAlert),t.R7$(3),t.JRh(n.pageTitle),t.R7$(5),t.AVh("due-monthly-title-with-info",n.showFirstMonthMonthlyTooltip),t.R7$(),t.SpI(" ",n.paymentData.dueMonthly.title," "),t.R7$(),t.Y8G("ngIf",n.showFirstMonthMonthlyTooltip),t.R7$(2),t.JRh(n.paymentData.dueMonthly.amount),t.R7$(),t.Y8G("ngIf",n.paymentData.dueMonthly.disclaimer),t.R7$(3),t.Y8G("ngForOf",n.paymentData.dueMonthly.items),t.R7$(5),t.JRh(n.paymentData.dueToday.title),t.R7$(2),t.JRh(n.paymentData.dueToday.amount),t.R7$(),t.Y8G("ngIf",n.paymentData.dueToday.disclaimer),t.R7$(3),t.Y8G("ngForOf",n.paymentData.dueToday.items),t.R7$(2),t.Y8G("ngIf",n.paymentData.originalPricing),t.R7$(2),t.Y8G("text",n.continueButtonText)("disabled",!1))},dependencies:[W.Sq,W.bT,Tt.C,Pt.X,Mt.h,Et.M,xt.R,St.M,At.d,vt.Y,J.D9],styles:['lla-generic-card.llac-payment-card{border-radius:16px!important;overflow:hidden!important}.llac-payment-summary[_ngcontent-%COMP%]{width:100%;min-height:100vh;background-color:#fff;padding:0;box-sizing:border-box;overflow:visible!important;position:relative}.llac-payment-summary__alert-wrapper[_ngcontent-%COMP%]{width:100%;background-color:#fff;padding:16px;box-sizing:border-box;position:relative}@media (min-width: 768px){.llac-payment-summary__alert-wrapper[_ngcontent-%COMP%]{padding:24px 16px}}.llac-payment-summary__alert-wrapper[_ngcontent-%COMP%] .toast-banner{position:relative;inset:auto;z-index:auto;max-width:100%;width:100%;margin:0}.llac-payment-summary__alert[_ngcontent-%COMP%]{max-width:540px;margin:0 auto;width:100%}.llac-payment-summary__alert[_ngcontent-%COMP%] .custom-alert[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:16px;background-color:#d1ecf1;border:1px solid #bee5eb;border-radius:8px;width:100%;box-sizing:border-box}.llac-payment-summary__alert[_ngcontent-%COMP%] .custom-alert__icon[_ngcontent-%COMP%]{flex-shrink:0;color:#0c5460;display:flex;align-items:center;justify-content:center;width:20px;height:20px}.llac-payment-summary__alert[_ngcontent-%COMP%] .custom-alert__message[_ngcontent-%COMP%]{flex:1;font-size:14px;line-height:1.5;color:#0c5460}@media (min-width: 768px){.llac-payment-summary__alert[_ngcontent-%COMP%] .custom-alert__message[_ngcontent-%COMP%]{font-size:15px}}.llac-payment-summary__container[_ngcontent-%COMP%]{margin:0;padding:0;box-sizing:border-box;overflow:visible!important;position:relative}@media (min-width: 768px){.llac-payment-summary__container[_ngcontent-%COMP%]{padding:0}}.llac-payment-summary__title[_ngcontent-%COMP%]{margin:0 auto 24px;text-align:center!important;max-width:539px}@media (min-width: 768px){.llac-payment-summary__title[_ngcontent-%COMP%]{margin-bottom:24px}}.llac-payment-summary__sections[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px;overflow:visible!important;position:relative;z-index:1;padding:0;width:100%}@media (min-width: 768px){.llac-payment-summary__sections[_ngcontent-%COMP%]{flex-direction:row;gap:24px;margin-bottom:24px;padding:0}}.llac-payment-summary__accordion-wrapper[_ngcontent-%COMP%]{width:100%;border-top:1px solid #e0e0e0;padding-top:0}@media (min-width: 768px){.llac-payment-summary__accordion-wrapper[_ngcontent-%COMP%]{padding-top:0}}.llac-payment-summary__accordion[_ngcontent-%COMP%]{width:100%}.llac-payment-summary__accordion[_ngcontent-%COMP%] .accordion{margin:0!important;padding:0!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;margin:0!important;width:100%!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel--roundborder{padding:0!important;margin:0!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel__header{background:transparent!important;padding:0!important;margin:0!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel__title{margin-bottom:0!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel__description, .llac-payment-summary__accordion[_ngcontent-%COMP%] .label-regular.description{margin-top:4px!important;font-size:16px!important;font-weight:400!important;line-height:140%!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .llac-payment-summary__accordion .expansion-panel[is-panel-open=true] .expansion-panel__header--label.expandedAccordionPadding{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .llac-payment-summary__accordion .expansion-panel[is-panel-open=true] .expansion-panel__header--label.expandedAccordionPadding .expansion-panel__header-span:after{content:var(--accordion-desc, "");display:block;margin-top:4px;font-size:16px;font-weight:400;line-height:140%;color:var(--w-color-text-body-600, #757575);font-family:Inter Regular,sans-serif}.llac-payment-summary__accordion[_ngcontent-%COMP%] .collapsedAccordionPadding{padding:24px 0 0!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expandedAccordionPadding{padding:24px 0!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel__title-section{gap:4px!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel__body{background:transparent!important;padding:0!important;margin:0!important;width:100%!important}.llac-payment-summary__accordion[_ngcontent-%COMP%] .expansion-panel__content{padding:0!important;margin:0!important;width:100%!important}.llac-payment-summary__original-pricing[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:0}@media (min-width: 768px){.llac-payment-summary__original-pricing[_ngcontent-%COMP%]{flex-direction:row;gap:24px;padding:0}}.llac-payment-summary__button-container[_ngcontent-%COMP%]{margin-top:32px;display:flex;justify-content:center;align-items:center;width:100%;padding:0}@media (min-width: 768px){.llac-payment-summary__button-container[_ngcontent-%COMP%]{margin-top:40px}}.llac-payment-summary__button-container[_ngcontent-%COMP%] lla-button{max-width:343px}.llac-payment-summary__button-container[_ngcontent-%COMP%] lla-button button{width:343px}@media (max-width: 767px){.llac-payment-summary__button-container[_ngcontent-%COMP%] lla-button button{width:100%}}.llac-payment-card[_ngcontent-%COMP%]{width:100%;max-width:343px;margin:0 auto;background:#f6f6f7;border-radius:16px!important;border:none;box-shadow:0 1px 3px #00000014;
1transition:box-shadow .2s ease;flex:1;min-width:0;overflow:hidden}@media (min-width: 768px){.llac-payment-card[_ngcontent-%COMP%]{flex:1 1 calc(50% - 8px);max-width:calc(50% - 8px);margin:0}}.llac-payment-card[_ngcontent-%COMP%]:hover{box-shadow:none}.llac-payment-card[_ngcontent-%COMP%] .card{background:#f6f6f7;border:none!important;box-shadow:none;border-radius:16px!important;width:100%;height:100%}.llac-payment-card[_ngcontent-%COMP%] .card__body{padding:0!important;background:#f6f6f7;border:none!important;border-radius:16px!important;box-sizing:border-box;width:100%!important}@media (min-width: 768px){.llac-payment-card[_ngcontent-%COMP%] .card__body{padding:16px!important}}.llac-payment-card__header[_ngcontent-%COMP%]{text-align:center}@media (min-width: 768px){.llac-payment-card__header[_ngcontent-%COMP%]{margin-bottom:16px}}@media (min-width: 768px){.llac-payment-card__title[_ngcontent-%COMP%]{margin-bottom:8px}}.llac-payment-card__amount[_ngcontent-%COMP%]{margin:0 0 4px;color:#0071ce;text-align:center}.llac-payment-card__disclaimer[_ngcontent-%COMP%]{margin:0;color:var(--w-color-text-body-600, #757575);text-align:center}@media (min-width: 768px){.llac-payment-card__disclaimer[_ngcontent-%COMP%]{font-size:14px}}.llac-payment-card__divider[_ngcontent-%COMP%]{border:none;border-top:1px solid #e0e0e0;margin:0 16px 16px}@media (min-width: 768px){.llac-payment-card__divider[_ngcontent-%COMP%]{margin:0 0 16px}}.llac-payment-card__items[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}@media (min-width: 768px){.llac-payment-card__items[_ngcontent-%COMP%]{gap:8px}}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list, .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-card-table-list{margin:0!important;padding:0!important;border:none!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important}.llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .secondary-list__content, .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .secondary-list__content span, .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .order-summary-table-secondary-list__price-section, .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .price{color:#048243!important}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list__content{padding:0!important;text-align:left!important;flex:1!important;max-width:220px!important;word-wrap:break-word!important;overflow-wrap:break-word!important}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list__price-section{padding:0!important;text-align:right!important;min-width:35px!important;display:flex!important;justify-content:flex-end!important}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list__price-section .price{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}.llac-payment-card__items[_ngcontent-%COMP%] .secondary-list{padding:0!important;text-align:left!important}.llac-payment-card__items[_ngcontent-%COMP%] .secondary-list__content{padding:0!important;text-align:left!important;display:flex!important;justify-content:flex-start!important;align-items:flex-start!important}.llac-payment-card__items[_ngcontent-%COMP%] .secondary-list__content span{text-align:left!important}.llac-payment-card__items[_ngcontent-%COMP%] .divider, .llac-payment-card__items[_ngcontent-%COMP%] hr{display:none!important}.llac-payment-card__items[_ngcontent-%COMP%] .secondary-list-with-border{border-bottom:none!important}.llac-payment-card--accordion[_ngcontent-%COMP%]{width:100%!important;max-width:343px!important;margin:0 auto!important;background:#f6f6f7!important;border:none!important;box-shadow:none!important;border-radius:16px!important;overflow:hidden!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%]{max-width:100%!important;margin:0!important}}.llac-payment-card--accordion[_ngcontent-%COMP%]:hover{box-shadow:none!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .card{background:#f6f6f7!important;border:none!important;box-shadow:none!important;border-radius:16px!important;width:100%!important;margin:0!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .card__body{padding:0!important;background:#f6f6f7!important;width:100%!important;border-radius:16px!important;box-sizing:border-box!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%] .card__body{padding:16px!important}}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__header[_ngcontent-%COMP%]{margin-bottom:20px!important;padding:24px 16px 0!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__header[_ngcontent-%COMP%]{margin-bottom:24px!important;padding:0!important}}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__title[_ngcontent-%COMP%], .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__title{margin:0 auto 12px!important;text-align:center!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__title[_ngcontent-%COMP%], .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__title{margin-bottom:16px!important}}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__amount[_ng
1content-%COMP%], .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__amount{margin:0 auto 8px!important;color:var(--w-color-action-fill, #0071CE)!important;text-align:center!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__amount[_ngcontent-%COMP%], .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__amount{margin-bottom:12px!important}}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__disclaimer[_ngcontent-%COMP%]{color:var(--w-color-text-body-600, #757575)!important;text-align:center!important;font-feature-settings:"liga" off,"clig" off!important;font-size:var(--w-text-size-label, 14px)!important;font-style:normal!important;font-weight:400!important;line-height:140%!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__disclaimer[_ngcontent-%COMP%]{font-size:14px!important}}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__divider[_ngcontent-%COMP%]{margin:0 16px 16px!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__divider[_ngcontent-%COMP%]{margin:0 0 16px!important}}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%]{gap:8px!important;padding:0 16px 24px!important}@media (min-width: 768px){.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%]{padding:0!important}}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list, .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-card-table-list{margin:0!important;padding:0!important;border:none!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .secondary-list__content, .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .secondary-list__content span, .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .order-summary-table-secondary-list__price-section, .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .price{color:#048243!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list__content{padding:0!important;text-align:left!important;flex:1!important;max-width:220px!important;word-wrap:break-word!important;overflow-wrap:break-word!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list__price-section{padding:0!important;text-align:right!important;min-width:35px!important;display:flex!important;justify-content:flex-end!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list__price-section .price{font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .secondary-list{padding:0!important;text-align:left!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .secondary-list__content{padding:0!important;text-align:left!important;display:flex!important;justify-content:flex-start!important;align-items:flex-start!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .secondary-list__content span{text-align:left!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .divider, .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] hr{display:none!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .secondary-list-with-border{border-bottom:none!important}.taxes-fees-link[_ngcontent-%COMP%], .taxes-fees-link, .secondary-list__content .taxes-fees-link, .secondary-list__content span.taxes-fees-link, span[class*=taxes-fees-link], .order-summary-table-secondary-list[_ngcontent-%COMP%] .taxes-fees-link[_ngcontent-%COMP%], .llac-payment-card__items[_ngcontent-%COMP%] .taxes-fees-link[_ngcontent-%COMP%]{color:#06c!important;text-align:left!important;text-decoration:underline!important;text-underline-offset:2px!important;text-decoration-thickness:1px!important;cursor:pointer!important;-webkit-user-select:none!important;user-select:none!important;position:relative;z-index:101!important;display:inline!important;word-break:normal!important;white-space:normal!important;font-family:inherit!important;font-size:16px!important;font-weight:400!important;line-height:1.4!important}.taxes-fees-link[_ngcontent-%COMP%]:hover, .taxes-fees-link[_ngcontent-%COMP%]:focus, .taxes-fees-link:hover, .taxes-fees-link:focus, .secondary-list__content .taxes-fees-link:hover, .secondary-list__content .taxes-fees-link:focus, .secondary-list__content span.taxes-fees-link:hover, .secondary-list__content span.taxes-fees-link:focus, span[class*=taxes-fees-link]:hover, span[class*=taxes-fees-link]:focus, .order-summary-table-secondary-list[_ngcontent-%COMP%] .taxes-fees-link[_ngcontent-%COMP%]:hover, .order-summary-table-secondary-list[_ngcontent-%COMP%] .taxes-fees-link[_ngcontent-%COMP%]:focus, .llac-payment-card__items[_ngcontent-%COMP%] .taxes-fees-link[_ngcontent-%COMP%]:hover, .llac-payment-card__items[_ngcontent-%COMP%] .taxes-fees-link[_ngcontent-%COMP%]:focus{color:#0052a3!important;text-decoration:underline!important} .lla-tooltip{pointer-events:none!important;z-index:9999!important;max-height:none!important;overflow:visible!important} .lla-tooltip .texttooltip-temp-center, .lla-tooltip .bottom-texttooltip-temp-center, .lla-tooltip .texttooltip-center{text-align:left!important;pointer-events:auto!important;max-height:none!important;overflow:visible!important} .lla-tooltip.bottom-texttooltip-temp-center .arrow-tooltip, .lla-tooltip.texttooltip-temp-center .arrow-tooltip{left:50%!important;transform:translate(-50%)!important} .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip{pointer-events:none!important;z-index:9999!important;max-height:none!important;margin-left:31px;overflow:visible!important} .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip .list-variant{max-height:none!important;overflow:visible!important;height:auto!important} .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip.bottom-texttooltip-temp-center, .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip.texttooltip-temp-center{left:50%!important;transform:translate(-50%)!important} .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip.bottom-texttooltip-temp-center .list-variant, .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip.texttooltip-temp-center .list-variant{margin-top:8px!important;margin-bottom:0!important;left:50%!important;right:auto!important;max-height:none!important;overflow:visible!important;height:auto!important} .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip.top-texttooltip-temp-center{left:50%!important;transform:translate(-50%)!important} .tooltip-list-variant:not(.first-month-monthly-tooltip-pane) .lla-tooltip.top-texttooltip-temp-center .list-variant{margin-top:0!important;margin-bottom:8px!important;left:50%!important;right:auto!important;max-height:none!important;overflow:visible!important;height:auto!important}.llac-payment-card[_ngcontent-%COMP%]{overflow:visible!important;position:relative;z-index:1}.llac-payment-card[_ngcontent-%COMP%] .card{overflow:visible!important}.llac-payment-card[_ngcontent-%COMP%] .card__body{overflow:visible!important}.llac-payment-card__items[_ngcontent-%COMP%]{overflow:visible!important;position:relative;z-index:1}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list{overflow:visible!important;position:relative!important;z-index:100!important}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list .secondary-list{padding-left:0!important;margin-left:0!important;padding-right:0!important;overflow:visible!important;position:relative;z-index:100!important}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list .secondary-list__content{padding-left:0!important;margin-left:0!important;padding-right:0!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;text-indent:0!important;overflow:visible!important;display:flex!important}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list .secondary-list__content span:not(.taxes-fees-link){position:relative;z-index:100!important}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list .secondary-list__content span:not(.taxes-fees-link) span[llaReactiveTooltip]{pointer-events:auto!important;cursor:pointer;position:relative;z-index:101!important;display:inline-block;padding:4px 0!important;margin:-4px 0!important;transition:none!important}.tooltip-template[_ngcontent-%COMP%]{margin-right:0;max-height:435px!important;overflow-y:auto!important;overflow-x:hidden!important;width:100%;box-sizing:border-box;scrollbar-gutter:stable!important}.tooltip-template[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{text-decoration:none!important}.tooltip-template__header[_ngcontent-%COMP%]{border-radius:16px;padding:12px 0;margin:-16px 0 12px;position:sticky;top:0;background-color:#292c35;z-index:1}.tooltip-template__header.header-bg-black[_ngcontent-%COMP%]{background-color:#292c35;margin:-16px -16px 12px;padding:12px 16px;color:#fff}.tooltip-template__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:none!important}.tooltip-template__body[_ngcontent-%COMP%]{margin-bottom:8px;max-height:none!important;overflow:visible!important}.tooltip-template__body[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:none!important}.tooltip-template__items[_ngcontent-%COMP%]:last-child{margin-bottom:0}.tooltip-template__footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:12px}.tooltip-template__footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:none!important}.tooltip-template__divider[_ngcontent-%COMP%]{height:1px;background-color:#e9e9ea;border:none;width:100%;margin:12px 0!important}.tooltip-template__note[_ngcontent-%COMP%]{margin-top:12px;font-size:11px;line-height:1.5;color:#757575}.tooltip-template__note[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.primary-div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:6px}.primary-div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:none!important}.secondary-div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:3px;padding-left:0}.secondary-div[_ngcontent-%COMP%]:last-child{margin-bottom:12px}.secondary-div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:none!important}.title-el[_ngcontent-%COMP%], .sec-title-el[_ngcontent-%COMP%]{flex:1;text-align:left;text-decoration:none!important}
1.price-el[_ngcontent-%COMP%], .sec-price-el[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-shrink:0;white-space:nowrap;text-decoration:none!important}.final-price[_ngcontent-%COMP%]{flex-shrink:0;white-space:nowrap;text-decoration:none!important}.device-tax-tooltip[_ngcontent-%COMP%] .tooltip-template__body[_ngcontent-%COMP%]{margin-bottom:0!important;padding-bottom:12px!important}.device-tax-tooltip[_ngcontent-%COMP%] .tooltip-template__note[_ngcontent-%COMP%]{margin-top:12px!important;padding-top:0!important;color:#ffffffb3!important}.device-tax-tooltip[_ngcontent-%COMP%] .tooltip-template__note[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#ffffffb3!important}.device-tax-row[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;width:100%!important;margin-bottom:0!important;padding:0!important;gap:16px!important}.device-tax-label[_ngcontent-%COMP%]{text-align:left!important;flex:0 1 auto!important;color:#fff!important;order:1!important}.device-tax-price[_ngcontent-%COMP%]{text-align:right!important;margin-left:50%!important;color:#fff!important;flex:0 0 auto!important;white-space:nowrap!important;order:2!important;min-width:80px!important}.device-tax-divider[_ngcontent-%COMP%]{height:2px!important;background-color:#e9e9ea!important;border:none!important;width:100%!important;max-width:296px!important;margin:12px auto!important;opacity:1!important}.tooltip-divider[_ngcontent-%COMP%]{height:1px;background-color:#e9e9ea;border:none;width:100%;margin:12px 0}.text-align-left[_ngcontent-%COMP%]{text-align:left}.h4[_ngcontent-%COMP%]{font-size:24px;line-height:1.3}@media (min-width: 768px){.h4[_ngcontent-%COMP%]{font-size:28px}}.h2[_ngcontent-%COMP%]{font-size:36px;line-height:1;font-weight:700}@media (min-width: 768px){.h2[_ngcontent-%COMP%]{font-size:40px}}.llac-payment-card__title.b3-bold[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:1.3}.llac-payment-card__title.due-monthly-title-with-info[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;line-height:20px}.monthly-info-tooltip-host[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;line-height:0;flex-shrink:0}.monthly-info-tooltip-host[_ngcontent-%COMP%] lla-icon[_ngcontent-%COMP%]{display:inline-flex;margin:0;padding:0;line-height:0;pointer-events:none}.monthly-info-tooltip-host[_ngcontent-%COMP%] .llac-icon .wrapper-icon .mat-icon{color:#0071ce!important}.monthly-info-tooltip-host[_ngcontent-%COMP%] .llac-icon .wrapper-icon .mat-icon .ionicon-fill-none{fill:none!important;stroke:currentColor!important}.monthly-info-tooltip-host[_ngcontent-%COMP%] .llac-icon .wrapper-icon .mat-icon .ionicon-stroke-width{stroke:currentColor!important}.monthly-info-tooltip-host[_ngcontent-%COMP%] .llac-icon .wrapper-icon .mat-icon path:not(.ionicon-fill-none){fill:currentColor!important}.b4-regular[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:1.5}.llac-payment-card__amount[_ngcontent-%COMP%] .b4-bold[_ngcontent-%COMP%], .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__amount[_ngcontent-%COMP%] .b4-bold[_ngcontent-%COMP%]{font-size:28px;font-weight:700;line-height:1.5}@media (min-width: 768px){.subline-l2[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 480px){.llac-payment-summary[_ngcontent-%COMP%]{padding:0!important}.llac-payment-summary__title[_ngcontent-%COMP%]{font-size:22px;margin-bottom:16px}.llac-payment-summary__sections[_ngcontent-%COMP%]{gap:16px;margin-bottom:20px}.llac-payment-card[_ngcontent-%COMP%] .card__body{padding:24px 16px!important}.llac-payment-card__title[_ngcontent-%COMP%]{font-size:15px!important;margin-bottom:8px}.llac-payment-card__header[_ngcontent-%COMP%]{padding:16px}.llac-payment-card__divider[_ngcontent-%COMP%]{margin:0 0 14px!important}.llac-payment-card__items[_ngcontent-%COMP%]{gap:10px!important;padding:16px}.llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list, .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-card-table-list{padding:0!important;border:none!important}.llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .secondary-list__content, .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .secondary-list__content span, .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .order-summary-table-secondary-list__price-section, .llac-payment-card__items[_ngcontent-%COMP%] lla-order-summary-table-list.discount-item .price{color:#048243!important}.llac-payment-card__items[_ngcontent-%COMP%] .divider, .llac-payment-card__items[_ngcontent-%COMP%] hr{display:none!important}.llac-payment-card__items[_ngcontent-%COMP%] .secondary-list-with-border{border-bottom:none!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .card__body{padding:24px 16px!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__header[_ngcontent-%COMP%]{margin-bottom:16px!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__amount[_ng
1content-%COMP%]{color:#0071ce!important;text-align:center!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__divider[_ngcontent-%COMP%]{margin:0 0 14px!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%]{gap:8px!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-table-secondary-list, .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .order-summary-card-table-list{padding:0!important;border:none!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .divider, .llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] hr{display:none!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .llac-payment-card__items[_ngcontent-%COMP%] .secondary-list-with-border{border-bottom:none!important}}@media (max-width: 767px){.llac-payment-card[_ngcontent-%COMP%] .card__body{max-width:343px!important;padding:0!important;margin:0!important}.llac-payment-card--accordion[_ngcontent-%COMP%] .card__body{max-width:343px!important;padding:0!important;margin:0!important}}']})}};lt=(0,V.__decorate)([(0,Q.d)(),(0,V.__metadata)("design:paramtypes",[j.Ix,et.m,tt.p,Z.vXy,G._,k.E,B.ey,Z.hWh,$.mx,gt.T,_t.K,q.ClickToCallService,it.g$])],lt);const Ne=[{path:"",component:lt,canActivate:[K.uk]}];let Oe=(()=>{class o{static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({imports:[j.iI.forChild(Ne),j.iI]})}}return o})();var Ie=I(89125),Fe=I(40636);let Le=(()=>{class o{static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({providers:[et.m],imports:[W.MD,Oe,Ie.oW,J.h,Z.LnB,Fe.d]})}}return o})()},82245:(st,H,I)=>{I.d(H,{WQ:()=>W,u2:()=>K});const W={PAYMENT_SUMMARY:"Payment Summary",LINE_CONFIGURATION:"Line Configuration",BILLING_ADDRESS:"Billing Address"};function K(V,F){return!(function J(){return(window.dataLayer||[]).some(F=>"add_payment_info"===F?.event)}()||!F?.length||function j(V){return(window.dataLayer||[]).some($=>"add_shipping_info"===$?.event&&$?.step_name===V)}(V))}}}]);
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.