UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 1.66 kB
!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","./_MapCache-legacy-DwgdC8YO.js","./constants-legacy-DNCca_FT.js"],(function(e,t){var n,a,o,s,i,c,f;return e("t",(function({onPaste:e=(()=>{})}={}){const t=a(f,n()),{copy:d,copied:l,isSupported:u,text:r}=i({legacy:!0}),p=["el-messsage-box","ignore-key-press-canvas"],y=n(!1),b=n(e||null),g=c((function(e){if(!b.value)return;const t=e.composedPath?.();for(const a of t)if(a.className&&p.some((e=>a.className.includes?.(e))))return;const n=e.clipboardData;if(null!==n){const t=n.getData("text/plain");b.value(t,e)}}),1e3);return o((()=>{y.value||(document.addEventListener("paste",g),y.value=!0)})),s((()=>{y.value&&document.removeEventListener("paste",g)})),{copy:async function(e){const n=t?.value?.navigator;if(n?.clipboard)try{return void(await n.clipboard.writeText(e))}catch{}await d(e)},copied:l,isSupported:u,text:r,onPaste:b}})),{setters:[function(e){n=e.Ft,a=e.R,o=e.X,s=e.q},function(e){i=e.S,c=e.ct},function(e){f=e.Ic}],execute:function(){try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(t=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f74a92a6-7eef-4c12-8321-9beaca33fafb",e._sentryDebugIdIdentifier="sentry-dbid-f74a92a6-7eef-4c12-8321-9beaca33fafb")}catch(e){}var e,t}}})); //# sourceMappingURL=useClipboard-legacy-D5bRgqfO.js.map