UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 3.49 kB
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`a63692d3-9ae9-4949-aa93-d15333fbf78c`,e._sentryDebugIdIdentifier=`sentry-dbid-a63692d3-9ae9-4949-aa93-d15333fbf78c`)})()}catch{}import{$ as e,C as t,E as n,N as r,S as i,Sn as a,T as o,Wt as s,h as c,j as l,jt as u,w as d}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{t as f}from"./_plugin-vue_export-helper-CIL7EULb.js";var p={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function m(r,i){return e(),n(`svg`,p,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M20 6.91L17.09 4L12 9.09L6.91 4L4 6.91L9.09 12L4 17.09L6.91 20L12 14.91L17.09 20L20 17.09L14.91 12z`},null,-1)]])}var h=u({name:`mdi-closeThick`,render:m}),g={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _(r,i){return e(),n(`svg`,g,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m0 18h12v-8l-4 4l-2-2zM8 9a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2`},null,-1)]])}var v=u({name:`mdi-fileImage`,render:_}),y={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function b(r,i){return e(),n(`svg`,y,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 11h-2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2c.4 0 .7.1 1 .3V11h3zm0-4V3.5L18.5 9z`},null,-1)]])}var x=u({name:`mdi-fileMusic`,render:b}),S={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function C(r,i){return e(),n(`svg`,S,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m9 16v-2H6v2zm3-4v-2H6v2z`},null,-1)]])}var w=u({name:`mdi-fileText`,render:C}),T={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function E(r,i){return e(),n(`svg`,T,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m11 17v-6l-3 2.2V13H7v6h7v-2.2z`},null,-1)]])}var D=u({name:`mdi-fileVideo`,render:E}),O={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function k(r,i){return e(),n(`svg`,O,[...i[0]||=[t(`path`,{fill:`currentColor`,d:`M14 3v2h3.59l-9.83 9.83l1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2z`},null,-1)]])}var A=u({name:`mdi-openInNew`,render:k}),j={class:`chat-file-name`},M=f(r({__name:`ChatFile`,props:{file:{},isRemovable:{type:Boolean},isPreviewable:{type:Boolean},href:{}},emits:[`remove`],setup(r,{emit:u}){let f=r,p=u,m={document:w,audio:x,image:v,video:D},g=i(()=>m[f.file?.type.split(`/`)[0]]||w);function _(){if(f.href){window.open(f.href,`_blank`,`noopener noreferrer`);return}f.isPreviewable&&window.open(URL.createObjectURL(f.file))}function y(){p(`remove`,f.file)}return(i,u)=>(e(),n(`div`,{class:`chat-file`,"data-test-id":`chat-file`,onClick:_},[l(s(g),{class:`chat-icon`}),t(`p`,j,a(r.file.name),1),r.isRemovable?(e(),n(`span`,{key:0,class:`chat-file-delete`,"data-test-id":`chat-file-remove`,onClick:c(y,[`stop`])},[l(s(h))])):r.isPreviewable||r.href?(e(),d(s(A),{key:1,class:`chat-file-preview`})):o(``,!0)]))}}),[[`__scopeId`,`data-v-06c7b5c1`]]);export{M as t}; //# sourceMappingURL=ChatFile-BWveoZV5.js.map