n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.61 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./chart-legacy-7cEBc73s.js"],(function(e,t){var n,a,s,o,d,u,i,l,r,f,c,p,b,y,g,v;function h(e){return o(e)?r(e):e}function w(e,t){e.labels=t}function I(e,t,n){const a=[];e.datasets=t.map((t=>{const s=e.datasets.find((e=>e[n]===t[n]));return s&&t.data&&!a.includes(s)?(a.push(s),Object.assign(s,t),s):{...t}}))}function j(e,t){return c.register(t),s({props:b,setup(t,n){let{expose:s}=n;const o=d(null),u=e=>{o.value=e?.chart};return s({chart:o}),()=>a(v,g({ref:u},{type:e,...t}))}})}return{setters:[function(e){n=e.Ft,a=e.I,s=e.N,o=e.Ot,d=e.Rt,u=e.X,i=e.gt,e.mt,l=e.q,r=e.zt},function(e){f=e.a,c=e.i,p=e.t}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(O=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[O]="508bff56-33a1-4b92-816e-407c3a59642b",t._sentryDebugIdIdentifier="sentry-dbid-508bff56-33a1-4b92-816e-407c3a59642b")}catch(t){}var t,O;b={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},y={type:{type:String,required:!0},...b},g="2"==="3.5.26"[0]?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t),e("n",v=s({props:y,setup(e,t){let{expose:s}=t;const f=n(null),p=d(null);return s({chart:p}),u((()=>{if(!f.value)return;const{type:t,data:n,options:a,plugins:s,datasetIdKey:d}=e,u=function(e){return o(arguments.length>1&&void 0!==arguments[1]?arguments[1]:e)?new Proxy(e,{}):e}(function(e,t){const n={labels:[],datasets:[]};return w(n,e.labels),I(n,e.datasets,t),n}(n,d),n);p.value=new c(f.value,{type:t,data:u,options:{...a},plugins:s})})),l((()=>{const e=r(p.value);e&&(e.destroy(),p.value=null)})),i([()=>e.options,()=>e.data],((t,n)=>{let[a,s]=t,[o,d]=n;const u=r(p.value);if(!u)return;let i=!1;if(a){const e=h(a),t=h(o);e&&e!==t&&(function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(u,e),i=!0)}if(s){const t=h(s.labels),n=h(d.labels),a=h(s.datasets),o=h(d.datasets);t!==n&&(w(u.config.data,t),i=!0),a&&a!==o&&(I(u.config.data,a,e.datasetIdKey),i=!0)}i&&(t=>{t.update(e.updateMode)})(u)}),{deep:!0}),()=>a("canvas",{ref:f})}})),e("t",j("bar",p)),e("r",j("line",f))}}}));
//# sourceMappingURL=dist-legacy-CCfDmF7R.js.map