n8n-editor-ui 1.71.3 → 1.72.1

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 (151) hide show
  1. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-C7YrhVc7.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-WpdLQ_Lc.js} +1 -1
  2. package/dist/assets/{AuthView-Cnr31xHM.css → AuthView-BP3bsQpK.css} +3 -14
  3. package/dist/assets/{AuthView-BhrVKHQb.js → AuthView-xWm2P-0B.js} +1 -1
  4. package/dist/assets/{CanvasChat-B2z8TKEq.js → CanvasChat-CpplEK_c.js} +76 -104
  5. package/dist/assets/{CanvasChat-BuYT3e9G.css → CanvasChat-DhkdJLy7.css} +18 -81
  6. package/dist/assets/{CanvasControls-Gjw5xMXK.css → CanvasControls-BEOkwFDJ.css} +1 -2
  7. package/dist/assets/{CanvasControls-D3OVjMCG.js → CanvasControls-CNOZvEmR.js} +1 -1
  8. package/dist/assets/{ChangePasswordView-BkoEwfgW.js → ChangePasswordView-Bx4HKBs9.js} +2 -2
  9. package/dist/assets/CollectionParameter-IbNRc-rP.js +4 -0
  10. package/dist/assets/{ConcurrentExecutionsHeader-D99WmQjD.css → ConcurrentExecutionsHeader-ChCLnjVG.css} +7 -17
  11. package/dist/assets/{ConcurrentExecutionsHeader-D_jkbuah.js → ConcurrentExecutionsHeader-dMskl4He.js} +51 -47
  12. package/dist/assets/CredentialsView-CzforIh7.css +36 -0
  13. package/dist/assets/{CredentialsView-WgZTdwDF.js → CredentialsView-DYmrbOcr.js} +15 -25
  14. package/dist/assets/ErrorView-DZCz_7-d.css +22 -0
  15. package/dist/assets/{ErrorView-CCvyR8gc.js → ErrorView-DpKWfKAY.js} +1 -1
  16. package/dist/assets/{ExecutionsView-DNwpODRj.css → ExecutionsView-CLxQdDnP.css} +16 -43
  17. package/dist/assets/{ExecutionsView-BsIeNcoc.js → ExecutionsView-a2Slm2v9.js} +123 -38
  18. package/dist/assets/FileSaver.min-BiLlhrlQ.js +81 -0
  19. package/dist/assets/{FixedCollectionParameter-DzOGMEdq.css → FixedCollectionParameter-CUxLKPYJ.css} +1 -6
  20. package/dist/assets/{FixedCollectionParameter-DMpNSKjt.js → FixedCollectionParameter-DMiADFki.js} +5 -9
  21. package/dist/assets/{ForgotMyPasswordView-m-NI0pKA.js → ForgotMyPasswordView-RLODqWeW.js} +2 -2
  22. package/dist/assets/{MainHeader-DrUbWzLR.css → MainHeader-Bg4Jr0GW.css} +16 -63
  23. package/dist/assets/{MainHeader-CzdjrO1j.js → MainHeader-CZBWRbIF.js} +20 -33
  24. package/dist/assets/{MainSidebar-DL53w2zU.css → MainSidebar-B_Q71vG8.css} +16 -68
  25. package/dist/assets/{MainSidebar-CWZj9hUz.js → MainSidebar-Cm-l0HUG.js} +86 -71
  26. package/dist/assets/{NodeCreation-BNsKR1XL.js → NodeCreation-Bycww9rf.js} +10 -14
  27. package/dist/assets/{NodeCreation-30KXmZi2.css → NodeCreation-DTNNkgVv.css} +1 -5
  28. package/dist/assets/{NodeCreator-nENM_3bV.js → NodeCreator-BrgHuvb2.js} +54 -90
  29. package/dist/assets/{NodeCreator-CvOLgSO_.css → NodeCreator-BvqI_pdC.css} +21 -91
  30. package/dist/assets/{NodeViewSwitcher-tJDzCGJC.js → NodeViewSwitcher-D5JjSNB2.js} +7425 -1780
  31. package/dist/assets/{NodeViewSwitcher-jLTC590F.css → NodeViewSwitcher-DngiUgY8.css} +323 -950
  32. package/dist/assets/{ProjectCardBadge-Dwm_41ZR.js → ProjectCardBadge-B6a5Tl_X.js} +8 -13
  33. package/dist/assets/ProjectHeader-CDl0NBcF.css +21 -0
  34. package/dist/assets/{ProjectHeader-DTRxu2oO.js → ProjectHeader-CUoGk-wO.js} +61 -44
  35. package/dist/assets/{ProjectSettings-hzCZqVHM.js → ProjectSettings-BSOa51jE.js} +24 -42
  36. package/dist/assets/{ProjectSettings-CChpfrTS.css → ProjectSettings-DZws5IzZ.css} +2 -9
  37. package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-Bv3nXXk5.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-ouQuoTYp.js} +1 -1
  38. package/dist/assets/{ResourcesListLayout-CKArPHiS.js → ResourcesListLayout-BKk7DIWo.js} +24 -30
  39. package/dist/assets/{ResourcesListLayout-I4rYUdFt.css → ResourcesListLayout-NZz6R66g.css} +11 -47
  40. package/dist/assets/{RunDataJson-jFaJ_yC4.js → RunDataJson-D7Whxi5x.js} +13 -13
  41. package/dist/assets/{RunDataJson-Dtc8i0I7.css → RunDataJson-DW_khHj4.css} +0 -1
  42. package/dist/assets/{RunDataJsonActions-zNKrn8z4.css → RunDataJsonActions-CoiM0oFP.css} +0 -1
  43. package/dist/assets/RunDataJsonActions-hLh8-Su6.js +5514 -0
  44. package/dist/assets/{RunDataSearch-BA0wlJtp.css → RunDataSearch-B4q8H9Ex.css} +0 -1
  45. package/dist/assets/{RunDataSearch-C9VyfwRz.js → RunDataSearch-Ds3EGLA6.js} +5 -7
  46. package/dist/assets/{RunDataTable-enskmmU4.css → RunDataTable-BOaG0Pms.css} +2 -10
  47. package/dist/assets/{RunDataTable-CK4Z05pd.js → RunDataTable-atOC6vYW.js} +9 -14
  48. package/dist/assets/{SamlOnboarding-POzPTpcl.js → SamlOnboarding-DuDPZUey.js} +4 -5
  49. package/dist/assets/{SettingsApiView-BOFUFUqU.js → SettingsApiView-CFlbEwnS.js} +1 -1
  50. package/dist/assets/{SettingsApiView-5wBxahqI.css → SettingsApiView-DX3S-5pa.css} +2 -8
  51. package/dist/assets/{SettingsCommunityNodesView-088VPv0r.js → SettingsCommunityNodesView-CJrxi3vi.js} +3 -3
  52. package/dist/assets/{SettingsCommunityNodesView-BTbugFls.css → SettingsCommunityNodesView-kzxtAoLp.css} +10 -42
  53. package/dist/assets/SettingsExternalSecrets-BnXyxlJd.css +29 -0
  54. package/dist/assets/{SettingsExternalSecrets-DlobsnOy.js → SettingsExternalSecrets-BusSlBVI.js} +14 -17
  55. package/dist/assets/SettingsLdapView-BLPKhtjA.js +2423 -0
  56. package/dist/assets/{SettingsLdapView-cRgzivq6.css → SettingsLdapView-BPh_inzE.css} +2 -8
  57. package/dist/assets/{SettingsLogStreamingView-EW9yIYwY.js → SettingsLogStreamingView-DI9OYnte.js} +20 -37
  58. package/dist/assets/SettingsLogStreamingView-Uz298HNW.css +46 -0
  59. package/dist/assets/{SettingsPersonalView-BOQgHIYm.css → SettingsPersonalView-CqzRUitO.css} +3 -13
  60. package/dist/assets/{SettingsPersonalView-DrJJtUL5.js → SettingsPersonalView-CwLPEQe5.js} +7 -10
  61. package/dist/assets/{SettingsSourceControl-COccchDl.js → SettingsSourceControl-BHiwsbh6.js} +1 -1
  62. package/dist/assets/{SettingsSourceControl-aZrwFtXG.css → SettingsSourceControl-C7H8sLJN.css} +5 -21
  63. package/dist/assets/{SettingsSso-BczGJSZo.js → SettingsSso-BUE-Dg9u.js} +10 -11
  64. package/dist/assets/{SettingsSso-DUkYL_--.css → SettingsSso-Be_ejj46.css} +3 -13
  65. package/dist/assets/{SettingsUsageAndPlan-vijI-va0.css → SettingsUsageAndPlan-C3fKPMTY.css} +13 -54
  66. package/dist/assets/{SettingsUsageAndPlan-OepwN_K0.js → SettingsUsageAndPlan-g8SYxLIm.js} +3 -7
  67. package/dist/assets/{SettingsUsersView-D6xH2uOE.js → SettingsUsersView-DsjbsMkp.js} +8 -15
  68. package/dist/assets/{SettingsView-D30Stwpp.js → SettingsView-BZqGq_NA.js} +3 -4
  69. package/dist/assets/{SettingsView-DOWbkj-V.css → SettingsView-o6uNYu0t.css} +1 -5
  70. package/dist/assets/{SetupView-DLhUy2sO.js → SetupView-DKcifLmN.js} +3 -9
  71. package/dist/assets/{SetupWorkflowCredentialsButton-FAOxK4hC.js → SetupWorkflowCredentialsButton-1FX7DWWs.js} +3 -5
  72. package/dist/assets/{SetupWorkflowFromTemplateView-29le4KEi.js → SetupWorkflowFromTemplateView-BI8db6Bn.js} +5 -9
  73. package/dist/assets/SetupWorkflowFromTemplateView-DjBcyMCl.css +26 -0
  74. package/dist/assets/{SigninView-B3r5QMqu.js → SigninView-DRl5Z9dU.js} +4 -5
  75. package/dist/assets/{SigninView-BEBHcgmK.css → SigninView-DzDE1gJb.css} +3 -14
  76. package/dist/assets/{SignoutView-DiRv1jyS.js → SignoutView-CD6CNCd4.js} +1 -1
  77. package/dist/assets/{SignupView-DepIL1mr.js → SignupView-BUIFD8_L.js} +2 -2
  78. package/dist/assets/{TemplateDetails-BG8YmNsP.js → TemplateDetails-BZy8nHAa.js} +1 -1
  79. package/dist/assets/{TemplateDetails-BjsdeJu8.css → TemplateDetails-p3M6A7jr.css} +1 -4
  80. package/dist/assets/{TemplateList-4lx8vpYf.css → TemplateList-BR3bpDTv.css} +13 -52
  81. package/dist/assets/{TemplateList-CEljIT09.js → TemplateList-DdYIfcdc.js} +1 -1
  82. package/dist/assets/{TemplatesCollectionView-C1BUeMtq.css → TemplatesCollectionView-DJVlK4Bb.css} +1 -5
  83. package/dist/assets/{TemplatesCollectionView-C1katHqi.js → TemplatesCollectionView-a9gOg1oh.js} +5 -5
  84. package/dist/assets/{TemplatesSearchView-BiokbeYf.css → TemplatesSearchView-CFrHWGcY.css} +4 -21
  85. package/dist/assets/{TemplatesSearchView-6ugazm6D.js → TemplatesSearchView-C_qp2w-Y.js} +5 -20
  86. package/dist/assets/{TemplatesView-BfnDbKo5.css → TemplatesView-CBNZZ_X1.css} +3 -16
  87. package/dist/assets/{TemplatesView-BnpZqzSI.js → TemplatesView-Srd2qTc6.js} +1 -1
  88. package/dist/assets/{TemplatesWorkflowView-D-rSlrYy.js → TemplatesWorkflowView-CDkCoN9X.js} +35 -39
  89. package/dist/assets/{TemplatesWorkflowView-BN5JjV6M.css → TemplatesWorkflowView-CVC0fbb6.css} +2 -10
  90. package/dist/assets/{TestDefinitionEditView-szspUG0t.css → TestDefinitionEditView-CVRXpJ4c.css} +13 -54
  91. package/dist/assets/{TestDefinitionEditView-Dw2F_7Ku.js → TestDefinitionEditView-CgQpahO7.js} +3 -4
  92. package/dist/assets/{TestDefinitionListView-Cv9ivpVk.js → TestDefinitionListView-BGJr2Okj.js} +4 -4
  93. package/dist/assets/{TestDefinitionListView-BfUssieW.css → TestDefinitionListView-BJVxwUdb.css} +9 -46
  94. package/dist/assets/{VariablesView-meR15bnW.css → VariablesView-BnGnRwcl.css} +3 -13
  95. package/dist/assets/{VariablesView-BrvfrvgE.js → VariablesView-DBlZthPg.js} +28 -38
  96. package/dist/assets/{VirtualSchema-Be-DGXEU.css → VirtualSchema-CIfwZj8N.css} +11 -48
  97. package/dist/assets/VirtualSchema-DkiHWd9N.js +378 -0
  98. package/dist/assets/{WorkerView-DhAgtBED.js → WorkerView--FWlY_KA.js} +14 -23
  99. package/dist/assets/WorkerView-CvXMClDD.css +123 -0
  100. package/dist/assets/{WorkflowActivator-Def_oRg7.js → WorkflowActivator-BbpMhG1U.js} +2 -2
  101. package/dist/assets/{WorkflowActivator-D8FiI2jP.css → WorkflowActivator-DSBGQvK0.css} +3 -9
  102. package/dist/assets/{WorkflowExecutionsInfoAccordion-lODxxxtv.js → WorkflowExecutionsInfoAccordion-DOpZ49kK.js} +1 -1
  103. package/dist/assets/{WorkflowExecutionsInfoAccordion-DfMew6q4.css → WorkflowExecutionsInfoAccordion-f5tIRAwu.css} +2 -14
  104. package/dist/assets/WorkflowExecutionsLandingPage-BodEQ5Bq.css +23 -0
  105. package/dist/assets/{WorkflowExecutionsLandingPage-Bidi-y5V.js → WorkflowExecutionsLandingPage-CAbWLqG8.js} +2 -2
  106. package/dist/assets/{WorkflowExecutionsPreview-DRCpGEbi.css → WorkflowExecutionsPreview-C-e7WZrK.css} +22 -98
  107. package/dist/assets/{WorkflowExecutionsPreview-d2F04pj8.js → WorkflowExecutionsPreview-CfUWIIgy.js} +39 -71
  108. package/dist/assets/{WorkflowExecutionsView-C6EMZ-AQ.css → WorkflowExecutionsView-CFOgmzpK.css} +18 -74
  109. package/dist/assets/{WorkflowExecutionsView-CHr4rzKW.js → WorkflowExecutionsView-DrfZ7QK8.js} +151 -165
  110. package/dist/assets/{WorkflowHistory-C-lUH0fo.css → WorkflowHistory-D0ufvWsH.css} +14 -57
  111. package/dist/assets/{WorkflowHistory-BSijDFcx.js → WorkflowHistory-eqsh1yXn.js} +16 -29
  112. package/dist/assets/{WorkflowOnboardingView-CvuowIe6.js → WorkflowOnboardingView-Kbe8c2_R.js} +22 -5
  113. package/dist/assets/{WorkflowPreview-CYf78I6t.js → WorkflowPreview-DKTyMYfO.js} +5 -11
  114. package/dist/assets/{WorkflowPreview-Bpiv2_RO.css → WorkflowPreview-DuLM6rtd.css} +4 -15
  115. package/dist/assets/{WorkflowsView-Bc1WW7-8.js → WorkflowsView-ClrcrpKc.js} +110 -120
  116. package/dist/assets/WorkflowsView-D5fBzfD4.css +65 -0
  117. package/dist/assets/{index-D50gpyk6.css → index-Bo70cRA3.css} +350 -1351
  118. package/dist/assets/{index-D57HUAs6.js → index-fCEqBD8K.js} +45117 -40863
  119. package/dist/assets/polyfills-BN5TIqPj.js +5985 -0
  120. package/dist/assets/{pushConnection.store-BrFt2YWH.js → pushConnection.store-Kmly9nV5.js} +2 -3
  121. package/dist/assets/{templateActions-BrLvM4wQ.js → templateActions-xeWyRgrU.js} +1 -1
  122. package/dist/assets/{testDefinition.store.ee-DJ6gErZh.js → testDefinition.store.ee-C9BPbACc.js} +1 -1
  123. package/dist/assets/{useBugReporting-v6zXxGxR.js → useBugReporting-CbgIVUCL.js} +1 -1
  124. package/dist/assets/{useExecutionDebugging-Dhwr-oW3.js → useExecutionDebugging-Cuf88DQE.js} +3 -6
  125. package/dist/assets/{useExecutionHelpers-Ovym9OwA.js → useExecutionHelpers-BIxUwlsh.js} +3 -4
  126. package/dist/assets/{useGlobalEntityCreation-D_NS7_je.js → useGlobalEntityCreation-DGVSN-Im.js} +29 -14
  127. package/dist/assets/{useNodeViewVersionSwitcher-ESq0kPP5.js → useNodeViewVersionSwitcher-Eg-dOWbq.js} +1 -1
  128. package/dist/assets/{usePushConnection-DCkWEVa2.js → usePushConnection-D-iAKJiL.js} +36 -22
  129. package/dist/assets/{useRunWorkflow-B_S0x25z.css → useRunWorkflow-BDl-2MsN.css} +24 -106
  130. package/dist/assets/{useRunWorkflow-g1Tw1vWo.js → useRunWorkflow-BXE6bWp2.js} +1547 -1581
  131. package/dist/assets/{useWorkflowActivate-DibPO-sA.js → useWorkflowActivate-D8cU5eJ_.js} +1 -1
  132. package/dist/index.html +4 -2
  133. package/package.json +1 -1
  134. package/tsconfig.json +2 -1
  135. package/vite.config.mts +11 -0
  136. package/dist/assets/CollectionParameter-D7-YFFFP.js +0 -4
  137. package/dist/assets/CredentialsView-ChjCCSbV.css +0 -56
  138. package/dist/assets/ErrorView-Dzof6SY8.css +0 -35
  139. package/dist/assets/FileSaver.min-BsJSdQo9.js +0 -74
  140. package/dist/assets/ProjectHeader-CTK_rV3h.css +0 -28
  141. package/dist/assets/RunDataJsonActions-CUYH2C-z.js +0 -5509
  142. package/dist/assets/SettingsExternalSecrets-BD5PuMIG.css +0 -50
  143. package/dist/assets/SettingsLdapView-CDm8JWNK.js +0 -2417
  144. package/dist/assets/SettingsLogStreamingView-CWIuI89G.css +0 -75
  145. package/dist/assets/SetupWorkflowFromTemplateView-CvsDVBkh.css +0 -44
  146. package/dist/assets/VirtualSchema-DFybirEh.js +0 -1863
  147. package/dist/assets/WorkerView-C_d54L0W.css +0 -181
  148. package/dist/assets/WorkflowExecutionsLandingPage-B1zCnzh_.css +0 -39
  149. package/dist/assets/WorkflowsView-C1eCTa1K.css +0 -82
  150. /package/dist/assets/{ProjectCardBadge-DPUG4BoB.css → ProjectCardBadge-DQvW5T7s.css} +0 -0
  151. /package/dist/assets/{SettingsUsersView-Ba9S2o-I.css → SettingsUsersView-C13eCMjh.css} +0 -0
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, q as computed, e2 as ProjectTypes, jo as splitName, m as resolveComponent, cI as resolveDirective, c as openBlock, e as createBlock, w as withCtx, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass, f as createCommentVNode, ay as withDirectives, h as createElementBlock, g as useI18n, _ as _export_sfc } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, q as computed, c4 as ProjectTypes, ib as splitName, m as resolveComponent, di as resolveDirective, c as openBlock, e as createBlock, w as withCtx, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass, f as createCommentVNode, ay as withDirectives, h as createElementBlock, g as useI18n, _ as _export_sfc } from "./index-fCEqBD8K.js";
2
2
  const _hoisted_1 = { class: "mr-xs" };
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "ProjectCardBadge",
@@ -12,19 +12,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  const props = __props;
13
13
  const i18n = useI18n();
