n8n-editor-ui
Version:
Workflow Editor UI for n8n
84 lines (83 loc) • 3.16 kB
JavaScript
import { Cn as toDisplayString, D as createElementBlock, Gt as unref, M as createVNode, P as defineComponent, bt as withCtx, et as openBlock, j as createTextVNode, w as createBaseVNode } from "./vue.runtime.esm-bundler-tP5dCd7J.js";
import { _t as useI18n } from "./_MapCache-ficiegRb.js";
import { Sn as N8nButton_default, et as N8nCard_default, xn as N8nText_default, yn as N8nHeading_default } from "./src-DgvumQTi.js";
import "./en-CF30SCh2.js";
import "./preload-helper-CR0ecmWK.js";
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwBpWJRZ.js";
import "./truncate-B1HVeveJ.js";
import "./empty-BuGRxzl4.js";
import "./sanitize-html-Cc45ZKm8.js";
import "./CalendarDate-zWqgZMlk.js";
import "./path-browserify-BtCDmZ3_.js";
var _hoisted_1 = { class: "entity-not-found-view" };
var EntityNotFound_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
__name: "EntityNotFound",
props: { entityType: {} },
setup(__props) {
const locale = useI18n();
return (_ctx, _cache) => {
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(N8nCard_default), { class: "entity-card" }, {
default: withCtx(() => [
_cache[0] || (_cache[0] = createBaseVNode("div", { class: "text-center mb-l" }, [createBaseVNode("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "24",
height: "24",
viewBox: "0 0 24 24",
fill: "none"
}, [
createBaseVNode("circle", {
cx: "12",
cy: "12",
r: "10",
stroke: "var(--text-button--color--text--secondary)",
"stroke-width": "2"
}),
createBaseVNode("rect", {
x: "11",
y: "6",
width: "2",
height: "8",
fill: "var(--text-button--color--text--secondary)"
}),
createBaseVNode("rect", {
x: "11",
y: "16",
width: "2",
height: "2",
fill: "var(--text-button--color--text--secondary)"
})
])], -1)),
createVNode(unref(N8nHeading_default), {
size: "xlarge",
align: "center",
tag: "h2",
color: "text-dark",
class: "mb-2xs"
}, {
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("error.entityNotFound.title", { interpolate: { entity: unref(locale).baseText(`generic.${_ctx.entityType}`) } })), 1)]),
_: 1
}),
createVNode(unref(N8nText_default), {
color: "text-base",
tag: "p",
align: "center",
class: "mb-m"
}, {
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("error.entityNotFound.text", { interpolate: { entity: unref(locale).baseText(`generic.${_ctx.entityType}`).toLocaleLowerCase() } })), 1)]),
_: 1
}),
createVNode(unref(N8nButton_default), {
href: "/",
element: "a",
type: "secondary"
}, {
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("error.entityNotFound.action")), 1)]),
_: 1
})
]),
_: 1
})]);
};
}
}), [["__scopeId", "data-v-57737623"]]);
export { EntityNotFound_default as default };