PageSourceSearch

https://www.vivacom.bg/account/chunk-IYUWPAJU.js

js vivacom.bg collected 2026-09-24 09:30:50 UTC 9,130 bytes, 1 lines download raw bytes

1import{a as E}from"./chunk-WPOP456W.js";import{b as F,c as K}from"./chunk-IWX7PRJF.js";import{a as U,b as N,d as W,f as q,h as V,j as Y,k as x}from"./chunk-RBW3UBVU.js";import{b as J}from"./chunk-W3XJHQ7V.js";import{a as Q}from"./chunk-WKSI6BXT.js";import"./chunk-I2IIPFJQ.js";import"./chunk-MSOL6SIA.js";import"./chunk-7VPZEKLB.js";import"./chunk-L26F6FQC.js";import"./chunk-DTBZ7U2G.js";import"./chunk-LR32ZC3B.js";import"./chunk-MRUXXFZZ.js";import"./chunk-ZK2UVZHG.js";import"./chunk-YCWVNKHW.js";import"./chunk-IKP3GIDA.js";import{a as G}from"./chunk-6FDE4EML.js";import{$a as P,Ma as B,ab as k,b as A,ia as R,lb as L,sc as O,wc as $}from"./chunk-UMFZ3LLX.js";import{a as z,b as j}from"./chunk-BWEGVNY2.js";import"./chunk-AG6QEAUI.js";import"./chunk-SAUKD7DD.js";import{Fc as I,Ha as b,Jb as d,Lb as c,Qb as p,Qc as v,Rb as i,Rc as g,Sb as n,Tb as m,Xb as u,Yb as _,db as r,fc as f,jc as D,kc as M,lc as w,ob as T,tc as s,ub as H,uc as C,vc as y,zb as h}from"./chunk-KKSGD2T6.js";import"./chunk-EQDQRRRY.js";function tt(e,a){if(e&1&&(i(0,"div",0),m(1,"mat-progress-spinner",3),n()),e&2){let t=f();r(),p("mode",t.commonService.mode)("strokeWidth",2)("diameter",80)}}function et(e,a){if(e&1&&m(0,"app-server-error",1),e&2){let t=f();p("callback",t.transferHistory.bind(t))}}function it(e,a){if(e&1&&(i(0,"td",27)(1,"span",28),s(2),n()()),e&2){let t=a.$implicit,o=f(3);r(2),C(o.commonService.formatDate(t.created,"dd. MM. yyyy"))}}function nt(e,a){if(e&1&&(i(0,"td",27),s(1),n()),e&2){let t=a.$implicit;r(),y(" ",t.Receiver.msisdn," ")}}function rt(e,a){if(e&1&&(i(0,"td",27)(1,"span",29),s(2),n(),s(3,"\xA0"),i(4,"span",30),s(5,"Mb"),n()()),e&2){let t=a.$implicit;r(2),C(t.Amount.value)}}function at(e,a){e&1&&m(0,"tr",31)}function ot(e,a){if(e&1&&(i(0,"table",18),u(1,22),h(2,it,3,1,"td",23),_(),u(3,24),h(4,nt,2,1,"td",23),_(),u(5,25),h(6,rt,6,1,"td",23),_(),h(7,at,1,0,"tr",26),n()),e&2){let t=f(2);p("dataSource",t.sentData),r(7),p("matRowDefColumns",t.displayedColumns)}}function st(e,a){if(e&1&&m(0,"mat-paginator",19),e&2){let t=f(2);p("length",t.sentData.filteredData.length)("pageSize",5)("hidePageSize",!0)}}function lt(e,a){e&1&&(i(0,"div",20)(1,"span",32),m(2,"img",33)(3,"mat-icon",34),n(),i(4,"p",35),s(5),v(6,"translate"),n()()),e&2&&(r(5),C(g(6,1,"transferHistory.notSend")))}function mt(e,a){if(e&1&&(i(0,"td",27)(1,"span",28),s(2),n()()),e&2){let t=a.$implicit,o=f(3);r(2),C(o.commonService.formatDate(t.created,"dd. MM. yyyy"))}}function dt(e,a){if(e&1&&(i(0,"td",27),s(1),n()),e&2){let t=a.$implicit;r(),y(" ",t.Sponsor.msisdn," ")}}function ct(e,a){if(e&1&&(i(0,"td",27)(1,"span",29),s(2),n(),s(3,"\xA0"),i(4,"span",30),s(5,"Mb"),n()()),e&2){let t=a.$implicit;r(2),C(t.Amount.value)}}function pt(e,a){e&1&&m(0,"tr",31)}function ft(e,a){if(e&1&&(i(0,"table",18),u(1,22),h(2,mt,3,1,"td",23),_(),u(3,24),h(4,dt,2,1,"td",23),_(),u(5,25),h(6,ct,6,1,"td",23),_(),h(7,pt,1,0,"tr",26),n()),e&2){let t=f(2);p("dataSource",t.receivedData),r(7),p("matRowDefColumns",t.displayedColumns2)}}function Ct(e,a){if(e&1&&m(0,"mat-paginator",19),e&2){let t=f(2);p("length",t.receivedData.filteredData.length)("pageSize",5)("hidePageSize",!0)}}function ht(e,a){e&1&&(i(0,"div",20)(1,"span",32),m(2,"img",33)(3,"mat-icon",34),n(),i(4,"p",35),s(5),v(6,"translate"),n()()),e&2&&(r(5),C(g(6,1,"transferHistory.notGet")))}function ut(e,a){if(e&1&&(i(0,"section",2)(1,"div",4)(2,"div",5)(3,"p",6),s(4),v(5,"translate"),n()()(),i(6,"ul",7)(7,"li",8)(8,"div",9)(9,"span",10),m(10,"img",11),n(),i(11,"p",6)(12,"span"),s(13),v(14,"translate"),n(),i(15,"span",12),s(16),i(17,"sub",13),s(18,"Mb"),n()()()(),i(19,"div",9)(20,"span",10),m(21,"img",14),n(),i(22,"p",6)(23,"span"),s(24),v(25,"translate"),n(),i(26,"span",12),s(27),i(28,"sub",13),s(29,"Mb"),n()()()()()(),i(30,"mat-tab-group",15)(31,"mat-tab",16),v(32,"translate"),i(33,"section",17),d(34,ot,8,2,"table",18),d(35,st,1,3,"mat-paginator",19),n(),d(36,lt,7,3,"div",20),n(),i(37,"mat-tab",21)(38,"section",17),d(39,ft,8,2,"table",18),d(40,Ct,1,3,"mat-paginator",19),n(),d(41,ht,7,3,"div",20),n()()()),e&2){let t=f();r(4),C(g(5,13,"transferHistory.title")),r(9),C(g(14,15,"transferHistory.totalGift")),r(3),y("",t.totalSent?t.totalSent:0," "),r(8),C(g(25,17,"transferHistory.totalReceived")),r(3),y("",t.totalReceived?t.totalReceived:0," "),r(4),p("label",I(g(32,19,"transferHistory.sentGb"))),r(3),c(t.sentTransfers.length>0?34:-1),r(),c(t.sentTransfers.length>0&&t.sentData.filteredData.length>5?35:-1),r(),c(t.sentTransfers.length===0?36:-1),r(3),c(t.receivedTransfers.length>0?39:-1),r(),c(t.receivedTransfers.length>0&&t.receivedData.filteredData.length>5?40:-1),r(),c(t.receivedTransfers.length===0?41:-1)}}var X=(()=>{class e{constructor(t,o,l,S,Z){this.commonService=t,this.shopService=o,this.trs=l,this.dialog=S,this.storageService=Z,this.config=A,this.showError=!1,this.isLoadedHistory=!1,this.displayedColumns=["date","number","amount"],this.displayedColumns2=["date","number","amount"],this.paginator=new b,this.commonService.isBackButtonActivated=!0,this.commonService.isPageTitleActivated=!0,this.commonService.isCustomerPickerActivated=!1,this.commonService.isFindNumberActivated=!1,this.commonService.setPageTitle(this.trs.trsTs("pageTitle.transferHistory"),"transfer-history")}ngOnInit(){this.transferHistory()}transferHistory(){this.showError=!1,this.shopService.transferHistory(this.storageService.get(z.CID)).subscribe(t=>
1{if(t.status&&t.status==="OK"){if(console.log("response transferHistory",t),this.isLoadedHistory=!0,t.statusMessage!=="OK"){this.sentTransfers=[],this.receivedTransfers=[];return}this.sentTransfers=t.CustomerTransferHistory.SentTransfers.filter(o=>o.status==="SUCCESS"),console.log("this.sentTransfers",this.sentTransfers),this.sentTransfers.length>0&&(this.sentData=new x(this.sentTransfers),this.sentData.paginator=this.paginator.toArray()[0],this.totalAmount(this.sentTransfers,"sent")),this.receivedTransfers=t.CustomerTransferHistory.ReceivedTransfers.filter(o=>o.status==="SUCCESS"),console.log("this.receivedTransfers",this.receivedTransfers),this.receivedTransfers.length>0&&(this.receivedData=new x(this.receivedTransfers),this.receivedData.paginator=this.paginator.toArray()[1],this.totalAmount(this.receivedTransfers,"received"))}},()=>{this.showError=!0,this.isLoadedHistory=!1})}handleError(t){switch(t.status){case 406:this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.transferHistory406"));return;case 409:this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.transferHistory409"));return;case 410:this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.transferHistory410"));return;case 411:this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.transferHistory411"));return;default:this.openConfirmationDialog("error",this.trs.trsTs("httpErrorCode.default"));return}}openConfirmationDialog(t,o){this.dialog.open(O,{width:"420px",panelClass:["global-dialog","confirmation-dialog"],data:{type:t,confirmButtonText:this.trs.trsTs("close"),confirmButtonAction:!0,closeButton:!1,title:o}}).afterClosed().subscribe(()=>{})}totalAmount(t,o){return o==="sent"?(this.totalSent=0,t.forEach(l=>{this.totalSent+=+l.Amount.value}),this.totalSent):(this.totalReceived=0,t.forEach(l=>{this.totalReceived+=+l.Amount.value}),this.totalReceived)}ngOnDestroy(){this.commonService.isBackButtonActivated=!1,this.commonService.isPageTitleActivated=!1}static{this.\u0275fac=function(o){return new(o||e)(T($),T(J),T(L),T(R),T(j))}}static{this.\u0275cmp=H({type:e,selectors:[["app-transfer-history"]],viewQuery:function(o,l){if(o&1&&D(E,5),o&2){let S;M(S=w())&&(l.paginator=S)}},decls:3,vars:3,consts:[[1,"page-spinner"],[3,"callback"],[1,"transfer-history-page","stream-tile-card"],[3,"mode","strokeWidth","diameter"],[1,"package-rss-wrapper"],[1,"left"],[1,"font-regular","font-size-14"],[1,"stream-list","mb40"],[1,"stream-item"],[1,"stream-inner"],[1,"stream-img"],["src","assets/img/upstream.svg","alt","devices",1,"absolute-center"],[1,"font-bold","large"],[1,"font-size-14"],["src","assets/img/downstream.svg","alt","devices",1,"absolute-center"],["mat-align-tabs","center"],[3,"label"],[1,"top-up-account-history-page"],["mat-table","",1,"global-table",3,"dataSource"],[3,"length","pageSize","hidePageSize"],[1,"error-wrapper","no-data"],["label","Primljene Gige"],["matColumnDef","date"],["mat-cell","",4,"matCellDef"],["matColumnDef","number"],["matColumnDef","amount"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell",""],[1,"text-color-10"],[1,"font-bold"],[1,"font-regular"],["mat-row",""],[1,"error"],["src","assets/img/no-bills.svg","alt","profile-image",1,"absolute-center"],["svgIcon","leftselected-mark",1,"icon"],[1,"font-bold","title-3"]],template:function(o,l){o&1&&(d(0,tt,2,3,"div",0),d(1,et,1,1,"app-server-error",1),d(2,ut,42,21,"section",2)),o&2&&(c(!l.isLoadedHistory&&!l.showError?0:-1),r(),c(l.showError?1:-1),r(),c(l.isLoadedHistory?2:-1))},dependencies:[G,Q,K,F,U,W,N,q,V,Y,E,B,k,P],encapsulation:2})}}return e})();var Lt=[{path:"",redirectTo:"transfer-history",pathMatch:"full"},{path:"transfer-history",component:X}];export{Lt as TRANSFER_HISTORY_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.