n8n-editor-ui
Version:
Workflow Editor UI for n8n
3 lines • 1.9 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ac8ad4ea-b880-4394-91a9-c38f061b7200`,e._sentryDebugIdIdentifier=`sentry-dbid-ac8ad4ea-b880-4394-91a9-c38f061b7200`)})()}catch{}import{$ as e,A as t,E as n,N as r,S as i,Sn as a,T as o,_ as s,_n as c,rt as l}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{t as u}from"./_plugin-vue_export-helper-CIL7EULb.js";function d(e,t){if(!t)return[{isMatched:!1,content:e}];let n=RegExp(`(${(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))(t)})`,`i`);return e.split(n).map(e=>({isMatched:n.test(e),content:e})).filter(e=>e.content!==``)}var f={key:0},p=[`textContent`],m=u(r({__name:`TextWithHighlights`,props:{content:{type:[String,Object,Number,Boolean,null]},search:{}},setup(r){let u=r,m=i(()=>u.search&&typeof u.content==`string`?d(u.content,u.search):[]);return(r,i)=>m.value.length&&typeof u.content==`string`?(e(),n(`span`,f,[(e(!0),n(s,null,l(m.value,(t,r)=>(e(),n(s,null,[t.isMatched&&t.content?(e(),n(`mark`,{key:`mark-${r}`},a(t.content),1)):t.content?(e(),n(`span`,{key:`span-${r}`},a(t.content),1)):o(``,!0)],64))),256))])):(e(),n(`span`,{key:1,class:c(r.$style.content)},[typeof u.content==`string`?(e(!0),n(s,{key:0},l(u.content.split(`
`),(i,s)=>(e(),n(`span`,{key:`line-${s}`},[s>0?(e(),n(`span`,{key:0,class:c(r.$style.newLine)},`\\n`,2)):o(``,!0),t(a(i),1)]))),128)):(e(),n(`span`,{key:1,textContent:a(u.content)},null,8,p))],2))}}),[[`__cssModules`,{$style:{content:`_content_1h423_125`,newLine:`_newLine_1h423_125`}}]]);export{d as n,m as t};
//# sourceMappingURL=TextWithHighlights-D5CTCqWK.js.map