@burdenoff/microfe-integrations 2026.1107.2 → 2026.1109.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 (247) hide show
  1. package/dist/dev/main.d.ts +0 -2
  2. package/dist/generated/global-operations.d.ts +4 -2
  3. package/dist/generated/global-types.d.ts +2 -22
  4. package/dist/generated/wspace-operations.d.ts +995 -705
  5. package/dist/generated/wspace-operations.js +180 -167
  6. package/dist/generated/wspace-operations.js.map +1 -1
  7. package/dist/generated/wspace-types.d.ts +4 -24
  8. package/dist/generated/wspace-types.js +1 -2
  9. package/dist/generated/wspace-types.js.map +1 -1
  10. package/dist/index.d.ts +0 -1
  11. package/dist/integrations/ConnectSourceDialog.d.ts +0 -2
  12. package/dist/integrations/ConnectSourceDialog.js +13 -14
  13. package/dist/integrations/ConnectSourceDialog.js.map +1 -1
  14. package/dist/integrations/ConnectionsPanel.d.ts +0 -2
  15. package/dist/integrations/ConnectionsPanel.js +5 -6
  16. package/dist/integrations/ConnectionsPanel.js.map +1 -1
  17. package/dist/integrations/IntegrationsAdminRoot.d.ts +0 -2
  18. package/dist/integrations/IntegrationsAdminRoot.js +14 -11
  19. package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
  20. package/dist/integrations/IntegrationsAdminRoutes.d.ts +1 -2
  21. package/dist/integrations/IntegrationsAdminRoutes.js +1 -2
  22. package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
  23. package/dist/integrations/IntegrationsRoot.d.ts +0 -2
  24. package/dist/integrations/IntegrationsRoot.js +9 -6
  25. package/dist/integrations/IntegrationsRoot.js.map +1 -1
  26. package/dist/integrations/IntegrationsUserRoutes.d.ts +1 -2
  27. package/dist/integrations/IntegrationsUserRoutes.js +7 -8
  28. package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
  29. package/dist/integrations/components/AddConnectionDialog.d.ts +1 -3
  30. package/dist/integrations/components/AddConnectionDialog.js +12 -15
  31. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  32. package/dist/integrations/components/AuthMethodsEditor.d.ts +0 -2
  33. package/dist/integrations/components/AuthMethodsEditor.js +1 -2
  34. package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
  35. package/dist/integrations/components/ConfirmDialog.d.ts +1 -3
  36. package/dist/integrations/components/ConfirmDialog.js +1 -2
  37. package/dist/integrations/components/ConfirmDialog.js.map +1 -1
  38. package/dist/integrations/components/ConnectionCard.d.ts +0 -2
  39. package/dist/integrations/components/ConnectionCard.js +9 -10
  40. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  41. package/dist/integrations/components/ConnectionModalFrame.d.ts +0 -2
  42. package/dist/integrations/components/ConnectionModalFrame.js +2 -3
  43. package/dist/integrations/components/ConnectionModalFrame.js.map +1 -1
  44. package/dist/integrations/components/ConnectionSharing.d.ts +0 -2
  45. package/dist/integrations/components/ConnectionSharing.js +7 -8
  46. package/dist/integrations/components/ConnectionSharing.js.map +1 -1
  47. package/dist/integrations/components/ConnectionStatusBadge.d.ts +0 -2
  48. package/dist/integrations/components/ConnectionStatusBadge.js +1 -2
  49. package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
  50. package/dist/integrations/components/ConnectorSubmissionCard.d.ts +2 -4
  51. package/dist/integrations/components/ConnectorSubmissionCard.js +8 -9
  52. package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
  53. package/dist/integrations/components/ConnectorSubmissionPager.d.ts +1 -2
  54. package/dist/integrations/components/ConnectorSubmissionPager.js +1 -2
  55. package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -1
  56. package/dist/integrations/components/MailMessageBody.d.ts +1 -3
  57. package/dist/integrations/components/MailMessageBody.js +4 -5
  58. package/dist/integrations/components/MailMessageBody.js.map +1 -1
  59. package/dist/integrations/components/ProviderCard.d.ts +0 -2
  60. package/dist/integrations/components/ProviderCard.js +8 -9
  61. package/dist/integrations/components/ProviderCard.js.map +1 -1
  62. package/dist/integrations/constants/featureFlags.d.ts +0 -1
  63. package/dist/integrations/constants/featureFlags.js +1 -2
  64. package/dist/integrations/constants/featureFlags.js.map +1 -1
  65. package/dist/integrations/constants/permissions.d.ts +0 -1
  66. package/dist/integrations/constants/permissions.js +1 -2
  67. package/dist/integrations/constants/permissions.js.map +1 -1
  68. package/dist/integrations/events/integrations-events.d.ts +0 -1
  69. package/dist/integrations/events/useIntegrationsEventBus.d.ts +0 -2
  70. package/dist/integrations/events/useIntegrationsEventBus.js +1 -2
  71. package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -1
  72. package/dist/integrations/hooks/useConnections.d.ts +3 -14
  73. package/dist/integrations/hooks/useConnections.js +74 -75
  74. package/dist/integrations/hooks/useConnections.js.map +1 -1
  75. package/dist/integrations/hooks/useConnectorSubmissions.d.ts +2 -10
  76. package/dist/integrations/hooks/useConnectorSubmissions.js +23 -24
  77. package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
  78. package/dist/integrations/hooks/useFormatDate.d.ts +0 -1
  79. package/dist/integrations/hooks/useFormatDate.js +1 -2
  80. package/dist/integrations/hooks/useFormatDate.js.map +1 -1
  81. package/dist/integrations/hooks/useFormatLastUsed.d.ts +0 -1
  82. package/dist/integrations/hooks/useFormatLastUsed.js +1 -2
  83. package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -1
  84. package/dist/integrations/hooks/useLabel.d.ts +0 -2
  85. package/dist/integrations/hooks/useLabel.js +1 -2
  86. package/dist/integrations/hooks/useLabel.js.map +1 -1
  87. package/dist/integrations/hooks/useLogs.d.ts +1 -6
  88. package/dist/integrations/hooks/useLogs.js +6 -7
  89. package/dist/integrations/hooks/useLogs.js.map +1 -1
  90. package/dist/integrations/hooks/useMailbox.d.ts +19 -43
  91. package/dist/integrations/hooks/useMailbox.js +46 -47
  92. package/dist/integrations/hooks/useMailbox.js.map +1 -1
  93. package/dist/integrations/hooks/useProviders.d.ts +3 -14
  94. package/dist/integrations/hooks/useProviders.js +42 -43
  95. package/dist/integrations/hooks/useProviders.js.map +1 -1
  96. package/dist/integrations/hooks/useTr.d.ts +0 -1
  97. package/dist/integrations/hooks/useTr.js +1 -2
  98. package/dist/integrations/hooks/useTr.js.map +1 -1
  99. package/dist/integrations/index.d.ts +0 -1
  100. package/dist/integrations/index.js +9 -8
  101. package/dist/integrations/pages/AddConnectionWizard.d.ts +1 -2
  102. package/dist/integrations/pages/AddConnectionWizard.js +291 -306
  103. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  104. package/dist/integrations/pages/ConnectionDetail.d.ts +1 -2
  105. package/dist/integrations/pages/ConnectionDetail.js +241 -246
  106. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  107. package/dist/integrations/pages/ConnectionLogs.d.ts +1 -2
  108. package/dist/integrations/pages/ConnectionLogs.js +154 -155
  109. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  110. package/dist/integrations/pages/ConnectionsList.d.ts +1 -2
  111. package/dist/integrations/pages/ConnectionsList.js +40 -41
  112. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  113. package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +1 -2
  114. package/dist/integrations/pages/ConnectorReviewQueuePage.js +9 -10
  115. package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -1
  116. package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +1 -2
  117. package/dist/integrations/pages/ConnectorSubmissionsPage.js +138 -139
  118. package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
  119. package/dist/integrations/pages/IntegrationsOverview.d.ts +1 -2
  120. package/dist/integrations/pages/IntegrationsOverview.js +35 -36
  121. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  122. package/dist/integrations/pages/IntegrationsSettings.d.ts +1 -2
  123. package/dist/integrations/pages/IntegrationsSettings.js +7 -8
  124. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  125. package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +1 -2
  126. package/dist/integrations/pages/IntegrationsUserLandingPage.js +1 -2
  127. package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
  128. package/dist/integrations/pages/MailboxInbox.d.ts +1 -2
  129. package/dist/integrations/pages/MailboxInbox.js +135 -140
  130. package/dist/integrations/pages/MailboxInbox.js.map +1 -1
  131. package/dist/integrations/pages/ProviderCatalog.d.ts +1 -2
  132. package/dist/integrations/pages/ProviderCatalog.js +107 -108
  133. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  134. package/dist/integrations/pages/ProviderDetail.d.ts +1 -2
  135. package/dist/integrations/pages/ProviderDetail.js +21 -22
  136. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  137. package/dist/integrations/pages/ProviderEditorPage.d.ts +1 -2
  138. package/dist/integrations/pages/ProviderEditorPage.js +261 -264
  139. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  140. package/dist/integrations/providers/IntegrationsProvider.d.ts +0 -2
  141. package/dist/integrations/providers/IntegrationsProvider.js +109 -96
  142. package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
  143. package/dist/integrations/store/integrationsStore.d.ts +0 -2
  144. package/dist/integrations/store/integrationsStore.js +1 -2
  145. package/dist/integrations/store/integrationsStore.js.map +1 -1
  146. package/dist/integrations/store/mailboxStore.d.ts +0 -2
  147. package/dist/integrations/store/mailboxStore.js +1 -2
  148. package/dist/integrations/store/mailboxStore.js.map +1 -1
  149. package/dist/integrations/translations/en.d.ts +0 -1
  150. package/dist/integrations/types/index.d.ts +0 -1
  151. package/dist/integrations/utils/appearance.d.ts +0 -1
  152. package/dist/integrations/utils/appearance.js +1 -2
  153. package/dist/integrations/utils/appearance.js.map +1 -1
  154. package/dist/integrations/utils/cn.d.ts +0 -2
  155. package/dist/integrations/utils/cn.js +2 -3
  156. package/dist/integrations/utils/cn.js.map +1 -1
  157. package/dist/integrations/utils/constants.d.ts +0 -1
  158. package/dist/integrations/utils/constants.js +1 -2
  159. package/dist/integrations/utils/constants.js.map +1 -1
  160. package/dist/integrations/utils/integrationsHelpers.d.ts +0 -2
  161. package/dist/integrations/utils/integrationsHelpers.js +1 -2
  162. package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
  163. package/dist/integrations/utils/mailHtml.d.ts +0 -2
  164. package/dist/integrations/utils/mailHtml.js +3 -4
  165. package/dist/integrations/utils/mailHtml.js.map +1 -1
  166. package/dist/integrations/utils/mappers.d.ts +0 -2
  167. package/dist/integrations/utils/mappers.js +2 -3
  168. package/dist/integrations/utils/mappers.js.map +1 -1
  169. package/dist/integrations/utils/navigation.d.ts +0 -1
  170. package/dist/integrations/utils/navigation.js +2 -8
  171. package/dist/integrations/utils/navigation.js.map +1 -1
  172. package/dist/integrations/utils/paths.d.ts +0 -1
  173. package/dist/integrations/utils/paths.js +1 -2
  174. package/dist/integrations/utils/paths.js.map +1 -1
  175. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  176. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  177. package/dist/node_modules/dompurify/dist/purify.es.js +20 -36
  178. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  179. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  180. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  181. package/dist/utils/nativeBridge.d.ts +0 -1
  182. package/dist/utils/nativeBridge.js +1 -2
  183. package/package.json +63 -49
  184. package/dist/dev/main.d.ts.map +0 -1
  185. package/dist/generated/global-operations.d.ts.map +0 -1
  186. package/dist/generated/global-types.d.ts.map +0 -1
  187. package/dist/generated/wspace-operations.d.ts.map +0 -1
  188. package/dist/generated/wspace-types.d.ts.map +0 -1
  189. package/dist/index.d.ts.map +0 -1
  190. package/dist/integrations/ConnectSourceDialog.d.ts.map +0 -1
  191. package/dist/integrations/ConnectionsPanel.d.ts.map +0 -1
  192. package/dist/integrations/IntegrationsAdminRoot.d.ts.map +0 -1
  193. package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +0 -1
  194. package/dist/integrations/IntegrationsRoot.d.ts.map +0 -1
  195. package/dist/integrations/IntegrationsUserRoutes.d.ts.map +0 -1
  196. package/dist/integrations/components/AddConnectionDialog.d.ts.map +0 -1
  197. package/dist/integrations/components/AuthMethodsEditor.d.ts.map +0 -1
  198. package/dist/integrations/components/ConfirmDialog.d.ts.map +0 -1
  199. package/dist/integrations/components/ConnectionCard.d.ts.map +0 -1
  200. package/dist/integrations/components/ConnectionModalFrame.d.ts.map +0 -1
  201. package/dist/integrations/components/ConnectionSharing.d.ts.map +0 -1
  202. package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +0 -1
  203. package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +0 -1
  204. package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +0 -1
  205. package/dist/integrations/components/MailMessageBody.d.ts.map +0 -1
  206. package/dist/integrations/components/ProviderCard.d.ts.map +0 -1
  207. package/dist/integrations/constants/featureFlags.d.ts.map +0 -1
  208. package/dist/integrations/constants/permissions.d.ts.map +0 -1
  209. package/dist/integrations/events/integrations-events.d.ts.map +0 -1
  210. package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +0 -1
  211. package/dist/integrations/hooks/useConnections.d.ts.map +0 -1
  212. package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +0 -1
  213. package/dist/integrations/hooks/useFormatDate.d.ts.map +0 -1
  214. package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +0 -1
  215. package/dist/integrations/hooks/useLabel.d.ts.map +0 -1
  216. package/dist/integrations/hooks/useLogs.d.ts.map +0 -1
  217. package/dist/integrations/hooks/useMailbox.d.ts.map +0 -1
  218. package/dist/integrations/hooks/useProviders.d.ts.map +0 -1
  219. package/dist/integrations/hooks/useTr.d.ts.map +0 -1
  220. package/dist/integrations/index.d.ts.map +0 -1
  221. package/dist/integrations/pages/AddConnectionWizard.d.ts.map +0 -1
  222. package/dist/integrations/pages/ConnectionDetail.d.ts.map +0 -1
  223. package/dist/integrations/pages/ConnectionLogs.d.ts.map +0 -1
  224. package/dist/integrations/pages/ConnectionsList.d.ts.map +0 -1
  225. package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +0 -1
  226. package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +0 -1
  227. package/dist/integrations/pages/IntegrationsOverview.d.ts.map +0 -1
  228. package/dist/integrations/pages/IntegrationsSettings.d.ts.map +0 -1
  229. package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +0 -1
  230. package/dist/integrations/pages/MailboxInbox.d.ts.map +0 -1
  231. package/dist/integrations/pages/ProviderCatalog.d.ts.map +0 -1
  232. package/dist/integrations/pages/ProviderDetail.d.ts.map +0 -1
  233. package/dist/integrations/pages/ProviderEditorPage.d.ts.map +0 -1
  234. package/dist/integrations/providers/IntegrationsProvider.d.ts.map +0 -1
  235. package/dist/integrations/store/integrationsStore.d.ts.map +0 -1
  236. package/dist/integrations/store/mailboxStore.d.ts.map +0 -1
  237. package/dist/integrations/translations/en.d.ts.map +0 -1
  238. package/dist/integrations/types/index.d.ts.map +0 -1
  239. package/dist/integrations/utils/appearance.d.ts.map +0 -1
  240. package/dist/integrations/utils/cn.d.ts.map +0 -1
  241. package/dist/integrations/utils/constants.d.ts.map +0 -1
  242. package/dist/integrations/utils/integrationsHelpers.d.ts.map +0 -1
  243. package/dist/integrations/utils/mailHtml.d.ts.map +0 -1
  244. package/dist/integrations/utils/mappers.d.ts.map +0 -1
  245. package/dist/integrations/utils/navigation.d.ts.map +0 -1
  246. package/dist/integrations/utils/paths.d.ts.map +0 -1
  247. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,47 +1,47 @@
