PageSourceSearch

https://portal.privacypillar.com/src_app_pagesettings_billing_upda…pdate-billing_module_ts.353c44a3b0bf46a8.js

js privacypillar.com collected 2026-09-24 09:09:35 UTC 10,517 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_pagesettings_billing_update-billing_update-billing_module_ts"],{75902:(D,T,o)=>{o.d(T,{J:()=>Z});var h=o(61737),p=o(92340),g=o(27221),U=o(80096),t=o(28597),b=o(94650),f=o(80529),C=o(46262);let Z=(()=>{const v=class{constructor(a,n){this.httpClient=a,this.lokiService=n}getCompanyDetails(a,n){const i="/company";return this.httpClient.get(p.N.apiUrl+i).pipe((0,g.K)(e=>(this.onSendLogs(t.o.INFO,e,t.X.getCompanyDetails,a,n,i),(0,h._)(e))))}updateCompanyDetails(a,n,i){const e="/company";return this.httpClient.put(p.N.apiUrl+e,i).pipe((0,g.K)(s=>(this.onSendLogs(t.o.INFO,s,t.X.updateCompanyDetails,a,n,e),(0,h._)(s))))}updateTwoFactorDetails(a,n,i){const e="/company/two-factor-auth";return this.httpClient.put(p.N.apiUrl+e,i).pipe((0,g.K)(s=>(this.onSendLogs(t.o.INFO,s,t.X.updateCompanyDetails,a,n,e),(0,h._)(s))))}updateTwoFactorUserDetails(a,n,i){const e="/user-update/two-factor-auth/"+i;return this.httpClient.put(p.N.apiUrl+e,{}).pipe((0,g.K)(s=>(this.onSendLogs(t.o.INFO,s,t.X.updateCompanyDetails,a,n,e),(0,h._)(s))))}resetTwoFactorUserDetails(a,n,i){const e="/user-reset/two-factor-auth/"+i;return this.httpClient.put(p.N.apiUrl+e,{}).pipe((0,g.K)(s=>(this.onSendLogs(t.o.INFO,s,t.X.updateCompanyDetails,a,n,e),(0,h._)(s))))}getCompanyTeamMembers(a,n,i){const e="/team_member";return this.httpClient.get(p.N.apiUrl+e+i).pipe((0,g.K)(s=>(this.onSendLogs(t.o.INFO,s?.error?.error||s,t.X.getCompanyTeamMembers,a,n,e),(0,h._)(s))))}inviteUser(a,n,i,e){const s="/invite/user";return this.httpClient.post(p.N.apiUrl+s,i,{params:e}).pipe((0,U.d)(1),(0,g.K)(c=>(this.onSendLogs(t.o.INFO,c?.error?.error||c,t.X.inviteUser,a,n,s),(0,h._)(c))))}generateToken(a,n){const i="/company/create-app-id";return this.httpClient.get(p.N.apiUrl+i).pipe((0,U.d)(1),(0,g.K)(e=>(this.onSendLogs(t.o.INFO,e?.error?.error||e,t.X.inviteUser,a,n,i),(0,h._)(e))))}updateToken(a,n){const i="/company/update-app-id";return this.httpClient.get(p.N.apiUrl+i).pipe((0,U.d)(1),(0,g.K)(e=>(this.onSendLogs(t.o.INFO,e?.error?.error||e,t.X.inviteUser,a,n,i),(0,h._)(e))))}getToken(a,n){const i="/company/get-app-id";return this.httpClient.get(p.N.apiUrl+i).pipe((0,U.d)(1),(0,g.K)(e=>(this.onSendLogs(t.o.INFO,e?.error?.error||e,t.X.inviteUser,a,n,i),(0,h._)(e))))}updateUserRole(a,n,i){const e="/invite/user/updaterole";return this.httpClient.put(p.N.apiUrl+e,i).pipe((0,g.K)(s=>(this.onSendLogs(t.o.INFO,s?.error?.error||s,t.X.updateUserRole,a,n,e),(0,h._)(s))))}removeTeamMember(a,n,i,e){let s;return s=e?"/invite/user/"+i.user_level+"/"+i.id+"/"+i.approver_id+"?orgid="+e:"/invite/user/"+i.user_level+"/"+i.id+"/"+i.approver_id,this.httpClient.delete(p.N.apiUrl+s).pipe((0,g.K)(c=>(this.onSendLogs(t.o.INFO,c?.error?.error||c,t.X.removeTeamMember,a,n,s),(0,h._)(c))))}resendInvitation(a,n,i,e){let s;return s=e?"/invite/user/resend?user_id="+i+"&orgid="+e:"/invite/user/resend?user_id="+i,this.httpClient.get(p.N.apiUrl+s).pipe((0,g.K)(c=>(this.onSendLogs(t.o.INFO,c,t.X.resendInvitation,a,n,s),(0,h._)(c))))}getUserList(a,n,i){const e="/invite/user/list?query="+a;return this.httpClient.get(p.N.apiUrl+e).pipe((0,g.K)(s=>(this.onSendLogs(t.o.INFO,s,t.X.getUserList,n,i,e),(0,h._)(s))))}onSendLogs(a,n,i,e,s,c){this.lokiService.onSendErrorLogs(a,n,i,e,s,c).subscribe()}};let y=v;return v.\u0275fac=function(n){return new(n||v)(b.LFG(f.eN),b.LFG(C.L))},v.\u0275prov=b.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),y})()},64452:(D,T,o)=>{o.r(T),o.d(T,{UpdateBillingModule:()=>A});var h=o(36895),p=o(51692),g=o(92340),U=o(3940),t=o(94650),b=o(16785),f=o(75902),C=o(37407),Z=o(4358);function y(d,l){1&d&&(t.TgZ(0,"div",37)(1,"strong"),t._uU(2," Updated! "),t.qZA(),t._uU(3,"Your payment Information has been updated "),t.qZA())}function v(d,l){1&d&&(t.TgZ(0,"div",38)(1,"strong"),t._uU(2," Error! "),t.qZA(),t._uU(3," Something went wrong ... "),t.qZA())}function I(d,l){if(1&d){const _=t.EpF();t.TgZ(0,"alert",39),t.NdJ("onClosed",function(){t.CHM(_);const m=t.oxw();return t.KtG(m.onClosed(m.alertMsg))}),t._uU(1),t.qZA()}if(2&d){const _=t.oxw();t.Q6J("type",_.alertType)("dismissible",_.dismissible),t.xp6(1),t.Oqu(_.alertMsg)}}let a=(()=>{const l=class{constructor(r,m,u,O){this.billingService=r,this.companyService=m,this.loading=u,this.activatedRoute=O,this.sessionId="",this.billingDetails={billing_details:null,billing_history:null,company_details:null},this.stripe=window.Stripe(g.N.stripePublishablekey),this.queryParams={success:!1,sessionId:"",error:!1},this.companyDetails={name:""},this.dismissible=!0,this.isOpen=!1}ngOnInit(){this.onGetStatus(),this.onGetCurrentPlan(),this.onGetCompanyDetails(),this.onGetSessionId()}onGetStatus(){this.activatedRoute.queryParams.subscribe(r=>{"true"===r.success&&(this.queryParams=r,this.queryParams.success=!0),"false"===r.success&&(this.queryParams.success=!1,this.queryParams.error=!0)})}onGetSessionId(){this.loading.start("1"),this.billingService.createSessionId(this.constructor.name,U.e.updateBillingModule).subscribe(r=>{this.loading.stop("1"),200===r.status&&(this.sessionId=r.response)}
1,r=>{this.loading.stop("1"),this.alertMsg=r,this.isOpen=!0,this.alertType="danger"})}onGetCurrentPlan(){this.loading.start("2"),this.billingService.getCurrentPlan(this.constructor.name,U.e.updateBillingModule).subscribe(r=>{this.loading.stop("2"),200===r.status&&(this.billingDetails=r.response)},r=>{this.loading.stop("2"),this.alertMsg=r,this.isOpen=!0,this.alertType="danger"})}onGetCompanyDetails(){this.loading.start("3"),this.companyService.getCompanyDetails(this.constructor.name,U.e.updateBillingModule).subscribe(r=>{this.loading.stop("3"),200===r.status&&(this.companyDetails=r.response)},r=>{this.loading.stop("3"),this.alertMsg=r,this.isOpen=!0,this.alertType="danger"})}onUpdateCheckout(){this.sessionId&&this.stripe.redirectToCheckout({sessionId:this.sessionId}).then(r=>{}).catch(r=>{this.alertMsg=r,this.isOpen=!0,this.alertType="danger"})}onClosed(r){}};let d=l;return l.\u0275fac=function(m){return new(m||l)(t.Y36(b.j),t.Y36(f.J),t.Y36(C.LA),t.Y36(p.gz))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-update-billing"]],decls:79,vars:16,consts:[[1,"container","pd-x-0","pd-lg-x-10","pd-xl-x-0"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/"],["routerLink","/settings/billing"],["aria-current","page",1,"breadcrumb-item","active"],[1,"mg-b-0","tx-spacing--1"],[1,"row"],[1,"col-md-8"],["class","mt-3 alert alert-info",4,"ngIf"],["class","mt-3 alert alert-danger",4,"ngIf"],[1,"col-md-10","mb-4","mg-t-40","mg-sm-t-0","mg-md-t-40"],[1,"card"],[1,"card-body"],[1,"col-sm-2"],["aria-hidden","true",2,"font-size","70px"],[1,"col-md-6"],["p-0",""],[1,"col-md-4"],["type","button",1,"btn","btn-primary","btn-sm","mt-3",3,"click"],[1,"fas","fa-pen","mr-2"],[1,"contant-details","mt-3","mt-3","ml-1"],[1,"mb-4"],[1,"card-title"],[1,"card-subtitle","mb-2","text-muted"],[1,"tx-15","mg-b-10"],[1,"mg-b-0"],[1,"plan-details","mt-4"],[1,"mb-4","mt-3"],[1,"float-right"],[1,"mt-4"],[1,"mb-4","mt-3","text-muted"],[1,"float-right","total-price"],[1,"col-sm-5","mt-3","mr-0","float-right"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed",4,"ngIf"],[1,"mt-3","alert","alert-info"],[1,"mt-3","alert","alert-danger"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed"]],template:function(m,u){1&m&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4)(6,"a",5),t._uU(7,"Dashboard"),t.qZA()(),t.TgZ(8,"li",4)(9,"a",6),t._uU(10,"Billing"),t.qZA()(),t.TgZ(11,"li",7),t._uU(12,"Update billing"),t.qZA()()(),t.TgZ(13,"h4",8),t._uU(14,"Billing Details"),t.qZA()()(),t.TgZ(15,"div",9)(16,"div",10),t.YNc(17,y,4,0,"div",11),t.YNc(18,v,4,0,"div",12),t.TgZ(19,"div",13)(20,"h6"),t._uU(21,"Update an existing payment card"),t.qZA(),t.TgZ(22,"div",14)(23,"div",15)(24,"div",9)(25,"div",16),t._UZ(26,"i",17),t.qZA(),t.TgZ(27,"div",18)(28,"span",19),t._uU(29),t.qZA(),t._UZ(30,"br"),t.TgZ(31,"span"),t._uU(32),t.qZA(),t._UZ(33,"br"),t.TgZ(34,"p"),t._uU(35),t.qZA()(),t.TgZ(36,"div",20)(37,"button",21),t.NdJ("click",function(){return u.onUpdateCheckout()}),t._UZ(38,"i",22),t.TgZ(39,"span"),t._uU(40," Update Card"),t.qZA()()()()()()(),t.TgZ(41,"div",23)(42,"h5",24),t._uU(43,"Contact Details"),t.qZA(),t.TgZ(44,"div",14)(45,"div",15)(46,"h5",25),t._uU(47,"Company Name"),t.qZA(),t.TgZ(48,"h6",26),t._uU(49),t.qZA(),t.TgZ(50,"h6",27),t._uU(51,"Contact Info"),t.qZA(),t.TgZ(52,"p",28),t._uU(53),t.qZA(),t.TgZ(54,"p",28),t._uU(55),t.qZA()()()()(),t.TgZ(56,"div",20)(57,"div",14)(58,"div",15)(59,"h4",25),t._uU(60,"Bill Estimate "),t.qZA(),t.TgZ(61,"h6",26),t._uU(62),t.qZA(),t.TgZ(63,"div",29)(64,"h6",30),t._uU(65),t.TgZ(66,"span",31),t._uU(67),t.qZA()()(),t.TgZ(68,"div",32)(69,"h6",33),t._uU(70,"Tax "),t.TgZ(71,"span",31),t._uU(72,"0.00"),t.qZA()(),t.TgZ(73,"h6",33),t._uU(74,"Total "),t.TgZ(75,"span",34),t._uU(76),t.qZA()()()()()()()(),t.TgZ(77,"div",35),t.YNc(78,I,2,3,"alert",36),t.qZA()),2&m&&(t.xp6(17),t.Q6J("ngIf",u.queryParams.success),t.xp6(1),t.Q6J("ngIf",u.queryParams.error),t.xp6(8),t.Gre("fab fa-cc-",null==u.billingDetails?null:u.billingDetails.billing_details.brand,""),t.xp6(3),t.Oqu(u.billingDetails.billing_details.card_number),t.xp6(3),t.Oqu(u.billingDetails.billing_details.name),t.xp6(3),t.hij("Expires ",u.billingDetails.billing_details.expiry,""),t.xp6(14),t.Oqu(u.companyDetails.name),t.xp6(4),t.Oqu(u.billingDetails.company_details.address),t.xp6(2),t.hij("Email: ",u.billingDetails.company_details.email,""),t.xp6(7),t.Oqu(u.companyDetails.name),t.xp6(3),t.hij("",u.billingDetails.billing_details.plan_name," "),t.xp6(2),t.hij("$ ",u.billingDetails.billing_history.amount,""),t.xp6(9),t.hij("$ ",u.billingDetails.billing_history.amount,""),t.xp6(2),t.Q6J("ngIf",u.isOpen))}
1,dependencies:[h.O5,p.rH,Z.wx],styles:[".plan-details[_ngcontent-%COMP%]{border-bottom:1px solid lightgray}.total-price[_ngcontent-%COMP%]{font-size:20px;font-weight:400;color:#0c0e13}"]}),d})();var n=o(85493),i=o(31456);const e=[{path:"",component:a,canActivate:[n.a1,i.p]}];let s=(()=>{const l=class{};let d=l;return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[p.Bz.forChild(e),p.Bz]}),d})();var c=o(19119);let A=(()=>{const l=class{};let d=l;return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[h.ez,s,c.J]}),d})()}}]);

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.