n8n-editor-ui 1.66.0 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/assets/{AuthView-31vu0x_3.js → AuthView-C7b2xzS9.js} +17 -19
  2. package/dist/assets/CanvasChat-DKeWqqZz.css +730 -0
  3. package/dist/assets/CanvasChat-QctJb8ta.js +4166 -0
  4. package/dist/assets/{CanvasControls-DkT1iClJ.js → CanvasControls-raoYims4.js} +1 -1
  5. package/dist/assets/{ChangePasswordView-DkhZAh4j.js → ChangePasswordView-BBju88Nm.js} +2 -2
  6. package/dist/assets/CollectionParameter-DNJAimAt.js +4 -0
  7. package/dist/assets/{CredentialsView-Du-lMwPW.js → CredentialsView-BfYXjOVw.js} +11 -10
  8. package/dist/assets/{ErrorView-CROJIl1H.js → ErrorView-BhPrjw7c.js} +1 -1
  9. package/dist/assets/{ExecutionsFilter-BecTg03r.css → ExecutionsTime-DVxRt-Pz.css} +6 -6
  10. package/dist/assets/{ExecutionsFilter-132FKb5o.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-Ba-at9rw.js} +43 -43
  11. package/dist/assets/{ExecutionsView-B41cgHPD.js → ExecutionsView-Dcw07XZ-.js} +26 -31
  12. package/dist/assets/{ExecutionsView-Dfy6JMwb.css → ExecutionsView-DlxsqdiC.css} +44 -38
  13. package/dist/assets/{FileSaver.min-B3lWZPMp.js → FileSaver.min-CKlTVpWB.js} +1 -1
  14. package/dist/assets/FixedCollectionParameter-CkI6mCZG.js +334 -0
  15. package/dist/assets/{FixedCollectionParameter-fI2wTyfY.css → FixedCollectionParameter-DzOGMEdq.css} +10 -10
  16. package/dist/assets/{ForgotMyPasswordView-DKrE7dUn.js → ForgotMyPasswordView--eKPrTSW.js} +4 -3
  17. package/dist/assets/{MainHeader-CW31WCmm.js → MainHeader-Btek9DoL.js} +195 -118
  18. package/dist/assets/{MainHeader-Bc5G9_Uq.css → MainHeader-DJdd17Nh.css} +36 -11
  19. package/dist/assets/{MainSidebar-cNW0UJBC.css → MainSidebar-BRYJRpOA.css} +2 -2
  20. package/dist/assets/{MainSidebar-Dny90RtO.js → MainSidebar-CRjg4yDv.js} +7 -13
  21. package/dist/assets/{NodeCreation-BqSkxffS.js → NodeCreation-CDpNw3BL.js} +14 -11
  22. package/dist/assets/{NodeCreator-CoqcSKC-.js → NodeCreator-DPpQXLHf.js} +79 -65
  23. package/dist/assets/{NodeViewSwitcher-C1Gp-jKb.js → NodeViewSwitcher-CNfOOUof.js} +2891 -2905
  24. package/dist/assets/{NodeViewSwitcher-B8VPj4Rs.css → NodeViewSwitcher-DuVIKqpm.css} +185 -184
  25. package/dist/assets/{ProjectCardBadge-kHyKG50e.js → ProjectCardBadge-DzaTsr93.js} +1 -1
  26. package/dist/assets/{ResourceListHeader-DgE1VPUF.css → ProjectHeader-09VQWBZH.css} +5 -3
  27. package/dist/assets/ProjectHeader-wdvHJxbT.js +196 -0
  28. package/dist/assets/{ProjectSettings-BohhQ-z6.js → ProjectSettings-B6j0VJK5.js} +7 -36
  29. package/dist/assets/PushConnectionTracker.vue_vue_type_script_setup_true_lang-ByoMju5L.js +39 -0
  30. package/dist/assets/ResourcesListLayout-9Vpyt6Ec.js +662 -0
  31. package/dist/assets/{ResourcesListLayout-Bw99IFlO.css → ResourcesListLayout-CuA8O7do.css} +8 -8
  32. package/dist/assets/{RunDataJson-CUsbBWaI.js → RunDataJson-sPhT7c2h.js} +12 -12
  33. package/dist/assets/{RunDataJsonActions-Bnn0o9WH.js → RunDataJsonActions-DiMvLis_.js} +128 -159
  34. package/dist/assets/{RunDataSearch-BiygytJ8.js → RunDataSearch-CF_rpBKx.js} +2 -2
  35. package/dist/assets/RunDataTable-T52TXUHR.js +564 -0
  36. package/dist/assets/{SamlOnboarding-BXYS2fQg.js → SamlOnboarding-BCn53xtf.js} +2 -2
  37. package/dist/assets/SettingsApiView-DumvK072.js +227 -0
  38. package/dist/assets/{SettingsCommunityNodesView-BjakfOB1.js → SettingsCommunityNodesView-Db787Jar.js} +185 -195
  39. package/dist/assets/{SettingsExternalSecrets-BGIt9OQy.js → SettingsExternalSecrets-DKB2o2Dq.js} +3 -3
  40. package/dist/assets/{SettingsLdapView-DBY4YyYE.js → SettingsLdapView-BoKoCT5V.js} +3 -3
  41. package/dist/assets/SettingsLogStreamingView-BGX39Unz.js +500 -0
  42. package/dist/assets/{SettingsPersonalView-CgzznKXi.js → SettingsPersonalView-fTCeSJfu.js} +1 -1
  43. package/dist/assets/{SettingsSourceControl-DNWFyNrX.js → SettingsSourceControl-_G83P363.js} +3 -3
  44. package/dist/assets/{SettingsSso-B8oke872.js → SettingsSso-Bn48qAiX.js} +3 -3
  45. package/dist/assets/{SettingsUsageAndPlan-BUUYApK_.js → SettingsUsageAndPlan-DZkS0RP4.js} +4 -3
  46. package/dist/assets/{SettingsUsageAndPlan-P6SS2mWq.css → SettingsUsageAndPlan-vijI-va0.css} +3 -3
  47. package/dist/assets/{SettingsUsersView-DyuP8V6k.js → SettingsUsersView-BUh2iKEW.js} +4 -3
  48. package/dist/assets/{SettingsView-CD83Adan.js → SettingsView-D_S4x7XG.js} +2 -30
  49. package/dist/assets/{SetupView-C8XYMj2N.js → SetupView-BenKVU0l.js} +2 -2
  50. package/dist/assets/{SetupWorkflowCredentialsButton-u1qhjj5K.js → SetupWorkflowCredentialsButton-DKr9ZPLE.js} +1 -1
  51. package/dist/assets/{SetupWorkflowFromTemplateView-DdxqCGcl.js → SetupWorkflowFromTemplateView-Ce1R_CDh.js} +3 -3
  52. package/dist/assets/{SigninView-CGQ20O_c.js → SigninView-xl5aJqka.js} +4 -3
  53. package/dist/assets/{SignoutView-BZwBBglt.js → SignoutView-Bscz6u1Y.js} +1 -1
  54. package/dist/assets/{SignupView-BCT6dhhZ.js → SignupView-CZN8EhJV.js} +4 -3
  55. package/dist/assets/TemplateDetails-BAQ3vBNJ.js +179 -0
  56. package/dist/assets/TemplateList-DD7sqnpI.js +371 -0
  57. package/dist/assets/{TemplatesCollectionView-BxBSljqH.js → TemplatesCollectionView-CG3ZoY8i.js} +10 -10
  58. package/dist/assets/{TemplatesSearchView-kFcPH-ZH.js → TemplatesSearchView-22jrqI8X.js} +530 -577
  59. package/dist/assets/{TemplatesView-TPTpSdeD.js → TemplatesView-BZFc4hZ1.js} +32 -37
  60. package/dist/assets/{TemplatesWorkflowView-8NdGLWj7.js → TemplatesWorkflowView-DkXtdhUJ.js} +5 -5
  61. package/dist/assets/{VariablesView-CHXdt5-z.css → VariablesView-BPKo50HJ.css} +18 -18
  62. package/dist/assets/{VariablesView-C1NxBxBQ.js → VariablesView-DHu4ZoMN.js} +5 -5
  63. package/dist/assets/WorkerView-BfxdQiAc.js +148 -0
  64. package/dist/assets/WorkerView-Dm0b18Mh.css +22 -0
  65. package/dist/assets/{WorkflowActivator-CalsATsI.js → WorkflowActivator-CvdQVEtW.js} +2 -2
  66. package/dist/assets/{WorkflowExecutionsInfoAccordion-rUnvuY-5.js → WorkflowExecutionsInfoAccordion-D2GFnpq1.js} +1 -1
  67. package/dist/assets/{WorkflowExecutionsLandingPage-C4K7kfqv.js → WorkflowExecutionsLandingPage-D2bvAsxg.js} +2 -2
  68. package/dist/assets/{WorkflowExecutionsPreview-BO31AO7v.js → WorkflowExecutionsPreview-D6WBsbAG.js} +5 -5
  69. package/dist/assets/{WorkflowExecutionsView-B8x2-iOd.css → WorkflowExecutionsView-CZKkPKqJ.css} +9 -1
  70. package/dist/assets/{WorkflowExecutionsView-B-5zbx_n.js → WorkflowExecutionsView-DI6r5OvZ.js} +6 -6
  71. package/dist/assets/{WorkflowHistory-uvlFDwTJ.js → WorkflowHistory-Dc1f2Tsn.js} +5 -4
  72. package/dist/assets/{WorkflowOnboardingView-B869wGVb.js → WorkflowOnboardingView-DyxvWfZ7.js} +1 -1
  73. package/dist/assets/{WorkflowPreview-BlzWpiO1.js → WorkflowPreview-hC6wSe-Y.js} +1 -1
  74. package/dist/assets/{WorkflowsView-IdgMnIZY.js → WorkflowsView-SIDgO47b.js} +10 -10
  75. package/dist/assets/buttons.esm-BOkmSohe.js +477 -0
  76. package/dist/assets/{dateFormatter-BCrxaIdG.js → dateFormatter-BRi2wSZ-.js} +1 -1
  77. package/dist/assets/{index-QAq8Sa9R.js → index-40I5DMGP.js} +196843 -202970
  78. package/dist/assets/{index-DaeOVPzE.css → index-Dr3zFZlC.css} +136 -594
  79. package/dist/assets/{pushConnection.store-Cdssd0uJ.js → pushConnection.store-w_WxpOeH.js} +1 -1
  80. package/dist/assets/{templateActions-ClPy1BRa.js → templateActions-D4EHdA9n.js} +1 -1
  81. package/dist/assets/{useBugReporting-Bvr7bSQt.js → useBugReporting-CFOQlQpP.js} +1 -1
  82. package/dist/assets/{useExecutionDebugging-CwyVwJqO.js → useExecutionDebugging-LQQWXhPj.js} +3 -2
  83. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CYMqjryg.js → useExecutionHelpers-CXGl_HIp.js} +55 -55
  84. package/dist/assets/{useNodeViewVersionSwitcher-BPNKvsXw.js → useNodeViewVersionSwitcher-BLo5Qp-N.js} +1 -1
  85. package/dist/assets/{usePushConnection-DDXmzoG8.js → usePushConnection-B5ija5f5.js} +9 -10
  86. package/dist/assets/{RunDataAi-x30tU8-0.css → useRunWorkflow-DH7ZzA8t.css} +97 -57
  87. package/dist/assets/useRunWorkflow-MrEKURG4.js +3710 -0
  88. package/dist/assets/{useWorkflowActivate-DKPQP7qy.js → useWorkflowActivate-CKedJlgZ.js} +1 -1
  89. package/dist/index.html +3 -2
  90. package/index.html +1 -0
  91. package/package.json +1 -1
  92. package/vite.config.mts +1 -17
  93. package/dist/assets/CollectionParameter-BDKfoIMJ.js +0 -4
  94. package/dist/assets/FixedCollectionParameter-DXh-j7zB.js +0 -355
  95. package/dist/assets/ProjectTabs-D-87NPFl.js +0 -88
  96. package/dist/assets/ProjectTabs-DjoIePoM.css +0 -3
  97. package/dist/assets/PushConnectionTracker-Bhnghrmf.js +0 -38
  98. package/dist/assets/ResourceListHeader-Bs6GLg32.js +0 -66
  99. package/dist/assets/ResourcesListLayout-ByBNP70B.js +0 -800
  100. package/dist/assets/RunDataAi-CYTNyRq_.js +0 -1539
  101. package/dist/assets/RunDataTable--RIqj8DU.js +0 -608
  102. package/dist/assets/SettingsApiView-DoibCiLo.js +0 -255
  103. package/dist/assets/SettingsFakeDoorView-DpKZ4qWG.css +0 -14
  104. package/dist/assets/SettingsFakeDoorView-DwXDXgon.js +0 -44
  105. package/dist/assets/SettingsLogStreamingView-DHQWns6I.js +0 -519
  106. package/dist/assets/TemplateDetails-BsLVCpdi.js +0 -199
  107. package/dist/assets/TemplateList-Bn7ePHhc.js +0 -433
  108. package/dist/assets/WorkerView-Bj1cvzLg.js +0 -825
  109. package/dist/assets/WorkerView-C_d54L0W.css +0 -181
  110. package/dist/assets/cloud-B6bxVT9F.js +0 -37
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, d9 as useClipboard, a as useToast, m as useSettingsStore, K as useUIStore, u as useUsersStore, hG as useSSOStore, a3 as useDocumentTitle, p as computed, o as onMounted, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, n as normalizeClass, f as createCommentVNode, e as createBlock, F as Fragment, z as renderList, g as useI18n, hH as INVITE_USER_MODAL_KEY, l as resolveComponent, am as hasPermission, a7 as EnterpriseEditionFeature, hI as ROLE, _ as _export_sfc } from "./index-QAq8Sa9R.js";
1
+ import { d as defineComponent, aZ as useClipboard, a as useToast, m as useSettingsStore, K as useUIStore, u as useUsersStore, ij as useSSOStore, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, p as computed, o as onMounted, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, n as normalizeClass, f as createCommentVNode, e as createBlock, F as Fragment, z as renderList, g as useI18n, ik as INVITE_USER_MODAL_KEY, l as resolveComponent, an as hasPermission, a8 as EnterpriseEditionFeature, il as ROLE, _ as _export_sfc } from "./index-40I5DMGP.js";
2
2
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
3
  __name: "SettingsUsersView",
