UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 3.63 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","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./users.store-legacy-OKuN0qAC.js","./useClipboard-legacy-D5bRgqfO.js"],(function(e,o){var t,n,a,l,s,i,r,c,d,u,p,y,_,f,g,v,b;return{setters:[function(e){t=e.$,n=e.C,a=e.E,l=e.N,s=e.Sn,i=e.T,r=e.Wt,c=e._n,d=e.j,u=e.yt},function(e){p=e.bt},function(e){y=e.vt},function(e){_=e.t},function(e){f=e.Tr},function(e){g=e.t}],execute:function(){(v=document.createElement("style")).textContent="._copyText_nv2o2_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_nv2o2_125 span{color:var(--color--text);overflow-wrap:break-word;font-family:Monaco,Consolas}._copyText_nv2o2_125:hover{--display-copy-button:flex;width:100%}._noHover_nv2o2_145{cursor:default}._large_nv2o2_149 span{font-size:var(--font-size--sm);line-height:1.5}._medium_nv2o2_154 span{font-size:var(--font-size--xs);line-height:1}._collapsed_nv2o2_159{white-space:nowrap;overflow:hidden}._copyButton_nv2o2_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_nv2o2_164 span{font-family:unset}._hint_nv2o2_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(v);try{o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(h=(new o.Error).stack)&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="295c0c43-da7c-492c-8554-4bf15741c077",o._sentryDebugIdIdentifier="sentry-dbid-295c0c43-da7c-492c-8554-4bf15741c077")}catch(o){}var o,h;b=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:o}){const l=e,p=o,_=g(),{showMessage:v}=f();function b(){l.disableCopy||(p("copy"),_.copy(l.value??""),v({title:l.toastTitle,message:l.toastMessage,type:"success"}))}return(o,l)=>(t(),a("div",null,[d(r(y),{label:e.label},{default:u((()=>[n("div",{class:c({[o.$style.copyText]:!0,[o.$style[e.size]]:!0,[o.$style.collapsed]:e.collapse,[o.$style.noHover]:e.disableCopy,"ph-no-capture":e.redactValue}),"data-test-id":"copy-input",onClick:b},[n("span",{ref:"copyInputValue"},s(e.value),513),e.disableCopy?i("",!0):(t(),a("div",{key:0,class:c(o.$style.copyButton)},[n("span",null,s(e.copyButtonText),1)],2))],2)])),_:1},8,["label"]),e.hint?(t(),a("div",{key:0,class:c(o.$style.hint)},s(e.hint),3)):i("",!0)]))}}),e("t",_(b,[["__cssModules",{$style:{copyText:"_copyText_nv2o2_125",noHover:"_noHover_nv2o2_145",large:"_large_nv2o2_149",medium:"_medium_nv2o2_154",collapsed:"_collapsed_nv2o2_159",copyButton:"_copyButton_nv2o2_164",hint:"_hint_nv2o2_180"}}]]))}}})); //# sourceMappingURL=CopyInput-legacy-4SJ519ok.js.map