@burdenoff/microfe-devportal 2026.1107.3 → 2026.1108.2

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 (1400) hide show
  1. package/dist/__tests__/utils/renderWithProviders.d.ts +0 -2
  2. package/dist/_virtual/_rolldown/runtime.js +4 -5
  3. package/dist/dev/main.d.ts +0 -1
  4. package/dist/devportal/AdminDevportalRoot.d.ts +0 -2
  5. package/dist/devportal/AdminDevportalRoot.js +9 -6
  6. package/dist/devportal/AdminDevportalRoot.js.map +1 -1
  7. package/dist/devportal/AdminDevportalRoutes.d.ts +1 -2
  8. package/dist/devportal/AdminDevportalRoutes.js +1 -2
  9. package/dist/devportal/AdminDevportalRoutes.js.map +1 -1
  10. package/dist/devportal/DevportalRoot.d.ts +0 -2
  11. package/dist/devportal/DevportalRoot.js +13 -10
  12. package/dist/devportal/DevportalRoot.js.map +1 -1
  13. package/dist/devportal/DevportalRoutes.d.ts +1 -2
  14. package/dist/devportal/DevportalRoutes.js +46 -40
  15. package/dist/devportal/DevportalRoutes.js.map +1 -1
  16. package/dist/devportal/components/AppCard.d.ts +0 -2
  17. package/dist/devportal/components/AppCard.js +21 -22
  18. package/dist/devportal/components/AppCard.js.map +1 -1
  19. package/dist/devportal/components/ConfirmDialog.d.ts +0 -2
  20. package/dist/devportal/components/ConfirmDialog.js +9 -10
  21. package/dist/devportal/components/ConfirmDialog.js.map +1 -1
  22. package/dist/devportal/components/DataTable.d.ts +1 -3
  23. package/dist/devportal/components/DataTable.js +20 -21
  24. package/dist/devportal/components/DataTable.js.map +1 -1
  25. package/dist/devportal/components/EmptyState.d.ts +0 -2
  26. package/dist/devportal/components/EmptyState.js +1 -2
  27. package/dist/devportal/components/EmptyState.js.map +1 -1
  28. package/dist/devportal/components/FeatureFlaggedRoute.d.ts +0 -2
  29. package/dist/devportal/components/FeatureFlaggedRoute.js +1 -2
  30. package/dist/devportal/components/FeatureFlaggedRoute.js.map +1 -1
  31. package/dist/devportal/components/FormField.d.ts +0 -2
  32. package/dist/devportal/components/FormField.js +23 -24
  33. package/dist/devportal/components/FormField.js.map +1 -1
  34. package/dist/devportal/components/GrantDelegationModal.d.ts +0 -2
  35. package/dist/devportal/components/GrantDelegationModal.js +1 -2
  36. package/dist/devportal/components/GrantDelegationModal.js.map +1 -1
  37. package/dist/devportal/components/ImageUploadField.d.ts +0 -2
  38. package/dist/devportal/components/ImageUploadField.js +1 -2
  39. package/dist/devportal/components/ImageUploadField.js.map +1 -1
  40. package/dist/devportal/components/LoadingState.d.ts +0 -2
  41. package/dist/devportal/components/LoadingState.js +6 -7
  42. package/dist/devportal/components/LoadingState.js.map +1 -1
  43. package/dist/devportal/components/ManifestViewer.d.ts +0 -2
  44. package/dist/devportal/components/ManifestViewer.js +1 -2
  45. package/dist/devportal/components/ManifestViewer.js.map +1 -1
  46. package/dist/devportal/components/MarkdownEditor.d.ts +0 -2
  47. package/dist/devportal/components/MarkdownEditor.js +1 -2
  48. package/dist/devportal/components/MarkdownEditor.js.map +1 -1
  49. package/dist/devportal/components/MultiSelectCombobox.d.ts +1 -2
  50. package/dist/devportal/components/MultiSelectCombobox.js +1 -2
  51. package/dist/devportal/components/MultiSelectCombobox.js.map +1 -1
  52. package/dist/devportal/components/NodeSmokePanel.d.ts +0 -2
  53. package/dist/devportal/components/NodeSmokePanel.js +17 -18
  54. package/dist/devportal/components/NodeSmokePanel.js.map +1 -1
  55. package/dist/devportal/components/OnboardingChecklist.d.ts +0 -2
  56. package/dist/devportal/components/OnboardingChecklist.js +15 -16
  57. package/dist/devportal/components/OnboardingChecklist.js.map +1 -1
  58. package/dist/devportal/components/PackageValidationPanel.d.ts +0 -2
  59. package/dist/devportal/components/PackageValidationPanel.js +12 -13
  60. package/dist/devportal/components/PackageValidationPanel.js.map +1 -1
  61. package/dist/devportal/components/PageLayout.d.ts +0 -2
  62. package/dist/devportal/components/PageLayout.js +16 -17
  63. package/dist/devportal/components/PageLayout.js.map +1 -1
  64. package/dist/devportal/components/PermissionGuard.d.ts +0 -2
  65. package/dist/devportal/components/PermissionGuard.js +5 -6
  66. package/dist/devportal/components/PermissionGuard.js.map +1 -1
  67. package/dist/devportal/components/RegisterPickupLocationModal.d.ts +0 -2
  68. package/dist/devportal/components/RegisterPickupLocationModal.js +13 -14
  69. package/dist/devportal/components/RegisterPickupLocationModal.js.map +1 -1
  70. package/dist/devportal/components/ReportOrderIssueModal.d.ts +0 -2
  71. package/dist/devportal/components/ReportOrderIssueModal.js +1 -2
  72. package/dist/devportal/components/ReportOrderIssueModal.js.map +1 -1
  73. package/dist/devportal/components/SecretDisplay.d.ts +0 -2
  74. package/dist/devportal/components/SecretDisplay.js +8 -9
  75. package/dist/devportal/components/SecretDisplay.js.map +1 -1
  76. package/dist/devportal/components/SectionNav.d.ts +0 -2
  77. package/dist/devportal/components/SectionNav.js +11 -12
  78. package/dist/devportal/components/SectionNav.js.map +1 -1
  79. package/dist/devportal/components/SelectionCheckbox.d.ts +1 -2
  80. package/dist/devportal/components/SelectionCheckbox.js +1 -2
  81. package/dist/devportal/components/SelectionCheckbox.js.map +1 -1
  82. package/dist/devportal/components/StatCard.d.ts +0 -2
  83. package/dist/devportal/components/StatCard.js +1 -2
  84. package/dist/devportal/components/StatCard.js.map +1 -1
  85. package/dist/devportal/components/StatusBadge.d.ts +0 -2
  86. package/dist/devportal/components/StatusBadge.js +18 -19
  87. package/dist/devportal/components/StatusBadge.js.map +1 -1
  88. package/dist/devportal/components/TelemetryErrorBoundary.d.ts +0 -2
  89. package/dist/devportal/components/TelemetryErrorBoundary.js +1 -2
  90. package/dist/devportal/components/TelemetryErrorBoundary.js.map +1 -1
  91. package/dist/devportal/components/index.d.ts +0 -1
  92. package/dist/devportal/components/index.js +22 -21
  93. package/dist/devportal/constants/appCategories.d.ts +0 -1
  94. package/dist/devportal/constants/appCategories.js +1 -2
  95. package/dist/devportal/constants/appCategories.js.map +1 -1
  96. package/dist/devportal/constants/developerLinks.d.ts +0 -1
  97. package/dist/devportal/constants/developerLinks.js +23 -23
  98. package/dist/devportal/constants/developerLinks.js.map +1 -1
  99. package/dist/devportal/constants/permissions.d.ts +0 -1
  100. package/dist/devportal/constants/permissions.js +1 -2
  101. package/dist/devportal/constants/permissions.js.map +1 -1
  102. package/dist/devportal/events/index.d.ts +0 -1
  103. package/dist/devportal/events/index.js +1 -2
  104. package/dist/devportal/events/index.js.map +1 -1
  105. package/dist/devportal/hooks/DevPortalProvider.d.ts +1 -3
  106. package/dist/devportal/hooks/DevPortalProvider.js +2 -3
  107. package/dist/devportal/hooks/DevPortalProvider.js.map +1 -1
  108. package/dist/devportal/hooks/index.d.ts +0 -1
  109. package/dist/devportal/hooks/index.js +6 -5
  110. package/dist/devportal/hooks/useCarrierPickupLocations.d.ts +0 -1
  111. package/dist/devportal/hooks/useCarrierPickupLocations.js +1 -2
  112. package/dist/devportal/hooks/useCarrierPickupLocations.js.map +1 -1
  113. package/dist/devportal/hooks/useGraphQL.d.ts +0 -2
  114. package/dist/devportal/hooks/useGraphQL.js +42 -53
  115. package/dist/devportal/hooks/useGraphQL.js.map +1 -1
  116. package/dist/devportal/hooks/useIsSellerSection.d.ts +0 -1
  117. package/dist/devportal/hooks/useIsSellerSection.js +1 -2
  118. package/dist/devportal/hooks/useIsSellerSection.js.map +1 -1
  119. package/dist/devportal/hooks/useOrganizationPickupAddresses.d.ts +0 -1
  120. package/dist/devportal/hooks/useOrganizationPickupAddresses.js +3 -8
  121. package/dist/devportal/hooks/useOrganizationPickupAddresses.js.map +1 -1
  122. package/dist/devportal/hooks/usePackageUpload.d.ts +0 -1
  123. package/dist/devportal/hooks/usePackageUpload.js +4 -4
  124. package/dist/devportal/hooks/usePackageUpload.js.map +1 -1
  125. package/dist/devportal/hooks/usePermission.d.ts +0 -2
  126. package/dist/devportal/hooks/usePermission.js +2 -3
  127. package/dist/devportal/hooks/usePermission.js.map +1 -1
  128. package/dist/devportal/hooks/useProducts.d.ts +0 -1
  129. package/dist/devportal/hooks/useProducts.js +1 -2
  130. package/dist/devportal/hooks/useProducts.js.map +1 -1
  131. package/dist/devportal/hooks/useSellerOrganization.d.ts +0 -1
  132. package/dist/devportal/hooks/useSellerOrganization.js +1 -2
  133. package/dist/devportal/hooks/useSellerOrganization.js.map +1 -1
  134. package/dist/devportal/index.d.ts +0 -1
  135. package/dist/devportal/index.js +13 -12
  136. package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts +0 -2
  137. package/dist/devportal/pages/AdminOrganizationVerificationPage.js +13 -13
  138. package/dist/devportal/pages/AdminOrganizationVerificationPage.js.map +1 -1
  139. package/dist/devportal/pages/AdminReviewPage.d.ts +0 -2
  140. package/dist/devportal/pages/AdminReviewPage.js +134 -135
  141. package/dist/devportal/pages/AdminReviewPage.js.map +1 -1
  142. package/dist/devportal/pages/AnalyticsDashboardPage.d.ts +0 -2
  143. package/dist/devportal/pages/AnalyticsDashboardPage.js +66 -67
  144. package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
  145. package/dist/devportal/pages/ApiKeysPage.d.ts +0 -2
  146. package/dist/devportal/pages/ApiKeysPage.js +127 -128
  147. package/dist/devportal/pages/ApiKeysPage.js.map +1 -1
  148. package/dist/devportal/pages/AppLogsPage.d.ts +0 -2
  149. package/dist/devportal/pages/AppLogsPage.js +18 -19
  150. package/dist/devportal/pages/AppLogsPage.js.map +1 -1
  151. package/dist/devportal/pages/ApplicationDetailPage.d.ts +0 -2
  152. package/dist/devportal/pages/ApplicationDetailPage.js +779 -778
  153. package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
  154. package/dist/devportal/pages/ApplicationVersionsPage.d.ts +0 -2
  155. package/dist/devportal/pages/ApplicationVersionsPage.js +482 -483
  156. package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
  157. package/dist/devportal/pages/ApplicationsPage.d.ts +0 -2
  158. package/dist/devportal/pages/ApplicationsPage.js +35 -36
  159. package/dist/devportal/pages/ApplicationsPage.js.map +1 -1
  160. package/dist/devportal/pages/CreateApiKeyPage.d.ts +0 -2
  161. package/dist/devportal/pages/CreateApiKeyPage.js +39 -39
  162. package/dist/devportal/pages/CreateApiKeyPage.js.map +1 -1
  163. package/dist/devportal/pages/CreateApplicationPage.d.ts +0 -2
  164. package/dist/devportal/pages/CreateApplicationPage.js +136 -137
  165. package/dist/devportal/pages/CreateApplicationPage.js.map +1 -1
  166. package/dist/devportal/pages/CreateOAuthClientPage.d.ts +0 -2
  167. package/dist/devportal/pages/CreateOAuthClientPage.js +25 -24
  168. package/dist/devportal/pages/CreateOAuthClientPage.js.map +1 -1
  169. package/dist/devportal/pages/CreateOrganizationPage.d.ts +0 -2
  170. package/dist/devportal/pages/CreateOrganizationPage.js +32 -39
  171. package/dist/devportal/pages/CreateOrganizationPage.js.map +1 -1
  172. package/dist/devportal/pages/CreatePhysicalItemPage.d.ts +0 -2
  173. package/dist/devportal/pages/CreatePhysicalItemPage.js +102 -103
  174. package/dist/devportal/pages/CreatePhysicalItemPage.js.map +1 -1
  175. package/dist/devportal/pages/CreateWebhookPage.d.ts +0 -2
  176. package/dist/devportal/pages/CreateWebhookPage.js +31 -32
  177. package/dist/devportal/pages/CreateWebhookPage.js.map +1 -1
  178. package/dist/devportal/pages/DashboardPage.d.ts +0 -2
  179. package/dist/devportal/pages/DashboardPage.js +21 -22
  180. package/dist/devportal/pages/DashboardPage.js.map +1 -1
  181. package/dist/devportal/pages/DelegationsPage.d.ts +0 -2
  182. package/dist/devportal/pages/DelegationsPage.js +83 -84
  183. package/dist/devportal/pages/DelegationsPage.js.map +1 -1
  184. package/dist/devportal/pages/DocumentationPage.d.ts +0 -2
  185. package/dist/devportal/pages/DocumentationPage.js +1 -2
  186. package/dist/devportal/pages/DocumentationPage.js.map +1 -1
  187. package/dist/devportal/pages/EditApplicationPage.d.ts +0 -2
  188. package/dist/devportal/pages/EditApplicationPage.js +69 -70
  189. package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
  190. package/dist/devportal/pages/EditPhysicalItemPage.d.ts +0 -2
  191. package/dist/devportal/pages/EditPhysicalItemPage.js +334 -335
  192. package/dist/devportal/pages/EditPhysicalItemPage.js.map +1 -1
  193. package/dist/devportal/pages/InvitationDecisionPage.d.ts +0 -2
  194. package/dist/devportal/pages/InvitationDecisionPage.js +16 -17
  195. package/dist/devportal/pages/InvitationDecisionPage.js.map +1 -1
  196. package/dist/devportal/pages/ListingPreviewPage.d.ts +0 -2
  197. package/dist/devportal/pages/ListingPreviewPage.js +14 -15
  198. package/dist/devportal/pages/ListingPreviewPage.js.map +1 -1
  199. package/dist/devportal/pages/NodeLifecyclePage.d.ts +0 -2
  200. package/dist/devportal/pages/NodeLifecyclePage.js +216 -221
  201. package/dist/devportal/pages/NodeLifecyclePage.js.map +1 -1
  202. package/dist/devportal/pages/OAuthCallbackPage.d.ts +0 -2
  203. package/dist/devportal/pages/OAuthCallbackPage.js +4 -5
  204. package/dist/devportal/pages/OAuthCallbackPage.js.map +1 -1
  205. package/dist/devportal/pages/OAuthClientDetailPage.d.ts +0 -2
  206. package/dist/devportal/pages/OAuthClientDetailPage.js +17 -16
  207. package/dist/devportal/pages/OAuthClientDetailPage.js.map +1 -1
  208. package/dist/devportal/pages/OAuthClientsPage.d.ts +0 -2
  209. package/dist/devportal/pages/OAuthClientsPage.js +18 -19
  210. package/dist/devportal/pages/OAuthClientsPage.js.map +1 -1
  211. package/dist/devportal/pages/OrganizationDetailPage.d.ts +0 -2
  212. package/dist/devportal/pages/OrganizationDetailPage.js +444 -450
  213. package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -1
  214. package/dist/devportal/pages/OrganizationMembersPage.d.ts +0 -2
  215. package/dist/devportal/pages/OrganizationMembersPage.js +240 -241
  216. package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
  217. package/dist/devportal/pages/OrganizationsPage.d.ts +0 -2
  218. package/dist/devportal/pages/OrganizationsPage.js +34 -35
  219. package/dist/devportal/pages/OrganizationsPage.js.map +1 -1
  220. package/dist/devportal/pages/PublishPage.d.ts +0 -2
  221. package/dist/devportal/pages/PublishPage.js +90 -91
  222. package/dist/devportal/pages/PublishPage.js.map +1 -1
  223. package/dist/devportal/pages/PublisherPayoutsPage.d.ts +19 -0
  224. package/dist/devportal/pages/PublisherPayoutsPage.js +650 -0
  225. package/dist/devportal/pages/PublisherPayoutsPage.js.map +1 -0
  226. package/dist/devportal/pages/PublisherProfilePage.d.ts +0 -2
  227. package/dist/devportal/pages/PublisherProfilePage.js +175 -163
  228. package/dist/devportal/pages/PublisherProfilePage.js.map +1 -1
  229. package/dist/devportal/pages/ResourcesPage.d.ts +0 -2
  230. package/dist/devportal/pages/ResourcesPage.js +17 -18
  231. package/dist/devportal/pages/ResourcesPage.js.map +1 -1
  232. package/dist/devportal/pages/RevenueDashboardPage.d.ts +0 -2
  233. package/dist/devportal/pages/RevenueDashboardPage.js +308 -308
  234. package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
  235. package/dist/devportal/pages/RevenueRedirectPage.d.ts +0 -2
  236. package/dist/devportal/pages/SellerDashboardPage.d.ts +0 -2
  237. package/dist/devportal/pages/SellerDashboardPage.js +14 -15
  238. package/dist/devportal/pages/SellerDashboardPage.js.map +1 -1
  239. package/dist/devportal/pages/SellerItemsPage.d.ts +0 -2
  240. package/dist/devportal/pages/SellerItemsPage.js +8 -9
  241. package/dist/devportal/pages/SellerItemsPage.js.map +1 -1
  242. package/dist/devportal/pages/SellerOrdersPage.d.ts +0 -2
  243. package/dist/devportal/pages/SellerOrdersPage.js +10 -14
  244. package/dist/devportal/pages/SellerOrdersPage.js.map +1 -1
  245. package/dist/devportal/pages/SettingsPage.d.ts +0 -2
  246. package/dist/devportal/pages/SettingsPage.js +20 -21
  247. package/dist/devportal/pages/SettingsPage.js.map +1 -1
  248. package/dist/devportal/pages/SetupPage.d.ts +0 -2
  249. package/dist/devportal/pages/SetupPage.js +276 -277
  250. package/dist/devportal/pages/SetupPage.js.map +1 -1
  251. package/dist/devportal/pages/StoreSubmissionPage.d.ts +0 -2
  252. package/dist/devportal/pages/StoreSubmissionPage.js +4 -5
  253. package/dist/devportal/pages/StoreSubmissionPage.js.map +1 -1
  254. package/dist/devportal/pages/WebhookDetailPage.d.ts +0 -2
  255. package/dist/devportal/pages/WebhookDetailPage.js +62 -67
  256. package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
  257. package/dist/devportal/pages/WebhooksPage.d.ts +0 -2
  258. package/dist/devportal/pages/WebhooksPage.js +130 -131
  259. package/dist/devportal/pages/WebhooksPage.js.map +1 -1
  260. package/dist/devportal/providers/DevportalProvider.d.ts +0 -2
  261. package/dist/devportal/providers/DevportalProvider.js +2 -3
  262. package/dist/devportal/providers/DevportalProvider.js.map +1 -1
  263. package/dist/devportal/store/devportalStore.d.ts +0 -2
  264. package/dist/devportal/store/devportalStore.js +1 -2
  265. package/dist/devportal/store/devportalStore.js.map +1 -1
  266. package/dist/devportal/types/index.d.ts +0 -2
  267. package/dist/devportal/types/index.js +1 -2
  268. package/dist/devportal/types/index.js.map +1 -1
  269. package/dist/devportal/utils/cn.d.ts +0 -2
  270. package/dist/devportal/utils/cn.js +2 -3
  271. package/dist/devportal/utils/cn.js.map +1 -1
  272. package/dist/devportal/utils/constants.d.ts +0 -1
  273. package/dist/devportal/utils/constants.js +1 -2
  274. package/dist/devportal/utils/constants.js.map +1 -1
  275. package/dist/devportal/utils/currency.d.ts +0 -1
  276. package/dist/devportal/utils/currency.js +1 -2
  277. package/dist/devportal/utils/currency.js.map +1 -1
  278. package/dist/devportal/utils/developerOnboarding.d.ts +0 -1
  279. package/dist/devportal/utils/developerOnboarding.js +4 -5
  280. package/dist/devportal/utils/developerOnboarding.js.map +1 -1
  281. package/dist/devportal/utils/graphqlEndpoint.d.ts +0 -1
  282. package/dist/devportal/utils/graphqlEndpoint.js +1 -2
  283. package/dist/devportal/utils/graphqlEndpoint.js.map +1 -1
  284. package/dist/devportal/utils/i18n.d.ts +0 -1
  285. package/dist/devportal/utils/i18n.js +1 -2
  286. package/dist/devportal/utils/i18n.js.map +1 -1
  287. package/dist/devportal/utils/nodeLifecycle.d.ts +0 -2
  288. package/dist/devportal/utils/nodeLifecycle.js +6 -7
  289. package/dist/devportal/utils/nodeLifecycle.js.map +1 -1
  290. package/dist/devportal/utils/publisherPayouts.d.ts +136 -0
  291. package/dist/devportal/utils/publisherPayouts.js +166 -0
  292. package/dist/devportal/utils/publisherPayouts.js.map +1 -0
  293. package/dist/devportal/utils/recaptcha.d.ts +0 -1
  294. package/dist/devportal/utils/recaptcha.js +1 -2
  295. package/dist/devportal/utils/recaptcha.js.map +1 -1
  296. package/dist/devportal/utils/submitForReview.d.ts +0 -1
  297. package/dist/devportal/utils/submitForReview.js +15 -14
  298. package/dist/devportal/utils/submitForReview.js.map +1 -1
  299. package/dist/devportal/utils/uploadErrors.d.ts +0 -1
  300. package/dist/devportal/utils/uploadErrors.js +30 -30
  301. package/dist/devportal/utils/uploadErrors.js.map +1 -1
  302. package/dist/generated/global-operations.d.ts +2614 -2317
  303. package/dist/generated/global-operations.js +412 -272
  304. package/dist/generated/global-operations.js.map +1 -1
  305. package/dist/generated/global-types.d.ts +2288 -339
  306. package/dist/generated/global-types.js +4 -3
  307. package/dist/generated/global-types.js.map +1 -1
  308. package/dist/generated/wspace-operations.d.ts +31 -8
  309. package/dist/generated/wspace-operations.js +2 -3
  310. package/dist/generated/wspace-operations.js.map +1 -1
  311. package/dist/generated/wspace-types.d.ts +4 -24
  312. package/dist/index.d.ts +0 -1
  313. package/dist/index.js +1 -1
  314. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  315. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  316. package/dist/node_modules/@apollo/client/errors/ServerError.js +1 -2
  317. package/dist/node_modules/@apollo/client/errors/ServerError.js.map +1 -1
  318. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  319. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  320. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  321. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  322. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +16 -17
  323. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  324. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  325. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  326. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  327. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  328. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  329. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  330. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  331. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  332. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  333. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  334. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  335. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  336. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  337. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  338. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  339. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  340. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  341. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  342. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  343. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  344. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  345. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  346. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  347. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  348. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  349. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  350. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  351. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  352. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  353. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  354. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  355. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  356. package/dist/node_modules/@apollo/client/version.js +2 -3
  357. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  358. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  359. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  360. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  361. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  362. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  363. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  364. package/dist/node_modules/d3-array/dist/d3-array.js +204 -0
  365. package/dist/node_modules/d3-array/dist/d3-array.js.map +1 -0
  366. package/dist/node_modules/d3-color/dist/d3-color.js +388 -0
  367. package/dist/node_modules/d3-color/dist/d3-color.js.map +1 -0
  368. package/dist/node_modules/d3-format/dist/d3-format.js +186 -0
  369. package/dist/node_modules/d3-format/dist/d3-format.js.map +1 -0
  370. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +185 -0
  371. package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js.map +1 -0
  372. package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +39 -14
  373. package/dist/node_modules/d3-path/dist/d3-path.js.map +1 -0
  374. package/dist/node_modules/d3-scale/dist/d3-scale.js +622 -0
  375. package/dist/node_modules/d3-scale/dist/d3-scale.js.map +1 -0
  376. package/dist/node_modules/d3-shape/dist/d3-shape.js +901 -0
  377. package/dist/node_modules/d3-shape/dist/d3-shape.js.map +1 -0
  378. package/dist/node_modules/d3-time/dist/d3-time.js +241 -0
  379. package/dist/node_modules/d3-time/dist/d3-time.js.map +1 -0
  380. package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +229 -174
  381. package/dist/node_modules/d3-time-format/dist/d3-time-format.js.map +1 -0
  382. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -2
  383. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
  384. package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -2
  385. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
  386. package/dist/node_modules/date-fns/_lib/format/formatters.js +29 -22
  387. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
  388. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +3 -4
  389. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
  390. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +2 -5
  391. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
  392. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +2 -3
  393. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
  394. package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -2
  395. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
  396. package/dist/node_modules/date-fns/constants.js +5 -5
  397. package/dist/node_modules/date-fns/constants.js.map +1 -1
  398. package/dist/node_modules/date-fns/constructFrom.js +2 -3
  399. package/dist/node_modules/date-fns/constructFrom.js.map +1 -1
  400. package/dist/node_modules/date-fns/differenceInCalendarDays.js +2 -3
  401. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
  402. package/dist/node_modules/date-fns/format.js +15 -16
  403. package/dist/node_modules/date-fns/format.js.map +1 -1
  404. package/dist/node_modules/date-fns/getDayOfYear.js +7 -8
  405. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -1
  406. package/dist/node_modules/date-fns/getISOWeek.js +8 -9
  407. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -1
  408. package/dist/node_modules/date-fns/getISOWeekYear.js +8 -9
  409. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -1
  410. package/dist/node_modules/date-fns/getWeek.js +8 -9
  411. package/dist/node_modules/date-fns/getWeek.js.map +1 -1
  412. package/dist/node_modules/date-fns/getWeekYear.js +9 -10
  413. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -1
  414. package/dist/node_modules/date-fns/isDate.js +2 -3
  415. package/dist/node_modules/date-fns/isDate.js.map +1 -1
  416. package/dist/node_modules/date-fns/isValid.js +6 -7
  417. package/dist/node_modules/date-fns/isValid.js.map +1 -1
  418. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -2
  419. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
  420. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -2
  421. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
  422. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -2
  423. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
  424. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -2
  425. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
  426. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -2
  427. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
  428. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -1
  429. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
  430. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -2
  431. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
  432. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -1
  433. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
  434. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -1
  435. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
  436. package/dist/node_modules/date-fns/locale/en-US.js +2 -3
  437. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -1
  438. package/dist/node_modules/date-fns/startOfDay.js +2 -3
  439. package/dist/node_modules/date-fns/startOfDay.js.map +1 -1
  440. package/dist/node_modules/date-fns/startOfISOWeek.js +2 -3
  441. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -1
  442. package/dist/node_modules/date-fns/startOfISOWeekYear.js +5 -6
  443. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
  444. package/dist/node_modules/date-fns/startOfWeek.js +2 -3
  445. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -1
  446. package/dist/node_modules/date-fns/startOfWeekYear.js +6 -7
  447. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -1
  448. package/dist/node_modules/date-fns/startOfYear.js +3 -4
  449. package/dist/node_modules/date-fns/startOfYear.js.map +1 -1
  450. package/dist/node_modules/date-fns/toDate.js +2 -3
  451. package/dist/node_modules/date-fns/toDate.js.map +1 -1
  452. package/dist/node_modules/decimal.js-light/decimal.js +33 -30
  453. package/dist/node_modules/decimal.js-light/decimal.js.map +1 -1
  454. package/dist/node_modules/eventemitter3/index.js +2 -3
  455. package/dist/node_modules/eventemitter3/index.js.map +1 -1
  456. package/dist/node_modules/fast-equals/dist/es/index.js +109 -79
  457. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
  458. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  459. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  460. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  461. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  462. package/dist/node_modules/lodash/_DataView.js +4 -5
  463. package/dist/node_modules/lodash/_DataView.js.map +1 -1
  464. package/dist/node_modules/lodash/_Hash.js +1 -2
  465. package/dist/node_modules/lodash/_Hash.js.map +1 -1
  466. package/dist/node_modules/lodash/_ListCache.js +1 -2
  467. package/dist/node_modules/lodash/_ListCache.js.map +1 -1
  468. package/dist/node_modules/lodash/_Map.js +4 -5
  469. package/dist/node_modules/lodash/_Map.js.map +1 -1
  470. package/dist/node_modules/lodash/_MapCache.js +1 -2
  471. package/dist/node_modules/lodash/_MapCache.js.map +1 -1
  472. package/dist/node_modules/lodash/_Promise.js +4 -5
  473. package/dist/node_modules/lodash/_Promise.js.map +1 -1
  474. package/dist/node_modules/lodash/_Set.js +4 -5
  475. package/dist/node_modules/lodash/_Set.js.map +1 -1
  476. package/dist/node_modules/lodash/_SetCache.js +1 -2
  477. package/dist/node_modules/lodash/_SetCache.js.map +1 -1
  478. package/dist/node_modules/lodash/_Stack.js +3 -3
  479. package/dist/node_modules/lodash/_Stack.js.map +1 -1
  480. package/dist/node_modules/lodash/_Symbol.js +1 -2
  481. package/dist/node_modules/lodash/_Symbol.js.map +1 -1
  482. package/dist/node_modules/lodash/_Uint8Array.js +1 -2
  483. package/dist/node_modules/lodash/_Uint8Array.js.map +1 -1
  484. package/dist/node_modules/lodash/_WeakMap.js +4 -5
  485. package/dist/node_modules/lodash/_WeakMap.js.map +1 -1
  486. package/dist/node_modules/lodash/_apply.js +1 -2
  487. package/dist/node_modules/lodash/_apply.js.map +1 -1
  488. package/dist/node_modules/lodash/_arrayEvery.js +1 -2
  489. package/dist/node_modules/lodash/_arrayEvery.js.map +1 -1
  490. package/dist/node_modules/lodash/_arrayFilter.js +1 -2
  491. package/dist/node_modules/lodash/_arrayFilter.js.map +1 -1
  492. package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
  493. package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -1
  494. package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
  495. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -1
  496. package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
  497. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -1
  498. package/dist/node_modules/lodash/_arrayMap.js +1 -2
  499. package/dist/node_modules/lodash/_arrayMap.js.map +1 -1
  500. package/dist/node_modules/lodash/_arrayPush.js +1 -2
  501. package/dist/node_modules/lodash/_arrayPush.js.map +1 -1
  502. package/dist/node_modules/lodash/_arraySome.js +1 -2
  503. package/dist/node_modules/lodash/_arraySome.js.map +1 -1
  504. package/dist/node_modules/lodash/_asciiToArray.js +1 -2
  505. package/dist/node_modules/lodash/_asciiToArray.js.map +1 -1
  506. package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
  507. package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -1
  508. package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
  509. package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -1
  510. package/dist/node_modules/lodash/_baseEach.js +1 -2
  511. package/dist/node_modules/lodash/_baseEach.js.map +1 -1
  512. package/dist/node_modules/lodash/_baseEvery.js +1 -2
  513. package/dist/node_modules/lodash/_baseEvery.js.map +1 -1
  514. package/dist/node_modules/lodash/_baseExtremum.js +1 -2
  515. package/dist/node_modules/lodash/_baseExtremum.js.map +1 -1
  516. package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
  517. package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -1
  518. package/dist/node_modules/lodash/_baseFlatten.js +1 -2
  519. package/dist/node_modules/lodash/_baseFlatten.js.map +1 -1
  520. package/dist/node_modules/lodash/_baseFor.js +1 -2
  521. package/dist/node_modules/lodash/_baseFor.js.map +1 -1
  522. package/dist/node_modules/lodash/_baseForOwn.js +4 -5
  523. package/dist/node_modules/lodash/_baseForOwn.js.map +1 -1
  524. package/dist/node_modules/lodash/_baseGet.js +1 -2
  525. package/dist/node_modules/lodash/_baseGet.js.map +1 -1
  526. package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
  527. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -1
  528. package/dist/node_modules/lodash/_baseGetTag.js +1 -2
  529. package/dist/node_modules/lodash/_baseGetTag.js.map +1 -1
  530. package/dist/node_modules/lodash/_baseGt.js +1 -2
  531. package/dist/node_modules/lodash/_baseGt.js.map +1 -1
  532. package/dist/node_modules/lodash/_baseHasIn.js +1 -2
  533. package/dist/node_modules/lodash/_baseHasIn.js.map +1 -1
  534. package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
  535. package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -1
  536. package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
  537. package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -1
  538. package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
  539. package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -1
  540. package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
  541. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -1
  542. package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
  543. package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -1
  544. package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
  545. package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -1
  546. package/dist/node_modules/lodash/_baseIsNative.js +5 -6
  547. package/dist/node_modules/lodash/_baseIsNative.js.map +1 -1
  548. package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
  549. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -1
  550. package/dist/node_modules/lodash/_baseIteratee.js +6 -7
  551. package/dist/node_modules/lodash/_baseIteratee.js.map +1 -1
  552. package/dist/node_modules/lodash/_baseKeys.js +1 -2
  553. package/dist/node_modules/lodash/_baseKeys.js.map +1 -1
  554. package/dist/node_modules/lodash/_baseLt.js +1 -2
  555. package/dist/node_modules/lodash/_baseLt.js.map +1 -1
  556. package/dist/node_modules/lodash/_baseMap.js +4 -5
  557. package/dist/node_modules/lodash/_baseMap.js.map +1 -1
  558. package/dist/node_modules/lodash/_baseMatches.js +1 -2
  559. package/dist/node_modules/lodash/_baseMatches.js.map +1 -1
  560. package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
  561. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -1
  562. package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
  563. package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -1
  564. package/dist/node_modules/lodash/_baseProperty.js +1 -2
  565. package/dist/node_modules/lodash/_baseProperty.js.map +1 -1
  566. package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
  567. package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -1
  568. package/dist/node_modules/lodash/_baseRange.js +1 -2
  569. package/dist/node_modules/lodash/_baseRange.js.map +1 -1
  570. package/dist/node_modules/lodash/_baseRest.js +1 -2
  571. package/dist/node_modules/lodash/_baseRest.js.map +1 -1
  572. package/dist/node_modules/lodash/_baseSetToString.js +5 -6
  573. package/dist/node_modules/lodash/_baseSetToString.js.map +1 -1
  574. package/dist/node_modules/lodash/_baseSlice.js +1 -2
  575. package/dist/node_modules/lodash/_baseSlice.js.map +1 -1
  576. package/dist/node_modules/lodash/_baseSome.js +1 -2
  577. package/dist/node_modules/lodash/_baseSome.js.map +1 -1
  578. package/dist/node_modules/lodash/_baseSortBy.js +1 -2
  579. package/dist/node_modules/lodash/_baseSortBy.js.map +1 -1
  580. package/dist/node_modules/lodash/_baseTimes.js +1 -2
  581. package/dist/node_modules/lodash/_baseTimes.js.map +1 -1
  582. package/dist/node_modules/lodash/_baseToString.js +6 -7
  583. package/dist/node_modules/lodash/_baseToString.js.map +1 -1
  584. package/dist/node_modules/lodash/_baseTrim.js +1 -2
  585. package/dist/node_modules/lodash/_baseTrim.js.map +1 -1
  586. package/dist/node_modules/lodash/_baseUnary.js +1 -2
  587. package/dist/node_modules/lodash/_baseUnary.js.map +1 -1
  588. package/dist/node_modules/lodash/_baseUniq.js +7 -8
  589. package/dist/node_modules/lodash/_baseUniq.js.map +1 -1
  590. package/dist/node_modules/lodash/_cacheHas.js +1 -2
  591. package/dist/node_modules/lodash/_cacheHas.js.map +1 -1
  592. package/dist/node_modules/lodash/_castPath.js +1 -2
  593. package/dist/node_modules/lodash/_castPath.js.map +1 -1
  594. package/dist/node_modules/lodash/_castSlice.js +1 -2
  595. package/dist/node_modules/lodash/_castSlice.js.map +1 -1
  596. package/dist/node_modules/lodash/_compareAscending.js +1 -2
  597. package/dist/node_modules/lodash/_compareAscending.js.map +1 -1
  598. package/dist/node_modules/lodash/_compareMultiple.js +1 -2
  599. package/dist/node_modules/lodash/_compareMultiple.js.map +1 -1
  600. package/dist/node_modules/lodash/_coreJsData.js +1 -2
  601. package/dist/node_modules/lodash/_coreJsData.js.map +1 -1
  602. package/dist/node_modules/lodash/_createBaseEach.js +1 -2
  603. package/dist/node_modules/lodash/_createBaseEach.js.map +1 -1
  604. package/dist/node_modules/lodash/_createBaseFor.js +1 -2
  605. package/dist/node_modules/lodash/_createBaseFor.js.map +1 -1
  606. package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
  607. package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -1
  608. package/dist/node_modules/lodash/_createFind.js +5 -6
  609. package/dist/node_modules/lodash/_createFind.js.map +1 -1
  610. package/dist/node_modules/lodash/_createRange.js +4 -5
  611. package/dist/node_modules/lodash/_createRange.js.map +1 -1
  612. package/dist/node_modules/lodash/_createSet.js +6 -7
  613. package/dist/node_modules/lodash/_createSet.js.map +1 -1
  614. package/dist/node_modules/lodash/_defineProperty.js +1 -2
  615. package/dist/node_modules/lodash/_defineProperty.js.map +1 -1
  616. package/dist/node_modules/lodash/_equalArrays.js +1 -2
  617. package/dist/node_modules/lodash/_equalArrays.js.map +1 -1
  618. package/dist/node_modules/lodash/_equalByTag.js +5 -6
  619. package/dist/node_modules/lodash/_equalByTag.js.map +1 -1
  620. package/dist/node_modules/lodash/_equalObjects.js +1 -2
  621. package/dist/node_modules/lodash/_equalObjects.js.map +1 -1
  622. package/dist/node_modules/lodash/_freeGlobal.js +1 -2
  623. package/dist/node_modules/lodash/_freeGlobal.js.map +1 -1
  624. package/dist/node_modules/lodash/_getAllKeys.js +1 -2
  625. package/dist/node_modules/lodash/_getAllKeys.js.map +1 -1
  626. package/dist/node_modules/lodash/_getMapData.js +1 -2
  627. package/dist/node_modules/lodash/_getMapData.js.map +1 -1
  628. package/dist/node_modules/lodash/_getMatchData.js +4 -5
  629. package/dist/node_modules/lodash/_getMatchData.js.map +1 -1
  630. package/dist/node_modules/lodash/_getNative.js +1 -2
  631. package/dist/node_modules/lodash/_getNative.js.map +1 -1
  632. package/dist/node_modules/lodash/_getPrototype.js +1 -2
  633. package/dist/node_modules/lodash/_getPrototype.js.map +1 -1
  634. package/dist/node_modules/lodash/_getRawTag.js +1 -2
  635. package/dist/node_modules/lodash/_getRawTag.js.map +1 -1
  636. package/dist/node_modules/lodash/_getSymbols.js +1 -2
  637. package/dist/node_modules/lodash/_getSymbols.js.map +1 -1
  638. package/dist/node_modules/lodash/_getTag.js +9 -10
  639. package/dist/node_modules/lodash/_getTag.js.map +1 -1
  640. package/dist/node_modules/lodash/_getValue.js +1 -2
  641. package/dist/node_modules/lodash/_getValue.js.map +1 -1
  642. package/dist/node_modules/lodash/_hasPath.js +8 -9
  643. package/dist/node_modules/lodash/_hasPath.js.map +1 -1
  644. package/dist/node_modules/lodash/_hasUnicode.js +1 -2
  645. package/dist/node_modules/lodash/_hasUnicode.js.map +1 -1
  646. package/dist/node_modules/lodash/_hashClear.js +1 -2
  647. package/dist/node_modules/lodash/_hashClear.js.map +1 -1
  648. package/dist/node_modules/lodash/_hashDelete.js +1 -2
  649. package/dist/node_modules/lodash/_hashDelete.js.map +1 -1
  650. package/dist/node_modules/lodash/_hashGet.js +1 -2
  651. package/dist/node_modules/lodash/_hashGet.js.map +1 -1
  652. package/dist/node_modules/lodash/_hashHas.js +1 -2
  653. package/dist/node_modules/lodash/_hashHas.js.map +1 -1
  654. package/dist/node_modules/lodash/_hashSet.js +1 -2
  655. package/dist/node_modules/lodash/_hashSet.js.map +1 -1
  656. package/dist/node_modules/lodash/_isFlattenable.js +5 -6
  657. package/dist/node_modules/lodash/_isFlattenable.js.map +1 -1
  658. package/dist/node_modules/lodash/_isIndex.js +6 -7
  659. package/dist/node_modules/lodash/_isIndex.js.map +1 -1
  660. package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
  661. package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -1
  662. package/dist/node_modules/lodash/_isKey.js +1 -2
  663. package/dist/node_modules/lodash/_isKey.js.map +1 -1
  664. package/dist/node_modules/lodash/_isKeyable.js +1 -2
  665. package/dist/node_modules/lodash/_isKeyable.js.map +1 -1
  666. package/dist/node_modules/lodash/_isMasked.js +1 -2
  667. package/dist/node_modules/lodash/_isMasked.js.map +1 -1
  668. package/dist/node_modules/lodash/_isPrototype.js +1 -2
  669. package/dist/node_modules/lodash/_isPrototype.js.map +1 -1
  670. package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
  671. package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -1
  672. package/dist/node_modules/lodash/_listCacheClear.js +1 -2
  673. package/dist/node_modules/lodash/_listCacheClear.js.map +1 -1
  674. package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
  675. package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -1
  676. package/dist/node_modules/lodash/_listCacheGet.js +1 -2
  677. package/dist/node_modules/lodash/_listCacheGet.js.map +1 -1
  678. package/dist/node_modules/lodash/_listCacheHas.js +1 -2
  679. package/dist/node_modules/lodash/_listCacheHas.js.map +1 -1
  680. package/dist/node_modules/lodash/_listCacheSet.js +1 -2
  681. package/dist/node_modules/lodash/_listCacheSet.js.map +1 -1
  682. package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
  683. package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -1
  684. package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
  685. package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -1
  686. package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
  687. package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -1
  688. package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
  689. package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -1
  690. package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
  691. package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -1
  692. package/dist/node_modules/lodash/_mapToArray.js +1 -2
  693. package/dist/node_modules/lodash/_mapToArray.js.map +1 -1
  694. package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
  695. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -1
  696. package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
  697. package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -1
  698. package/dist/node_modules/lodash/_nativeCreate.js +1 -2
  699. package/dist/node_modules/lodash/_nativeCreate.js.map +1 -1
  700. package/dist/node_modules/lodash/_nativeKeys.js +1 -2
  701. package/dist/node_modules/lodash/_nativeKeys.js.map +1 -1
  702. package/dist/node_modules/lodash/_nodeUtil.js +1 -2
  703. package/dist/node_modules/lodash/_nodeUtil.js.map +1 -1
  704. package/dist/node_modules/lodash/_objectToString.js +1 -2
  705. package/dist/node_modules/lodash/_objectToString.js.map +1 -1
  706. package/dist/node_modules/lodash/_overArg.js +1 -2
  707. package/dist/node_modules/lodash/_overArg.js.map +1 -1
  708. package/dist/node_modules/lodash/_overRest.js +1 -2
  709. package/dist/node_modules/lodash/_overRest.js.map +1 -1
  710. package/dist/node_modules/lodash/_root.js +1 -2
  711. package/dist/node_modules/lodash/_root.js.map +1 -1
  712. package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
  713. package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -1
  714. package/dist/node_modules/lodash/_setCacheHas.js +1 -2
  715. package/dist/node_modules/lodash/_setCacheHas.js.map +1 -1
  716. package/dist/node_modules/lodash/_setToArray.js +1 -2
  717. package/dist/node_modules/lodash/_setToArray.js.map +1 -1
  718. package/dist/node_modules/lodash/_setToString.js +1 -2
  719. package/dist/node_modules/lodash/_setToString.js.map +1 -1
  720. package/dist/node_modules/lodash/_shortOut.js +8 -9
  721. package/dist/node_modules/lodash/_shortOut.js.map +1 -1
  722. package/dist/node_modules/lodash/_stackClear.js +1 -2
  723. package/dist/node_modules/lodash/_stackClear.js.map +1 -1
  724. package/dist/node_modules/lodash/_stackDelete.js +1 -2
  725. package/dist/node_modules/lodash/_stackDelete.js.map +1 -1
  726. package/dist/node_modules/lodash/_stackGet.js +1 -2
  727. package/dist/node_modules/lodash/_stackGet.js.map +1 -1
  728. package/dist/node_modules/lodash/_stackHas.js +1 -2
  729. package/dist/node_modules/lodash/_stackHas.js.map +1 -1
  730. package/dist/node_modules/lodash/_stackSet.js +1 -2
  731. package/dist/node_modules/lodash/_stackSet.js.map +1 -1
  732. package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
  733. package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -1
  734. package/dist/node_modules/lodash/_stringToArray.js +4 -5
  735. package/dist/node_modules/lodash/_stringToArray.js.map +1 -1
  736. package/dist/node_modules/lodash/_stringToPath.js +1 -2
  737. package/dist/node_modules/lodash/_stringToPath.js.map +1 -1
  738. package/dist/node_modules/lodash/_toKey.js +2 -3
  739. package/dist/node_modules/lodash/_toKey.js.map +1 -1
  740. package/dist/node_modules/lodash/_toSource.js +1 -2
  741. package/dist/node_modules/lodash/_toSource.js.map +1 -1
  742. package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
  743. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -1
  744. package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
  745. package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -1
  746. package/dist/node_modules/lodash/constant.js +1 -2
  747. package/dist/node_modules/lodash/constant.js.map +1 -1
  748. package/dist/node_modules/lodash/debounce.js +1 -2
  749. package/dist/node_modules/lodash/debounce.js.map +1 -1
  750. package/dist/node_modules/lodash/eq.js +1 -2
  751. package/dist/node_modules/lodash/eq.js.map +1 -1
  752. package/dist/node_modules/lodash/every.js +7 -8
  753. package/dist/node_modules/lodash/every.js.map +1 -1
  754. package/dist/node_modules/lodash/find.js +1 -2
  755. package/dist/node_modules/lodash/find.js.map +1 -1
  756. package/dist/node_modules/lodash/findIndex.js +4 -5
  757. package/dist/node_modules/lodash/findIndex.js.map +1 -1
  758. package/dist/node_modules/lodash/flatMap.js +1 -2
  759. package/dist/node_modules/lodash/flatMap.js.map +1 -1
  760. package/dist/node_modules/lodash/get.js +1 -2
  761. package/dist/node_modules/lodash/get.js.map +1 -1
  762. package/dist/node_modules/lodash/hasIn.js +1 -2
  763. package/dist/node_modules/lodash/hasIn.js.map +1 -1
  764. package/dist/node_modules/lodash/identity.js +1 -2
  765. package/dist/node_modules/lodash/identity.js.map +1 -1
  766. package/dist/node_modules/lodash/isArguments.js +4 -5
  767. package/dist/node_modules/lodash/isArguments.js.map +1 -1
  768. package/dist/node_modules/lodash/isArray.js +1 -2
  769. package/dist/node_modules/lodash/isArray.js.map +1 -1
  770. package/dist/node_modules/lodash/isArrayLike.js +1 -2
  771. package/dist/node_modules/lodash/isArrayLike.js.map +1 -1
  772. package/dist/node_modules/lodash/isBoolean.js +1 -2
  773. package/dist/node_modules/lodash/isBoolean.js.map +1 -1
  774. package/dist/node_modules/lodash/isBuffer.js +1 -2
  775. package/dist/node_modules/lodash/isBuffer.js.map +1 -1
  776. package/dist/node_modules/lodash/isEqual.js +1 -2
  777. package/dist/node_modules/lodash/isEqual.js.map +1 -1
  778. package/dist/node_modules/lodash/isFunction.js +1 -2
  779. package/dist/node_modules/lodash/isFunction.js.map +1 -1
  780. package/dist/node_modules/lodash/isLength.js +4 -6
  781. package/dist/node_modules/lodash/isLength.js.map +1 -1
  782. package/dist/node_modules/lodash/isNaN.js +1 -2
  783. package/dist/node_modules/lodash/isNaN.js.map +1 -1
  784. package/dist/node_modules/lodash/isNil.js +1 -2
  785. package/dist/node_modules/lodash/isNil.js.map +1 -1
  786. package/dist/node_modules/lodash/isNumber.js +1 -2
  787. package/dist/node_modules/lodash/isNumber.js.map +1 -1
  788. package/dist/node_modules/lodash/isObject.js +1 -2
  789. package/dist/node_modules/lodash/isObject.js.map +1 -1
  790. package/dist/node_modules/lodash/isObjectLike.js +1 -2
  791. package/dist/node_modules/lodash/isObjectLike.js.map +1 -1
  792. package/dist/node_modules/lodash/isPlainObject.js +4 -5
  793. package/dist/node_modules/lodash/isPlainObject.js.map +1 -1
  794. package/dist/node_modules/lodash/isString.js +4 -5
  795. package/dist/node_modules/lodash/isString.js.map +1 -1
  796. package/dist/node_modules/lodash/isSymbol.js +1 -2
  797. package/dist/node_modules/lodash/isSymbol.js.map +1 -1
  798. package/dist/node_modules/lodash/isTypedArray.js +1 -2
  799. package/dist/node_modules/lodash/isTypedArray.js.map +1 -1
  800. package/dist/node_modules/lodash/keys.js +1 -2
  801. package/dist/node_modules/lodash/keys.js.map +1 -1
  802. package/dist/node_modules/lodash/last.js +1 -2
  803. package/dist/node_modules/lodash/last.js.map +1 -1
  804. package/dist/node_modules/lodash/map.js +6 -7
  805. package/dist/node_modules/lodash/map.js.map +1 -1
  806. package/dist/node_modules/lodash/mapValues.js +4 -5
  807. package/dist/node_modules/lodash/mapValues.js.map +1 -1
  808. package/dist/node_modules/lodash/max.js +5 -6
  809. package/dist/node_modules/lodash/max.js.map +1 -1
  810. package/dist/node_modules/lodash/memoize.js +1 -2
  811. package/dist/node_modules/lodash/memoize.js.map +1 -1
  812. package/dist/node_modules/lodash/min.js +5 -6
  813. package/dist/node_modules/lodash/min.js.map +1 -1
  814. package/dist/node_modules/lodash/noop.js +1 -2
  815. package/dist/node_modules/lodash/noop.js.map +1 -1
  816. package/dist/node_modules/lodash/now.js +1 -2
  817. package/dist/node_modules/lodash/now.js.map +1 -1
  818. package/dist/node_modules/lodash/property.js +6 -7
  819. package/dist/node_modules/lodash/property.js.map +1 -1
  820. package/dist/node_modules/lodash/range.js +1 -2
  821. package/dist/node_modules/lodash/range.js.map +1 -1
  822. package/dist/node_modules/lodash/some.js +7 -8
  823. package/dist/node_modules/lodash/some.js.map +1 -1
  824. package/dist/node_modules/lodash/sortBy.js +1 -2
  825. package/dist/node_modules/lodash/sortBy.js.map +1 -1
  826. package/dist/node_modules/lodash/stubArray.js +1 -2
  827. package/dist/node_modules/lodash/stubArray.js.map +1 -1
  828. package/dist/node_modules/lodash/stubFalse.js +1 -2
  829. package/dist/node_modules/lodash/stubFalse.js.map +1 -1
  830. package/dist/node_modules/lodash/throttle.js +4 -5
  831. package/dist/node_modules/lodash/throttle.js.map +1 -1
  832. package/dist/node_modules/lodash/toFinite.js +2 -3
  833. package/dist/node_modules/lodash/toFinite.js.map +1 -1
  834. package/dist/node_modules/lodash/toInteger.js +1 -2
  835. package/dist/node_modules/lodash/toInteger.js.map +1 -1
  836. package/dist/node_modules/lodash/toNumber.js +4 -5
  837. package/dist/node_modules/lodash/toNumber.js.map +1 -1
  838. package/dist/node_modules/lodash/toString.js +1 -2
  839. package/dist/node_modules/lodash/toString.js.map +1 -1
  840. package/dist/node_modules/lodash/uniqBy.js +1 -2
  841. package/dist/node_modules/lodash/uniqBy.js.map +1 -1
  842. package/dist/node_modules/lodash/upperFirst.js +1 -2
  843. package/dist/node_modules/lodash/upperFirst.js.map +1 -1
  844. package/dist/node_modules/object-assign/index.js +1 -2
  845. package/dist/node_modules/object-assign/index.js.map +1 -1
  846. package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
  847. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
  848. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
  849. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
  850. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
  851. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  852. package/dist/node_modules/prop-types/index.js +1 -2
  853. package/dist/node_modules/prop-types/index.js.map +1 -1
  854. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
  855. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
  856. package/dist/node_modules/prop-types/lib/has.js +1 -2
  857. package/dist/node_modules/prop-types/lib/has.js.map +1 -1
  858. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
  859. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  860. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  861. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  862. package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
  863. package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
  864. package/dist/node_modules/react-is/cjs/react-is.development.js +31 -32
  865. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  866. package/dist/node_modules/react-is/cjs/react-is.production.min.js +1 -2
  867. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  868. package/dist/node_modules/react-is/index.js +2 -3
  869. package/dist/node_modules/react-is/index.js.map +1 -1
  870. package/dist/node_modules/react-smooth/es6/Animate.js +33 -41
  871. package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -1
  872. package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
  873. package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -1
  874. package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
  875. package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -1
  876. package/dist/node_modules/react-smooth/es6/easing.js +1 -2
  877. package/dist/node_modules/react-smooth/es6/easing.js.map +1 -1
  878. package/dist/node_modules/react-smooth/es6/index.js +1 -2
  879. package/dist/node_modules/react-smooth/es6/index.js.map +1 -1
  880. package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
  881. package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -1
  882. package/dist/node_modules/react-smooth/es6/util.js +17 -16
  883. package/dist/node_modules/react-smooth/es6/util.js.map +1 -1
  884. package/dist/node_modules/recharts/es6/cartesian/Bar.js +103 -104
  885. package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -1
  886. package/dist/node_modules/recharts/es6/cartesian/Brush.js +35 -36
  887. package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -1
  888. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +60 -67
  889. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -1
  890. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +45 -46
  891. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js.map +1 -1
  892. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +20 -21
  893. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -1
  894. package/dist/node_modules/recharts/es6/cartesian/Line.js +79 -80
  895. package/dist/node_modules/recharts/es6/cartesian/Line.js.map +1 -1
  896. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +29 -30
  897. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -1
  898. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +23 -24
  899. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -1
  900. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +31 -32
  901. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -1
  902. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +10 -11
  903. package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -1
  904. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +10 -11
  905. package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -1
  906. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
  907. package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -1
  908. package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
  909. package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -1
  910. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +2 -5
  911. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -1
  912. package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
  913. package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -1
  914. package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
  915. package/dist/node_modules/recharts/es6/chart/LineChart.js.map +1 -1
  916. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
  917. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -1
  918. package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
  919. package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -1
  920. package/dist/node_modules/recharts/es6/component/Cursor.js +17 -18
  921. package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -1
  922. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +35 -36
  923. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -1
  924. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +16 -17
  925. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -1
  926. package/dist/node_modules/recharts/es6/component/Label.js +85 -86
  927. package/dist/node_modules/recharts/es6/component/Label.js.map +1 -1
  928. package/dist/node_modules/recharts/es6/component/LabelList.js +20 -21
  929. package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -1
  930. package/dist/node_modules/recharts/es6/component/Legend.js +26 -23
  931. package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -1
  932. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +16 -17
  933. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -1
  934. package/dist/node_modules/recharts/es6/component/Text.js +18 -21
  935. package/dist/node_modules/recharts/es6/component/Text.js.map +1 -1
  936. package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
  937. package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -1
  938. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +3 -4
  939. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -1
  940. package/dist/node_modules/recharts/es6/container/Layer.js +5 -6
  941. package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -1
  942. package/dist/node_modules/recharts/es6/container/Surface.js +5 -6
  943. package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -1
  944. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +21 -21
  945. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -1
  946. package/dist/node_modules/recharts/es6/shape/Cross.js +4 -5
  947. package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -1
  948. package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
  949. package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -1
  950. package/dist/node_modules/recharts/es6/shape/Dot.js +3 -4
  951. package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -1
  952. package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
  953. package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -1
  954. package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
  955. package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -1
  956. package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
  957. package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -1
  958. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
  959. package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -1
  960. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +24 -25
  961. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -1
  962. package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
  963. package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -1
  964. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +33 -34
  965. package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -1
  966. package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
  967. package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -1
  968. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
  969. package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -1
  970. package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
  971. package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -1
  972. package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
  973. package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
  974. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
  975. package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -1
  976. package/dist/node_modules/recharts/es6/util/Events.js +0 -1
  977. package/dist/node_modules/recharts/es6/util/Events.js.map +1 -1
  978. package/dist/node_modules/recharts/es6/util/Global.js +0 -1
  979. package/dist/node_modules/recharts/es6/util/Global.js.map +1 -1
  980. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
  981. package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -1
  982. package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
  983. package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -1
  984. package/dist/node_modules/recharts/es6/util/PolarUtils.js +4 -5
  985. package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -1
  986. package/dist/node_modules/recharts/es6/util/ReactUtils.js +11 -12
  987. package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -1
  988. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +5 -6
  989. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -1
  990. package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
  991. package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -1
  992. package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
  993. package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -1
  994. package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
  995. package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -1
  996. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
  997. package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -1
  998. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
  999. package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -1
  1000. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
  1001. package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -1
  1002. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
  1003. package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -1
  1004. package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
  1005. package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -1
  1006. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
  1007. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -1
  1008. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
  1009. package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -1
  1010. package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
  1011. package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -1
  1012. package/dist/node_modules/recharts/es6/util/types.js +2 -3
  1013. package/dist/node_modules/recharts/es6/util/types.js.map +1 -1
  1014. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
  1015. package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -1
  1016. package/dist/node_modules/recharts-scale/es6/index.js +1 -1
  1017. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
  1018. package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -1
  1019. package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
  1020. package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -1
  1021. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  1022. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  1023. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  1024. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  1025. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  1026. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  1027. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  1028. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  1029. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  1030. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  1031. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  1032. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  1033. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  1034. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  1035. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  1036. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  1037. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  1038. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  1039. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  1040. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  1041. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  1042. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  1043. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  1044. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  1045. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  1046. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  1047. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  1048. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  1049. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  1050. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  1051. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  1052. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  1053. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  1054. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  1055. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  1056. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  1057. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
  1058. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -1
  1059. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  1060. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  1061. package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
  1062. package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -1
  1063. package/dist/test/happydom.d.ts +1 -0
  1064. package/dist/translations/en.d.ts +91 -1
  1065. package/dist/translations/en.js +92 -2
  1066. package/dist/translations/en.js.map +1 -1
  1067. package/dist/utils/nativeBridge.d.ts +0 -1
  1068. package/dist/utils/nativeBridge.js +1 -2
  1069. package/package.json +76 -60
  1070. package/dist/__tests__/setup.d.ts +0 -2
  1071. package/dist/__tests__/setup.d.ts.map +0 -1
  1072. package/dist/__tests__/utils/renderWithProviders.d.ts.map +0 -1
  1073. package/dist/dev/main.d.ts.map +0 -1
  1074. package/dist/devportal/AdminDevportalRoot.d.ts.map +0 -1
  1075. package/dist/devportal/AdminDevportalRoutes.d.ts.map +0 -1
  1076. package/dist/devportal/DevportalRoot.d.ts.map +0 -1
  1077. package/dist/devportal/DevportalRoutes.d.ts.map +0 -1
  1078. package/dist/devportal/components/AppCard.d.ts.map +0 -1
  1079. package/dist/devportal/components/ConfirmDialog.d.ts.map +0 -1
  1080. package/dist/devportal/components/DataTable.d.ts.map +0 -1
  1081. package/dist/devportal/components/EmptyState.d.ts.map +0 -1
  1082. package/dist/devportal/components/FeatureFlaggedRoute.d.ts.map +0 -1
  1083. package/dist/devportal/components/FormField.d.ts.map +0 -1
  1084. package/dist/devportal/components/GrantDelegationModal.d.ts.map +0 -1
  1085. package/dist/devportal/components/ImageUploadField.d.ts.map +0 -1
  1086. package/dist/devportal/components/LoadingState.d.ts.map +0 -1
  1087. package/dist/devportal/components/ManifestViewer.d.ts.map +0 -1
  1088. package/dist/devportal/components/MarkdownEditor.d.ts.map +0 -1
  1089. package/dist/devportal/components/MultiSelectCombobox.d.ts.map +0 -1
  1090. package/dist/devportal/components/NodeSmokePanel.d.ts.map +0 -1
  1091. package/dist/devportal/components/OnboardingChecklist.d.ts.map +0 -1
  1092. package/dist/devportal/components/PackageValidationPanel.d.ts.map +0 -1
  1093. package/dist/devportal/components/PageLayout.d.ts.map +0 -1
  1094. package/dist/devportal/components/PermissionGuard.d.ts.map +0 -1
  1095. package/dist/devportal/components/RegisterPickupLocationModal.d.ts.map +0 -1
  1096. package/dist/devportal/components/ReportOrderIssueModal.d.ts.map +0 -1
  1097. package/dist/devportal/components/SecretDisplay.d.ts.map +0 -1
  1098. package/dist/devportal/components/SectionNav.d.ts.map +0 -1
  1099. package/dist/devportal/components/SelectionCheckbox.d.ts.map +0 -1
  1100. package/dist/devportal/components/StatCard.d.ts.map +0 -1
  1101. package/dist/devportal/components/StatusBadge.d.ts.map +0 -1
  1102. package/dist/devportal/components/TelemetryErrorBoundary.d.ts.map +0 -1
  1103. package/dist/devportal/components/index.d.ts.map +0 -1
  1104. package/dist/devportal/constants/appCategories.d.ts.map +0 -1
  1105. package/dist/devportal/constants/developerLinks.d.ts.map +0 -1
  1106. package/dist/devportal/constants/permissions.d.ts.map +0 -1
  1107. package/dist/devportal/events/index.d.ts.map +0 -1
  1108. package/dist/devportal/hooks/DevPortalProvider.d.ts.map +0 -1
  1109. package/dist/devportal/hooks/index.d.ts.map +0 -1
  1110. package/dist/devportal/hooks/useCarrierPickupLocations.d.ts.map +0 -1
  1111. package/dist/devportal/hooks/useGraphQL.d.ts.map +0 -1
  1112. package/dist/devportal/hooks/useIsSellerSection.d.ts.map +0 -1
  1113. package/dist/devportal/hooks/useOrganizationPickupAddresses.d.ts.map +0 -1
  1114. package/dist/devportal/hooks/usePackageUpload.d.ts.map +0 -1
  1115. package/dist/devportal/hooks/usePermission.d.ts.map +0 -1
  1116. package/dist/devportal/hooks/useProducts.d.ts.map +0 -1
  1117. package/dist/devportal/hooks/useSellerOrganization.d.ts.map +0 -1
  1118. package/dist/devportal/index.d.ts.map +0 -1
  1119. package/dist/devportal/pages/AdminOrganizationVerificationPage.d.ts.map +0 -1
  1120. package/dist/devportal/pages/AdminReviewPage.d.ts.map +0 -1
  1121. package/dist/devportal/pages/AnalyticsDashboardPage.d.ts.map +0 -1
  1122. package/dist/devportal/pages/ApiKeysPage.d.ts.map +0 -1
  1123. package/dist/devportal/pages/AppLogsPage.d.ts.map +0 -1
  1124. package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +0 -1
  1125. package/dist/devportal/pages/ApplicationVersionsPage.d.ts.map +0 -1
  1126. package/dist/devportal/pages/ApplicationsPage.d.ts.map +0 -1
  1127. package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +0 -1
  1128. package/dist/devportal/pages/CreateApplicationPage.d.ts.map +0 -1
  1129. package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +0 -1
  1130. package/dist/devportal/pages/CreateOrganizationPage.d.ts.map +0 -1
  1131. package/dist/devportal/pages/CreatePhysicalItemPage.d.ts.map +0 -1
  1132. package/dist/devportal/pages/CreateWebhookPage.d.ts.map +0 -1
  1133. package/dist/devportal/pages/DashboardPage.d.ts.map +0 -1
  1134. package/dist/devportal/pages/DelegationsPage.d.ts.map +0 -1
  1135. package/dist/devportal/pages/DocumentationPage.d.ts.map +0 -1
  1136. package/dist/devportal/pages/EditApplicationPage.d.ts.map +0 -1
  1137. package/dist/devportal/pages/EditPhysicalItemPage.d.ts.map +0 -1
  1138. package/dist/devportal/pages/InvitationDecisionPage.d.ts.map +0 -1
  1139. package/dist/devportal/pages/ListingPreviewPage.d.ts.map +0 -1
  1140. package/dist/devportal/pages/NodeLifecyclePage.d.ts.map +0 -1
  1141. package/dist/devportal/pages/OAuthCallbackPage.d.ts.map +0 -1
  1142. package/dist/devportal/pages/OAuthClientDetailPage.d.ts.map +0 -1
  1143. package/dist/devportal/pages/OAuthClientsPage.d.ts.map +0 -1
  1144. package/dist/devportal/pages/OrganizationDetailPage.d.ts.map +0 -1
  1145. package/dist/devportal/pages/OrganizationMembersPage.d.ts.map +0 -1
  1146. package/dist/devportal/pages/OrganizationsPage.d.ts.map +0 -1
  1147. package/dist/devportal/pages/PublishPage.d.ts.map +0 -1
  1148. package/dist/devportal/pages/PublisherProfilePage.d.ts.map +0 -1
  1149. package/dist/devportal/pages/ResourcesPage.d.ts.map +0 -1
  1150. package/dist/devportal/pages/RevenueDashboardPage.d.ts.map +0 -1
  1151. package/dist/devportal/pages/RevenueRedirectPage.d.ts.map +0 -1
  1152. package/dist/devportal/pages/SellerDashboardPage.d.ts.map +0 -1
  1153. package/dist/devportal/pages/SellerItemsPage.d.ts.map +0 -1
  1154. package/dist/devportal/pages/SellerOrdersPage.d.ts.map +0 -1
  1155. package/dist/devportal/pages/SettingsPage.d.ts.map +0 -1
  1156. package/dist/devportal/pages/SetupPage.d.ts.map +0 -1
  1157. package/dist/devportal/pages/StoreSubmissionPage.d.ts.map +0 -1
  1158. package/dist/devportal/pages/WebhookDetailPage.d.ts.map +0 -1
  1159. package/dist/devportal/pages/WebhooksPage.d.ts.map +0 -1
  1160. package/dist/devportal/providers/DevportalProvider.d.ts.map +0 -1
  1161. package/dist/devportal/store/devportalStore.d.ts.map +0 -1
  1162. package/dist/devportal/types/index.d.ts.map +0 -1
  1163. package/dist/devportal/utils/cn.d.ts.map +0 -1
  1164. package/dist/devportal/utils/constants.d.ts.map +0 -1
  1165. package/dist/devportal/utils/currency.d.ts.map +0 -1
  1166. package/dist/devportal/utils/developerOnboarding.d.ts.map +0 -1
  1167. package/dist/devportal/utils/graphqlEndpoint.d.ts.map +0 -1
  1168. package/dist/devportal/utils/i18n.d.ts.map +0 -1
  1169. package/dist/devportal/utils/nodeLifecycle.d.ts.map +0 -1
  1170. package/dist/devportal/utils/recaptcha.d.ts.map +0 -1
  1171. package/dist/devportal/utils/submitForReview.d.ts.map +0 -1
  1172. package/dist/devportal/utils/uploadErrors.d.ts.map +0 -1
  1173. package/dist/generated/global-operations.d.ts.map +0 -1
  1174. package/dist/generated/global-types.d.ts.map +0 -1
  1175. package/dist/generated/wspace-operations.d.ts.map +0 -1
  1176. package/dist/generated/wspace-types.d.ts.map +0 -1
  1177. package/dist/index.d.ts.map +0 -1
  1178. package/dist/node_modules/d3-array/src/ascending.js +0 -8
  1179. package/dist/node_modules/d3-array/src/ascending.js.map +0 -1
  1180. package/dist/node_modules/d3-array/src/bisect.js +0 -10
  1181. package/dist/node_modules/d3-array/src/bisect.js.map +0 -1
  1182. package/dist/node_modules/d3-array/src/bisector.js +0 -43
  1183. package/dist/node_modules/d3-array/src/bisector.js.map +0 -1
  1184. package/dist/node_modules/d3-array/src/descending.js +0 -8
  1185. package/dist/node_modules/d3-array/src/descending.js.map +0 -1
  1186. package/dist/node_modules/d3-array/src/max.js +0 -14
  1187. package/dist/node_modules/d3-array/src/max.js.map +0 -1
  1188. package/dist/node_modules/d3-array/src/min.js +0 -14
  1189. package/dist/node_modules/d3-array/src/min.js.map +0 -1
  1190. package/dist/node_modules/d3-array/src/number.js +0 -15
  1191. package/dist/node_modules/d3-array/src/number.js.map +0 -1
  1192. package/dist/node_modules/d3-array/src/quantile.js +0 -25
  1193. package/dist/node_modules/d3-array/src/quantile.js.map +0 -1
  1194. package/dist/node_modules/d3-array/src/quickselect.js +0 -26
  1195. package/dist/node_modules/d3-array/src/quickselect.js.map +0 -1
  1196. package/dist/node_modules/d3-array/src/range.js +0 -10
  1197. package/dist/node_modules/d3-array/src/range.js.map +0 -1
  1198. package/dist/node_modules/d3-array/src/sort.js +0 -17
  1199. package/dist/node_modules/d3-array/src/sort.js.map +0 -1
  1200. package/dist/node_modules/d3-array/src/ticks.js +0 -34
  1201. package/dist/node_modules/d3-array/src/ticks.js.map +0 -1
  1202. package/dist/node_modules/d3-color/src/color.js +0 -291
  1203. package/dist/node_modules/d3-color/src/color.js.map +0 -1
  1204. package/dist/node_modules/d3-color/src/define.js +0 -13
  1205. package/dist/node_modules/d3-color/src/define.js.map +0 -1
  1206. package/dist/node_modules/d3-format/src/defaultLocale.js +0 -15
  1207. package/dist/node_modules/d3-format/src/defaultLocale.js.map +0 -1
  1208. package/dist/node_modules/d3-format/src/exponent.js +0 -9
  1209. package/dist/node_modules/d3-format/src/exponent.js.map +0 -1
  1210. package/dist/node_modules/d3-format/src/formatDecimal.js +0 -13
  1211. package/dist/node_modules/d3-format/src/formatDecimal.js.map +0 -1
  1212. package/dist/node_modules/d3-format/src/formatGroup.js +0 -11
  1213. package/dist/node_modules/d3-format/src/formatGroup.js.map +0 -1
  1214. package/dist/node_modules/d3-format/src/formatNumerals.js +0 -12
  1215. package/dist/node_modules/d3-format/src/formatNumerals.js.map +0 -1
  1216. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -13
  1217. package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +0 -1
  1218. package/dist/node_modules/d3-format/src/formatRounded.js +0 -12
  1219. package/dist/node_modules/d3-format/src/formatRounded.js.map +0 -1
  1220. package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -29
  1221. package/dist/node_modules/d3-format/src/formatSpecifier.js.map +0 -1
  1222. package/dist/node_modules/d3-format/src/formatTrim.js +0 -20
  1223. package/dist/node_modules/d3-format/src/formatTrim.js.map +0 -1
  1224. package/dist/node_modules/d3-format/src/formatTypes.js +0 -23
  1225. package/dist/node_modules/d3-format/src/formatTypes.js.map +0 -1
  1226. package/dist/node_modules/d3-format/src/identity.js +0 -8
  1227. package/dist/node_modules/d3-format/src/identity.js.map +0 -1
  1228. package/dist/node_modules/d3-format/src/locale.js +0 -86
  1229. package/dist/node_modules/d3-format/src/locale.js.map +0 -1
  1230. package/dist/node_modules/d3-format/src/precisionFixed.js +0 -9
  1231. package/dist/node_modules/d3-format/src/precisionFixed.js.map +0 -1
  1232. package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -9
  1233. package/dist/node_modules/d3-format/src/precisionPrefix.js.map +0 -1
  1234. package/dist/node_modules/d3-format/src/precisionRound.js +0 -9
  1235. package/dist/node_modules/d3-format/src/precisionRound.js.map +0 -1
  1236. package/dist/node_modules/d3-interpolate/src/array.js +0 -15
  1237. package/dist/node_modules/d3-interpolate/src/array.js.map +0 -1
  1238. package/dist/node_modules/d3-interpolate/src/basis.js +0 -16
  1239. package/dist/node_modules/d3-interpolate/src/basis.js.map +0 -1
  1240. package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -13
  1241. package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +0 -1
  1242. package/dist/node_modules/d3-interpolate/src/color.js +0 -25
  1243. package/dist/node_modules/d3-interpolate/src/color.js.map +0 -1
  1244. package/dist/node_modules/d3-interpolate/src/constant.js +0 -6
  1245. package/dist/node_modules/d3-interpolate/src/constant.js.map +0 -1
  1246. package/dist/node_modules/d3-interpolate/src/date.js +0 -11
  1247. package/dist/node_modules/d3-interpolate/src/date.js.map +0 -1
  1248. package/dist/node_modules/d3-interpolate/src/number.js +0 -10
  1249. package/dist/node_modules/d3-interpolate/src/number.js.map +0 -1
  1250. package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -16
  1251. package/dist/node_modules/d3-interpolate/src/numberArray.js.map +0 -1
  1252. package/dist/node_modules/d3-interpolate/src/object.js +0 -14
  1253. package/dist/node_modules/d3-interpolate/src/object.js.map +0 -1
  1254. package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -14
  1255. package/dist/node_modules/d3-interpolate/src/piecewise.js.map +0 -1
  1256. package/dist/node_modules/d3-interpolate/src/rgb.js +0 -19
  1257. package/dist/node_modules/d3-interpolate/src/rgb.js.map +0 -1
  1258. package/dist/node_modules/d3-interpolate/src/round.js +0 -10
  1259. package/dist/node_modules/d3-interpolate/src/round.js.map +0 -1
  1260. package/dist/node_modules/d3-interpolate/src/string.js +0 -28
  1261. package/dist/node_modules/d3-interpolate/src/string.js.map +0 -1
  1262. package/dist/node_modules/d3-interpolate/src/value.js +0 -18
  1263. package/dist/node_modules/d3-interpolate/src/value.js.map +0 -1
  1264. package/dist/node_modules/d3-path/src/path.js.map +0 -1
  1265. package/dist/node_modules/d3-scale/src/band.js +0 -52
  1266. package/dist/node_modules/d3-scale/src/band.js.map +0 -1
  1267. package/dist/node_modules/d3-scale/src/constant.js +0 -10
  1268. package/dist/node_modules/d3-scale/src/constant.js.map +0 -1
  1269. package/dist/node_modules/d3-scale/src/continuous.js +0 -73
  1270. package/dist/node_modules/d3-scale/src/continuous.js.map +0 -1
  1271. package/dist/node_modules/d3-scale/src/diverging.js +0 -82
  1272. package/dist/node_modules/d3-scale/src/diverging.js.map +0 -1
  1273. package/dist/node_modules/d3-scale/src/identity.js +0 -20
  1274. package/dist/node_modules/d3-scale/src/identity.js.map +0 -1
  1275. package/dist/node_modules/d3-scale/src/init.js +0 -29
  1276. package/dist/node_modules/d3-scale/src/init.js.map +0 -1
  1277. package/dist/node_modules/d3-scale/src/linear.js +0 -36
  1278. package/dist/node_modules/d3-scale/src/linear.js.map +0 -1
  1279. package/dist/node_modules/d3-scale/src/log.js +0 -77
  1280. package/dist/node_modules/d3-scale/src/log.js.map +0 -1
  1281. package/dist/node_modules/d3-scale/src/nice.js +0 -10
  1282. package/dist/node_modules/d3-scale/src/nice.js.map +0 -1
  1283. package/dist/node_modules/d3-scale/src/number.js +0 -8
  1284. package/dist/node_modules/d3-scale/src/number.js.map +0 -1
  1285. package/dist/node_modules/d3-scale/src/ordinal.js +0 -31
  1286. package/dist/node_modules/d3-scale/src/ordinal.js.map +0 -1
  1287. package/dist/node_modules/d3-scale/src/pow.js +0 -37
  1288. package/dist/node_modules/d3-scale/src/pow.js.map +0 -1
  1289. package/dist/node_modules/d3-scale/src/quantile.js +0 -37
  1290. package/dist/node_modules/d3-scale/src/quantile.js.map +0 -1
  1291. package/dist/node_modules/d3-scale/src/quantize.js +0 -33
  1292. package/dist/node_modules/d3-scale/src/quantize.js.map +0 -1
  1293. package/dist/node_modules/d3-scale/src/radial.js +0 -39
  1294. package/dist/node_modules/d3-scale/src/radial.js.map +0 -1
  1295. package/dist/node_modules/d3-scale/src/sequential.js +0 -67
  1296. package/dist/node_modules/d3-scale/src/sequential.js.map +0 -1
  1297. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -30
  1298. package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +0 -1
  1299. package/dist/node_modules/d3-scale/src/symlog.js +0 -30
  1300. package/dist/node_modules/d3-scale/src/symlog.js.map +0 -1
  1301. package/dist/node_modules/d3-scale/src/threshold.js +0 -25
  1302. package/dist/node_modules/d3-scale/src/threshold.js.map +0 -1
  1303. package/dist/node_modules/d3-scale/src/tickFormat.js +0 -31
  1304. package/dist/node_modules/d3-scale/src/tickFormat.js.map +0 -1
  1305. package/dist/node_modules/d3-scale/src/time.js +0 -47
  1306. package/dist/node_modules/d3-scale/src/time.js.map +0 -1
  1307. package/dist/node_modules/d3-scale/src/utcTime.js +0 -19
  1308. package/dist/node_modules/d3-scale/src/utcTime.js.map +0 -1
  1309. package/dist/node_modules/d3-shape/src/area.js +0 -55
  1310. package/dist/node_modules/d3-shape/src/area.js.map +0 -1
  1311. package/dist/node_modules/d3-shape/src/array.js +0 -8
  1312. package/dist/node_modules/d3-shape/src/array.js.map +0 -1
  1313. package/dist/node_modules/d3-shape/src/constant.js +0 -10
  1314. package/dist/node_modules/d3-shape/src/constant.js.map +0 -1
  1315. package/dist/node_modules/d3-shape/src/curve/basis.js +0 -49
  1316. package/dist/node_modules/d3-shape/src/curve/basis.js.map +0 -1
  1317. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -50
  1318. package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +0 -1
  1319. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -46
  1320. package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +0 -1
  1321. package/dist/node_modules/d3-shape/src/curve/bump.js +0 -40
  1322. package/dist/node_modules/d3-shape/src/curve/bump.js.map +0 -1
  1323. package/dist/node_modules/d3-shape/src/curve/linear.js +0 -36
  1324. package/dist/node_modules/d3-shape/src/curve/linear.js.map +0 -1
  1325. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -25
  1326. package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +0 -1
  1327. package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -94
  1328. package/dist/node_modules/d3-shape/src/curve/monotone.js.map +0 -1
  1329. package/dist/node_modules/d3-shape/src/curve/natural.js +0 -39
  1330. package/dist/node_modules/d3-shape/src/curve/natural.js.map +0 -1
  1331. package/dist/node_modules/d3-shape/src/curve/step.js +0 -47
  1332. package/dist/node_modules/d3-shape/src/curve/step.js.map +0 -1
  1333. package/dist/node_modules/d3-shape/src/line.js +0 -30
  1334. package/dist/node_modules/d3-shape/src/line.js.map +0 -1
  1335. package/dist/node_modules/d3-shape/src/math.js +0 -8
  1336. package/dist/node_modules/d3-shape/src/math.js.map +0 -1
  1337. package/dist/node_modules/d3-shape/src/noop.js +0 -6
  1338. package/dist/node_modules/d3-shape/src/noop.js.map +0 -1
  1339. package/dist/node_modules/d3-shape/src/offset/expand.js +0 -15
  1340. package/dist/node_modules/d3-shape/src/offset/expand.js.map +0 -1
  1341. package/dist/node_modules/d3-shape/src/offset/none.js +0 -8
  1342. package/dist/node_modules/d3-shape/src/offset/none.js.map +0 -1
  1343. package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -15
  1344. package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +0 -1
  1345. package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -21
  1346. package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +0 -1
  1347. package/dist/node_modules/d3-shape/src/order/none.js +0 -9
  1348. package/dist/node_modules/d3-shape/src/order/none.js.map +0 -1
  1349. package/dist/node_modules/d3-shape/src/path.js +0 -19
  1350. package/dist/node_modules/d3-shape/src/path.js.map +0 -1
  1351. package/dist/node_modules/d3-shape/src/point.js +0 -11
  1352. package/dist/node_modules/d3-shape/src/point.js.map +0 -1
  1353. package/dist/node_modules/d3-shape/src/stack.js +0 -34
  1354. package/dist/node_modules/d3-shape/src/stack.js.map +0 -1
  1355. package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -10
  1356. package/dist/node_modules/d3-shape/src/symbol/circle.js.map +0 -1
  1357. package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -10
  1358. package/dist/node_modules/d3-shape/src/symbol/cross.js.map +0 -1
  1359. package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -10
  1360. package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +0 -1
  1361. package/dist/node_modules/d3-shape/src/symbol/square.js +0 -10
  1362. package/dist/node_modules/d3-shape/src/symbol/square.js.map +0 -1
  1363. package/dist/node_modules/d3-shape/src/symbol/star.js +0 -15
  1364. package/dist/node_modules/d3-shape/src/symbol/star.js.map +0 -1
  1365. package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -10
  1366. package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +0 -1
  1367. package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -10
  1368. package/dist/node_modules/d3-shape/src/symbol/wye.js.map +0 -1
  1369. package/dist/node_modules/d3-shape/src/symbol.js +0 -23
  1370. package/dist/node_modules/d3-shape/src/symbol.js.map +0 -1
  1371. package/dist/node_modules/d3-time/src/day.js +0 -21
  1372. package/dist/node_modules/d3-time/src/day.js.map +0 -1
  1373. package/dist/node_modules/d3-time/src/duration.js +0 -6
  1374. package/dist/node_modules/d3-time/src/duration.js.map +0 -1
  1375. package/dist/node_modules/d3-time/src/hour.js +0 -19
  1376. package/dist/node_modules/d3-time/src/hour.js.map +0 -1
  1377. package/dist/node_modules/d3-time/src/interval.js +0 -28
  1378. package/dist/node_modules/d3-time/src/interval.js.map +0 -1
  1379. package/dist/node_modules/d3-time/src/millisecond.js +0 -14
  1380. package/dist/node_modules/d3-time/src/millisecond.js.map +0 -1
  1381. package/dist/node_modules/d3-time/src/minute.js +0 -19
  1382. package/dist/node_modules/d3-time/src/minute.js.map +0 -1
  1383. package/dist/node_modules/d3-time/src/month.js +0 -18
  1384. package/dist/node_modules/d3-time/src/month.js.map +0 -1
  1385. package/dist/node_modules/d3-time/src/second.js +0 -13
  1386. package/dist/node_modules/d3-time/src/second.js.map +0 -1
  1387. package/dist/node_modules/d3-time/src/ticks.js +0 -125
  1388. package/dist/node_modules/d3-time/src/ticks.js.map +0 -1
  1389. package/dist/node_modules/d3-time/src/week.js +0 -25
  1390. package/dist/node_modules/d3-time/src/week.js.map +0 -1
  1391. package/dist/node_modules/d3-time/src/year.js +0 -26
  1392. package/dist/node_modules/d3-time/src/year.js.map +0 -1
  1393. package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -62
  1394. package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +0 -1
  1395. package/dist/node_modules/d3-time-format/src/locale.js.map +0 -1
  1396. package/dist/node_modules/internmap/src/index.js +0 -40
  1397. package/dist/node_modules/internmap/src/index.js.map +0 -1
  1398. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
  1399. package/dist/translations/en.d.ts.map +0 -1
  1400. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -0,0 +1,166 @@