1
- import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
2
- import { useTr as t } from "../hooks/useTr.js";
1
+ import { useTr as e } from "../hooks/useTr.js";
2
+ import { useIntegrations as t } from "../providers/IntegrationsProvider.js";
3
3
  import { joinPath as n } from "../utils/navigation.js";
4
- import { AuthType as r, ConnectorApiKeyPlacement as i, ConnectorOAuthScopeSeparator as a, ConnectorOAuthTokenAuthMethod as o, ConnectorSubmissionStatus as s, ProviderCategory as c } from "../../generated/wspace-types.js";
4
+ import { useMyConnectorSubmissions as r, useSubmitConnector as i, useUpdateConnectorSubmissionOAuthClient as a, useWithdrawConnectorSubmission as o } from "../hooks/useConnectorSubmissions.js";
5
+ import { ConnectorSubmissionCard as s } from "../components/ConnectorSubmissionCard.js";
6
+ import { ConnectorSubmissionPager as c } from "../components/ConnectorSubmissionPager.js";
5
7
  import { ConfirmDialog as l } from "../components/ConfirmDialog.js";
6
- import { useMyConnectorSubmissions as u, useSubmitConnector as d, useUpdateConnectorSubmissionOAuthClient as f, useWithdrawConnectorSubmission as p } from "../hooks/useConnectorSubmissions.js";
7
- import { ConnectorSubmissionCard as m } from "../components/ConnectorSubmissionCard.js";
8
- import { ConnectorSubmissionPager as h } from "../components/ConnectorSubmissionPager.js";
8
+ import { AuthType as u, ConnectorApiKeyPlacement as d, ConnectorOAuthScopeSeparator as f, ConnectorOAuthTokenAuthMethod as p, ConnectorSubmissionStatus as m, ProviderCategory as h } from "../../generated/wspace-types.js";
9
9
  import { useId as g, useState as _ } from "react";
