PageSourceSearch

https://telemach.si/account/3867-es2015.626002ecf90ec36dc805.js

js telemach.si collected 2026-10-01 13:54:29 UTC 35,772 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunke_care=self.webpackChunke_care||[]).push([[3867],{49828:function(e,l,i){i.d(l,{d:function(){return x}});var n=i(32074),t=i(1365),s=i(37716),o=i(8481),a=i(22238),c=i(95987),r=i(14112),u=i(48727),g=i(38583),d=i(29790);function m(e,l){if(1&e){const e=s.EpF();s.ynx(0),s.TgZ(1,"div",7),s.TgZ(2,"p",8),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.TgZ(5,"button",9),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).navigateToPayWholeBill()}),s._uU(6),s.ALo(7,"translate"),s.qZA(),s.BQk()}2&e&&(s.xp6(3),s.Oqu(s.lcZ(4,2,"easyAccess.offerAccessDesc03")),s.xp6(3),s.hij(" ",s.lcZ(7,4,"bills.payAllBillsWithoutPrice")," "))}function p(e,l){1&e&&(s.TgZ(0,"div",7),s.TgZ(1,"p",8),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.qZA()),2&e&&(s.xp6(2),s.Oqu(s.lcZ(3,1,"easyAccess.offerAccessDesc04")))}function v(e,l){if(1&e&&(s.ynx(0),s.YNc(1,m,8,6,"ng-container",0),s.YNc(2,p,4,3,"ng-template",null,6,s.W1O),s.BQk()),2&e){const e=s.MAs(3),l=s.oxw(2);s.xp6(1),s.Q6J("ngIf",l.customerService.hasUnpaidBills)("ngIfElse",e)}}function h(e,l){if(1&e){const e=s.EpF();s.TgZ(0,"div",7),s.TgZ(1,"p",8),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"p",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.qZA(),s.TgZ(7,"button",9),s.NdJ("click",function(){return s.CHM(e),s.oxw(2).logoutChildUser()}),s._uU(8),s.ALo(9,"translate"),s.qZA()}2&e&&(s.xp6(2),s.Oqu(s.lcZ(3,3,"easyAccess.offerAccessDesc01")),s.xp6(3),s.Oqu(s.lcZ(6,5,"easyAccess.offerAccessDesc02")),s.xp6(3),s.hij(" ",s.lcZ(9,7,"easyAccess.login")," "))}function b(e,l){if(1&e&&(s.ynx(0),s.TgZ(1,"article",2),s.TgZ(2,"div",3),s._UZ(3,"img",4),s.qZA(),s.YNc(4,v,4,2,"ng-container",0),s.YNc(5,h,10,9,"ng-template",null,5,s.W1O),s.qZA(),s.BQk()),2&e){const e=s.MAs(6),l=s.oxw();s.xp6(4),s.Q6J("ngIf",!l.isLoggedWithMsisdn)("ngIfElse",e)}}function y(e,l){1&e&&(s.TgZ(0,"h2",15),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&e&&(s.xp6(1),s.Oqu(s.lcZ(2,1,"easyAccess.title")))}const B=function(e){return{username:e}};function f(e,l){if(1&e&&(s.ynx(0),s.TgZ(1,"div",7),s.TgZ(2,"p",8),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"p",8),s._uU(6),s.qZA(),s.qZA(),s.BQk()),2&e){const e=s.oxw(3);s.xp6(3),s.Oqu(s.lcZ(4,2,"easyAccess.childType01.desc1")),s.xp6(3),s.Oqu(e.trs.trsTsParams("easyAccess.childType01.desc2",s.VKq(4,B,e.userTemplate.registeredUsers)))}}function D(e,l){1&e&&(s.ynx(0),s.TgZ(1,"div",7),s.TgZ(2,"p",8),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.BQk()),2&e&&(s.xp6(3),s.Oqu(s.lcZ(4,1,"easyAccess.childType02.desc1")))}function S(e,l){1&e&&(s.ynx(0),s.TgZ(1,"div",7),s.TgZ(2,"p",8),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.qZA(),s.TgZ(5,"div",7),s.TgZ(6,"p",8),s._uU(7),s.ALo(8,"translate"),s.qZA(),s.qZA(),s.BQk()),2&e&&(s.xp6(3),s.Oqu(s.lcZ(4,2,"easyAccess.childType03.desc1")),s.xp6(4),s.Oqu(s.lcZ(8,4,"easyAccess.childType03.desc2")))}function C(e,l){if(1&e){const e=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(e),s.oxw(3).logoutChildUser()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&e&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"easyAccess.register")," "))}const A=function(e){return{"mb-40":e}};function I(e,l){if(1&e&&(s.TgZ(0,"article",11),s.YNc(1,y,3,3,"h2",12),s.TgZ(2,"div",3),s._UZ(3,"img",4),s.qZA(),s.YNc(4,f,7,6,"ng-container",13),s.YNc(5,D,5,3,"ng-container",13),s.YNc(6,S,9,6,"ng-container",13),s.YNc(7,C,3,3,"button",14),s.qZA()),2&e){const e=s.oxw(2);s.Gre("easy-access-card ",e.routedAccessInfo?"routed-access-info":"",""),s.Q6J("ngClass",s.VKq(9,A,e.addMargin)),s.xp6(1),s.Q6J("ngIf",!e.routedAccessInfo),s.xp6(3),s.Q6J("ngIf",(null==e.userTemplate.userType?null:e.userTemplate.userType.toLowerCase())===e.eUserChildType.RESIDENTIAL_CHILD&&"true"===e.userTemplate.registered),s.xp6(1),s.Q6J("ngIf",(null==e.userTemplate.userType?null:e.userTemplate.userType.toLowerCase())===e.eUserChildType.BUSINESS_CHILD&&"true"===e.userTemplate.registered),s.xp6(1),s.Q6J("ngIf","false"===e.userTemplate.registered),s.xp6(1),s.Q6J("ngIf","false"===e.userTemplate.registered)}}function T(e,l){if(1&e&&s.YNc(0,I,8,11,"article",10),2&e){const e=s.oxw();s.Q6J("ngIf",e.userTemplate)}}let x=(()=>{class e{constructor(e,l,i,t,s){this.trs=e,this.dialog=l,this.router=i,this.customerService=t,this.commonService=s,this.eUserChildType=n._,this.addMargin=!1,this.routedAccessInfo=!1,this.accessType="",this.isLoggedWithMsisdn=!1}ngOnInit(){console.log("this.userTemplate",this.userTemplate),console.log("isLoggedWithMsisdn",this.isLoggedWithMsisdn)}logoutChildUser(){this.dialog.open(t.e,{width:"420px",panelClass:["global-dialog","confirmation-dialog"],hasBackdrop:!1,data:{type:"logout",accessType:this.accessType,confirmButtonText:this.trs.trsTs("logout"),confirmButtonAction:!0,closeButton:!0,title:this.trs.trsTs(this.accessType?"easyAccess.login":"easyAccess.register"),description:this.descriptionMessage(),registration:!0}}).afterClosed().subscribe(()=>{})}descriptionMessage(){var e;return this.accessType?this.trs.trsTs("easyAccess.offerAccessDesc02"):(null===(e=this.userTemplate.userType)||void 0===e?void 0:e.toLowerCase())===n._.RESIDENTIAL_CHILD?this.trs.trsTs("easyAccess.rePopupTitle"):this.trs.trsTs("easyAccess.buPopupTitle")}navigateToPayWholeBill(){localStorage.setItem("payAllBills","true"),this.router.navigate(["/bills/pay-bills"])}ngOnDestroy(){this.commonService.isPageSubtitleActivated=!1,this.commonService.isPageSubtitleSecondActivated=!1,this.commonService.pageTitle="",this.commonService.productPackageNameActivated=!1}}return e.\u0275fac=function(l){return new(l||e)(s.Y36(o.D),s.Y36(a.uw),s.Y36(c.F0),s.Y36(r.v),s.Y36(u.v))},e.\u0275cmp=s.Xpm({type:e,selectors:[["app-easy-access-card"]],inputs:{userTemplate:"userTemplate",addMargin:"addMargin",routedAccessInfo:"routedAccessInfo",accessType:"accessType",isLoggedWithMsisdn:"isLoggedWithMsisdn"}
1,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["regularAccess",""],[1,"easy-access-card","routed-access-info","mb-40"],[1,"img-wrap"],["src","assets/img/easy-access.svg","alt","easy access"],["loggedWithMsisdn",""],["noUnpaidBills",""],[1,"desc-wrap"],[1,"desc"],[1,"btn-1-v3","background-2","radius16","ladda-fix-v3",3,"click"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["class","title",4,"ngIf"],[4,"ngIf"],["class","btn-1-v3 background-2 radius16 ladda-fix-v3",3,"click",4,"ngIf"],[1,"title"]],template:function(e,l){if(1&e&&(s.YNc(0,b,7,2,"ng-container",0),s.YNc(1,T,1,1,"ng-template",null,1,s.W1O)),2&e){const e=s.MAs(2);s.Q6J("ngIf",l.accessType)("ngIfElse",e)}},directives:[g.O5,g.mk],pipes:[d.X$],styles:[".easy-access-card[_ngcontent-%COMP%]{border-radius:24px;box-shadow:0 10px 10px #0223501a;border:1px solid #DAE4F5;display:flex;flex-direction:column;align-items:center;padding:25px 15px 30px}.easy-access-card.routed-access-info[_ngcontent-%COMP%]{box-shadow:none;border:none}@media (min-width: 600px){.easy-access-card[_ngcontent-%COMP%]{padding:25px 50px 30px}}@media (min-width: 1000px){.easy-access-card[_ngcontent-%COMP%]{padding:33px 110px 50px}}.easy-access-card[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:35px;font-weight:700}.easy-access-card[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]{margin-bottom:35px;width:120px}@media (min-width: 1000px){.easy-access-card[_ngcontent-%COMP%]   .img-wrap[_ngcontent-%COMP%]{width:auto}}.easy-access-card[_ngcontent-%COMP%]   .desc-wrap[_ngcontent-%COMP%]{margin-bottom:30px;text-align:center}.easy-access-card[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin-bottom:0}"]}),e})()},93867:function(e,l,i){i.r(l),i.d(l,{DashboardComponent:function(){return V},DashboardModule:function(){return $}});var n=i(38583),t=i(95987),s=i(81804),o=i(23114),a=i(85531),c=i(25885),r=i(35649),u=i(46897),g=i(32074),d=i(80187),m=i(86905),p=i(37716),v=i(48727),h=i(8481),b=i(76358),y=i(14112),B=i(4885),f=i(49828),D=i(69292),S=i(29790);let C=(()=>{class e{constructor(e){this.billsCustomerService=e}transform(e,l){if(!e||!l)return e;const i=e.map(e=>{var l;const i=(null===(l=e.BillingDocuments)||void 0===l?void 0:l.filter(e=>e.billType!==d.W.CREDIT_NOTE))||[];return Object.assign(Object.assign({},e),{BillingDocuments:i})}).filter(e=>{var i,n,t,s;const o=void 0===l.searchByBillingAccount||(null===(i=e.searchCriterias)||void 0===i?void 0:i.searchByBillingAccount)===l.searchByBillingAccount,a=l.searchByPaidStatus||[],c=0===a.length||(null==a?void 0:a.includes("all"))||(null===(t=null===(n=e.searchCriterias)||void 0===n?void 0:n.searchByPaidStatus)||void 0===t?void 0:t.some(e=>a.includes(e))),r=l.searchByServiceType||[],u=0===r.length||r.includes("all")||(null===(s=null==e?void 0:e.Services)||void 0===s?void 0:s.some(e=>r.includes(null==e?void 0:e.serviceType)));return o&&c&&u});return this.updateSearchLength(i),i}updateSearchLength(e){const l=e.reduce((e,l)=>e+this.calculateSearchLength(l),0);this.billsCustomerService.payersBillingDocuments.searchLength=l}calculateSearchLength(e){var l;return!0===(null===(l=e.searchCriterias)||void 0===l?void 0:l.searchByBillingAccount)?1:0}}return e.\u0275fac=function(l){return new(l||e)(p.Y36(b.$,16))},e.\u0275pipe=p.Yjl({name:"billingDocumentsFilter",type:e,pure:!1}),e})();var A=i(96290);function I(e,l){if(1&e&&(p.TgZ(0,"div",2),p._UZ(1,"mat-progress-spinner",3),p.qZA()),2&e){const e=p.oxw();p.xp6(1),p.Q6J("mode",e.commonService.mode)("strokeWidth",2)("diameter",80)}}function T(e,l){1&e&&(p.ynx(0),p.TgZ(1,"div"),p.TgZ(2,"div",4),p.TgZ(3,"div",5),p._UZ(4,"img",6),p.qZA(),p.TgZ(5,"p",7),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.qZA(),p.qZA(),p.BQk()),2&e&&(p.xp6(6),p.Oqu(p.lcZ(7,1,"billsListing.noInvoicesPermission")))}function x(e,l){if(1&e&&p._UZ(0,"app-easy-access-card",9),2&e){const e=p.oxw(2);p.Q6J("userTemplate",e.customerService.userTemplate)}}function w(e,l){if(1&e&&(p.ynx(0),p.YNc(1,x,1,1,"app-easy-access-card",8),p.BQk()),2&e){const e=p.oxw();p.xp6(1),p.Q6J("ngIf",!e.isBusinessChild&&e.customerService.userTemplate&&e.config.hasEasyAccess)}}function L(e,l){1&e&&(p.ynx(0),p.TgZ(1,"div",4),p.TgZ(2,"div",5),p._UZ(3,"img",6),p.qZA(),p.TgZ(4,"p",7),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.BQk()),2&e&&(p.xp6(5),p.Oqu(p.lcZ(6,1,"billsListing.invoicesNotArrive")))}function Z(e,l){if(1&e&&(p._UZ(0,"app-tile-box-card",18),p.ALo(1,"translate")),2&e){const e=p.oxw(2).$implicit,l=p.oxw(4);p.Q6J("type","callbackFunc")("hasArrow",!0)("name",p.lcZ(1,5,"bills.dunningNotices.cardLabel"))("className","light-title-v3")("callback",l.goToDunningNotices.bind(l,e))}}function P(e,l){if(1&e&&(p._UZ(0,"app-tile-box-card",19),p.ALo(1,"translate")),2&e){const e=p.oxw(2).$implicit,l=p.oxw(4);p.Q6J("notLocked",!l.isBusinessChildEmailLogin||"true"===(null==e?null:e.billsVisible))("type","callbackFunc")("hasArrow",!l.isBusinessChildEmailLogin||"true"===(null==e?null:e.billsVisible))("name",p.lcZ(1,6,"bills.manageEBillSettings.title"))("className","light-title-v3")("callback",l.isBusinessChildEmailLogin?"true"===(null==e?null:e.billsVisible)?l.navigateToEBillSettings.bind(l,e.payerId,e.BillingDocuments&&null!=e.BillingDocuments&&e.BillingDocuments[0]?null==e.BillingDocuments?null:e.BillingDocuments[0].billingDocument:"",e.customerIdentity,e.payerName,"eBill",e.payerIdentity,e.customerName,e.contractType):l.noop:l.navigateToEBillSettings.bind(l,e.payerId,e.BillingDocuments&&null!=e.BillingDocuments&&e.BillingDocuments[0]?null==e.BillingDocuments?null:e.BillingDocuments[0].billingDocument:"",e.customerIdentity,e.payerName,"eBill",e.payerIdentity,e.customerName,e.contractType))}}function N(e,l){if(1&e&&(p._UZ(0,"app-tile-box-card",18),p.ALo(1,"translate")),2&e){const e=p.oxw(2).$implicit,l=p.oxw(4);p.Q6J("type","callbackFunc")("hasArrow",!0)("name",p.lcZ(1,5,"bills.manageBillAddresses.title"))("className","light-title-v3 last-box")("callback",l.navigateToEBillSettings.bind(l,e.payerId,e.BillingDocuments&&null!=e.BillingDocuments&&e.BillingDocuments[0]?null==e.BillingDocuments?null:e.BillingDocuments[0].billingDocument:"",e.customerIdentity,e.payerName,"billAddresses"))}}function M(e,l){if(1&e&&(p._UZ(0,"app-tile-box-card",19),p.ALo(1,"translate")),2&e){const e=p.oxw(2).$implicit,l=p.oxw(4);p.Q6J("notLocked","true"===(null==e?null:e.billsVisible))("type","callbackFunc")("hasArrow",!0)("name",p.lcZ(1,6,"bills.manageBillAddresses.title"))("className","light-title-v3 last-box")("callback","true"!==(null==e?null:e.billsVisible)?l.commonService.goToAccessInfoCallback.bind(l.commonService):l.navigateToEBillSettings.bind(l,e.payerId,e.BillingDocuments&&null!=e.BillingDocuments&&e.BillingDocuments[0]?null==e.BillingDocuments?null:e.BillingDocuments[0].billingDocument:"",e.customerIdentity,e.payerName,"billAddresses"))}}function k(e,l){if(1&e&&(p._UZ(0,"app-tile-box-card",19),p.ALo(1,"translate")),2&e){const e=p.oxw(2).$implicit,l=p.oxw(4);p.Q6J("notLocked",l.isAdmin&&"true"===(null==e?null:e.billsVisible))("type","callbackFunc")("hasArrow",!0)("name",p.lcZ(1,6,"bills.renameBillingAccount.labelTitle"))("className","light-title-v3 last-box")("callback",l.isAdmin?"true"!==(null==e?null:e.billsVisible)?l.commonService.goToAccessInfoCallback.bind(l.commonService):l.navigateToRenameBillingAccount.bind(l,e.payerId):l.commonService.goToAccessInfoCallback.bind(l.commonService))}}function O(e,l){if(1&e&&(p._UZ(0,"app-tile-box-card",18),p.ALo(1,"translate")),2&e){const e=p.oxw(2).$implicit,l=p.oxw(4);p.Q6J("type","callbackFunc")("hasArrow",!0)("name",p.lcZ(1,5,"bills.directDebit.recurringPaymentManagement"))("className","light-title-v3 last-box")("callback",l.navigateToRecurringPaymentManagement.bind(l,null==e?null:e.payerId))}}const _=function(){return[]};function U(e,l){if(1&e&&(p.ynx(0),p._UZ(1,"app-bills-tile-card",14),p.ALo(2,"translate"),p.ALo(3,"formatPriceTwoFractionDigits"),p._UZ(4,"app-tile-box-card",15),p.ALo(5,"translate"),p.YNc(6,Z,2,7,"app-tile-box-card",16),p.YNc(7,P,2,8,"app-tile-box-card",17),p.YNc(8,N,2,7,"app-tile-box-card",16),p.YNc(9,M,2,8,"app-tile-box-card",17),p.YNc(10,k,2,8,"app-tile-box-card",17),p.YNc(11,O,2,7,"app-tile-box-card",16),p.BQk()),2&e){const e=p.oxw().$implicit,l=p.oxw(4);p.xp6(1),p.Q6J("labelText",p.lcZ(2,61,"bills.title")+l.setPayerName(e))("unpaid","paid"!==(null==e?null:e.paidStatus))("inSubscription",null==e?null:e.inSubscription)("isPaymentBlockShowing",!0)("price","GR"===l.config.defaultLang||null!=e&&e.inSubscription||"BG"===l.config.defaultLang?null==e?null:e.currentMonthBalance:p.lcZ(3,63,null==e?null:e.currentMonthBalance))("bills",null==e?null:e.BillingDocuments)("userBillingDocument",e||p.DdM(67,_))("groupedContracts","GR"!==l.config.defaultLang?l.filteredContractsByPayerId(null==e?null:e.payerId):p.DdM(68,_))("hasPaymentsData",!0)("billingDocument",(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].billingDocument)||"")("payerIdentity",null==e?null:e.payerIdentity)("payerId",null==e?null:e.payerId)("payerName",null==e?null:e.payerName)("customerName",null==e?null:e.customerName)("contractType",null==e?null:e.contractType)("isBillDetails",!0)("showLabelPaymentMethod","GR"===l.config.defaultLang&&(l.commonService.hasDirectDebit?(null==e?null:e.paymentMethod)!==l.ePaymentMethod.CASH:(null==e?null:e.paymentMethod)===l.ePaymentMethod.AUTOMATIC))("paymentMethod",null==e?null:e.paymentMethod)("hasAction",!1)("hasPrice",!0)("multiPayer",null==e?null:e.multiPayer)("customerIdentity",null==e?null:e.customerIdentity)("noPayButton",null==e?null:e.noPayButton)("noManageSettings",null==e?null:e.noM
1anageSettings)("businessChild",null==e?null:e.businessChild)("residentalChild",null==e?null:e.residentalChild)("customerType",null==e?null:e.customerType)("hasPayBtn","BG"===l.config.defaultLang?(null==e||null==e.BillingDocuments?null:e.BillingDocuments.length)>0||!(null!=e&&null!=e.BillingDocuments&&e.BillingDocuments.length)&&!(null!=e&&e.isPayedBill):(null==e||null==e.BillingDocuments?null:e.BillingDocuments.length)>0)("showCustomerCodeVal",!0)("billMonth",(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]||null==e.BillingDocuments[0].billingDate?null:e.BillingDocuments[0].billingDate.toString())||"")("showDownloadBill",!0)("billingDate",(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].billingDate)||"")("showOverdueAmount",!1)("pdfAvailableDash","true"===(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].pdfAvailable)||!1)("showDownloadBillMainPage",null==e?null:e.billDetailsVisible)("dueDateBill",(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].dueDate)||"")("showAdvancePaymentBtn","BG"===l.config.defaultLang&&("0.00"===(null==e?null:e.currentMonthBalance)||(null==e?null:e.inSubscription)))("payWithoutInvoice",!("BG"!==l.config.defaultLang||null!=e&&null!=e.BillingDocuments&&e.BillingDocuments.length||null!=e&&e.isPayedBill))("newOrOverdue",l.setNewOrOverdue(e))("hasTotalDeptLabel","GR"!==l.config.defaultLang||!(null!=e&&e.noPayButton))("invoiceAvailable","true"===(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].invoiceAvailable))("invoiceAvailableEN","true"===(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].invoiceAvailableEN))("fixPrepaid",null==e?null:e.fixPrepaid)("lastPaidInvoice",l.getLastPaidInvoice(null==e?null:e.BillingDocuments))("hasOutstandingBalance",l.checkOutstandingBalance(e))("paymentReferenceNumber",null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].paymentReferenceNumber)("hasCopyInvoice","false"!==(null==e||null==e.BillingDocuments||null==e.BillingDocuments[0]?null:e.BillingDocuments[0].hasCopyInvoice))("isBusinessChildEmailLogin",l.isBusinessChildEmailLogin)("billsVisible","true"===(null==e?null:e.billsVisible)),p.xp6(3),p.Q6J("type","callbackFunc")("notLocked",!l.isBusinessChildEmailLogin||"true"===(null==e?null:e.billsVisible))("hasArrow",!l.isBusinessChildEmailLogin||"true"===(null==e?null:e.billsVisible))("name",p.lcZ(5,65,"bills.seeAllBills"))("className","light-title-v3")("callback",l.isBusinessChildEmailLogin?"true"===(null==e?null:e.billsVisible)?l.goToBillList.bind(l,e):l.noop:l.goToBillList.bind(l,e)),p.xp6(2),p.Q6J("ngIf",l.config.hasDunningNotices),p.xp6(1),p.Q6J("ngIf","false"===(null==e?null:e.fixPrepaid)&&("GR"===l.config.defaultLang?!(null!=e&&e.noManageSettings):"BG"===l.config.defaultLang||l.showEBillSettings)),p.xp6(1),p.Q6J("ngIf",!e.noManageSettings&&"GR"===l.config.defaultLang),p.xp6(1),p.Q6J("ngIf","BG"===l.config.defaultLang&&"false"===(null==e?null:e.fixPrepaid)),p.xp6(1),p.Q6J("ngIf","BG"===l.config.defaultLang),p.xp6(1),p.Q6J("ngIf","GR"===l.config.defaultLang&&l.commonService.hasDirectDebit&&(null==e?null:e.paymentMethod)!==l.ePaymentMethod.AUTOMATIC)}}function E(e,l){if(1&e){const e=p.EpF();p.TgZ(0,"div",13),p.NdJ("click",function(){const l=p.CHM(e).$implicit;return p.oxw(4).onTileClick(l)}),p.YNc(1,U,12,69,"ng-container",1),p.qZA()}if(2&e){const e=l.index,i=p.oxw(4);p.xp6(1),p.Q6J("ngIf",e<i.visibleBillsCount)}}function q(e,l){if(1&e){const e=p.EpF();p.TgZ(0,"div",22),p.NdJ("click",function(){return p.CHM(e),p.oxw(5).loadMoreBills()}),p._uU(1),p.ALo(2,"translate"),p._UZ(3,"img",23),p.qZA()}2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"bills.addMoreButton")," "))}function Q(e,l){if(1&e){const e=p.EpF();p.TgZ(0,"div",24),p.NdJ("click",function(){return p.CHM(e),p.oxw(5).loadLessBills()}),p._uU(1),p.ALo(2,"translate"),p._UZ(3,"img",25),p.qZA()}2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"bills.loadLessButton")," "))}function J(e,l){if(1&e&&(p.ynx(0),p.YNc(1,q,4,3,"div",20),p.YNc(2,Q,4,3,"div",21),p.BQk()),2&e){const e=p.oxw(4);p.xp6(1),p.Q6J("ngIf",e.visibleBillsCount<(null==e.billsCustomerService||null==e.billsCustomerService.payersBillingDocuments?null:e.billsCustomerService.payersBillingDocuments.searchLength)),p.xp6(1),p.Q6J("ngIf",e.visibleBillsCount>=(null==e.billsCustomerService||null==e.billsCustomerService.payersBillingDocuments?null:e.billsCustomerService.payersBillingDocuments.searchLength))}}function Y(e,l){if(1&e&&(p.ynx(0),p.YNc(1,E,2,1,"div",12),p.ALo(2,"billingDocumentsFilter"),p.YNc(3,J,3,2,"ng-container",1),p.BQk()),2&e){const e=p.oxw(3);p.xp6(1),p.Q6J("ngForOf",p.xi3(2,3,null==e.billsCustomerService||null==e.billsCustomerService.payersBillingDocuments?null:e.billsCustomerService.payersBillingDocuments.UserBillingDocuments,e.billsCustomerService.criteriaBills))("ngForTrackBy",e.trackByBillingFn),p.xp6(2),p.Q6J("ngIf",(null==e.billsCustomerService||null==e.billsCustomerService.payersBillingDocuments?null:e.billsCustomerService.payersBillingDocuments.searchLength)>e.initialBillsCount)}}function F(e,l){if(1&e&&(p.TgZ(0,"div",11),p.YNc(1,Y,4,6,"ng-container",1),p.qZA()),2&e){const e=p.oxw(2);p.xp6(1),p.Q6J("ngIf",null==e.billsCustomerService?null:e.billsCustomerService.payersBillingDocuments)}}function R(e,l){1&e&&(p.TgZ(0,"div"),p.TgZ(1,"div",4),p.TgZ(2,"div",5),p._UZ(3,"img",6),p.qZA(),p.TgZ(4,"p",7),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.xp6(5),p.Oqu(p.lcZ(6,1,"billsListing.invoicesNotArrive")))}function G(e,l){if(1&e&&(p.ynx(0),p.YNc(1,F,2,1,"div",10),p.YNc(2,R,7,3,"div",1),p.BQk()),2&e){const e=p.oxw();p.xp6(1),p.Q6J("ngIf",!e.billsCustomerService.billsLoading),p.xp6(1),p.Q6J("ngIf",!e.billsCustomerService.billsLoading&&(null==e.billsCustomerService?null:e.billsCustomerService.payersBillingDocuments)&&(null==e.billsCustomerService||null==e.billsCustomerService.payersBillingDocuments?null:e.billsCustomerService.payersBillingDocuments.UserBillingDocuments)&&0===(null==e.billsCustomerService||null==e.billsCustomerService.payersBillingDocuments?null:e.billsCustomerService.payersBillingDocuments.searchLength))}}let V=(()=>{class e{constructor(e,l,i,n,t,s){this.commonService=e,this.trs=l,this.billsCustomerService=i,this.customerService=n,this.router=t,this.elRef=s,this.config=c.v,this.isAdmin=!1,this.fromHome=!1,this.eUserType=o.d,this.eUserChildType=g._,this.eCustomerType=a.A,this.ePaymentMethod=u.q,this.showEBillSettings=!1,this.visibleBillsCount=5,this.initialBillsCount=5,this.payAllBillsCount=3,this.totalCurrentMonthBalance=0,this.lastPaymentInvoice="",this.isBusinessChild=!1,this.isBusinessChildEmailLogin=!1,this.noop=()=>{},this.commonService.isPageTitleActivated=!0,this.commonService.isBackButtonActivated="HR"===c.v.defaultLang,this.commonService.setPageTitle(this.trs.trsTs("pageTitle.bills"),"main-bills"),this.commonService.isCustomerPickerActivated=!0,this.billsCustomerService.filteredBillingDocuments=[],this.billsCustomerService.filteredDevicesListData=[]}ngOnInit(){var e,l,i,n;this.elRef.nativeElement.closest("body").classList.add("reset-pager-title"),this.isAdmin=localStorage.getItem("userType")===o.d.ADMIN||localStorage.getItem("userType")===o.d.B2B_ADMIN||(null===(e=localStorage.getItem("userType"))||void 0===e?void 0:e.toLowerCase())===g._.BUSINESS_CHILD,this.isBusinessChild=(null===(l=localStorage.getItem("userType"))||void 0===l?void 0:l.toLowerCase())===g._.BUSINESS_CHILD,this.isBusinessChildEmailLogin=(null===(i=localStorage.getItem("userType"))||void 0===i?void 0:i.toLowerCase())===g._.BUSINESS_CHILD&&!localStorage.getItem("userLoggedWithMobileNumber"),this.fromHome="true"===localStorage.getItem("fromHome"),this.addClassOnUserAction(),"GR"!==c.v.defaultLang&&this.billsCustomerService.groupedContracts&&!this.billsCustomerService.groupedContracts.length&&this.billsCustomerService.groupContractByPayerId(),localStorage.removeItem("checkChild"),localStorage.removeItem("customerName"),localStorage.removeItem("contractType"),(null===(n=this.billsCustomerService.payersDebt)||void 0===n?void 0:n.length)<=2?this.billsCustomerService.fetchBillsDocuments().subscribe(()=>
1{this.billsCustomerService.initBillingDocuments.forEach(e=>{this.billsCustomerService.setInitSearchCriteriasForDoc(e)}),this.billingDocumentView()}):(this.billsCustomerService.payersDebt.forEach(e=>{var l,i;if(!(null===(i=null===(l=this.billsCustomerService.payersBillingDocuments)||void 0===l?void 0:l.UserBillingDocuments)||void 0===i?void 0:i.find(l=>l.payerId===e.payer))){const l={payerId:e.payer,payerName:"",currentMonthBalance:e.debt,payerIdentity:e.guid,BillingDocuments:[],InstallmentsBillingDocuments:[],nextBillingPeriod:"",billDetailsVisible:"false",multiPayer:"false"};this.billsCustomerService.payersBillingDocuments||(this.billsCustomerService.payersBillingDocuments={status:"OK",statusMessage:"OK",UserBillingDocuments:[]}),this.billsCustomerService.payersBillingDocuments.UserBillingDocuments.push(l)}}),this.billingDocumentView())}setNewOrOverdue(e){var l,i,n,t,s;if(!(null===(l=null==e?void 0:e.BillingDocuments)||void 0===l?void 0:l.length))return["",""];const o=this.commonService.isNewOrOverdue(null===(n=null===(i=null==e?void 0:e.BillingDocuments)||void 0===i?void 0:i[0])||void 0===n?void 0:n.dueDate),a="paid"===(null==e?void 0:e.paidStatus)?"paid-icon":"0.00"!==(null===(s=null===(t=null==e?void 0:e.BillingDocuments)||void 0===t?void 0:t[0])||void 0===s?void 0:s.toBePayed)?"new"===o[0]?"new-icon":"unpaid-icon":"paid-icon";return[a,"paid-icon"===a?this.trs.trsTs("bills.yourBillsPaid"):o[1]]}checkOutstandingBalance(e){var l,i;if(!(null===(l=null==e?void 0:e.BillingDocuments)||void 0===l?void 0:l.length))return!1;const n=null===(i=null==e?void 0:e.BillingDocuments)||void 0===i?void 0:i[0],t=this.billsCustomerService.getSummedDevicePrice(n,(null==e?void 0:e.InstallmentsBillingDocuments)||[]);return Number(null==e?void 0:e.currentMonthBalance)<=("GR"===c.v.defaultLang?Number(null==n?void 0:n.toBePayed):Number(null==n?void 0:n.toBePayed)+t)}trackByBillingFn(e,l){return l.payerId}addClassOnUserAction(){this.commonService.isCustomerPickerActivated&&this.elRef.nativeElement.closest("body").classList.add("showing-user-actions")}billingDocumentView(){var e,l;this.fromHome?this.sortByPayerId(null===(l=this.billsCustomerService.payersBillingDocuments)||void 0===l?void 0:l.UserBillingDocuments):this.billsCustomerService.sortBillingDocuments(null===(e=this.billsCustomerService.payersBillingDocuments)||void 0===e?void 0:e.UserBillingDocuments),"BG"===c.v.defaultLang&&this.totalSumOfToBePayed()}getLastPaidInvoice(e){var l;if(!e||0===e.length)return"0.00";const i=e.reduce((e,l)=>{if(l.billType!==d.W.INVOICE||0===parseFloat(null==l?void 0:l.payed))return e;if(!e)return l;const i=new Date(null==l?void 0:l.billingDate).getTime(),n=new Date(null==e?void 0:e.billingDate).getTime();return i>n||i===n&&parseFloat(null==l?void 0:l.grossValue)>parseFloat(null==e?void 0:e.grossValue)?l:e},null);return null!==(l=null==i?void 0:i.payed)&&void 0!==l?l:"0.00"}totalSumOfCurrentMonthBalance(){var e,l;this.totalCurrentMonthBalance=null===(l=null===(e=this.billsCustomerService.payersBillingDocuments)||void 0===e?void 0:e.UserBillingDocuments)||void 0===l?void 0:l.reduce((e,l)=>{var i;console.log("item.currentMonthBalance",l.currentMonthBalance);const n=null===(i=l.currentMonthBalance)||void 0===i?void 0:i.trim();if(!n||!n.match(/^(--|-)?\d+(\.\d+)?$/))return e;const t=(n.match(/-/g)||[]).length,s=n.replace(/^-+/,""),o=parseFloat(s);return isNaN(o)?e:e+(t%2==0?1:-1)*o},0)}totalSumOfToBePayed(){var e,l;this.totalCurrentMonthBalance=null===(l=null===(e=this.billsCustomerService.payersBillingDocuments)||void 0===e?void 0:e.UserBillingDocuments)||void 0===l?void 0:l.reduce((e,l)=>{var i;return(null===(i=l.BillingDocuments)||void 0===i?void 0:i.length)?e+l.BillingDocuments.reduce((e,l)=>{const i=parseFloat(l.toBePayed);return e+(isNaN(i)?0:i)},0):e},0)}setPayerName(e){const{payerId:l,contractType:i,customerName:n,payerName:t}=e;return"GR"===c.v.defaultLang?` ${l}`:` ${l} | ${this.commonService.transformBillingAccountName("SI"===c.v.defaultLang?i===r.G.MOBILE_PREPAID||i===r.G.MOB_DATA_PREPAID?n:t:t||n)}`}sortByPayerId(e){const l=localStorage.getItem("payerId");e.sort((e,i)=>e.payerId===l?-1:i.payerId===l?1:0)}filteredContractsByPayerId(e){var l;return this.setEBillSettings(e),(null===(l=this.billsCustomerService)||void 0===l?void 0:l.groupedContracts[e])||[]}setEBillSettings(e){var l,i,n,t,s,o,a;(null===(l=this.billsCustomerService)||void 0===l?void 0:l.groupedContracts[e])&&(null===(n=null===(i=this.billsCustomerService)||void 0===i?void 0:i.groupedContracts[e])||void 0===n?void 0:n.length)?1===(null===(s=null===(t=this.billsCustomerService)||void 0===t?void 0:t.groupedContracts[e])||void 0===s?void 0:s.length)?null===(a=null===(o=this.billsCustomerService)||void 0===o?void 0:o.groupedContracts[e])||void 0===a||a.forEach(e
1=>{this.showEBillSettings=!(e.contractType===r.G.MOBILE_PREPAID||e.contractType===r.G.MOB_DATA_PREPAID)}):this.showEBillSettings=!0:this.showEBillSettings=!1}navigateToEBillSettings(e,l,i,n,t,s,o,a){return localStorage.setItem("payerId",e),localStorage.setItem("payerName","SI"!==c.v.defaultLang||a!==r.G.MOBILE_PREPAID&&a!==r.G.MOB_DATA_PREPAID?n:o),s&&localStorage.setItem("payerIdentity",s),i?localStorage.setItem("caid",i):localStorage.removeItem("caid"),l&&localStorage.setItem("billingDocument",l),this.router.navigate("eBill"===t?["/bills/ebill-settings"]:["/bills/bill-addresses"])}navigateToRenameBillingAccount(e){return localStorage.setItem("payerId",e),this.router.navigate(["/bills/rename-billing-account"])}goToBillList(e){var l,i,n,t;console.log("billGroup",e);const s=(null==e?void 0:e.BillingDocuments)&&(null===(i=null===(l=null==e?void 0:e.BillingDocuments)||void 0===l?void 0:l[0])||void 0===i?void 0:i.billingDocument)?null===(t=null===(n=null==e?void 0:e.BillingDocuments)||void 0===n?void 0:n[0])||void 0===t?void 0:t.billingDocument:"";localStorage.setItem("payerId",null==e?void 0:e.payerId),localStorage.setItem("payerName",null==e?void 0:e.payerName),localStorage.setItem("customerName",null==e?void 0:e.customerName),localStorage.setItem("contractType",null==e?void 0:e.contractType),localStorage.setItem("billingDocument",s),localStorage.setItem("fixPrepaid",null==e?void 0:e.fixPrepaid),(null==e?void 0:e.payerIdentity)&&localStorage.setItem("payerIdentity",null==e?void 0:e.payerIdentity),("GR"===c.v.defaultLang?e.customerType&&s:s)&&(localStorage.setItem("billingDocument",s),localStorage.setItem("checkChild",JSON.stringify({noPayButton:null==e?void 0:e.noPayButton,noManageSettings:null==e?void 0:e.noManageSettings,customerType:null==e?void 0:e.customerType,businessChild:null==e?void 0:e.businessChild,residentalChild:null==e?void 0:e.residentalChild}))),this.router.navigate(["/bills/bill-list"])}navigateToPayWholeBill(){localStorage.setItem("payAllBills","true"),this.router.navigate(["/bills/pay-bills"])}goToDunningNotices(e){localStorage.setItem("payerId",null==e?void 0:e.payerId),localStorage.setItem("payerName",null==e?void 0:e.payerName),this.router.navigate(["/bills/dunning-notices"])}loadMoreBills(){this.visibleBillsCount+=5}loadLessBills(){this.visibleBillsCount=this.initialBillsCount}formatTotalCurrentMonthBalance(e){const l=null==e?void 0:e.toString(),i=this.commonService.autoConvert(l,this.commonService.eCurrencySymbol);return{left:`${i.leftAmount} ${i.leftSymbol}`,right:`${i.rightAmount} ${i.rightSymbol}`}}navigateToRecurringPaymentManagement(e){return localStorage.setItem("payerId",e),this.router.navigate(["/bills/recurring-payment-management"])}onTileClick(e){var l,i;(null===(l=this.billsCustomerService.payersDebt)||void 0===l?void 0:l.length)>2&&!(null===(i=null==e?void 0:e.BillingDocuments)||void 0===i?void 0:i.length)&&this.fetchBillsDocumentsPayerIdentity(e)}fetchBillsDocumentsPayerIdentity(e){this.billsCustomerService.fetchBillsDocuments(e.payerIdentity).subscribe(l=>{var i;if("OK"===(null==l?void 0:l.status)&&(null===(i=null==l?void 0:l.UserBillingDocuments)||void 0===i?void 0:i.length)){const i=l.UserBillingDocuments[0];e.BillingDocuments=i.BillingDocuments,e.InstallmentsBillingDocuments=i.InstallmentsBillingDocuments,e.DevicePayments=i.DevicePayments,e.Services=i.Services,e.paidStatus=i.paidStatus,e.inSubscription=i.inSubscription,e.isNewBill=i.isNewBill,e.billDetailsVisible=i.billDetailsVisible,e.searchCriterias=i.searchCriterias,this.billsCustomerService.setInitSearchCriteriasForDoc(e);const n=this.billsCustomerService.payersBillingDocuments.UserBillingDocuments,t=n.findIndex(l=>l.payerId===e.payerId);-1!==t&&(n[t]=Object.assign({},e))}})}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}}return e.\u0275fac=function(l){return new(l||e)(p.Y36(v.v),p.Y36(h.D),p.Y36(b.$),p.Y36(y.v),p.Y36(t.F0),p.Y36(p.SBq))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-dashboard"]],viewQuery:function(e,l){if(1&e&&p.Gf(m.I,5),2&e){let e;p.iGM(e=p.CRH())&&(l.billTileCards=e)}},decls:5,vars:5,consts:[["class","page-spinner",4,"ngIf"],[4,"ngIf"],[1,"page-spinner"],[3,"mode","strokeWidth","diameter"],[1,"error-wrapper","no-data"],[1,"mt-40","mb
1-60"],["src","assets/img/payments-empty-icon.svg","alt","empty payment"],[1,"font-bold","font-size-16"],[3,"userTemplate",4,"ngIf"],[3,"userTemplate"],["class","bills-dashboard",4,"ngIf"],[1,"bills-dashboard"],["class","mb-40",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mb-40",3,"click"],[3,"labelText","unpaid","inSubscription","isPaymentBlockShowing","price","bills","userBillingDocument","groupedContracts","hasPaymentsData","billingDocument","payerIdentity","payerId","payerName","customerName","contractType","isBillDetails","showLabelPaymentMethod","paymentMethod","hasAction","hasPrice","multiPayer","customerIdentity","noPayButton","noManageSettings","businessChild","residentalChild","customerType","hasPayBtn","showCustomerCodeVal","billMonth","showDownloadBill","billingDate","showOverdueAmount","pdfAvailableDash","showDownloadBillMainPage","dueDateBill","showAdvancePaymentBtn","payWithoutInvoice","newOrOverdue","hasTotalDeptLabel","invoiceAvailable","invoiceAvailableEN","fixPrepaid","lastPaidInvoice","hasOutstandingBalance","paymentReferenceNumber","hasCopyInvoice","isBusinessChildEmailLogin","billsVisible"],["fixBoxHeight","height60",3,"type","notLocked","hasArrow","name","className","callback"],["fixBoxHeight","height60",3,"type","hasArrow","name","className","callback",4,"ngIf"],["fixBoxHeight","height60",3,"notLocked","type","hasArrow","name","className","callback",4,"ngIf"],["fixBoxHeight","height60",3,"type","hasArrow","name","className","callback"],["fixBoxHeight","height60",3,"notLocked","type","hasArrow","name","className","callback"],["class","load-more-v3 new-design",3,"click",4,"ngIf"],["class","load-more-v3 new-design revert",3,"click",4,"ngIf"],[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"]],template:function(e,l){1&e&&(p.YNc(0,I,2,3,"div",0),p.YNc(1,T,8,3,"ng-container",1),p.YNc(2,w,2,1,"ng-container",1),p.YNc(3,L,7,3,"ng-container",1),p.YNc(4,G,3,2,"ng-container",1)),2&e&&(p.Q6J("ngIf",l.billsCustomerService.billsLoading),p.xp6(1),p.Q6J("ngIf",!1),p.xp6(1),p.Q6J("ngIf",!1),p.xp6(1),p.Q6J("ngIf",!l.billsCustomerService.billsLoading&&!l.billsCustomerService.payersBillingDocuments),p.xp6(1),p.Q6J("ngIf",!0))},directives:[n.O5,B.Ou,f.d,n.sg,m.I,D.t],pipes:[S.X$,C,A.i],styles:[".whole-btn-wrapper[_ngcontent-%COMP%]{margin-bottom:20px}@media only screen and (min-width: 768px){.whole-btn-wrapper[_ngcontent-%COMP%]{margin-bottom:40px}}"]}),e})();var H=i(32789);const W=[{path:"",redirectTo:"dashboard"},{path:"dashboard",component:V}];let $=(()=>{class e{}return e.\u0275fac=function(l){return new(l||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({imports:[[n.ez,t.Bz.forChild(W),s.m,H.p0],t.Bz]}),e})()}}]);

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.