1"use strict";(self.webpackChunkcams_admin=self.webpackChunkcams_admin||[]).push([[2959],{56439:(N,P,p)=>{p.d(P,{g:()=>C});var u=p(86276),k=p(34008),f=p(41360),g=p(58989);let C=(()=>{class m extends u.f{constructor(w){super(w,"",k.c.coreInvoiceService)}calculateFee(w){return this.http.post(`${this.baseUrl}/prices/calculate`,w)}getLoanProductConfiguration(w,E){return this.http.get(`${this.baseUrl}/products/loan-products-configuration`,{params:{tenantId:String(w),loanProductId:String(E)}})}static{this.\u0275fac=function(E){return new(E||m)(f.KVO(g.Qq))}}static{this.\u0275prov=f.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},58258:(N,P,p)=>{p.d(P,{A:()=>ce});var u=p(18444),k=p(39763),f=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),g_textSize=function(e,a,t){var o,r=[].concat(a),i=r.length,n=e.font,s=0;for(e.font=t.string,o=0;o<i;++o)s=Math.max(e.measureText(r[o]).width,s);return e.font=n,{height:i*t.lineHeight,width:s}};function C(e,a){var t=a.x,r=a.y;if(null===t)return{x:0,y:-1};if(null===r)return{x:1,y:0};var i=e.x-t,n=e.y-r,s=Math.sqrt(i*i+n*n);return{x:s?i/s:0,y:s?n/s:-1}}function I(e,a,t){var r=0;return e<t.left?r|=1:e>t.right&&(r|=2),a<t.top?r|=8:a>t.bottom&&(r|=4),r}function B(e,a){var i,n,t=a.anchor,r=e;return a.clamp&&(r=function b(e,a){for(var l,d,h,t=e.x0,r=e.y0,i=e.x1,n=e.y1,s=I(t,r,a),o=I(i,n,a);s|o&&!(s&o);)8&(l=s||o)?(d=t+(i-t)*(a.top-r)/(n-r),h=a.top):4&l?(d=t+(i-t)*(a.bottom-r)/(n-r),h=a.bottom):2&l?(h=r+(n-r)*(a.right-t)/(i-t),d=a.right):1&l&&(h=r+(n-r)*(a.left-t)/(i-t),d=a.left),l===s?s=I(t=d,r=h,a):o=I(i=d,n=h,a);return{x0:t,x1:i,y0:r,y1:n}}(r,a.area)),"start"===t?(i=r.x0,n=r.y0):"end"===t?(i=r.x1,n=r.y1):(i=(r.x0+r.x1)/2,n=(r.y0+r.y1)/2),function m(e,a,t,r,i){switch(i){case"center":t=r=0;break;case"bottom":t=0,r=1;break;case"right":t=1,r=0;break;case"left":t=-1,r=0;break;case"top":t=0,r=-1;break;case"start":t=-t,r=-r;break;case"end":break;default:i*=Math.PI/180,t=Math.cos(i),r=Math.sin(i)}return{x:e,y:a,vx:t,vy:r}}(i,n,e.vx,e.vy,a.align)}var _={arc:function(e,a){var t=(e.startAngle+e.endAngle)/2,r=Math.cos(t),i=Math.sin(t),n=e.innerRadius,s=e.outerRadius;return B({x0:e.x+r*n,y0:e.y+i*n,x1:e.x+r*s,y1:e.y+i*s,vx:r,vy:i},a)},point:function(e,a){var t=C(e,a.origin),r=t.x*e.options.radius,i=t.y*e.options.radius;return B({x0:e.x-r,y0:e.y-i,x1:e.x+r,y1:e.y+i,vx:t.x,vy:t.y},a)},bar:function(e,a){var t=C(e,a.origin),r=e.x,i=e.y,n=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),n=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),B({x0:r,y0:i+s,x1:r+n,y1:i,vx:t.x,vy:t.y},a)},fallback:function(e,a){var t=C(e,a.origin);return B({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:t.x,vy:t.y},a)}},c=function(e){return Math.round(e*f)/f};function K(e,a){var t=a.chart.getDatasetMeta(a.datasetIndex).vScale;if(!t)return null;if(void 0!==t.xCenter&&void 0!==t.yCenter)return{x:t.xCenter,y:t.yCenter};var r=t.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function W(e){return e instanceof k.Bs?_.arc:e instanceof k.FN?_.point:e instanceof k.E8?_.bar:_.fallback}function re(e,a,t){var r=e.shadowBlur,i=t.stroked,n=c(t.x),s=c(t.y),o=c(t.w);i&&e.strokeText(a,n,s,o),t.filled&&(r&&i&&(e.shadowBlur=0),e.fillText(a,n,s,o),r&&i&&(e.shadowBlur=r))}var G=function(e,a,t,r){var i=this;i._config=e,i._index=r,i._model=null,i._rects=null,i._ctx=a,i._el=t};(0,u.a4)(G.prototype,{_modelize:function(e,a,t,r){var i=this,n=i._index,s=(0,u.a0)((0,u.a)([t.font,{}],r,n)),o=(0,u.a)([t.color,u.d.color],r,n);return{align:(0,u.a)([t.align,"center"],r,n),anchor:(0,u.a)([t.anchor,"center"],r,n),area:r.chart.chartArea,backgroundColor:(0,u.a)([t.backgroundColor,null],r,n),borderColor:(0,u.a)([t.borderColor,null],r,n),borderRadius:(0,u.a)([t.borderRadius,0],r,n),borderWidth:(0,u.a)([t.borderWidth,0],r,n),clamp:(0,u.a)([t.clamp,!1],r,n),clip:(0,u.a)([t.clip,!1],r,n),color:o,display:e,font:s,lines:a,offset:(0,u.a)([t.offset,4],r,n),opacity:(0,u.a)([t.opacity,1],r,n),origin:K(i._el,r),padding:(0,u.E)((0,u.a)([t.padding,4],r,n)),positioner:W(i._el),rotation:(0,u.a)([t.rotation,0],r,n)*(Math.PI/180),size:g_textSize(i._ctx,a,s),textAlign:(0,u.a)([t.textAlign,"start"],r,n),textShadowBlur:(0,u.a)([t.textShadowBlur,0],r,n),textShadowColor:(0,u.a)([t.textShadowColor,o],r,n),textStrokeColor:(0,u.a)([t.textStrokeColor,o],r,n),textStrokeWidth:(0,u.a)([t.textStrokeWidth,0],r,n)}},update:function(e){var s,o,l,a=this,t=null,r=null,i=a._index,n=a._config,d=(0,u.a)([n.display,!0],e,i);d&&(o=(0,u.v)((0,u.Q)(n.formatter,[s=e.dataset.data[i],e]),s),(l=(0,u.k)(o)?[]:function(e){var t,a=[];for(e=[].concat(e);e.length;)"string"==typeof(t=e.pop())?a.unshift.apply(a,t.split("\n")):Array.isArray(t)?e.push.apply(e,t):(0,u.k)(e)||a.unshift(""+t);return a}(o)).length&&(r=function y(e){var a=e.borderWidth||0,t=e.padding,r=e.size.height,i=e.size.width,n=-i/2,s=-r/2;
1return{frame:{x:n-t.left-a,y:s-t.top-a,w:i+t.width+2*a,h:r+t.height+2*a},text:{x:n,y:s,w:i,h:r}}}(t=a._modelize(d,l,n,e)))),a._model=t,a._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,a){var s,r=e.ctx,i=this._model,n=this._rects;this.visible()&&(r.save(),i.clip&&(s=i.area,r.beginPath(),r.rect(s.left,s.top,s.right-s.left,s.bottom-s.top),r.clip()),r.globalAlpha=function(e,a,t){return Math.max(e,Math.min(a,t))}(0,i.opacity,1),r.translate(c(a.x),c(a.y)),r.rotate(i.rotation),function ee(e,a,t){var r=t.backgroundColor,i=t.borderColor,n=t.borderWidth;!r&&(!i||!n)||(e.beginPath(),function q(e,a,t,r,i,n){var s=Math.PI/2;if(n){var o=Math.min(n,i/2,r/2),l=a+o,d=t+o,h=a+r-o,v=t+i-o;e.moveTo(a,d),l<h&&d<v?(e.arc(l,d,o,-Math.PI,-s),e.arc(h,d,o,-s,0),e.arc(h,v,o,0,s),e.arc(l,v,o,s,Math.PI)):l<h?(e.moveTo(l,t),e.arc(h,d,o,-s,s),e.arc(l,d,o,s,Math.PI+s)):d<v?(e.arc(l,d,o,-Math.PI,0),e.arc(l,v,o,0,Math.PI)):e.arc(l,d,o,-Math.PI,Math.PI),e.closePath(),e.moveTo(a,t)}else e.rect(a,t,r,i)}(e,c(a.x)+n/2,c(a.y)+n/2,c(a.w)-n,c(a.h)-n,t.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),i&&n&&(e.strokeStyle=i,e.lineWidth=n,e.lineJoin="miter",e.stroke()))}(r,n.frame,i),function ae(e,a,t,r){var M,i=r.textAlign,n=r.color,s=!!n,o=r.font,l=a.length,d=r.textStrokeColor,h=r.textStrokeWidth,v=d&&h;if(l&&(s||v))for(t=function te(e,a,t){var r=t.lineHeight,i=e.w,n=e.x;return"center"===a?n+=i/2:("end"===a||"right"===a)&&(n+=i),{h:r,w:i,x:n,y:e.y+r/2}}(t,i,o),e.font=o.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=n),v&&(e.lineJoin="round",e.lineWidth=h,e.strokeStyle=d),M=0,l=a.length;M<l;++M)re(e,a[M],{stroked:v,filled:s,w:t.w,x:t.x,y:t.y+t.h*M})}(r,i.lines,n.text,i),r.restore())}});var ie=Number.MIN_SAFE_INTEGER||-9007199254740991,ne=Number.MAX_SAFE_INTEGER||9007199254740991;function A(e,a,t){var r=Math.cos(t),i=Math.sin(t),n=a.x,s=a.y;return{x:n+r*(e.x-n)-i*(e.y-s),y:s+i*(e.x-n)+r*(e.y-s)}}function X(e,a){var n,s,d,t=ne,r=ie,i=a.origin;for(n=0;n<e.length;++n)d=a.vx*((s=e[n]).x-i.x)+a.vy*(s.y-i.y),t=Math.min(t,d),r=Math.max(r,d);return{min:t,max:r}}function L(e,a){var t=a.x-e.x,r=a.y-e.y,i=Math.sqrt(t*t+r*r);return{vx:(a.x-e.x)/i,vy:(a.y-e.y)/i,origin:e,ln:i}}var H=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function V(e,a,t){var r=a.positioner(e,a),i=r.vx,n=r.vy;if(!i&&!n)return{x:r.x,y:r.y};var s=t.w,o=t.h,l=a.rotation,d=Math.abs(s/2*Math.cos(l))+Math.abs(o/2*Math.sin(l)),h=Math.abs(s/2*Math.sin(l))+Math.abs(o/2*Math.cos(l)),v=1/Math.max(Math.abs(i),Math.abs(n));return d*=i*v,h*=n*v,{x:r.x+(d+=a.offset*i),y:r.y+(h+=a.offset*n)}}(0,u.a4)(H.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,a,t){this._rotation=t,this._rect={x:a.x+e.x,y:a.y+e.y,w:a.w,h:a.h}},contains:function(e){var a=this,r=a._rect;return!((e=A(e,a.center(),-a._rotation)).x<r.x-1||e.y<r.y-1||e.x>r.x+r.w+2||e.y>r.y+r.h+2)},intersects:function(e){var i,n,s,a=this._points(),t=e._points(),r=[L(a[0],a[1]),L(a[0],a[3])];for(this._rotation!==e._rotation&&r.push(L(t[0],t[1]),L(t[0],t[3])),i=0;i<r.length;++i)if(n=X(a,r[i]),s=X(t,r[i]),n.max<s.min||s.max<n.min)return!1;return!0},_points:function(){var e=this,a=e._rect,t=e._rotation,r=e.center();return[A({x:a.x,y:a.y},r,t),A({x:a.x+a.w,y:a.y},r,t),A({x:a.x+a.w,y:a.y+a.h},r,t),A({x:a.x,y:a.y+a.h},r,t)]}});var T={prepare:function(e){var t,r,i,n,s,a=[];for(t=0,i=e.length;t<i;++t)for(r=0,n=e[t].length;r<n;++r)a.push(s=e[t][r]),s.$layout={_box:new H,_hidable:!1,_visible:!0,_set:t,_idx:s._index};return a.sort(function(o,l){var d=o.$layout,h=l.$layout;return d._idx===h._idx?h._set-d._set:h._idx-d._idx}),this.update(a),a},update:function(e){var t,r,i,n,s,a=!1;for(t=0,r=e.length;t<r;++t)n=(i=e[t]).model(),(s=i.$layout)._hidable=n&&"auto"===n.display,s._visible=i.visible(),a|=s._hidable;a&&function oe(e){var a,t,r,i,n,s,o;for(a=0,t=e.length;a<t;
1++a)(i=(r=e[a]).$layout)._visible&&(o=new Proxy(r._el,{get:(l,d)=>l.getProps([d],!0)[d]}),n=r.geometry(),s=V(o,r.model(),n),i._box.update(s,n,r.rotation()));(function se(e,a){var t,r,i,n;for(t=e.length-1;t>=0;--t)for(i=e[t].$layout,r=t-1;r>=0&&i._visible;--r)(n=e[r].$layout)._visible&&i._box.intersects(n._box)&&a(i,n)})(e,function(l,d){var h=l._hidable,v=d._hidable;h&&v||v?d._visible=!1:h&&(l._visible=!1)})}(e)},lookup:function(e,a){var t,r;for(t=e.length-1;t>=0;--t)if((r=e[t].$layout)&&r._visible&&r._box.contains(a))return e[t];return null},draw:function(e,a){var t,r,i,n,s,o;for(t=0,r=a.length;t<r;++t)(n=(i=a[t]).$layout)._visible&&(s=i.geometry(),o=V(i._el,i.model(),s),n._box.update(o,s,i.rotation()),i.draw(e,o))}},x="$datalabels",Q="$default";function U(e,a,t,r){if(a){var s,i=t.$context,n=t.$groups;a[n._set]&&(s=a[n._set][n._key])&&!0===(0,u.Q)(s,[i,r])&&(e[x]._dirty=!0,t.update(i))}}var ce={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if((0,u.k)(e))return null;var t,r,i,a=e;if((0,u.i)(e))if((0,u.k)(e.label))if((0,u.k)(e.r))for(a="",i=0,r=(t=Object.keys(e)).length;i<r;++i)a+=(0!==i?", ":"")+t[i]+": "+e[t[i]];else a=e.r;else a=e.label;return""+a},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(e){e[x]={_actives:[]}},beforeUpdate:function(e){var a=e[x];a._listened=!1,a._listeners={},a._datasets=[],a._labels=[]},afterDatasetUpdate:function(e,a,t){var v,M,J,Y,z,Z,D,S,r=a.index,i=e[x],n=i._datasets[r]=[],s=e.isDatasetVisible(r),o=e.data.datasets[r],l=function ue(e,a){var n,s,t=e.datalabels,r={},i=[];return!1===t?null:(!0===t&&(t={}),a=(0,u.a4)({},[a,t]),n=a.labels||{},s=Object.keys(n),delete a.labels,s.length?s.forEach(function(o){n[o]&&i.push((0,u.a4)({},[a,n[o],{_key:o}]))}):i.push(a),r=i.reduce(function(o,l){return(0,u.F)(l.listeners||{},function(d,h){o[h]=o[h]||{},o[h][l._key||Q]=d}),delete l.listeners,o},{}),{labels:i,listeners:r})}(o,t),d=a.meta.data||[],h=e.ctx;for(h.save(),v=0,J=d.length;v<J;++v)if((D=d[v])[x]=[],s&&D&&e.getDataVisibility(v)&&!D.skip)for(M=0,Y=l.labels.length;M<Y;++M)Z=(z=l.labels[M])._key,(S=new G(z,h,D,v)).$groups={_set:r,_key:Z||Q},S.$context={active:!1,chart:e,dataIndex:v,dataset:o,datasetIndex:r},S.update(S.$context),D[x].push(S),n.push(S);h.restore(),(0,u.a4)(i._listeners,l.listeners,{merger:function($,j,ye){j[$]=j[$]||{},j[$][a.index]=ye[$],i._listened=!0}})},afterUpdate:function(e){e[x]._labels=T.prepare(e[x]._datasets)},afterDatasetsDraw:function(e){T.draw(e,e[x]._labels)},beforeEvent:function(e,a){if(e[x]._listened){var t=a.event;switch(t.type){case"mousemove":case"mouseout":!function ve(e,a){var i,n,t=e[x],r=t._listeners;if(r.enter||r.leave){if("mousemove"===a.type)n=T.lookup(t._labels,a);else if("mouseout"!==a.type)return;i=t._hovered,t._hovered=n,function he(e,a,t,r,i){var n,s;!t&&!r||(t?r?t!==r&&(s=n=!0):s=!0:n=!0,s&&U(e,a.leave,t,i),n&&U(e,a.enter,r,i))}(e,r,i,n,a)}}(e,t);break;case"click":!function fe(e,a){var t=e[x],r=t._listeners.click,i=r&&T.lookup(t._labels,a);i&&U(e,r,i,a)}(e,t)}}},afterEvent:function(e){var n,s,o,l,d,h,v,a=e[x],i=function(e,a){var i,n,s,o,t=e.slice(),r=[];for(i=0,s=a.length;i<s;++i)-1===(n=t.indexOf(o=a[i]))?r.push([o,1]):t.splice(n,1);for(i=0,s=t.length;i<s;++i)r.push([t[i],-1]);return r}(a._actives,a._actives=e.getActiveElements());for(n=0,s=i.length;n<s;++n)if((d=i[n])[1])for(o=0,l=(v=d[0].element[x]||[]).length;o<l;++o)(h=v[o]).$context.active=1===d[1],h.update(h.$context);(a._dirty||i.length)&&(T.update(a._labels),e.render()),delete a._dirty}}},69820:(N,P,p)=>{p.d(P,{Fr:()=>w,X9:()=>R});var u=p(69377),k=p(32881),f=p(41360),g=p(39763);g.t1.register(...g.$L);const C=g.t1;var m=p(5779);let R=(()=>{class b{platformId;el;zone;type;plugins=[];width;height;responsive=!0;ariaLabel;ariaLabelledBy;get data(){return this._data}set data(_){this._data=_,this.reinit()}get options(){return this._options}set options(_){this._options=_,this.reinit()}onDataSelect=new f.bkB;isBrowser=!1;initialized;_data;_options={};chart;constructor(_,c,y){this.platformId=_,this.el=c,this.zone=y}ngAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(_){if(this.chart){const c=this.chart.getElementsAtEventForMode(_,"nearest",{intersect:!0},!1),y=this.chart.getElementsAtEventForMode(_,"dataset",{intersect:!0},!1);c&&c[0]&&y&&this.onDataSelect.emit({originalEvent:_,element:c[0],dataset:y})}}initChart(){if((0,u.UE)(this.platformId)){let _=this.options||{};_.responsive=this.responsive,_.responsive&&(this.height||this.width)&&(_.maintainAspectRatio=!1),this.zone.runOutsideAngular(()=>{this.chart=new C(this.el.nativeElement.children[0].children[0],{type:this.t
1ype,data:this.data,options:this.options,plugins:this.plugins})})}}getCanvas(){return this.el.nativeElement.children[0].children[0]}getBase64Image(){return this.chart.toBase64Image()}generateLegend(){if(this.chart)return this.chart.generateLegend()}refresh(){this.chart&&this.chart.update()}reinit(){this.chart&&(this.chart.destroy(),this.initChart())}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}static \u0275fac=function(c){return new(c||b)(f.rXU(f.Agw),f.rXU(f.aKT),f.rXU(f.SKi))};static \u0275cmp=f.VBU({type:b,selectors:[["p-chart"]],inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:[2,"responsive","responsive",f.L39],ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},decls:2,vars:8,consts:[[2,"position","relative"],["role","img",3,"click"]],template:function(c,y){1&c&&(f.j41(0,"div",0)(1,"canvas",1),f.bIt("click",function(W){return y.onCanvasClick(W)}),f.k0s()()),2&c&&(f.xc7("width",y.responsive&&!y.width?null:y.width)("height",y.responsive&&!y.height?null:y.height),f.R7$(),f.BMQ("aria-label",y.ariaLabel)("aria-labelledby",y.ariaLabelledBy)("width",y.responsive&&!y.width?null:y.width)("height",y.responsive&&!y.height?null:y.height))},dependencies:[k.MD,m.Gg],encapsulation:2,changeDetection:0})}return b})(),w=(()=>{class b{static \u0275fac=function(c){return new(c||b)};static \u0275mod=f.$C({type:b});static \u0275inj=f.G2t({imports:[R,m.Gg,m.Gg]})}return b})()}}]);
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.