14
14
  const projectState = computed(() => {
15
- var _a, _b, _c, _d, _e;
16
15
  if (props.resource.homeProject && props.personalProject && props.resource.homeProject.id === props.personalProject.id || !props.resource.homeProject) {
17
- if ((_a = props.resource.sharedWithProjects) == null ? void 0 : _a.length) {
16
+ if (props.resource.sharedWithProjects?.length) {
18
17
  return "shared-owned";
19
18
  }
20
19
  return "owned";
21
- } else if (((_b = props.resource.homeProject) == null ? void 0 : _b.type) !== ProjectTypes.Team) {
22
- if ((_c = props.resource.sharedWithProjects) == null ? void 0 : _c.length) {
20
+ } else if (props.resource.homeProject?.type !== ProjectTypes.Team) {
21
+ if (props.resource.sharedWithProjects?.length) {
23
22
  return "shared-personal";
24
23
  }
25
24
  return "personal";
26
- } else if (((_d = props.resource.homeProject) == null ? void 0 : _d.type) === ProjectTypes.Team) {
27
- if ((_e = props.resource.sharedWithProjects) == null ? void 0 : _e.length) {
25
+ } else if (props.resource.homeProject?.type === ProjectTypes.Team) {
26
+ if (props.resource.sharedWithProjects?.length) {
28
27
  return "shared-team";
29
28
  }
30
29
  return "team";
@@ -32,17 +31,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
31
  return "unknown";
33
32
  });
34
33
  const numberOfMembersInHomeTeamProject = computed(
35
- () => {
36
- var _a;
37
- return ((_a = props.resource.sharedWithProjects) == null ? void 0 : _a.length) ?? 0;
38
- }
34
+ () => props.resource.sharedWithProjects?.length ?? 0
39
35
  );
40
36
  const badgeText = computed(() => {
41
- var _a;
42
37
  if (projectState.value === "owned" || projectState.value === "shared-owned") {
43
38
  return i18n.baseText("projects.menu.personal");
44
39
  } else {
45
- const { name, email } = splitName(((_a = props.resource.homeProject) == null ? void 0 : _a.name) ?? "");
40
+ const { name, email } = splitName(props.resource.homeProject?.name ?? "");
46
41
  return name ?? email ?? "";
47
42
  }
48
43
  });
@@ -0,0 +1,21 @@
1
+ ._projectHeader_7m1jl_1 {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 8px;
5
+ padding-bottom: var(--spacing-m);
6
+ min-height: 64px;
7
+ }
8
+ ._headerActions_7m1jl_9 {
9
+ margin-left: auto;
10
+ }
11
+ ._icon_7m1jl_13 {
12
+ border: 1px solid var(--color-foreground-light);
13
+ padding: 6px;
14
+ border-radius: var(--border-radius-base);
15
+ }
16
+ ._actions_7m1jl_19 {
17
+ display: flex;
18
+ justify-content: space-between;
19
+ align-items: flex-end;
20
+ padding: var(--spacing-2xs) 0 var(--spacing-l);
21
+ }
@@ -1,5 +1,5 @@
1
- import { d as defineComponent, U as useRoute, r as ref, q as computed, H as watch, c as openBlock, e as createBlock, m as resolveComponent, V as VIEWS, g as useI18n, a1 as useProjectsStore, E as onClickOutside, h as createElementBlock, j as createBaseVNode, n as normalizeClass, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, s as renderSlot, l as unref, f as createCommentVNode, aN as N8nNavigationDropdown, e2 as ProjectTypes, am as getResourcePermissions, _ as _export_sfc } from "./index-D57HUAs6.js";
2
- import { u as useGlobalEntityCreation } from "./useGlobalEntityCreation-D_NS7_je.js";
1
+ import { d as defineComponent, U as useRoute, r as ref, q as computed, H as watch, c as openBlock, e as createBlock, m as resolveComponent, V as VIEWS, g as useI18n, a1 as useProjectsStore, E as onClickOutside, h as createElementBlock, j as createBaseVNode, n as normalizeClass, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, s as renderSlot, l as unref, f as createCommentVNode, c_ as N8nButton, cP as N8nTooltip, cO as _sfc_main$2, aN as N8nNavigationDropdown, c4 as ProjectTypes, am as getResourcePermissions, _ as _export_sfc } from "./index-fCEqBD8K.js";
2
+ import { u as useGlobalEntityCreation } from "./useGlobalEntityCreation-DGVSN-Im.js";
3
3
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4
4
  __name: "ProjectTabs",
5
5
  props: {
@@ -11,8 +11,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
11
11
  const route = useRoute();
12
12
  const selectedTab = ref("");
13
13
  const options = computed(() => {
14
- var _a;
15
- const projectId = (_a = route == null ? void 0 : route.params) == null ? void 0 : _a.projectId;
14
+ const projectId = route?.params?.projectId;
16
15
  const to = projectId ? {
17
16
  workflows: {
18
17
  name: VIEWS.PROJECTS_WORKFLOWS,
@@ -64,9 +63,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
64
63
  return tabs;
65
64
  });
66
65
  watch(
67
- () => route == null ? void 0 : route.name,
66
+ () => route?.name,
68
67
  () => {
69
- selectedTab.value = route == null ? void 0 : route.name;
68
+ selectedTab.value = route?.name;
70
69
  },
71
70
  { immediate: true }
72
71
  );
@@ -90,10 +89,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
89
  const projectsStore = useProjectsStore();
91
90
  const createBtn = ref();
92
91
  const headerIcon = computed(() => {
93
- var _a, _b;
94
- if (((_a = projectsStore.currentProject) == null ? void 0 : _a.type) === ProjectTypes.Personal) {
92
+ if (projectsStore.currentProject?.type === ProjectTypes.Personal) {
95
93
  return "user";
96
- } else if ((_b = projectsStore.currentProject) == null ? void 0 : _b.name) {
94
+ } else if (projectsStore.currentProject?.name) {
97
95
  return "layer-group";
98
96
  } else {
99
97
  return "home";
@@ -109,20 +107,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
109
107
  }
110
108
  });
111
109
  const projectPermissions = computed(
112
- () => {
113
- var _a;
114
- return getResourcePermissions((_a = projectsStore.currentProject) == null ? void 0 : _a.scopes).project;
115
- }
110
+ () => getResourcePermissions(projectsStore.currentProject?.scopes).project
116
111
  );
117
112
  const showSettings = computed(
118
- () => {
119
- var _a, _b;
120
- return !!((_a = route == null ? void 0 : route.params) == null ? void 0 : _a.projectId) && !!projectPermissions.value.update && ((_b = projectsStore.currentProject) == null ? void 0 : _b.type) === ProjectTypes.Team;
121
- }
122
- );
123
- const { menu, handleSelect } = useGlobalEntityCreation(
124
- computed(() => !Boolean(projectsStore.currentProject))
113
+ () => !!route?.params?.projectId && !!projectPermissions.value.update && projectsStore.currentProject?.type === ProjectTypes.Team
125
114
  );
115
+ const { menu, handleSelect, createProjectAppendSlotName, projectsLimitReachedMessage } = useGlobalEntityCreation(computed(() => !Boolean(projectsStore.currentProject)));
126
116
  const createLabel = computed(() => {
127
117
  if (!projectsStore.currentProject) {
128
118
  return i18n.baseText("projects.create");
@@ -133,14 +123,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
133
123
  }
134
124
  });
135
125
  onClickOutside(createBtn, () => {
136
- var _a;
137
- (_a = createBtn.value) == null ? void 0 : _a.close();
126
+ createBtn.value?.close();
138
127
  });
139
128
  return (_ctx, _cache) => {
140
129
  const _component_N8nIcon = resolveComponent("N8nIcon");
141
130
  const _component_N8nHeading = resolveComponent("N8nHeading");
142
131
  const _component_N8nText = resolveComponent("N8nText");
143
- const _component_N8nIconButton = resolveComponent("N8nIconButton");
144
132
  return openBlock(), createElementBlock("div", null, [
145
133
  createBaseVNode("div", {
146
134
  class: normalizeClass([_ctx.$style.projectHeader])
@@ -172,38 +160,67 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
172
160
  ]),
173
161
  _: 3
174
162
  })
175
- ])
163
+ ]),
164
+ unref(route).name !== unref(VIEWS).PROJECT_SETTINGS ? (openBlock(), createElementBlock("div", {
165
+ key: 0,
166
+ class: normalizeClass([_ctx.$style.headerActions])
167
+ }, [
168
+ createVNode(unref(N8nNavigationDropdown), {
169
+ ref_key: "createBtn",
170
+ ref: createBtn,
171
+ "data-test-id": "resource-add",
172
+ menu: unref(menu),
173
+ onSelect: unref(handleSelect)
174
+ }, {
175
+ [unref(createProjectAppendSlotName)]: withCtx(({ item }) => [
176
+ item.disabled ? (openBlock(), createBlock(unref(N8nTooltip), {
177
+ key: 0,
178
+ placement: "right",
179
+ content: unref(projectsLimitReachedMessage)
180
+ }, {
181
+ default: withCtx(() => [
182
+ createVNode(unref(N8nButton), {
183
+ size: "mini",
184
+ style: { "margin-left": "auto" },
185
+ type: "tertiary",
186
+ onClick: ($event) => unref(handleSelect)(item.id)
187
+ }, {
188
+ default: withCtx(() => [
189
+ createTextVNode(toDisplayString(unref(i18n).baseText("generic.upgrade")), 1)
190
+ ]),
191
+ _: 2
192
+ }, 1032, ["onClick"])
193
+ ]),
194
+ _: 2
195
+ }, 1032, ["content"])) : createCommentVNode("", true)
196
+ ]),
197
+ default: withCtx(() => [
198
+ createVNode(unref(_sfc_main$2), {
199
+ label: createLabel.value,
200
+ icon: "plus",
201
+ style: { "width": "auto" }
202
+ }, null, 8, ["label"])
203
+ ]),
204
+ _: 2
205
+ }, 1032, ["menu", "onSelect"])
206
+ ], 2)) : createCommentVNode("", true)
176
207
  ], 2),
177
208
  createBaseVNode("div", {
178
209
  class: normalizeClass(_ctx.$style.actions)
179
210
  }, [
180
- createVNode(_sfc_main$1, { "show-settings": showSettings.value }, null, 8, ["show-settings"]),
181
- createVNode(unref(N8nNavigationDropdown), {
182
- ref_key: "createBtn",
183
- ref: createBtn,
184
- "data-test-id": "resource-add",
185
- menu: unref(menu),
186
- onSelect: unref(handleSelect)
187
- }, {
188
- default: withCtx(() => [
189
- createVNode(_component_N8nIconButton, {
190
- label: createLabel.value,
191
- icon: "plus",
192
- style: { "width": "auto" }
193
- }, null, 8, ["label"])
194
- ]),
195
- _: 1
196
- }, 8, ["menu", "onSelect"])
211
+ createVNode(_sfc_main$1, { "show-settings": showSettings.value }, null, 8, ["show-settings"])
197
212
  ], 2)
198
213
  ]);
199
214
  };
