n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.47 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.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","./constants-legacy-2_ytuuS3.js","./Modal-legacy-myZZZK6d.js","./CredentialIcon-legacy-B7DgooOp.js","./constants-legacy-Bi9z6I7b.js"],(function(e,t){var n,a,l,i,s,o,d,c,u,r,f,y,_,p,b,m,g,v,h,x,w,I,j,S,T;return{setters:[function(e){n=e.$,a=e.A,l=e.C,i=e.Ft,s=e.N,o=e.Sn,d=e.Wt,c=e.X,u=e._n,r=e.j,f=e.w,y=e.yt},function(e){_=e.at},function(e){p=e.Ji,b=e.Xi,m=e.Zi,g=e.et,v=e.xt},function(e){h=e.t},function(e){x=e.Kr},function(e){w=e.t},function(e){I=e.t},function(e){j=e.h,S=e.i}],execute:function(){(T=document.createElement("style")).textContent="._content_uxwis_125{gap:var(--spacing--sm);padding:var(--spacing--sm) 0;flex-direction:column;display:flex}._footer_uxwis_132{justify-content:space-between;align-items:center;width:100%;display:flex}._header_uxwis_139{gap:var(--spacing--2xs);align-items:center;display:flex}._icon_uxwis_145{flex-grow:0;flex-shrink:0}\n/*$vite$:1*/",document.head.appendChild(T);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},($=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[$]="0296f254-437b-4a01-8b73-05596a84af35",t._sentryDebugIdIdentifier="sentry-dbid-0296f254-437b-4a01-8b73-05596a84af35")}catch(t){}var t,$;e("default",h(s({__name:"ModelByIdSelectorModal",props:{modalName:{},data:{}},setup(e){const t=e,s=i(v()),h=i(t.data.initialValue),T=i(null),$=_();function C(){h.value&&(t.data.onSelect(t.data.provider,h.value),s.value.emit("close"))}function E(){s.value.emit("close")}return c((()=>{setTimeout((()=>{T.value?.inputRef?.select(),T.value?.inputRef?.focus()}))})),(t,i)=>(n(),f(w,{name:d(S),"event-bus":s.value,width:"50%",center:!0,"max-width":"460px","min-height":"250px"},{header:y((()=>[l("div",{class:u(t.$style.header)},[r(I,{"credential-type-name":d(x)[e.data.provider],size:24,class:u(t.$style.icon)},null,8,["credential-type-name","class"]),r(d(p),{size:"medium",tag:"h2",class:u(t.$style.title)},{default:y((()=>[a(o(d($).baseText("chatHub.models.byIdSelector.title",{interpolate:{provider:d(j)[e.data.provider]}})),1)])),_:1},8,["class"])],2)])),content:y((()=>[l("div",{class:u(t.$style.content)},[r(d(b),{size:"small",color:"text-base"},{default:y((()=>[a(o(d($).baseText("chatHub.models.byIdSelector.choose")),1)])),_:1}),r(d(g),{ref_key:"inputRef",ref:T,modelValue:h.value,"onUpdate:modelValue":i[0]||(i[0]=e=>h.value=e),name:"model",label:"","max-length":"64","focus-initially":"",onEnter:C},null,8,["modelValue"])],2)])),footer:y((()=>[l("div",{class:u(t.$style.footer)},[r(d(m),{variant:"subtle",onClick:E},{default:y((()=>[a(o(d($).baseText("chatHub.models.byIdSelector.cancel")),1)])),_:1}),r(d(m),{variant:"solid",disabled:!h.value,onClick:C},{default:y((()=>[a(o(d($).baseText("chatHub.models.byIdSelector.confirm")),1)])),_:1},8,["disabled"])],2)])),_:1},8,["name","event-bus"]))}}),[["__cssModules",{$style:{content:"_content_uxwis_125",footer:"_footer_uxwis_132",header:"_header_uxwis_139",icon:"_icon_uxwis_145"}}]]))}}}));
//# sourceMappingURL=ModelByIdSelectorModal-legacy-h-J_mpfd.js.map