1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d83ba742-d3f2-5ce0-913d-405ab8ec188a")}catch(e){}}(); 3(self.webpackChunkclient_panel=self.webpackChunkclient_panel||[]).push([[6829],{37501:(B,I,i)=>{i.d(I,{h:()=>x.h});var x=i(98244)},60369:(B,I,i)=>{i.d(I,{u:()=>J});var x=i(37580),c=i(85240),F=i(86763),t=i(12481),n=i(93683),y=i(14876);function S(o,g){if(1&o&&(c.qSk(),t.j41(0,"linearGradient"),t.nrm(1,"stop",5)(2,"stop",6),t.k0s()),2&o){const e=t.XpG(2);t.BMQ("id",e.svg.outerLinearGradient.id),t.R7$(),t.BMQ("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),t.R7$(),t.BMQ("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function p(o,g){if(1&o&&(c.qSk(),t.j41(0,"radialGradient"),t.nrm(1,"stop",5)(2,"stop",6),t.k0s()),2&o){const e=t.XpG(2);t.BMQ("id",e.svg.radialGradient.id),t.R7$(),t.BMQ("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),t.R7$(),t.BMQ("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function v(o,g){if(1&o&&(c.qSk(),t.nrm(0,"circle")),2&o){const e=t.XpG(3);t.BMQ("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill",e.svg.backgroundCircle.fill)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function M(o,g){if(1&o&&(c.qSk(),t.nrm(0,"circle")),2&o){const e=t.XpG(3);t.BMQ("fill",t.ai1("url(",e.window.location.href,"#",e.svg.radialGradient.id,")"))("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function j(o,g){if(1&o&&(c.qSk(),t.qex(0),t.DNE(1,v,1,7,"circle",2)(2,M,1,9,"circle",2),t.bVm()),2&o){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",!e.options.backgroundGradient),t.R7$(),t.Y8G("ngIf",e.options.backgroundGradient)}}function U(o,g){if(1&o&&(c.qSk(),t.nrm(0,"circle")),2&o){const e=t.XpG(2);t.BMQ("cx",e.svg.circle.cx)("cy",e.svg.circle.cy)("r",e.svg.circle.r)("fill",e.svg.circle.fill)("stroke",e.svg.circle.stroke)("stroke-width",e.svg.circle.strokeWidth)}}function V(o,g){if(1&o&&(c.qSk(),t.nrm(0,"path")),2&o){const e=t.XpG(3);t.BMQ("d",e.svg.path.d)("stroke",e.svg.path.stroke)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function O(o,g){if(1&o&&(c.qSk(),t.nrm(0,"path")),2&o){const e=t.XpG(3);t.BMQ("stroke",t.ai1("url(",e.window.location.href,"#",e.svg.outerLinearGradient.id,")"))("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function N(o,g){if(1&o&&(c.qSk(),t.qex(0),t.DNE(1,V,1,5,"path",2)(2,O,1,7,"path",2),t.bVm()),2&o){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",!e.options.outerStrokeGradient),t.R7$(),t.Y8G("ngIf",e.options.outerStrokeGradient)}}function l(o,g){if(1&o&&(c.qSk(),t.j41(0,"tspan"),t.EFF(1),t.k0s()),2&o){const e=g.$implicit,d=t.XpG(4);t.BMQ("x",d.svg.title.x)("y",d.svg.title.y)("dy",e.dy)("font-size",d.svg.title.fontSize)("font-weight",d.svg.title.fontWeight)("fill",d.svg.title.color),t.R7$(),t.JRh(e.span)}}function u(o,g){if(1&o&&(c.qSk(),t.qex(0),t.DNE(1,l,2,7,"tspan",8),t.bVm()),2&o){const e=t.XpG(3);t.R7$(),t.Y8G("ngForOf",e.svg.title.tspans)}}function T(o,g){if(1&o&&(c.qSk(),t.j41(0,"tspan"),t.EFF(1),t.k0s()),2&o){const e=t.XpG(3);t.BMQ("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),t.R7$(),t.JRh(e.svg.units.text)}}function G(o,g){if(1&o&&(c.qSk(),t.j41(0,"tspan"),t.EFF(1),t.k0s()),2&o){const e=g.$implicit,d=t.XpG(4);t.BMQ("x",d.svg.subtitle.x)("y",d.svg.subtitle.y)("dy",e.dy)("font-size",d.svg.subtitle.fontSize)("font-weight",d.svg.subtitle.fontWeight)("fill",d.svg.subtitle.color),t.R7$(),t.JRh(e.span)}}function W(o,g){if(1&o&&(c.qSk(),t.qex(0),t.DNE(1,G,2,7,"tspan",8),t.bVm()),2&o){const e=t.XpG(3);
3t.R7$(),t.Y8G("ngForOf",e.svg.subtitle.tspans)}}function r(o,g){if(1&o&&(c.qSk(),t.j41(0,"text",7),t.DNE(1,u,2,1,"ng-container",2)(2,T,2,4,"tspan",2)(3,W,2,1,"ng-container",2),t.k0s()),2&o){const e=t.XpG(2);t.BMQ("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),t.R7$(),t.Y8G("ngIf",e.options.showTitle),t.R7$(),t.Y8G("ngIf",e.options.showUnits),t.R7$(),t.Y8G("ngIf",e.options.showSubtitle)}}function z(o,g){if(1&o&&(c.qSk(),t.nrm(0,"image",9)),2&o){const e=t.XpG(2);t.BMQ("height",e.svg.image.height)("width",e.svg.image.width)("href",e.svg.image.src,null,"xlink")("x",e.svg.image.x)("y",e.svg.image.y)}}function h(o,g){if(1&o){const e=t.RV6();c.qSk(),t.j41(0,"svg",1),t.bIt("click",function(w){c.eBV(e);const R=t.XpG();return c.Njj(R.emitClickEvent(w))}),t.j41(1,"defs"),t.DNE(2,S,3,5,"linearGradient",2)(3,p,3,5,"radialGradient",2),t.k0s(),t.DNE(4,j,3,2,"ng-container",2)(5,U,1,6,"circle",2)(6,N,3,2,"ng-container",2)(7,r,4,6,"text",3)(8,z,1,5,"image",4),t.k0s()}if(2&o){const e=t.XpG();t.BMQ("viewBox",e.svg.viewBox)("height",e.svg.height)("width",e.svg.width)("class",e.options.class),t.R7$(2),t.Y8G("ngIf",e.options.outerStrokeGradient),t.R7$(),t.Y8G("ngIf",e.options.backgroundGradient),t.R7$(),t.Y8G("ngIf",e.options.showBackground),t.R7$(),t.Y8G("ngIf",e.options.showInnerStroke),t.R7$(),t.Y8G("ngIf",0!=+e.options.percent||e.options.showZeroOuterStroke),t.R7$(),t.Y8G("ngIf",!e.options.showImage&&(e.options.showTitle||e.options.showUnits||e.options.showSubtitle)),t.R7$(),t.Y8G("ngIf",e.options.showImage)}}class f{constructor(){this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=0,this.imageWidth=0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1}}let C=(()=>{class o{constructor(e,d,w,R){this.ngZone=d,this.elRef=w,this.onClick=new t.bkB,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new t.bkB,this._viewportChangedSubscriber=null,this.options=new f,this.defaultOptions=new f,this._lastPercent=0,this._gradientUUID=null,this.render=()=>{this.applyOptions(),this.options.lazy?(null===this.svgElement&&this.draw(this._lastPercent),this.isInViewport&&(this.options.animation&&this.options.animationDuration>0?this.animate(this._lastPercent,this.options.percent):this.draw(this.options.percent),this._lastPercent=this.options.percent)):(this.options.animation&&this.options.animationDuration>0?this.animate(this._lastPercent,this.options.percent):this.draw(this.options.percent),this._lastPercent=this.options.percent)},this.polarToCartesian=(s,m,_,a)=>{let b=a*Math.PI/180;return{x:s+Math.sin(b)*_,y:m-Math.cos(b)*_}},this.draw=s=>{let m=(s=void 0===s?this.options.percent:Math.abs(s))>100?100:s,_=2*this.options.radius+2*this.options.outerStrokeWidth;this.options.showBackground&&(_+=2*this.options.backgroundStrokeWidth+this.max(0,2*this.options.backgroundPadding));let P,$,a={x:_/2,y:_/2},b_x=a.x,b_y=a.y-this.options.radius,k=this.polarToCartesian(a.x,a.y,this.options.radius,360*(this.options.clockwise?m:100-m)/100);100===m&&(k.x=k.x+(this.options.clockwise?-.01:.01)),[P,$]=m>50?this.options.clockwise?[1,1]:[1,0]:this.options.clockwise?[0,1]:[0,0];let D=this.options.animateTitle?s:this.options.percent,q=D>this.options.maxPercent?`${this.options.maxPercent.toFixed(this.options.toFixed)}+`:D.toFixed(this.options.toFixed),tt=this.options.animateSubtitle?s:this.options.percent,A={x:a.x,y:a.y,textAnchor:"middle",color:this.options.titleColor,fontSize:this.options.titleFontSize,fontWeight:this.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==this.options.titleFormat&&"Function"===this.options.titleFormat.constructor.name){let E=this.options.titleFormat(D);E instanceof Array?A.texts=[...E]:A.texts.push(E.toString())}else"auto"===this.options.title?A.texts.push(q):this.options.title instanceof Array?A.texts=[...this.options.title]:A.texts.push(this.options.title.toString());let L={x:a.x,y:a.y,textAnchor:"middle",color:this.options.subtitleColor,fontSize:this.options.subtitleFontSize,fontWeight:this.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==this.options.subtitleFormat&&"Function"===this.options.subtitleFormat.constructor.name){let E=this.options.subtitleFormat(tt);E instanceof Array?L.texts=[...E]:L.texts.push(E.toString())}else this.options.subtitle instanceof Array?L.texts=[...this.options.subtitle]:L.texts.push(this.options.subtitle.toString());let et={text:`${this.options.units}`,fontSize:this.options.unitsFontSize,fontWeight:this.options.unitsFontWeight,color:this.options.unitsColor},Y=0,K=1;if(this.options.showTitle&&(Y+=A.texts.length),this.options.showSubtitle&&(Y+=L.texts.length),this.options.showTitle)for(let E of A.texts)A.tspans.push({span:E,dy:this.getRelativeY(K,Y)}),K++;if(this.options.showSubtitle)for(let E of L.texts)L.tspans.push({span:E,dy:this.getRelativeY(K,Y)}),K++;null===this._gradientUUID&&(this._gradientUUID=this.uuid()),this.svg={viewBox:`0 0 ${_} ${_}`,width:this.options.responsive?"100%":_,height:this.options.responsive?"100%":_,backgroundCircle:{cx:a.x,cy:a.y,r:this.options.radius+this.options.outerStrokeWidth/2+this.options.backgroundPadding,fill:this.options.backgroundColor,fillOpacity:this.options.backgroundOpacity,stroke:this.options.backgroundStroke,strokeWidth:this.options.backgroundStrokeWidth},path:{d:`M ${b_x} ${b_y}\n A ${this.options.radius} ${this.options.radius} 0 ${P} ${$} ${k.x} ${k.y}`,stroke:this.options.outerStrokeColor,strokeWidth:this.options.outerStrokeWidth,strokeLinecap:this.options.outerStrokeLinecap,fill:"none"},circle:{cx:a.x,cy:a.y,r:this.options.radius-this.options.space-this.options.outerStrokeWidth/2-this.options.innerStrokeWidth/2,fill:"none",stroke:this.options.innerStrokeColor,strokeWidth:this.options.innerStrokeWidth},title:A,units:et,subtitle:L,image:{x:a.x-this.options.imageWidth/2,y:a.y-this.options.imageHeight/2,src:this.options.imageSrc,width:this.options.imageWidth,height:this.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+this._gradientUUID,colorStop1:this.options.outerStrokeColor,colorStop2:"transparent"===this.options.outerStrokeGradientStopColor?"#FFF":this.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+this._gradientUUID,colorStop1:this.options.backgroundColor,colorStop2:"transparent"===this.options.backgroundGradientStopColor?"#FFF":this.options.backgroundGradientStopColor}}},this.getAnimationParameters=(s,m)=>{let a,b,k,P=this.options.startFromZero||s<0?0:s,$=m<0?0:this.min(m,this.options.maxPercent),D=Math.abs(Math.round($-P));return D>=100?(a=100,b=this.options.animateTitle||this.options.animateSubtitle?Math.round(D/a):1):(a=D,b=1),k=Math.round(this.options.animationDuration/a),k<10&&(k=10,a=this.options.animationDuration/k,b=!this.options.animateTitle&&!this.options.animateSubtitle&&D>100?Math.round(100/a):Math.round(D/a)),b<1&&(b=1),{times:a,step:b,interval:k}},this.animate=(s,m)=>{this._timerSubscription&&!this._timerSubscription.closed&&this._timerSubscription.unsubscribe();let _=this.options.startFromZero?0:s,a=m,{step:b,interval:k}=this.getAnimationParameters(_,a),P=_;this._timerSubscription=_<a?(0,y.O)(0,k).subscribe(()=>{P+=b,P<=a?!this.options.animateTitle&&!this.options.animateSubtitle&&P>=100?(this.draw(a),this._timerSubscription.unsubscribe()):this.draw(P):(this.draw(a),this._timerSubscription.unsubscribe())}):(0,y.O)(0,k).subscribe(()=>{P-=b,P>=a?!this.options.animateTitle&&!this.options.animateSubtitle&&a>=100?(this.draw(a),this._timerSubscription.unsubscribe()):this.draw(P):(this.draw(a),this._timerSubscription.unsubscribe())})},this.applyOptions=()=>{for(let s of Object.keys(this.options))this.hasOwnProperty(s)&&void 0!==this[s]?this.options[s]=this[s]:this.templateOptions&&void 0!==this.templateOptions[s]&&(this.options[s]=this.templateOptions[s]);this.options.radius=Math.abs(+this.options.radius),this.options.space=+this.options.space,this.options.percent=+this.options.percent>0?+this.options.percent:0,this.options.maxPercent=Math.abs(+this.options.maxPercent),this.options.animationDuration=Math.abs(this.options.animationDuration),this.options.outerStrokeWidth=Math.abs(+this.options.outerStrokeWidth),this.options.innerStrokeWidth=Math.abs(+this.options.innerStrokeWidth),this.options.backgroundPadding=+this.options.backgroundPadding},this.getRelativeY=(s,m)=>(1*(s-m/2)-.18).toFixed(2)+"em",this.min=(s,m)=>s<m?s:m,this.max=(s,m)=>s>m?s:m,this.uuid=()=>{var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(_){var a=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==_?a:3&a|8).toString(16)})},this.checkViewport=()=>{this.findSvgElement();let s=this.isInViewport;this.isInViewport=this.isElementInViewport(this.svgElement),s!==this.isInViewport&&this.onViewportChanged.observers.length>0&&this.ngZone.run(()=>{this.onViewportChanged.emit({oldValue:s,newValue:this.isInViewport})})},this.onScroll=s=>{this.checkViewport()},this.loadEventsForLazyMode=()=>{if(this.options.lazy){this.ngZone.runOutsideAngular(()=>{this.document.addEventListener("scroll",this.onScroll,!0),this.window.addEventListener("resize",this.onScroll,!0)}),null===this._viewportChangedSubscriber&&(this._viewportChangedSubscriber=this.onViewportChanged.subscribe(({newValue:_})=>{_&&this.render()}));let s=(0,y.O)(0,50).subscribe(()=>{null===this.svgElement?this.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=()=>{this.document.removeEventListener("scroll",this.onScroll,!0),this.window.removeEventListener("resize",this.onScroll,!0),null!==this._viewportChangedSubscriber&&(this._viewportChangedSubscriber.unsubscribe(),this._viewportChangedSubscriber=null)},this.document=R.get(c.qQL),this.window=this.document.defaultView,Object.assign(this.options,e),Object.assign(this.defaultOptions,e)}emitClickEvent(e){this.options.renderOnClick&&this.animate(0,this.options.percent),this.onClick.observers.length>0&&this.onClick.emit(e)}isDrawing(){return this._timerSubscription&&!this._timerSubscription.closed}findSvgElement(){if(null===this.svgElement){let e=this.elRef.nativeElement.getElementsByTagName("svg");e.length>0&&(this.svgElement=e[0])}}isElementInViewport(e){if(null==e)return!1;let R,d=e.getBoundingClientRect(),w=e.parentNode;do{if(R=w.getBoundingClientRect(),d.top>=R.bottom||d.bottom<=R.top||d.left>=R.right||d.right<=R.left)return!1;w=w.parentNode}while(w!=this.document.body);return!(d.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||d.bottom<=0||d.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||d.right<=0)}ngOnInit(){this.loadEventsForLazyMode()}ngOnDestroy(){this.unloadEventsForLazyMode()}ngOnChanges(e){this.render(),"lazy"in e&&(e.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}return o.\u0275fac=function(e){return new(e||o)(t.rXU(f),t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(c.zZn))},o.\u0275cmp=t.VBU({type:o,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subt
3itleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:[0,"options","templateOptions"]},outputs:{onClick:"onClick"},standalone:!1,features:[t.OA$],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(e,d){1&e&&t.DNE(0,h,9,11,"svg",0),2&e&&t.Y8G("ngIf",d.svg)},dependencies:[n.Sq,n.bT],encapsulation:2}),o})(),X=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[{provide:f,useValue:e}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=c.G2t({imports:[n.MD]}),o})();var Q=i(84175),H=i(23833),Z=i(71503);let J=(()=>{class o{constructor(e,d){this.dialog=e,this.paymentsManagerService=d,this.redirectUrl=x.hFB.required(),this.secondsLeft=(0,c.vPA)(10),this.percent=(0,F.EW)(()=>this.secondsLeft()*this.step),this.step=10}ngOnInit(){this.startCountdown()}startCountdown(){this.interval=window.setInterval(()=>{this.secondsLeft()>0?this.secondsLeft.update(e=>e-1):(clearInterval(this.interval),this.redirect())},1e3)}redirect(){window.location.href=this.redirectUrl()}ngOnDestroy(){clearInterval(this.interval),this.dialog.closeAll(),this.paymentsManagerService.reloadPaymentMethodsList()}static{this.\u0275fac=function(d){return new(d||o)(t.rXU(H.bZ),t.rXU(Z.q))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-redirect-dialog"]],inputs:{redirectUrl:[1,"redirectUrl"]},features:[t.Jv_([{provide:f}])],decls:12,vars:18,consts:[[1,"redirect-dialog"],[1,"img"],["src","/assets/protected/images/payments/cyber-security.png","alt","Cyber security"],[1,"title"],[1,"main"],[1,"circle",3,"percent","radius","outerStrokeWidth","innerStrokeWidth","maxPercent","space","title","outerStrokeColor","innerStrokeColor","animation","showTitle","showUnits","showSubtitle","showBackground","clockwise","startFromZero","lazy","renderOnClick"],["mat-flat-button","","color","primary",3,"click"]],template:function(d,w){1&d&&(t.j41(0,"div",0)(1,"div",1),t.nrm(2,"img",2),t.k0s(),t.j41(3,"div",3),t.EFF(4,"Za chwil\u0119 zostaniesz przekierowany"),t.nrm(5,"br"),t.j41(6,"span"),t.EFF(7,"aby zweryfikowa\u0107 kart\u0119"),t.k0s()(),t.j41(8,"div",4),t.nrm(9,"circle-progress",5),t.j41(10,"button",6),t.bIt("click",function(){return w.redirect()}),t.EFF(11," Przejd\u017a do weryfikacji "),t.k0s()()()),2&d&&(t.R7$(9),t.Y8G("percent",w.percent())("radius",20)("outerStrokeWidth",8)("innerStrokeWidth",8)("maxPercent",10)("space",-8)("title",w.secondsLeft().toString())("outerStrokeColor","#fbd510")("innerStrokeColor","#cbcbcb")("animation",!1)("showTitle",!0)("showUnits",!1)("showSubtitle",!1)("showBackground",!1)("clockwise",!0)("startFromZero",!1)("lazy",!1)("renderOnClick",!1))},dependencies:[X,C,Q.$z],styles:[".redirect-dialog[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:23.75rem}.redirect-dialog[_ngcontent-%COMP%] .img[_ngcontent-%COMP%]{max-width:12.5rem;max-height:12.5rem;margin-bottom:2.5rem}.redirect-dialog[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.redirect-dialog[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding:.75rem 0 1.5rem;color:#283366;font-size:1.75rem;text-align:center;letter-spacing:.03125rem;font-weight:500}.redirect-dialog[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400;font-size:1.625rem}.redirect-dialog[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{display:flex;align-items:center}.redirect-dialog[_ngcontent-%COMP%] .main[_ngcontent-%COMP%] .circle[_ng
3content-%COMP%]{width:3.4375rem;height:3.4375rem;margin-right:.625rem}"]})}}return o})()},71503:(B,I,i)=>{i.d(I,{q:()=>O});var x=i(24398),c=i(75797),F=i(19999),t=i(70271),n=i(86301),y=i(36647),S=i(76957),p=i(13710),v=i(5270),M=i(13217),j=i(85240),U=i(26503),V=i(53586);class O{constructor(l,u){this.paymentsService=l,this.serviceService=u,this.paymentMethodsListReload$=new c.t(0)}getLabel(l){return(0,M.p9)(l)}getMappedStatusType(l){return{info:"info","info-light":"info",warning:"warning",error:"error",hint:"neutral",default:"neutral",neutral:"neutral"}[l]}reloadPaymentMethodsList(){this.paymentMethodsListReload$.next(this.paymentMethodsListReload$.value+1)}getPaymentMethodsList(l,u){return this.paymentMethodsListReload$.pipe((0,y.n)(()=>(0,F.z)([this.paymentsService.getPaymentMethods(l,u),this.serviceService.getAllContractorServices(l)])),(0,t.T)(([T,G])=>{const W=this.preparePaymentMethods(T,G,u?.offset);return{items:W.items.map(r=>({id:r.id,name:r.name,status:r.status,states:this.getPaymentMethodState(r.states)||this.getMappedPaymentMethodStatus(r.status),type:r.type,config:this.getConfig(r.config,r.type),services:this.getServices(r.services),isPreferredPayment:r.isPreferredPayment,createdAt:r.createdAt,modifiedAt:r.modifiedAt,removedAt:r.removedAt})),count:W.count??0}}),(0,n.t)(1))}preparePaymentMethods(l,u,T){const G={id:0,name:"Przelew",type:S.J.TRANSFER,config:null,states:[S.t.ACTIVE],status:S.t.ACTIVE,services:[],isPreferredPayment:!1,createdAt:"",modifiedAt:"",removedAt:null},W=new Set([p.C0.SKAPIEC,p.C0.LAMODA,p.C0.OPINEO,p.C0.VIDEO_ADS,p.C0.RETAIL_MEDIA]),r=u.filter(h=>W.has(h.type));return l.items.some(h=>"TRANSFER"===h.type)?l.items.map(h=>{"TRANSFER"===h.type&&h.services.push(...r)}):(G.services.push(...r),0===T&&l.items.unshift(G)),{items:l.items,count:l.count??0}}getMappedPaymentMethodStatus(l){switch(l){case S.t.CREATING:return{label:"Procesowanie",type:"CREATING",tooltip:"Metoda p\u0142atno\u015bci jest w trakcie procesowania",colorType:"warning"};case S.t.ACTIVE:return{label:"Aktywna",type:"ACTIVE",tooltip:"Metoda p\u0142atno\u015bci jest aktywna",colorType:"info",icon:""};case S.t.INACTIVE:return{label:"Nieaktywna",type:"INACTIVE",tooltip:"Metoda p\u0142atno\u015bci jest nieaktywna",colorType:"default",icon:""}}}getPaymentMethodState(l){for(const u of l)switch(u){case"EXPIRED":return{label:"Ta karta straci\u0142a wa\u017cno\u015b\u0107. Dodaj now\u0105 kart\u0119 i przypisz do niej us\u0142ugi",type:"EXPIRED",tooltip:"",colorType:"error",mode:"complex",icon:"report"};case"EXPIRED_SOON":return{label:"Termin wa\u017cno\u015bci karty zbli\u017ca si\u0119 do ko\u0144ca. Dodaj now\u0105 kart\u0119 i przypisz do niej us\u0142ugi",type:"EXPIRED_SOON",tooltip:"",colorType:"warning",mode:"complex",icon:"warning"};case"VERIFICATION_FAILED":return{label:"Weryfikacja nieudana",type:"VERIFICATION_FAILED",tooltip:"Weryfikacja metody p\u0142atno\u015bci nie powiod\u0142a si\u0119",colorType:"error",mode:"complex",icon:"report"}}return null}getServices(l){return l.map(u=>({label:this.getLabel(u.type),type:u.type,website:{id:u.website.id,name:u.website.name}})).sort((u,T)=>u.type.localeCompare(T.type))}getConfig(l,u){switch(u){case S.J.CARD:return{name:l?.name||"",mask:l?.mask||"",logoUrl:l?.logoUrl||"/assets/protected/images/no_image.svg",expireYear:l?.expireYear||null,expireMonth:l?.expireMonth||null,brand:l?.brand||null};case S.J.TRANSFER:return{name:"Przelew Tradycyjny",mask:"",logoUrl:"/assets/protected/images/payments/transfer.svg",expireYear:null,expireMonth:null,brand:null}}}static{this.\u0275fac=function(u){return new(u||O)(j.KVO(U.h),j.KVO(V.N))}}static{this.\u0275prov=j.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}(0,x.Cg)([(0,v.Y)()],O.prototype,"getLabel",null),(0,x.Cg)([(0,v.Y)()],O.prototype,"getMappedStatusType",null)},74216:(B,I,i)=>{i.d(I,{D:()=>n});var x=i(89204),c=i(85240),F=function(y){return y.PROD="prod",y.DEV="dev",y}(F||{});const t={prod:{sdkUrl:"https://secure.payu.com/javascript/sdk",merchantId:"4295009"},dev:{sdkUrl:"https://secure.snd.payu.com/javascript/sdk",merchantId:"485845"}};let n=(()=>{class y{constructor(){this.errorResponse=(0,c.vPA)(null),this.successResponse=(0,c.vPA)(null)}initPayuScript(){return new Promise((p,v)=>{const M=document.createElement("script");M.src=this.getConfig().sdkUrl,M.async=!0,M.onload=()=>p(),M.onerror=()=>v(),document.body.appendChild(M)})}initPayu(){var p=this;return(0,x.A)(function*(){return yield p.initPayuScript(),p.payU=window.PayU(p.getConfig().merchantId),p.payU})()}tokenizeCard(){var p=this;return(0,x.A)(function*(){try{return yield p.payU.tokenize("MULTI").then(v=>{"SUCCESS"===v.status?(p.successResponse.set(v),p.errorResponse.set(null)):(p.successResponse.set(null),p.errorResponse.set(v))})}catch(v){p.errorResponse.set(p.prepareErrorResponse(v))}})()}prepareErrorResponse(p){return{status:"ERROR",error:{messages:[this.prepareErrorMessage(p)]}}}prepareErrorMessage(p){return{type:"technical",code:"error.custom",message:p}}
3getConfig(){const{overwrittenPayuEnv:p,env:v}=window;return t[p??("prod"===v?F.PROD:F.DEV)]}static{this.\u0275fac=function(v){return new(v||y)}}static{this.\u0275prov=c.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})()},98244:(B,I,i)=>{i.d(I,{h:()=>W});var x=i(85240),c=i(34456),F=i(31983),t=i(89204),n=i(12481),y=i(86763),S=i(27265),p=i(74216);function v(r,z){if(1&r&&(n.rj2(0,"span",9),n.EFF(1),n.eux()),2&r){const h=n.XpG();n.R7$(),n.SpI(" ",h.errors().cardNumber," ")}}function M(r,z){1&r&&(n.rj2(0,"span",10),n.EFF(1,"Przed dodaniem karty upewnij si\u0119, \u017ce znajduj\u0105 si\u0119 na niej wystarczaj\u0105ce \u015brodki"),n.eux())}function j(r,z){if(1&r&&(n.rj2(0,"span",9),n.EFF(1),n.eux()),2&r){const h=n.XpG();n.R7$(),n.SpI(" ",h.errors().cardDate," ")}}function U(r,z){if(1&r&&(n.rj2(0,"span",9),n.EFF(1),n.eux()),2&r){const h=n.XpG();n.R7$(),n.SpI(" ",h.errors().cardCvv," ")}}let V=(()=>{class r{constructor(h){this.payuService=h,this.onLoading=new n.bkB(!0),this.optionsForms=(0,x.vPA)({cardIcon:!1,style:{basic:{fontColor:"#212121",fontSize:"16px",fontWeight:"normal"},invalid:{fontColor:"#b3001b"}},placeholder:{number:"",date:"",cvv:""},lang:"pl"}),this.errors=(0,y.EW)(()=>{const f=this.payuService.errorResponse();if(null!==f){const C=X=>f?.error.messages?.find(Q=>Q.source===X)?.message||"";return{cardNumber:C("number"),cardDate:C("date"),cardCvv:C("cvv")}}return{cardNumber:"",cardDate:"",cardCvv:""}})}ngAfterViewInit(){var h=this;return(0,t.A)(function*(){h.payuService.errorResponse.set(null),yield h.payuService.initPayu(),h.initializePayUControls()})()}initializePayUControls(){const h=this.payuService.payU.secureForms();this.cardNumber=h.add("number",this.optionsForms()),this.cardDate=h.add("date",this.optionsForms()),this.cardCvv=h.add("cvv",this.optionsForms()),this.cardNumber.render("#payu-card-number"),this.cardDate.render("#payu-card-date"),this.cardCvv.render("#payu-card-cvv"),this.focusHandler(),this.cardNumber.on("ready",()=>this.onLoading.emit(!1))}focusHandler(){[{id:"payu-card-number",focusTarget:this.cardNumber},{id:"payu-card-date",focusTarget:this.cardDate},{id:"payu-card-cvv",focusTarget:this.cardCvv}].forEach(f=>{document.getElementById(f.id)?.addEventListener("click",()=>{f.focusTarget.focus()})})}static{this.\u0275fac=function(f){return new(f||r)(n.rXU(p.D))}}static{this.\u0275cmp=n.VBU({type:r,selectors:[["add-card-payu-form-component"]],outputs:{onLoading:"onLoading"},decls:22,vars:9,consts:[[1,"container"],[1,"card-container"],[1,"card-container__card-number"],[1,"card-wallet"],["src","/assets/protected/images/payments/wallet.svg","alt","Wallet"],[1,"card-number"],[1,"form-container"],["id","payu-card-number",1,"payu-card-form"],["data-label","Numer karty*"],[1,"form-error"],[1,"hint"],[1,"card-details"],["id","payu-card-date",1,"payu-card-form"],["data-label","Wa\u017cna do*"],["id","payu-card-cvv",1,"payu-card-form"],["data-label","CVV*"]],template:function(f,C){1&f&&(n.rj2(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),n.Hgh(4,"img",4),n.eux(),n.rj2(5,"div",5)(6,"div",6),n.Hgh(7,"div",7)(8,"span",8),n.eux(),n.nVh(9,v,2,1,"span",9)(10,M,2,0,"span",10),n.eux()(),n.rj2(11,"div",11)(12,"div")(13,"div",6),n.Hgh(14,"div",12)(15,"span",13),n.eux(),n.nVh(16,j,2,1,"span",9),n.eux(),n.rj2(17,"div")(18,"div",6),n.Hgh(19,"div",14)(20,"span",15),n.eux(),n.nVh(21,U,2,1,"span",9),n.eux()()()()),2&f&&(n.R7$(7),n.AVh("form-error-control",C.errors().cardNumber),n.R7$(2),n.vxM(C.errors().cardNumber?9:10),n.R7$(5),n.AVh("form-error-control",C.errors().cardDate),n.R7$(2),n.vxM(C.errors().cardDate?16:-1),n.R7$(3),n.AVh("form-error-control",C.errors().cardCvv),n.R7$(2),n.vxM(C.errors().cardCvv?21:-1))},dependencies:[F.H,S.q],styles:['.card-container__card-number[_ngcontent-%COMP%]{display:flex;gap:.5rem}.card-container__card-number[_ngcontent-%COMP%] .card-wallet[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:.75rem 1rem;background:#f5f5f5;max-height:3.25rem}.card-container__card-number[_ngcontent-%COMP%] .card-number[_ngcontent-%COMP%]{width:100%}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%]{position:relative;width:100%}
3.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{position:absolute;transition:.2s ease-in-out}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:attr(data-label);left:16px;top:0;bottom:0;margin:auto;pointer-events:none;height:1.125rem;font-size:1.125rem;color:#757575;line-height:1}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form[_ngcontent-%COMP%]{display:flex;align-items:flex-end;background-color:#f5f5f5;padding:1rem 1rem .5rem;border-radius:.25rem .25rem 0 0;border-bottom:.0625rem solid #757575;height:3.25rem;width:100%}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form[_ngcontent-%COMP%]:hover{background-color:#00000014;border-bottom-color:#000000de;cursor:text}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form[_ngcontent-%COMP%]:not(.payu-secure-form-empty) ~ span[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form.payu-secure-form-focus[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:before{font-size:12px;color:#0009;transform:translateY(-.6875rem)}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:after{content:"";width:0;height:.0625rem;bottom:0;background-color:#234092;left:0;right:0;margin:auto;transition:.3s}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form.payu-secure-form-focus[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:before{color:#234092}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form.payu-secure-form-focus[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:after{height:.125rem;width:100%!important}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form.payu-secure-form-invalid[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:after, .card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form.form-error-control[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:after{background-color:#b3001b;height:.125rem;width:100%}.card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form.payu-secure-form-invalid[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:before, .card-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .payu-card-form.form-error-control[_ngcontent-%COMP%] ~ span[_ngcontent-%COMP%]:before{color:#b3001b}.card-container[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%]{display:flex;gap:1rem;margin-top:1rem}.card-container[_ngcontent-%COMP%] .card-details[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}.card-container[_ngcontent-%COMP%] .form-error[_ngcontent-%COMP%]{padding:0 1rem;font-size:.75rem;color:#b3001b}.card-container[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{color:#757575;font-size:.75rem;font-weight:400;letter-spacing:.025rem;line-height:1.25rem;padding:0 1rem}']})}}return r})();var O=i(40789),N=i(88388),l=i(95541),u=i(94674);function T(r,z){1&r&&n.nrm(0,"div",1)}function G(r,z){1&r&&(n.j41(0,"app-header-description",4),n.EFF(1,"Opcje dodatkowe"),n.k0s(),n.j41(2,"mat-form-field")(3,"mat-label"),n.EFF(4,"Nazwa karty (opcjonalnie)"),n.k0s(),n.nrm(5,"input",5),n.j41(6,"mat-hint"),n.EFF(7,"Mo\u017cesz ustawi\u0107 nazw\u0119, kt\xf3ra pozwoli Ci \u0142atwo zidentyfikowa\u0107 t\u0119 kart\u0119"),n.k0s(),n.nrm(8,"mat-error",6),n.k0s())}let W=(()=>{class r{constructor(){this.loading=(0,x.vPA)(!0)}onLoading(){this.loading.set(!1)}static getFormGroup(){return new c.gE({cardName:new c.MJ("",{nonNullable:!0})})}static{this.\u0275fac=function(f){return new(f||r)}}static{this.\u0275cmp=n.VBU({type:r,selectors:[["add-card-form-component"]],inputs:{form:"form",showCardName:"showCardName"},decls:5,vars:3,consts:[[1,"payment"],[1,"loading"],[3,"formGroup"],[1,"add-card-payu-form-component",3,"onLoading"],["paddingTop","2rem"],["type","text","matInput","","formControlName","cardName"],["matErrorMessages",""]],template:function(f,C){1&f&&(n.j41(0,"div",0),n.nVh(1,T,1,0,"div",1),n.j41(2,"form",2)(3,"add-card-payu-form-component",3),n.bIt("onLoading",function(){return C.onLoading()}),n.k0s(),n.nVh(4,G,9,0),n.k0s()()),2&f&&(n.R7$(),n.vxM(C.loading()?1:-1),n.R7$(),n.Y8G("formGroup",C.form),n.R7$(2),n.vxM(C.showCardName?4:-1))},dependencies:[F.H,N.rl,N.nJ,N.MV,N.TL,c.qT,c.me,c.BC,c.cb,c.j4,c.JD,l.fg,u.h,V,O.R],styles:['.payment[_ngcontent-%COMP%]{position:relative}
3.payment[_ngcontent-%COMP%] .add-card-payu-form-component[_ngcontent-%COMP%]{display:block;margin-top:1.5rem}.payment[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%]{justify-content:center;align-items:center;display:flex;height:100%;width:100%;background:#fff;content:"";position:absolute;top:0;left:0;transform:none;z-index:2}']})}}return r})()}}]); 4//# sourceMappingURL=6829.cbd89d7e6c315812.js.map 5//# debugId=d83ba742-d3f2-5ce0-913d-405ab8ec188a
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.