UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 4.69 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","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js"],(function(e,t){var i,a,n,l,r,o,c,d,h,f,s,v,u,m,p,b,w,g,y,x,L,k,z,C,V,_,M,H;function B(e,t){return i(),n("svg",p,[...t[0]||(t[0]=[a("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)])])}function I(e,t){return i(),n("svg",w,[...t[0]||(t[0]=[a("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)])])}function T(e,t){return i(),n("svg",y,[...t[0]||(t[0]=[a("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)])])}function E(e,t){return i(),n("svg",L,[...t[0]||(t[0]=[a("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)])])}function R(e,t){return i(),n("svg",z,[...t[0]||(t[0]=[a("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)])])}function j(e,t){return i(),n("svg",V,[...t[0]||(t[0]=[a("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)])])}return{setters:[function(e){i=e.$,a=e.C,n=e.E,l=e.N,r=e.S,o=e.Sn,c=e.T,d=e.Wt,h=e.h,f=e.j,s=e.jt,v=e.w},function(e){u=e.t}],execute:function(){(m=document.createElement("style")).textContent='.chat-file[data-v-06c7b5c1]{width:fit-content;max-width:15rem;color:var(--chat--color-dark);border:1px solid var(--chat--color-dark);background:#fff;border-radius:.25rem;flex-wrap:nowrap;align-items:center;gap:.25rem;padding:.5rem;font-size:.75rem;display:flex}.chat-file[data-v-06c7b5c1]:has(.chat-file-preview){cursor:pointer}.chat-icon[data-v-06c7b5c1]{flex-shrink:0}.chat-file-name-tooltip[data-v-06c7b5c1]{overflow:hidden}.chat-file-name[data-v-06c7b5c1]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin:0;overflow:hidden}.chat-file-delete[data-v-06c7b5c1],.chat-file-preview[data-v-06c7b5c1]{cursor:pointer;background:0 0;border:none;flex-shrink:0;display:block}.chat-file-delete[data-v-06c7b5c1]{position:relative}.chat-file-delete[data-v-06c7b5c1]:hover{color:red}.chat-file-delete[data-v-06c7b5c1]:before{content:"";position:absolute;top:-10px;bottom:-10px;left:-10px;right:-10px}\n/*$vite$:1*/',document.head.appendChild(m);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(S=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="725522d4-3c2c-40b6-9547-ae25cfa771d1",t._sentryDebugIdIdentifier="sentry-dbid-725522d4-3c2c-40b6-9547-ae25cfa771d1")}catch(t){}var t,S;p={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},b=s({name:"mdi-closeThick",render:B}),w={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},g=s({name:"mdi-fileImage",render:I}),y={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},x=s({name:"mdi-fileMusic",render:T}),L={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},k=s({name:"mdi-fileText",render:E}),z={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},C=s({name:"mdi-fileVideo",render:R}),V={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=s({name:"mdi-openInNew",render:j}),M={class:"chat-file-name"},H=l({__name:"ChatFile",props:{file:{},isRemovable:{type:Boolean},isPreviewable:{type:Boolean},href:{}},emits:["remove"],setup(e,{emit:t}){const l=e,s=t,u={document:k,audio:x,image:g,video:C},m=r((()=>u[l.file?.type.split("/")[0]]||k));function p(){l.href?window.open(l.href,"_blank","noopener noreferrer"):l.isPreviewable&&window.open(URL.createObjectURL(l.file))}function w(){s("remove",l.file)}return(t,l)=>(i(),n("div",{class:"chat-file","data-test-id":"chat-file",onClick:p},[f(d(m),{class:"chat-icon"}),a("p",M,o(e.file.name),1),e.isRemovable?(i(),n("span",{key:0,class:"chat-file-delete","data-test-id":"chat-file-remove",onClick:h(w,["stop"])},[f(d(b))])):e.isPreviewable||e.href?(i(),v(d(_),{key:1,class:"chat-file-preview"})):c("",!0)]))}}),e("t",u(H,[["__scopeId","data-v-06c7b5c1"]]))}}})); //# sourceMappingURL=ChatFile-legacy-CoJ5Pomf.js.map