200
215
  }
201
216
  });
202
- const projectHeader = "_projectHeader_1ehip_1";
203
- const icon = "_icon_1ehip_9";
204
- const actions = "_actions_1ehip_15";
217
+ const projectHeader = "_projectHeader_7m1jl_1";
218
+ const headerActions = "_headerActions_7m1jl_9";
219
+ const icon = "_icon_7m1jl_13";
220
+ const actions = "_actions_7m1jl_19";
205
221
  const style0 = {
206
222
  projectHeader,
223
+ headerActions,
207
224
  icon,
208
225
  actions
209
226
  };
@@ -1,6 +1,6 @@
1
- import { d as defineComponent, cp as mergeModels, d3 as useModel, r as ref, q as computed, c as openBlock, e as createBlock, w as withCtx, i as createVNode, k as createTextVNode, t as toDisplayString, l as unref, I as withModifiers, j as createBaseVNode, h as createElementBlock, j7 as ProjectSharing, n as normalizeClass, f as createCommentVNode, g as useI18n, m as resolveComponent, _ as _export_sfc, a5 as usePageRedirectionHelper, u as useUsersStore, a1 as useProjectsStore, jt as useRolesStore, aH as useCloudPlanStore, a as useToast, b as useRouter, a3 as useDocumentTitle, H as watch, ax as onBeforeMount, o as onMounted, ju as N8nFormInput, F as Fragment, A as renderList, V as VIEWS, e5 as deepCopy, y as nextTick, ak as useTelemetry } from "./index-D57HUAs6.js";
2
- import { P as ProjectHeader } from "./ProjectHeader-DTRxu2oO.js";
3
- import "./useGlobalEntityCreation-D_NS7_je.js";
1
+ import { d as defineComponent, ih as mergeModels, ii as useModel, r as ref, q as computed, c as openBlock, e as createBlock, w as withCtx, i as createVNode, k as createTextVNode, t as toDisplayString, l as unref, I as withModifiers, j as createBaseVNode, h as createElementBlock, hT as ProjectSharing, n as normalizeClass, f as createCommentVNode, g as useI18n, m as resolveComponent, _ as _export_sfc, a5 as usePageRedirectionHelper, u as useUsersStore, a1 as useProjectsStore, ij as useRolesStore, aH as useCloudPlanStore, a as useToast, b as useRouter, a3 as useDocumentTitle, H as watch, ax as onBeforeMount, o as onMounted, ik as N8nFormInput, F as Fragment, A as renderList, V as VIEWS, c7 as deepCopy, y as nextTick, ak as useTelemetry } from "./index-fCEqBD8K.js";
2
+ import { P as ProjectHeader } from "./ProjectHeader-CUoGk-wO.js";
3
+ import "./useGlobalEntityCreation-DGVSN-Im.js";
4
4
  const _hoisted_1$2 = { class: "pt-l" };
