PageSourceSearch

https://portal.privacypillar.com/src_app_pagesettings_billing_invoices_invoices_module_ts.ef2a336a3803a907.js

js privacypillar.com collected 2026-09-24 09:10:03 UTC 16,834 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_pagesettings_billing_invoices_invoices_module_ts"],{48662:(W,_,a)=>{a.r(_),a.d(_,{InvoicesModule:()=>X});var d=a(36895),u=a(3940),h=a(17489),v=a(92340),t=a(94650),x=a(37407),m=a(51692),y=a(16785),T=a(11481),f=a(96923),Z=a(42111),b=a(73747),D=a(32320),w=a(4358),C=a(12553),p=a(24006);const I=["dt"];function M(e,s){if(1&e){const i=t.EpF();t.TgZ(0,"span",25),t.NdJ("click",function(){t.CHM(i),t.oxw();const n=t.MAs(20);return t.KtG(n.show())}),t._UZ(1,"i",26),t.qZA()}if(2&e){const i=t.oxw();t.xp6(1),t.Q6J("ngClass",""!==i.searchbydaterange?"fa-times color-red":"fa-caret-down")}}function O(e,s){if(1&e){const i=t.EpF();t.TgZ(0,"span",27),t.NdJ("click",function(){t.CHM(i);const n=t.oxw();return t.KtG(n.clearDatePicker())}),t._UZ(1,"i",28),t.qZA()}if(2&e){const i=t.oxw();t.xp6(1),t.Q6J("ngClass",""!==i.searchbydaterange?"fa-times color-red":"fa-caret-down")}}function A(e,s){1&e&&(t.TgZ(0,"tr",33)(1,"th",34),t._uU(2,"Invoice ID"),t.qZA(),t.TgZ(3,"th",34),t._uU(4,"Email"),t.qZA(),t.TgZ(5,"th"),t._uU(6,"Amount"),t.qZA(),t.TgZ(7,"th"),t._uU(8,"Paid"),t.qZA(),t.TgZ(9,"th"),t._uU(10,"Sub total"),t.qZA(),t.TgZ(11,"th"),t._uU(12,"Applied Coupon"),t.qZA(),t.TgZ(13,"th"),t._uU(14,"Total Discount"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"Total"),t.qZA(),t.TgZ(17,"th",35),t._uU(18,"Amount paid "),t._UZ(19,"p-sortIcon",36),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Status"),t.qZA(),t.TgZ(22,"th",37),t._uU(23,"Date "),t._UZ(24,"p-sortIcon",38),t.qZA(),t.TgZ(25,"th"),t._uU(26,"Action"),t.qZA()())}function q(e,s){1&e&&(t.ynx(0),t._UZ(1,"i",49),t.BQk())}function U(e,s){1&e&&t._UZ(0,"i",50)}function P(e,s){if(1&e&&(t.TgZ(0,"label"),t._uU(1),t.qZA()),2&e){const i=t.oxw().$implicit;t.xp6(1),t.Oqu(null==i.discount||null==i.discount.coupon?null:i.discount.coupon.id)}}function k(e,s){1&e&&(t.TgZ(0,"label"),t._uU(1,"--"),t.qZA())}function J(e,s){if(1&e&&(t.TgZ(0,"label"),t._uU(1),t.qZA()),2&e){const i=t.oxw().$implicit;t.xp6(1),t.Oqu((null==i?null:i.amount)/100)}}function N(e,s){if(1&e&&(t.TgZ(0,"span"),t.YNc(1,J,2,1,"label",21),t.qZA()),2&e){const i=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",i.total_discount_amounts.length>0)}}function Y(e,s){1&e&&(t.TgZ(0,"label"),t._uU(1,"--"),t.qZA())}function R(e,s){if(1&e&&(t.TgZ(0,"tr")(1,"td",39)(2,"a",40),t._uU(3),t.qZA()(),t.TgZ(4,"td",41),t._uU(5),t.qZA(),t.TgZ(6,"td",41),t._uU(7),t.qZA(),t.TgZ(8,"td",41),t.YNc(9,q,2,0,"ng-container",42),t.YNc(10,U,1,0,"ng-template",null,43,t.W1O),t.qZA(),t.TgZ(12,"td",41),t._uU(13),t.qZA(),t.TgZ(14,"td",44)(15,"span"),t.YNc(16,P,2,1,"label",21),t.qZA(),t.TgZ(17,"span"),t.YNc(18,k,2,0,"label",21),t.qZA()(),t.TgZ(19,"td",44),t.YNc(20,N,2,1,"span",45),t.TgZ(21,"span"),t.YNc(22,Y,2,0,"label",21),t.qZA()(),t.TgZ(23,"td",41),t._uU(24),t.qZA(),t.TgZ(25,"td",41),t._uU(26),t.qZA(),t.TgZ(27,"td",41),t._uU(28),t.qZA(),t.TgZ(29,"td",41),t._uU(30),t.ALo(31,"date"),t.qZA(),t.TgZ(32,"td",41)(33,"a",46)(34,"button",47),t._UZ(35,"i",48),t.qZA()()()()),2&e){const i=s.$implicit,o=t.MAs(11);t.xp6(2),t.s9C("href",i.hosted_invoice_url,t.LSH),t.xp6(1),t.Oqu(i.id),t.xp6(2),t.Oqu(i.customer_email),t.xp6(2),t.Oqu(i.amount_due/100),t.xp6(2),t.Q6J("ngIf",i.paid)("ngIfElse",o),t.xp6(4),t.Oqu(i.subtotal/100),t.xp6(3),t.Q6J("ngIf",null!==i.discount),t.xp6(2),t.Q6J("ngIf",null==i.discount),t.xp6(2),t.Q6J("ngForOf",i.total_discount_amounts),t.xp6(2),t.Q6J("ngIf",0==i.total_discount_amounts.length),t.xp6(2),t.Oqu(i.total/100),t.xp6(2),t.Oqu(i.amount_paid/100),t.xp6(2),t.Oqu(i.status),t.xp6(2),t.Oqu(t.xi3(31,16,1e3*i.created,"dd/MM/yyyy")),t.xp6(3),t.s9C("href",i.invoice_pdf,t.LSH)}}function S(e,s){1&e&&(t.TgZ(0,"tr")(1,"td"),t._uU(2," No records found "),t.qZA()()),2&e&&(t.xp6(1),t.uIk("colspan",11))}const F=function(){return[10,20,30]};function Q(e,s){if(1&e&&(t.TgZ(0,"div")(1,"p-table",29),t.YNc(2,A,27,0,"ng-template",30),t.YNc(3,R,36,19,"ng-template",31),t.YNc(4,S,3,1,"ng-template",32),t.qZA()()),2&e){const i=t.oxw();t.xp6(1),t.Q6J("value",i.products)("responsive",!0)("paginator",!0)("rows",10)("rowHover",!0)("showCurrentPageReport",!0)("totalRecords",i.products.length)("loading",i.tLoading)("rowsPerPageOptions",t.DdM(9,F))}}function G(e,s){1&e&&(t.TgZ(0,"div",51)(1,"div",52)(2,"span",53),t._uU(3,"Loading..."),t.qZA()()())}
1function L(e,s){if(1&e){const i=t.EpF();t.TgZ(0,"alert",54),t.NdJ("onClosed",function(){t.CHM(i);const n=t.oxw();return t.KtG(n.onClosed(n.alertMsg))}),t._uU(1),t.qZA()}if(2&e){const i=t.oxw();t.Q6J("type",i.alertType)("dismissible",i.dismissible),t.xp6(1),t.Oqu(i.alertMsg)}}const B=function(e,s){return{oid:e,pid:s}},H=function(e){return{hide:e}};let z=(()=>{const s=class{constructor(o,n,r,l,c){this.loading=o,this.router=n,this.billingService=r,this.activatedRoute=l,this.titleService=c,this.isOpen=!1,this.dismissible=!0,this.submitted=!1,this.tLoading=!0,this.RecordCount=0,this.products=[],this.p=1,this.count=10,this.searchbydaterange="",this.searchbydaterangeExport="",this.date1=new Date("yyyy-mm-dd"),this.ranges=[{value:[new Date,new Date],label:"Today"},{value:[new Date((new Date).setDate((new Date).getDate()-1)),new Date((new Date).setDate((new Date).getDate()-1))],label:"Yesterday"},{value:[new Date((new Date).setDate((new Date).getDate()-7)),new Date],label:"Last 7 Days"},{value:[new Date((new Date).setDate((new Date).getDate()-30)),new Date],label:"Last 30 Days"},{value:[new Date((new Date).getFullYear(),(new Date).getMonth(),1),new Date((new Date).getFullYear(),(new Date).getMonth()+1,0)],label:"This Month"},{value:[new Date((new Date).getFullYear(),(new Date).getMonth()-1,1),new Date((new Date).getFullYear(),(new Date).getMonth(),0)],label:"Last Month"},{value:[new Date((new Date).getFullYear(),(new Date).getMonth()-6,1),new Date((new Date).getFullYear(),(new Date).getMonth(),0)],label:"Last 6 Months"}],this.dateCustomClasses=[{date:new Date,classes:["theme-dark-blue"]}],this.searchbydaterange=[new Date((new Date).setDate((new Date).getDate()-30)),new Date],this.searchbydaterangeExport=[new Date((new Date).setDate((new Date).getDate()-30)),new Date],this.titleService.setTitle("Invoice History - "+v.N.portalPrefix)}ngOnInit(){this.activatedRoute.queryParamMap.subscribe(o=>{this.queryOID=o.get("oid"),this.queryPID=o.get("pid")}),this.onGetinvoiceRecord(),this.bsConfig=Object.assign({},{containerClass:"theme-dark-blue",showClearButton:!0,returnFocusToInput:!0,dateInputFormat:"yyyy-mm-dd",adaptivePosition:!0,showTodayButton:!0,ranges:this.ranges})}onGetCompanyData(o){this.tLoading=!0,this.eventRows=o.rows,this.firstone=0===o.first?1:o.first/o.rows+1,this.pagelimit="?limit="+o.rows+"&page="+this.firstone,this.onGetinvoiceRecord()}onGetinvoiceRecord(){if(this.searchbydaterange.length>0){const o=this.searchbydaterange[0].toJSON().split("T")[0],n=this.searchbydaterange[1].toJSON().split("T")[0];if(o!==n){const r=new Date(o),l=new Date(n);this.start_Date=Math.floor(r.getTime()/1e3),this.end_Date=Math.floor(l.getTime()/1e3)}else{const r=new Date(new Date(this.searchbydaterange[1]).setDate(new Date(this.searchbydaterange[1]).getDate()+1)),l=new Date(o),c=r.toJSON().split("T")[0],g=new Date(c);this.start_Date=Math.floor(l.getTime()/1e3),this.end_Date=Math.floor(g.getTime()/1e3)}}else this.start_Date="",this.end_Date="";this.loading.start(),this.isOpen=!1,this.pagelimit={limit:100,start_date:this.start_Date,end_date:this.end_Date},this.billingService.getstripeinvoice(this.constructor.name,u.e.billingModule,this.pagelimit).subscribe(o=>{this.loading.stop();const n=o;200===n.status&&(this.p=1,this.products=n.data.data,(0,h.orderBy)(this.products,["created"],["desc"]),this.RecordCount=n.count,this.Id=n.startingId,this.prevId=n.endingId,this.tLoading=!1,this.alertMsg="Successfully fetched invoice details",this.isOpen=!0,this.alertType="success")},o=>{this.loading.stop(),this.alertMsg="No record found",this.isOpen=!0,this.alertType="danger"})}onNoDateGetinvoiceRecord(){this.loading.start(),this.isOpen=!1,this.pagelimit={limit:100,start_date:"",end_date:""},this.billingService.getstripeinvoice(this.constructor.name,u.e.billingModule,this.pagelimit).subscribe(o=>{this.loading.stop();const n=o;200===n.status&&(this.p=1,this.products=n.data.data,(0,h.orderBy)(this.products,["created"],["desc"]),this.RecordCount=n.count,this.Id=n.startingId,this.prevId=n.endingId,this.tLoading=!1,this.alertMsg="Successfully fetched invoice details",this.isOpen=!0,this.alertType="success")},o=>{this.loading.stop(),this.alertMsg="No record found",this.isOpen=!0,this.alertType="danger"})}onGetinvoiceprevRecord(){this.loading.start(),this.isOpen=!1,this.pagelimit={limit:100,EndingBefore:this.Id},this.billingService.getstripeinvoicewithId(this.constructor.name,u.e.loginModule,this.pagelimit).subscribe(o=>{this.loading.stop();const n=o;200===n.status&&(this.p=1,0!==n.count?(this.products=n.data.data,(0,h.orderBy)(this.products,["created"],["desc"]),this.RecordCount=n.count,this.prevId=n.endingId,this.Id=n.startingId,this.alertMsg="Successfully fetched invoice details",this.isOpen=!0,this.alertType="success"):(this.alertMsg="No previous records as you are on first page",this.isOpen=!0,this.alertType="info"))},o=>{this.loading.stop(),this.alertMsg="No previous records as you are on first page",this.isOpen=!0,this.alertType="danger"})}onGetinvoicenextRecord(){this.loading.start(),this.isOpen=!1,this.pagelimit={limit:100,StartingAfter:this.prevId},this.billingService.getstripeinvoicewithId(this.constructor.name,u.e.loginModule,this.pagelimit).subscribe(o=>{this.loading.stop();const n=o;200===n.status&&(this.p=1,0!==n.count?(this.products=n.data.data,(0,h.orderBy)(this.products,["created"],["desc"]),this.RecordCount=n.count,this.Id=n.startingId,this.prevId=n.endingId,this.alertMsg="Successfully fetched invoice details",this.isOpen=!0,this.alertType="success"):(this.alertMsg="Already reached limit no more records to show",this.isOpen=!0,this.alertType="info"))},o=>{this.loading.stop(),this.alertMsg="Already reached limit no more records to show",this.isOpen=!0,this.alertType="danger"})}onnextshow(){this.onGetinvoicenextRecord()}onprevshow(){this.onGetinvoiceprevRecord()}onChangeEvent(o){this.count=o.target.value}onClosed(o){this.alertMsg=!o,this.isOpen=!1}clearDatePicker(){this.searchbydaterange="",this.onNoDateGetinvoiceRecord()}};let e=s;return s.\u0275fac=function(n){return new(n||s)(t.Y36(x.LA),t.Y36(m.F0),t.Y36(y.j),t.Y36(m.gz),t.Y36(T.Dx))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-invoices"]],viewQuery:function(n,r){if(1&n&&t.Gf(I,5),2&n){let l;t.iGM(l=t.CRH())&&(r.pTable=l.first)}},decls:30,vars:14,consts:[[1,"mb-3"],["aria-label","breadcrumb",1,"align-navbtn"],[1,"breadcrumb","breadcrumb-style1","mg-b-0"],[1,"breadcrumb-item"],[1,"breadcrumb-item","active"],["routerLink","/settings/billing/manage",3,"queryParams"],["aria-current","page",1,"breadcrumb-item","active"],[1,"mb-3",2,"display","flex","justify-content","space-between"],[1,"mg-b-0","tx-spacing--1","mb-2"],[1,"ml-2"],[1,"col-sm-12","mr-0","pr-0","pl-0","d-flex","row-reverse"],[1,"input-group-prepend"],["class","input-group-text rounded-right border-left-0","id","inputGroup-sizing-sm",3,"click",4,"ngIf"],["class","input-group-text bg-transparent","style","background-color: #fff !important; border-left:0 !important; border-radius: 0px 5px 5px 0px;",3,"click",4,"ngIf"],["type","text","placeholder","Filter by date","bsDaterangepicker","",1,"form-control","border-left-0","border-right-0","rounded-right",2,"width","200px",3,"ngModel","bsConfig","ngModelChange","onHidden"],["dp","b
1sDaterangepicker"],[1,"input-group-prepend","border-left-0",3,"click"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-left","border-right-0"],[1,"fa","fa-calendar"],[1,"card"],[1,"card-body"],[4,"ngIf"],["class","d-flex justify-content-center",4,"ngIf"],[1,"col-sm-5","mr-0","float-right","flotingdiv",3,"ngClass"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed",4,"ngIf"],["id","inputGroup-sizing-sm",1,"input-group-text","rounded-right","border-left-0",3,"click"],[1,"fa",3,"ngClass"],[1,"input-group-text","bg-transparent",2,"background-color","#fff !important","border-left","0 !important","border-radius","0px 5px 5px 0px",3,"click"],["aria-hidden","true",1,"fa",3,"ngClass"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","sortOrder","-1","styleClass","p-datatable-sm",1,"invoice-history-table","p-paginator-alignment",3,"value","responsive","paginator","rows","rowHover","showCurrentPageReport","totalRecords","loading","rowsPerPageOptions"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[2,"text-align","center"],[2,"width","145px"],["pSortableColumn","amount_paid",2,"width","125px"],["field","amount_paid"],["pSortableColumn","created"],["field","created"],[1,"al","btn-link"],["target","_blank",3,"href"],[1,"al"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"al","text-center"],[4,"ngFor","ngForOf"],["target","_blank","tooltip","Download PDF",3,"href"],["pButton","","type","button",1,"p-button-sm",2,"border-radius","3px 0px 0px 3px","font-size","7px","background-color","#1B365D","color","white"],[1,"pi","pi-download",2,"font-size","small"],[1,"pi","pi-check",2,"font-size","1.0rem","color","#5cb85c"],[1,"pi","pi-times",2,"font-size","1.0rem","color","#d9534f"],[1,"d-flex","justify-content-center"],["role","status",1,"spinner-border"],[1,"sr-only"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed"]],template:function(n,r){if(1&n){const l=t.EpF();t.TgZ(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3),t._uU(5,"Billing"),t.qZA(),t.TgZ(6,"li",4)(7,"a",5),t._uU(8,"Manage Subscriptions"),t.qZA()(),t.TgZ(9,"li",6),t._uU(10,"Invoice history"),t.qZA()()()(),t.TgZ(11,"div",7)(12,"h5",8),t._uU(13,"Invoice History"),t.qZA(),t.TgZ(14,"div",9)(15,"div",10)(16,"div",11),t.YNc(17,M,2,1,"span",12),t.YNc(18,O,2,1,"span",13),t.qZA(),t.TgZ(19,"input",14,15),t.NdJ("ngModelChange",function(g){return r.searchbydaterange=g})("onHidden",function(){return r.onGetinvoiceRecord()}),t.qZA(),t.TgZ(21,"div",16),t.NdJ("click",function(){t.CHM(l);const g=t.MAs(20);return t.KtG(g.show())}),t.TgZ(22,"span",17),t._UZ(23,"i",18),t.qZA()()()()(),t.TgZ(24,"div",19)(25,"div",20),t.YNc(26,Q,5,10,"div",21),t.YNc(27,G,4,0,"div",22),t.qZA()()(),t.TgZ(28,"div",23),t.YNc(29,L,2,3,"alert",24),t.qZA()}2&n&&(t.xp6(7),t.Q6J("queryParams",t.WLB(9,B,r.queryOID,r.queryPID)),t.xp6(10),t.Q6J("ngIf",""==r.searchbydaterange),t.xp6(1),t.Q6J("ngIf",""!==r.searchbydaterange),t.xp6(1),t.Q6J("ngModel",r.searchbydaterange)("bsConfig",r.bsConfig),t.xp6(7),t.Q6J("ngIf",!r.tLoading),t.xp6(1),t.Q6J("ngIf",r.tLoading),t.xp6(1),t.Q6J("ngClass",t.VKq(12,H,!r.isOpen)),t.xp6(1),t.Q6J("ngIf",r.isOpen))},dependencies:[d.mk,d.sg,d.O5,m.rH,f.iA,Z.jx,f.lQ,f.fz,b.FR,b.TB,D.i9,w.wx,C.mh,p.Fj,p.JJ,p.On,d.uU],styles:[".flotingdiv[_ngcontent-%COMP%]{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.hide[_ngcontent-%COMP%]{display:none}.search-controls[_ngcontent-%COMP%]{align-content:center;align-items:center}  .theme-dark-blue{flex-direction:row-reverse!important}  .theme-dark-blue .bs-datepicker-predefined-btns button{margin-bottom:2px!important;background:#fff;color:#333;border:1px solid #ccc}  .theme-dark-blue .bs-datepicker-predefined-btns button.selected{color:#fff;background:#16BF5E}  .theme-dark-blue .bs-datepicker-head{background-color:#000}  .bs-datepicker{right:270px!important;top:5px!important}.datepickerwrapper[_ngcontent-%COMP%]{justify-content:flex-end!important;display:flex!important}.datepickerwrapper[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{outline:none;border-radius:0 5px 5px 0;box-shadow:none;border-color:#c0ccda}.datepickerwrapper[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{border-radius:0!important}.datepickerwrapper[_ngcontent-%COMP%]   .input-group-prepend[_ngcontent-%COMP%]{height:38px}.row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.input-group-prepend[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background-color:#fff;border-color:#c0ccda!important;border-radius:0;cursor:pointer}.lineheight-22[_ngcontent-%COMP%]{line-height:22px}.border-zero-left[_ngcontent-%COMP%]{border-left:0}.alert-success[_ngcontent-%COMP%]{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}table[_ngcontent-%COMP%]{height:86px;display:table;overflow-y:scroll}th[_ngcontent-%COMP%]{position:sticky;top:0;background:rgb(252,252,252)!important}"]}),e})();
1var E=a(85493),j=a(19119),K=a(68567);const $=[{path:"",component:z,canActivate:[E.a1]}];let X=(()=>{const s=class{};let e=s;return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[d.ez,m.Bz.forChild($),f.U$,j.J,K.JX,p.u5,p.UX]}),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.