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
@@ -5,18 +5,12 @@
5
5
  margin-bottom: var(--spacing-2xl);
6
6
  }
7
7
  ._header_17k3n_9 {
8
- display: -webkit-box;
9
- display: -ms-flexbox;
10
8
  display: flex;
11
- -webkit-box-align: center;
12
- -ms-flex-align: center;
13
- align-items: center;
9
+ align-items: center;
14
10
  white-space: nowrap;
15
11
  }
16
12
  ._header_17k3n_9 *:first-child {
17
- -webkit-box-flex: 1;
18
- -ms-flex-positive: 1;
19
- flex-grow: 1;
13
+ flex-grow: 1;
20
14
  }
21
15
  ._enableFeatureContainer_17k3n_18 {
22
16
  margin-bottom: var(--spacing-1xl);
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, e5 as deepCopy, ir as useLogStreamingStore, r as ref, o as onMounted, ax as onBeforeMount, q as computed, fm as assert, c as openBlock, e as createBlock, w as withCtx, j as createBaseVNode, i as createVNode, k as createTextVNode, t as toDisplayString, n as normalizeClass, l as unref, g as useI18n, ae as MODAL_CONFIRM, m as resolveComponent, is as defaultMessageEventBusDestinationOptions, al as useMessage, _ as _export_sfc, p as useSettingsStore, T as useWorkflowsStore, K as useUIStore, dX as useCredentialsStore, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, h as createElementBlock, F as Fragment, f as createCommentVNode, ay as withDirectives, A as renderList, C as createEventBus, bg as v4, y as nextTick, it as LOG_STREAM_MODAL_KEY, cI as resolveDirective, a8 as EnterpriseEditionFeature, an as hasPermission, c3 as getCurrentInstance } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, c7 as deepCopy, ha as useLogStreamingStore, r as ref, o as onMounted, ax as onBeforeMount, q as computed, dT as assert, c as openBlock, e as createBlock, w as withCtx, j as createBaseVNode, i as createVNode, k as createTextVNode, t as toDisplayString, n as normalizeClass, l as unref, g as useI18n, ae as MODAL_CONFIRM, m as resolveComponent, hb as defaultMessageEventBusDestinationOptions, al as useMessage, _ as _export_sfc, p as useSettingsStore, T as useWorkflowsStore, K as useUIStore, bZ as useCredentialsStore, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, h as createElementBlock, F as Fragment, f as createCommentVNode, ay as withDirectives, A as renderList, C as createEventBus, bg as v4, y as nextTick, hc as LOG_STREAM_MODAL_KEY, di as resolveDirective, a8 as EnterpriseEditionFeature, an as hasPermission, dB as getCurrentInstance } from "./index-fCEqBD8K.js";
2
2
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3
3
  __name: "EventDestinationCard.ee",