5
5
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6
6
  __name: "ProjectDeleteDialog",
@@ -30,17 +30,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30
30
  return false;
31
31
  });
32
32
  const onDelete = () => {
33
- var _a;
34
33
  if (!isValid.value) {
35
34
  return;
36
35
  }
37
36
  if (operation2.value === "wipe") {
38
37
  selectedProject.value = null;
39
38
  }
40
- emit("confirmDelete", (_a = selectedProject.value) == null ? void 0 : _a.id);
39
+ emit("confirmDelete", selectedProject.value?.id);
41
40
  };
42
41
  return (_ctx, _cache) => {
43
- var _a;
44
42
  const _component_n8n_text = resolveComponent("n8n-text");
45
43
  const _component_el_radio = resolveComponent("el-radio");
46
44
  const _component_n8n_input = resolveComponent("n8n-input");
@@ -51,7 +49,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
51
49
  modelValue: visible.value,
52
50
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event),
53
51
  title: unref(locale).baseText("projects.settings.delete.title", {
54
- interpolate: { projectName: ((_a = props.currentProject) == null ? void 0 : _a.name) ?? "" }
52
+ interpolate: { projectName: props.currentProject?.name ?? "" }
55
53
  }),
56
54
  width: "500"
57
55
  }, {
@@ -284,10 +282,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
284
282
  name: projectRoleTranslations.value[role.role]
285
283
  }))
