n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 6.04 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","./_MapCache-legacy-DwgdC8YO.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js"],(function(e,t){var a,i,n,l,o,r,c,u,d,v,f,s,h,m,b,p,w,g,y,x,z,L,M,C,k,_,V,R,H,S;function B(e,t){return a(),n("svg",w,[...t[0]||(t[0]=[i("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 E(e,t){return a(),n("svg",y,[...t[0]||(t[0]=[i("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 I(e,t){return a(),n("svg",z,[...t[0]||(t[0]=[i("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 T(e,t){return a(),n("svg",M,[...t[0]||(t[0]=[i("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 N(e,t){return a(),n("svg",k,[...t[0]||(t[0]=[i("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 a(),n("svg",V,[...t[0]||(t[0]=[i("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 e("t",(function(e,{container:t,defaultSize:a,snap:i=!0,minSize:n=0,maxSize:o=(e=>e),position:c="left",allowCollapse:u,allowFullSize:f}){const s=l(0),h=m(e,-1,{writeDefaults:!1}),b=l(!1),p=l(),w=r((()=>L(n,s.value))),g=r((()=>L(o,s.value))),y=r((()=>{const e=h.value>=0&&h.value<=1?s.value*h.value:-1;if(b.value&&u&&e<30)return 0;if(b.value&&f&&e>s.value-30)return s.value;const t=L(a,s.value);return Number.isNaN(e)||!Number.isFinite(e)||e<0?t:Math.max(w.value,Math.min(i&&Math.abs(t-e)<30?t:e,g.value))}));function x(e){return"bottom"===c?e.offsetHeight:e.offsetWidth}function z(e){return"bottom"===c?e.y:e.x}function L(e,t){return"number"==typeof e?e:e(t)}return v((()=>d(t)),((e,t,a)=>{if(!e)return;const i=new ResizeObserver((()=>{s.value=x(e)}));i.observe(e),s.value=x(e),a((()=>i.disconnect()))}),{immediate:!0}),{isResizing:r((()=>b.value)),isCollapsed:r((()=>b.value&&y.value<=0)),isFullSize:r((()=>b.value&&y.value>=s.value)),size:y,onResize:function(e){const a=d(t)?.getBoundingClientRect(),i=Math.max(0,"bottom"===c?(a?(n=a,"bottom"===c?n.height:n.width):0)-z(e):z(e)-(a?z(a):0));var n;b.value=!0,h.value=i/s.value,void 0===p.value&&(p.value=h.value)},onResizeEnd:function(){(w.value>0&&y.value<=0||g.value<s.value&&y.value>=s.value)&&(h.value=p.value),p.value=void 0,b.value=!1}}})),{setters:[function(e){a=e.$,i=e.C,n=e.E,l=e.Ft,o=e.N,r=e.S,c=e.Sn,u=e.T,d=e.Wt,v=e.gt,f=e.h,s=e.j,h=e.w},function(e){m=e.M},function(e){b=e.t}],execute:function(){(p=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(p);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(l=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[l]="0b9752b0-bc72-4551-8b30-07bba1f0007c",t._sentryDebugIdIdentifier="sentry-dbid-0b9752b0-bc72-4551-8b30-07bba1f0007c")}catch(t){}var t,l;w={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},g={name:"mdi-closeThick",render:B},y={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},x={name:"mdi-fileImage",render:E},z={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},L={name:"mdi-fileMusic",render:I},M={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},C={name:"mdi-fileText",render:T},k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_={name:"mdi-fileVideo",render:N},V={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},R={name:"mdi-openInNew",render:j},H={class:"chat-file-name"},S=o({__name:"ChatFile",props:{file:{},isRemovable:{type:Boolean},isPreviewable:{type:Boolean},href:{}},emits:["remove"],setup(e,{emit:t}){const l=e,o=t,v={document:C,audio:L,image:x,video:_},m=r((()=>v[l.file?.type.split("/")[0]]||C));function b(){l.href?window.open(l.href,"_blank","noopener noreferrer"):l.isPreviewable&&window.open(URL.createObjectURL(l.file))}function p(){o("remove",l.file)}return(t,l)=>(a(),n("div",{class:"chat-file","data-test-id":"chat-file",onClick:b},[s(d(m),{class:"chat-icon"}),i("p",H,c(e.file.name),1),e.isRemovable?(a(),n("span",{key:0,class:"chat-file-delete","data-test-id":"chat-file-remove",onClick:f(p,["stop"])},[s(d(g))])):e.isPreviewable||e.href?(a(),h(d(R),{key:1,class:"chat-file-preview"})):u("",!0)]))}}),e("n",b(S,[["__scopeId","data-v-06c7b5c1"]]))}}}));
//# sourceMappingURL=useResizablePanel-legacy-B6OPZUoB.js.map