4
4
  props: {
@@ -20,16 +20,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
20
20
  const props = __props;
21
21
  const emit = __emit;
22
22
  onMounted(() => {
23
- var _a;
24
23
  nodeParameters.value = Object.assign(
25
24
  deepCopy(defaultMessageEventBusDestinationOptions),
26
25
  props.destination
27
26
  );
28
- (_a = props.eventBus) == null ? void 0 : _a.on("destinationWasSaved", onDestinationWasSaved);
27
+ props.eventBus?.on("destinationWasSaved", onDestinationWasSaved);
29
28
  });
30
29
  onBeforeMount(() => {
31
- var _a;
32
- (_a = props.eventBus) == null ? void 0 : _a.off("destinationWasSaved", onDestinationWasSaved);
30
+ props.eventBus?.off("destinationWasSaved", onDestinationWasSaved);
33
31
  });
34
32
  const actions = computed(() => {
35
33
  const actionList = [
@@ -60,9 +58,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
60
58
  }
61
59
  }
62
60
  async function onClick(event) {
63
- var _a;
64
61
  const target = event.target;
65
- if (cardActions2.value === target || ((_a = cardActions2.value) == null ? void 0 : _a.contains(target)) || (target == null ? void 0 : target.contains(cardActions2.value))) {
62
+ if (cardActions2.value === target || cardActions2.value?.contains(target) || target?.contains(cardActions2.value)) {
66
63
  return;
67
64
  }
68
65
  emit("edit", props.destination.id);
@@ -236,10 +233,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
236
233
  const disableLicense = ref(false);
237
234
  const allDestinations = ref([]);
238
235
  const sortedItemKeysByLabel = computed(() => {
239
- var _a;
240
236
  const sortedKeys = [];
241
237
  for (const [key, value] of Object.entries(logStreamingStore.items)) {
242
- sortedKeys.push({ key, label: ((_a = value.destination) == null ? void 0 : _a.label) ?? "Destination" });
238
+ sortedKeys.push({ key, label: value.destination?.label ?? "Destination" });
243
239
  }
244
240
  return sortedKeys.sort((a, b) => a.label.localeCompare(b.label));
245
241
  });
@@ -277,9 +273,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
277
273
  forceUpdateInstance();
278
274
  }
279
275
  function forceUpdateInstance() {
280
- var _a;
281
276
  const instance = getCurrentInstance();
282
- (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$forceUpdate();
277
+ instance?.proxy?.$forceUpdate();
283
278
  }
284
279
  function onBusClosing() {
285
280
  workflowsStore.removeAllNodes({ setStateDirty: false, removePinData: true });
@@ -398,32 +393,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
398
393
  gutter: 10,
399
394
  class: normalizeClass(_ctx.$style.destinationItem)
400
395
  }, {
401
- default: withCtx(() => {
402
- var _a;
403
- return [
404
- ((_a = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a.destination) ? (openBlock(), createBlock(_component_el_col, { key: 0 }, {
405
- default: withCtx(() => {
406
- var _a2;
407
- return [
408
- createVNode(EventDestinationCard, {
409
- destination: (_a2 = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a2.destination,
410
- "event-bus": unref(eventBus),
411
- readonly: !canManageLogStreaming.value,
412
- onRemove: ($event) => {
413
- var _a3, _b;
414
- return onRemove((_b = (_a3 = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
415
- },
416
- onEdit: ($event) => {
417
- var _a3, _b;
418
- return onEdit((_b = (_a3 = unref(logStreamingStore).items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
419
- }
420
- }, null, 8, ["destination", "event-bus", "readonly", "onRemove", "onEdit"])
421
- ];
422
- }),
423
- _: 2
424
- }, 1024)) : createCommentVNode("", true)
425
- ];
426
- }),
396
+ default: withCtx(() => [
397
+ unref(logStreamingStore).items[item.key]?.destination ? (openBlock(), createBlock(_component_el_col, { key: 0 }, {
398
+ default: withCtx(() => [
399
+ createVNode(EventDestinationCard, {
400
+ destination: unref(logStreamingStore).items[item.key]?.destination,
401
+ "event-bus": unref(eventBus),
402
+ readonly: !canManageLogStreaming.value,
403
+ onRemove: ($event) => onRemove(unref(logStreamingStore).items[item.key]?.destination?.id),
404
+ onEdit: ($event) => onEdit(unref(logStreamingStore).items[item.key]?.destination?.id)
405
+ }, null, 8, ["destination", "event-bus", "readonly", "onRemove", "onEdit"])
406
+ ]),
407
+ _: 2
408
+ }, 1024)) : createCommentVNode("", true)
409
+ ]),
427
410
  _: 2
428
411
  }, 1032, ["class"]);
429
412
  }), 128)),
@@ -0,0 +1,46 @@
1
+ ._cardLink_r6102_1 {
2
+ transition: box-shadow 0.3s ease;
3
+ cursor: pointer;
4
+ padding: 0 0 0 var(--spacing-s);
5
+ align-items: stretch;
6
+ }
7
+ ._cardLink_r6102_1:hover {
8
+ box-shadow: 0 2px 8px rgba(68, 28, 23, 0.1);
9
+ }
10
+ ._activeStatusText_r6102_11 {
11
+ width: 64px;
12
+ padding-right: var(--spacing-2xs);
13
+ box-sizing: border-box;
14
+ display: inline-block;
15
+ text-align: right;
16
+ }
17
+ ._cardHeading_r6102_19 {
18
+ font-size: var(--font-size-s);
19
+ word-break: break-word;
20
+ padding: var(--spacing-s) 0 0 var(--spacing-s);
21
+ }
22
+ ._cardDescription_r6102_25 {
23
+ min-height: 19px;
24
+ display: flex;
25
+ align-items: center;
26
+ padding: 0 0 var(--spacing-s) var(--spacing-s);
27
+ }
28
+ ._cardActions_r6102_32 {
29
+ display: flex;
30
+ flex-direction: row;
31
+ justify-content: center;
32
+ align-items: center;
33
+ padding: 0 var(--spacing-s) 0 0;
34
+ cursor: default;
35
+ }._header_brzxt_1 {
36
+ display: flex;
37
+ flex-direction: column;
38
+ align-items: flex-start;
39
+ white-space: nowrap;
40
+ }
41
+ ._header_brzxt_1 *:first-child {
42
+ flex-grow: 1;
43
+ }
44
+ ._destinationItem_brzxt_11 {
45
+ margin-bottom: 0.5em;
46
+ }
@@ -5,26 +5,16 @@
5
5
  margin-bottom: var(--spacing-2xl);
6
6
  }
7
7
  ._header_z1fqc_8 {
8
- display: -webkit-box;
9
- display: -ms-flexbox;
10
8
  display: flex;
11
- -webkit-box-align: center;
12
- -ms-flex-align: center;
13
- align-items: center;
9
+ align-items: center;
14
10
  white-space: nowrap;
15
11
  }
16
12
  ._header_z1fqc_8 *:first-child {
17
- -webkit-box-flex: 1;
18
- -ms-flex-positive: 1;
19
- flex-grow: 1;
13
+ flex-grow: 1;
20
14
  }
21
15
  ._user_z1fqc_17 {
22
- display: -webkit-box;
23
- display: -ms-flexbox;
24
16
  display: flex;
25
- -webkit-box-align: center;
26
- -ms-flex-align: center;
27
- align-items: center;
17
+ align-items: center;
28
18
  }
29
19
  @media (max-width: 600px) {
30
20
  ._user_z1fqc_17 {
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, a as useToast, a3 as useDocumentTitle, r as ref, K as useUIStore, u as useUsersStore, p as useSettingsStore, q as computed, o as onMounted, x as onBeforeUnmount, id as promptMfaCodeBus, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, n as normalizeClass, f as createCommentVNode, e as createBlock, ie as MFA_DOCS_URL, F as Fragment, A as renderList, g as useI18n, ia as createFormEventBus, ig as PROMPT_MFA_CODE_MODAL_KEY, ih as CHANGE_PASSWORD_MODAL_KEY, ii as MFA_SETUP_MODAL_KEY, m as resolveComponent, _ as _export_sfc } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, a as useToast, a3 as useDocumentTitle, r as ref, K as useUIStore, u as useUsersStore, p as useSettingsStore, q as computed, o as onMounted, x as onBeforeUnmount, g_ as promptMfaCodeBus, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, n as normalizeClass, f as createCommentVNode, e as createBlock, g$ as MFA_DOCS_URL, F as Fragment, A as renderList, g as useI18n, gX as createFormEventBus, h0 as PROMPT_MFA_CODE_MODAL_KEY, h1 as CHANGE_PASSWORD_MODAL_KEY, h2 as MFA_SETUP_MODAL_KEY, m as resolveComponent, _ as _export_sfc } from "./index-fCEqBD8K.js";
2
2
  const _hoisted_1 = { class: "mb-s" };
3
3
  const _hoisted_2 = { "data-test-id": "personal-data-form" };
4
4
  const _hoisted_3 = { key: 0 };
@@ -42,8 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  return usersStore.currentUser;
43
43
  });
44
44
  const isExternalAuthEnabled = computed(() => {
45
- var _a;
46
- const isLdapEnabled = settingsStore.settings.enterprise.ldap && ((_a = currentUser.value) == null ? void 0 : _a.signInType) === "ldap";
45
+ const isLdapEnabled = settingsStore.settings.enterprise.ldap && currentUser.value?.signInType === "ldap";
47
46
  const isSamlEnabled = settingsStore.isSamlLoginEnabled && settingsStore.isDefaultAuthenticationSaml;
48
47
  return isLdapEnabled || isSamlEnabled;
49
48
  });
@@ -63,12 +62,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
62
  return hasAnyBasicInfoChanges.value || hasAnyPersonalisationChanges.value;
64
63
  });
65
64
  onMounted(() => {
66
- var _a, _b, _c;
67
65
  documentTitle.set(i18n.baseText("settings.personal.personalSettings"));
68
66
  formInputs.value = [
69
67
  {
70
68
  name: "firstName",
71
- initialValue: (_a = currentUser.value) == null ? void 0 : _a.firstName,
69
+ initialValue: currentUser.value?.firstName,
72
70
  properties: {
73
71
  label: i18n.baseText("auth.firstName"),
74
72
  maxlength: 32,
@@ -80,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
78
  },
81
79
  {
82
80
  name: "lastName",
83
- initialValue: (_b = currentUser.value) == null ? void 0 : _b.lastName,
81
+ initialValue: currentUser.value?.lastName,
84
82
  properties: {
85
83
  label: i18n.baseText("auth.lastName"),
86
84
  maxlength: 32,
@@ -92,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
90
  },
93
91
  {
94
92
  name: "email",
95
- initialValue: (_c = currentUser.value) == null ? void 0 : _c.email,
93
+ initialValue: currentUser.value?.email,
96
94
  properties: {
97
95
  label: i18n.baseText("auth.email"),
98
96
  type: "email",
@@ -125,8 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
125
123
  }
126
124
  }
127
125
  async function onSubmit(form) {
128
- var _a;
129
- if (!((_a = usersStore.currentUser) == null ? void 0 : _a.mfaEnabled)) {
126
+ if (!usersStore.currentUser?.mfaEnabled) {
130
127
  await saveUserSettings(form);
131
128
  return;
132
129
  }
@@ -187,7 +184,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
187
184
  return;
188
185
  }
189
186
  try {
190
- await usersStore.disableMfa(payload.mfaCode);
187
+ await usersStore.disableMfa(payload);
191
188
  showToast({
192
189
  title: i18n.baseText("settings.personal.mfa.toast.disabledMfa.title"),
193
190
  message: i18n.baseText("settings.personal.mfa.toast.disabledMfa.message"),
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, a0 as useSourceControlStore, a5 as usePageRedirectionHelper, a as useToast, a3 as useDocumentTitle, aD as useLoadingService, r as ref, q as computed, o as onMounted, cE as reactive, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, j as createBaseVNode, n as normalizeClass, e as createBlock, f as createCommentVNode, eZ as CopyInput, g as useI18n, ae as MODAL_CONFIRM, m as resolveComponent, al as useMessage, _ as _export_sfc } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, a0 as useSourceControlStore, a5 as usePageRedirectionHelper, a as useToast, a3 as useDocumentTitle, aD as useLoadingService, r as ref, q as computed, o as onMounted, e1 as reactive, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, j as createBaseVNode, n as normalizeClass, e as createBlock, f as createCommentVNode, ds as CopyInput, g as useI18n, ae as MODAL_CONFIRM, m as resolveComponent, al as useMessage, _ as _export_sfc } from "./index-fCEqBD8K.js";
2
2
  const _hoisted_1 = {
3
3
  key: 0,
4
4
  "data-test-id": "source-control-content-licensed"
@@ -22,17 +22,11 @@
22
22
  font-size: var(--font-size-s) !important;
23
23
  }
24
24
  ._groupFlex_1exsh_26 {
25
- display: -webkit-box;
26
- display: -ms-flexbox;
27
25
  display: flex;
28
- -webkit-box-align: start;
29
- -ms-flex-align: start;
30
- align-items: flex-start;
26
+ align-items: flex-start;
31
27
  }
32
28
  ._groupFlex_1exsh_26 > div {
33
- -webkit-box-flex: 1;
34
- -ms-flex: 1;
35
- flex: 1;
29
+ flex: 1;
36
30
  }
37
31
  ._groupFlex_1exsh_26 > div:last-child {
38
32
  margin-left: var(--spacing-2xs);
@@ -52,17 +46,11 @@
52
46
  }
53
47
  ._sshInput_1exsh_53 {
54
48
  width: 100%;
55
- display: -webkit-box;
56
- display: -ms-flexbox;
57
49
  display: flex;
58
- -webkit-box-align: center;
59
- -ms-flex-align: center;
60
- align-items: center;
50
+ align-items: center;
61
51
  }
62
52
  ._sshInput_1exsh_53 > div {
63
- -webkit-box-flex: 1;
64
- -ms-flex: 1 1 auto;
65
- flex: 1 1 auto;
53
+ flex: 1 1 auto;
66
54
  }
67
55
  ._sshInput_1exsh_53 > button {
68
56
  height: 42px;
@@ -77,14 +65,10 @@
77
65
  overflow: auto;
78
66
  }
79
67
  ._branchSelection_1exsh_76 {
80
- display: -webkit-box;
81
- display: -ms-flexbox;
82
68
  display: flex;
83
69
  }
84
70
  ._branchSelection_1exsh_76 > div:first-child {
85
- -webkit-box-flex: 1;
86
- -ms-flex: 1;
87
- flex: 1;
71
+ flex: 1;
88
72
  }
89
73
  ._branchSelection_1exsh_76 > div:first-child input {
90
74
  height: 36px;
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, Z as useRootStore, ij as useSSOStore, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, q as computed, r as ref, o as onMounted, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, j as createBaseVNode, e as createBlock, n as normalizeClass, f as createCommentVNode, eZ as CopyInput, ay as withDirectives, az as vShow, g as useI18n, m as resolveComponent, ak as useTelemetry, al as useMessage, _ as _export_sfc } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, Z as useRootStore, h3 as useSSOStore, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, q as computed, r as ref, o as onMounted, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, j as createBaseVNode, e as createBlock, n as normalizeClass, f as createCommentVNode, ds as CopyInput, ay as withDirectives, az as vShow, g as useI18n, m as resolveComponent, ak as useTelemetry, al as useMessage, _ as _export_sfc } from "./index-fCEqBD8K.js";
2
2
  const _hoisted_1 = { class: "pb-3xl" };
3
3
  const _hoisted_2 = {
4
4
  href: "https://docs.n8n.io/user-management/saml/",
@@ -44,11 +44,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  const metadataUrl = ref();
45
45
  const metadata = ref();
46
46
  const isSaveEnabled = computed(() => {
47
- var _a, _b;
48
47
  if (ipsType.value === IdentityProviderSettingsType.URL) {
49
- return !!metadataUrl.value && metadataUrl.value !== ((_a = ssoStore.samlConfig) == null ? void 0 : _a.metadataUrl);
48
+ return !!metadataUrl.value && metadataUrl.value !== ssoStore.samlConfig?.metadataUrl;
50
49
  } else if (ipsType.value === IdentityProviderSettingsType.XML) {
51
- return !!metadata.value && metadata.value !== ((_b = ssoStore.samlConfig) == null ? void 0 : _b.metadata);
50
+ return !!metadata.value && metadata.value !== ssoStore.samlConfig?.metadata;
52
51
  }
53
52
  return false;
54
53
  });
@@ -62,16 +61,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
61
  });
63
62
  const getSamlConfig = async () => {
64
63
  const config = await ssoStore.getSamlConfig();
65
- entityId.value = config == null ? void 0 : config.entityID;
66
- redirectUrl.value = config == null ? void 0 : config.returnUrl;
67
- if (config == null ? void 0 : config.metadataUrl) {
64
+ entityId.value = config?.entityID;
65
+ redirectUrl.value = config?.returnUrl;
66
+ if (config?.metadataUrl) {
68
67
  ipsType.value = IdentityProviderSettingsType.URL;
69
- } else if (config == null ? void 0 : config.metadata) {
68
+ } else if (config?.metadata) {
70
69
  ipsType.value = IdentityProviderSettingsType.XML;
71
70
  }
72
- metadata.value = config == null ? void 0 : config.metadata;
73
- metadataUrl.value = config == null ? void 0 : config.metadataUrl;
74
- ssoSettingsSaved.value = !!(config == null ? void 0 : config.metadata);
71
+ metadata.value = config?.metadata;
72
+ metadataUrl.value = config?.metadataUrl;
73
+ ssoSettingsSaved.value = !!config?.metadata;
75
74
  };
76
75
  const onSave = async () => {
77
76
  try {
@@ -1,13 +1,7 @@
1
1
  ._top_1i3kj_1 {
2
- display: -webkit-box;
3
- display: -ms-flexbox;
4
2
  display: flex;
5
- -webkit-box-align: center;
6
- -ms-flex-align: center;
7
- align-items: center;
8
- -webkit-box-pack: justify;
9
- -ms-flex-pack: justify;
10
- justify-content: space-between;
3
+ align-items: center;
4
+ justify-content: space-between;
11
5
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
12
6
  }
13
7
  ._switch_1i3kj_8 span {
@@ -16,12 +10,8 @@
16
10
  color: var(--color-text-light);
17
11
  }
18
12
  ._buttons_1i3kj_14 {
19
- display: -webkit-box;
20
- display: -ms-flexbox;
21
13
  display: flex;
22
- -webkit-box-pack: start;
23
- -ms-flex-pack: start;
24
- justify-content: flex-start;
14
+ justify-content: flex-start;
25
15
  padding: var(--spacing-2xl) 0 var(--spacing-2xs);
26
16
  }
27
17
  ._buttons_1i3kj_14 button {
@@ -1,41 +1,23 @@
1
1
  ._center_1cion_1 > div {
2
- -webkit-box-pack: center;
3
- -ms-flex-pack: center;
4
- justify-content: center;
2
+ justify-content: center;
5
3
  }
6
4
  ._actionBox_1cion_5 {
7
5
  margin: var(--spacing-2xl) 0 0;
8
6
  }
9
7
  ._spacedFlex_1cion_9 {
10
- display: -webkit-box;
11
- display: -ms-flexbox;
12
8
  display: flex;
13
- -webkit-box-pack: justify;
14
- -ms-flex-pack: justify;
15
- justify-content: space-between;
16
- -webkit-box-align: center;
17
- -ms-flex-align: center;
18
- align-items: center;
9
+ justify-content: space-between;
10
+ align-items: center;
19
11
  }
20
12
  ._title_1cion_15 {
21
- display: -webkit-box;
22
- display: -ms-flexbox;
23
13
  display: flex;
24
- -webkit-box-align: center;
25
- -ms-flex-align: center;
26
- align-items: center;
14
+ align-items: center;
27
15
  padding: var(--spacing-2xl) 0 var(--spacing-m);
28
16
  }
29
17
  ._quota_1cion_21 {
30
- display: -webkit-box;
31
- display: -ms-flexbox;
32
18
  display: flex;
33
- -webkit-box-pack: justify;
34
- -ms-flex-pack: justify;
35
- justify-content: space-between;
36
- -webkit-box-align: center;
37
- -ms-flex-align: center;
38
- align-items: center;
19
+ justify-content: space-between;
20
+ align-items: center;
39
21
  height: 54px;
40
22
  padding: 0 var(--spacing-s);
41
23
  margin: 0 0 var(--spacing-xs);
@@ -49,12 +31,8 @@
49
31
  font-size: var(--font-size-s);
50
32
  }
51
33
  ._buttons_1cion_38 {
52
- display: -webkit-box;
53
- display: -ms-flexbox;
54
34
  display: flex;
55
- -webkit-box-pack: end;
56
- -ms-flex-pack: end;
57
- justify-content: flex-end;
35
+ justify-content: flex-end;
58
36
  padding: var(--spacing-xl) 0 0;
59
37
  }
60
38
  ._buttons_1cion_38 button {
@@ -68,18 +46,10 @@
68
46
  margin: calc(var(--spacing-xs) * -1) calc(var(--spacing-m) * -1);
69
47
  }
70
48
  ._chart_1cion_54 {
71
- display: -webkit-box;
72
- display: -ms-flexbox;
73
49
  display: flex;
74
- -webkit-box-align: center;
75
- -ms-flex-align: center;
76
- align-items: center;
77
- -webkit-box-pack: end;
78
- -ms-flex-pack: end;
79
- justify-content: flex-end;
80
- -webkit-box-flex: 1;
81
- -ms-flex-positive: 1;
82
- flex-grow: 1;
50
+ align-items: center;
51
+ justify-content: flex-end;
52
+ flex-grow: 1;
83
53
  }
84
54
  ._chartLine_1cion_61 {
85
55
  display: block;
@@ -96,7 +66,6 @@
96
66
  max-width: 100%;
97
67
  background: var(--color-secondary);
98
68
  border-radius: 10px;
99
- -webkit-transition: width 0.2s cubic-bezier(0.19, 1, 0.22, 1);
100
69
  transition: width 0.2s cubic-bezier(0.19, 1, 0.22, 1);
101
70
  }
102
71
  div[class*=info] > span > span:last-child {
@@ -104,23 +73,13 @@ div[class*=info] > span > span:last-child {
104
73
  padding: 0 0 0 var(--spacing-4xs);
105
74
  }
106
75
  ._titleTooltip_1cion_85 {
107
- display: -webkit-box;
108
- display: -ms-flexbox;
109
76
  display: flex;
110
- -webkit-box-align: center;
111
- -ms-flex-align: center;
112
- align-items: center;
77
+ align-items: center;
113
78
  margin: 0 0 0 var(--spacing-2xs);
114
79
  }.settings-usage-and-plan[data-v-1f855715] .el-dialog__wrapper {
115
- display: -webkit-box;
116
- display: -ms-flexbox;
117
80
  display: flex;
118
- -webkit-box-align: center;
119
- -ms-flex-align: center;
120
- align-items: center;
121
- -webkit-box-pack: center;
122
- -ms-flex-pack: center;
123
- justify-content: center;
81
+ align-items: center;
82
+ justify-content: center;
124
83
  }
125
84
  .settings-usage-and-plan[data-v-1f855715] .el-dialog__wrapper .el-dialog {
126
85
  margin: 0;
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, iQ as useUsageStore, U as useRoute, b as useRouter, K as useUIStore, u as useUsersStore, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, r as ref, q as computed, o as onMounted, fC as i18n, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, n as normalizeClass, e as createBlock, f as createCommentVNode, j as createBaseVNode, B as normalizeStyle, eG as InfoTip, I as withModifiers, iR as COMMUNITY_PLUS_ENROLLMENT_MODAL, m as resolveComponent, an as hasPermission, am as getResourcePermissions, iS as telemetry, _ as _export_sfc } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, hx as useUsageStore, U as useRoute, b as useRouter, K as useUIStore, u as useUsersStore, a as useToast, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, r as ref, q as computed, o as onMounted, e8 as i18n, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, k as createTextVNode, t as toDisplayString, l as unref, n as normalizeClass, e as createBlock, f as createCommentVNode, j as createBaseVNode, B as normalizeStyle, d5 as InfoTip, I as withModifiers, hy as COMMUNITY_PLUS_ENROLLMENT_MODAL, m as resolveComponent, an as hasPermission, am as getResourcePermissions, hz as telemetry, _ as _export_sfc } from "./index-fCEqBD8K.js";
2
2
  const _hoisted_1 = { class: "settings-usage-and-plan" };
3
3
  const _hoisted_2 = { key: 0 };
4
4
  const _hoisted_3 = { key: 0 };
@@ -43,10 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  () => usageStore.planName.toLowerCase() === "registered community"
44
44
  );
45
45
  const canUserRegisterCommunityPlus = computed(
46
- () => {
47
- var _a;
48
- return getResourcePermissions((_a = usersStore.currentUser) == null ? void 0 : _a.globalScopes).community.register;
49
- }
46
+ () => getResourcePermissions(usersStore.currentUser?.globalScopes).community.register
50
47
  );
51
48
  const showActivationSuccess = () => {
52
49
  toast.showMessage({
@@ -124,8 +121,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
124
121
  activationKey.value = "";
125
122
  };
126
123
  const onDialogOpened = () => {
127
- var _a;
128
- (_a = activationKeyInput.value) == null ? void 0 : _a.focus();
124
+ activationKeyInput.value?.focus();
129
125
  };
130
126
  const openCommunityRegisterModal = () => {
131
127
  uiStore.openModal(COMMUNITY_PLUS_ENROLLMENT_MODAL);
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, b2 as useClipboard, a as useToast, p as useSettingsStore, K as useUIStore, u as useUsersStore, ij as useSSOStore, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, q 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, l as unref, n as normalizeClass, f as createCommentVNode, e as createBlock, F as Fragment, A as renderList, g as useI18n, ik as INVITE_USER_MODAL_KEY, m as resolveComponent, an as hasPermission, a8 as EnterpriseEditionFeature, il as ROLE, _ as _export_sfc } from "./index-D57HUAs6.js";
1
+ import { d as defineComponent, b2 as useClipboard, a as useToast, p as useSettingsStore, K as useUIStore, u as useUsersStore, h3 as useSSOStore, a3 as useDocumentTitle, a5 as usePageRedirectionHelper, q 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, l as unref, n as normalizeClass, f as createCommentVNode, e as createBlock, F as Fragment, A as renderList, g as useI18n, h4 as INVITE_USER_MODAL_KEY, m as resolveComponent, an as hasPermission, a8 as EnterpriseEditionFeature, h5 as ROLE, _ as _export_sfc } from "./index-fCEqBD8K.js";
2
2
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
3
  __name: "SettingsUsersView",
4
4
  setup(__props) {
@@ -45,18 +45,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
45
  {
46
46
  label: i18n.baseText("settings.users.actions.allowSSOManualLogin"),
47
47
  value: "allowSSOManualLogin",
48
- guard: (user) => {
49
- var _a;
50
- return settingsStore.isSamlLoginEnabled && !((_a = user.settings) == null ? void 0 : _a.allowSSOManualLogin);
51
- }
48
+ guard: (user) => settingsStore.isSamlLoginEnabled && !user.settings?.allowSSOManualLogin
52
49
  },
53
50
  {
54
51
  label: i18n.baseText("settings.users.actions.disallowSSOManualLogin"),
55
52
  value: "disallowSSOManualLogin",
56
- guard: (user) => {
57
- var _a;
58
- return settingsStore.isSamlLoginEnabled && ((_a = user.settings) == null ? void 0 : _a.allowSSOManualLogin) === true;
59
- }
53
+ guard: (user) => settingsStore.isSamlLoginEnabled && user.settings?.allowSSOManualLogin === true
60
54
  }
61
55
  ];
62
56
  });
@@ -112,7 +106,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
106
  }
113
107
  async function onReinvite(userId) {
114
108
  const user = usersStore.usersById[userId];
115
- if ((user == null ? void 0 : user.email) && (user == null ? void 0 : user.role)) {
109
+ if (user?.email && user?.role) {
116
110
  if (!["global:admin", "global:member"].includes(user.role)) {
117
111
  throw new Error("Invalid role name on reinvite");
118
112
  }
@@ -135,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
129
  }
136
130
  async function onCopyInviteLink(userId) {
137
131
  const user = usersStore.usersById[userId];
138
- if (user == null ? void 0 : user.inviteAcceptUrl) {
132
+ if (user?.inviteAcceptUrl) {
139
133
  void clipboard.copy(user.inviteAcceptUrl);
140
134
  showToast({
141
135
  type: "success",
@@ -173,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
173
167
  }
174
168
  async function onDisallowSSOManualLogin(userId) {
175
169
  const user = usersStore.usersById[userId];
176
- if (user == null ? void 0 : user.settings) {
170
+ if (user?.settings) {
177
171
  user.settings.allowSSOManualLogin = false;
178
172
  await usersStore.updateOtherUserSettings(userId, user.settings);
179
173
  showToast({
@@ -190,10 +184,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
190
184
  void pageRedirectionHelper.goToUpgrade("settings-users", "upgrade-advanced-permissions");
191
185
  }
192
186
  async function onRoleChange(user, newRoleName) {
193
- var _a;
194
187
  try {
195
188
  await usersStore.updateGlobalRole({ id: user.id, newRoleName });
196
- const role = ((_a = userRoles.value.find(({ value }) => value === newRoleName)) == null ? void 0 : _a.label) || newRoleName;
189
+ const role = userRoles.value.find(({ value }) => value === newRoleName)?.label || newRoleName;
197
190
  showToast({
198
191
  type: "success",
199
192
  title: i18n.baseText("settings.users.userRoleUpdated"),
@@ -298,7 +291,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
298
291
  actions: withCtx(({ user }) => [
299
292
  user.id !== unref(usersStore).currentUserId ? (openBlock(), createBlock(_component_n8n_select, {
300
293
  key: 0,
301
- "model-value": (user == null ? void 0 : user.role) || "global:member",
294
+ "model-value": user?.role || "global:member",
302
295
  disabled: !canUpdateRole.value,
303
296
  "data-test-id": "user-role-select",
304
297
  "onUpdate:modelValue": ($event) => onRoleChange(user, $event)
@@ -1,4 +1,4 @@
1
- import { an as hasPermission, d as defineComponent, b as useRouter, U as useRoute, Z as useRootStore, p as useSettingsStore, K as useUIStore, q as computed, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, j as createBaseVNode, k as createTextVNode, t as toDisplayString, l as unref, n as normalizeClass, aR as ABOUT_MODAL_KEY, g as useI18n, m as resolveComponent, V as VIEWS, _ as _export_sfc, r as ref, o as onMounted, aX as mergeProps, i7 as isRouteLocationRaw } from "./index-D57HUAs6.js";
1
+ import { an as hasPermission, d as defineComponent, b as useRouter, U as useRoute, Z as useRootStore, p as useSettingsStore, K as useUIStore, q as computed, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, j as createBaseVNode, k as createTextVNode, t as toDisplayString, l as unref, n as normalizeClass, aR as ABOUT_MODAL_KEY, g as useI18n, m as resolveComponent, V as VIEWS, _ as _export_sfc, r as ref, o as onMounted, aX as mergeProps, gS as isRouteLocationRaw } from "./index-fCEqBD8K.js";
2
2
  function useUserHelpers(router, route) {
3
3
  const canUserAccessRouteByName = (name) => {
4
4
  const resolvedRoute = router.resolve({ name });
@@ -8,9 +8,8 @@ function useUserHelpers(router, route) {
8
8
  return canUserAccessRoute(route);
9
9
  };
10
10
  const canUserAccessRoute = (route2) => {
11
- var _a, _b;
12
- const middleware = (_a = route2.meta) == null ? void 0 : _a.middleware;
13
- const middlewareOptions = (_b = route2.meta) == null ? void 0 : _b.middlewareOptions;
11
+ const middleware = route2.meta?.middleware;
12
+ const middlewareOptions = route2.meta?.middlewareOptions;
14
13
  if (!middleware) {
15
14
  return true;
16
15
  }