1import{a as Ae,b as Pe}from"./chunk-4JSXS25K.js";import"./chunk-VJTQY6UX.js";import"./chunk-7U4G3IDZ.js";import{b as Se}from"./chunk-HWZ4F4PK.js";import{a as ye}from"./chunk-GVFFMUQG.js";import"./chunk-LK56TUOZ.js";import{a as De}from"./chunk-6C4WHCZQ.js";import{a as Te}from"./chunk-S6O3YYMP.js";import"./chunk-IZ3JBDR5.js";import"./chunk-4PH7MLCE.js";import"./chunk-UNVQ5NXZ.js";import{a as xe,f as H}from"./chunk-6P5FJ3ME.js";import"./chunk-KJKOVUXC.js";import{a as be,c as Be}from"./chunk-PSPL2KL4.js";import"./chunk-D2J64VUP.js";import"./chunk-UNG4Z4QB.js";import{g as fe}from"./chunk-SNGOU643.js";import"./chunk-HYCLKCRN.js";import"./chunk-UISGJ2GT.js";import"./chunk-H3FC7ZI2.js";import{g as Y,l as W,y as j}from"./chunk-H5UP2OAC.js";import"./chunk-YVHMR5AX.js";import"./chunk-4WV4YYVY.js";import"./chunk-HPPOTNKQ.js";import{a as K}from"./chunk-5DMHZ3E6.js";import{a as q,n as ve}from"./chunk-VUASBBXJ.js";import"./chunk-O6L37FVV.js";import"./chunk-EN33RNOB.js";import"./chunk-YGRMDJRB.js";import{a as pe}from"./chunk-55WYSX2S.js";import{E as ue,F as Ce,G as _e,H as F,Ha as z,N as ge,b as V,ra as he,ua as U}from"./chunk-MGYJXOAP.js";import{a as p,b as R}from"./chunk-THXBBYWB.js";import{O as me}from"./chunk-J4K66FRB.js";import{Cc as L,Dc as I,Ea as ie,Ec as N,Gb as oe,Hb as c,Ib as d,Ic as ce,Jc as J,Kb as O,Lb as w,Mb as M,Nb as C,Nc as g,Ob as r,Oc as v,Pb as s,Pc as de,Qb as _,Xa as X,Xb as D,Ya as ne,ac as f,bb as n,cc as o,ma as y,mb as b,na as S,pc as A,qc as u,rc as T,sb as P,sc as h,vb as le,wc as ae,xc as re,yc as se}from"./chunk-7DQSQO6M.js";import{a as ee,b as te}from"./chunk-EQDQRRRY.js";var Q=(function(t){return t.EN="English",t.RS="Serbian",t.BA="Bosnian",t.ME="Montenegrin",t.SI="Slovenian",t.HR="Croatian",t.GR="Greek",t})(Q||{});function Fe(t,a){if(t&1&&(r(0,"mat-option",2),u(1),s()),t&2){let e=a.$implicit;C("value",e.value),n(),h(" ",e.name," ")}}var we=(()=>{class t{onSelection(e){this.selectedLanguage=e,this.trs.set_language(e)}constructor(e){this.trs=e,this.languages=[{name:"",value:""}],this.selectedLanguage=""}ngOnInit(){this.languages=this.trs.languages.map(e=>({name:Q[e],value:e})),this.selectedLanguage=this.trs.currentLang}static{this.\u0275fac=function(i){return new(i||t)(b(U))}}static{this.\u0275cmp=P({type:t,selectors:[["app-lang-selection"]],decls:4,vars:1,consts:[["appearance","fill",1,"select-type","language-select-btn"],["id","lang-select","disableOptionCentering","true",3,"ngModelChange","ngModel"],[3,"value"]],template:function(i,l){i&1&&(r(0,"mat-form-field",0)(1,"mat-select",1),se("ngModelChange",function(x){return re(l.selectedLanguage,x)||(l.selectedLanguage=x),x}),f("ngModelChange",function(x){return l.onSelection(x)}),w(2,Fe,2,2,"mat-option",2,O),s()()),i&2&&(n(),ae("ngModel",l.selectedLanguage),n(),M(l.languages))},dependencies:[fe,Be,j,Y,W,be],encapsulation:2})}}return t})();function ze(t,a){if(t&1&&(r(0,"span",12),u(1),g(2,"formatPriceTwoFractionDigits"),r(3,"sub",13),u(4),s()()),t&2){let e=o(3);n(),h(" ",v(2,2,e.fixBoxPrice)," "),n(3),T(e.config.currencySymbol)}}function He(t,a){if(t&1&&(r(0,"h6",0),u(1),c(2,ze,5,4,"span",12),s()),t&2){let e=o(2);n(),h(" ",e.fixBoxTitle," "),n(),d(e.fixBoxPrice?2:-1)}}function Ye(t,a){if(t&1&&(r(0,"p",1),u(1),s()),t&2){let e=o(2);n(),T(e.fixBoxDesc)}}function We(t,a){if(t&1){let e=D();r(0,"span",4)(1,"mat-radio-button",14),f("change",function(l){y(e);let m=o(2);return S(m.callback(l))}),s()()}if(t&2){let e=o(2);n(),C("value",e.checkBoxValue)("checked",e.checkedValue)}}function je(t,a){if(t&1&&(r(0,"span",15),_(1,"mat-icon",20),s()),t&2){let e=o(3);n(),C("svgIcon",L(e.svgIcon))}}function Ke(t,a){if(t&1&&(r(0,"label",16),u(1),s()),t&2){let e=o(3);n(),h(" ",e.label," ")}}function $e(t,a){if(t&1&&(r(0,"span",18),u(1),s()),t&2){let e=o(3);n(),T(e.additionalName)}}function Xe(t,a){if(t&1&&(r(0,"span",19),u(1),s()),t&2){let e=o(3);n(),T(e.errorMsg)}}function Je(t,a){if(t&1){let e=D();r(0,"p"),c(1,je,2,2,"span",15),c(2,Ke,2,1,"label",16),r(3,"input",17),f("change",function(l){y(e);let m=o(2);return S(m.callback(l))}),s(),c(4,$e,2,1,"span",18),c(5,Xe,2,1,"span",19),s()}if(t&2){let e=o(2);A(N("input-paragraph font-size-15 ",e.label?"font-bold":""," ",e.svgIcon?"relative pl-60":"")),n(),d(e.svgIcon?1:-1),n(),d(e.label?2:-1),n(),C("type",L(e.inputType))("placeholder",L(e.placeholder))("value",e.name),n(),d(e.additionalName?4:-1),n(),d(e.errorMsg?5:-1)}}
1function qe(t,a){if(t&1&&(r(0,"label",16),u(1),s()),t&2){let e=o(3);n(),h(" ",e.label," ")}}function Qe(t,a){if(t&1&&(r(0,"span",21),_(1,"img",22),s()),t&2){let e=o(3);n(),C("src",I("assets/img/lock-icon",e.commonService.isDarkModeEnabled()?"-white":"",".svg"),ne)}}function Ze(t,a){if(t&1&&(r(0,"p"),c(1,qe,2,1,"label",16),u(2),c(3,Qe,2,2,"span",21),s()),t&2){let e=o(2);A(N("font-size-15 ",e.label?"":"content-wrap"," ",e.label?"font-bold":"")),n(),d(e.label?1:-1),n(),h(" ",e.name," "),n(),d(e.notLocked?-1:3)}}function Ge(t,a){if(t&1&&(r(0,"p",6)(1,"label",23),u(2),s(),_(3,"span",24),s()),t&2){let e=o(2);n(2),h(" ",e.label," "),n(),C("innerHtml",e.name,X)}}function et(t,a){if(t&1&&(r(0,"p"),u(1),r(2,"label"),u(3),s()()),t&2){let e=o(2);A(I("font-size-15 ",e.type==="checkbox"?"font-bold":"")),n(),h(" ",e.name," "),n(),A(I("contract-box-label ",e.type==="checkbox"?"font-regular":"")),n(),h(" ",e.label," ")}}function tt(t,a){if(t&1&&(r(0,"span",7),u(1," 78,62 "),r(2,"span",25),u(3),s()()),t&2){let e=o(2);n(3),T(e.config.currencySymbol)}}function it(t,a){if(t&1){let e=D();r(0,"span",8)(1,"mat-slide-toggle",26),f("change",function(l){y(e);let m=o(2);return S(m.callback(l))}),s()()}if(t&2){let e=o(2);n(),C("checked",e.checkBoxValue)}}function nt(t,a){t&1&&(r(0,"span",27),_(1,"mat-icon",28),s())}function lt(t,a){if(t&1&&c(0,nt,2,0,"span",27),t&2){let e=o(2);d(e.type==="link"||e.hasArrow?0:-1)}}function ot(t,a){if(t&1){let e=D();r(0,"span",9)(1,"mat-checkbox",29),f("change",function(l){y(e);let m=o(2);return S(m.callback(l))}),s()()}if(t&2){let e=o(2);n(),C("ngModel",e.checkBoxValue)}}function at(t,a){if(t&1){let e=D();r(0,"div",10)(1,"button",30),f("click",function(l){y(e);let m=o(2);return S(m.callback(l))}),u(2),s()()}if(t&2){let e=o(2);n(2),T(e.btnText)}}function rt(t,a){t&1&&_(0,"app-lang-selection",8)}function st(t,a){if(t&1&&_(0,"p",31),t&2){let e=a.$implicit;C("innerHtml",e,X)}}function ct(t,a){if(t&1&&(r(0,"div",11),w(1,st,1,1,"p",31,O),s()),t&2){let e=o(2);n(),M(e.moreInfo)}}function dt(t,a){if(t&1){let e=D();c(0,He,3,2,"h6",0),c(1,Ye,2,1,"p",1),r(2,"article")(3,"ul",2)(4,"li")(5,"button",3),f("click",function(l){y(e);let m=o();return S(m.type==="callbackFunc"&&m.callback(l))}),c(6,We,2,2,"span",4),c(7,Je,6,13,"p",5),c(8,Ze,4,7,"p",5),c(9,Ge,4,2,"p",6),c(10,et,4,8,"p",5),c(11,tt,4,1,"span",7),c(12,it,2,1,"span",8),c(13,lt,1,1),c(14,ot,2,1,"span",9),c(15,at,3,1,"div",10),c(16,rt,1,0,"app-lang-selection",8),s(),c(17,ct,3,0,"div",11),s()()()}if(t&2){let e=o();d(e.fixBoxTitle?0:-1),n(),d(e.fixBoxDesc?1:-1),n(),A(N("tile-card-box-wrapper ",e.className," ",e.hasBottomMargin?"mb24":"")),n(2),A(I("contract-box-item ",e.fixBoxHeight)),n(),A(I("reset-btn contract-box-link ",e.moreInfo?"reset-pb":"")),C("disabled",e.type!=="callbackFunc"&&!e.link?"disabled":""),n(),d(e.type==="radio"?6:-1),n(),d(!e.labelPosition&&e.type==="input"?7:-1),n(),d(!e.labelPosition&&e.type!=="input"?8:-1),n(),d(e.labelPosition&&e.labelPosition==="top"?9:-1),n(),d(e.labelPosition&&e.labelPosition==="bottom"?10:-1),n(),d(e.type==="text"?11:-1),n(),d(e.type==="toggler"?12:-1),n(),d(e.link||e.hasArrow?13:-1),n(),d(e.type==="checkbox"?14:-1),n(),d(e.type==="button"?15:-1),n(),d(e.type==="language"?16:-1),n(),d(e.moreInfo&&e.moreInfo.length?17:-1)}}var Me=(()=>{class t{constructor(e,i){this.commonService=e,this.storageService=i,this.notLocked=!0,this.counter=Array,this.config=V,this.storageService.remove(p.MSISDN)}ngOnInit(){}showUsageSummary(e,i){return i||e!=="FIXED"}static{this.\u0275fac=function(i){return new(i||t)(b(z),b(R))}}static{this.\u0275cmp=P({type:t,selectors:[["app-tile-box-card"]],inputs:{fixBoxTitle:"fixBoxTitle",fixBoxDesc:"fixBoxDesc",fixBoxPrice:"fixBoxPrice",fixBoxHeight:"fixBoxHeight",type:"type",inputType:"inputType",link:"link",label:"label",labelPosition:"labelPosition",additionalName:"additionalName",name:"name",btnText:"btnText",checkBoxValue:"checkBoxValue",checkedValue:"checkedValue",hasBottomMargin:"hasBottomMargin",errorMsg:"errorMsg",svgIcon:"svgIcon",className:"className",moreInfo:"moreInfo",placeholder:"placeholder",hasArrow:"hasArrow",telephone:"telep
1hone",contractType:"contractType",issuedDate:"issuedDate",contractNo:"contractNo",position:"position",position1:"position1",msisdn:"msisdn",msisdn1:"msisdn1",showCallRecords:"showCallRecords",notLocked:"notLocked",callback:"callback"},decls:1,vars:1,consts:[[1,"block-article-title"],[1,"block-article-description"],[1,"contract-box-list"],[3,"click","disabled"],[1,"radio-wrapper"],[3,"class"],[1,"blue-pastel-color","font-size-14"],[1,"font-bold","ml-auto"],[1,"debt-toggler-right"],[1,"debt-toggler-right","ml-auto"],[1,"submit","ml-auto"],[1,"more-info"],[1,"font-bold","font-size-23"],[1,"font-size-12"],[1,"variant-type-1",3,"change","value","checked"],[1,"contract-box-img","input-img","bordered"],[1,"contract-box-label","font-regular","font-size-14"],["autocomplete","off",1,"contract-box-input","font-size-15","font-bold",3,"change","type","placeholder","value"],[1,"additional-label"],[1,"contract-box-error","font-size-13","font-regular","ml-20"],[1,"absolute-center",3,"svgIcon"],[1,"lock-img","ml-3","lh-0"],["alt","lock",3,"src"],[1,"contract-box-label","label-v2"],[3,"innerHtml"],[1,"font-regular"],[3,"change","checked"],[1,"debt-arrow-right","ml-auto"],["svgIcon","arrow-right-icon",1,"arrow-right","blue-light"],[1,"regular-type",3,"change","ngModel"],[1,"btn-radius","background-2","radius20",3,"click"],[1,"blue-pastel-color",3,"innerHtml"]],template:function(i,l){i&1&&c(0,dt,18,25),i&2&&d(l.showUsageSummary(l.contractType,l.showCallRecords)?0:-1)},dependencies:[Se,he,ye,Te,j,Y,W,we,K],styles:[".v3-tile-card[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .contract-box-item[_ngcontent-%COMP%]{height:auto;border-radius:8px;padding:10px 0}.v3-tile-card[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .contract-box-item[_ngcontent-%COMP%]:hover{box-shadow:0 10px 10px #0223501a;transition:box-shadow .5s ease-in-out}.v3-tile-card[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .contract-box-link[_ngcontent-%COMP%]{padding:6px 16px}.v3-tile-card[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .contract-box-name[_ngcontent-%COMP%]{font-size:16px;font-family:Manrope,sans-serif;font-weight:500}@media only screen and (min-width: 1000px){.v3-tile-card[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .contract-box-name[_ngcontent-%COMP%]{font-size:18px}}@media only screen and (min-width: 1000px){.v3-tile-card[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .contract-box-name.fontSize16[_ngcontent-%COMP%]{font-size:16px}}.v3-tile-card[_ngcontent-%COMP%] .dash-list-tile-card[_ngcontent-%COMP%] .img-wrap[_ngcontent-%COMP%]{width:30px}.v3-tile-card.height-60[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .contract-box-item[_ngcontent-%COMP%]{min-height:60px}.v3-tile-card.not-absolute-icon-style[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .block.img-wrap[_ngcontent-%COMP%]{width:60px}.v3-tile-card.not-absolute-icon-style[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .block.img-wrap[_ngcontent-%COMP%] img.absolute-center[_ngcontent-%COMP%]{left:0;transform:translateY(-50%)}.v3-tile-card.not-absolute-icon-style[_ngcontent-%COMP%] .list-tile-wrapper[_ngcontent-%COMP%] .text-wrap[_ngcontent-%COMP%]{padding-left:0}.contract-box-item[_ngcontent-%COMP%]{height:auto;border-radius:8px;padding:10px 0}.contract-box-item[_ngcontent-%COMP%]:hover{box-shadow:0 10px 10px #0223501a;transition:box-shadow .5s ease-in-out}.contract-box-link[_ngcontent-%COMP%]{padding:6px 16px}.contract-box-name[_ngcontent-%COMP%]{font-size:16px;font-family:Manrope,sans-serif;font-weight:500}@media only screen and (min-width: 1000px){.contract-box-name[_ngcontent-%COMP%]{font-size:18px}}@media only screen and (min-width: 1000px){.contract-box-name.fontSize16[_ngcontent-%COMP%]{font-size:16px}}"]})}}return t})();var Ie=(()=>{class t{constructor(e){this.billsCustomerService=e}transform(e,i){if(!e||!i)return e;let l=e.map(m=>{let x=m.BillingDocuments?.filter(B=>B.billType!==Ae.CREDIT_NOTE)||[];return te(ee({},m),{BillingDocuments:x})}).filter(m=>{let x=i.searchByBillingAccount===void 0||m.searchCriterias?.searchByBillingAccount===i.searchByBillingAccount,B=i.searchByPaidStatus||[],G=B.length===0||B?.includes("all")||m.searchCriterias?.searchByPaidStatus?.some(k=>B.includes(k)),E=i.searchByServiceType||[],Le=E.length===0||E.includes("all")||m?.Services?.some(k=>k?.serviceType!=null&&E.includes(k.serviceType));return x&&G&&Le});return this.updateSearchLength(l),l}updateSearchLength(e){let i=e.reduce((l,m)=>l+this.calculateSearchLength(m),0);this.billsCustomerService.payersBillingDocuments&&(this.billsCustomerService.payersBillingDocuments.searchLength=i)}calculateSearchLength(e){return e.searchCriterias?.searchByBillingAccount===!0?1:0}static{this.\u0275fac=function(i){return new(i||t)(b(H,16))}}static{this.\u0275pipe=le({name:"billingDocumentsFilter",type:t,pure:!1})}}return t})();function Ee(t,a){return t?{titleKey:"pageTitle.billsTitle",descriptionKey:a?"billsListing.invoicesNotArriveNamUser":"billsListing.childUserDesc"}:{descriptionKey:"billsListing.invoicesNotArrive"}}var ke=t=>({totalCurrentMonthBalance:t}),pt=()=>[];function ut(t,a){if(t&1&&(r(0,"div",0),_(1,"mat-progress-spinner",3),s()),t&2){let e=o();n(),C("mode",e.commonService.mode)("strokeWidth",2)("diameter",80)}}function Ct(t,a){t&1&&(r(0,"div",1)(1,"div",4),_(2,"img",5),s(),r(3,"p",6),u(4),g(5,"translate"),s()()),t&2&&(n(4),T(v(5,1,"billsListing.invoicesNotArrive")))}function _t(t,a){if(t&1){let e=D();r(0,"div",8)(1,"button",9),f("click",function(){y(e);let l=o(4);return S(l.navigateToPayWholeBill())}),u(2),g(3,"formatPriceTwoFractionDigits"),s()()}if(t&2){let e=o(4);n(2),h(" ",e.trs.trsTsParams("bills.payAllBills",J(3,ke,v(3,1,e.payAllBillsDebt)+" "+e.config.currencySymbol))," ")}}function gt(t,a){if(t&1&&c(0,_t,4,5,"div",8),t&2){let e=o(3);d(!(e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null)&&e.billsCustomerService.payersBillingDocuments.userBillingDocuments&&(e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null?null:e.billsCustomerService.payersBillingDocuments.countUnpaidBills)>e.payAllBillsCount?0:-1)}}
1function ht(t,a){if(t&1&&(_(0,"app-tile-box-card",12),g(1,"translate")),t&2){let e=o(2).$implicit,i=o(3);C("notLocked",(e==null?null:e.billsVisible)===i.eBillDocumentAccess.FULL_ACCESS)("type","callbackFunc")("hasArrow",!0)("name",v(1,6,"bills.manageEBillSettings.title"))("className","light-title-v3")("callback",(e==null?null:e.billsVisible)===i.eBillDocumentAccess.FULL_ACCESS?i.navigateToEBillSettings.bind(i,e.payerId,e.BillingDocuments&&(e.BillingDocuments!=null&&e.BillingDocuments[0])?e.BillingDocuments==null?null:e.BillingDocuments[0].billingDocument:"",e.customerIdentity,e.payerName,"eBill",e.payerIdentity,e.customerName,e.contractType):i.commonService.goToAccessInfoCallback.bind(i))}}function vt(t,a){if(t&1&&(_(0,"app-tile-box-card",12),g(1,"translate")),t&2){let e=o(2).$implicit,i=o(3);C("notLocked",(e==null?null:e.billsVisible)===i.eBillDocumentAccess.FULL_ACCESS)("type","callbackFunc")("hasArrow",!0)("name",v(1,6,"bills.manageBillAddresses.title"))("className","light-title-v3 last-box")("callback",(e==null?null:e.billsVisible)===i.eBillDocumentAccess.FULL_ACCESS?i.navigateToEBillSettings.bind(i,e.payerId,e.BillingDocuments&&(e.BillingDocuments!=null&&e.BillingDocuments[0])?e.BillingDocuments==null?null:e.BillingDocuments[0].billingDocument:"",e.customerIdentity,e.payerName,"billAddresses"):i.commonService.goToAccessInfoCallback.bind(i))}}function xt(t,a){if(t&1&&(_(0,"app-bills-tile-card",10),g(1,"translate"),_(2,"app-tile-box-card",11),g(3,"translate"),c(4,ht,2,8,"app-tile-box-card",12),c(5,vt,2,8,"app-tile-box-card",12),_(6,"app-tile-box-card",12),g(7,"translate")),t&2){let e=o().$implicit,i=o(3);C("labelText",v(1,58,"bills.title")+i.setPayerName(e))("unpaid",(e==null?null:e.paidStatus)!=="paid")("inSubscription",e==null?null:e.inSubscription)("isPaymentBlockShowing",!0)("price",e==null?null:e.currentMonthBalance)("bills",e==null?null:e.BillingDocuments)("userBillingDocument",e||ce(64,pt))("groupedContracts",i.filteredContractsByPayerId(e==null?null:e.payerId))("hasPaymentsData",!0)("billingDocument",(e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].billingDocument)||"")("payerIdentity",e==null?null:e.payerIdentity)("payerId",e==null?null:e.payerId)("payerName",e==null?null:e.payerName)("customerName",e==null?null:e.customerName)("contractType",e==null?null:e.contractType)("isBillDetails",!0)("showLabelPaymentMethod",(e==null?null:e.paymentMethod)===i.ePaymentMethod.AUTOMATIC)("hasAction",!1)("hasPrice",!0)("multiPayer",e==null?null:e.multiPayer)("customerIdentity",e==null?null:e.customerIdentity)("noPayButton",e==null?null:e.noPayButton)("noManageSettings",e==null?null:e.noManageSettings)("businessChild",e==null?null:e.businessChild)("residentalChild",e==null?null:e.residentalChild)("customerType",e==null?null:e.customerType)("hasPayBtn",(e==null||e.BillingDocuments==null?null:e.BillingDocuments.length)>0||!(!(e==null||e.BillingDocuments==null)&&e.BillingDocuments.length)&&!(e!=null&&e.isPayedBill))("showCustomerCodeVal",!0)("billMonth",(e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null||e.BillingDocuments[0].billingDate==null?null:e.BillingDocuments[0].billingDate.toString())||"")("showDownloadBill",!0)("billingDate",(e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].billingDate)||"")("showOverdueAmount",!1)("pdfAvailableDash",(e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].pdfAvailable)||!1)("showDownloadBillMainPage",(e==null?null:e.billDetailsVisible)!==i.eBillDocumentAccess.NO_ACCESS)("dueDateBill",(e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].dueDate)||"")("showAdvancePaymentBtn",(e==null?null:e.currentMonthBalance)>=0)("payWithoutInvoice",!(!(e==null||e.BillingDocuments==null)&&e.BillingDocuments.length)&&!(e!=null&&e.isPayedBill))("newOrOverdue",i.setNewOrOverdue(e))("hasTotalDeptLabel",!0)("invoiceAvailable",e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].invoiceAvailable)("invoiceAvailableEN",e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].invoiceAvailableEN)("bulsatcom",e==null?null:e.bulsatcom)("hasOutstandingBalance",i.checkOutstandingBalance(e))("paymentReferenceNumber",e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].paymentReferenceNumber)("hasCopyInvoice",(e==null||e.BillingDocuments==null||e.BillingDocuments[0]==null?null:e.BillingDocuments[0].hasCopyInvoice)!==!1),n(2),C("type","callbackFunc")("hasArrow",!0)("name",v(3,60,"bills.seeAllBills"))("className","light-title-v3")("callback",i.goToBillList.bind(i,e)),n(2),d(e!=null&&e.bulsatcom?-1:4),n(),d(e!=null&&e.bulsatcom?-1:5),n(),C("notLocked",i.isAdmin&&(e==null?null:e.billsVisible)===i.eBillDocumentAccess.FULL_ACCESS)("type","callbackFunc")("hasArrow",!0)("name",v(7,62,"bills.renameBillingAccount.labelTitle"))("className","light-title-v3 last-box")("callback",i.isAdmin&&(e==null?null:e.billsVisible)===i.eBillDocumentAccess.FULL_ACCESS?i.navigateToRenameBillingAccount.bind(i,e.payerId):i.commonService.goToAccessInfoCallback.bind(i))}}function bt(t,a){if(t&1&&(r(0,"div",7),c(1,xt,8,65),s()),t&2){let e=a.$index,i=o(3);n(),d(e<i.visibleBillsCount?1:-1)}}function ft(t,a){if(t&1){let e=D();r(0,"div",8)(1,"button",9),f("click",function(){y(e);let l=o(4);return S(l.navigateToPayWholeBill())}),u(2),g(3,"formatPriceTwoFractionDigits"),s()()}if(t&2){let e=o(4);n(2),h(" ",e.trs.trsTsParams("bills.payAllBills",J(3,ke,v(3,1,e.payAllBillsDebt)+" "+e.config.currencySymbol))," ")}}
1function Bt(t,a){if(t&1&&c(0,ft,4,5,"div",8),t&2){let e=o(3);d(!(e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null)&&e.billsCustomerService.payersBillingDocuments.userBillingDocuments&&(e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null?null:e.billsCustomerService.payersBillingDocuments.countUnpaidBills)>1&&(e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null?null:e.billsCustomerService.payersBillingDocuments.countUnpaidBills)<=e.payAllBillsCount?0:-1)}}function yt(t,a){if(t&1){let e=D();r(0,"div",15),f("click",function(){y(e);let l=o(4);return S(l.loadMoreBills())}),u(1),g(2,"translate"),_(3,"img",16),s()}t&2&&(n(),h(" ",v(2,1,"bills.addMoreButton")," "))}function St(t,a){if(t&1){let e=D();r(0,"div",17),f("click",function(){y(e);let l=o(4);return S(l.loadLessBills())}),u(1),g(2,"translate"),_(3,"img",18),s()}t&2&&(n(),h(" ",v(2,1,"bills.loadLessButton")," "))}function Dt(t,a){if(t&1&&(c(0,yt,4,3,"div",13),c(1,St,4,3,"div",14)),t&2){let e=o(3);d(e.visibleBillsCount<(e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null?null:e.billsCustomerService.payersBillingDocuments.searchLength)?0:-1),n(),d(e.visibleBillsCount>=(e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null?null:e.billsCustomerService.payersBillingDocuments.searchLength)?1:-1)}}function Tt(t,a){if(t&1&&(c(0,gt,1,1),w(1,bt,2,1,"div",7,oe().trackByBillingFn,!0),g(3,"billingDocumentsFilter"),c(4,Bt,1,1),c(5,Dt,2,2)),t&2){let e=o(2);d(e.customerService.hasUnpaidBills()?0:-1),n(),M(de(3,3,e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null?null:e.billsCustomerService.payersBillingDocuments.userBillingDocuments,e.billsCustomerService.criteriaBills)),n(3),d(e.customerService.hasUnpaidBills()?4:-1),n(),d((e.billsCustomerService==null||e.billsCustomerService.payersBillingDocuments==null?null:e.billsCustomerService.payersBillingDocuments.searchLength)>e.initialBillsCount?5:-1)}}function At(t,a){if(t&1&&(r(0,"div",2),c(1,Tt,6,6),s()),t&2){let e=o();n(),d(e.billsCustomerService!=null&&e.billsCustomerService.payersBillingDocuments?1:-1)}}function Pt(t,a){t&1&&(r(0,"div",19)(1,"p",20),u(2),g(3,"translate"),s()()),t&2&&(n(2),T(v(3,1,a)))}function wt(t,a){if(t&1&&(r(0,"div",19)(1,"p",21),u(2),g(3,"translate"),s()()),t&2){let e=o(2);n(2),T(v(3,1,e.emptyStateCopy.descriptionKey))}}function Mt(t,a){if(t&1&&(r(0,"p",6),u(1),g(2,"translate"),s()),t&2){let e=o(2);n(),T(v(2,1,e.emptyStateCopy.descriptionKey))}}function It(t,a){if(t&1&&(r(0,"div"),c(1,Pt,4,3,"div",19),r(2,"div",1)(3,"div",4),_(4,"img",5),s(),c(5,wt,4,3,"div",19)(6,Mt,3,3,"p",6),s()()),t&2){let e,i=o();n(),d((e=i.emptyStateCopy.titleKey)?1:-1,e),n(4),d(i.isChild?5:6)}}var Oe=(()=>{class t{get isChild(){return ge(this.storageService.get(p.USER_TYPE))}get emptyStateCopy(){return Ee(this.isChild,this.isLoggedWithMsisdn)}constructor(e,i,l,m,x,B,$){this.commonService=e,this.trs=i,this.billsCustomerService=l,this.customerService=m,this.router=x,this.elRef=B,this.storageService=$,this.config=V,this.isAdmin=!1,this.fromHome=!1,this.isLoggedWithMsisdn=!1,this.eBillDocumentAccess=xe,this.eUserType=F,this.eCustomerType=_e,this.ePaymentMethod=De,this.showEBillSettings=!1,this.visibleBillsCount=5,this.initialBillsCount=5,this.payAllBillsCount=3,this.noop=()=>{},this.commonService.isPageTitleActivated=!0,this.commonService.isBackButtonActivated=!1,this.commonService.setPageTitle(this.trs.trsTs("pageTitle.bills"),"main-bills"),this.commonService.isCustomerPickerActivated=!0,this.billsCustomerService.filteredBillingDocuments=[],this.billsCustomerService.filteredDevicesListData=[]}ngOnInit(){this.elRef.nativeElement.closest("body").classList.add("reset-pager-title"),this.isAdmin=this.storageService.get(p.USER_TYPE)===F.ADMIN||this.storageService.get(p.USER_TYPE)===F.B2B_ADMIN,this.fromHome=this.storageService.get(p.FROM_HOME)==="true",this.isLoggedWithMsisdn=this.storageService.get(p.USER_LOGGED_WITH_MOBILE_NUMBER)==="true",this.addClassOnUserAction(),this.billsCustomerService.groupedContracts&&!this.billsCustomerService.groupedContracts.length&&this.billsCustomerService.groupContractByPayerId(),this.storageService.remove(p.CHECK_CHILD),this.storageService.remove(p.CUSTOMER_NAME),this.storageService.remove(p.CONTRACT_TYPE),this.billingDocumentView()}setNewOrOverdue(e){let i=this.commonService.isNewOrOverdue(e?.BillingDocuments?.[0]?.dueDate??""),l=e?.paidStatus==="paid"?"paid-icon":e?.BillingDocuments?.[0]?.toBePayed!==0?i[0]==="new"?"new-icon":"unpaid-icon":"paid-icon",m=l==="paid-icon"?this.trs.trsTs("bills.yourBillsPaid"):i[1];return[l,m]}checkOutstandingBalance(e){let i=e?.BillingDocuments?.[0],l=e?.InstallmentsBillingDocuments||[],m=this.billsCustomerService.getSummedDevicePrice(i,l);return Number(e?.currentMonthBalance)<=Number(i?.toBePayed)+m}trackByBillingFn(e,i){return i.payerId}addClassOnUserAction(){this.commonService.isCustomerPickerActivated&&this.elRef.nativeElement.closest("body").classList.add("showing-user-actions")}billingDocumentView(){this.billsCustomerService.sortBillingDocuments(this.billsCustomerService.payersBillingDocuments?.userBillingDocuments??[]),console.log("billingDocumentView",this.billsCustomerService.payersBillingDocuments?.userBillingDocuments)}get payAllBillsDebt(){return this.billsCustomerService.payersBillingDocuments?.debt??0}setPayerName(e){let{payerId:i,contractType:l,customerName:m,payerName:x}=e,B=x||m;return` ${i} | ${this.commonService.transformBillingAccountName(B??"")}`}sortByPayerId(e){let i=this.storageService.get(p.PAYER_ID);e.sort((l,m)=>l.payerId===i?-1:m.payerId===i?1:0)}filteredContractsByPayerId(e){return this.setEBillSettings(e),(this.billsCustomerService?.groupedContracts)[e]||[]}setEBillSettings(e){let i=this.billsCustomerService?.groupedContracts;
1i[e]&&i[e]?.length?i[e]?.length===1?i[e]?.forEach(l=>{this.showEBillSettings=!(l.contractType===q.MOBILE_PREPAID||l.contractType===q.MOB_DATA_PREPAID)}):this.showEBillSettings=!0:this.showEBillSettings=!1}navigateToEBillSettings(e,i,l,m,x,B,$,G){this.storageService.set(p.PAYER_ID,e);let E=m;return this.storageService.set(p.PAYER_NAME,E),B&&this.storageService.set(p.PAYER_IDENTITY,B),l?this.storageService.set(p.CAID,l):this.storageService.remove(p.CAID),i&&this.storageService.set(p.BILLING_DOCUMENT,i),x==="eBill"?this.router.navigate(["/bills/ebill-settings"]):this.router.navigate(["/bills/bill-addresses"])}navigateToRenameBillingAccount(e){return this.storageService.set(p.PAYER_ID,e),this.router.navigate(["/bills/rename-billing-account"])}goToBillList(e){console.log("billGroup",e);let i=e?.BillingDocuments&&e?.BillingDocuments?.[0]?.billingDocument?e?.BillingDocuments?.[0]?.billingDocument:"";if(this.storageService.set(p.PAYER_ID,e?.payerId),this.storageService.set(p.PAYER_NAME,e?.payerName),this.storageService.set(p.CUSTOMER_NAME,e?.customerName),this.storageService.set(p.CONTRACT_TYPE,e?.contractType),this.storageService.set(p.BILLING_DOCUMENT,i),this.storageService.set(p.FIX_PREPAID,String(!!e?.bulsatcom)),e?.payerIdentity&&this.storageService.set(p.PAYER_IDENTITY,e?.payerIdentity),i){this.storageService.set(p.BILLING_DOCUMENT,i);let m={noPayButton:e?.noPayButton,noManageSettings:e?.noManageSettings,customerType:e?.customerType,businessChild:e?.businessChild,residentalChild:e?.residentalChild};this.storageService.setJson(p.CHECK_CHILD,m)}this.router.navigate(["/bills/bill-list"])}navigateToPayWholeBill(){this.storageService.set(p.PAY_ALL_BILLS,"true"),this.router.navigate(["/bills/pay-bills"])}loadMoreBills(){this.visibleBillsCount+=5}loadLessBills(){this.visibleBillsCount=this.initialBillsCount}ngOnDestroy(){this.elRef.nativeElement.closest("body").classList.remove("showing-user-actions","reset-pager-title"),this.billsCustomerService.billSubscription=void 0,this.commonService.isPageTitleActivated=!1,this.commonService.isBackButtonActivated=!1,this.commonService.isPageTitleActivated=!1,this.commonService.isCustomerPickerActivated=!1}static{this.\u0275fac=function(i){return new(i||t)(b(z),b(U),b(H),b(ve),b(me),b(ie),b(R))}}static{this.\u0275cmp=P({type:t,selectors:[["app-dashboard"]],decls:4,vars:4,consts:[[1,"page-spinner"],[1,"error-wrapper","no-data"],[1,"bills-dashboard"],[3,"mode","strokeWidth","diameter"],[1,"mt-40","mb-60"],["src","assets/img/payments-empty-icon.svg","alt","empty payment"],[1,"font-bold","font-size-16"],[1,"mb-40"],[1,"btn-wrap","text-align-center","whole-btn-wrapper"],[1,"btn-6-v3","background-2","radius30","ladda-fix-v3",3,"click"],[3,"labelText","unpaid","inSubscription","isPaymentBlockShowing","price","bills","userBillingDocument","groupedContracts","hasPaymentsData","billingDocument","payerIdentity","payerId","payerName","customerName","contractType","isBillDetails","showLabelPaymentMethod","hasAction","hasPrice","multiPayer","customerIdentity","noPayButton","noManageSettings","businessChild","residentalChild","customerType","hasPayBtn","showCustomerCodeVal","billMonth","showDownloadBill","billingDate","showOverdueAmount","pdfAvailableDash","showDownloadBillMainPage","dueDateBill","showAdvancePaymentBtn","payWithoutInvoice","newOrOverdue","hasTotalDeptLabel","invoiceAvailable","invoiceAvailableEN","bulsatcom","hasOutstandingBalance","paymentReferenceNumber","hasCopyInvoice"],["fixBoxHeight","height60",3,"type","hasArrow","name","className","callback"],["fixBoxHeight","height60",3,"notLocked","type","hasArrow","name","className","callback"],[1,"load-more-v3","new-design"],[1,"load-more-v3","new-design","revert"],[1,"load-more-v3","new-design",3,"click"],["src","assets/img/load-more-icon.svg","alt","load more"],[1,"load-more-v3","new-design","revert",3,"click"],["src","assets/img/load-more-icon.svg","alt","load less"],[1,"container-460","text-align-center"],[1,"font-bold","font-size-20"],[1,"font-bold","font-size-16","mt-10"]],template:function(i,l){i&1&&(c(0,ut,2,3,"div",0),c(1,Ct,6,3,"div",1),c(2,At,2,1,"div",2),c(3,It,7,2,"div")),i&2&&(d(l.billsCustomerService.billsLoading?0:-1),n(),d(!l.billsCustomerService.billsLoading&&!l.billsCustomerService.payersBillingDocuments?1:-1),n(),d(l.billsCustomerService.billsLoading?-1:2),n(),d(!l.billsCustomerService.billsLoading&&(l.billsCustomerService!=null&&l.billsCustomerService.payersBillingDocuments)&&(!(l.b
1illsCustomerService==null||l.billsCustomerService.payersBillingDocuments==null)&&l.billsCustomerService.payersBillingDocuments.userBillingDocuments)&&(l.billsCustomerService==null||l.billsCustomerService.payersBillingDocuments==null?null:l.billsCustomerService.payersBillingDocuments.searchLength)===0?3:-1))},dependencies:[pe,Pe,Me,Ce,ue,K,Ie],styles:[".whole-btn-wrapper[_ngcontent-%COMP%]{margin-bottom:20px}@media only screen and (min-width: 768px){.whole-btn-wrapper[_ngcontent-%COMP%]{margin-bottom:40px}}"]})}}return t})();var xi=[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"dashboard",component:Oe}];export{xi as DASHBOARD_ROUTES};
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.