286
284
  );
287
- const firstLicensedRole = computed(() => {
288
- var _a;
289
- return (_a = projectRoles.value.find((role) => role.licensed)) == null ? void 0 : _a.role;
290
- });
285
+ const firstLicensedRole = computed(() => projectRoles.value.find((role) => role.licensed)?.role);
291
286
  const onAddMember = (userId) => {
292
287
  isDirty.value = true;
293
288
  const user = usersStore.usersById[userId];
@@ -312,9 +307,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
312
307
  isDirty.value = true;
313
308
  };
314
309
  const onCancel = () => {
315
- var _a, _b;
316
- formData.value.relations = ((_a = projectsStore.currentProject) == null ? void 0 : _a.relations) ? deepCopy(projectsStore.currentProject.relations) : [];
317
- formData.value.name = ((_b = projectsStore.currentProject) == null ? void 0 : _b.name) ?? "";
310
+ formData.value.relations = projectsStore.currentProject?.relations ? deepCopy(projectsStore.currentProject.relations) : [];
311
+ formData.value.name = projectsStore.currentProject?.name ?? "";
318
312
  isDirty.value = false;
319
313
  };
320
314
  const makeFormDataDiff = () => {
@@ -327,35 +321,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
327
321
  }
328
322
  if (formData.value.relations.length !== projectsStore.currentProject.relations.length) {
329
323
  diff.memberAdded = formData.value.relations.filter(
330
- (r) => {
331
- var _a;
332
- return !((_a = projectsStore.currentProject) == null ? void 0 : _a.relations.find((cr) => cr.id === r.id));
333
- }
324
+ (r) => !projectsStore.currentProject?.relations.find((cr) => cr.id === r.id)
334
325
  );
335
326
  diff.memberRemoved = projectsStore.currentProject.relations.filter(
336
327
  (cr) => !formData.value.relations.find((r) => r.id === cr.id)
337
328
  );
338
329
  }
