n8n-editor-ui
Version:
Workflow Editor UI for n8n
65 lines (64 loc) • 2.95 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 { 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-un-authorized-view" };
var EntityUnAuthorised_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
__name: "EntityUnAuthorised",
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("path", {
d: "M19 11H5C3.89543 11 3 11.8954 3 13V20C3 21.1046 3.89543 22 5 22H19C20.1046 22 21 21.1046 21 20V13C21 11.8954 20.1046 11 19 11Z",
stroke: "var(--text-button--color--text--secondary)",
"stroke-width": "2",
"stroke-linecap": "round",
"stroke-linejoin": "round"
}), createBaseVNode("path", {
d: "M7 11V7C7 5.67392 7.52678 4.40215 8.46447 3.46447C9.40215 2.52678 10.6739 2 12 2C13.3261 2 14.5979 2.52678 15.5355 3.46447C16.4732 4.40215 17 5.67392 17 7V11",
stroke: "var(--text-button--color--text--secondary)",
"stroke-width": "2",
"stroke-linecap": "round",
"stroke-linejoin": "round"
})])], -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.entityUnAuthorized.title")), 1)]),
_: 1
}),
createVNode(unref(N8nText_default), {
color: "text-base",
tag: "p",
align: "center"
}, {
default: withCtx(() => [createTextVNode(toDisplayString(unref(locale).baseText("error.entityUnAuthorized.content", { interpolate: { entity: unref(locale).baseText(`generic.${_ctx.entityType}`).toLocaleLowerCase() } })), 1)]),
_: 1
})
]),
_: 1
})]);
};
}
}), [["__scopeId", "data-v-e8d3fd89"]]);
export { EntityUnAuthorised_default as default };