1/* N8N Chat UI storefront loader. Generated from n8nchatui-apps/src/core, do not edit by hand. */ 2(function () { 3 var CONFIG = window.__n8nChatUiConfig; 4 if (!CONFIG || (!CONFIG.url && !CONFIG.standalone)) return; 5 function normalizePath(value) { 6 var path = String(value == null ? "" : value).trim().toLowerCase(); 7 var cut = path.search(/[?#]/); 8 if (cut !== -1) path = path.slice(0, cut); 9 path = "/" + path.replace(/^\/+/, ""); 10 path = path.replace(/\/+$/, ""); 11 return path === "" ? "/" : path; 12 } 13 function patternToRegExp(pattern) { 14 var escaped = normalizePath(pattern) 15 .replace(/[.+?^${}()|[\]\\]/g, "\\$&") 16 .replace(/\*/g, ".*"); 17 return new RegExp("^" + escaped + "$"); 18 } 19 function stripLocalePrefix(pathname) { 20 return String(pathname == null ? "" : pathname).replace(/^\/[a-z]{2}(?:-[a-z]{2})?(?=\/|$)/i, ""); 21 } 22 var raw = CONFIG.stripLocale ? stripLocalePrefix(location.pathname) : location.pathname; 23 var path = normalizePath(raw); 24 var exclude = CONFIG.exclude || []; 25 for (var i = 0; i < exclude.length; i++) { 26 if (patternToRegExp(exclude[i]).test(path)) return; 27 } 28 if (window.__n8nChatUiLoaded) return; 29 window.__n8nChatUiLoaded = true; 30 var failed = function (e) { console.warn("N8N Chat UI widget failed to load", e); }; 31 if (CONFIG.url) { 32 import(CONFIG.url).then(function (m) { return m.default.load(); }).catch(failed); 33 } else { 34 import(CONFIG.cdn || "https://cdn.n8nchatui.com/v1/embed.js") 35 .then(function (m) { return m.default.init(CONFIG.standalone); }) 36 .catch(failed); 37 } 38})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.