PageSourceSearch

https://www.libertyvi.com/4342.167204392145f82a.js

js libertyvi.com collected 2026-09-26 09:24:42 UTC 12,072 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkubc_consumer_main=self.webpackChunkubc_consumer_main||[]).push([[4342],{4342:(se,C,n)=>{n.r(C),n.d(C,{MobileDevicesModule:()=>ae});var p=n(60177),_=n(6629),D=n(73955),P=n(64878),N=n(85240),B=n(57836),G=n(45771),V=n(65928),A=n(47580),R=n(11620),v=n(51188),T=n(31635),I=n(77145),E=n(93364),r=n(62820),x=n(49894),b=n(88141),g=n(9912),F=n(84572),j=n(96354),Y=n(40369),U=n(86713),y=n(45817),$=n(21310);const M=[{list:[{value:"",label:"BRAND"}],selected:{value:"",label:"BRAND"}},{list:[{value:r.Ydw.ASCENDING,label:"MOBILE.DEVICE_LIST.SORT_ASCENDING"},{value:r.Ydw.DESCENDING,label:"MOBILE.DEVICE_LIST.SORT_DESCENDING"}],selected:{value:r.Ydw.ASCENDING,label:"MOBILE.DEVICE_LIST.SORT_ASCENDING"}}],X={[r.sLh.Portability]:{label:"MOBILE.CATEGORY.PORTABILITY",titleSubtitle:{title:{body:"MOBILE.DEVICE_LIST.TITLE",class:"plp-category-title-1"},subtitle:{body:"MOBILE.DEVICE_LIST.SUBTITLE",class:"plp-category-subtitle-1"}},filters:M,value:r.sLh.Portability},[r.sLh.NewLine]:{label:"MOBILE.CATEGORY.NEW_LINE",titleSubtitle:{title:{body:"MOBILE.DEVICE_LIST.OPTIONAL_TITLE",class:"plp-category-title-1"},subtitle:{body:"MOBILE.DEVICE_LIST.SUBTITLE",class:"plp-category-subtitle-1"}},value:r.sLh.NewLine,filters:M}};var e=n(54438);let L=(()=>{class o{constructor(t,i,l,s,c){this.catalogueStoreService=t,this.productCatalogueStoreService=i,this.productsStoreService=l,this.translationService=s,this.productCatalogService=c}initCategoryConfig({category1:t,category2:i}){this.catalogueStoreService.initCategoryConfig({category1:t,category2:i}),this.catalogueStoreService.loadMarketingContent({category1:t})}loadDevices(){this.productsStoreService.loadDevices()}retrieveFilteredDevices(){return(0,F.z)([this.productsStoreService.retrieveDevices().pipe((0,g.jPx)()),this.catalogueStoreService.retrieveFiltersConfig()]).pipe((0,j.T)(([t,i])=>{let l=JSON.parse(JSON.stringify(t));return l=this.sortAscendingDescending(l,i),l=this.sortByManufacturer(l,i),l}))}getNavigationDropdownConfig(){return[{value:r.DHz.EquipoPlusPlan,label:this.translationService.getTranslation("MOBILE.PRODUCT_LIST.TYPE_DUO_PLAN")},{value:r.DHz.SoloPlan,label:this.translationService.getTranslation("MOBILE.PRODUCT_LIST.TYPE_SINGLE_PLAN")}]}retrievePageData(){return this.catalogueStoreService.retrievePageData()}updateCategoryConfig(t){this.catalogueStoreService.updateCategoryConfig(t)}loadCMSContent(t){this.catalogueStoreService.loadMarketingContent(t)}initPageConfig(){this.productCatalogueStoreService.initPageConfig({cards:null,page:X})}retrieveCategoryConfig(){return this.catalogueStoreService.retrieveCategoryConfig()}retrieveFiltersConfig(){return this.catalogueStoreService.retrieveFiltersConfig()}retrieveTitleConfig(){return this.catalogueStoreService.retrieveTitleSubtitle()}selectDevice(t,i){this.productCatalogService.updateSelectedDevice(t,(t.selectedVariantMatrix||t.variantMatrix[0]).code,i)}updateSelectedFilterOption(t){this.catalogueStoreService.updateSelectedFilterOption(t)}initManufacturerFilters(t,i){return t.map((l,s)=>0===s?{list:l.list.concat(this.prepareListOFManufacturerOptions(i)),selected:l.selected}:l)}sortAscendingDescending(t,i){return t.sort((l,s)=>i[1].selected.value===r.Ydw.ASCENDING?this.getDevicePrice(l).price-this.getDevicePrice(s).price:this.getDevicePrice(s).price-this.getDevicePrice(l).price)}getDevicePrice(t){return t.devicePriceList.find(i=>i.mobilePriceType===r.fqO.MINIMUM_RENT)||{}}sortByManufacturer(t,i){return i[0].list.length>1?i[0].selected.value?t.filter(s=>s.manufacturer===i[0].selected.value):t:(this.catalogueStoreService.replaceFiltersConfig(this.initManufacturerFilters(i,t)),t)}prepareListOFManufacturerOptions(t){return[...new Set(t.map(i=>i.manufacturer))].map(i=>({value:i,label:i}))}static{this.\u0275fac=function(i){return new(i||o)(e.KVO(U.M),e.KVO(y.Z),e.KVO($.V),e.KVO(g.vXy),e.KVO(Y.m))}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var H=n(95671),K=n(43768),w=n(25460),J=n(11228),W=n(20682),z=n(17874),Z=n(24420);function Q(o,a){if(1&o){const t=e.RV6();e.j41(0,"lla-button-group",8),e.bIt("optionSelected",function(l){e.eBV(t);const s=e.XpG();return e.Njj(s.onCategorySelected(l))}),e.k0s()}if(2&o){const t=a.ngIf;e.Y8G("activeBtn",t.selected)("buttonGroupConfig",t.list)}}function k(o,a){if(1&o&&e.nrm(0,"lla-title-subtitle",9),2&o){const t=a.ngIf;e.Y8G("marginBottom",24)("marginTop",-20)("subtitle",t.subtitle)("title",t.title)}}function q(o,a){if(1&o){const t=e.RV6();e.j41(0,"lla-select-dropdown",10),e.bIt("selectedOption",function(l){e.eBV(t);const s=e.XpG();return e.Njj(s.onNavigationDropdownClicked(l))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("options",t.navigationDropdownConfig)("selected",t.navigationDropdownConfig[0].value)}}function ee(o,a){if(1&o){const t=e.RV6();e.j41(0,"lla-dynamic-filters",11),e.bIt("optionSelected",function(l){e.eBV(t);const s=e.XpG();return e.Njj(s.onFilterSelected(l))}),e.k0s()}if(2&o){const t=a.ngIf;e.XpG();const i=e.sdS(12);
1e.Y8G("filters",t)("labelTemplate",i)("width",288)}}function te(o,a){if(1&o){const t=e.RV6();e.j41(0,"lla-dynamic-device-list",12),e.bIt("handleColorSelected",function(l){e.eBV(t);const s=e.XpG();return e.Njj(s.handleColorSelected(l))})("handleDeviceSelect",function(l){e.eBV(t);const s=e.XpG();return e.Njj(s.handleDeviceSelect(l))}),e.k0s()}2&o&&e.Y8G("deviceList",a.ngIf)}function ie(o,a){1&o&&(e.nrm(0,"lla-filters-label",13),e.nI1(1,"translate")),2&o&&e.Y8G("text",e.bMT(1,1,"MOBILE.DEVICE_LIST.SECONDARY_TITLE"))}let S=class f{constructor(a,t,i,l){this.deviceService=a,this.seoService=t,this.router=i,this.marketConfigService=l}ngOnInit(){this.navigationDropdownConfig=this.deviceService.getNavigationDropdownConfig(),this.deviceService.initCategoryConfig({category1:r.JZH.MOBILE_DEVICES,category2:r.sLh.Portability}),this.deviceService.loadDevices(),this.deviceService.initPageConfig(),this.seoService.getPlpSEO(),this.devices$=this.deviceService.retrieveFilteredDevices().pipe((0,b.M)(a=>this.devices=a)),this.categoryGroupConfig$=this.deviceService.retrieveCategoryConfig().pipe((0,b.M)(a=>this.selectedPlan=a.selected.value)),this.titleConfig$=this.deviceService.retrieveTitleConfig(),this.filtersConfig$=this.deviceService.retrieveFiltersConfig()}onCategorySelected(a){this.deviceService.updateCategoryConfig({category1:r.JZH.MOBILE_PLANS,category2:a.value})}onFilterSelected(a){this.deviceService.updateSelectedFilterOption(a)}onNavigationDropdownClicked(a){a.value===r.DHz.SoloPlan&&this.router.navigate([this.marketConfigService.getMarketToRouteData().plpMobilePlans])}handleDeviceSelect(a){if(a.btnDisabled)return;const t=this.devices.find(i=>i.code===a.code)||{};this.deviceService.selectDevice(t,this.selectedPlan),this.router.navigate([this.marketConfigService.getMarketToRouteData().pdpMobileDetails],{queryParams:{code:t.code}})}handleColorSelected({index:a,deviceCard:t}){this.devices.forEach(i=>{i.code===t.code&&(i.selectedVariantMatrix=i.variantMatrix[a])})}static{this.\u0275fac=function(t){return new(t||f)(e.rXU(L),e.rXU(I.ProductCatalogueSeoService),e.rXU(v.Ix),e.rXU(E.ey))}}static{this.\u0275cmp=e.VBU({type:f,selectors:[["lla-product-listing"]],standalone:!1,decls:13,vars:13,consts:[["filtersLabelTemplate",""],[1,"mobile-devices"],["ngProjectAs","page-header",5,["page-header"]],["class","mobile-devices__btn-group",3,"activeBtn","buttonGroupConfig","optionSelected",4,"ngIf"],["class","mobile-devices__title-subtitle",3,"marginBottom","marginTop","subtitle","title",4,"ngIf"],["class","mobile-devices__navigation-dropdown",3,"options","selected","selectedOption",4,"ngIf"],["class","mobile-devices__filters",3,"filters","labelTemplate","width","optionSelected",4,"ngIf"],["class","mobile-devices__device-list","ngProjectAs","page-products",5,["page-products"],3,"deviceList","handleColorSelected","handleDeviceSelect",4,"ngIf"],[1,"mobile-devices__btn-group",3,"optionSelected","activeBtn","buttonGroupConfig"],[1,"mobile-devices__title-subtitle",3,"marginBottom","marginTop","subtitle","title"],[1,"mobile-devices__navigation-dropdown",3,"selectedOption","options","selected"],[1,"mobile-devices__filters",3,"optionSelected","filters","labelTemplate","width"],["ngProjectAs","page-products",5,["page-products"],1,"mobile-devices__device-list",3,"handleColorSelected","handleDeviceSelect","deviceList"],["iconUrl","/assets/logo/leaf.svg",3,"text"]],template:function(t,i){1&t&&(e.j41(0,"lla-dynamic-content-page",1),e.qex(1,2),e.DNE(2,Q,1,2,"lla-button-group",3),e.nI1(3,"async"),e.DNE(4,k,1,4,"lla-title-subtitle",4),e.nI1(5,"async"),e.DNE(6,q,1,2,"lla-select-dropdown",5)(7,ee,1,3,"lla-dynamic-filters",6),e.nI1(8,"async"),e.bVm(),e.DNE(9,te,1,1,"lla-dynamic-device-list",7),e.nI1(10,"async"),e.k0s(),e.DNE(11,ie,2,3,"ng-template",null,0,e.C5r)),2&t&&(e.R7$(2),e.Y8G("ngIf",e.bMT(3,5,i.categoryGroupConfig$)),e.R7$(2),e.Y8G("ngIf",e.bMT(5,7,i.titleConfig$)),e.R7$(2),e.Y8G("ngIf",null==i.navigationDropdownConfig?null:i.navigationDropdownConfig.length),e.R7$(),e.Y8G("ngIf",e.bMT(8,9,i.filtersConfig$)),e.R7$(2),e.Y8G("ngIf",e.bMT(10,11,i.devices$)))},dependencies:[p.bT,H.P,K.i,w.j,J.h,W.E,z.P,Z.L,p.Jj,D.D9],styles:[".mobile-devices__navigation-dropdown[_ngcontent-%COMP%]{max-width:314px;margin:0 auto 62px}.mobile-devices__filters[_ngcontent-%COMP%]{max-width:1048px;margin:0 auto}"]})}};S=(0,T.__decorate)([(0,x.d)(),(0,T.__metadata)("design:paramtypes",[L,I.ProductCatalogueSeoService,v.Ix,E.ey])],S);const oe=[{path:"",children:[{path:"",component:S}]}];let ne=(()=>{class o{static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({imports:[v.iI.forChild(oe),v.iI]})}}return o}
1)(),le=(()=>{class o{constructor(t,i,l){this.translateService=t,this.publicActions=i,this.productCatalogueStoreService=l}prepareDevices(t){return t.map(({manufacturer:i,name:l,newFlag:s,devicePriceList:c,variantMatrix:h,code:m})=>{const[d,u]=c,re=this.translateService.getTranslation(this.getDeviceBoxesTextOptions()[u.mobilePriceType].title),O=r.yhD.OutOfStock===h[0].stockLevelStatus;return{code:m,badgeContent:s?this.translateService.getTranslation("MOBILE.DEVICE_LIST.NEW"):"",brandName:i,badgeType:r.vEW.FEATURE,btnDisabled:O,btnText:this.getButtonText(O),componentLayout:r._1$.FixedWidth,darkMode:!1,devices:this.getDevices(h),additionalCharsLabel:this.translateService.getTranslation("MOBILE.DEVICE_LIST.ADDITIONAL_CHARACTERISTICS"),initialPrice:{title:re,actualPrice:u.formattedValue,originalPriceText:""},totalPrice:this.getTotalPriceData(this.getDeviceBoxesTextOptions()[d.mobilePriceType].title,d),numberOfDevices:t.length,phoneModel:l}})}handleGhostLinkClick(t){this.productCatalogueStoreService.dispatchExternalAction(this.publicActions[r.DPG.ShowSidePanel],{title:t.phoneModel,type:r.lms.AdditionalCharacteristics,data:{code:t.code,buttonGroupSelectedId:""}})}getTotalPriceData(t,i){return{title:this.translateService.getTranslation(t),actualPrice:i.formattedValue||"$"+i.price}}getDeviceBoxesTextOptions(){return{[r.fqO.BUY]:{title:this.translateService.getTranslation("PRODUCT_LISTING.BUY"),subtitle:this.translateService.getTranslation("PRODUCT_LISTING.BUYS")},[r.fqO.MINIMUM_RENT]:{title:this.translateService.getTranslation("PRODUCT_LISTING.PDP_INITIAL_PAYMENT"),subtitle:this.translateService.getTranslation("PRODUCT_LISTING.RENT")}}}getDevices(t){return t.map(({color:i,imageUrl:l,altText:s,stockLevelStatus:c})=>{const d=r.yhD.OutOfStock===c;return{color:i,imageList:[{path:l,altTag:s}],stockStatus:d,btnText:this.getButtonText(d)}})}getButtonText(t){return this.translateService.getTranslation(t?"MOBILE.DEVICE_LIST.BTN_DISABLED_TEXT":"MOBILE.DEVICE_LIST.CARD_SUBMIT_TEXT")}static{this.\u0275fac=function(i){return new(i||o)(e.KVO(g.vXy),e.KVO(g.aEk),e.KVO(y.Z))}}static{this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac})}}return o})(),ae=(()=>{class o{static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275mod=e.$C({type:o})}static{this.\u0275inj=e.G2t({providers:[{provide:G.B,useClass:le}],imports:[p.MD,_.oW,ne,D.h,R.r,N.u,P.q,V.F,B.a,A.i]})}}return o})()}}]);

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.