1
+ // src/devportal/utils/publisherPayouts.ts
2
+ var e = ["RAZORPAY_X", "BANK_TRANSFER"], t = ["STRIPE_CONNECT", "BANK_TRANSFER"];
3
+ function n(e) {
4
+ let t = (e ?? "").trim().toUpperCase();
5
+ return /^[A-Z]{2}$/.test(t) ? t : "";
6
+ }
7
+ function r(e) {
8
+ return e === "BANK_TRANSFER" || e === "PAYPAL" || e === "RAZORPAY_X" || e === "STRIPE_CONNECT";
9
+ }
10
+ function i(i, a) {
11
+ let o = n(i), s = n(a?.country);
12
+ if (a && (o === "" || o === s)) {
13
+ let e = a.methodTypes.filter(r).filter((e) => e !== "PAYPAL");
14
+ if (e.length > 0) return e;
15
+ }
16
+ return [...o === "IN" ? e : t];
17
+ }
18
+ function a(e) {
19
+ return n(e) === "IN" ? "INR" : "USD";
20
+ }
21
+ function o(e) {
22
+ return e === "BANK_TRANSFER" || e === "RAZORPAY_X";
23
+ }
24
+ function s(e) {
25
+ return e === "RAZORPAY_X" || e === "STRIPE_CONNECT";
26
+ }
27
+ function c(e) {
28
+ switch (e.status) {
29
+ case "VERIFIED": return "VERIFIED";
30
+ case "REJECTED": return "REJECTED";
31
+ case "SUSPENDED": return "SUSPENDED";
32
+ case "CLOSED": return "CLOSED";
33
+ }
34
+ if (!s(e.type)) return "MANUAL_REVIEW";
35
+ switch (e.processorStatus) {
36
+ case "PENDING_VERIFICATION": return "IN_PROGRESS";
37
+ case "ACTIVE": return "AWAITING_KYC";
38
+ case "FAILED_VERIFICATION": return "FAILED";
39
+ default: return "NOT_STARTED";
40
+ }
41
+ }
42
+ function l(e) {
43
+ let t = c(e);
44
+ return t === "NOT_STARTED" || t === "FAILED" || t === "IN_PROGRESS" && e.type === "STRIPE_CONNECT";
45
+ }
46
+ function u(e) {
47
+ return e.filter((e) => c(e) === "IN_PROGRESS");
48
+ }
49
+ function d(e) {
50
+ let t = new URLSearchParams(e).get("onboarding");
51
+ return t === "return" || t === "refresh" ? t : null;
52
+ }
53
+ function f(e) {
54
+ return e.filter((e) => e.type === "STRIPE_CONNECT" && e.status === "PENDING" && !!e.processorStatus);
55
+ }
56
+ function p(e) {
57
+ window.location.assign(e);
58
+ }
59
+ function m(e) {
60
+ if (!e) return null;
61
+ try {
62
+ let t = new URL(e);
63
+ return t.protocol === "https:" ? t.toString() : null;
64
+ } catch {
65
+ return null;
66
+ }
67
+ }
68
+ var h = /^[A-Z]{4}0[A-Z0-9]{6}$/, g = /^[A-Z]{6}[A-Z0-9]+$/, _ = /^\d{4}$/, v = /^[A-Za-z0-9]{5,35}$/, y = /^\+?\d{8,15}$/;
69
+ function b(e, t) {
70
+ let r = e.trim().toUpperCase();
71
+ return n(t) === "IN" ? h.test(r) : (r.length === 8 || r.length === 11) && g.test(r);
72
+ }
73
+ function x(e) {
74
+ let t = e.trim();
75
+ if (!t || t.length > 254 || /\s/.test(t)) return !1;
76
+ let n = t.indexOf("@");
77
+ if (n < 1 || n !== t.lastIndexOf("@")) return !1;
78
+ let r = t.slice(n + 1);
79
+ return r.includes(".") && !r.startsWith(".") && !r.endsWith(".");
80
+ }
81
+ function S(e) {
82
+ return e.replace(/[\s()-]/g, "");
83
+ }
84
+ function C(e, t) {
85
+ let r = {}, a = n(e.country);
86
+ a || (r.country = "Enter the two-letter country code of the account, for example IN or US."), e.type ? a && !i(a, t).some((t) => t === e.type) && (r.type = "This payout method is not available for that country.") : r.type = "Choose how you want to be paid.";
87
+ let s = e.accountHolderName.trim();
88
+ return (!s || s.length > 140) && (r.accountHolderName = "Enter the account holder's name exactly as the bank has it."), o(e.type) && (_.test(e.accountNumberLast4.trim()) || (r.accountNumberLast4 = "Enter the last four digits of the account number."), a && b(e.bankCode, a) || (r.bankCode = a === "IN" ? "Enter a valid 11-character IFSC, for example HDFC0001234." : "Enter a valid 8 or 11-character SWIFT/BIC code.")), r;
89
+ }
90
+ function w(e) {
91
+ let t = n(e.country), i = r(e.type) ? e.type : "BANK_TRANSFER", s = e.bankName.trim();
92
+ return {
93
+ type: i,
94
+ country: t,
95
+ currency: a(t),
96
+ accountHolderName: e.accountHolderName.trim(),
97
+ ...o(i) ? {
98
+ accountNumberLast4: e.accountNumberLast4.trim(),
99
+ bankCode: e.bankCode.trim().toUpperCase(),
100
+ ...s ? { bankName: s } : {}
101
+ } : {},
102
+ isDefault: e.isDefault
103
+ };
104
+ }
105
+ function T(e, t, n) {
106
+ let r = {};
107
+ x(t.contactEmail) || (r.contactEmail = "Enter a valid contact email.");
108
+ let i = S(t.contactPhone);
109
+ if (i && !y.test(i) && (r.contactPhone = "Enter 8 to 15 digits, with an optional leading +."), e === "RAZORPAY_X") {
110
+ let e = t.accountNumber.replace(/\s+/g, "");
111
+ v.test(e) ? n && !e.endsWith(n) && (r.accountNumber = `The account number must end in ${n}, the digits you registered.`) : r.accountNumber = "Enter the full account number (5 to 35 letters or digits).";
112
+ }
113
+ return r;
114
+ }
115
+ function E(e, t) {
116
+ let n = S(t.contactPhone);
117
+ return {
118
+ contactEmail: t.contactEmail.trim(),
119
+ ...n ? { contactPhone: n } : {},
120
+ ...e === "RAZORPAY_X" ? { accountNumber: t.accountNumber.replace(/\s+/g, "") } : {}
121
+ };
122
+ }
123
+ function D(e) {
124
+ let t = e?.accountLast4;
125
+ return typeof t == "string" && /^\d{4}$/.test(t) ? t : null;
126
+ }
127
+ var O = "Something went wrong. Nothing was changed. Try again in a moment; if it keeps failing, contact support.";
128
+ function k(e) {
129
+ return typeof e == "object" && e && !Array.isArray(e) ? e : null;
130
+ }
131
+ function A(e) {
132
+ if (typeof e != "string") return null;
133
+ let t = e.trim();
134
+ return !t || /^(unexpected error|response not successful|failed to fetch|network ?error)/i.test(t) ? null : t;
135
+ }
136
+ function j(e) {
137
+ let t = k(e);
138
+ for (let e of ["errors", "graphQLErrors"]) {
139
+ let n = t?.[e];
140
+ if (!Array.isArray(n) || n.length === 0) continue;
141
+ let r = k(n[0]), i = k(r?.extensions)?.code;
142
+ return {
143
+ code: typeof i == "string" ? i : null,
144
+ message: A(r?.message)
145
+ };
146
+ }
147
+ return {
148
+ code: null,
149
+ message: e instanceof Error ? A(e.message) : A(t?.message)
150
+ };
151
+ }
152
+ function M(e, t) {
153
+ let { code: n, message: r } = j(e);
154
+ switch (n) {
155
+ case "FAILED_PRECONDITION": return t === "start" || t === "refresh" ? "Automatic verification is not available for this processor yet. Your payout method stays pending and the marketplace team will verify it." : t === "add" ? "Accept the current Marketplace & Developer Agreement before adding a payout method." : r ?? "Something went wrong. Nothing was changed. Try again in a moment; if it keeps failing, contact support.";
156
+ case "BAD_USER_INPUT": return r ?? "Some of the details are not valid. Check them and try again.";
157
+ case "SERVICE_UNAVAILABLE": return "Payout onboarding is temporarily unavailable. Nothing was changed. Try again in a few minutes.";
158
+ case "NOT_FOUND": return t === "add" || t === "agreement" ? "You do not have a publisher profile yet. It is created when you submit your first app to the store." : "This payout method no longer exists. Reload the page.";
159
+ case "FORBIDDEN": return "Your publisher profile is suspended, so payout methods cannot be changed. Contact support.";
160
+ case "INVALID_STATE": return "This payout method is no longer pending, so it cannot be verified again. Reload the page.";
161
+ default: return r ?? "Something went wrong. Nothing was changed. Try again in a moment; if it keeps failing, contact support.";
162
+ }
163
+ }
164
+ export { e as INDIA_METHOD_TYPES, t as INTERNATIONAL_METHOD_TYPES, O as PAYOUT_GENERIC_ERROR, D as accountLast4Of, l as canStartOnboarding, a as defaultCurrencyForCountry, j as firstGraphQLError, b as isValidBankCode, x as isValidEmail, i as methodTypesForCountry, u as methodsToPoll, o as needsBankDetails, n as normalizeCountry, S as normalizePhone, M as payoutErrorMessage, c as payoutMethodPhase, d as readOnboardingRedirect, p as redirectToOnboarding, m as safeOnboardingUrl, f as stripeMethodsInOnboarding, s as supportsAutomaticOnboarding, w as toAddPayoutMethodInput, E as toOnboardingInput, C as validateAddPayoutMethod, T as validateOnboarding };
165
+
166
+ //# sourceMappingURL=publisherPayouts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publisherPayouts.js","names":["INDIA_METHOD_TYPES","INTERNATIONAL_METHOD_TYPES","normalizeCountry","code","value","isPayoutMethodType","methodTypesForCountry","country","routeCountry","route","fromRoute","t","defaultCurrencyForCountry","needsBankDetails","type","supportsAutomaticOnboarding","payoutMethodPhase","method","canStartOnboarding","phase","methodsToPoll","methods","m","readOnboardingRedirect","search","stripeMethodsInOnboarding","redirectToOnboarding","url","safeOnboardingUrl","parsed","IFSC_PATTERN","SWIFT_PATTERN","LAST4_PATTERN","ACCOUNT_NUMBER_PATTERN","PHONE_PATTERN","isValidBankCode","isValidEmail","email","at","domain","normalizePhone","validateAddPayoutMethod","errors","form","holder","toAddPayoutMethodInput","bankName","validateOnboarding","phone","account","accountLast4","toOnboardingInput","accountLast4Of","maskedDetails","\"accountLast4\"","PAYOUT_GENERIC_ERROR","readRecord","usableMessage","message","firstGraphQLError","record","error","key","entries","entry","\"extensions\"","\"code\"","\"message\"","payoutErrorMessage","action"],"sources":["../../../src/devportal/utils/publisherPayouts.ts"],"sourcesContent":["/**\n * Publisher payout methods and automatic processor onboarding (BOFF-10953).\n *\n * Pure helpers behind the Payouts page: which payout method types a country\n * can use, what state a method is in from the publisher's point of view,\n * client-side checks that mirror the store's validation (the store stays\n * authoritative and re-validates everything), and the mapping from store\n * error codes to messages a publisher can act on.\n *\n * Backend contract: global-store-svc `myPublisherPayoutMethods`,\n * `addMyPublisherPayoutMethod`, `startMyPublisherPayoutOnboarding` and\n * `refreshMyPublisherPayoutOnboarding` (BOFF-10634, BOFF-10895).\n */\n\nexport type PayoutMethodTypeValue =\n \"BANK_TRANSFER\" | \"PAYPAL\" | \"RAZORPAY_X\" | \"STRIPE_CONNECT\";\n\n/** Method types offered for India (RazorpayX payouts in INR). */\nexport const INDIA_METHOD_TYPES: readonly PayoutMethodTypeValue[] = [\n \"RAZORPAY_X\",\n \"BANK_TRANSFER\",\n];\n\n/** Method types offered everywhere else (Stripe Connect in USD). */\nexport const INTERNATIONAL_METHOD_TYPES: readonly PayoutMethodTypeValue[] = [\n \"STRIPE_CONNECT\",\n \"BANK_TRANSFER\",\n];\n\nexport interface PayoutRouteLike {\n country?: string | null;\n currency: string;\n processor: string;\n methodTypes: readonly string[];\n}\n\nexport interface PayoutMethodLike {\n id: string;\n type: string;\n status: string;\n processorStatus?: string | null;\n processorFailureReason?: string | null;\n rejectionReason?: string | null;\n}\n\n/** Normalise a country to an upper-case ISO 3166-1 alpha-2 code, or \"\". */\nexport function normalizeCountry(value: string | null | undefined): string {\n const code = (value ?? \"\").trim().toUpperCase();\n return /^[A-Z]{2}$/.test(code) ? code : \"\";\n}\n\nfunction isPayoutMethodType(value: string): value is PayoutMethodTypeValue {\n return (\n value === \"BANK_TRANSFER\" ||\n value === \"PAYPAL\" ||\n value === \"RAZORPAY_X\" ||\n value === \"STRIPE_CONNECT\"\n );\n}\n\n/**\n * The payout method types to offer for the country the publisher entered.\n * The store's payoutRoute is used as-is when it is for that same country (or\n * no country is known yet); otherwise the same India / rest-of-world rule the\n * store applies decides. PAYPAL is never offered.\n */\nexport function methodTypesForCountry(\n country: string | null | undefined,\n route: PayoutRouteLike | null | undefined,\n): PayoutMethodTypeValue[] {\n const code = normalizeCountry(country);\n const routeCountry = normalizeCountry(route?.country);\n if (route && (code === \"\" || code === routeCountry)) {\n const fromRoute = route.methodTypes\n .filter(isPayoutMethodType)\n .filter((t) => t !== \"PAYPAL\");\n if (fromRoute.length > 0) return fromRoute;\n }\n return [...(code === \"IN\" ? INDIA_METHOD_TYPES : INTERNATIONAL_METHOD_TYPES)];\n}\n\n/** Default payout currency for a country (INR for India, USD elsewhere). */\nexport function defaultCurrencyForCountry(\n country: string | null | undefined,\n): string {\n return normalizeCountry(country) === \"IN\" ? \"INR\" : \"USD\";\n}\n\n/** True for the method types that collect bank details when added. */\nexport function needsBankDetails(type: string): boolean {\n return type === \"BANK_TRANSFER\" || type === \"RAZORPAY_X\";\n}\n\n/** True for the method types that support automatic processor onboarding. */\nexport function supportsAutomaticOnboarding(type: string): boolean {\n return type === \"RAZORPAY_X\" || type === \"STRIPE_CONNECT\";\n}\n\n/**\n * Where a payout method stands, from the publisher's point of view.\n *\n * - VERIFIED: payouts can be sent to it.\n * - NOT_STARTED: pending, automatic verification has not been started.\n * - IN_PROGRESS: the processor is still checking the account.\n * - AWAITING_KYC: the processor confirmed the account; the method turns\n * VERIFIED once the publisher's own verification passes.\n * - FAILED: the processor could not verify the account; start again.\n * - MANUAL_REVIEW: a bank transfer the marketplace team verifies by hand.\n * - REJECTED / SUSPENDED / CLOSED: final states set by the marketplace.\n */\nexport type PayoutMethodPhase =\n | \"VERIFIED\"\n | \"NOT_STARTED\"\n | \"IN_PROGRESS\"\n | \"AWAITING_KYC\"\n | \"FAILED\"\n | \"MANUAL_REVIEW\"\n | \"REJECTED\"\n | \"SUSPENDED\"\n | \"CLOSED\";\n\nexport function payoutMethodPhase(method: PayoutMethodLike): PayoutMethodPhase {\n switch (method.status) {\n case \"VERIFIED\":\n return \"VERIFIED\";\n case \"REJECTED\":\n return \"REJECTED\";\n case \"SUSPENDED\":\n return \"SUSPENDED\";\n case \"CLOSED\":\n return \"CLOSED\";\n default:\n break;\n }\n if (!supportsAutomaticOnboarding(method.type)) return \"MANUAL_REVIEW\";\n switch (method.processorStatus) {\n case \"PENDING_VERIFICATION\":\n return \"IN_PROGRESS\";\n case \"ACTIVE\":\n return \"AWAITING_KYC\";\n case \"FAILED_VERIFICATION\":\n return \"FAILED\";\n default:\n return \"NOT_STARTED\";\n }\n}\n\n/** The publisher may (re)start automatic onboarding for this method. */\nexport function canStartOnboarding(method: PayoutMethodLike): boolean {\n const phase = payoutMethodPhase(method);\n if (phase === \"NOT_STARTED\" || phase === \"FAILED\") return true;\n // A Stripe link can expire before the publisher finishes, so an in-progress\n // Stripe method can always ask for a fresh link.\n return phase === \"IN_PROGRESS\" && method.type === \"STRIPE_CONNECT\";\n}\n\n/** Methods whose processor state is worth re-reading while the page is open. */\nexport function methodsToPoll<T extends PayoutMethodLike>(\n methods: readonly T[],\n): T[] {\n return methods.filter((m) => payoutMethodPhase(m) === \"IN_PROGRESS\");\n}\n\n/** Stripe onboarding hands the publisher back with ?onboarding=return|refresh. */\nexport type OnboardingRedirect = \"return\" | \"refresh\" | null;\n\nexport function readOnboardingRedirect(search: string): OnboardingRedirect {\n const value = new URLSearchParams(search).get(\"onboarding\");\n return value === \"return\" || value === \"refresh\" ? value : null;\n}\n\n/** Pending Stripe methods that already have a processor account. */\nexport function stripeMethodsInOnboarding<T extends PayoutMethodLike>(\n methods: readonly T[],\n): T[] {\n return methods.filter(\n (m) =>\n m.type === \"STRIPE_CONNECT\" &&\n m.status === \"PENDING\" &&\n Boolean(m.processorStatus),\n );\n}\n\n/**\n * Send the browser to the processor's hosted onboarding page. Kept here so\n * the page's redirect can be replaced in tests.\n */\nexport function redirectToOnboarding(url: string): void {\n window.location.assign(url);\n}\n\n/** The redirect URL returned by the store, accepted only over https. */\nexport function safeOnboardingUrl(\n url: string | null | undefined,\n): string | null {\n if (!url) return null;\n try {\n const parsed = new URL(url);\n return parsed.protocol === \"https:\" ? parsed.toString() : null;\n } catch {\n return null;\n }\n}\n\n// ── Client-side validation (mirrors global-store-svc) ───────────────────────\n\nconst IFSC_PATTERN = /^[A-Z]{4}0[A-Z0-9]{6}$/;\nconst SWIFT_PATTERN = /^[A-Z]{6}[A-Z0-9]+$/;\nconst LAST4_PATTERN = /^\\d{4}$/;\nconst ACCOUNT_NUMBER_PATTERN = /^[A-Za-z0-9]{5,35}$/;\nconst PHONE_PATTERN = /^\\+?\\d{8,15}$/;\n\nexport function isValidBankCode(code: string, country: string): boolean {\n const value = code.trim().toUpperCase();\n if (normalizeCountry(country) === \"IN\") return IFSC_PATTERN.test(value);\n return (\n (value.length === 8 || value.length === 11) && SWIFT_PATTERN.test(value)\n );\n}\n\nexport function isValidEmail(value: string): boolean {\n const email = value.trim();\n if (!email || email.length > 254 || /\\s/.test(email)) return false;\n const at = email.indexOf(\"@\");\n if (at < 1 || at !== email.lastIndexOf(\"@\")) return false;\n const domain = email.slice(at + 1);\n return (\n domain.includes(\".\") && !domain.startsWith(\".\") && !domain.endsWith(\".\")\n );\n}\n\nexport function normalizePhone(value: string): string {\n return value.replace(/[\\s()-]/g, \"\");\n}\n\nexport interface AddPayoutMethodForm {\n type: string;\n country: string;\n accountHolderName: string;\n accountNumberLast4: string;\n bankCode: string;\n bankName: string;\n isDefault: boolean;\n}\n\nexport type AddPayoutMethodField =\n \"type\" | \"country\" | \"accountHolderName\" | \"accountNumberLast4\" | \"bankCode\";\n\n/** Field errors for the add form, as message keys with English fallbacks. */\nexport function validateAddPayoutMethod(\n form: AddPayoutMethodForm,\n route: PayoutRouteLike | null | undefined,\n): Partial<Record<AddPayoutMethodField, string>> {\n const errors: Partial<Record<AddPayoutMethodField, string>> = {};\n const country = normalizeCountry(form.country);\n if (!country) {\n errors.country =\n \"Enter the two-letter country code of the account, for example IN or US.\";\n }\n if (!form.type) {\n errors.type = \"Choose how you want to be paid.\";\n } else if (\n country &&\n !methodTypesForCountry(country, route).some((t) => t === form.type)\n ) {\n errors.type = \"This payout method is not available for that country.\";\n }\n const holder = form.accountHolderName.trim();\n if (!holder || holder.length > 140) {\n errors.accountHolderName =\n \"Enter the account holder's name exactly as the bank has it.\";\n }\n if (needsBankDetails(form.type)) {\n if (!LAST4_PATTERN.test(form.accountNumberLast4.trim())) {\n errors.accountNumberLast4 =\n \"Enter the last four digits of the account number.\";\n }\n if (!country || !isValidBankCode(form.bankCode, country)) {\n errors.bankCode =\n country === \"IN\"\n ? \"Enter a valid 11-character IFSC, for example HDFC0001234.\"\n : \"Enter a valid 8 or 11-character SWIFT/BIC code.\";\n }\n }\n return errors;\n}\n\n/** The addMyPublisherPayoutMethod input for a validated form. */\nexport function toAddPayoutMethodInput(form: AddPayoutMethodForm): {\n type: PayoutMethodTypeValue;\n country: string;\n currency: string;\n accountHolderName: string;\n accountNumberLast4?: string;\n bankCode?: string;\n bankName?: string;\n isDefault: boolean;\n} {\n const country = normalizeCountry(form.country);\n // validateAddPayoutMethod has already checked the type is offered.\n const type = isPayoutMethodType(form.type) ? form.type : \"BANK_TRANSFER\";\n const bankName = form.bankName.trim();\n return {\n type,\n country,\n currency: defaultCurrencyForCountry(country),\n accountHolderName: form.accountHolderName.trim(),\n ...(needsBankDetails(type)\n ? {\n accountNumberLast4: form.accountNumberLast4.trim(),\n bankCode: form.bankCode.trim().toUpperCase(),\n ...(bankName ? { bankName } : {}),\n }\n : {}),\n isDefault: form.isDefault,\n };\n}\n\nexport interface OnboardingForm {\n contactEmail: string;\n contactPhone: string;\n accountNumber: string;\n}\n\nexport type OnboardingField = keyof OnboardingForm;\n\n/**\n * Field errors for the \"Verify automatically\" form. RazorpayX also needs the\n * full account number once, which must end in the registered last four digits.\n */\nexport function validateOnboarding(\n type: string,\n form: OnboardingForm,\n accountLast4: string | null | undefined,\n): Partial<Record<OnboardingField, string>> {\n const errors: Partial<Record<OnboardingField, string>> = {};\n if (!isValidEmail(form.contactEmail)) {\n errors.contactEmail = \"Enter a valid contact email.\";\n }\n const phone = normalizePhone(form.contactPhone);\n if (phone && !PHONE_PATTERN.test(phone)) {\n errors.contactPhone = \"Enter 8 to 15 digits, with an optional leading +.\";\n }\n if (type === \"RAZORPAY_X\") {\n const account = form.accountNumber.replace(/\\s+/g, \"\");\n if (!ACCOUNT_NUMBER_PATTERN.test(account)) {\n errors.accountNumber =\n \"Enter the full account number (5 to 35 letters or digits).\";\n } else if (accountLast4 && !account.endsWith(accountLast4)) {\n errors.accountNumber = `The account number must end in ${accountLast4}, the digits you registered.`;\n }\n }\n return errors;\n}\n\n/** The startMyPublisherPayoutOnboarding input for a validated form. */\nexport function toOnboardingInput(\n type: string,\n form: OnboardingForm,\n): { contactEmail: string; contactPhone?: string; accountNumber?: string } {\n const phone = normalizePhone(form.contactPhone);\n return {\n contactEmail: form.contactEmail.trim(),\n ...(phone ? { contactPhone: phone } : {}),\n ...(type === \"RAZORPAY_X\"\n ? { accountNumber: form.accountNumber.replace(/\\s+/g, \"\") }\n : {}),\n };\n}\n\n/** Last four digits recorded on a method, read from its masked details. */\nexport function accountLast4Of(\n maskedDetails: Record<string, unknown> | null | undefined,\n): string | null {\n const value = maskedDetails?.[\"accountLast4\"];\n return typeof value === \"string\" && /^\\d{4}$/.test(value) ? value : null;\n}\n\n// ── Error mapping ───────────────────────────────────────────────────────────\n\nexport type PayoutAction = \"agreement\" | \"add\" | \"remove\" | \"start\" | \"refresh\";\n\nexport const PAYOUT_GENERIC_ERROR =\n \"Something went wrong. Nothing was changed. Try again in a moment; if it keeps failing, contact support.\";\n\ninterface ErrorEntry {\n code: string | null;\n message: string | null;\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> | null {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n ? // Narrowed to a non-null, non-array object above; fields are read defensively below.\n (value as Record<string, unknown>)\n : null;\n}\n\nfunction usableMessage(value: unknown): string | null {\n if (typeof value !== \"string\") return null;\n const message = value.trim();\n if (!message) return null;\n if (\n /^(unexpected error|response not successful|failed to fetch|network ?error)/i.test(\n message,\n )\n ) {\n return null;\n }\n return message;\n}\n\n/** The first GraphQL error (code and message) carried by an Apollo error. */\nexport function firstGraphQLError(error: unknown): ErrorEntry {\n const record = readRecord(error);\n // Apollo Client 4 raises CombinedGraphQLErrors (`errors`); older clients\n // raised ApolloError (`graphQLErrors`).\n for (const key of [\"errors\", \"graphQLErrors\"]) {\n const entries = record?.[key];\n if (!Array.isArray(entries) || entries.length === 0) continue;\n const entry = readRecord(entries[0]);\n const code = readRecord(entry?.[\"extensions\"])?.[\"code\"];\n return {\n code: typeof code === \"string\" ? code : null,\n message: usableMessage(entry?.[\"message\"]),\n };\n }\n return {\n code: null,\n message:\n error instanceof Error\n ? usableMessage(error.message)\n : usableMessage(record?.[\"message\"]),\n };\n}\n\n/**\n * A message the publisher can act on for a failed payout action. The store's\n * own message is kept for input errors because it names the field at fault.\n */\nexport function payoutErrorMessage(\n error: unknown,\n action: PayoutAction,\n): string {\n const { code, message } = firstGraphQLError(error);\n switch (code) {\n case \"FAILED_PRECONDITION\":\n if (action === \"start\" || action === \"refresh\") {\n return \"Automatic verification is not available for this processor yet. Your payout method stays pending and the marketplace team will verify it.\";\n }\n if (action === \"add\") {\n return \"Accept the current Marketplace & Developer Agreement before adding a payout method.\";\n }\n return message ?? PAYOUT_GENERIC_ERROR;\n case \"BAD_USER_INPUT\":\n return (\n message ??\n \"Some of the details are not valid. Check them and try again.\"\n );\n case \"SERVICE_UNAVAILABLE\":\n return \"Payout onboarding is temporarily unavailable. Nothing was changed. Try again in a few minutes.\";\n case \"NOT_FOUND\":\n return action === \"add\" || action === \"agreement\"\n ? \"You do not have a publisher profile yet. It is created when you submit your first app to the store.\"\n : \"This payout method no longer exists. Reload the page.\";\n case \"FORBIDDEN\":\n return \"Your publisher profile is suspended, so payout methods cannot be changed. Contact support.\";\n case \"INVALID_STATE\":\n return \"This payout method is no longer pending, so it cannot be verified again. Reload the page.\";\n default:\n return message ?? PAYOUT_GENERIC_ERROR;\n }\n}\n"],"mappings":"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"}
@@ -1,2 +1 @@
1
1
  export declare function executeRecaptcha(action: string): Promise<string | undefined>;