10
10
  import { ArrowLeft as v, KeyRound as y, Loader2 as b, Plus as x, Send as S, Upload as C, X as w } from "lucide-react";
11
11
  import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
12
12
  import { Button as O, EmphasisPanel as k, IllustratedEmptyState as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
13
- //#region src/integrations/pages/ConnectorSubmissionsPage.tsx
13
+ // src/integrations/pages/ConnectorSubmissionsPage.tsx
14
14
  var M = [
15
- c.Productivity,
16
- c.Communication,
17
- c.Crm,
18
- c.Email,
19
- c.Calendar,
20
- c.CloudStorage,
21
- c.Development,
22
- c.Social,
23
- c.Payment,
24
- c.Analytics,
25
- c.Accounting,
26
- c.Custom
15
+ h.Productivity,
16
+ h.Communication,
17
+ h.Crm,
18
+ h.Email,
19
+ h.Calendar,
20
+ h.CloudStorage,
21
+ h.Development,
22
+ h.Social,
23
+ h.Payment,
24
+ h.Analytics,
25
+ h.Accounting,
26
+ h.Custom
27
27
  ], N = [
28
28
  [
29
- r.ApiKey,
29
+ u.ApiKey,
30
30
  "integrations.connectorSubmissions.auth.apiKey",
31
31
  "API key"
32
32
  ],
33
33
  [
34
- r.BearerToken,
34
+ u.BearerToken,
35
35
  "integrations.connectorSubmissions.auth.bearer",
36
36
  "Bearer token"
37
37
  ],
38
38
  [
39
- r.BasicAuth,
39
+ u.BasicAuth,
40
40
  "integrations.connectorSubmissions.auth.basic",
41
41
  "Basic auth"
42
42
  ],
43
43
  [
44
- r.Oauth2,
44
+ u.Oauth2,
45
45
  "integrations.connectorSubmissions.auth.oauth2",
46
46
  "OAuth 2.0"
47
47
  ]
@@ -49,9 +49,9 @@ var M = [
49
49
  key: "",
50
50
  name: "",
51
51
  description: "",
52
- category: c.Productivity,
53
- authType: r.ApiKey,
54
- apiKeyPlacement: i.Header,
52
+ category: h.Productivity,
53
+ authType: u.ApiKey,
54
+ apiKeyPlacement: d.Header,
55
55
  apiKeyName: "",
56
56
  apiKeyPrefix: "",
57
57
  oauthAuthorizeUrl: "",
@@ -59,9 +59,9 @@ var M = [
59
59
  oauthRevokeUrl: "",
60
60
  oauthUserInfoUrl: "",
61
61
  oauthScopes: "",
62
- oauthScopeSeparator: a.Space,
62
+ oauthScopeSeparator: f.Space,
63
63
  oauthPkce: !0,
64
- oauthTokenAuthMethod: o.ClientSecretPost,
64
+ oauthTokenAuthMethod: p.ClientSecretPost,
65
65
  oauthClientId: "",
66
66
  oauthClientSecret: "",
67
67
  website: "",
@@ -88,7 +88,7 @@ function R(e) {
88
88
  return e.split(/[\s,]+/).map((e) => e.trim()).filter(Boolean);
89
89
  }
90
90
  function z(e) {
91
- let t = e.authType === r.ApiKey, n = e.authType === r.Oauth2;
91
+ let t = e.authType === u.ApiKey, n = e.authType === u.Oauth2;
92
92
  return {
93
93
  key: e.key.trim().toLowerCase(),
94
94
  name: e.name.trim(),
@@ -97,7 +97,7 @@ function z(e) {
97
97
  authType: e.authType,
98
98
  apiKeyPlacement: t ? e.apiKeyPlacement : null,
99
99
  apiKeyName: t ? L(e.apiKeyName) : null,
100
- apiKeyPrefix: t && e.apiKeyPlacement === i.Header ? L(e.apiKeyPrefix) : null,
100
+ apiKeyPrefix: t && e.apiKeyPlacement === d.Header ? L(e.apiKeyPrefix) : null,
101
101
  oauth: n ? {
102
102
  authorizeUrl: e.oauthAuthorizeUrl.trim(),
103
103
  tokenUrl: e.oauthTokenUrl.trim(),
@@ -145,46 +145,46 @@ function B({ id: e, label: t, hint: n, required: r = !1, children: i }) {
145
145
  ] });
146
146
  }
147
147
  function V() {
148
- let { apiGatewayUrl: t } = e();
149
- return t ? `${t}/integrations/oauth/callback` : `${typeof window < "u" ? window.location.origin : ""}/integrations/oauth/callback`;
148
+ let { apiGatewayUrl: e } = t();
149
+ return e ? `${e}/integrations/oauth/callback` : `${typeof window < "u" ? window.location.origin : ""}/integrations/oauth/callback`;
150
150
  }
151
- function H({ form: e, set: n, text: r, id: a }) {
152
- let o = t();
151
+ function H({ form: t, set: n, text: r, id: i }) {
152
+ let a = e();
153
153
  return /* @__PURE__ */ D("div", {
154
154
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
155
155
  children: [
156
156
  /* @__PURE__ */ E(B, {
157
- id: a("apiKeyPlacement"),
158
- label: o("integrations.connectorSubmissions.fields.apiKeyPlacement", "Sent in"),
157
+ id: i("apiKeyPlacement"),
158
+ label: a("integrations.connectorSubmissions.fields.apiKeyPlacement", "Sent in"),
159
159
  required: !0,
160
160
  children: /* @__PURE__ */ D("select", {
161
- id: a("apiKeyPlacement"),
162
- value: e.apiKeyPlacement,
161
+ id: i("apiKeyPlacement"),
162
+ value: t.apiKeyPlacement,
163
163
  onChange: (e) => n("apiKeyPlacement", e.target.value),
164
164
  className: F,
165
165
  children: [/* @__PURE__ */ E("option", {
166
- value: i.Header,
167
- children: o("integrations.connectorSubmissions.placement.header", "Header")
166
+ value: d.Header,
167
+ children: a("integrations.connectorSubmissions.placement.header", "Header")
168
168
  }), /* @__PURE__ */ E("option", {
169
- value: i.Query,
170
- children: o("integrations.connectorSubmissions.placement.query", "Query parameter")
169
+ value: d.Query,
170
+ children: a("integrations.connectorSubmissions.placement.query", "Query parameter")
171
171
  })]
172
172
  })
173
173
  }),
174
174
  /* @__PURE__ */ E(B, {
175
- id: a("apiKeyName"),
176
- label: o("integrations.connectorSubmissions.fields.apiKeyName", "Name"),
175
+ id: i("apiKeyName"),
176
+ label: a("integrations.connectorSubmissions.fields.apiKeyName", "Name"),
177
177
  required: !0,
178
178
  children: /* @__PURE__ */ E("input", {
179
179
  ...r("apiKeyName"),
180
180
  required: !0,
181
181
  maxLength: 64,
182
- placeholder: e.apiKeyPlacement === i.Header ? "X-Api-Key" : "api_key"
182
+ placeholder: t.apiKeyPlacement === d.Header ? "X-Api-Key" : "api_key"
183
183
  })
184
184
  }),
185
- e.apiKeyPlacement === i.Header && /* @__PURE__ */ E(B, {
186
- id: a("apiKeyPrefix"),
187
- label: o("integrations.connectorSubmissions.fields.apiKeyPrefix", "Prefix"),
185
+ t.apiKeyPlacement === d.Header && /* @__PURE__ */ E(B, {
186
+ id: i("apiKeyPrefix"),
187
+ label: a("integrations.connectorSubmissions.fields.apiKeyPrefix", "Prefix"),
188
188
  children: /* @__PURE__ */ E("input", {
189
189
  ...r("apiKeyPrefix"),
190
190
  maxLength: 32,
@@ -194,18 +194,18 @@ function H({ form: e, set: n, text: r, id: a }) {
194
194
  ]
195
195
  });
196
196
  }
197
- function U({ form: e, set: n, text: r, id: i }) {
198
- let s = t(), c = V();
197
+ function U({ form: t, set: n, text: r, id: i }) {
198
+ let a = e(), o = V();
199
199
  return /* @__PURE__ */ D("div", {
200
200
  className: "space-y-4 rounded-lg border border-border-subtle p-4",
201
201
  "data-testid": "oauth-settings",
202
202
  children: [
203
203
  /* @__PURE__ */ D("div", {
204
204
  className: "rounded-lg bg-bg-sunken px-3 py-2 text-xs text-text-secondary",
205
- children: [/* @__PURE__ */ E("p", { children: s("integrations.connectorSubmissions.oauth.redirectHint", "Register this redirect URI with your OAuth app. Alpha and production are separate catalogs: submit in each with the client registered for it.") }), /* @__PURE__ */ E("p", {
205
+ children: [/* @__PURE__ */ E("p", { children: a("integrations.connectorSubmissions.oauth.redirectHint", "Register this redirect URI with your OAuth app. Alpha and production are separate catalogs: submit in each with the client registered for it.") }), /* @__PURE__ */ E("p", {
206
206
  className: "mt-1 font-mono text-text-primary break-all",
207
207
  "data-testid": "oauth-redirect-uri",
208
- children: c
208
+ children: o
209
209
  })]
210
210
  }),
211
211
  /* @__PURE__ */ D("div", {
@@ -213,7 +213,7 @@ function U({ form: e, set: n, text: r, id: i }) {
213
213
  children: [
214
214
  /* @__PURE__ */ E(B, {
215
215
  id: i("oauthAuthorizeUrl"),
216
- label: s("integrations.connectorSubmissions.fields.oauthAuthorizeUrl", "Authorization URL"),
216
+ label: a("integrations.connectorSubmissions.fields.oauthAuthorizeUrl", "Authorization URL"),
217
217
  required: !0,
218
218
  children: /* @__PURE__ */ E("input", {
219
219
  ...r("oauthAuthorizeUrl"),
@@ -224,7 +224,7 @@ function U({ form: e, set: n, text: r, id: i }) {
224
224
  }),
225
225
  /* @__PURE__ */ E(B, {
226
226
  id: i("oauthTokenUrl"),
227
- label: s("integrations.connectorSubmissions.fields.oauthTokenUrl", "Token URL"),
227
+ label: a("integrations.connectorSubmissions.fields.oauthTokenUrl", "Token URL"),
228
228
  required: !0,
229
229
  children: /* @__PURE__ */ E("input", {
230
230
  ...r("oauthTokenUrl"),
@@ -235,7 +235,7 @@ function U({ form: e, set: n, text: r, id: i }) {
235
235
  }),
236
236
  /* @__PURE__ */ E(B, {
237
237
  id: i("oauthRevokeUrl"),
238
- label: s("integrations.connectorSubmissions.fields.oauthRevokeUrl", "Revocation URL"),
238
+ label: a("integrations.connectorSubmissions.fields.oauthRevokeUrl", "Revocation URL"),
239
239
  children: /* @__PURE__ */ E("input", {
240
240
  ...r("oauthRevokeUrl"),
241
241
  type: "url"
@@ -243,7 +243,7 @@ function U({ form: e, set: n, text: r, id: i }) {
243
243
  }),
244
244
  /* @__PURE__ */ E(B, {
245
245
  id: i("oauthUserInfoUrl"),
246
- label: s("integrations.connectorSubmissions.fields.oauthUserInfoUrl", "User info URL"),
246
+ label: a("integrations.connectorSubmissions.fields.oauthUserInfoUrl", "User info URL"),
247
247
  children: /* @__PURE__ */ E("input", {
248
248
  ...r("oauthUserInfoUrl"),
249
249
  type: "url"
@@ -253,42 +253,42 @@ function U({ form: e, set: n, text: r, id: i }) {
253
253
  }),
254
254
  /* @__PURE__ */ E(B, {
255
255
  id: i("oauthScopes"),
256
- label: s("integrations.connectorSubmissions.fields.oauthScopes", "Scopes"),
257
- hint: s("integrations.connectorSubmissions.fields.oauthScopesHint", "Separated by spaces or commas, e.g. contacts.read deals.write"),
256
+ label: a("integrations.connectorSubmissions.fields.oauthScopes", "Scopes"),
257
+ hint: a("integrations.connectorSubmissions.fields.oauthScopesHint", "Separated by spaces or commas, e.g. contacts.read deals.write"),
258
258
  children: /* @__PURE__ */ E("input", { ...r("oauthScopes") })
259
259
  }),
260
260
  /* @__PURE__ */ D("div", {
261
261
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
262
262
  children: [/* @__PURE__ */ E(B, {
263
263
  id: i("oauthScopeSeparator"),
264
- label: s("integrations.connectorSubmissions.fields.oauthScopeSeparator", "Scope separator"),
264
+ label: a("integrations.connectorSubmissions.fields.oauthScopeSeparator", "Scope separator"),
265
265
  children: /* @__PURE__ */ D("select", {
266
266
  id: i("oauthScopeSeparator"),
267
- value: e.oauthScopeSeparator,
267
+ value: t.oauthScopeSeparator,
268
268
  onChange: (e) => n("oauthScopeSeparator", e.target.value),
269
269
  className: F,
270
270
  children: [/* @__PURE__ */ E("option", {
271
- value: a.Space,
272
- children: s("integrations.connectorSubmissions.oauth.separatorSpace", "Space")
271
+ value: f.Space,
272
+ children: a("integrations.connectorSubmissions.oauth.separatorSpace", "Space")
273
273
  }), /* @__PURE__ */ E("option", {
274
- value: a.Comma,
275
- children: s("integrations.connectorSubmissions.oauth.separatorComma", "Comma")
274
+ value: f.Comma,
275
+ children: a("integrations.connectorSubmissions.oauth.separatorComma", "Comma")
276
276
  })]
277
277
  })
278
278
  }), /* @__PURE__ */ E(B, {
279
279
  id: i("oauthTokenAuthMethod"),
280
- label: s("integrations.connectorSubmissions.fields.oauthTokenAuthMethod", "Token endpoint authentication"),
280
+ label: a("integrations.connectorSubmissions.fields.oauthTokenAuthMethod", "Token endpoint authentication"),
281
281
  children: /* @__PURE__ */ D("select", {
282
282
  id: i("oauthTokenAuthMethod"),
283
- value: e.oauthTokenAuthMethod,
283
+ value: t.oauthTokenAuthMethod,
284
284
  onChange: (e) => n("oauthTokenAuthMethod", e.target.value),
285
285
  className: F,
286
286
  children: [/* @__PURE__ */ E("option", {
287
- value: o.ClientSecretPost,
288
- children: s("integrations.connectorSubmissions.oauth.clientSecretPost", "Client secret in the request body")
287
+ value: p.ClientSecretPost,
288
+ children: a("integrations.connectorSubmissions.oauth.clientSecretPost", "Client secret in the request body")
289
289
  }), /* @__PURE__ */ E("option", {
290
- value: o.ClientSecretBasic,
291
- children: s("integrations.connectorSubmissions.oauth.clientSecretBasic", "HTTP Basic authentication")
290
+ value: p.ClientSecretBasic,
291
+ children: a("integrations.connectorSubmissions.oauth.clientSecretBasic", "HTTP Basic authentication")
292
292
  })]
293
293
  })
294
294
  })]
@@ -297,15 +297,15 @@ function U({ form: e, set: n, text: r, id: i }) {
297
297
  className: "flex items-center gap-2 text-sm text-text-primary",
298
298
  children: [/* @__PURE__ */ E("input", {
299
299
  type: "checkbox",
300
- checked: e.oauthPkce,
300
+ checked: t.oauthPkce,
301
301
  onChange: (e) => n("oauthPkce", e.target.checked)
302
- }), s("integrations.connectorSubmissions.fields.oauthPkce", "Use PKCE (recommended)")]
302
+ }), a("integrations.connectorSubmissions.fields.oauthPkce", "Use PKCE (recommended)")]
303
303
  }),
304
304
  /* @__PURE__ */ D("div", {
305
305
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
306
306
  children: [/* @__PURE__ */ E(B, {
307
307
  id: i("oauthClientId"),
308
- label: s("integrations.connectorSubmissions.fields.oauthClientId", "OAuth client id"),
308
+ label: a("integrations.connectorSubmissions.fields.oauthClientId", "OAuth client id"),
309
309
  required: !0,
310
310
  children: /* @__PURE__ */ E("input", {
311
311
  ...r("oauthClientId"),
@@ -315,8 +315,8 @@ function U({ form: e, set: n, text: r, id: i }) {
315
315
  })
316
316
  }), /* @__PURE__ */ E(B, {
317
317
  id: i("oauthClientSecret"),
318
- label: s("integrations.connectorSubmissions.fields.oauthClientSecret", "Client secret"),
319
- hint: s("integrations.connectorSubmissions.oauth.secretHint", "Write-only: stored encrypted and never shown again."),
318
+ label: a("integrations.connectorSubmissions.fields.oauthClientSecret", "Client secret"),
319
+ hint: a("integrations.connectorSubmissions.oauth.secretHint", "Write-only: stored encrypted and never shown again."),
320
320
  required: !0,
321
321
  children: /* @__PURE__ */ E("input", {
322
322
  ...r("oauthClientSecret"),
@@ -330,8 +330,8 @@ function U({ form: e, set: n, text: r, id: i }) {
330
330
  ]
331
331
  });
332
332
  }
333
- function W({ form: e, set: n, text: r, id: i }) {
334
- let a = t();
333
+ function W({ form: t, set: n, text: r, id: i }) {
334
+ let a = e();
335
335
  return /* @__PURE__ */ D(k, {
336
336
  className: "p-5 space-y-4 lg:col-span-2",
337
337
  children: [
@@ -404,7 +404,7 @@ function W({ form: e, set: n, text: r, id: i }) {
404
404
  children: [/* @__PURE__ */ E("input", {
405
405
  type: "checkbox",
406
406
  className: "mt-0.5",
407
- checked: e.acceptedPolicy,
407
+ checked: t.acceptedPolicy,
408
408
  onChange: (e) => n("acceptedPolicy", e.target.checked)
409
409
  }), /* @__PURE__ */ E("span", {
410
410
  className: "text-sm text-text-primary",
@@ -414,8 +414,8 @@ function W({ form: e, set: n, text: r, id: i }) {
414
414
  ]
415
415
  });
416
416
  }
417
- function G({ onDone: e }) {
418
- let n = t(), i = g(), a = (e) => `${i}-${e}`, [o, s] = _(I), [c, l] = _(""), { submitConnector: u, loading: f } = d(), p = (e, t) => s((n) => ({
417
+ function G({ onDone: t }) {
418
+ let n = e(), r = g(), a = (e) => `${r}-${e}`, [o, s] = _(I), [c, l] = _(""), { submitConnector: d, loading: f } = i(), p = (e, t) => s((n) => ({
419
419
  ...n,
420
420
  [e]: t
421
421
  })), m = (e) => ({
@@ -425,10 +425,10 @@ function G({ onDone: e }) {
425
425
  className: P
426
426
  });
427
427
  return /* @__PURE__ */ D("form", {
428
- onSubmit: async (t) => {
429
- t.preventDefault(), l("");
428
+ onSubmit: async (e) => {
429
+ e.preventDefault(), l("");
430
430
  try {
431
- await u(z(o)), s(I), e();
431
+ await d(z(o)), s(I), t();
432
432
  } catch (e) {
433
433
  l(e instanceof Error ? e.message : n("integrations.connectorSubmissions.errors.submitFailed", "Could not submit the connector"));
434
434
  }
@@ -579,13 +579,13 @@ function G({ onDone: e }) {
579
579
  })
580
580
  })]
581
581
  }),
582
- o.authType === r.ApiKey && /* @__PURE__ */ E(H, {
582
+ o.authType === u.ApiKey && /* @__PURE__ */ E(H, {
583
583
  form: o,
584
584
  set: p,
585
585
  text: m,
586
586
  id: a
587
587
  }),
588
- o.authType === r.Oauth2 && /* @__PURE__ */ E(U, {
588
+ o.authType === u.Oauth2 && /* @__PURE__ */ E(U, {
589
589
  form: o,
590
590
  set: p,
591
591
  text: m,
@@ -628,7 +628,7 @@ function G({ onDone: e }) {
628
628
  children: [/* @__PURE__ */ D(O, {
629
629
  type: "button",
630
630
  variant: "ghost",
631
- onClick: e,
631
+ onClick: t,
632
632
  children: [/* @__PURE__ */ E(w, { size: 16 }), n("integrations.common.cancel", "Cancel")]
633
633
  }), /* @__PURE__ */ D(O, {
634
634
  type: "submit",
@@ -642,27 +642,27 @@ function G({ onDone: e }) {
642
642
  ]
643
643
  });
644
644
  }
645
- function K({ submissionId: e, initialClientId: n, onDone: r }) {
646
- let i = t(), a = g(), [o, s] = _(n), [c, l] = _(""), [u, d] = _(""), { updateOAuthClient: p, loading: m } = f();
645
+ function K({ submissionId: t, initialClientId: n, onDone: r }) {
646
+ let i = e(), o = g(), [s, c] = _(n), [l, u] = _(""), [d, f] = _(""), { updateOAuthClient: p, loading: m } = a();
647
647
  return /* @__PURE__ */ D("form", {
648
- onSubmit: async (t) => {
649
- t.preventDefault(), d("");
648
+ onSubmit: async (e) => {
649
+ e.preventDefault(), f("");
650
650
  try {
651
- await p(e, {
652
- clientId: o.trim(),
653
- clientSecret: c
654
- }), l(""), r();
651
+ await p(t, {
652
+ clientId: s.trim(),
653
+ clientSecret: l
654
+ }), u(""), r();
655
655
  } catch (e) {
656
- d(e instanceof Error ? e.message : String(e));
656
+ f(e instanceof Error ? e.message : String(e));
657
657
  }
658
658
  },
659
659
  className: "rounded-xl border border-border-seam bg-bg-surface p-4 space-y-3",
660
660
  "aria-label": i("integrations.connectorSubmissions.oauth.updateTitle", "Update OAuth client"),
661
661
  children: [
662
- u && /* @__PURE__ */ E("div", {
662
+ d && /* @__PURE__ */ E("div", {
663
663
  role: "alert",
664
664
  className: "rounded-lg border border-border-seam bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
665
- children: u
665
+ children: d
666
666
  }),
667
667
  /* @__PURE__ */ E("p", {
668
668
  className: "text-xs text-text-secondary",
@@ -671,26 +671,26 @@ function K({ submissionId: e, initialClientId: n, onDone: r }) {
671
671
  /* @__PURE__ */ D("div", {
672
672
  className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
673
673
  children: [/* @__PURE__ */ E(B, {
674
- id: `${a}-clientId`,
674
+ id: `${o}-clientId`,
675
675
  label: i("integrations.connectorSubmissions.fields.oauthClientId", "OAuth client id"),
676
676
  required: !0,
677
677
  children: /* @__PURE__ */ E("input", {
678
- id: `${a}-clientId`,
679
- value: o,
680
- onChange: (e) => s(e.target.value),
678
+ id: `${o}-clientId`,
679
+ value: s,
680
+ onChange: (e) => c(e.target.value),
681
681
  required: !0,
682
682
  maxLength: 256,
683
683
  autoComplete: "off",
684
684
  className: P
685
685
  })
686
686
  }), /* @__PURE__ */ E(B, {
687
- id: `${a}-clientSecret`,
687
+ id: `${o}-clientSecret`,
688
688
  label: i("integrations.connectorSubmissions.fields.oauthClientSecret", "Client secret"),
689
689
  required: !0,
690
690
  children: /* @__PURE__ */ E("input", {
691
- id: `${a}-clientSecret`,
692
- value: c,
693
- onChange: (e) => l(e.target.value),
691
+ id: `${o}-clientSecret`,
692
+ value: l,
693
+ onChange: (e) => u(e.target.value),
694
694
  required: !0,
695
695
  type: "password",
696
696
  maxLength: 1024,
@@ -721,7 +721,7 @@ function K({ submissionId: e, initialClientId: n, onDone: r }) {
721
721
  });
722
722
  }
723
723
  function q() {
724
- let { basePath: r = "/", navigate: i } = e(), a = t(), [o, c] = _(!1), [d, f] = _(null), [g, S] = _(null), [w, k] = _(""), [M, N] = _(0), { submissions: P, total: F, hasMore: I, loading: L, error: R } = u(M), { withdraw: z, loading: B } = p();
724
+ let { basePath: i = "/", navigate: a } = t(), u = e(), [d, f] = _(!1), [p, h] = _(null), [g, S] = _(null), [w, k] = _(""), [M, N] = _(0), { submissions: P, total: F, hasMore: I, loading: L, error: R } = r(M), { withdraw: z, loading: B } = o();
725
725
  return /* @__PURE__ */ D("div", {
726
726
  className: "space-y-6 p-4 sm:p-6 max-w-5xl mx-auto",
727
727
  children: [
@@ -731,8 +731,8 @@ function q() {
731
731
  /* @__PURE__ */ E(O, {
732
732
  variant: "ghost",
733
733
  size: "icon",
734
- onClick: () => i?.(n(r, "providers")),
735
- "aria-label": a("integrations.common.back", "Back"),
734
+ onClick: () => a?.(n(i, "providers")),
735
+ "aria-label": u("integrations.common.back", "Back"),
736
736
  children: /* @__PURE__ */ E(v, { size: 20 })
737
737
  }),
738
738
  /* @__PURE__ */ E("div", {
@@ -746,23 +746,23 @@ function q() {
746
746
  className: "min-w-0 flex-1",
747
747
  children: [/* @__PURE__ */ E("h1", {
748
748
  className: "text-2xl font-bold text-text-primary",
749
- children: a("integrations.connectorSubmissions.title", "Publish a connector")
749
+ children: u("integrations.connectorSubmissions.title", "Publish a connector")
750
750
  }), /* @__PURE__ */ E("p", {
751
751
  className: "text-sm text-text-secondary mt-1",
752
- children: a("integrations.connectorSubmissions.subtitle", "Submit your service to the integrations catalog and follow its review.")
752
+ children: u("integrations.connectorSubmissions.subtitle", "Submit your service to the integrations catalog and follow its review.")
753
753
  })]
754
754
  }),
755
- !o && /* @__PURE__ */ D(O, {
756
- onClick: () => c(!0),
757
- children: [/* @__PURE__ */ E(x, { size: 16 }), a("integrations.connectorSubmissions.actions.new", "Submit a connector")]
755
+ !d && /* @__PURE__ */ D(O, {
756
+ onClick: () => f(!0),
757
+ children: [/* @__PURE__ */ E(x, { size: 16 }), u("integrations.connectorSubmissions.actions.new", "Submit a connector")]
758
758
  })
759
759
  ]
760
760
  }),
761
761
  /* @__PURE__ */ E(j, {
762
762
  icon: /* @__PURE__ */ E(C, { size: 16 }),
763
- children: a("integrations.connectorSubmissions.purpose", "Third-party developers can list their service in the integrations catalog. Connectors use an API key, a bearer token or basic auth that each workspace enters for itself, or OAuth 2.0 with your own OAuth app, whose secret is stored encrypted and never shown. A Burdenoff reviewer checks every submission within five business days; once approved, every workspace can connect to it.")
763
+ children: u("integrations.connectorSubmissions.purpose", "Third-party developers can list their service in the integrations catalog. Connectors use an API key, a bearer token or basic auth that each workspace enters for itself, or OAuth 2.0 with your own OAuth app, whose secret is stored encrypted and never shown. A Burdenoff reviewer checks every submission within five business days; once approved, every workspace can connect to it.")
764
764
  }),
765
- o && /* @__PURE__ */ E(G, { onDone: () => c(!1) }),
765
+ d && /* @__PURE__ */ E(G, { onDone: () => f(!1) }),
766
766
  w && /* @__PURE__ */ E("div", {
767
767
  role: "alert",
768
768
  className: "rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text",
@@ -775,7 +775,7 @@ function q() {
775
775
  /* @__PURE__ */ E("h2", {
776
776
  id: "connector-submissions-heading",
777
777
  className: "text-lg font-semibold text-text-primary",
778
- children: a("integrations.connectorSubmissions.mine", "Your submissions")
778
+ children: u("integrations.connectorSubmissions.mine", "Your submissions")
779
779
  }),
780
780
  L && P.length === 0 ? /* @__PURE__ */ E("div", {
781
781
  className: "flex justify-center py-10",
@@ -789,39 +789,39 @@ function q() {
789
789
  children: R.message
790
790
  }) : P.length === 0 ? /* @__PURE__ */ E(A, {
791
791
  illustration: "empty-data",
792
- title: a("integrations.connectorSubmissions.empty.title", "No submissions yet"),
793
- description: a("integrations.connectorSubmissions.empty.description", "Submit a connector to see it here while it is reviewed.")
792
+ title: u("integrations.connectorSubmissions.empty.title", "No submissions yet"),
793
+ description: u("integrations.connectorSubmissions.empty.description", "Submit a connector to see it here while it is reviewed.")
794
794
  }) : P.map((e) => {
795
- let t = e.status === s.PendingReview, o = e.status === s.Approved, c = !!e.oauth && (t || o);
795
+ let t = e.status === m.PendingReview, r = e.status === m.Approved, o = !!e.oauth && (t || r);
796
796
  return /* @__PURE__ */ D("div", {
797
797
  className: "space-y-2",
798
- children: [/* @__PURE__ */ E(m, {
798
+ children: [/* @__PURE__ */ E(s, {
799
799
  submission: e,
800
- actions: /* @__PURE__ */ D(T, { children: [c && /* @__PURE__ */ D(O, {
800
+ actions: /* @__PURE__ */ D(T, { children: [o && /* @__PURE__ */ D(O, {
801
801
  variant: "ghost",
802
802
  size: "sm",
803
803
  onClick: () => S((t) => t === e.id ? null : e.id),
804
- children: [/* @__PURE__ */ E(y, { size: 14 }), a("integrations.connectorSubmissions.actions.updateOAuthClient", "Update OAuth client")]
804
+ children: [/* @__PURE__ */ E(y, { size: 14 }), u("integrations.connectorSubmissions.actions.updateOAuthClient", "Update OAuth client")]
805
805
  }), t ? /* @__PURE__ */ E(O, {
806
806
  variant: "ghost",
807
807
  size: "sm",
808
- onClick: () => f(e.id),
808
+ onClick: () => h(e.id),
809
809
  disabled: B,
810
- children: a("integrations.connectorSubmissions.actions.withdraw", "Withdraw")
811
- }) : o && e.providerId ? /* @__PURE__ */ E(O, {
810
+ children: u("integrations.connectorSubmissions.actions.withdraw", "Withdraw")
811
+ }) : r && e.providerId ? /* @__PURE__ */ E(O, {
812
812
  variant: "ghost",
813
813
  size: "sm",
814
- onClick: () => i?.(n(r, `providers/${e.providerId}`)),
815
- children: a("integrations.connectorSubmissions.actions.viewListing", "View listing")
814
+ onClick: () => a?.(n(i, `providers/${e.providerId}`)),
815
+ children: u("integrations.connectorSubmissions.actions.viewListing", "View listing")
816
816
  }) : null] })
817
- }), c && g === e.id && e.oauth && /* @__PURE__ */ E(K, {
817
+ }), o && g === e.id && e.oauth && /* @__PURE__ */ E(K, {
818
818
  submissionId: e.id,
819
819
  initialClientId: e.oauth.clientId,
820
820
  onDone: () => S(null)
821
821
  })]
822
822
  }, e.id);
823
823
  }),
824
- /* @__PURE__ */ E(h, {
824
+ /* @__PURE__ */ E(c, {
825
825
  offset: M,
826
826
  count: P.length,
827
827
  total: F,
@@ -833,31 +833,30 @@ function q() {
833
833
  ]
834
834
  }),
835
835
  /* @__PURE__ */ E(l, {
836
- open: d !== null,
837
- title: a("integrations.connectorSubmissions.withdraw.title", "Withdraw this submission?"),
838
- description: a("integrations.connectorSubmissions.withdraw.description", "The reviewer will no longer see it. You can submit the connector again later."),
839
- confirmLabel: a("integrations.connectorSubmissions.actions.withdraw", "Withdraw"),
840
- cancelLabel: a("integrations.common.cancel", "Cancel"),
836
+ open: p !== null,
837
+ title: u("integrations.connectorSubmissions.withdraw.title", "Withdraw this submission?"),
838
+ description: u("integrations.connectorSubmissions.withdraw.description", "The reviewer will no longer see it. You can submit the connector again later."),
839
+ confirmLabel: u("integrations.connectorSubmissions.actions.withdraw", "Withdraw"),
840
+ cancelLabel: u("integrations.common.cancel", "Cancel"),
841
841
  loading: B,
842
842
  destructive: !0,
843
843
  onConfirm: async () => {
844
- if (d) {
844
+ if (p) {
845
845
  k("");
846
846
  try {
847
- await z(d);
847
+ await z(p);
848
848
  } catch (e) {
849
849
  k(e instanceof Error ? e.message : String(e));
850
850
  } finally {
851
- f(null);
851
+ h(null);
852
852
  }
853
853
  }
854
854
  },
855
- onCancel: () => f(null)
855
+ onCancel: () => h(null)
856
856
  })
857
857
  ]
858
858
  });
859
859
  }
860
- //#endregion
861
860
  export { q as ConnectorSubmissionsPage };
862
861
 
863
862
  //# sourceMappingURL=ConnectorSubmissionsPage.js.map