4
4
  setup(__props) {
@@ -9,6 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  const usersStore = useUsersStore();
10
10
  const ssoStore = useSSOStore();
11
11
  const documentTitle = useDocumentTitle();
12
+ const pageRedirectionHelper = usePageRedirectionHelper();
12
13
  const i18n = useI18n();
13
14
  const showUMSetupWarning = computed(() => {
14
15
  return hasPermission(["defaultUser"]);
@@ -183,10 +184,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
183
184
  }
184
185
  }
185
186
  function goToUpgrade() {
186
- void uiStore.goToUpgrade("settings-users", "upgrade-users");
187
+ void pageRedirectionHelper.goToUpgrade("settings-users", "upgrade-users");
187
188
  }
188
189
  function goToUpgradeAdvancedPermissions() {
189
- void uiStore.goToUpgrade("settings-users", "upgrade-advanced-permissions");
190
+ void pageRedirectionHelper.goToUpgrade("settings-users", "upgrade-advanced-permissions");
190
191
  }
191
192
  async function onRoleChange(user, newRoleName) {
192
193
  var _a;
@@ -1,4 +1,4 @@
1
- import { am as hasPermission, d as defineComponent, b as useRouter, U as useRoute, Z as useRootStore, m as useSettingsStore, K as useUIStore, p as computed, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, j as createBaseVNode, k as createTextVNode, t as toDisplayString, A as unref, n as normalizeClass, aH as ABOUT_MODAL_KEY, g as useI18n, V as VIEWS, l as resolveComponent, _ as _export_sfc, r as ref, o as onMounted, bP as mergeProps, hv as isRouteLocationRaw } from "./index-QAq8Sa9R.js";
1
+ import { an as hasPermission, d as defineComponent, b as useRouter, U as useRoute, Z as useRootStore, m as useSettingsStore, K as useUIStore, p as computed, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, j as createBaseVNode, k as createTextVNode, t as toDisplayString, A as unref, n as normalizeClass, aM as ABOUT_MODAL_KEY, g as useI18n, l as resolveComponent, V as VIEWS, _ as _export_sfc, r as ref, o as onMounted, aS as mergeProps, i7 as isRouteLocationRaw } from "./index-40I5DMGP.js";
2
2
  function useUserHelpers(router, route) {
3
3
  const canUserAccessRouteByName = (name) => {
4
4
  const resolvedRoute = router.resolve({ name });
@@ -35,19 +35,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
35
35
  const rootStore = useRootStore();
36
36
  const settingsStore = useSettingsStore();
37
37
  const uiStore = useUIStore();
38
- const settingsFakeDoorFeatures = computed(
39
- () => Object.keys(uiStore.fakeDoorsByLocation).filter((location) => location.includes("settings")).map((location) => uiStore.fakeDoorsByLocation[location])
40
- );
41
- const handleSelect = (key) => {
42
- switch (key) {
43
- case "users":
44
- // Fakedoor feature added via hooks when user management is disabled on cloud
45
- case "logging":
46
- router.push({ name: VIEWS.FAKE_DOOR, params: { featureId: key } }).catch(() => {
47
- });
48
- break;
49
- }
50
- };
51
38
  const sidebarMenuItems = computed(() => {
52
39
  const menuItems = [
53
40
  {
@@ -123,18 +110,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
123
110
  route: { to: { name: VIEWS.WORKER_VIEW } }
124
111
  }
125
112
  ];
126
- for (const item of settingsFakeDoorFeatures.value) {
127
- if (item.uiLocations.includes("settings")) {
128
- menuItems.push({
129
- id: item.id,
130
- icon: item.icon ?? "question",
131
- label: i18n.baseText(item.featureName),
132
- position: "top",
133
- available: true,
134
- activateOnRoutePaths: [`/settings/coming-soon/${item.id}`]
135
- });
136
- }
137
- }
138
113
  menuItems.push({
139
114
  id: "settings-log-streaming",
140
115
  icon: "sign-in-alt",
@@ -161,10 +136,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
161
136
  return openBlock(), createElementBlock("div", {
162
137
  class: normalizeClass(_ctx.$style.container)
163
138
  }, [
164
- createVNode(_component_n8n_menu, {
165
- items: sidebarMenuItems.value,
166
- onSelect: handleSelect
167
- }, {
139
+ createVNode(_component_n8n_menu, { items: sidebarMenuItems.value }, {
168
140
  header: withCtx(() => [
169
141
  createBaseVNode("div", {
170
142
  class: normalizeClass(_ctx.$style.returnButton),
@@ -1,5 +1,5 @@
1
- import { d as defineComponent, gZ as usePostHog, m as useSettingsStore, K as useUIStore, u as useUsersStore, a as useToast, b as useRouter, r as ref, c5 as reactive, c as openBlock, e as createBlock, g as useI18n, hR as MORE_ONBOARDING_OPTIONS_EXPERIMENT, V as VIEWS } from "./index-QAq8Sa9R.js";
2
- import { A as AuthView } from "./AuthView-31vu0x_3.js";
1
+ import { d as defineComponent, hj as usePostHog, m as useSettingsStore, K as useUIStore, u as useUsersStore, a as useToast, b as useRouter, r as ref, cz as reactive, c as openBlock, e as createBlock, g as useI18n, iu as MORE_ONBOARDING_OPTIONS_EXPERIMENT, V as VIEWS } from "./index-40I5DMGP.js";
2
+ import { A as AuthView } from "./AuthView-C7b2xzS9.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "SetupView",
5
5
  setup(__props) {
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, T as useWorkflowsStore, cZ as useNodeTypesStore, K as useUIStore, gZ as usePostHog, p as computed, jg as doesNodeHaveAllCredentialsFilled, h$ as TEMPLATE_CREDENTIAL_SETUP_EXPERIMENT, H as watch, y as onBeforeUnmount, jh as SETUP_CREDENTIALS_MODAL_KEY, l as resolveComponent, c as openBlock, e as createBlock, A as unref, f as createCommentVNode, g as useI18n } from "./index-QAq8Sa9R.js";
1
+ import { d as defineComponent, T as useWorkflowsStore, bf as useNodeTypesStore, K as useUIStore, hj as usePostHog, p as computed, jB as doesNodeHaveAllCredentialsFilled, iE as TEMPLATE_CREDENTIAL_SETUP_EXPERIMENT, H as watch, v as onBeforeUnmount, jC as SETUP_CREDENTIALS_MODAL_KEY, l as resolveComponent, c as openBlock, e as createBlock, A as unref, f as createCommentVNode, g as useI18n } from "./index-40I5DMGP.js";
2
2
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
3
  __name: "SetupWorkflowCredentialsButton",
4
4
  setup(__props) {
@@ -1,6 +1,6 @@
1
- import { R as defineStore, r as ref, aC as useTemplatesStore, cZ as useNodeTypesStore, dt as useCredentialsStore, Z as useRootStore, T as useWorkflowsStore, p as computed, h_ as useCredentialSetupState, V as VIEWS, gd as tryToParseNumber, aF as useExternalHooks, aj as useTelemetry, d as defineComponent, gZ as usePostHog, U as useRoute, b as useRouter, H as watch, aq as onBeforeMount, h$ as TEMPLATE_CREDENTIAL_SETUP_EXPERIMENT, o as onMounted, c as openBlock, e as createBlock, w as withCtx, A as unref, i0 as N8nHeading, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass, i1 as AppsRequiringCredsNotice, h as createElementBlock, F as Fragment, z as renderList, i2 as SetupTemplateFormStep, i as createVNode, i3 as N8nLink, g as useI18n, l as resolveComponent, _ as _export_sfc } from "./index-QAq8Sa9R.js";
2
- import { c as createWorkflowFromTemplate } from "./templateActions-ClPy1BRa.js";
3
- import { T as TemplatesView } from "./TemplatesView-TPTpSdeD.js";
1
+ import { R as defineStore, r as ref, aH as useTemplatesStore, bf as useNodeTypesStore, dS as useCredentialsStore, Z as useRootStore, T as useWorkflowsStore, p as computed, iD as useCredentialSetupState, V as VIEWS, gz as tryToParseNumber, aK as useExternalHooks, ak as useTelemetry, d as defineComponent, hj as usePostHog, U as useRoute, b as useRouter, H as watch, av as onBeforeMount, iE as TEMPLATE_CREDENTIAL_SETUP_EXPERIMENT, o as onMounted, c as openBlock, e as createBlock, w as withCtx, A as unref, iF as N8nHeading, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass, iG as AppsRequiringCredsNotice, h as createElementBlock, F as Fragment, z as renderList, iH as SetupTemplateFormStep, i as createVNode, eh as N8nLink, g as useI18n, l as resolveComponent, _ as _export_sfc } from "./index-40I5DMGP.js";
2
+ import { c as createWorkflowFromTemplate } from "./templateActions-D4EHdA9n.js";
3
+ import { T as TemplatesView } from "./TemplatesView-BZFc4hZ1.js";
4
4
  const useSetupTemplateStore = defineStore("setupTemplate", () => {
5
5
  const templateId = ref("");
6
6
  const isLoading = ref(true);
@@ -1,5 +1,5 @@
1
- import { d as defineComponent, r as ref, hS as toRefs, o as onMounted, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, n as normalizeClass, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, e as createBlock, f as createCommentVNode, g as useI18n, hT as MFA_FORM, l as resolveComponent, hU as mfaEventBus, M as MFA_AUTHENTICATION_TOKEN_INPUT_MAX_LENGTH, hV as MFA_AUTHENTICATION_RECOVERY_CODE_INPUT_MAX_LENGTH, _ as _export_sfc, u as useUsersStore, m as useSettingsStore, ay as useCloudPlanStore, U as useRoute, b as useRouter, a as useToast, p as computed, c5 as reactive, V as VIEWS, hW as MFA_AUTHENTICATION_REQUIRED_ERROR_CODE, aj as useTelemetry } from "./index-QAq8Sa9R.js";
2
- import { L as Logo, A as AuthView } from "./AuthView-31vu0x_3.js";
1
+ import { d as defineComponent, r as ref, iv as toRefs, o as onMounted, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, n as normalizeClass, w as withCtx, k as createTextVNode, t as toDisplayString, A as unref, e as createBlock, f as createCommentVNode, g as useI18n, iw as MFA_FORM, l as resolveComponent, ix as mfaEventBus, M as MFA_AUTHENTICATION_TOKEN_INPUT_MAX_LENGTH, iy as MFA_AUTHENTICATION_RECOVERY_CODE_INPUT_MAX_LENGTH, _ as _export_sfc, u as useUsersStore, m as useSettingsStore, aD as useCloudPlanStore, U as useRoute, b as useRouter, a as useToast, p as computed, cz as reactive, V as VIEWS, iz as MFA_AUTHENTICATION_REQUIRED_ERROR_CODE, ak as useTelemetry } from "./index-40I5DMGP.js";
2
+ import { L as Logo, A as AuthView } from "./AuthView-C7b2xzS9.js";
3
3
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4
4
  __name: "MfaView",
5
5
  props: {
@@ -247,7 +247,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
247
247
  showRequiredAsterisk: false,
248
248
  validateOnBlur: false,
249
249
  autocomplete: "email",
250
- capitalize: true
250
+ capitalize: true,
251
+ focusInitially: true
251
252
  }
252
253
  },
253
254
  {
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, u as useUsersStore, a as useToast, b as useRouter, o as onMounted, c as openBlock, h as createElementBlock, V as VIEWS, g as useI18n } from "./index-QAq8Sa9R.js";
1
+ import { d as defineComponent, u as useUsersStore, a as useToast, b as useRouter, o as onMounted, c as openBlock, h as createElementBlock, V as VIEWS, g as useI18n } from "./index-40I5DMGP.js";
2
2
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
3
  __name: "SignoutView",
4
4
  setup(__props) {
@@ -1,5 +1,5 @@
1
- import { A as AuthView } from "./AuthView-31vu0x_3.js";
2
- import { d as defineComponent, K as useUIStore, u as useUsersStore, a as useToast, b as useRouter, U as useRoute, r as ref, p as computed, o as onMounted, V as VIEWS, c as openBlock, e as createBlock, g as useI18n } from "./index-QAq8Sa9R.js";
1
+ import { A as AuthView } from "./AuthView-C7b2xzS9.js";
2
+ import { d as defineComponent, K as useUIStore, u as useUsersStore, a as useToast, b as useRouter, U as useRoute, r as ref, p as computed, o as onMounted, V as VIEWS, c as openBlock, e as createBlock, g as useI18n } from "./index-40I5DMGP.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "SignupView",
5
5
  setup(__props) {
@@ -20,7 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  maxlength: 32,
21
21
  required: true,
22
22
  autocomplete: "given-name",
23
- capitalize: true
23
+ capitalize: true,
24
+ focusInitially: true
24
25
  }
25
26
  },
26
27
  {
@@ -0,0 +1,179 @@
1
+ import { d as defineComponent, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, n as normalizeClass, q as renderSlot, l as resolveComponent, _ as _export_sfc, b as useRouter, aH as useTemplatesStore, e as createBlock, F as Fragment, z as renderList, ds as _sfc_main$2, A as unref, iA as filterTemplateNodes, f as createCommentVNode, iB as _sfc_main$3, iC as abbreviateNumber, g as useI18n } from "./index-40I5DMGP.js";
2
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3
+ __name: "TemplateDetailsBlock",
4
+ props: {
5
+ title: {}
6
+ },
7
+ setup(__props) {
8
+ return (_ctx, _cache) => {
9
+ const _component_n8n_heading = resolveComponent("n8n-heading");
10
+ return openBlock(), createElementBlock("div", {
11
+ class: normalizeClass(_ctx.$style.block)
12
+ }, [
13
+ createBaseVNode("div", {
14
+ class: normalizeClass(_ctx.$style.header)
15
+ }, [
16
+ createVNode(_component_n8n_heading, {
17
+ tag: "h3",
18
+ size: "small",
19
+ color: "text-base"
20
+ }, {
21
+ default: withCtx(() => [
22
+ createTextVNode(toDisplayString(_ctx.title), 1)
23
+ ]),
24
+ _: 1
25
+ })
26
+ ], 2),
27
+ createBaseVNode("div", {
28
+ class: normalizeClass(_ctx.$style.content)
29
+ }, [
30
+ renderSlot(_ctx.$slots, "default")
31
+ ], 2)
32
+ ], 2);
33
+ };
34
+ }
35
+ });
36
+ const block = "_block_czs8t_1";
37
+ const header = "_header_czs8t_5";
38
+ const content = "_content_czs8t_10";
39
+ const style0$1 = {
40
+ block,
41
+ header,
42
+ content
43
+ };
44
+ const cssModules$1 = {
45
+ "$style": style0$1
46
+ };
47
+ const TemplateDetailsBlock = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1]]);
48
+ function isTemplatesWorkflow(template) {
49
+ return !!template && "totalViews" in template;
50
+ }
51
+ function isFullTemplatesCollection(template) {
52
+ return !!template && "description" in template && "categories" in template;
53
+ }
54
+ const _sfc_main = /* @__PURE__ */ defineComponent({
55
+ __name: "TemplateDetails",
56
+ props: {
57
+ template: {},
58
+ blockTitle: {},
59
+ loading: { type: Boolean }
60
+ },
61
+ setup(__props) {
62
+ const router = useRouter();
63
+ const i18n = useI18n();
64
+ const templatesStore = useTemplatesStore();
65
+ const redirectToCategory = (id) => {
66
+ templatesStore.resetSessionId();
67
+ void router.push(`/templates?categories=${id}`);
68
+ };
69
+ const redirectToSearchPage = (node) => {
70
+ templatesStore.resetSessionId();
71
+ void router.push(`/templates?search=${node.displayName}`);
72
+ };
73
+ return (_ctx, _cache) => {
74
+ const _component_n8n_loading = resolveComponent("n8n-loading");
75
+ const _component_n8n_tags = resolveComponent("n8n-tags");
76
+ const _component_n8n_text = resolveComponent("n8n-text");
77
+ return openBlock(), createElementBlock("div", null, [
78
+ createVNode(_component_n8n_loading, {
79
+ loading: _ctx.loading,
80
+ rows: 5,
81
+ variant: "p"
82
+ }, null, 8, ["loading"]),
83
+ !_ctx.loading && _ctx.template && _ctx.template.nodes.length > 0 ? (openBlock(), createBlock(TemplateDetailsBlock, {
84
+ key: 0,
85
+ title: _ctx.blockTitle
86
+ }, {
87
+ default: withCtx(() => [
88
+ createBaseVNode("div", {
89
+ class: normalizeClass(_ctx.$style.icons)
90
+ }, [
91
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(filterTemplateNodes)(_ctx.template.nodes), (node) => {
92
+ return openBlock(), createElementBlock("div", {
93
+ key: node.name,
94
+ class: normalizeClass(_ctx.$style.icon)
95
+ }, [
96
+ createVNode(_sfc_main$2, {
97
+ "node-type": node,
98
+ size: 24,
99
+ "show-tooltip": true,
100
+ onClick: ($event) => redirectToSearchPage(node)
101
+ }, null, 8, ["node-type", "onClick"])
102
+ ], 2);
103
+ }), 128))
104
+ ], 2)
105
+ ]),
106
+ _: 1
107
+ }, 8, ["title"])) : createCommentVNode("", true),
108
+ !_ctx.loading && unref(isFullTemplatesCollection)(_ctx.template) && _ctx.template.categories.length > 0 ? (openBlock(), createBlock(TemplateDetailsBlock, {
109
+ key: 1,
110
+ title: _ctx.$locale.baseText("template.details.categories")
111
+ }, {
112
+ default: withCtx(() => [
113
+ createVNode(_component_n8n_tags, {
114
+ tags: _ctx.template.categories,
115
+ "onClick:tag": redirectToCategory
116
+ }, null, 8, ["tags"])
117
+ ]),
118
+ _: 1
119
+ }, 8, ["title"])) : createCommentVNode("", true),
120
+ !_ctx.loading && _ctx.template ? (openBlock(), createBlock(TemplateDetailsBlock, {
121
+ key: 2,
122
+ title: unref(i18n).baseText("template.details.details")
123
+ }, {
124
+ default: withCtx(() => [
125
+ createBaseVNode("div", {
126
+ class: normalizeClass(_ctx.$style.text)
127
+ }, [
128
+ unref(isTemplatesWorkflow)(_ctx.template) ? (openBlock(), createBlock(_component_n8n_text, {
129
+ key: 0,
130
+ size: "small",
131
+ color: "text-base"
132
+ }, {
133
+ default: withCtx(() => [
134
+ createTextVNode(toDisplayString(unref(i18n).baseText("template.details.created")) + " ", 1),
135
+ createVNode(_sfc_main$3, {
136
+ date: _ctx.template.createdAt
137
+ }, null, 8, ["date"]),
138
+ createTextVNode(" " + toDisplayString(unref(i18n).baseText("template.details.by")) + " " + toDisplayString(_ctx.template.user ? _ctx.template.user.username : "n8n team"), 1)
139
+ ]),
140
+ _: 1
141
+ })) : createCommentVNode("", true)
142
+ ], 2),
143
+ createBaseVNode("div", {
144
+ class: normalizeClass(_ctx.$style.text)
145
+ }, [
146
+ unref(isTemplatesWorkflow)(_ctx.template) && _ctx.template.totalViews !== 0 ? (openBlock(), createBlock(_component_n8n_text, {
147
+ key: 0,
148
+ size: "small",
149
+ color: "text-base"
150
+ }, {
151
+ default: withCtx(() => [
152
+ createTextVNode(toDisplayString(unref(i18n).baseText("template.details.viewed")) + " " + toDisplayString(unref(abbreviateNumber)(_ctx.template.totalViews)) + " " + toDisplayString(unref(i18n).baseText("template.details.times")), 1)
153
+ ]),
154
+ _: 1
155
+ })) : createCommentVNode("", true)
156
+ ], 2)
157
+ ]),
158
+ _: 1
159
+ }, 8, ["title"])) : createCommentVNode("", true)
160
+ ]);
161
+ };
162
+ }
163
+ });
164
+ const icons = "_icons_1yw74_1";
165
+ const icon = "_icon_1yw74_1";
166
+ const text = "_text_1yw74_12";
167
+ const style0 = {
168
+ icons,
169
+ icon,
170
+ text
171
+ };
172
+ const cssModules = {
173
+ "$style": style0
174
+ };
175
+ const __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
176
+ export {
177
+ __unplugin_components_1 as _,
178
+ isFullTemplatesCollection as i
179
+ };