2
- //# sourceMappingURL=recaptcha.d.ts.map
@@ -1,6 +1,5 @@
1
- //#region src/devportal/utils/recaptcha.ts
1
+ // src/devportal/utils/recaptcha.ts
2
2
  async function e(e) {}
3
- //#endregion
4
3
  export { e as executeRecaptcha };
5
4
 
6
5
  //# sourceMappingURL=recaptcha.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"recaptcha.js","names":[],"sources":["../../../src/devportal/utils/recaptcha.ts"],"sourcesContent":["const CAPTCHA_ENABLED = import.meta.env.VITE_CAPTCHA_ENABLED === \"true\";\nconst SCRIPT_ID = \"burdenoff-recaptcha-v3\";\n\ninterface Grecaptcha {\n ready(callback: () => void): void;\n execute(siteKey: string, options: { action: string }): Promise<string>;\n}\n\nfunction getGrecaptcha(): Grecaptcha | undefined {\n return (window as unknown as { grecaptcha?: Grecaptcha }).grecaptcha;\n}\n\nfunction getSiteKey(): string {\n const siteKey = import.meta.env.VITE_RECAPTCHA_SITE_KEY;\n if (typeof siteKey !== \"string\" || siteKey.trim().length === 0) {\n throw new Error(\"reCAPTCHA site key is not configured\");\n }\n return siteKey.trim();\n}\n\nfunction loadScript(siteKey: string): Promise<void> {\n if (getGrecaptcha()?.execute) {\n return Promise.resolve();\n }\n\n const existing = document.getElementById(\n SCRIPT_ID,\n ) as HTMLScriptElement | null;\n if (existing) {\n return new Promise((resolve, reject) => {\n existing.addEventListener(\"load\", () => resolve(), { once: true });\n existing.addEventListener(\n \"error\",\n () => reject(new Error(\"Failed to load reCAPTCHA\")),\n {\n once: true,\n },\n );\n });\n }\n\n return new Promise((resolve, reject) => {\n const script = document.createElement(\"script\");\n script.id = SCRIPT_ID;\n script.async = true;\n script.defer = true;\n script.src = `https://www.google.com/recaptcha/api.js?render=${encodeURIComponent(siteKey)}`;\n script.addEventListener(\"load\", () => resolve(), { once: true });\n script.addEventListener(\n \"error\",\n () => reject(new Error(\"Failed to load reCAPTCHA\")),\n {\n once: true,\n },\n );\n document.head.appendChild(script);\n });\n}\n\nexport async function executeRecaptcha(\n action: string,\n): Promise<string | undefined> {\n if (!CAPTCHA_ENABLED) {\n return undefined;\n }\n\n const siteKey = getSiteKey();\n await loadScript(siteKey);\n const grecaptcha = getGrecaptcha();\n if (!grecaptcha?.execute) {\n throw new Error(\"reCAPTCHA is not available\");\n }\n\n return new Promise((resolve, reject) => {\n grecaptcha.ready(() => {\n grecaptcha.execute(siteKey, { action }).then(resolve).catch(reject);\n });\n });\n}\n"],"mappings":";AA2DA,eAAsB,EACpB,GAC6B"}
