UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.61 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./chart-legacy-BmBDDYdO.js"],(function(e,t){var n,a,s,d,o,i,u,l,r,f,c,p,y,g,b,v;function h(e){return d(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:y,setup(t,n){let{expose:s}=n;const d=o(null),i=e=>{d.value=e?.chart};return s({chart:d}),()=>a(v,b({ref:i},{type:e,...t}))}})}return{setters:[function(e){n=e.Ft,a=e.I,s=e.N,d=e.Ot,o=e.Rt,i=e.X,u=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]="5e6bcdaf-2aae-439f-95e1-451278d09f58",t._sentryDebugIdIdentifier="sentry-dbid-5e6bcdaf-2aae-439f-95e1-451278d09f58")}catch(t){}var t,O;y={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},g={type:{type:String,required:!0},...y},b="2"==="3.5.26"[0]?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t),e("n",v=s({props:g,setup(e,t){let{expose:s}=t;const f=n(null),p=o(null);return s({chart:p}),i((()=>{if(!f.value)return;const{type:t,data:n,options:a,plugins:s,datasetIdKey:o}=e,i=function(e){return d(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,o),n);p.value=new c(f.value,{type:t,data:i,options:{...a},plugins:s})})),l((()=>{const e=r(p.value);e&&(e.destroy(),p.value=null)})),u([()=>e.options,()=>e.data],((t,n)=>{let[a,s]=t,[d,o]=n;const i=r(p.value);if(!i)return;let u=!1;if(a){const e=h(a),t=h(d);e&&e!==t&&(function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(i,e),u=!0)}if(s){const t=h(s.labels),n=h(o.labels),a=h(s.datasets),d=h(o.datasets);t!==n&&(w(i.config.data,t),u=!0),a&&a!==d&&(I(i.config.data,a,e.datasetIdKey),u=!0)}u&&(t=>{t.update(e.updateMode)})(i)}),{deep:!0}),()=>a("canvas",{ref:f})}})),e("t",j("bar",p)),e("r",j("line",f))}}})); //# sourceMappingURL=dist-legacy-Cb1zKq2x.js.map