339
330
  diff.role = formData.value.relations.filter((r) => {
340
- var _a, _b;
341
- const currentRelation = (_a = projectsStore.currentProject) == null ? void 0 : _a.relations.find((cr) => cr.id === r.id);
342
- return (currentRelation == null ? void 0 : currentRelation.role) !== r.role && !((_b = diff.memberAdded) == null ? void 0 : _b.find((ar) => ar.id === r.id));
331
+ const currentRelation = projectsStore.currentProject?.relations.find((cr) => cr.id === r.id);
332
+ return currentRelation?.role !== r.role && !diff.memberAdded?.find((ar) => ar.id === r.id);
343
333
  });
344
334
  return diff;
345
335
  };
346
336
  const sendTelemetry = (diff) => {
347
- var _a;
348
337
  if (diff.name) {
349
338
  telemetry.track("User changed project name", {
350
- project_id: (_a = projectsStore.currentProject) == null ? void 0 : _a.id,
339
+ project_id: projectsStore.currentProject?.id,
351
340
  name: diff.name
352
341
  });
353
342
  }
354
343
  if (diff.memberAdded) {
355
344
  diff.memberAdded.forEach((r) => {
356
- var _a2;
357
345
  telemetry.track("User added member to project", {
358
- project_id: (_a2 = projectsStore.currentProject) == null ? void 0 : _a2.id,
346
+ project_id: projectsStore.currentProject?.id,
359
347
  target_user_id: r.id,
360
348
  role: r.role
361
349
  });
@@ -363,18 +351,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
363
351
  }
364
352
  if (diff.memberRemoved) {
365
353
  diff.memberRemoved.forEach((r) => {
366
- var _a2;
367
354
  telemetry.track("User removed member from project", {
368
- project_id: (_a2 = projectsStore.currentProject) == null ? void 0 : _a2.id,
355
+ project_id: projectsStore.currentProject?.id,
369
356
  target_user_id: r.id
370
357
  });
371
358
  });
372
359
  }
373
360
  if (diff.role) {
374
361
  diff.role.forEach((r) => {
375
- var _a2;
376
362
  telemetry.track("User changed member role on project", {
377
- project_id: (_a2 = projectsStore.currentProject) == null ? void 0 : _a2.id,
363
+ project_id: projectsStore.currentProject?.id,
378
364
  target_user_id: r.id,
379
365
  role: r.role
380
366
  });
@@ -411,10 +397,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
411
397
  dialogVisible.value = true;
412
398
  };
413
399
  const onConfirmDelete = async (transferId) => {
414
- var _a;
415
400
  try {
416
401
  if (projectsStore.currentProject) {
417
- const projectName = ((_a = projectsStore.currentProject) == null ? void 0 : _a.name) ?? "";
402
+ const projectName = projectsStore.currentProject?.name ?? "";
418
403
  await projectsStore.deleteProject(projectsStore.currentProject.id, transferId);
419
404
  await router.push({ name: VIEWS.HOMEPAGE });
420
405
  toast.showMessage({
@@ -430,18 +415,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
430
415
  }
431
416
  };
432
417
  const selectProjectNameIfMatchesDefault = () => {
433
- var _a, _b, _c, _d;
434
418
  if (formData.value.name === i18n.baseText("projects.settings.newProjectName")) {
435
- (_b = (_a = nameInput.value) == null ? void 0 : _a.inputRef) == null ? void 0 : _b.focus();
436
- (_d = (_c = nameInput.value) == null ? void 0 : _c.inputRef) == null ? void 0 : _d.select();
419
+ nameInput.value?.inputRef?.focus();
420
+ nameInput.value?.inputRef?.select();
437
421
  }
438
422
  };
439
423
  watch(
440
424
  () => projectsStore.currentProject,
441
425
  async () => {
442
- var _a, _b;
443
- formData.value.name = ((_a = projectsStore.currentProject) == null ? void 0 : _a.name) ?? "";
444
- formData.value.relations = ((_b = projectsStore.currentProject) == null ? void 0 : _b.relations) ? deepCopy(projectsStore.currentProject.relations) : [];
426
+ formData.value.name = projectsStore.currentProject?.name ?? "";
427
+ formData.value.relations = projectsStore.currentProject?.relations ? deepCopy(projectsStore.currentProject.relations) : [];
445
428
  await nextTick();
446
429
  selectProjectNameIfMatchesDefault();
447
430
  },
@@ -455,7 +438,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
455
438
  selectProjectNameIfMatchesDefault();
456
439
  });
457
440
  return (_ctx, _cache) => {
458
- var _a, _b, _c;
459
441
  const _component_N8nIcon = resolveComponent("N8nIcon");
460
442
  const _component_N8nUserSelect = resolveComponent("N8nUserSelect");
461
443
  const _component_N8nOption = resolveComponent("N8nOption");
@@ -497,7 +479,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
497
479
  class: "mb-s",
498
480
  size: "large",
499
481
  users: usersList.value,
500
- "current-user-id": (_a = unref(usersStore).currentUser) == null ? void 0 : _a.id,
482
+ "current-user-id": unref(usersStore).currentUser?.id,
501
483
  placeholder: unref(i18n).baseText("workflows.shareModal.select.placeholder"),
502
484
  "data-test-id": "project-members-select",
503
485
  "onUpdate:modelValue": onAddMember
@@ -510,7 +492,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
510
492
  createVNode(_component_N8nUsersList, {
511
493
  actions: [],
512
494
  users: formData.value.relations,
513
- "current-user-id": (_b = unref(usersStore).currentUser) == null ? void 0 : _b.id,
495
+ "current-user-id": unref(usersStore).currentUser?.id,
514
496
  "delete-label": unref(i18n).baseText("workflows.shareModal.list.delete")
515
497
  }, {
516
498
  actions: withCtx(({ user }) => [
@@ -519,7 +501,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
519
501
  }, [
520
502
  createVNode(_component_N8nSelect, {
521
503
  class: "mr-2xs",
522
- "model-value": (user == null ? void 0 : user.role) || projectRoles.value[0].role,
504
+ "model-value": user?.role || projectRoles.value[0].role,
523
505
  size: "small",
524
506
  "data-test-id": "projects-settings-user-role-select",
525
507
  "onUpdate:modelValue": ($event) => onRoleAction(user, $event)
@@ -619,7 +601,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
619
601
  modelValue: upgradeDialogVisible.value,
620
602
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => upgradeDialogVisible.value = $event),
621
603
  limit: unref(projectsStore).teamProjectsLimit,
622
- "plan-name": (_c = unref(cloudPlanStore).currentPlanData) == null ? void 0 : _c.displayName
604
+ "plan-name": unref(cloudPlanStore).currentPlanData?.displayName
623
605
  }, null, 8, ["modelValue", "limit", "plan-name"])
624
606
  ], 2);
625
607
  };
@@ -4,7 +4,6 @@
4
4
  display: grid;
5
5
  width: 100%;
6
6
  justify-items: center;
7
- grid-auto-rows: -webkit-max-content;
8
7
  grid-auto-rows: max-content;
9
8
  }
10
9
  ._projectSettings_1pak5_1 form {
@@ -29,13 +28,7 @@
29
28
  cursor: pointer;
30
29
  }
31
30
  ._buttons_1pak5_31 {
32
- display: -webkit-box;
33
- display: -ms-flexbox;
34
31
  display: flex;
35
- -webkit-box-pack: end;
36
- -ms-flex-pack: end;
37
- justify-content: flex-end;
38
- -webkit-box-align: center;
39
- -ms-flex-align: center;
40
- align-items: center;
32
+ justify-content: flex-end;
33
+ align-items: center;
41
34
  }
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, Z as useRootStore, q as computed, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, ay as withDirectives, l as unref, j as createBaseVNode, k as createTextVNode, t as toDisplayString, s as renderSlot, g as useI18n, m as resolveComponent, cI as resolveDirective } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, Z as useRootStore, q as computed, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, ay as withDirectives, l as unref, j as createBaseVNode, k as createTextVNode, t as toDisplayString, s as renderSlot, g as useI18n, m as resolveComponent, di as resolveDirective } from "./index-fCEqBD8K.js";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  class: "push-connection-lost primary-color"
@@ -1,4 +1,4 @@
1
- import { _ as _export_sfc, c as openBlock, h as createElementBlock, s as renderSlot, j as createBaseVNode, n as normalizeClass, d as defineComponent, f as createCommentVNode, r as ref, a1 as useProjectsStore, q as computed, H as watch, ax as onBeforeMount, e as createBlock, w as withCtx, i as createVNode, ay as withDirectives, az as vShow, k as createTextVNode, t as toDisplayString, l as unref, a8 as EnterpriseEditionFeature, j7 as ProjectSharing, g as useI18n, m as resolveComponent, U as useRoute, J as useDebounce, u as useUsersStore, o as onMounted, y as nextTick, aV as normalizeProps, aW as guardReactiveProps, F as Fragment, A as renderList, ak as useTelemetry } from "./index-D57HUAs6.js";
1
+ import { _ as _export_sfc, c as openBlock, h as createElementBlock, s as renderSlot, j as createBaseVNode, n as normalizeClass, d as defineComponent, f as createCommentVNode, r as ref, a1 as useProjectsStore, q as computed, H as watch, ax as onBeforeMount, e as createBlock, w as withCtx, i as createVNode, ay as withDirectives, az as vShow, k as createTextVNode, t as toDisplayString, l as unref, a8 as EnterpriseEditionFeature, hT as ProjectSharing, g as useI18n, m as resolveComponent, U as useRoute, J as useDebounce, u as useUsersStore, o as onMounted, y as nextTick, aV as normalizeProps, aW as guardReactiveProps, F as Fragment, A as renderList, ak as useTelemetry } from "./index-fCEqBD8K.js";
2
2
  const wrapper$1 = "_wrapper_a9xcf_1";
3
3
  const content = "_content_a9xcf_12";
4
4
  const style0$3 = {
@@ -413,10 +413,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
413
413
  }
414
414
  );
415
415
  watch(
416
- () => {
417
- var _a;
418
- return (_a = route == null ? void 0 : route.params) == null ? void 0 : _a.projectId;
419
- },
416
+ () => route?.params?.projectId,
420
417
  () => {
421
418
  resetFilters();
422
419
  }
@@ -453,31 +450,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
453
450
  })
454
451
  ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
455
452
  _ctx.resources.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [
456
- renderSlot(_ctx.$slots, "empty", {}, () => {
457
- var _a, _b;
458
- return [
459
- createVNode(_component_n8n_action_box, {
460
- "data-test-id": "empty-resources-list",
461
- emoji: "👋",
462
- heading: unref(i18n).baseText(
463
- ((_a = unref(usersStore).currentUser) == null ? void 0 : _a.firstName) ? `${_ctx.resourceKey}.empty.heading` : `${_ctx.resourceKey}.empty.heading.userNotSetup`,
464
- {
465
- interpolate: { name: ((_b = unref(usersStore).currentUser) == null ? void 0 : _b.firstName) ?? "" }
466
- }
467
- ),
468
- description: unref(i18n).baseText(`${_ctx.resourceKey}.empty.description`),
469
- "button-text": unref(i18n).baseText(`${_ctx.resourceKey}.empty.button`),
470
- "button-type": "secondary",
471
- "button-disabled": _ctx.disabled,
472
- "onClick:button": onAddButtonClick
473
- }, {
474
- disabledButtonTooltip: withCtx(() => [
475
- createTextVNode(toDisplayString(unref(i18n).baseText(`${_ctx.resourceKey}.empty.button.disabled.tooltip`)), 1)
476
- ]),
477
- _: 1
478
- }, 8, ["heading", "description", "button-text", "button-disabled"])
479
- ];
480
- }, true)
453
+ renderSlot(_ctx.$slots, "empty", {}, () => [
454
+ createVNode(_component_n8n_action_box, {
455
+ "data-test-id": "empty-resources-list",
456
+ emoji: "👋",
457
+ heading: unref(i18n).baseText(
458
+ unref(usersStore).currentUser?.firstName ? `${_ctx.resourceKey}.empty.heading` : `${_ctx.resourceKey}.empty.heading.userNotSetup`,
459
+ {
460
+ interpolate: { name: unref(usersStore).currentUser?.firstName ?? "" }
461
+ }
462
+ ),
463
+ description: unref(i18n).baseText(`${_ctx.resourceKey}.empty.description`),
464
+ "button-text": unref(i18n).baseText(`${_ctx.resourceKey}.empty.button`),
465
+ "button-type": "secondary",
466
+ "button-disabled": _ctx.disabled,
467
+ "onClick:button": onAddButtonClick
468
+ }, {
469
+ disabledButtonTooltip: withCtx(() => [
470
+ createTextVNode(toDisplayString(unref(i18n).baseText(`${_ctx.resourceKey}.empty.button.disabled.tooltip`)), 1)
471
+ ]),
472
+ _: 1
473
+ }, 8, ["heading", "description", "button-text", "button-disabled"])
474
+ ], true)
481
475
  ])) : (openBlock(), createBlock(PageViewLayoutList, {
482
476
  key: 1,
483
477
  overflow: _ctx.type !== "list"
@@ -1,18 +1,11 @@
1
1
  ._wrapper_a9xcf_1 {
2
- display: -webkit-box;
3
- display: -ms-flexbox;
4
2
  display: flex;
5
- -webkit-box-orient: vertical;
6
- -webkit-box-direction: normal;
7
- -ms-flex-direction: column;
8
- flex-direction: column;
3
+ flex-direction: column;
9
4
  height: 100%;
10
5
  width: 100%;
11
6
  max-width: var(--content-container-width);
12
- -webkit-box-sizing: border-box;
13
- box-sizing: border-box;
14
- -ms-flex-line-pack: start;
15
- align-content: start;
7
+ box-sizing: border-box;
8
+ align-content: start;
16
9
  padding: var(--spacing-l) var(--spacing-2xl) 0;
17
10
  }
18
11
  ._content_a9xcf_12 {
@@ -35,47 +28,27 @@
35
28
  height: 100%;
36
29
  }._filter-button_i7gly_1 {
37
30
  height: 40px;
38
- -webkit-box-align: center;
39
- -ms-flex-align: center;
40
- align-items: center;
31
+ align-items: center;
41
32
  }
42
33
  ._filters-dropdown_i7gly_6 {
43
34
  width: 280px;
44
35
  }
45
36
  ._filters-dropdown-footer_i7gly_10 {
46
- display: -webkit-box;
47
- display: -ms-flexbox;
48
37
  display: flex;
49
- -webkit-box-pack: justify;
50
- -ms-flex-pack: justify;
51
- justify-content: space-between;
52
- -webkit-box-align: center;
53
- -ms-flex-align: center;
54
- align-items: center;
38
+ justify-content: space-between;
39
+ align-items: center;
55
40
  }._filters-row_eysnt_1 {
56
- display: -webkit-box;
57
- display: -ms-flexbox;
58
41
  display: flex;
59
- -webkit-box-orient: horizontal;
60
- -webkit-box-direction: normal;
61
- -ms-flex-direction: row;
62
- flex-direction: row;
63
- -webkit-box-align: center;
64
- -ms-flex-align: center;
65
- align-items: center;
66
- -webkit-box-pack: justify;
67
- -ms-flex-pack: justify;
68
- justify-content: space-between;
42
+ flex-direction: row;
43
+ align-items: center;
44
+ justify-content: space-between;
69
45
  }
70
46
  ._filters_eysnt_1 {
71
47
  display: grid;
72
48
  grid-auto-flow: column;
73
- grid-auto-columns: -webkit-max-content;
74
49
  grid-auto-columns: max-content;
75
50
  gap: var(--spacing-2xs);
76
- -webkit-box-align: center;
77
- -ms-flex-align: center;
78
- align-items: center;
51
+ align-items: center;
79
52
  }
80
53
  ._search_eysnt_16 {
81
54
  max-width: 240px;
@@ -98,8 +71,7 @@
98
71
  /*
99
72
  Show the loading skeleton only if the loading takes longer than 300ms
100
73
  */
101
- -webkit-animation: 0.01s linear 0.3s forwards changeVisibility-90cdff4f;
102
- animation: 0.01s linear 0.3s forwards changeVisibility-90cdff4f;
74
+ animation: 0.01s linear 0.3s forwards changeVisibility-90cdff4f;
103
75
  }
104
76
  .resource-list-loading[data-v-90cdff4f] .el-skeleton {
105
77
  position: absolute;
@@ -114,14 +86,6 @@
114
86
  .resource-list-loading[data-v-90cdff4f] .el-skeleton .el-skeleton__item {
115
87
  height: 69px;
116
88
  }
117
- @-webkit-keyframes changeVisibility-90cdff4f {
118
- from {
119
- height: 0;
120
- }
121
- to {
122
- height: 100%;
123
- }
124
- }
125
89
  @keyframes changeVisibility-90cdff4f {
126
90
  from {
127
91
  height: 0;