PageSourceSearch

https://charge-angels.com/chunk-ChD-RRMw.js

js charge-angels.com collected 2026-09-24 14:12:10 UTC 4,193 bytes, 1 lines download raw bytes

1import{i as D}from"./chunk-Bg56mejT.js";import{An as bT,Cn as _w,Gr as rE,In as cg,Jt as Uh,Or as lp,Pr as nT,at as Lh,gt as Oh,hi as wl,kn as aw,li as vl,lt as Mh,m as Bi,q as Hr,qr as sg,r as AD,st as MT,zn as cw}from"./chunk-Ct5fFTEk.js";import{Ct as UV,Er as p_,J as Mu,Mt as WK,Nt as WU,W as Kt,Wr as to,Z as NN,_ as CY,dn as bs,f as Bk,hr as nY,ii as xK,ir as lr,n as $U,on as bQ,ot as Ru,pt as Sc,vn as dK}from"./chunk-Do2j7OlL.js";import{f as c}from"./main-4UDTHKF4.js";import{t as L}from"./chunk-DUZ2v3uG.js";var u=D(L());function X(t,h){if(t&1&&(Bi(0,`span`),nT(1),vl()),t&2){let e=_w(2);rE(),sg(e.tenant.name)}}function Y(t,h){if(t&1&&(Bi(0,`span`),nT(1),bT(2,`translate`),bT(3,`appConnectorId`),vl()),t&2){let e=_w(2);rE(),cg(``,e.chargingStationID,` - `,MT(2,3,`chargers.connector`),` `,MT(3,5,e.connectorID))}}function Z(t,h){if(t&1&&(Bi(0,`mat-icon`),nT(1,`qr_code`),vl(),aw(2,X,2,1,`span`)(3,Y,4,7,`span`)),t&2){let e=_w();rE(2),cw(e.tenant?2:3)}}function ee(t,h){if(t&1&&nT(0),t&2)wl(` `,_w().tenant.name,` `)}function te(t,h){if(t&1&&(nT(0),bT(1,`translate`),bT(2,`appConnectorId`)),t&2){let e=_w();cg(` `,e.chargingStationID,` / `,MT(1,3,`chargers.connector`),` `,MT(2,5,e.connectorID),` `)}}var _e=(()=>{class t{constructor(e,p,d,f,N,J,i){this.dialogRef=e,this.translateService=p,this.spinnerService=d,this.centralServerService=f,this.messageService=N,this.router=J,i&&(i.chargingStationID&&(this.chargingStationID=i.chargingStationID),i.connectorID&&(this.connectorID=i.connectorID),i.evseID&&(this.evseID=i.evseID),i.qrCode&&(this.qrCode=i.qrCode),i.tenant&&(this.tenant=i.tenant,this.dialogTitle=this.tenant.name)),Kt.registerCloseKeyEvents(this.dialogRef)}download(){this.spinnerService.show(),this.chargingStationID&&this.centralServerService.downloadChargingStationConnectorQrCodes(this.chargingStationID,this.connectorID,this.evseID).subscribe({next:e=>{this.spinnerService.hide(),u.saveAs(e,`${this.chargingStationID.toLowerCase()}-${Kt.getConnectorLetterFromConnectorIDEvseID(this.connectorID,this.evseID).toLowerCase()}-qr-codes.pdf`)},error:e=>{this.spinnerService.hide(),Kt.handleHttpError(e,this.router,this.messageService,this.centralServerService,this.translateService.instant(`chargers.qr_code_generation_error`))}}),this.tenant&&this.centralServerService.downloadTenantQrCode(this.tenant.id).subscribe({next:e=>{this.spinnerService.hide(),u.saveAs(e,Kt.replaceSpecialCharsInFileName(`${this.tenant.name}-qr-code.pdf`))},error:e=>{this.spinnerService.hide(),Kt.handleHttpError(e,this.router,this.messageService,this.centralServerService,this.translateService.instant(`chargers.qr_code_generation_error`))}})}cancel(){this.dialogRef.close()}static{this.ɵfac=function(p){return new(p||t)(Hr(Ru),Hr(bs),Hr(nY),Hr(xK),Hr(WK),Hr(lr),Hr(UV))}}static{this.ɵcmp=AD({type:t,selectors:[[`ng-component`]],decls:17,vars:8,consts:[[1,`main-content`,`vw-90`,`dialog-fit-content`,`qr-code-dialog-size`],[`animationDuration`,`0ms`,`disableRipple`,`true`,1,`tabs-in-dialog`],[`mat-tab-label`,``],[1,`card-body`,`mat-tab-dialog-body-content`,`align-items-center`],[1,`qr-code`],[3,`src`],[1,`p-t-15`],[`align`,`end`],[`type`,`button`,`mat-flat-button`,``,1,`btn-color`,3,`click`],[`type`,`button`,`mat-stroked-button`,``,1,`m-l-5`,3,`click`]],template:function(p,d){p&1&&(Bi(0,`div`,0)(1,`mat-tab-group`,1)(2,`mat-tab`),Mh(3,Z,4,1,`ng-template`,2),Bi(4,`div`,3)(5,`div`,4),Lh(6,`img`,5),vl(),Bi(7,`div`,6),aw(8,ee,1,1)(9,te,3,7),vl()()()(),Bi(10,`mat-dialog-actions`,7)(11,`button`,8),Uh(`click`,function(){return d.download()}),nT(12),bT(13,`translate`),vl(),Bi(14,`button`,9),Uh(`click`,function(){return d.cancel()}),nT(15),bT(16,`translate`),vl()()()),p&2&&(rE(6),Oh(`src`,d.qrCode,lp),rE(2),cw(d.tenant?8:9),rE(4),wl(` `,MT(13,4,`general.download`),` `),rE(3),wl(` `,MT(16,6,`general.cancel`),` `))},dependencies:[to,Mu,p_,dK,Sc,NN,Bk,WU,$U,bQ,CY,c],styles:[`.qr-code-dialog-size[_ngcontent-%COMP%]{min-height:460px;max-height:460px;max-width:700px}.qr-code[_ngcontent-%COMP%]{display:flex;justify-content:center;text-align:center}.buttons-container[_ngcontent-%COMP%]{padding:1rem 0;display:flex;justify-content:flex-end;width:100%}`]})}}return t})();export{_e as t};

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.