PageSourceSearch

https://arvcrebels.com/chunk-NE22VKN5.js

js arvcrebels.com collected 2026-10-06 21:58:36 UTC 3,314 bytes, 1 lines download raw bytes

1import{K as j}from"./chunk-AEK7Z5QZ.js";import{Ja as k,Ma as F,Na as a,Oa as L}from"./chunk-X5J6QTCG.js";import{$ as l,Cc as S,Gb as D,Hb as M,Ka as o,Ma as m,Na as g,Qa as v,Ra as y,Xa as C,_ as h,aa as c,ac as E,ad as A,bd as _,ca as s,ce as r,gb as I,hb as b,ib as w,ma as d,na as p,sa as u,sb as B,ta as f}from"./chunk-SMW7PHYX.js";var H={root:({instance:t})=>({display:"block",position:"relative",width:t.width,height:t.height})},R={root:"p-chart"},N=(()=>{class t extends k{name="chart";classes=R;inlineStyles=H;static \u0275fac=(()=>{let e;return function(i){return(e||(e=u(t)))(i||t)}})();static \u0275prov=h({token:t,factory:t.\u0275fac})}return t})();var T=new c("CHART_INSTANCE"),V=(()=>{class t extends F{el;zone;componentName="Chart";$pcChart=s(T,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=s(a,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}type;plugins=[];width;height;responsive=!0;ariaLabel;ariaLabelledBy;get data(){return this._data}set data(e){this._data=e,this.reinit()}get options(){return this._options}set options(e){this._options=e,this.reinit()}onDataSelect=new d;isBrowser=!1;initialized;_data;_options={};chart;_componentStyle=s(N);constructor(e,n){super(),this.el=e,this.zone=n}onAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(e){if(this.chart){let n=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),i=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);n&&n[0]&&i&&this.onDataSelect.emit({originalEvent:e,element:n[0],dataset:i})}}initChart(){if(_(this.platformId)){let e=this.options||{};e.responsive=this.responsive,e.responsive&&(this.height||this.width)&&(e.maintainAspectRatio=!1),this.zone.runOutsideAngular(()=>{this.chart=new j(this.el.nativeElement.children[0],{type:this.t
1ype,data:this.data,options:this.options,plugins:this.plugins})})}}getCanvas(){return this.el.nativeElement.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())}onDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}static \u0275fac=function(n){return new(n||t)(o(f),o(p))};static \u0275cmp=m({type:t,selectors:[["p-chart"]],hostVars:4,hostBindings:function(n,i){n&2&&(D(i.sx("root")),M(i.cx("root")))},inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:[2,"responsive","responsive",S],ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},features:[E([N,{provide:T,useExisting:t}]),v([a]),y],decls:1,vars:5,consts:[["role","img",3,"click","pBind"]],template:function(n,i){n&1&&(b(0,"canvas",0),B("click",function(z){return i.onCanvasClick(z)}),w()),n&2&&(I("pBind",i.ptm("canvas")),C("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("width",i.responsive&&!i.width?null:i.width)("height",i.responsive&&!i.height?null:i.height))},dependencies:[A,r,L,a],encapsulation:2,changeDetection:0})}return t})(),nt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=g({type:t});static \u0275inj=l({imports:[V,r,r]})}return t})();export{V as a,nt as 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.