1
+ {"version":3,"file":"recaptcha.js","names":["executeRecaptcha"],"sources":["../../../src/devportal/utils/recaptcha.ts"],"sourcesContent":["const CAPTCHA_ENABLED = import.meta.env.VITE_CAPTCHA_ENABLED === \"true\";\nconst SCRIPT_ID = \"burdenoff-recaptcha-v3\";\n\ninterface Grecaptcha {\n ready(callback: () => void): void;\n execute(siteKey: string, options: { action: string }): Promise<string>;\n}\n\nfunction getGrecaptcha(): Grecaptcha | undefined {\n return (window as unknown as { grecaptcha?: Grecaptcha }).grecaptcha;\n}\n\nfunction getSiteKey(): string {\n const siteKey = import.meta.env.VITE_RECAPTCHA_SITE_KEY;\n if (typeof siteKey !== \"string\" || siteKey.trim().length === 0) {\n throw new Error(\"reCAPTCHA site key is not configured\");\n }\n return siteKey.trim();\n}\n\nfunction loadScript(siteKey: string): Promise<void> {\n if (getGrecaptcha()?.execute) {\n return Promise.resolve();\n }\n\n const existing = document.getElementById(\n SCRIPT_ID,\n ) as HTMLScriptElement | null;\n if (existing) {\n return new Promise((resolve, reject) => {\n existing.addEventListener(\"load\", () => resolve(), { once: true });\n existing.addEventListener(\n \"error\",\n () => reject(new Error(\"Failed to load reCAPTCHA\")),\n {\n once: true,\n },\n );\n });\n }\n\n return new Promise((resolve, reject) => {\n const script = document.createElement(\"script\");\n script.id = SCRIPT_ID;\n script.async = true;\n script.defer = true;\n script.src = `https://www.google.com/recaptcha/api.js?render=${encodeURIComponent(siteKey)}`;\n script.addEventListener(\"load\", () => resolve(), { once: true });\n script.addEventListener(\n \"error\",\n () => reject(new Error(\"Failed to load reCAPTCHA\")),\n {\n once: true,\n },\n );\n document.head.appendChild(script);\n });\n}\n\nexport async function executeRecaptcha(\n action: string,\n): Promise<string | undefined> {\n if (!CAPTCHA_ENABLED) {\n return undefined;\n }\n\n const siteKey = getSiteKey();\n await loadScript(siteKey);\n const grecaptcha = getGrecaptcha();\n if (!grecaptcha?.execute) {\n throw new Error(\"reCAPTCHA is not available\");\n }\n\n return new Promise((resolve, reject) => {\n grecaptcha.ready(() => {\n grecaptcha.execute(siteKey, { action }).then(resolve).catch(reject);\n });\n });\n}\n"],"mappings":";AA2DA,eAAsBA,EACpB,GAC6B,CAiB/B"}
@@ -37,4 +37,3 @@ export declare function submitErrorMessage(error: unknown): string;
37
37
  * failure and reports it instead of throwing.
