UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 3.62 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","./core-legacy-VD8c7QJ-.js","./src-legacy-B67uuxhB.js","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js","./users.store-legacy-azRUgFdP.js","./useClipboard-legacy-DnQV92ly.js"],(function(e,t){var o,n,a,l,s,i,d,r,c,u,p,y,_,b,f,g,h;return{setters:[function(e){o=e.$,n=e.C,a=e.E,l=e.N,s=e.Sn,i=e.T,d=e.Wt,r=e._n,c=e.j,u=e.yt},function(e){p=e.at},function(e){y=e.ut},function(e){_=e.t},function(e){b=e.Pn},function(e){f=e.t}],execute:function(){(g=document.createElement("style")).textContent="._copyText_1cbd0_125 span{color:var(--color--text);overflow-wrap:break-word;font-family:Monaco,Consolas}._copyText_1cbd0_125{padding:var(--spacing--xs);background-color:var(--color--background--light-2);border:var(--border);border-radius:var(--radius);cursor:pointer;font-weight:var(--font-weight--regular);position:relative}._copyText_1cbd0_125:hover{--display-copy-button:flex;width:100%}._noHover_1cbd0_145{cursor:default}._large_1cbd0_149 span{font-size:var(--font-size--sm);line-height:1.5}._medium_1cbd0_154 span{font-size:var(--font-size--xs);line-height:1}._collapsed_1cbd0_159{white-space:nowrap;overflow:hidden}._copyButton_1cbd0_164{display:var(--display-copy-button,none);padding:var(--spacing--xs);background-color:var(--color--background--light-2);border-radius:var(--radius);align-items:center;height:100%;position:absolute;top:0;right:0}._copyButton_1cbd0_164 span{font-family:unset}._hint_1cbd0_180{margin-top:var(--spacing--2xs);font-size:var(--font-size--2xs);line-height:var(--line-height--lg);font-weight:var(--font-weight--regular);word-break:normal}\n/*$vite$:1*/",document.head.appendChild(g);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(v=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[v]="7932b7cf-4d93-45de-92bf-8e6d0e96be95",t._sentryDebugIdIdentifier="sentry-dbid-7932b7cf-4d93-45de-92bf-8e6d0e96be95")}catch(t){}var t,v;h=l({__name:"CopyInput",props:{label:{default:""},hint:{default:""},value:{default:""},copyButtonText:{default:p().baseText("generic.copy")},toastTitle:{default:p().baseText("generic.copiedToClipboard")},toastMessage:{},size:{default:"medium"},collapse:{type:Boolean},redactValue:{type:Boolean},disableCopy:{type:Boolean,default:!1}},emits:["copy"],setup(e,{emit:t}){const l=e,p=t,_=f(),{showMessage:g}=b();function h(){l.disableCopy||(p("copy"),_.copy(l.value??""),g({title:l.toastTitle,message:l.toastMessage,type:"success"}))}return(t,l)=>(o(),a("div",null,[c(d(y),{label:e.label},{default:u((()=>[n("div",{class:r({[t.$style.copyText]:!0,[t.$style[e.size]]:!0,[t.$style.collapsed]:e.collapse,[t.$style.noHover]:e.disableCopy,"ph-no-capture":e.redactValue}),"data-test-id":"copy-input",onClick:h},[n("span",{ref:"copyInputValue"},s(e.value),513),e.disableCopy?i("",!0):(o(),a("div",{key:0,class:r(t.$style.copyButton)},[n("span",null,s(e.copyButtonText),1)],2))],2)])),_:1},8,["label"]),e.hint?(o(),a("div",{key:0,class:r(t.$style.hint)},s(e.hint),3)):i("",!0)]))}}),e("t",_(h,[["__cssModules",{$style:{copyText:"_copyText_1cbd0_125",noHover:"_noHover_1cbd0_145",large:"_large_1cbd0_149",medium:"_medium_1cbd0_154",collapsed:"_collapsed_1cbd0_159",copyButton:"_copyButton_1cbd0_164",hint:"_hint_1cbd0_180"}}]]))}}})); //# sourceMappingURL=CopyInput-legacy-CED6Xllw.js.map