PageSourceSearch

https://www.masmovilpanama.com/8920.328a3e42920618b7.js

js masmovilpanama.com collected 2026-09-24 10:36:52 UTC 15,597 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkubc_consumer_main=self.webpackChunkubc_consumer_main||[]).push([[8920],{28920:(_e,_,l)=>{l.r(_),l.d(_,{MobileDetailsModule:()=>ve});var r=l(60177),y=l(89125),C=l(99227),E=l(77339),x=l(80241),p=l(73955),G=l(64878),V=l(85240),L=l(94964),e=l(54438);let B=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[r.MD,y.oW,p.h]})}}return n})();var R=l(71802),$=l(95774),N=l(77214),j=l(11620),A=l(33918),Y=l(86840),U=l(43674),F=l(7291),D=l(7901),m=l(31635),M=l(77145),I=l(93364),c=l(92427),u=l(49894),H=l(61594),P=l(69814);const X={[c.sLh.Portability]:{label:"MOBILE.CATEGORY.PORTABILITY",titleSubtitle:{title:{body:"MOBILE_DETAILS.TITLE",class:"mobile-details__title"},subtitle:{body:"MOBILE.PRODUCT_LIST.PAGE_SUBTITLE",class:"mobile-details__subtitle"}},value:c.sLh.Portability,data:{discount:!0}},[c.sLh.NewLine]:{label:"MOBILE.CATEGORY.NEW_LINE",titleSubtitle:{title:{body:"MOBILE_DETAILS.TITLE",class:"mobile-details__title"},subtitle:{body:"MOBILE.PRODUCT_LIST.PAGE_SUBTITLE",class:"mobile-details__subtitle"}},value:c.sLh.NewLine,data:{discount:!1}}};var W=l(88816);let S=(()=>{class n{constructor(t,a){this.mobileDetailsStoreService=t,this.publicActions=a}retrieveSelectedItems(){return this.mobileDetailsStoreService.retrieveSelectedItems()}updateSelectedDevice(t){return this.mobileDetailsStoreService.updateSelectedDevice(t)}static{this.\u0275fac=function(a){return new(a||n)(e.KVO(W.r),e.KVO(C.aEk))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Q=l(11228),k=l(25460),z=l(42652),J=l(44274),K=l(63249),Z=l(46204),w=l(98326),q=l(43768),ee=l(84572),O=l(69036),T=l(86369);function te(n,i){if(1&n){const t=e.RV6();e.j41(0,"lla-add-on",2),e.nI1(1,"translate"),e.bIt("addOnUpdatedStepperValue",function(s){const o=e.eBV(t).$implicit,h=e.XpG();return e.Njj(h.updatePlans(s,o))}),e.k0s()}if(2&n){const t=i.$implicit;e.Y8G("addOnAdditionalInfo",e.bMT(1,9,"MOBILE.DEVICE_LIST.DEVICE_PLAN_DURATION"))("addOnDescription",t.content.subTitle)("addOnName",t.content.body||"")("addOnPrice",t.content.price)("stepperCurrentValue",0)("stepperId",t.id)("stepperMaxLimit",5)("stepperMinLimit",0)("stepperRangeValue",1)}}let g=class v{constructor(i){this.mobileDetailsService=i,this.plansOptions=[],this.selectedPlans={},this.discountApplicable=!1,this.selectPlanHandler=new e.bkB}ngOnInit(){this.getPlansOptions(),(0,ee.z)([this.mobileDetailsService.retrieveCategoryConfig(),this.mobileDetailsService.retrievePageConfig()]).subscribe(([i,t])=>{this.discountApplicable=!!t[i.selected.value]?.data?.discount})}getStandardPrice(i){return i.price.filter(({name:t})=>t===c.fWi.STANDARD)[0]}getPlansOptions(){this.plansOptions=[],this.plans.forEach(i=>{this.plansOptions.push({checked:!1,id:i.code,content:{price:this.getStandardPrice(i).formattedValue,body:`${i.name}`,subTitle:i.productSpecCharValueUses[0].value}}),this.selectedPlans[i.name]={quantity:0,name:i.name,price:this.getStandardPrice(i).formattedValue,type:"plan",code:i.code,showQuantity:!1,isMultiline:!1,category1:"",category2:"",category3:""}})}updateSelectPlanContent(){Object.values(this.selectedPlans).forEach((i,t,a)=>{const s=this.plans.findIndex(d=>d.name===i.name);i=a.reduce((d,fe)=>d+fe.quantity,0)>3&&(Object.keys(this.selectedPlans).length>1||i.quantity>1)?{...i,price:this.plans[s].price[1].formattedValue}:{...i,price:this.plans[s].price[0].formattedValue};const h=this.plansOptions.findIndex(d=>d.content.body===i.name);this.plansOptions[h].content.price=i.price,this.selectedPlans[i.name]={...i}}),this.selectPlanHandler.emit(Object.values(this.selectedPlans))}updatePlans(i,t){const a=this.plans.findIndex(s=>s.name===t.content.body);if(i.value)this.selectedPlans[t.content.body||""]={quantity:i.value,name:t.content.body||"",price:t.content.price||"",c2cProductName:this.plans[a].c2cProductName,type:"plan",code:t.id,showQuantity:!0,isMultiline:!1,category1:"",category2:"",category3:""};else{const s=this.plansOptions.findIndex(o=>o.content.body===t.content.body);this.plansOptions[s].content.price=this.plans[a].price[0].formattedValue,delete this.selectedPlans[t.content.body||""]}this.updateSelectPlanContent()}static{this.\u0275fac=function(t){return new(t||v)(e.rXU(O.q))}}static{this.\u0275cmp=e.VBU({type:v,selectors:[["lla-mobile-details-multiple-plan-selection"]],inputs:{plans:"plans"},outputs:{selectPlanHandler:"selectPlanHandler"},standalone:!1,decls:2,vars:1,consts:[[1,"details-multiple-plan-selection"],["class","details-multiple-plan-selection__item",3,"addOnAdditionalInfo","addOnDescription","addOnName","addOnPrice","stepperCurrentValue","stepperId","stepperMaxLimit","stepperMinLimit","stepperRangeValue","addOnUpdatedStepperValue",4,"ngFor","ngForOf"],[1,"details-multiple-plan-selection__item",3,"addOnUpdatedStepperValue","addOnAdditionalInfo","addOnDescription","addOnName","addOnPrice","stepperCurrentValue","stepperId","stepperMaxLimit","stepperMinLimit","stepperRangeValue"]],template:function(t,a){1&t&&(e.j41(0,"div",0),e.DNE(1,te,2,11,"lla-add-on",1),e.k0s()),2&t&&(e.R7$(),e.Y8G("ngForOf",a.plansOptions))},dependencies:[r.Sq,T.Q,p.D9],styles:[".details-multiple-plan-selection[_ngcontent-%COMP%]{display:grid;max-width:1080px;grid-template-columns:repeat(3,1fr);grid-template-rows:auto;grid-gap:32px;margin:0 auto 32px}@media screen and (max-width: 960px){.details-multiple-plan-selection[_ngcontent-%COMP%]{display:block}}"]})}};g=(0,m.__decorate)([(0,u.d)(),(0,m.__metadata)("design:paramtypes",[O.q])],g);var ie=l(73284),ne=l(72025),le=l(2767);const ae=()=>["Arriendo equipo","Compra equipo"];function se(n,i){if(1&n){const t=e.RV6();e.j41(0,"lla-button-group",14),e.bIt("optionSelected",function(s){e.eBV(t);const o=e.XpG();return e.Njj(o.onCategorySelected(s))}),e.k0s()}if(2&n){const t=i.ngIf;e.Y8G("activeBtn",t.selected)("buttonGroupConfig",t.list)}}function oe(n,i){if(1&n&&e.nrm(0,"lla-title-subtitle",16),2&n){const t=i.ngIf,a=e.XpG().ngIf,s=e.XpG();e.Y8G("marginBottom",20)("subtitle",s.createSubtitle(t.subtitle,a.name))("title",t.title)}}function ce(n,i){if(1&n&&(e.qex(0),e.DNE(1,oe,1,3,"lla-title-subtitle",15),e.nI1(2,"async"),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,t.titleConfig$))}}function re(n,i){if(1&n&&(e.nrm(0,"lla-mobile-details-image-gallery",18),e.nI1(1,"assetTransform")),2&n){const t=e.XpG().ngIf,a=e.XpG();e.Y8G("imageGalleryDetails",t.imageGalleryDetails)("colorDots",t.colorDots)("networkImage",e.i5U(1,4,"../../../../../assets/net
1work.jpg",a.appName))("dotsMargin","insert-margin")}}function de(n,i){if(1&n&&(e.qex(0),e.DNE(1,re,2,7,"lla-mobile-details-image-gallery",17),e.bVm()),2&n){const t=i.ngIf;e.R7$(),e.Y8G("ngIf",t.imageGalleryDetails)}}function pe(n,i){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",23)(2,"lla-mobile-details-payment-plans",24),e.bIt("optionSelected",function(s){e.eBV(t);const o=e.XpG(2);return e.Njj(o.handlePaymentPlanSelected(s))}),e.k0s()(),e.bVm()}if(2&n){const t=e.XpG().ngIf;e.R7$(2),e.Y8G("prices",t.price)("monthlyFee",t.monthlyFee)("headings",e.lJ4(3,ae))}}function me(n,i){if(1&n&&(e.qex(0),e.nrm(1,"lla-view-characteristics",25),e.bVm()),2&n){const t=i.ngIf;e.R7$(),e.Y8G("productCode",t.code)("productName",t.name)}}function ue(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",19)(1,"lla-add-on",20),e.nI1(2,"translate"),e.bIt("addOnUpdatedStepperValue",function(s){e.eBV(t);const o=e.XpG();return e.Njj(o.updateDeviceQuantity(s.value))}),e.k0s(),e.DNE(3,pe,3,4,"ng-container",4),e.nI1(4,"async"),e.j41(5,"div",21),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,me,2,2,"ng-container",4),e.nI1(9,"async"),e.j41(10,"lla-button",22),e.nI1(11,"translate"),e.bIt("clickHandler",function(){e.eBV(t);const s=e.XpG();return e.Njj(s.continueWithPlans=!s.continueWithPlans)}),e.k0s()()}if(2&n){const t=i.ngIf,a=e.XpG();e.R7$(),e.Y8G("addOnPrice",e.bMT(2,10,"MOBILE.DEVICE_LIST.DEVICE_QUANTITY_DESCRIPTION"))("stepperId",t.code)("stepperMaxLimit",5)("stepperMinLimit",1)("stepperCurrentValue",a.deviceCounterCurrentValue)("stepperRangeValue",1),e.R7$(2),e.Y8G("ngIf",e.bMT(4,12,a.categoryGroupConfig$)),e.R7$(3),e.SpI(" ",e.bMT(7,14,"MOBILE_DETAILS.DISCLAIMER")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(9,16,a.deviceDetails$)),e.R7$(2),e.Y8G("text",e.bMT(11,18,"MOBILE_DETAILS.CONTINUE"))}}function ge(n,i){if(1&n){const t=e.RV6();e.j41(0,"lla-mobile-details-multiple-plan-selection",26),e.bIt("selectPlanHandler",function(s){e.eBV(t);const o=e.XpG();return e.Njj(o.handlePlanSelected(s))}),e.k0s()}2&n&&e.Y8G("plans",i.ngIf.plans)}let b=class f{constructor(i,t,a,s){this.mobileDetailsService=i,this.vtrBusinessMobileDetailsService=t,this.seoService=a,this.marketConfigService=s,this.deviceCounterCurrentValue=1,this.continueWithPlans=!1,this.isB2bCmsParams=!1}ngOnInit(){this.vtrBusinessMobileDetailsService.initPageConfig({page:X,cards:null}),this.vtrBusinessMobileDetailsService.retrieveCMSParams().pipe((0,H.$)(),(0,u.s)(this)).subscribe(i=>{this.isB2bCmsParams=!0,i.category2&&this.vtrBusinessMobileDetailsService.initCmsConfig(i.category2)}),this.isB2bCmsParams||this.vtrBusinessMobileDetailsService.initCmsConfig(),this.vtrBusinessMobileDetailsService.loadMobileDetails(),this.seoService.getPlpSEO(),this.titleConfig$=this.vtrBusinessMobileDetailsService.retrieveTitleConfig(),this.categoryGroupConfig$=this.vtrBusinessMobileDetailsService.retrieveCategoryConfig(),this.deviceDetails$=this.vtrBusinessMobileDetailsService.retrieveDeviceDetails(),this.configDetails$=this.vtrBusinessMobileDetailsService.retrieveDetailsConfig(),this.mobileDetailsService.retrieveSelectedItems().pipe((0,u.s)(this)).subscribe(i=>{this.selectedItems=i}),this.B2bAppName=this.marketConfigService.getConfig().app}onCategorySelected(i){this.vtrBusinessMobileDetailsService.updateCategoryConfig({category1:c.JZH.DEVICE_DETAILS,category2:i.value})}createSubtitle(i,t){return{...i,body:t}}handlePlanSelected(i){this.vtrBusinessMobileDetailsService.updateSelectedPlans(i)}handlePaymentPlanSelected(i){this.mobileDetailsService.updateSelectedDevice({...this.selectedItems.device,price:i.content.price})}updateDeviceQuantity(i){this.mobileDetailsService.updateSelectedDevice({...this.selectedItems.device,quantity:i})}static{this.\u0275fac=function(t){return new(t||f)(e.rXU(S),e.rXU(P.Q),e.rXU(M.ProductCatalogueSeoService),e.rXU(I.ey))}}static{this.\u0275cmp=e.VBU({type:f,selectors:[["lla-mobile-details"]],standalone:!1,decls:26,vars:31,consts:[[1,"mobile-details"],[3,"contentMargin"],["ngProjectAs","page-header",5,["page-header"]],[3,"activeBtn","buttonGroupConfig","optionSelected",4,"ngIf"],[4,"ngIf"],["ngProjectAs","page-products",5,["page-products"]],[1,"mobile-details__top"],[1,"mobile-details__top--left","hide_plans"],["class","mobile-details__top--right",4,"ngIf"],[1,"mobile-details__middle"],[1,"mobile-details__payment-methods",3,"appName"],[1,"title-plans","primary-font-bold"],[3,"plans","selectPlanHandler",4,"ngIf"],[1,"mobile-details__sticky-modal",3,"stickyBodyCss","labelCss","selectedProductInformationCss","changeDeviceLinkCss","priceCss"],[3,"optionSelected","activeBtn","buttonGroupConfig"],[3,"marginBottom","subtitle","title",4,"ngIf"],[3,"marginBottom","subtitle","title"],[3,"imageGalleryDetails","colorDots","networkImage","dotsMargin",4,"ngIf"],[3,"imageGalleryDetails","colorDots","networkImage","dotsMargin"],[1,"mobile-details__top--right"],[1,"mobile-details__payment-method-counter",3,"addOnUpdatedStepperValue","addOnPrice","stepperId","stepperMaxLimit","stepperMinLimit","stepperCurrentValue","stepperRangeValue"],[1,"mobile-details__disclaimer","primary-font-regular"],["types","primary","buttonSize","large",1,"mobile-details__btn-continue",3,"clickHandler","text"],[1,"mobile-details__payment-section--right"],[3,"optionSelected","prices","monthlyFee","headings"],[1,"mobile-details__additional-features","primary-font-regular","hide_plans",3,"productC
1ode","productName"],[3,"selectPlanHandler","plans"]],template:function(t,a){1&t&&(e.j41(0,"section",0)(1,"lla-dynamic-content-page",1),e.qex(2,2),e.j41(3,"div"),e.DNE(4,se,1,2,"lla-button-group",3),e.nI1(5,"async"),e.DNE(6,ce,3,3,"ng-container",4),e.nI1(7,"async"),e.k0s(),e.bVm(),e.qex(8,5),e.j41(9,"div")(10,"section",6)(11,"div",7),e.DNE(12,de,2,1,"ng-container",4),e.nI1(13,"async"),e.k0s(),e.DNE(14,ue,12,20,"div",8),e.nI1(15,"async"),e.k0s(),e.j41(16,"div",9),e.nrm(17,"lla-mobile-details-payment-methods",10),e.k0s()(),e.j41(18,"div")(19,"h2",11),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,ge,1,1,"lla-mobile-details-multiple-plan-selection",12),e.nI1(23,"async"),e.k0s(),e.bVm(),e.k0s()(),e.j41(24,"lla-sticky-modal"),e.nrm(25,"lla-mobile-details-sticky-modal",13),e.k0s()),2&t&&(e.R7$(),e.Y8G("contentMargin","discard-margin"),e.R7$(2),e.HbH("mobile-details"+(a.continueWithPlans?" hide_plans":" show_plans")),e.R7$(),e.Y8G("ngIf",e.bMT(5,19,a.categoryGroupConfig$)),e.R7$(2),e.Y8G("ngIf",e.bMT(7,21,a.deviceDetails$)),e.R7$(3),e.HbH("mobile-details"+(a.continueWithPlans?" hide_plans":" show_plans")),e.R7$(3),e.Y8G("ngIf",e.bMT(13,23,a.configDetails$)),e.R7$(2),e.Y8G("ngIf",e.bMT(15,25,a.deviceDetails$)),e.R7$(3),e.Y8G("appName",a.B2bAppName),e.R7$(),e.HbH("mobile-details__plans"+(a.continueWithPlans?" show_plans":" hide_plans")),e.R7$(2),e.SpI(" ",e.bMT(21,27,"MOBILE_PLAN_TYPE.TITLE")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(23,29,a.deviceDetails$)),e.R7$(3),e.Y8G("stickyBodyCss","sticky-body")("labelCss","b2b-label")("selectedProductInformationCss","b2b-item")("changeDeviceLinkCss","b2b-change-device")("priceCss","b2b-price"))},dependencies:[r.bT,Q.h,k.j,z.O,J.I,K.D,Z.l,w.s,q.i,g,ie.X,ne.u,T.Q,r.Jj,p.D9,le.v],styles:[".mobile-details__top[_ngcontent-%COMP%]{margin:auto;display:grid;grid-template-columns:750px 328px;width:fit-content;grid-gap:0 16px}.mobile-details__middle[_ngcontent-%COMP%]{margin:36px auto 90px;max-width:766px}.mobile-details__btn-continue[_ngcontent-%COMP%]{display:none}.mobile-details__plans[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{text-align:center;font-size:34px;line-height:40px;margin-bottom:35px}.mobile-details[_ngcontent-%COMP%]   .hide_plans[_ngcontent-%COMP%]{display:initial}.mobile-details__disclaimer[_ngcontent-%COMP%]{margin:32px 20px 24px}.mobile-details__additional-features[_ngcontent-%COMP%]{display:block;color:var(--primary-400);font-weight:700;margin:auto;width:fit-content;cursor:pointer;text-align:center}@media screen and (max-width: 960px){.mobile-details__btn-continue[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.mobile-details__top[_ngcontent-%COMP%]{display:block}.mobile-details__payment-section[_ngcontent-%COMP%]{margin:0 16px}.mobile-details[_ngcontent-%COMP%]   .title-plans[_ngcontent-%COMP%]{font-size:30px;line-height:40px;text-align:start}.mobile-details[_ngcontent-%COMP%]   .hide_plans[_ngcontent-%COMP%]{display:none}.mobile-details[_ngcontent-%COMP%]   .show_plans[_ngcontent-%COMP%]{display:block}.mobile-details__middle[_ngcontent-%COMP%]{margin:0}}"]})}};b=(0,m.__decorate)([(0,u.d)(),(0,m.__metadata)("design:paramtypes",[S,P.Q,M.ProductCatalogueSeoService,I.ey])],b);const be=[{path:"",component:b}];let he=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[D.iI.forChild(be),D.iI]})}}return n})(),ve=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[r.MD,G.q,V.u,N.p,he,R.F,L.u,A.S,$.Z,j.r,B,x.md.forFeature(F.x,U.F),E.Vm.forFeature([Y.H]),y.oW,p.h,C.LnB]})}}return n})()}}]);

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