38
38
  */
39
39
  export declare function submitForReview(versions: readonly VersionLike[], steps: SubmitForReviewSteps): Promise<SubmitForReviewResult>;
40
- //# sourceMappingURL=submitForReview.d.ts.map
@@ -1,37 +1,38 @@
1
- function e(e) {
1
+ // src/devportal/utils/submitForReview.ts
2
+ var e = "Your app could not be submitted for review. Nothing was sent to reviewers. Try again in a moment; if it keeps failing, contact support.";
3
+ function t(e) {
2
4
  return e.filter((e) => e.status === "draft").map((e) => e.id);
3
5
  }
4
- function t(e) {
6
+ function n(e) {
5
7
  return typeof e == "object" && e && !Array.isArray(e) ? e : null;
6
8
  }
7
- function n(e) {
9
+ function r(e) {
8
10
  if (typeof e != "string") return null;
9
11
  let t = e.trim();
10
12
  return !t || /^(unexpected error|response not successful|failed to fetch|network ?error)/i.test(t) ? null : t;
11
13
  }
12
- function r(e) {
13
- let r = t(e);
14
+ function i(e) {
15
+ let t = n(e);
14
16
  for (let e of ["errors", "graphQLErrors"]) {
15
- let i = r?.[e];
17
+ let i = t?.[e];
16
18
  if (Array.isArray(i)) for (let e of i) {
17
- let r = n(t(e)?.message);
18
- if (r) return r;
19
+ let t = r(n(e)?.message);
20
+ if (t) return t;
19
21
  }
20
22
  }
21
- return e instanceof Error ? n(e.message) ?? "Your app could not be submitted for review. Nothing was sent to reviewers. Try again in a moment; if it keeps failing, contact support." : n(r?.message) ?? "Your app could not be submitted for review. Nothing was sent to reviewers. Try again in a moment; if it keeps failing, contact support.";
23
+ return e instanceof Error ? r(e.message) ?? "Your app could not be submitted for review. Nothing was sent to reviewers. Try again in a moment; if it keeps failing, contact support." : r(t?.message) ?? "Your app could not be submitted for review. Nothing was sent to reviewers. Try again in a moment; if it keeps failing, contact support.";
22
24
  }
23
- async function i(t, n) {
25
+ async function a(e, n) {
24
26
  try {
25
- for (let r of e(t)) await n.publishVersion(r);
27
+ for (let r of t(e)) await n.publishVersion(r);
26
28
  return await n.submitApplication(), { ok: !0 };
27
29
  } catch (e) {
28
30
  return console.warn("[DevPortal] Submit for review failed:", e), {
29
31
  ok: !1,
30
- message: r(e)
32
+ message: i(e)
31
33
  };
32
34
  }
33
35
  }
34
- //#endregion
35
- export { i as submitForReview };
36
+ export { e as SUBMIT_FAILED_MESSAGE, t as draftVersionIds, i as submitErrorMessage, a as submitForReview };
36
37
 
37
38
  //# sourceMappingURL=submitForReview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"submitForReview.js","names":[],"sources":["../../../src/devportal/utils/submitForReview.ts"],"sourcesContent":["/**\n * Submit-for-review flow for the application page.\n *\n * The page used to run these steps inline and swallow any failure with a\n * console.error, so when the store refused a submission the developer saw no\n * message: the app silently stayed a draft (BOFF-10636). The flow is pure here\n * so the page only renders the outcome, and the error mapping is unit tested.\n */\n\n/** Fallback when a failure carries no message a developer can use. */\nexport const SUBMIT_FAILED_MESSAGE =\n \"Your app could not be submitted for review. Nothing was sent to reviewers. Try again in a moment; if it keeps failing, contact support.\";\n\nexport interface VersionLike {\n id: string;\n status: string;\n}\n\nexport interface SubmitForReviewSteps {\n /** Moves one draft version into review together with the app. */\n publishVersion: (versionId: string) => Promise<unknown>;\n /** Submits the application itself. */\n submitApplication: () => Promise<unknown>;\n}\n\nexport type SubmitForReviewResult =\n | { ok: true }\n | { ok: false; message: string };\n\n/** Draft versions go into review together with the app. */\nexport function draftVersionIds(versions: readonly VersionLike[]): string[] {\n return versions.filter((v) => v.status === \"draft\").map((v) => v.id);\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> | null {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n ? // Narrowed to a non-null, non-array object above; fields are read defensively below.\n (value as Record<string, unknown>)\n : null;\n}\n\nfunction usableMessage(value: unknown): string | null {\n if (typeof value !== \"string\") return null;\n const message = value.trim();\n if (!message) return null;\n // Transport noise (\"Unexpected error.\", \"Response not successful: ...\",\n // \"Failed to fetch\") tells the developer nothing they can act on.\n if (\n /^(unexpected error|response not successful|failed to fetch|network ?error)/i.test(\n message,\n )\n ) {\n return null;\n }\n return message;\n}\n\n/**\n * The message to show for a failed submission: the first GraphQL error the\n * backend sent (it forwards actionable store errors), else the error's own\n * message, else a plain fallback.\n */\nexport function submitErrorMessage(error: unknown): string {\n const record = readRecord(error);\n // Apollo Client 4 raises CombinedGraphQLErrors (`errors`); older clients\n // raised ApolloError (`graphQLErrors`).\n for (const key of [\"errors\", \"graphQLErrors\"]) {\n const entries = record?.[key];\n if (!Array.isArray(entries)) continue;\n for (const entry of entries) {\n const message = usableMessage(readRecord(entry)?.[\"message\"]);\n if (message) return message;\n }\n }\n if (error instanceof Error) {\n return usableMessage(error.message) ?? SUBMIT_FAILED_MESSAGE;\n }\n return usableMessage(record?.[\"message\"]) ?? SUBMIT_FAILED_MESSAGE;\n}\n\n/**\n * Publish the draft versions, then submit the application. Stops at the first\n * failure and reports it instead of throwing.\n */\nexport async function submitForReview(\n versions: readonly VersionLike[],\n steps: SubmitForReviewSteps,\n): Promise<SubmitForReviewResult> {\n try {\n for (const versionId of draftVersionIds(versions)) {\n await steps.publishVersion(versionId);\n }\n await steps.submitApplication();\n return { ok: true };\n } catch (error) {\n // Keep the raw error for debugging; the developer sees the mapped message.\n console.warn(\"[DevPortal] Submit for review failed:\", error);\n return { ok: false, message: submitErrorMessage(error) };\n }\n}\n"],"mappings":"AA8BA,SAAgB,EAAgB,GAA4C;AAC1E,QAAO,EAAS,QAAQ,MAAM,EAAE,WAAW,QAAQ,CAAC,KAAK,MAAM,EAAE,GAAG;;AAGtE,SAAS,EAAW,GAAgD;AAClE,QAAO,OAAO,KAAU,YAAY,KAAkB,CAAC,MAAM,QAAQ,EAAM,GAEtE,IACD;;AAGN,SAAS,EAAc,GAA+B;AACpD,KAAI,OAAO,KAAU,SAAU,QAAO;CACtC,IAAM,IAAU,EAAM,MAAM;AAW5B,QAVI,CAAC,KAIH,8EAA8E,KAC5E,EACD,GAEM,OAEF;;AAQT,SAAgB,EAAmB,GAAwB;CACzD,IAAM,IAAS,EAAW,EAAM;AAGhC,MAAK,IAAM,KAAO,CAAC,UAAU,gBAAgB,EAAE;EAC7C,IAAM,IAAU,IAAS;AACpB,YAAM,QAAQ,EAAQ,CAC3B,MAAK,IAAM,KAAS,GAAS;GAC3B,IAAM,IAAU,EAAc,EAAW,EAAM,EAAG,QAAW;AAC7D,OAAI,EAAS,QAAO;;;AAMxB,QAHI,aAAiB,QACZ,EAAc,EAAM,QAAQ,IAAA,4IAE9B,EAAc,GAAS,QAAW,IAAA;;AAO3C,eAAsB,EACpB,GACA,GACgC;AAChC,KAAI;AACF,OAAK,IAAM,KAAa,EAAgB,EAAS,CAC/C,OAAM,EAAM,eAAe,EAAU;AAGvC,SADA,MAAM,EAAM,mBAAmB,EACxB,EAAE,IAAI,IAAM;UACZ,GAAO;AAGd,SADA,QAAQ,KAAK,yCAAyC,EAAM,EACrD;GAAE,IAAI;GAAO,SAAS,EAAmB,EAAM;GAAE"}
1
+ {"version":3,"file":"submitForReview.js","names":["SUBMIT_FAILED_MESSAGE","draftVersionIds","versions","v","readRecord","value","usableMessage","message","submitErrorMessage","record","error","key","entries","entry","\"message\"","submitForReview","versionId","steps"],"sources":["../../../src/devportal/utils/submitForReview.ts"],"sourcesContent":["/**\n * Submit-for-review flow for the application page.\n *\n * The page used to run these steps inline and swallow any failure with a\n * console.error, so when the store refused a submission the developer saw no\n * message: the app silently stayed a draft (BOFF-10636). The flow is pure here\n * so the page only renders the outcome, and the error mapping is unit tested.\n */\n\n/** Fallback when a failure carries no message a developer can use. */\nexport const SUBMIT_FAILED_MESSAGE =\n \"Your app could not be submitted for review. Nothing was sent to reviewers. Try again in a moment; if it keeps failing, contact support.\";\n\nexport interface VersionLike {\n id: string;\n status: string;\n}\n\nexport interface SubmitForReviewSteps {\n /** Moves one draft version into review together with the app. */\n publishVersion: (versionId: string) => Promise<unknown>;\n /** Submits the application itself. */\n submitApplication: () => Promise<unknown>;\n}\n\nexport type SubmitForReviewResult =\n { ok: true } | { ok: false; message: string };\n\n/** Draft versions go into review together with the app. */\nexport function draftVersionIds(versions: readonly VersionLike[]): string[] {\n return versions.filter((v) => v.status === \"draft\").map((v) => v.id);\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> | null {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n ? // Narrowed to a non-null, non-array object above; fields are read defensively below.\n (value as Record<string, unknown>)\n : null;\n}\n\nfunction usableMessage(value: unknown): string | null {\n if (typeof value !== \"string\") return null;\n const message = value.trim();\n if (!message) return null;\n // Transport noise (\"Unexpected error.\", \"Response not successful: ...\",\n // \"Failed to fetch\") tells the developer nothing they can act on.\n if (\n /^(unexpected error|response not successful|failed to fetch|network ?error)/i.test(\n message,\n )\n ) {\n return null;\n }\n return message;\n}\n\n/**\n * The message to show for a failed submission: the first GraphQL error the\n * backend sent (it forwards actionable store errors), else the error's own\n * message, else a plain fallback.\n */\nexport function submitErrorMessage(error: unknown): string {\n const record = readRecord(error);\n // Apollo Client 4 raises CombinedGraphQLErrors (`errors`); older clients\n // raised ApolloError (`graphQLErrors`).\n for (const key of [\"errors\", \"graphQLErrors\"]) {\n const entries = record?.[key];\n if (!Array.isArray(entries)) continue;\n for (const entry of entries) {\n const message = usableMessage(readRecord(entry)?.[\"message\"]);\n if (message) return message;\n }\n }\n if (error instanceof Error) {\n return usableMessage(error.message) ?? SUBMIT_FAILED_MESSAGE;\n }\n return usableMessage(record?.[\"message\"]) ?? SUBMIT_FAILED_MESSAGE;\n}\n\n/**\n * Publish the draft versions, then submit the application. Stops at the first\n * failure and reports it instead of throwing.\n */\nexport async function submitForReview(\n versions: readonly VersionLike[],\n steps: SubmitForReviewSteps,\n): Promise<SubmitForReviewResult> {\n try {\n for (const versionId of draftVersionIds(versions)) {\n await steps.publishVersion(versionId);\n }\n await steps.submitApplication();\n return { ok: true };\n } catch (error) {\n // Keep the raw error for debugging; the developer sees the mapped message.\n console.warn(\"[DevPortal] Submit for review failed:\", error);\n return { ok: false, message: submitErrorMessage(error) };\n }\n}\n"],"mappings":";AAUA,IAAaA,IACX;AAkBF,SAAgBC,EAAgB,GAA4C;CAC1E,OAAOC,EAAS,QAAQ,MAAMC,EAAE,WAAW,OAAO,CAAC,CAAC,KAAK,MAAMA,EAAE,EAAE;AACrE;AAEA,SAASC,EAAW,GAAgD;CAClE,OAAO,OAAOC,KAAU,YAAYA,KAAkB,CAAC,MAAM,QAAQA,CAAK,IAErEA,IACD;AACN;AAEA,SAASC,EAAc,GAA+B;CACpD,IAAI,OAAOD,KAAU,UAAU,OAAO;CACtC,IAAME,IAAUF,EAAM,KAAK;CAW3B,OAVI,CAACE,KAIH,8EAA8E,KAC5EA,CACF,IAEO,OAEFA;AACT;AAOA,SAAgBC,EAAmB,GAAwB;CACzD,IAAMC,IAASL,EAAWM,CAAK;CAG/B,KAAK,IAAMC,KAAO,CAAC,UAAU,eAAe,GAAG;EAC7C,IAAMC,IAAUH,IAASE;EACzB,IAAK,MAAM,QAAQC,CAAO,GAC1B,KAAK,IAAMC,KAASD,GAAS;GAC3B,IAAML,IAAUD,EAAcF,EAAWS,CAAK,CAAC,EAAGC,OAAU;GAC5D,IAAIP,GAAS,OAAOA;EACtB;CACF;CAIA,OAHIG,aAAiB,QACZJ,EAAcI,EAAM,OAAO,KAAA,4IAE7BJ,EAAcG,GAASK,OAAU,KAAA;AAC1C;AAMA,eAAsBC,EACpB,GACA,GACgC;CAChC,IAAI;EACF,KAAK,IAAMC,KAAaf,EAAgBC,CAAQ,GAC9C,MAAMe,EAAM,eAAeD,CAAS;EAGtC,OADA,MAAMC,EAAM,kBAAkB,GACvB,EAAE,IAAI,GAAK;CACpB,SAASP,GAAO;EAGd,OADA,QAAQ,KAAK,yCAAyCA,CAAK,GACpD;GAAE,IAAI;GAAO,SAASF,EAAmBE,CAAK;EAAE;CACzD;AACF"}
@@ -43,4 +43,3 @@ export declare function quotaErrorFrom(body: unknown): UploadRequestError | null
43
43
  export declare function httpErrorFrom(status: number, statusText: string, body: unknown): UploadRequestError;
44
44
  /** The error for in-band GraphQL errors on a 2xx response. */
45
45
  export declare function graphQLErrorFrom(body: unknown): UploadRequestError | null;
46
- //# sourceMappingURL=uploadErrors.d.ts.map
@@ -1,26 +1,27 @@
1
- var e = "File uploads are not available in this workspace because its plan does not include file storage. Switch to a workspace your plan covers, or upgrade this workspace's plan in Billing, then try again.", t = "This workspace has used up its file storage. Delete files you no longer need or upgrade the workspace's plan in Billing, then try again.", n = "Too many requests right now. Wait a moment, then try the upload again.", r = class extends Error {
1
+ // src/devportal/utils/uploadErrors.ts
2
+ var e = "QUOTA_NOT_PROVISIONED", t = "QUOTA_EXHAUSTED", n = "File uploads are not available in this workspace because its plan does not include file storage. Switch to a workspace your plan covers, or upgrade this workspace's plan in Billing, then try again.", r = "This workspace has used up its file storage. Delete files you no longer need or upgrade the workspace's plan in Billing, then try again.", i = "Too many requests right now. Wait a moment, then try the upload again.", a = class extends Error {
2
3
  code;
3
4
  status;
4
5
  constructor(e, t, n) {
5
6
  super(e), this.name = "UploadRequestError", this.code = t, this.status = n;
6
7
  }
7
8
  };
8
- function i(e) {
9
+ function o(e) {
9
10
  return typeof e == "object" && e && !Array.isArray(e) ? e : null;
10
11
  }
11
- function a(e) {
12
- let t = i(e)?.errors;
13
- return Array.isArray(t) ? t.filter((e) => i(e) !== null) : [];
12
+ function s(e) {
13
+ let t = o(e)?.errors;
14
+ return Array.isArray(t) ? t.filter((e) => o(e) !== null) : [];
14
15
  }
15
- function o(e) {
16
- let t = i(e.extensions)?.code;
16
+ function c(e) {
17
+ let t = o(e.extensions)?.code;
17
18
  return typeof t == "string" ? t : null;
18
19
  }
19
- function s(e) {
20
- let t = i(e.extensions)?.limitLeft, n = typeof t == "string" ? Number(t) : t;
20
+ function l(e) {
21
+ let t = o(e.extensions)?.limitLeft, n = typeof t == "string" ? Number(t) : t;
21
22
  return typeof n == "number" && Number.isFinite(n) && n >= 0 ? n : null;
22
23
  }
23
- function c(e) {
24
+ function u(e) {
24
25
  if (!Number.isFinite(e) || e < 0) return "0 B";
25
26
  let t = [
26
27
  "B",
@@ -32,31 +33,30 @@ function c(e) {
32
33
  for (; n >= 1024 && r < t.length - 1;) n /= 1024, r += 1;
33
34
  return r === 0 ? `${Math.round(n)} ${t[r]}` : `${n.toFixed(1)} ${t[r]}`;
34
35
  }
35
- function l(e) {
36
- let n = s(e);
37
- return n === null ? t : `${t} Space left: ${c(n)}.`;
38
- }
39
- function u(t) {
40
- for (let n of a(t)) {
41
- let t = o(n);
42
- if (t === "QUOTA_NOT_PROVISIONED") return new r(e, t, null);
43
- if (t === "QUOTA_EXHAUSTED") return new r(l(n), t, null);
36
+ function d(e) {
37
+ let t = l(e);
38
+ return t === null ? r : `${r} Space left: ${u(t)}.`;
39
+ }
40
+ function f(e) {
41
+ for (let t of s(e)) {
42
+ let e = c(t);
43
+ if (e === "QUOTA_NOT_PROVISIONED") return new a(n, e, null);
44
+ if (e === "QUOTA_EXHAUSTED") return new a(d(t), e, null);
44
45
  }
45
46
  return null;
46
47
  }
47
- function d(e, t, i) {
48
- let s = u(i);
49
- if (s) return new r(s.message, s.code, e);
50
- let c = a(i)[0];
51
- return c && typeof c.message == "string" && c.message.trim() ? new r(c.message, o(c), e) : e === 429 ? new r(n, null, e) : new r(`GraphQL request failed: ${e}${t ? ` ${t}` : ""}`, null, e);
48
+ function p(e, t, n) {
49
+ let r = f(n);
50
+ if (r) return new a(r.message, r.code, e);
51
+ let o = s(n)[0];
52
+ return o && typeof o.message == "string" && o.message.trim() ? new a(o.message, c(o), e) : e === 429 ? new a(i, null, e) : new a(`GraphQL request failed: ${e}${t ? ` ${t}` : ""}`, null, e);
52
53
  }
53
- function f(e) {
54
- let t = u(e);
54
+ function m(e) {
55
+ let t = f(e);
55
56
  if (t) return t;
56
- let n = a(e), [i] = n;
57
- return i ? new r(n.map((e) => typeof e.message == "string" ? e.message : "").filter(Boolean).join("; ") || "GraphQL request failed", o(i), null) : null;
57
+ let n = s(e), [r] = n;
58
+ return r ? new a(n.map((e) => typeof e.message == "string" ? e.message : "").filter(Boolean).join("; ") || "GraphQL request failed", c(r), null) : null;
58
59
  }
59
- //#endregion
60
- export { f as graphQLErrorFrom, d as httpErrorFrom };
60
+ export { t as QUOTA_EXHAUSTED, r as QUOTA_EXHAUSTED_MESSAGE, e as QUOTA_NOT_PROVISIONED, n as QUOTA_NOT_PROVISIONED_MESSAGE, i as RATE_LIMITED_MESSAGE, a as UploadRequestError, u as formatBytes, m as graphQLErrorFrom, p as httpErrorFrom, f as quotaErrorFrom };
61
61
 
62
62
  //# sourceMappingURL=uploadErrors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uploadErrors.js","names":[],"sources":["../../../src/devportal/utils/uploadErrors.ts"],"sourcesContent":["/**\n * Turns a failed files-upload GraphQL call into a message a developer can act on.\n *\n * The workspace gateway refuses a quota-gated mutation (`completeUpload`,\n * `uploadFile` and `createFolder` carry `@usage(checkQuota: true)`) with HTTP\n * 429 and a GraphQL body whose first error carries\n * `extensions.code` = `QUOTA_NOT_PROVISIONED` (the current workspace's plan does\n * not include the quota at all) or `QUOTA_EXHAUSTED` (the allowance is used\n * up). Reading only the status turned both into \"GraphQL request failed: 429\",\n * which reads as rate limiting and gives no way forward (BOFF-10676).\n *\n * These helpers are pure so the upload hook stays a thin transport and the\n * mapping can be unit tested without a network.\n */\n\n/** One GraphQL error, as far as these helpers read it. */\nexport interface GraphQLErrorLike {\n message?: unknown;\n extensions?: unknown;\n}\n\n/** Gateway quota block codes (wspace-public-gateway `sendQuotaExhausted`). */\nexport const QUOTA_NOT_PROVISIONED = \"QUOTA_NOT_PROVISIONED\";\nexport const QUOTA_EXHAUSTED = \"QUOTA_EXHAUSTED\";\n\nexport const QUOTA_NOT_PROVISIONED_MESSAGE =\n \"File uploads are not available in this workspace because its plan does not include file storage. Switch to a workspace your plan covers, or upgrade this workspace's plan in Billing, then try again.\";\n\nexport const QUOTA_EXHAUSTED_MESSAGE =\n \"This workspace has used up its file storage. Delete files you no longer need or upgrade the workspace's plan in Billing, then try again.\";\n\nexport const RATE_LIMITED_MESSAGE =\n \"Too many requests right now. Wait a moment, then try the upload again.\";\n\n/** Error raised by the upload transport; `code` is the gateway code when there is one. */\nexport class UploadRequestError extends Error {\n readonly code: string | null;\n readonly status: number | null;\n\n constructor(message: string, code: string | null, status: number | null) {\n super(message);\n this.name = \"UploadRequestError\";\n this.code = code;\n this.status = status;\n }\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> | null {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n ? // Narrowed to a non-null, non-array object above; fields are read defensively below.\n (value as Record<string, unknown>)\n : null;\n}\n\nfunction errorsOf(body: unknown): GraphQLErrorLike[] {\n const errors = readRecord(body)?.errors;\n if (!Array.isArray(errors)) return [];\n return errors.filter((e): e is GraphQLErrorLike => readRecord(e) !== null);\n}\n\nfunction codeOf(error: GraphQLErrorLike): string | null {\n const code = readRecord(error.extensions)?.code;\n return typeof code === \"string\" ? code : null;\n}\n\nfunction limitLeftOf(error: GraphQLErrorLike): number | null {\n const raw = readRecord(error.extensions)?.limitLeft;\n const value = typeof raw === \"string\" ? Number(raw) : raw;\n return typeof value === \"number\" && Number.isFinite(value) && value >= 0\n ? value\n : null;\n}\n\n/** Human-readable byte size (binary units, one decimal above KB). */\nexport function formatBytes(bytes: number): string {\n if (!Number.isFinite(bytes) || bytes < 0) return \"0 B\";\n const units = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\"];\n let value = bytes;\n let unit = 0;\n while (value >= 1024 && unit < units.length - 1) {\n value /= 1024;\n unit += 1;\n }\n return unit === 0\n ? `${Math.round(value)} ${units[unit]}`\n : `${value.toFixed(1)} ${units[unit]}`;\n}\n\nfunction exhaustedMessage(error: GraphQLErrorLike): string {\n const left = limitLeftOf(error);\n return left === null\n ? QUOTA_EXHAUSTED_MESSAGE\n : `${QUOTA_EXHAUSTED_MESSAGE} Space left: ${formatBytes(left)}.`;\n}\n\n/**\n * The quota refusal in a GraphQL body, if there is one. Used for both the\n * gateway's 429 response and an in-band error on a 200 response.\n */\nexport function quotaErrorFrom(body: unknown): UploadRequestError | null {\n for (const error of errorsOf(body)) {\n const code = codeOf(error);\n if (code === QUOTA_NOT_PROVISIONED) {\n return new UploadRequestError(QUOTA_NOT_PROVISIONED_MESSAGE, code, null);\n }\n if (code === QUOTA_EXHAUSTED) {\n return new UploadRequestError(exhaustedMessage(error), code, null);\n }\n }\n return null;\n}\n\n/**\n * The error for a non-2xx gateway response. `body` is the parsed JSON body, or\n * undefined when it was missing or not JSON.\n */\nexport function httpErrorFrom(\n status: number,\n statusText: string,\n body: unknown,\n): UploadRequestError {\n const quota = quotaErrorFrom(body);\n if (quota) {\n return new UploadRequestError(quota.message, quota.code, status);\n }\n const first = errorsOf(body)[0];\n if (first && typeof first.message === \"string\" && first.message.trim()) {\n return new UploadRequestError(first.message, codeOf(first), status);\n }\n if (status === 429) {\n return new UploadRequestError(RATE_LIMITED_MESSAGE, null, status);\n }\n const suffix = statusText ? ` ${statusText}` : \"\";\n return new UploadRequestError(\n `GraphQL request failed: ${status}${suffix}`,\n null,\n status,\n );\n}\n\n/** The error for in-band GraphQL errors on a 2xx response. */\nexport function graphQLErrorFrom(body: unknown): UploadRequestError | null {\n const quota = quotaErrorFrom(body);\n if (quota) return quota;\n const errors = errorsOf(body);\n const [first] = errors;\n if (!first) return null;\n const message = errors\n .map((e) => (typeof e.message === \"string\" ? e.message : \"\"))\n .filter(Boolean)\n .join(\"; \");\n return new UploadRequestError(\n message || \"GraphQL request failed\",\n codeOf(first),\n null,\n );\n}\n"],"mappings":"AAyBA,IAAa,IACX,yMAEW,IACX,4IAEW,IACX,0EAGW,IAAb,cAAwC,MAAM;CAC5C;CACA;CAEA,YAAY,GAAiB,GAAqB,GAAuB;AAIvE,EAHA,MAAM,EAAQ,EACd,KAAK,OAAO,sBACZ,KAAK,OAAO,GACZ,KAAK,SAAS;;;AAIlB,SAAS,EAAW,GAAgD;AAClE,QAAO,OAAO,KAAU,YAAY,KAAkB,CAAC,MAAM,QAAQ,EAAM,GAEtE,IACD;;AAGN,SAAS,EAAS,GAAmC;CACnD,IAAM,IAAS,EAAW,EAAK,EAAE;AAEjC,QADK,MAAM,QAAQ,EAAO,GACnB,EAAO,QAAQ,MAA6B,EAAW,EAAE,KAAK,KAAK,GADvC,EAAE;;AAIvC,SAAS,EAAO,GAAwC;CACtD,IAAM,IAAO,EAAW,EAAM,WAAW,EAAE;AAC3C,QAAO,OAAO,KAAS,WAAW,IAAO;;AAG3C,SAAS,EAAY,GAAwC;CAC3D,IAAM,IAAM,EAAW,EAAM,WAAW,EAAE,WACpC,IAAQ,OAAO,KAAQ,WAAW,OAAO,EAAI,GAAG;AACtD,QAAO,OAAO,KAAU,YAAY,OAAO,SAAS,EAAM,IAAI,KAAS,IACnE,IACA;;AAIN,SAAgB,EAAY,GAAuB;AACjD,KAAI,CAAC,OAAO,SAAS,EAAM,IAAI,IAAQ,EAAG,QAAO;CACjD,IAAM,IAAQ;EAAC;EAAK;EAAM;EAAM;EAAM;EAAK,EACvC,IAAQ,GACR,IAAO;AACX,QAAO,KAAS,QAAQ,IAAO,EAAM,SAAS,GAE5C,CADA,KAAS,MACT,KAAQ;AAEV,QAAO,MAAS,IACZ,GAAG,KAAK,MAAM,EAAM,CAAC,GAAG,EAAM,OAC9B,GAAG,EAAM,QAAQ,EAAE,CAAC,GAAG,EAAM;;AAGnC,SAAS,EAAiB,GAAiC;CACzD,IAAM,IAAO,EAAY,EAAM;AAC/B,QAAO,MAAS,OACZ,IACA,GAAG,EAAwB,eAAe,EAAY,EAAK,CAAC;;AAOlE,SAAgB,EAAe,GAA0C;AACvE,MAAK,IAAM,KAAS,EAAS,EAAK,EAAE;EAClC,IAAM,IAAO,EAAO,EAAM;AAC1B,MAAI,MAAA,wBACF,QAAO,IAAI,EAAmB,GAA+B,GAAM,KAAK;AAE1E,MAAI,MAAA,kBACF,QAAO,IAAI,EAAmB,EAAiB,EAAM,EAAE,GAAM,KAAK;;AAGtE,QAAO;;AAOT,SAAgB,EACd,GACA,GACA,GACoB;CACpB,IAAM,IAAQ,EAAe,EAAK;AAClC,KAAI,EACF,QAAO,IAAI,EAAmB,EAAM,SAAS,EAAM,MAAM,EAAO;CAElE,IAAM,IAAQ,EAAS,EAAK,CAAC;AAQ7B,QAPI,KAAS,OAAO,EAAM,WAAY,YAAY,EAAM,QAAQ,MAAM,GAC7D,IAAI,EAAmB,EAAM,SAAS,EAAO,EAAM,EAAE,EAAO,GAEjE,MAAW,MACN,IAAI,EAAmB,GAAsB,MAAM,EAAO,GAG5D,IAAI,EACT,2BAA2B,IAFd,IAAa,IAAI,MAAe,MAG7C,MACA,EACD;;AAIH,SAAgB,EAAiB,GAA0C;CACzE,IAAM,IAAQ,EAAe,EAAK;AAClC,KAAI,EAAO,QAAO;CAClB,IAAM,IAAS,EAAS,EAAK,EACvB,CAAC,KAAS;AAMhB,QALK,IAKE,IAAI,EAJK,EACb,KAAK,MAAO,OAAO,EAAE,WAAY,WAAW,EAAE,UAAU,GAAI,CAC5D,OAAO,QAAQ,CACf,KAAK,KAAK,IAEA,0BACX,EAAO,EAAM,EACb,KACD,GATkB"}
1
+ {"version":3,"file":"uploadErrors.js","names":["QUOTA_NOT_PROVISIONED","QUOTA_EXHAUSTED","QUOTA_NOT_PROVISIONED_MESSAGE","QUOTA_EXHAUSTED_MESSAGE","RATE_LIMITED_MESSAGE","UploadRequestError","message","code","status","readRecord","value","errorsOf","errors","body","codeOf","error","limitLeftOf","raw","formatBytes","bytes","units","unit","exhaustedMessage","left","quotaErrorFrom","httpErrorFrom","quota","first","statusText","graphQLErrorFrom"],"sources":["../../../src/devportal/utils/uploadErrors.ts"],"sourcesContent":["/**\n * Turns a failed files-upload GraphQL call into a message a developer can act on.\n *\n * The workspace gateway refuses a quota-gated mutation (`completeUpload`,\n * `uploadFile` and `createFolder` carry `@usage(checkQuota: true)`) with HTTP\n * 429 and a GraphQL body whose first error carries\n * `extensions.code` = `QUOTA_NOT_PROVISIONED` (the current workspace's plan does\n * not include the quota at all) or `QUOTA_EXHAUSTED` (the allowance is used\n * up). Reading only the status turned both into \"GraphQL request failed: 429\",\n * which reads as rate limiting and gives no way forward (BOFF-10676).\n *\n * These helpers are pure so the upload hook stays a thin transport and the\n * mapping can be unit tested without a network.\n */\n\n/** One GraphQL error, as far as these helpers read it. */\nexport interface GraphQLErrorLike {\n message?: unknown;\n extensions?: unknown;\n}\n\n/** Gateway quota block codes (wspace-public-gateway `sendQuotaExhausted`). */\nexport const QUOTA_NOT_PROVISIONED = \"QUOTA_NOT_PROVISIONED\";\nexport const QUOTA_EXHAUSTED = \"QUOTA_EXHAUSTED\";\n\nexport const QUOTA_NOT_PROVISIONED_MESSAGE =\n \"File uploads are not available in this workspace because its plan does not include file storage. Switch to a workspace your plan covers, or upgrade this workspace's plan in Billing, then try again.\";\n\nexport const QUOTA_EXHAUSTED_MESSAGE =\n \"This workspace has used up its file storage. Delete files you no longer need or upgrade the workspace's plan in Billing, then try again.\";\n\nexport const RATE_LIMITED_MESSAGE =\n \"Too many requests right now. Wait a moment, then try the upload again.\";\n\n/** Error raised by the upload transport; `code` is the gateway code when there is one. */\nexport class UploadRequestError extends Error {\n readonly code: string | null;\n readonly status: number | null;\n\n constructor(message: string, code: string | null, status: number | null) {\n super(message);\n this.name = \"UploadRequestError\";\n this.code = code;\n this.status = status;\n }\n}\n\nfunction readRecord(value: unknown): Record<string, unknown> | null {\n return typeof value === \"object\" && value !== null && !Array.isArray(value)\n ? // Narrowed to a non-null, non-array object above; fields are read defensively below.\n (value as Record<string, unknown>)\n : null;\n}\n\nfunction errorsOf(body: unknown): GraphQLErrorLike[] {\n const errors = readRecord(body)?.errors;\n if (!Array.isArray(errors)) return [];\n return errors.filter((e): e is GraphQLErrorLike => readRecord(e) !== null);\n}\n\nfunction codeOf(error: GraphQLErrorLike): string | null {\n const code = readRecord(error.extensions)?.code;\n return typeof code === \"string\" ? code : null;\n}\n\nfunction limitLeftOf(error: GraphQLErrorLike): number | null {\n const raw = readRecord(error.extensions)?.limitLeft;\n const value = typeof raw === \"string\" ? Number(raw) : raw;\n return typeof value === \"number\" && Number.isFinite(value) && value >= 0\n ? value\n : null;\n}\n\n/** Human-readable byte size (binary units, one decimal above KB). */\nexport function formatBytes(bytes: number): string {\n if (!Number.isFinite(bytes) || bytes < 0) return \"0 B\";\n const units = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\"];\n let value = bytes;\n let unit = 0;\n while (value >= 1024 && unit < units.length - 1) {\n value /= 1024;\n unit += 1;\n }\n return unit === 0\n ? `${Math.round(value)} ${units[unit]}`\n : `${value.toFixed(1)} ${units[unit]}`;\n}\n\nfunction exhaustedMessage(error: GraphQLErrorLike): string {\n const left = limitLeftOf(error);\n return left === null\n ? QUOTA_EXHAUSTED_MESSAGE\n : `${QUOTA_EXHAUSTED_MESSAGE} Space left: ${formatBytes(left)}.`;\n}\n\n/**\n * The quota refusal in a GraphQL body, if there is one. Used for both the\n * gateway's 429 response and an in-band error on a 200 response.\n */\nexport function quotaErrorFrom(body: unknown): UploadRequestError | null {\n for (const error of errorsOf(body)) {\n const code = codeOf(error);\n if (code === QUOTA_NOT_PROVISIONED) {\n return new UploadRequestError(QUOTA_NOT_PROVISIONED_MESSAGE, code, null);\n }\n if (code === QUOTA_EXHAUSTED) {\n return new UploadRequestError(exhaustedMessage(error), code, null);\n }\n }\n return null;\n}\n\n/**\n * The error for a non-2xx gateway response. `body` is the parsed JSON body, or\n * undefined when it was missing or not JSON.\n */\nexport function httpErrorFrom(\n status: number,\n statusText: string,\n body: unknown,\n): UploadRequestError {\n const quota = quotaErrorFrom(body);\n if (quota) {\n return new UploadRequestError(quota.message, quota.code, status);\n }\n const first = errorsOf(body)[0];\n if (first && typeof first.message === \"string\" && first.message.trim()) {\n return new UploadRequestError(first.message, codeOf(first), status);\n }\n if (status === 429) {\n return new UploadRequestError(RATE_LIMITED_MESSAGE, null, status);\n }\n const suffix = statusText ? ` ${statusText}` : \"\";\n return new UploadRequestError(\n `GraphQL request failed: ${status}${suffix}`,\n null,\n status,\n );\n}\n\n/** The error for in-band GraphQL errors on a 2xx response. */\nexport function graphQLErrorFrom(body: unknown): UploadRequestError | null {\n const quota = quotaErrorFrom(body);\n if (quota) return quota;\n const errors = errorsOf(body);\n const [first] = errors;\n if (!first) return null;\n const message = errors\n .map((e) => (typeof e.message === \"string\" ? e.message : \"\"))\n .filter(Boolean)\n .join(\"; \");\n return new UploadRequestError(\n message || \"GraphQL request failed\",\n codeOf(first),\n null,\n );\n}\n"],"mappings":"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"}