unleash-server 8.0.2 → 8.0.3

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 (488) hide show
  1. package/dist/lib/addons/feature-event-formatter-md.d.ts.map +1 -1
  2. package/dist/lib/addons/feature-event-formatter-md.js +5 -3
  3. package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
  4. package/dist/lib/addons/feature-event-formatter-md.test.js +3 -1
  5. package/dist/lib/addons/feature-event-formatter-md.test.js.map +1 -1
  6. package/dist/lib/addons/webhook.d.ts.map +1 -1
  7. package/dist/lib/addons/webhook.js +28 -2
  8. package/dist/lib/addons/webhook.js.map +1 -1
  9. package/dist/lib/addons/webhook.test.js +72 -0
  10. package/dist/lib/addons/webhook.test.js.map +1 -1
  11. package/dist/lib/app.d.ts.map +1 -1
  12. package/dist/lib/app.js +2 -0
  13. package/dist/lib/app.js.map +1 -1
  14. package/dist/lib/create-config.d.ts.map +1 -1
  15. package/dist/lib/create-config.js +1 -0
  16. package/dist/lib/create-config.js.map +1 -1
  17. package/dist/lib/features/context/context-field-store.d.ts +1 -1
  18. package/dist/lib/features/context/context-field-store.d.ts.map +1 -1
  19. package/dist/lib/features/context/context-field-store.js +1 -5
  20. package/dist/lib/features/context/context-field-store.js.map +1 -1
  21. package/dist/lib/features/context/context-service.d.ts +5 -4
  22. package/dist/lib/features/context/context-service.d.ts.map +1 -1
  23. package/dist/lib/features/context/context-service.js +20 -27
  24. package/dist/lib/features/context/context-service.js.map +1 -1
  25. package/dist/lib/features/context/context-service.test.d.ts +2 -0
  26. package/dist/lib/features/context/context-service.test.d.ts.map +1 -0
  27. package/dist/lib/features/context/context-service.test.js +24 -0
  28. package/dist/lib/features/context/context-service.test.js.map +1 -0
  29. package/dist/lib/features/context/context.d.ts +1 -0
  30. package/dist/lib/features/context/context.d.ts.map +1 -1
  31. package/dist/lib/features/context/context.js +22 -10
  32. package/dist/lib/features/context/context.js.map +1 -1
  33. package/dist/lib/features/context/context.test.js +15 -1
  34. package/dist/lib/features/context/context.test.js.map +1 -1
  35. package/dist/lib/features/context/createContextService.d.ts +4 -1
  36. package/dist/lib/features/context/createContextService.d.ts.map +1 -1
  37. package/dist/lib/features/context/createContextService.js +2 -1
  38. package/dist/lib/features/context/createContextService.js.map +1 -1
  39. package/dist/lib/features/context/fake-context-field-store.d.ts +1 -1
  40. package/dist/lib/features/context/fake-context-field-store.d.ts.map +1 -1
  41. package/dist/lib/features/context/fake-context-field-store.js +1 -6
  42. package/dist/lib/features/context/fake-context-field-store.js.map +1 -1
  43. package/dist/lib/features/export-import-toggles/createExportImportService.js +1 -1
  44. package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
  45. package/dist/lib/features/feature-toggle/converters/feature-toggle-row-converter.d.ts +1 -1
  46. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts +2 -1
  47. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.d.ts.map +1 -1
  48. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js +5 -0
  49. package/dist/lib/features/feature-toggle/fakes/fake-feature-strategies-store.js.map +1 -1
  50. package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts +1 -1
  51. package/dist/lib/features/feature-toggle/feature-toggle-controller.d.ts.map +1 -1
  52. package/dist/lib/features/feature-toggle/feature-toggle-controller.js +22 -2
  53. package/dist/lib/features/feature-toggle/feature-toggle-controller.js.map +1 -1
  54. package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts +3 -2
  55. package/dist/lib/features/feature-toggle/feature-toggle-service.d.ts.map +1 -1
  56. package/dist/lib/features/feature-toggle/feature-toggle-service.js +11 -4
  57. package/dist/lib/features/feature-toggle/feature-toggle-service.js.map +1 -1
  58. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts +2 -0
  59. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.d.ts.map +1 -1
  60. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js +7 -0
  61. package/dist/lib/features/feature-toggle/feature-toggle-strategies-store.js.map +1 -1
  62. package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js +4 -0
  63. package/dist/lib/features/feature-toggle/tests/feature-toggles.e2e.test.js.map +1 -1
  64. package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts +6 -0
  65. package/dist/lib/features/feature-toggle/types/feature-toggle-strategies-store-type.d.ts.map +1 -1
  66. package/dist/lib/features/playground/feature-evaluator/constraint.d.ts +2 -0
  67. package/dist/lib/features/playground/feature-evaluator/constraint.d.ts.map +1 -1
  68. package/dist/lib/features/playground/feature-evaluator/constraint.js +11 -1
  69. package/dist/lib/features/playground/feature-evaluator/constraint.js.map +1 -1
  70. package/dist/lib/features/playground/playground.test.js +2 -3
  71. package/dist/lib/features/playground/playground.test.js.map +1 -1
  72. package/dist/lib/features/release-plans/release-plan-template-store.d.ts +4 -0
  73. package/dist/lib/features/release-plans/release-plan-template-store.d.ts.map +1 -1
  74. package/dist/lib/features/release-plans/release-plan-template-store.js +25 -2
  75. package/dist/lib/features/release-plans/release-plan-template-store.js.map +1 -1
  76. package/dist/lib/features/release-plans/release-plan-template-store.test.js +75 -16
  77. package/dist/lib/features/release-plans/release-plan-template-store.test.js.map +1 -1
  78. package/dist/lib/features/release-plans/release-plan-template.d.ts +1 -0
  79. package/dist/lib/features/release-plans/release-plan-template.d.ts.map +1 -1
  80. package/dist/lib/features/scheduler/scheduler-service.test.js +1 -0
  81. package/dist/lib/features/scheduler/scheduler-service.test.js.map +1 -1
  82. package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js +3 -0
  83. package/dist/lib/features/unique-connection/unique-connection-store.e2e.test.js.map +1 -1
  84. package/dist/lib/middleware/rbac-middleware.d.ts.map +1 -1
  85. package/dist/lib/middleware/rbac-middleware.js +3 -4
  86. package/dist/lib/middleware/rbac-middleware.js.map +1 -1
  87. package/dist/lib/middleware/rbac-middleware.test.js +62 -24
  88. package/dist/lib/middleware/rbac-middleware.test.js.map +1 -1
  89. package/dist/lib/middleware/session-context.d.ts +20 -0
  90. package/dist/lib/middleware/session-context.d.ts.map +1 -0
  91. package/dist/lib/middleware/session-context.js +38 -0
  92. package/dist/lib/middleware/session-context.js.map +1 -0
  93. package/dist/lib/openapi/spec/admin-segment-schema.d.ts +1 -1
  94. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +4 -4
  95. package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +8 -8
  96. package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +17 -17
  97. package/dist/lib/openapi/spec/client-feature-schema.d.ts +2 -2
  98. package/dist/lib/openapi/spec/client-features-delta-schema.d.ts +5 -5
  99. package/dist/lib/openapi/spec/client-features-schema.d.ts +5 -5
  100. package/dist/lib/openapi/spec/client-segment-schema.d.ts +1 -1
  101. package/dist/lib/openapi/spec/constraint-schema.d.ts +2 -2
  102. package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +1 -1
  103. package/dist/lib/openapi/spec/environment-project-schema.d.ts +2 -2
  104. package/dist/lib/openapi/spec/environments-project-schema.d.ts +4 -4
  105. package/dist/lib/openapi/spec/export-result-schema.d.ts +68 -68
  106. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +17 -17
  107. package/dist/lib/openapi/spec/feature-schema.d.ts +34 -34
  108. package/dist/lib/openapi/spec/feature-search-environment-schema.d.ts +34 -34
  109. package/dist/lib/openapi/spec/feature-search-response-schema.d.ts +68 -68
  110. package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +1 -1
  111. package/dist/lib/openapi/spec/health-overview-schema.d.ts +69 -69
  112. package/dist/lib/openapi/spec/health-report-schema.d.ts +69 -69
  113. package/dist/lib/openapi/spec/playground-constraint-schema.d.ts +1 -1
  114. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts +4 -0
  115. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.d.ts.map +1 -0
  116. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js +91 -0
  117. package/dist/lib/openapi/spec/playground-feature-schema.arbitraries.js.map +1 -0
  118. package/dist/lib/openapi/spec/playground-feature-schema.d.ts +4 -4
  119. package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts +1 -3
  120. package/dist/lib/openapi/spec/playground-feature-schema.test.d.ts.map +1 -1
  121. package/dist/lib/openapi/spec/playground-feature-schema.test.js +1 -89
  122. package/dist/lib/openapi/spec/playground-feature-schema.test.js.map +1 -1
  123. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts +4 -0
  124. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.d.ts.map +1 -0
  125. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js +9 -0
  126. package/dist/lib/openapi/spec/playground-request-schema.arbitraries.js.map +1 -0
  127. package/dist/lib/openapi/spec/playground-request-schema.test.d.ts +1 -3
  128. package/dist/lib/openapi/spec/playground-request-schema.test.d.ts.map +1 -1
  129. package/dist/lib/openapi/spec/playground-request-schema.test.js +1 -8
  130. package/dist/lib/openapi/spec/playground-request-schema.test.js.map +1 -1
  131. package/dist/lib/openapi/spec/playground-response-schema.d.ts +9 -9
  132. package/dist/lib/openapi/spec/playground-response-schema.test.js +2 -3
  133. package/dist/lib/openapi/spec/playground-response-schema.test.js.map +1 -1
  134. package/dist/lib/openapi/spec/playground-segment-schema.d.ts +1 -1
  135. package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +2 -2
  136. package/dist/lib/openapi/spec/profile-schema.d.ts +34 -34
  137. package/dist/lib/openapi/spec/project-environment-schema.d.ts +1 -1
  138. package/dist/lib/openapi/spec/project-overview-schema.d.ts +69 -69
  139. package/dist/lib/openapi/spec/release-plan-milestone-schema.d.ts +4 -4
  140. package/dist/lib/openapi/spec/release-plan-milestone-strategy-schema.d.ts +2 -2
  141. package/dist/lib/openapi/spec/release-plan-schema.d.ts +8 -8
  142. package/dist/lib/openapi/spec/release-plan-template-schema.d.ts +14 -8
  143. package/dist/lib/openapi/spec/release-plan-template-schema.d.ts.map +1 -1
  144. package/dist/lib/openapi/spec/release-plan-template-schema.js +6 -0
  145. package/dist/lib/openapi/spec/release-plan-template-schema.js.map +1 -1
  146. package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts +22 -16
  147. package/dist/lib/openapi/spec/release-plan-templates-schema.d.ts.map +1 -1
  148. package/dist/lib/openapi/spec/release-plans-schema.d.ts +16 -16
  149. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts +4 -0
  150. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.d.ts.map +1 -0
  151. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js +12 -0
  152. package/dist/lib/openapi/spec/sdk-context-schema.arbitraries.js.map +1 -0
  153. package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts +1 -3
  154. package/dist/lib/openapi/spec/sdk-context-schema.test.d.ts.map +1 -1
  155. package/dist/lib/openapi/spec/sdk-context-schema.test.js +1 -11
  156. package/dist/lib/openapi/spec/sdk-context-schema.test.js.map +1 -1
  157. package/dist/lib/openapi/spec/search-features-schema.d.ts +104 -104
  158. package/dist/lib/openapi/spec/segment-schema.d.ts +1 -1
  159. package/dist/lib/openapi/spec/segments-schema.d.ts +2 -2
  160. package/dist/lib/openapi/spec/ui-config-schema.d.ts +5 -0
  161. package/dist/lib/openapi/spec/ui-config-schema.d.ts.map +1 -1
  162. package/dist/lib/openapi/spec/ui-config-schema.js +5 -0
  163. package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
  164. package/dist/lib/openapi/spec/update-feature-schema.d.ts +1 -1
  165. package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +1 -1
  166. package/dist/lib/openapi/spec/upsert-segment-schema.d.ts +1 -1
  167. package/dist/lib/schema/feature-schema.test.js +1 -1
  168. package/dist/lib/schema/feature-schema.test.js.map +1 -1
  169. package/dist/lib/schema/html-input.d.ts +1 -1
  170. package/dist/lib/schema/html-input.d.ts.map +1 -1
  171. package/dist/lib/schema/html-input.js +5 -2
  172. package/dist/lib/schema/html-input.js.map +1 -1
  173. package/dist/lib/schema/html-input.test.js +1 -1
  174. package/dist/lib/schema/html-input.test.js.map +1 -1
  175. package/dist/lib/services/feature-tag-service.d.ts +1 -1
  176. package/dist/lib/services/feature-tag-service.d.ts.map +1 -1
  177. package/dist/lib/services/feature-tag-service.js +5 -1
  178. package/dist/lib/services/feature-tag-service.js.map +1 -1
  179. package/dist/lib/services/index.d.ts.map +1 -1
  180. package/dist/lib/services/index.js +1 -1
  181. package/dist/lib/services/index.js.map +1 -1
  182. package/dist/lib/services/project-schema.js +1 -1
  183. package/dist/lib/services/project-schema.js.map +1 -1
  184. package/dist/lib/types/events.d.ts +8 -0
  185. package/dist/lib/types/events.d.ts.map +1 -1
  186. package/dist/lib/types/events.js +4 -0
  187. package/dist/lib/types/events.js.map +1 -1
  188. package/dist/lib/types/experimental.d.ts +1 -1
  189. package/dist/lib/types/experimental.d.ts.map +1 -1
  190. package/dist/lib/types/experimental.js +6 -1
  191. package/dist/lib/types/experimental.js.map +1 -1
  192. package/dist/lib/types/option.d.ts +1 -0
  193. package/dist/lib/types/option.d.ts.map +1 -1
  194. package/dist/lib/types/permissions.d.ts +1 -0
  195. package/dist/lib/types/permissions.d.ts.map +1 -1
  196. package/dist/lib/types/permissions.js +2 -0
  197. package/dist/lib/types/permissions.js.map +1 -1
  198. package/dist/lib/types/stores.d.ts +1 -0
  199. package/dist/lib/types/stores.d.ts.map +1 -1
  200. package/dist/lib/types/stores.js.map +1 -1
  201. package/dist/lib/ui-config/ui-config-controller.d.ts +1 -2
  202. package/dist/lib/ui-config/ui-config-controller.d.ts.map +1 -1
  203. package/dist/lib/ui-config/ui-config-controller.js +3 -1
  204. package/dist/lib/ui-config/ui-config-controller.js.map +1 -1
  205. package/dist/lib/ui-config/ui-config-service.d.ts +3 -2
  206. package/dist/lib/ui-config/ui-config-service.d.ts.map +1 -1
  207. package/dist/lib/ui-config/ui-config-service.js +7 -1
  208. package/dist/lib/ui-config/ui-config-service.js.map +1 -1
  209. package/dist/lib/ui-config/ui-config.test.js +4 -0
  210. package/dist/lib/ui-config/ui-config.test.js.map +1 -1
  211. package/dist/lib/util/constants.d.ts +3 -1
  212. package/dist/lib/util/constants.d.ts.map +1 -1
  213. package/dist/lib/util/constants.js +11 -1
  214. package/dist/lib/util/constants.js.map +1 -1
  215. package/dist/mailtemplates/requested-cr-approval/requested-cr-approval.html.mustache +1 -1
  216. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts +3 -0
  217. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.d.ts.map +1 -0
  218. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js +8 -0
  219. package/dist/migrations/20260706100000-add-project-column-to-release-plan-definitions.js.map +1 -0
  220. package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts +3 -0
  221. package/dist/migrations/20260708100000-add-project-release-template-permission.d.ts.map +1 -0
  222. package/dist/migrations/20260708100000-add-project-release-template-permission.js +15 -0
  223. package/dist/migrations/20260708100000-add-project-release-template-permission.js.map +1 -0
  224. package/dist/server-dev.js +5 -1
  225. package/dist/server-dev.js.map +1 -1
  226. package/dist/test/arbitraries.d.ts +25 -0
  227. package/dist/test/arbitraries.d.ts.map +1 -0
  228. package/dist/test/arbitraries.js +143 -0
  229. package/dist/test/arbitraries.js.map +1 -0
  230. package/dist/test/arbitraries.test.d.ts +1 -24
  231. package/dist/test/arbitraries.test.d.ts.map +1 -1
  232. package/dist/test/arbitraries.test.js +1 -142
  233. package/dist/test/arbitraries.test.js.map +1 -1
  234. package/dist/test/e2e/api/admin/playground.e2e.test.js +2 -2
  235. package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
  236. package/dist/test/e2e/services/playground-service.test.js +2 -2
  237. package/dist/test/e2e/services/playground-service.test.js.map +1 -1
  238. package/dist/test/fixtures/fake-segment-store.d.ts +1 -1
  239. package/dist/test/fixtures/fake-segment-store.d.ts.map +1 -1
  240. package/dist/test/fixtures/fake-segment-store.js +2 -2
  241. package/dist/test/fixtures/fake-segment-store.js.map +1 -1
  242. package/dist/test/prom-last-wins.d.ts +2 -0
  243. package/dist/test/prom-last-wins.d.ts.map +1 -0
  244. package/dist/test/prom-last-wins.js +25 -0
  245. package/dist/test/prom-last-wins.js.map +1 -0
  246. package/dist/test/reset-cross-file-state.d.ts +2 -0
  247. package/dist/test/reset-cross-file-state.d.ts.map +1 -0
  248. package/dist/test/reset-cross-file-state.js +57 -0
  249. package/dist/test/reset-cross-file-state.js.map +1 -0
  250. package/dist/test-setup.d.ts.map +1 -1
  251. package/dist/test-setup.js +4 -0
  252. package/dist/test-setup.js.map +1 -1
  253. package/frontend/build/index.html +1 -1
  254. package/frontend/build/static/AccordionSummary-KVRcLxLK.js +1 -0
  255. package/frontend/build/static/AdvancedPlayground-Cls80com.js +3 -0
  256. package/frontend/build/static/Alert-DQgOzmJF.js +1 -0
  257. package/frontend/build/static/Avatar-xU_puYmY.js +1 -0
  258. package/frontend/build/static/BackendConnections-CkI8tLcv.js +1 -0
  259. package/frontend/build/static/Box-rSzdGLLJ.js +1 -0
  260. package/frontend/build/static/Button-yGjgMTJI.js +1 -0
  261. package/frontend/build/static/Button.story-CBE27I2T.js +1 -0
  262. package/frontend/build/static/CircularProgress-CmGBJn6I.js +124 -0
  263. package/frontend/build/static/Close-DKD1r3T7.js +1 -0
  264. package/frontend/build/static/Close-nISwbNAY.js +1 -0
  265. package/frontend/build/static/CodeRenderer-RNHlNPBl.js +1094 -0
  266. package/frontend/build/static/CodeRenderer.story-Vw214z1Z.js +2 -0
  267. package/frontend/build/static/Collapse-COunT4rQ.js +1 -0
  268. package/frontend/build/static/ConditionallyRender-CEffh9Z-.js +1 -0
  269. package/frontend/build/static/ConnectSdkStep-DnH4iwnu.js +1 -0
  270. package/frontend/build/static/ConnectSdkStep.story-DeWPTOZK.js +1 -0
  271. package/frontend/build/static/CreateProject-eo1TZ1so.js +1 -0
  272. package/frontend/build/static/Dialog-DLpX4v6X.js +1 -0
  273. package/frontend/build/static/DialogWithAside-BxVspeMV.js +1 -0
  274. package/frontend/build/static/DialogWithAside.story-Dqmr9MnM.js +1 -0
  275. package/frontend/build/static/Divider-BYq1CcT0.js +1 -0
  276. package/frontend/build/static/EnterpriseEdge-D-g3JGCd.js +6 -0
  277. package/frontend/build/static/FeatureCard.story-B2Q-SD_-.js +1 -0
  278. package/frontend/build/static/FeatureMetricsChart-ETalRWKx.js +2 -0
  279. package/frontend/build/static/FeatureStaleDialog-CvD9ojNj.js +8 -0
  280. package/frontend/build/static/{FeatureViewLazyExport-8eQKTvdS.js → FeatureViewLazyExport-10Z3_Wda.js} +3 -3
  281. package/frontend/build/static/FileCopy-D1ZqmNek.js +1 -0
  282. package/frontend/build/static/FlagMetricsChart-dLfSDZ_x.js +2 -0
  283. package/frontend/build/static/FlagUsageSnippet-DOGwaqPZ.js +2 -0
  284. package/frontend/build/static/FlagUsageSnippet.story-tfMvt3kG.js +1 -0
  285. package/frontend/build/static/FormControlLabel-BrOlsUbv.js +1 -0
  286. package/frontend/build/static/FormField-CRXe4g4R.js +1 -0
  287. package/frontend/build/static/FrontendNetworkTrafficUsage-DGEwK1Qg.js +1 -0
  288. package/frontend/build/static/GenerateApiKey-C1aJtPh-.js +1 -0
  289. package/frontend/build/static/GenerateApiKey.story-DNMZG0qg.js +1 -0
  290. package/frontend/build/static/GenerateApiKeySummary-DkPI02tH.js +1 -0
  291. package/frontend/build/static/GenerateApiKeySummary.story-CruMFwTQ.js +1 -0
  292. package/frontend/build/static/{GridLayoutWrapper-B_YyjZ7l.js → GridLayoutWrapper-B3BIpxoE.js} +3 -3
  293. package/frontend/build/static/Grow-CuQu7Z-P.js +1 -0
  294. package/frontend/build/static/HelpOutlineOutlined-HDH1hus2.js +1 -0
  295. package/frontend/build/static/HelpResources.story-warJFqf6.js +1 -0
  296. package/frontend/build/static/Highlighter-BS0Ow0vZ.js +1 -0
  297. package/frontend/build/static/HtmlTooltip-3YsoM_F5.js +1 -0
  298. package/frontend/build/static/IconButton-BveFD3PF.js +1 -0
  299. package/frontend/build/static/ImpactMetricsPage-C57istn7.js +1 -0
  300. package/frontend/build/static/ImpactViewsPage-MKEHnt2w.js +1 -0
  301. package/frontend/build/static/LazyAdminExport-DfIYVWQD.js +38 -0
  302. package/frontend/build/static/LazyProjectExport-30GlUH0L.js +46 -0
  303. package/frontend/build/static/LifecycleChartComponent-Tj1pN5Tj.js +2 -0
  304. package/frontend/build/static/LineChartComponent-_RiDjL2-.js +1 -0
  305. package/frontend/build/static/Link-wv6er_Jy.js +1 -0
  306. package/frontend/build/static/Loader-CnLypnQx.js +1 -0
  307. package/frontend/build/static/{LogRocketRunner-Duzg1Kzh.js → LogRocketRunner-BS6AEpSK.js} +1 -1
  308. package/frontend/build/static/MarkCompletedDialogue-BeIA6eMj.js +1 -0
  309. package/frontend/build/static/Menu-DUeb4XP8.js +1 -0
  310. package/frontend/build/static/MenuBook-DZFyn--3.js +1 -0
  311. package/frontend/build/static/MenuItem-DNlBQQYG.js +1 -0
  312. package/frontend/build/static/Modal-DdH902AP.js +1 -0
  313. package/frontend/build/static/NetworkOverview-DF8c0k1P.js +1 -0
  314. package/frontend/build/static/{NetworkPrometheusAPIWarning-Bq62ygkV.js → NetworkPrometheusAPIWarning-B0v-FihJ.js} +1 -1
  315. package/frontend/build/static/NetworkTraffic-C1I4wwcb.js +1 -0
  316. package/frontend/build/static/NetworkTrafficUsage-DkdQx64o.js +1 -0
  317. package/frontend/build/static/NotificationStack.story-CdeU4r0p.js +1 -0
  318. package/frontend/build/static/OnboardingProgress-BuWQ2rjB.js +1 -0
  319. package/frontend/build/static/OnboardingProgress.story-CmQztiFV.js +1 -0
  320. package/frontend/build/static/OpenInNew-CHcHAi4B.js +1 -0
  321. package/frontend/build/static/PageContent-lT51j8jO.js +1 -0
  322. package/frontend/build/static/Paper-BvPQ0Zq6.js +1 -0
  323. package/frontend/build/static/PercentageDonut-CZVWd5fE.js +1 -0
  324. package/frontend/build/static/PermissionButton-Tj54K9Kc.js +1 -0
  325. package/frontend/build/static/Popover-FHiFav9d.js +1 -0
  326. package/frontend/build/static/Popper-Cut-_j4A.js +1 -0
  327. package/frontend/build/static/Portal-kwmlgXGI.js +1 -0
  328. package/frontend/build/static/Radio-Cj82h8o5.js +1 -0
  329. package/frontend/build/static/RadioGroup-BWTZb8iE.js +1 -0
  330. package/frontend/build/static/ReactJSONEditor-D65iiPmM.js +4 -0
  331. package/frontend/build/static/ReactJSONEditor.story-Bt3pxUGO.js +1 -0
  332. package/frontend/build/static/RoleCell-tqHUOlI7.js +1 -0
  333. package/frontend/build/static/RtlProvider-D1AlROju.js +1 -0
  334. package/frontend/build/static/Safeguard-DFEQulxy.js +1 -0
  335. package/frontend/build/static/SdkEvaluationStatus-B1rMywp-.js +17 -0
  336. package/frontend/build/static/SdkEvaluationStatus.story-BxgqLICz.js +1 -0
  337. package/frontend/build/static/Select-DdG1oq6O.js +3 -0
  338. package/frontend/build/static/SelectSdk-Boj2Ug-2.js +1 -0
  339. package/frontend/build/static/SelectSdk-CzRoKDb5.js +1 -0
  340. package/frontend/build/static/SelectSdk.story-BT9ke5Eb.js +1 -0
  341. package/frontend/build/static/SelectSdk.story-CdzotYoq.js +1 -0
  342. package/frontend/build/static/Spacing.story-CB6GkN5Z.js +1 -0
  343. package/frontend/build/static/StoriesPage-luLnHVc2.js +1 -0
  344. package/frontend/build/static/SwitchBase-cxExIOp0.js +1 -0
  345. package/frontend/build/static/TextField-Cf03Ror7.js +1 -0
  346. package/frontend/build/static/ThemeColors.story-Cx9bv5pL.js +1 -0
  347. package/frontend/build/static/TokenExplanation-CJjBSQ07.js +1 -0
  348. package/frontend/build/static/TokenExplanation.story-BoOaHRrQ.js +1 -0
  349. package/frontend/build/static/Tooltip-DPzrXyNS.js +1 -0
  350. package/frontend/build/static/TooltipResolver-CIBfA4vm.js +1 -0
  351. package/frontend/build/static/Truncator-CF0-SVks.js +1 -0
  352. package/frontend/build/static/Typography-nCkGT67u.js +1 -0
  353. package/frontend/build/static/Typography.story-CofmlvJB.js +1 -0
  354. package/frontend/build/static/UIContext-Dsr0TY8K.js +1 -0
  355. package/frontend/build/static/WhatsNewLayout.story-p4Cm8bgx.js +1 -0
  356. package/frontend/build/static/aggregateFeatureMetrics-D7AXsd2U.js +1 -0
  357. package/frontend/build/static/capitalize-DfXJDj8P.js +1 -0
  358. package/frontend/build/static/chartjs-plugin-annotation.esm-tsR8Pv5a.js +1 -0
  359. package/frontend/build/static/chunk-KS7C4IRE-PUpsdS_b.js +3 -0
  360. package/frontend/build/static/code-block-BZePA-4e.js +1 -0
  361. package/frontend/build/static/copy-to-clipboard-BCU4eeSw.js +1 -0
  362. package/frontend/build/static/createBox-DaDvp7MB.js +1 -0
  363. package/frontend/build/static/createSimplePaletteValueFilter-Bt9IjErz.js +1 -0
  364. package/frontend/build/static/createSvgIcon-D-6jHYkf.js +1 -0
  365. package/frontend/build/static/dividerClasses-DcI5JVLQ.js +1 -0
  366. package/frontend/build/static/{enterpriseEdgeCloud-C5u35XAw.js → enterpriseEdgeCloud-qnOcFE1S.js} +1 -1
  367. package/frontend/build/static/esm-DViSjNxt.js +12 -0
  368. package/frontend/build/static/formatAccessText-BhC1wtCg.js +1 -0
  369. package/frontend/build/static/httpErrorResponseHandler-BzpwldnE.js +1 -0
  370. package/frontend/build/static/impact-metrics-DrmGy_gn.png +0 -0
  371. package/frontend/build/static/{impact-metrics-icon-6dt-ye-h.js → impact-metrics-icon-Cg_ki-2e.js} +1 -1
  372. package/frontend/build/static/index-C2zVj2FI.js +287 -0
  373. package/frontend/build/static/{jsx-runtime-BnvnyDTF.js → jsx-runtime-DYfQNk55.js} +1 -1
  374. package/frontend/build/static/mcp-ADx0Sju7.png +0 -0
  375. package/frontend/build/static/{metricsFormatters-DhX-aU17.js → metricsFormatters-BmjW0KTj.js} +1 -1
  376. package/frontend/build/static/milestone-CciNgBhP.png +0 -0
  377. package/frontend/build/static/{mui-CoU2c-id.js → mui-C_omlwxE.js} +1 -1
  378. package/frontend/build/static/networkTrafficUsageHighlightPlugin-DPi6id5j.js +1 -0
  379. package/frontend/build/static/react-Ca03aNmg.js +1 -0
  380. package/frontend/build/static/resolveProps-CAVsjga5.js +1 -0
  381. package/frontend/build/static/servicenow-BmgZtZjb.svg +13 -0
  382. package/frontend/build/static/sharedTypes-CXnpeg4U.js +1 -0
  383. package/frontend/build/static/styled-CY_-vLWk.js +1 -0
  384. package/frontend/build/static/theme-DDCs0xPV.js +1 -0
  385. package/frontend/build/static/{themeStyles-DGVpwkcv.js → themeStyles-B99HStK1.js} +1 -1
  386. package/frontend/build/static/useApi-B7ZLy5tN.js +1 -0
  387. package/frontend/build/static/useApiGetter-C41iZzl2.js +1 -0
  388. package/frontend/build/static/useApiTokens-BQWPDfv2.js +1 -0
  389. package/frontend/build/static/useConditionalSWR-QWHOvx6V.js +1 -0
  390. package/frontend/build/static/useConditionallyHiddenColumns-DbQbB4u7.js +5 -0
  391. package/frontend/build/static/useCustomEvent-BnWpZ2E1.js +1 -0
  392. package/frontend/build/static/useEnhancedEffect-BBMUaXin.js +1 -0
  393. package/frontend/build/static/useEnvironments-Gu7r2cpc.js +2 -0
  394. package/frontend/build/static/useEventTracker-B0ILyjZB.js +1 -0
  395. package/frontend/build/static/useGroupedImpactMetricsData-jQ7IYFK3.js +1 -0
  396. package/frontend/build/static/useId-Bg4oXGUa.js +1 -0
  397. package/frontend/build/static/{useImpactMetrics-9qDSEpTn.js → useImpactMetrics-DXxTQl6p.js} +2 -2
  398. package/frontend/build/static/{useImpactMetricsEnabled-wRNO6-Oh.js → useImpactMetricsEnabled-B3om8V0b.js} +1 -1
  399. package/frontend/build/static/{useInstanceTrafficMetrics-CRCDB4TX.js → useInstanceTrafficMetrics-DkgcWjVM.js} +1 -1
  400. package/frontend/build/static/useLocationSettings-vlEPA_j3.js +1 -0
  401. package/frontend/build/static/useMediaQuery-BFm2lR-0.js +2 -0
  402. package/frontend/build/static/useOptionalPathParam-Cmh3Ejbi.js +1 -0
  403. package/frontend/build/static/{usePageTitle-CHzzFshF.js → usePageTitle-DD1IHvCw.js} +1 -1
  404. package/frontend/build/static/useSlot-Ce59-xJL.js +1 -0
  405. package/frontend/build/static/useSlotProps-v77xI-e5.js +1 -0
  406. package/frontend/build/static/useTheme-CTychWp2.js +10 -0
  407. package/frontend/build/static/useTimeout-B2sc1jSE.js +1 -0
  408. package/frontend/build/static/useToast-BUHn_9TC.js +1 -0
  409. package/frontend/build/static/{useUiConfig-DbVjTDpE.js → useUiConfig-BcfEDPWc.js} +1 -1
  410. package/frontend/build/static/useUiFlag-PbKW1iMa.js +1 -0
  411. package/frontend/package.json +13 -14
  412. package/package.json +6 -5
  413. package/frontend/build/static/AccordionSummary-wye3oOm6.js +0 -1
  414. package/frontend/build/static/AdvancedPlayground-DdeMb-6I.js +0 -3
  415. package/frontend/build/static/Alert-_bLyWbvx.js +0 -1
  416. package/frontend/build/static/BackendConnections-kgR0xyIH.js +0 -1
  417. package/frontend/build/static/Box-BQsxfFmC.js +0 -1
  418. package/frontend/build/static/Button-CebB8EPB.js +0 -1
  419. package/frontend/build/static/CircularProgress-C_LUU3DK.js +0 -101
  420. package/frontend/build/static/Close-DyTASMSq.js +0 -1
  421. package/frontend/build/static/Collapse-DPPTUMpf.js +0 -1
  422. package/frontend/build/static/ConditionallyRender---uTpMBn.js +0 -1
  423. package/frontend/build/static/CreateProject-BSlg0WYM.js +0 -1
  424. package/frontend/build/static/Dialog-C-xQxqWX.js +0 -1
  425. package/frontend/build/static/DialogWithAside-DzCSDyWo.js +0 -1110
  426. package/frontend/build/static/Divider-CsdWvu5F.js +0 -1
  427. package/frontend/build/static/EnterpriseEdge-CjslqYDM.js +0 -6
  428. package/frontend/build/static/FeatureMetricsChart-B4WryxcW.js +0 -2
  429. package/frontend/build/static/FeatureStaleDialog-EzReRTI5.js +0 -8
  430. package/frontend/build/static/FileCopy-B8HZEA83.js +0 -1
  431. package/frontend/build/static/FlagMetricsChart-hNQuwOxW.js +0 -2
  432. package/frontend/build/static/FormControlLabel-F5gDLixN.js +0 -1
  433. package/frontend/build/static/FrontendNetworkTrafficUsage-pcr83PWo.js +0 -1
  434. package/frontend/build/static/Grow-BIbmvKVy.js +0 -1
  435. package/frontend/build/static/HelpOutlineOutlined-CpMsVJZu.js +0 -1
  436. package/frontend/build/static/Highlighter-MomUaQww.js +0 -1
  437. package/frontend/build/static/HtmlTooltip-B9jv1G1R.js +0 -1
  438. package/frontend/build/static/ImpactMetricsPage-DGH_S9oz.js +0 -1
  439. package/frontend/build/static/ImpactViewsPage-DZqKPFvE.js +0 -1
  440. package/frontend/build/static/LazyAdminExport-B1ReAViz.js +0 -38
  441. package/frontend/build/static/LazyProjectExport-BMVcGpNI.js +0 -46
  442. package/frontend/build/static/LifecycleChartComponent-BeoRUO9q.js +0 -2
  443. package/frontend/build/static/LineChartComponent-BbCMbJ-m.js +0 -1
  444. package/frontend/build/static/Link-CfIScd2f.js +0 -1
  445. package/frontend/build/static/Loader-DdgXftPc.js +0 -1
  446. package/frontend/build/static/MarkCompletedDialogue-CcXyp8UE.js +0 -1
  447. package/frontend/build/static/NetworkOverview-0mBnFAZX.js +0 -1
  448. package/frontend/build/static/NetworkTraffic-DmG5Iv25.js +0 -1
  449. package/frontend/build/static/NetworkTrafficUsage-DccaVLYs.js +0 -1
  450. package/frontend/build/static/OnboardingProgress-Bp9sZ-ZM.js +0 -1
  451. package/frontend/build/static/PageContent-c0NDm5oD.js +0 -1
  452. package/frontend/build/static/PercentageDonut-DBDGNJlh.js +0 -1
  453. package/frontend/build/static/PermissionButton-B-IfzChn.js +0 -1
  454. package/frontend/build/static/Popover-CUTnSn2h.js +0 -1
  455. package/frontend/build/static/Radio-DL8ja0ll.js +0 -1
  456. package/frontend/build/static/RadioGroup-Ci3WHaOy.js +0 -1
  457. package/frontend/build/static/ReactJSONEditor-DeBI7JPg.js +0 -4
  458. package/frontend/build/static/RoleCell-DhYvu4YH.js +0 -1
  459. package/frontend/build/static/Safeguard-DErU6fSK.js +0 -1
  460. package/frontend/build/static/SelectSdk-Dr_pzQgX.js +0 -2
  461. package/frontend/build/static/StoriesPage-frGP1Bfr.js +0 -2
  462. package/frontend/build/static/SwitchBase-DWPIxZnN.js +0 -1
  463. package/frontend/build/static/TextField-oipjeg6n.js +0 -3
  464. package/frontend/build/static/Tooltip-BaILXXti.js +0 -1
  465. package/frontend/build/static/TooltipResolver-4A1YhwBy.js +0 -1
  466. package/frontend/build/static/Truncator-D2bO9ub6.js +0 -1
  467. package/frontend/build/static/Typography-BTdLWIUX.js +0 -1
  468. package/frontend/build/static/aggregateFeatureMetrics-B-67HaIZ.js +0 -1
  469. package/frontend/build/static/chartjs-plugin-annotation.esm-DP4wCpdA.js +0 -1
  470. package/frontend/build/static/chunk-QUQL4437-Dr42NpoL.js +0 -3
  471. package/frontend/build/static/createBox-Cf2UJsmc.js +0 -1
  472. package/frontend/build/static/createSimplePaletteValueFilter-BRAMrHWJ.js +0 -1
  473. package/frontend/build/static/dividerClasses-Cc45lyWo.js +0 -1
  474. package/frontend/build/static/esm-DdgY1Q5s.js +0 -12
  475. package/frontend/build/static/httpErrorResponseHandler-FMtt7Zqh.js +0 -1
  476. package/frontend/build/static/index-C04TEs4k.js +0 -290
  477. package/frontend/build/static/networkTrafficUsageHighlightPlugin-DlOtHZg3.js +0 -1
  478. package/frontend/build/static/react-GZhdek4G.js +0 -1
  479. package/frontend/build/static/useApiGetter-7FP8Avm4.js +0 -1
  480. package/frontend/build/static/useApiTokens-C8Dqw_X1.js +0 -1
  481. package/frontend/build/static/useConditionalSWR-DGgzun6i.js +0 -1
  482. package/frontend/build/static/useConditionallyHiddenColumns-C5q9zdfJ.js +0 -5
  483. package/frontend/build/static/useCustomEvent-Dj2V5RVb.js +0 -1
  484. package/frontend/build/static/useEnvironments-CTguhgy0.js +0 -2
  485. package/frontend/build/static/useGroupedImpactMetricsData-CW9qnV2y.js +0 -1
  486. package/frontend/build/static/useMediaQuery-DGx8zAkf.js +0 -2
  487. package/frontend/build/static/useOptionalPathParam-Cx3ru9yC.js +0 -1
  488. package/frontend/build/static/useTheme-CQqAmDLr.js +0 -9
@@ -1,3 +0,0 @@
1
- import{o as e,t}from"./react-GZhdek4G.js";import{f as n,r}from"./chunk-QUQL4437-Dr42NpoL.js";import{t as i}from"./useTheme-CQqAmDLr.js";import{t as a}from"./jsx-runtime-BnvnyDTF.js";import{v as o}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";import{A as s,D as c,E as l,L as u,M as d,N as f,O as p,R as m,T as h,U as g,_,a as v,c as y,f as b,g as x,j as S,k as C,l as w,n as T,o as E,r as D,s as ee,t as O,v as te,w as k}from"./useConditionallyHiddenColumns-C5q9zdfJ.js";import{t as A}from"./useMediaQuery-DGx8zAkf.js";import{t as j}from"./Tooltip-BaILXXti.js";import{T as ne,b as M,t as N}from"./TextField-oipjeg6n.js";import{t as P}from"./Popover-CUTnSn2h.js";import{i as F}from"./CircularProgress-C_LUU3DK.js";import{n as re,t as I}from"./ConditionallyRender---uTpMBn.js";import{r as L,t as R}from"./Alert-_bLyWbvx.js";import{t as z}from"./Typography-BTdLWIUX.js";import{t as B}from"./Box-BQsxfFmC.js";import{t as V}from"./Button-CebB8EPB.js";import{t as ie}from"./Divider-CsdWvu5F.js";import{a as ae,n as oe,t as se}from"./useEnvironments-CTguhgy0.js";import{a as ce,i as H,n as le,o as ue}from"./TooltipResolver-4A1YhwBy.js";import{u as de}from"./themeStyles-DGVpwkcv.js";import{t as fe}from"./Close-DyTASMSq.js";import{r as pe}from"./httpErrorResponseHandler-FMtt7Zqh.js";import{t as me}from"./createLocalStorage-WS-MCMlG.js";import{n as he,r as ge,t as _e}from"./PageContent-c0NDm5oD.js";import{n as ve,t as ye}from"./Loader-DdgXftPc.js";import{$o as be,At as xe,Fn as Se,Ir as Ce,Ko as we,Lr as Te,Pn as Ee,Qa as De,Ss as Oe,Vn as ke,Wa as U,Xa as Ae,Xs as je,_a as W,_t as Me,bi as G,bt as Ne,ct as Pe,da as K,ht as Fe,io as Ie,kr as Le,oi as Re,po as ze,pt as Be,sa as Ve,si as He,ut as Ue,vt as We,xi as Ge,ya as q,yt as Ke}from"./index-C04TEs4k.js";import{t as qe}from"./useApiTokens-C8Dqw_X1.js";import{c as Je,i as Ye,l as J,n as Xe,o as Ze,s as Qe,t as $e}from"./esm-DdgY1Q5s.js";var Y=e(t(),1),et=()=>{let{makeRequest:e,createRequest:t,errors:n,loading:r}=le({propagateErrors:!0}),i=`api/admin/playground`;return{evaluateAdvancedPlayground:async n=>{let r=t(`${i}/advanced`,{method:`POST`,body:JSON.stringify(n)});return(await e(r.caller,r.id)).json()},evaluateChangeRequestPlayground:async(n,r)=>{let a=t(`${i}/change-request/${n}`,{method:`POST`,body:JSON.stringify(r)});return(await e(a.caller,a.id)).json()},errors:n,loading:r}},tt=e(x(),1),nt=e=>{var t=e.theme,n=e.settings,r=n===void 0?{}:n,i=e.styles,a=i===void 0?[]:i,o={".cm-gutters":{}},s={};r.background&&(s.backgroundColor=r.background),r.backgroundImage&&(s.backgroundImage=r.backgroundImage),r.foreground&&(s.color=r.foreground),r.fontSize&&(s.fontSize=r.fontSize),(r.background||r.foreground)&&(o[`&`]=s),r.fontFamily&&(o[`&.cm-editor .cm-scroller`]={fontFamily:r.fontFamily}),r.gutterBackground&&(o[`.cm-gutters`].backgroundColor=r.gutterBackground),r.gutterForeground&&(o[`.cm-gutters`].color=r.gutterForeground),r.gutterBorder&&(o[`.cm-gutters`].borderRightColor=r.gutterBorder),r.caret&&(o[`.cm-content`]={caretColor:r.caret},o[`.cm-cursor, .cm-dropCursor`]={borderLeftColor:r.caret});var c={};return r.gutterActiveForeground&&(c.color=r.gutterActiveForeground),r.lineHighlight&&(o[`.cm-activeLine`]={backgroundColor:r.lineHighlight},c.backgroundColor=r.lineHighlight),o[`.cm-activeLineGutter`]=c,r.selection&&(o[`&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection`]={background:r.selection+` !important`}),r.selectionMatch&&(o[`& .cm-selectionMatch`]={backgroundColor:r.selectionMatch}),[Je.theme(o,{dark:t===`dark`}),Qe(Ze.define(a))]},rt={background:`#faf8f5`,foreground:`#b29762`,caret:`#93abdc`,selection:`#e3dcce`,selectionMatch:`#e3dcce`,gutterBackground:`#faf8f5`,gutterForeground:`#cdc4b1`,gutterBorder:`transparent`,lineHighlight:`#ddceb154`},it=[{tag:[J.comment,J.bracket],color:`#b6ad9a`},{tag:[J.atom,J.number,J.keyword,J.link,J.attributeName,J.quote],color:`#063289`},{tag:[J.emphasis,J.heading,J.tagName,J.propertyName,J.variableName],color:`#2d2006`},{tag:[J.typeName,J.url,J.string],color:`#896724`},{tag:[J.operator,J.string],color:`#1659df`},{tag:[J.propertyName],color:`#b29762`},{tag:[J.unit,J.punctuation],color:`#063289`}],at=(e=>{var t=e||{},n=t.theme,r=n===void 0?`light`:n,i=t.settings,a=i===void 0?{}:i,o=t.styles,s=o===void 0?[]:o;return nt({theme:r,settings:Xe({},rt,a),styles:[...it,...s]})})(),ot={background:`#2a2734`,foreground:`#6c6783`,caret:`#ffad5c`,selection:`#91ff6c26`,selectionMatch:`#91ff6c26`,gutterBackground:`#2a2734`,gutterForeground:`#545167`,lineHighlight:`#36334280`},st=[{tag:[J.comment,J.bracket],color:`#6c6783`},{tag:[J.atom,J.number,J.keyword,J.link,J.attributeName,J.quote],color:`#ffcc99`},{tag:[J.emphasis,J.heading,J.tagName,J.propertyName,J.className,J.variableName],color:`#eeebff`},{tag:[J.typeName,J.url],color:`#7a63ee`},{tag:J.operator,color:`#ffad5c`},{tag:J.string,color:`#ffb870`},{tag:[J.propertyName],color:`#9a86fd`},{tag:[J.unit,J.punctuation],color:`#e09142`}],ct=(e=>{var t=e||{},n=t.theme,r=n===void 0?`dark`:n,i=t.settings,a=i===void 0?{}:i,o=t.styles,s=o===void 0?[]:o;return nt({theme:r,settings:Xe({},ot,a),styles:[...st,...s]})})(),X=a(),lt=o(`aside`)(({theme:e})=>({height:`50px`,backgroundColor:e.palette.background.paper,borderTopRightRadius:e.shape.borderRadiusMedium,borderTopLeftRadius:e.shape.borderRadiusMedium,padding:e.spacing(1,2),color:e.palette.text.primary,display:`flex`,justifyContent:`space-between`,alignItems:`center`,border:`1px solid ${e.palette.divider}`})),ut=o(`div`)(({theme:e,style:t})=>({width:e.spacing(3),height:e.spacing(3),display:`flex`,alignItems:`center`,color:e.palette.background.paper,justifyContent:`center`,transition:`background-color 0.5s ease-in-out`,borderRadius:`50%`,...t})),dt=o(`div`)(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.error.dark,marginRight:e.spacing(1)})),ft=()=>(0,X.jsx)(ut,{style:{backgroundColor:i().palette.success.main},children:(0,X.jsx)(Oe,{sx:e=>({width:e.spacing(2),height:e.spacing(2)})})}),pt=()=>(0,X.jsx)(ut,{style:{backgroundColor:i().palette.error.main},children:(0,X.jsx)(Pe,{})}),mt=({context:e,setContext:t,error:n})=>{let r=i(),a=(0,Y.useCallback)(e=>{t(e)},[t]),o=`calc(6 * ${r.typography.body1.fontSize} * ${r.typography.body1.lineHeight}) + 8px`;return(0,X.jsxs)(B,{sx:{width:`100%`},children:[(0,X.jsxs)(lt,{children:[`JSON`,(0,X.jsx)(I,{condition:!!n,show:(0,X.jsxs)(B,{sx:e=>({display:`flex`,alignItems:`center`}),children:[(0,X.jsx)(dt,{children:n}),(0,X.jsx)(pt,{})]}),elseShow:(0,X.jsx)(ft,{})})]}),(0,X.jsx)($e,{value:e,minHeight:o,theme:r.mode===`dark`?ct:at,extensions:[Ye()],onChange:a,style:{border:`1px solid ${r.palette.divider}`,borderTop:`none`},placeholder:JSON.stringify({currentTime:`2022-07-04T14:13:03.929Z`,appName:`playground`,userId:`test`,remoteAddress:`127.0.0.1`},null,2)})]})};function ht(e){return Array.isArray(e)?e:[e]}var gt=e=>!e||e.length===0||e.length===1&&e[0]===`*`?`*`:ht(e),_t=e=>ht(e),vt=e=>{let t=yt(e);return t.length>0?t[0]:``},yt=e=>e.filter(({enabled:e})=>!!e).sort((e,t)=>e.sortOrder-t.sortOrder).map(({name:e})=>e),bt=(e,t)=>e?`100%`:t&&!e?`60%`:`50%`,xt=e=>typeof e==`string`?!0:Array.isArray(e)?e.every(e=>typeof e==`string`):!1,St=e=>{let t=new Set([`appName`,`environment`,`userId`,`sessionId`,`remoteAddress`,`currentTime`,`properties`]),n={...e},r=!1;for(let i in e)t.has(i)||(n.properties||={},n.properties[i]=e[i],delete n[i],r=!0);return!r&&!e.properties&&delete n.properties,n},Ct=e=>{let[t]=e.split(`.`),[n,r]=t.split(`:`);if(!n||!r)throw Error(`Invalid token format`);if(r===`*`)throw Error(`Admin tokens are not supported in the playground`)},wt=e=>{let[t]=e.split(`.`);return t.split(`:`)},Tt=e=>Ve({mode:`all`},e),Et=e=>{let t=e=>e.toSorted((e,t)=>e.sortOrder-t.sortOrder).map(e=>({key:e.name,label:e.name})),n=e.reduce(({project:e,global:t},n)=>(n.project?e.push(n):t.push(n),{project:e,global:t}),{project:[],global:[]}),r=[];return n.project.length&&r.push({groupHeader:`Project context fields`,options:t(n.project)}),n.global.length&&r.push({groupHeader:`Global context fields`,options:t(n.global)}),r},Dt=({context:e,setContext:t})=>{let n=i(),{setToastData:r}=ce(),{context:a}=Tt(),o=Et(a),[s,c]=(0,Y.useState)(),[l,d]=(0,Y.useState)(!1),[f,p]=(0,Y.useState)(``),[h,g]=(0,Y.useState)(``),_=(0,Y.useMemo)(()=>(0,tt.default)(e=>{if(!e)return c(void 0);try{let t=JSON.parse(e);d(t[f]!==void 0||t?.properties?.[f]!==void 0)}catch(e){return c(H(e))}return c(void 0)},250),[c,f,d]);(0,Y.useEffect)(()=>{_(e)},[_,e]);let v=()=>{try{let n=JSON.parse(e||`{}`);t(JSON.stringify(St({...n,[f]:h}),null,2));let r=a.find(e=>e.name===f);if(r?.legalValues&&r.legalValues.length>0||f===`currentTime`)return g(``)}catch(e){r({type:`error`,text:`Error parsing context: ${H(e)}`})}},y=(e,t)=>{if(xt(t)){if(Array.isArray(t))return g((t||[]).length>1?t.join(`,`):t[0]);g(t)}},b=()=>{if(!h||h===``)return[];let e=(a.find(e=>e.name===f)?.legalValues||[]).length>1;return h.includes(`,`)&&e?h.split(`,`):[h]};return(0,X.jsxs)(B,{children:[(0,X.jsx)(B,{sx:{display:`flex`,alignItems:`center`,mb:2},children:(0,X.jsx)(z,{variant:`body2`,color:n.palette.text.primary,sx:{ml:1},children:`Unleash context`})}),(0,X.jsxs)(B,{sx:{display:`flex`,gap:2,flexWrap:`wrap`,mb:2},children:[(0,X.jsx)(we,{label:`Context field`,labelId:`context-field-label`,id:`context-field`,value:f,onChange:e=>{if(p(e||``),e===`currentTime`)return g(new Date().toISOString());g(``)},variant:`outlined`,size:`small`,sx:{width:200,maxWidth:`100%`},options:o}),(()=>{if(f===`currentTime`){let e=m(h);return(0,X.jsx)(N,{id:`date`,label:`Date`,size:`small`,type:`datetime-local`,value:u(e?e.toISOString():new Date().toISOString()),sx:{width:200,maxWidth:`100%`},onChange:e=>{let t=m(e.target.value)?.toISOString();t&&g(t)},required:!0,slotProps:{inputLabel:{shrink:!0}}})}let e=a.find(e=>e.name===f);return e?.legalValues&&e.legalValues.length>0?(0,X.jsx)(M,{disablePortal:!0,limitTags:3,id:`context-legal-values`,multiple:!0,options:e.legalValues.map(({value:e})=>e),disableCloseOnSelect:!0,size:`small`,value:b(),onChange:y,getOptionLabel:e=>e,renderOption:(e,t,{selected:n})=>(0,X.jsxs)(`li`,{...e,children:[(0,X.jsx)(je,{icon:(0,X.jsx)(Te,{fontSize:`small`}),checkedIcon:(0,X.jsx)(Ce,{fontSize:`small`}),sx:e=>({marginRight:e.spacing(.5)}),checked:n}),t]}),sx:{width:370,maxWidth:`100%`},renderInput:e=>(0,X.jsx)(N,{...e,label:`Value`})}):(0,X.jsx)(N,{label:`Value`,id:`context-value`,sx:{width:370,maxWidth:`100%`},placeholder:`value1,value2,value3`,size:`small`,value:h,onChange:e=>g(e.target.value||``)})})(),(0,X.jsx)(V,{variant:`outlined`,disabled:!f||!!s,onClick:v,sx:{width:`95px`,maxHeight:`40px`},children:`${l?`Replace`:`Add`} `})]}),(0,X.jsx)(mt,{context:e,setContext:t,error:s})]})},Ot=({environments:e,setEnvironments:t,availableEnvironments:n,disabled:r})=>{let i=[...n.map(e=>({label:e,id:e}))],a=i.filter(({id:t})=>e.includes(t));return(0,X.jsx)(M,{disablePortal:!0,limitTags:3,id:`environment`,multiple:!0,options:i,sx:{flex:1},renderInput:e=>(0,X.jsx)(N,{...e,label:`Environments`}),renderOption:Se,renderValue:(e,t)=>e.map((e,n)=>{let{key:r,...i}=t({index:n});return(0,X.jsx)(ne,{size:`small`,...i,label:e.label},r)}),getOptionLabel:({label:e})=>e,disableCloseOnSelect:!1,size:`small`,value:a,onChange:(e,n,r)=>{let i=n;return r===`clear`||i===null?t([]):Array.isArray(i)?i.length===0?t([]):t(i.map(({id:e})=>e)):t([i.id])},disabled:r,"data-testid":`PLAYGROUND_ENVIRONMENT_SELECT`})},Z={label:`ALL`,id:`*`},kt=o(D)({fontSize:`1.25rem`}),At=o(y)(()=>({width:`100%`})),jt=o(B)(({theme:e})=>({display:`grid`,columnGap:e.spacing(2),rowGap:e.spacing(2),gridTemplateColumns:`1fr`,[e.breakpoints.up(`md`)]:{gridTemplateColumns:`1fr 1fr`}})),Mt=o(At)(({theme:e})=>({"& label":{WebkitTextFillColor:e.palette.text.secondary},"& input.Mui-disabled":{WebkitTextFillColor:e.palette.text.secondary}})),Nt=({environments:e,projects:t,token:n,setProjects:a,setEnvironments:o,setToken:s,availableEnvironments:c,changeRequest:l,onClearChangeRequest:u})=>{let d=i(),{tokens:f}=qe(),[p,m]=(0,Y.useState)(),{projects:h}=ve(),_=[Z,...h.map(({name:e,id:t})=>({label:e,id:t}))],v=async e=>{let t=e.target.value;if(s?.(t),t===``){w();return}try{Ct(t),m(void 0),y(t)}catch(e){m(e.message)}},y=e=>{let[t,n]=wt(e);switch(o([n]),t){case`[]`:x(e);break;case`*`:S();break;default:C(t)}},b=e=>{!e.projects||e.projects===`*`?a([Z.id]):typeof e.projects==`string`?a([e.projects]):Array.isArray(e.projects)&&a(e.projects)},x=e=>{let t=f.find(({secret:t})=>t===e);t?b(t):m(`Invalid token. Ensure you use a valid token from this Unleash instance.`)},S=()=>{a([Z.id])},C=e=>{_.map(e=>e.id).includes(e)?a([e]):m(`Invalid token. Project ${e} does not exist.`)},w=()=>{m(void 0)};return(0,X.jsxs)(B,{sx:{pb:2},children:[(0,X.jsx)(B,{sx:{display:`flex`,alignItems:`center`,mb:2},children:(0,X.jsx)(z,{variant:`body2`,color:d.palette.text.primary,sx:{ml:1},children:`Access configuration`})}),(0,X.jsxs)(jt,{children:[(0,X.jsx)(B,{children:(0,X.jsx)(j,{arrow:!0,title:n?`Environment is automatically selected because you are using a token`:`Select environments to use in the playground`,children:(0,X.jsx)(B,{children:(0,X.jsx)(Ot,{environments:e,setEnvironments:o,availableEnvironments:c,disabled:!!(n||l)})})})}),(0,X.jsx)(B,{children:(0,X.jsx)(j,{arrow:!0,title:n?`Project is automatically selected because you are using a token`:`Select projects to use in the playground`,children:(0,X.jsx)(Ee,{selectedProjects:t,onChange:a,dataTestId:`PLAYGROUND_PROJECT_SELECT`,disabled:!!(n||l),limitTags:3})})}),(0,X.jsx)(B,{children:(0,X.jsx)(At,{label:`API token`,value:n||(l?` `:``),onChange:v,type:`text`,error:!!p,errorText:p,placeholder:`Enter your API token`,"data-testid":`PLAYGROUND_TOKEN_INPUT`,slotProps:{input:{endAdornment:n?(0,X.jsx)(g,{position:`end`,"data-testid":`TOKEN_INPUT_CLEAR_BTN`,children:(0,X.jsx)(L,{"aria-label":`clear API token`,onClick:()=>{s?.(``),w()},edge:`end`,children:(0,X.jsx)(kt,{})})}):null}},disabled:!!l})}),(0,X.jsx)(I,{condition:!!l,show:(0,X.jsxs)(B,{sx:{display:`flex`,gap:2},children:[(0,X.jsx)(B,{sx:{flex:1},children:(0,X.jsx)(Mt,{label:`Change request`,value:l?`Change request #${l}`:``,onChange:()=>{},type:`text`,disabled:!0,slotProps:{input:{endAdornment:(0,X.jsx)(g,{position:`end`,children:(0,X.jsx)(L,{"aria-label":`clear Change request results`,onClick:u,edge:`end`,children:(0,X.jsx)(kt,{})})})}}})}),(0,X.jsx)(V,{variant:`outlined`,size:`medium`,to:`/projects/${t[0]}/change-requests/${l}`,component:r,nativeButton:!1,children:`View change request`})]})})]})]})},Pt=({availableEnvironments:e,environments:t,onSubmit:n,projects:r,token:i,setToken:a,setProjects:o,setEnvironments:s,context:c,setContext:l,changeRequest:u,onClearChangeRequest:d})=>(0,X.jsxs)(B,{component:`form`,onSubmit:n,sx:{display:`flex`,flexDirection:`column`},children:[(0,X.jsx)(Nt,{environments:Array.isArray(t)?t:[t],projects:r,token:i,setToken:a,setEnvironments:s,setProjects:o,availableEnvironments:e.map(({name:e})=>e),changeRequest:u,onClearChangeRequest:d}),(0,X.jsx)(Dt,{context:c,setContext:l}),(0,X.jsx)(B,{sx:{mt:2,display:`flex`,alignItems:`center`,justifyContent:`space-between`},children:(0,X.jsx)(V,{variant:`contained`,size:`large`,type:`submit`,sx:{marginLeft:`auto`},children:`Try configuration`})})]}),Ft=o(`div`)(({style:e,theme:t})=>({width:`25px`,height:`25px`,borderRadius:`50%`,color:t.palette.common.white,display:`flex`,alignItems:`center`,justifyContent:`center`,fontWeight:`bold`,...e})),It=({style:e,children:t,type:n})=>{let r=i(),a={backgroundColor:r.palette.background.alternative,color:r.palette.common.white};return n===`secondary`&&(a.backgroundColor=r.palette.background.paper,a.color=r.palette.text.secondary),(0,X.jsx)(Ft,{style:{...a,...e},children:t})},Q=({headerText:e,bodyText:t,sectionNumber:n})=>(0,X.jsx)(B,{sx:{display:`flex`,alignItems:`flex-start`,mt:2,flexDirection:`column`},children:(0,X.jsxs)(B,{sx:{display:`flex`},children:[(0,X.jsx)(B,{children:(0,X.jsx)(It,{children:n})}),(0,X.jsxs)(B,{sx:{ml:2,display:`flex`,flexDirection:`column`},children:[(0,X.jsx)(z,{variant:`body1`,sx:{fontWeight:`bold`},children:e}),(0,X.jsx)(I,{condition:!!t,show:(0,X.jsx)(z,{variant:`body1`,sx:{mt:1},children:t})})]})]})}),Lt=()=>(0,X.jsxs)(B,{sx:{ml:4},children:[(0,X.jsx)(z,{variant:`body1`,children:`Unleash playground is for helping you to understand how Unleash works, how feature flags are evaluated and for you to easily debug your feature flags.`}),(0,X.jsx)(ie,{sx:{mt:2,mb:2}}),(0,X.jsx)(z,{variant:`body1`,sx:{mb:1},children:`What you need to do is:`}),(0,X.jsx)(Q,{headerText:`Select in which environment you want to test your
2
- feature flag configuration`,bodyText:`You can also specify specific projects, or check
3
- flags in all projects.`,sectionNumber:`1`}),(0,X.jsx)(Q,{headerText:`Select a context field that you'd like to check`,bodyText:`You can configure as many context fields as you want. You can also leave the context empty to test against an empty context.`,sectionNumber:`2`}),(0,X.jsx)(Q,{headerText:`Submit the form to try the configuration`,bodyText:`The results of evaluating your feature flags will appear after you submit the form. Then view the results.`,sectionNumber:`3`})]}),Rt=F((0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25`}),`Help`),zt=o(P)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:e.shape.borderRadiusExtraLarge,border:`1px solid ${e.palette.divider}`,padding:e.spacing(8,4),maxWidth:`500px`}})),Bt=()=>{let[e,t]=(0,Y.useState)(null),n=e=>t(e.currentTarget),r=()=>t(null);return(0,X.jsxs)(B,{children:[(0,X.jsx)(L,{onClick:n,"aria-label":`Open Playground guidance`,children:(0,X.jsx)(Rt,{})}),(0,X.jsxs)(zt,{open:!!e,anchorEl:e,onClose:r,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},sx:e=>({zIndex:e.zIndex.tooltip,background:`none`}),children:[(0,X.jsx)(L,{onClick:r,sx:{position:`absolute`,right:25,top:15},children:(0,X.jsx)(fe,{})}),(0,X.jsx)(Lt,{})]})]})},Vt=e=>(0,X.jsx)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,X.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.84818 0.184159C8.56367 -0.0789547 8.1234 -0.0575747 7.86482 0.231912C7.60623 0.521399 7.62724 0.96937 7.91175 1.23248C9.48292 2.68551 10.6076 4.74934 10.6076 7C10.6076 9.25066 9.48292 11.3145 7.91175 12.7675C7.62724 13.0306 7.60623 13.4786 7.86482 13.7681C8.1234 14.0576 8.56367 14.079 8.84818 13.8158C10.6396 12.1592 11.9998 9.73702 11.9998 7C11.9998 4.26298 10.6396 1.84083 8.84818 0.184159ZM6.04105 2.23302C6.29109 1.93586 6.73054 1.90121 7.02259 2.15563C8.33146 3.29586 9.35426 5.02309 9.35426 6.99995C9.35426 8.97682 8.33145 10.7039 7.02259 11.8441C6.73054 12.0986 6.29109 12.0639 6.04105 11.7668C5.79101 11.4696 5.82506 11.0225 6.11711 10.768C7.19425 9.82969 7.96199 8.46967 7.96199 6.99995C7.96199 5.53021 7.19423 4.17007 6.11711 3.23173C5.82506 2.97731 5.79101 2.53017 6.04105 2.23302ZM6.56908 7.00015C6.56908 8.56492 5.3224 9.83342 3.78454 9.83342C2.24668 9.83342 1 8.56492 1 7.00015C1 5.43539 2.24668 4.16689 3.78454 4.16689C5.3224 4.16689 6.56908 5.43539 6.56908 7.00015Z`,fill:`currentColor`})}),Ht=e=>(0,X.jsx)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,X.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.84835 0.184159C8.56384 -0.0789547 8.12358 -0.0575747 7.86499 0.231912C7.6064 0.521399 7.62741 0.96937 7.91192 1.23248C9.4831 2.68551 10.6078 4.74934 10.6078 7C10.6078 7.40738 10.5709 7.80863 10.5012 8.20125L11.6597 9.35972C11.8783 8.60937 12 7.81877 12 7C12 4.26298 10.6397 1.84083 8.84835 0.184159ZM9.35443 6.99995L9.35418 7.0542L7.63252 5.33255C7.30901 4.52372 6.76993 3.80029 6.11728 3.23173C5.82523 2.97731 5.79118 2.53017 6.04122 2.23302C6.29127 1.93586 6.73072 1.90121 7.02276 2.15563C8.33164 3.29586 9.35443 5.02309 9.35443 6.99995ZM7.57827 8.79752L6.48307 7.70233C6.17606 8.92745 5.08437 9.83342 3.78471 9.83342C2.24685 9.83342 1.00017 8.56492 1.00017 7.00015C1.00017 5.69492 1.8676 4.59583 3.04789 4.26714L0.458225 1.67748C0.172794 1.39205 0.178843 0.923223 0.471736 0.63033C0.764629 0.337437 1.23345 0.331388 1.51889 0.616819L13.2132 12.3111C13.4986 12.5965 13.4926 13.0654 13.1997 13.3583C12.9068 13.6511 12.4379 13.6572 12.1525 13.3718L10.556 11.7753C10.0694 12.539 9.48623 13.2259 8.84835 13.8158C8.56384 14.079 8.12358 14.0576 7.86499 13.7681C7.6064 13.4786 7.62741 13.0306 7.91192 12.7675C8.54021 12.1865 9.0971 11.5078 9.53922 10.7585L8.62356 9.84281C8.20906 10.6195 7.64861 11.2989 7.02276 11.8441C6.73072 12.0986 6.29127 12.0639 6.04122 11.7668C5.79118 11.4696 5.82523 11.0225 6.11728 10.768C6.73471 10.2302 7.25048 9.55374 7.57827 8.79752Z`,fill:`currentColor`})}),Ut=e=>e===`unknown`||e===`unevaluated`?[q,`info`]:e===!0?[Vt,`success`]:[Ht,`error`],$=({enabled:e,label:t,showIcon:n=!0})=>{let[r,i]=Ut(e);return(0,X.jsx)(ze,{color:i,icon:n?(0,X.jsx)(r,{"aria-hidden":!0,color:i,strokeWidth:`0.25`}):void 0,children:t})},Wt=o(B)(({theme:e})=>({display:`flex`,alignItems:`center`,padding:e.spacing(1,0,1,2)})),Gt=o(B)(()=>({marginRight:`auto`})),Kt=({feature:e})=>{let[t,n]=e?.isEnabled?[!0,`True`]:e?.strategies?.result===`unknown`?[`unknown`,`Unknown`]:[!1,`False`];return(0,X.jsx)(Wt,{children:(0,X.jsx)(Gt,{"data-loading":!0,children:(0,X.jsx)($,{enabled:t,label:n,showIcon:t!==`unknown`})})})};function qt(e){return e===void 0?!0:Object.values(e).every(e=>e&&typeof e==`object`?qt(e):e===null)}var Jt=e=>e.strategies?.data?.find(e=>!Ae.includes(e.name)),Yt=e=>e.strategies?.data?.length>0&&!e.strategies?.data?.find(e=>Ae.includes(e.name)),Xt=o(`div`)({display:`flex`,justifyContent:`space-between`,width:`100%`}),Zt=o(`hgroup`)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,gap:e.spacing(1.5)})),Qt=o(`h3`)(({theme:e})=>({fontWeight:`bold`,fontSize:e.typography.subtitle1.fontSize,margin:0})),$t=({feature:e,input:t,onClose:n})=>{let r=i(),[a,o,s]=e.isEnabled?[`This feature flag is True in ${t?.environment} because `,`at least one strategy is True`,r.palette.success.contrastText]:e.hasUnsatisfiedDependency&&!e.isEnabledInCurrentEnvironment?[`This feature flag is False in ${t?.environment} because `,`parent dependency is not satisfied and the environment is disabled`,r.palette.error.contrastText]:e.isEnabledInCurrentEnvironment?Yt(e)?[`This feature flag is Unknown in ${t?.environment} because `,`no strategies could be fully evaluated`,r.palette.warning.contrastText]:Jt(e)?[`This feature flag is Unknown in ${t?.environment} because `,`not all strategies could be fully evaluated`,r.palette.warning.contrastText]:e.hasUnsatisfiedDependency?[`This feature flag is False in ${t?.environment} because `,`parent dependency is not satisfied`,r.palette.error.contrastText]:[`This feature flag is False in ${t?.environment} because `,`all strategies are either False or could not be fully evaluated`,r.palette.error.contrastText]:[`This feature flag is False in ${t?.environment} because `,`the environment is disabled`,r.palette.error.contrastText],c=qt(t?.context)?`You did not provide a value for your context field in step 2 of the configuration`:void 0,l=Jt(e)?`This feature uses custom strategies. Custom strategies can't be evaluated, so they will be marked accordingly.`:void 0,u=n&&(e=>{e.stopPropagation(),n()});return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Xt,{children:[(0,X.jsxs)(Zt,{children:[(0,X.jsx)(Qt,{children:e.name}),(0,X.jsx)(`p`,{children:e?.strategies?.result===`unknown`?(0,X.jsx)($,{enabled:`unknown`,label:`Unknown`,showIcon:!1}):(0,X.jsx)($,{enabled:e.isEnabled,label:e.isEnabled?`True`:`False`})})]}),(0,X.jsx)(L,{"aria-label":`Close`,onClick:u,children:(0,X.jsx)(Le,{})})]}),(0,X.jsxs)(`p`,{children:[a,(0,X.jsx)(z,{color:s,component:`span`,children:o}),`.`]}),c?(0,X.jsx)(R,{color:`info`,children:c}):null,l?(0,X.jsx)(R,{severity:`warning`,color:`info`,children:l}):null]})},en=o(`div`,{shouldForwardProp:e=>e!==`variant`})(({theme:e,variant:t})=>({"--font-size":e.typography.body2.fontSize,display:`flex`,alignItems:`center`,gap:e.spacing(1),padding:e.spacing(.5,.25),color:t===`ok`?e.palette.success.dark:e.palette.error.dark,fontSize:`var(--font-size)`,svg:{fontSize:`calc(var(--font-size) * 1.25)`}})),tn=()=>(0,X.jsxs)(en,{variant:`ok`,children:[(0,X.jsx)(xe,{"aria-hidden":`true`}),(0,X.jsx)(`p`,{children:`Constraint met by value in context`})]}),nn=({text:e})=>(0,X.jsxs)(en,{variant:`error`,children:[(0,X.jsx)(v,{"aria-hidden":`true`}),(0,X.jsx)(`p`,{children:e})]}),rn=({constraint:e,input:t})=>{if(!e)return null;let n=()=>{let n=t?.context[e.contextName];return e.operator===`REGEX`&&n&&e.value?`Constraint not met – the value in the context ${e.contextName}: { ${n} } is not matching ${e.operator} ${e.value}`:n?`Constraint not met – the value in the context: { ${n} } is not ${e.operator} ${e.contextName}`:`Constraint not met – no value was specified for ${e.contextName}`};return(0,X.jsx)(G,{children:(0,X.jsxs)(`div`,{children:[(0,X.jsx)(He,{...e}),e.result?(0,X.jsx)(tn,{}):(0,X.jsx)(nn,{text:n()})]})})},an=o(B)(({theme:e})=>({width:`auto`,height:`auto`,padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,border:`1px solid ${e.palette.divider}`})),on=({segment:e,input:t})=>(0,X.jsx)(Re,{segment:e,constraintList:e.constraints.length>0?(0,X.jsx)(Ge,{children:e.constraints.map(e=>(0,X.jsx)(rn,{constraint:e,input:t},W(e)))}):void 0,isExpanded:!0}),sn=({strategyResult:e,input:t})=>{let{name:n,constraints:r,segments:i,parameters:a}=e,o=We(e),{strategies:s}=Ie(),{isCustomStrategy:c,customStrategyParameters:l}=Ke(e,s),u=!!(i&&i.length>0),d=!!(r&&r?.length>0),f=n!=="default"&&Object.keys(De).includes(n);if(!a)return null;let p=[...u?i.map(e=>(0,X.jsx)(on,{segment:e,input:t},W(e))):[],...d?r.map(e=>(0,X.jsx)(rn,{constraint:e,input:t},W(e))):[],f&&o.map((e,t)=>(0,X.jsx)(G,{children:e},t)),c&&l.map((e,t)=>(0,X.jsx)(G,{children:e},t)),n==="default"&&(0,X.jsxs)(an,{sx:{width:`100%`},children:[`The standard strategy is `,(0,X.jsx)(ze,{color:`success`,children:`ON`}),` for all users.`]},`default-on`)].filter(Boolean),{variant:m,variants:h}=e.result;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ge,{children:p}),h?.length?(0,X.jsx)(Me,{variants:h,selected:m?.name}):null]})},cn=({strategy:e,input:t,className:n})=>{let{result:r}=e,i=r.evaluationStatus===`incomplete`||r.evaluationStatus===`unevaluated`?`Not evaluated`:r.enabled?`True`:`False`;return(0,X.jsx)(Fe,{strategy:{...e,id:`${W(e)}`},strategyHeaderLevel:4,className:n,headerItemsLeft:e.disabled?null:(0,X.jsx)($,{showIcon:!1,enabled:r.enabled,label:i}),children:(0,X.jsx)(sn,{strategyResult:e,input:t})})},ln=o(`hgroup`)(({theme:e})=>({paddingBottom:e.spacing(2)})),un=o(`h4`)(({theme:e})=>({fontWeight:`normal`,fontSize:e.typography.body1.fontSize,margin:0})),dn=o(`p`)(({theme:e})=>({fontWeight:`bold`,fontSize:e.typography.body2.fontSize})),fn=o(Be)(({theme:e})=>({marginInline:`calc(var(--popover-inline-padding) * -1)`,borderTop:`1px solid ${e.palette.divider}`,"> li:last-of-type":{paddingBottom:0}})),pn=({strategies:e,input:t,titlePrefix:n,infoText:r})=>e.length===0?null:(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(ln,{children:[(0,X.jsx)(un,{children:`${n?n.concat(` strategies`):`Strategies`} (${e?.length})`}),r?(0,X.jsx)(dn,{children:r}):null]}),(0,X.jsx)(fn,{children:e?.map((e,n)=>(0,X.jsxs)(Ue,{children:[n>0?(0,X.jsx)(Ne,{}):``,(0,X.jsx)(cn,{strategy:e,input:t})]},e.id))})]}),mn=({feature:e})=>{if(!e?.strategies?.data)return null;let t;if(e.hasUnsatisfiedDependency&&!e.isEnabledInCurrentEnvironment)t=`If the environment was enabled and parent dependencies were satisfied`;else if(e.hasUnsatisfiedDependency)t=`If parent dependencies were satisfied`;else if(!e.isEnabledInCurrentEnvironment)t=`If the environment was enabled`;else return;return(0,X.jsxs)(R,{severity:`info`,color:`info`,children:[t,`, then this feature flag would be`,` `,e.strategies?.result?`TRUE`:`FALSE`,` with strategies evaluated like this:`]})},hn=({feature:e,input:t})=>{let n=e.strategies?.data?.filter(e=>!e.disabled),r=e.strategies?.data?.filter(e=>e.disabled),i=r?.length>0;return(e?.strategies?.data.length??0)===0?(0,X.jsx)(R,{severity:`info`,children:`There are no strategies added to this feature flag in the selected environment.`}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(mn,{feature:e}),(0,X.jsx)(pn,{strategies:n||[],input:t,titlePrefix:i?`Enabled`:void 0}),i?(0,X.jsx)(pn,{strategies:r,input:t,titlePrefix:`Disabled`,infoText:`Disabled strategies are not evaluated for the overall result.`}):null]})},gn=o(`div`)(({theme:e})=>({alignItems:`flex-end`,color:e.palette.divider})),_n=({feature:e,input:t})=>{let[n,r]=(0,Y.useState)(!1),i=(0,Y.useRef)(null);return(0,X.jsxs)(gn,{children:[(0,X.jsx)(L,{onClick:()=>{r(!n)},children:(0,X.jsx)(q,{ref:i})}),(0,X.jsxs)(P,{open:n,onClose:()=>r(!1),anchorEl:i.current,anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`center`,horizontal:`left`},slotProps:{paper:{sx:e=>({"--popover-inline-padding":e.spacing(4),paddingInline:`var(--popover-inline-padding)`,paddingBlock:e.spacing(3),display:`flex`,flexDirection:`column`,width:728,maxWidth:`100%`,height:`auto`,gap:e.spacing(3),overflowY:`auto`,backgroundColor:e.palette.background.elevation1,borderRadius:e.shape.borderRadius})}},children:[(0,X.jsx)($t,{feature:e,input:t,onClose:()=>r(!1)}),(0,X.jsx)(hn,{feature:e,input:t})]})]})},vn=e=>e.feature?(0,X.jsx)(_n,{...e}):null,yn=F((0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z`}),`CheckCircleOutlined`),bn=o(`div`)(({theme:e})=>({padding:e.spacing(4),maxWidth:`400px`})),xn=o(z)(({theme:e})=>({marginBottom:e.spacing(2)})),Sn=o(yn)(({theme:e})=>({color:e.palette.success.main})),Cn=[{id:`Icon`,cell:({row:{original:{selected:e}}})=>(0,X.jsx)(I,{condition:e,show:(0,X.jsx)(T,{icon:(0,X.jsx)(Sn,{})})}),meta:{maxWidth:25}},{id:`name`,header:`Name`,accessorKey:`name`,cell:({row:{original:{name:e}}})=>(0,X.jsx)(_,{children:e}),meta:{maxWidth:175,width:175}},{id:`weight`,header:`Weight`,accessorKey:`weight`,sortingFn:`alphanumeric`,cell:({row:{original:{weight:e}}})=>(0,X.jsx)(_,{children:e}),meta:{maxWidth:75}}],wn=({variants:e,selectedVariant:t})=>{let n=i(),r=p({columns:Cn,data:(0,Y.useMemo)(()=>e.map(e=>({name:e.name,weight:`${f(e.weight)}%`,selected:e.name===t})),[e,t]),initialState:{sorting:[{id:`name`,desc:!1}]},getCoreRowModel:s(),getSortedRowModel:d(),autoResetAll:!1,enableSortingRemoval:!1});return(0,X.jsxs)(bn,{children:[(0,X.jsx)(xn,{variant:`subtitle2`,children:`Variant Information`}),(0,X.jsx)(xn,{variant:`body2`,children:`The following table shows the variants defined on this feature toggle and the variant result based on your context configuration.`}),(0,X.jsx)(xn,{variant:`body2`,children:`If you include "userId" or "sessionId" in your context, the variant will be the same every time because unleash uses these properties to ensure that the user receives the same experience.`}),(0,X.jsxs)(l,{rowHeight:`dense`,children:[(0,X.jsx)(ee,{tableInstance:r}),(0,X.jsx)(ae,{children:r.getRowModel().rows.map(e=>{let t={};return e.original.selected||(t.color=n.palette.text.secondary),(0,X.jsx)(oe,{hover:!0,children:e.getVisibleCells().map(e=>(0,X.jsx)(h,{style:t,children:c(e.column.columnDef.cell,e.getContext())},e.id))},e.id)})})]})]})},Tn=o(`div`)(()=>({maxWidth:`100%`,display:`flex`,alignItems:`center`,wordBreak:`break-all`})),En=({variant:e,variants:t,feature:n,isEnabled:r})=>{let a=i(),[o,s]=(0,Y.useState)(null),c=e=>s(e.currentTarget),l=()=>s(null),u=!!o;return(0,X.jsxs)(Tn,{children:[e,(0,X.jsx)(I,{condition:!!t&&t.length>0&&r,show:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(L,{onClick:c,children:(0,X.jsx)(q,{})}),(0,X.jsx)(P,{open:u,id:`${n}-result-variants`,onClose:l,anchorEl:o,anchorOrigin:{vertical:`bottom`,horizontal:-320},slotProps:{paper:{sx:{borderRadius:`${a.shape.borderRadiusLarge}px`}}},children:(0,X.jsx)(wn,{variants:t,selectedVariant:e})})]})})]})},Dn=({features:e})=>{let t=A(i().breakpoints.down(`sm`)),n=C(),r=(0,Y.useMemo)(()=>[...Object.keys(e[0].context).map(e=>n.accessor(t=>t.context?.[e],{id:`context_${e}`,header:U(e),cell:({getValue:e})=>(0,X.jsx)(E,{value:String(e()??``)}),meta:{minWidth:160}})),n.accessor(e=>e.variant?.name??``,{id:`variant`,header:`Variant`,sortingFn:`alphanumeric`,cell:({getValue:e,row:{original:{variant:t,name:n,variants:r,isEnabled:i}}})=>(0,X.jsx)(En,{variant:t?.enabled?String(e()):``,variants:r,feature:n,isEnabled:i}),meta:{maxWidth:200}}),n.accessor(e=>e?.isEnabled?`true`:e?.strategies?.result===`unknown`?`unknown`:`false`,{id:`isEnabled`,header:`isEnabled`,cell:({row:e})=>(0,X.jsx)(Kt,{feature:e.original}),sortingFn:ke.playgroundResultState,sortDescFirst:!0,meta:{maxWidth:120}}),n.display({id:`info`,header:``,cell:({row:e})=>(0,X.jsx)(vn,{feature:e.original,input:{environment:e.original.environment,context:e.original.context}}),meta:{maxWidth:70}})],[]),a=p({columns:r,data:e,getCoreRowModel:s(),getSortedRowModel:d(),getFilteredRowModel:S(),autoResetAll:!1,enableSortingRemoval:!1,enableMultiSort:!1});O([{condition:t,columns:[`variant`]}],a.setColumnVisibility,r);let o=(0,Y.useRef)(null);return(0,X.jsx)(B,{ref:o,sx:{overflow:`auto`,maxHeight:`800px`},children:(0,X.jsx)(K,{parentRef:o,tableInstance:a})})},On=o(`div`,{})(({theme:e})=>({flexGrow:0,...de,justifyContent:`flex-start`,margin:e.spacing(0,1.5)})),kn=o(B)(({theme:e})=>({display:`flex`,flexDirection:`row`,gap:e.spacing(1)})),An=({value:e})=>{let t=i(),[n,r]=(0,Y.useState)(null),a=e=>r(e.currentTarget),o=()=>r(null),s=!!n,c=(e||[]).filter(e=>e.isEnabled),l=(e||[]).filter(e=>!e.isEnabled);return(0,X.jsxs)(On,{children:[(0,X.jsxs)(kn,{children:[(0,X.jsx)(I,{condition:c.length>0,show:(0,X.jsx)($,{enabled:!0,label:`${c.length}`,showIcon:!0})}),(0,X.jsx)(I,{condition:l.length>0,show:(0,X.jsx)($,{enabled:!1,label:`${l.length}`,showIcon:!0})})]}),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(L,{onClick:a,children:(0,X.jsx)(q,{})}),(0,X.jsxs)(P,{open:s,id:`${e}-result-details`,onClose:o,anchorEl:n,anchorOrigin:{vertical:`bottom`,horizontal:-320},slotProps:{paper:{sx:{borderRadius:`${t.shape.borderRadiusLarge}px`,padding:t.spacing(3)}}},children:[(0,X.jsx)(z,{variant:`subtitle2`,sx:{mb:3},children:e[0].environment}),(0,X.jsx)(Dn,{features:e})]})]})]})},jn=({features:e})=>{let t=Object.keys(e),n=e[t[0]],r=n[0].context,i=(0,Y.useMemo)(()=>n.map((n,r)=>({...Object.fromEntries(t.map(t=>[t,e[t][r]]))})),[JSON.stringify(e)]),a=C(),o=p({columns:(0,Y.useMemo)(()=>{let e=Object.keys(r).map(e=>a.accessor(n=>n[t[0]].context[e],{id:`context_${e}`,header:U(e),cell:({getValue:e})=>(0,X.jsx)(E,{value:String(e()??``)}),meta:{minWidth:160}})),n=t.map(e=>a.accessor(t=>t[e]?.isEnabled?`true`:t[e]?.strategies?.result===`unknown`?`unknown`:`false`,{id:e,header:e,cell:({row:t})=>(0,X.jsxs)(B,{sx:{display:`flex`},children:[(0,X.jsx)(Kt,{feature:t.original[e]}),(0,X.jsx)(vn,{feature:t.original[e],input:{environment:t.original[e].environment,context:t.original[e].context}})]}),sortingFn:ke.playgroundResultState,meta:{maxWidth:140}}));return[...e,...n]},[]),data:i,getCoreRowModel:s(),getSortedRowModel:d(),getFilteredRowModel:S(),autoResetAll:!1,enableSortingRemoval:!1,enableMultiSort:!1}),c=(0,Y.useRef)(null);return(0,X.jsx)(B,{ref:c,sx:{overflow:`auto`,maxHeight:`800px`},children:(0,X.jsx)(K,{parentRef:c,tableInstance:o})})},Mn=o(`div`,{})(({theme:e})=>({flexGrow:0,...de,justifyContent:`flex-start`,margin:e.spacing(0,1.5)})),Nn=o(V)(({theme:e})=>({textAlign:`left`,textDecorationStyle:`dotted`,textDecorationLine:`underline`,textUnderlineOffset:e.spacing(.75),color:e.palette.neutral.dark,padding:0,fontWeight:`normal`})),Pn=({value:e})=>{let t=i(),[n,r]=(0,Y.useState)(null);return(0,X.jsx)(Mn,{children:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Nn,{variant:`text`,onClick:e=>r(e.currentTarget),children:`View diff`}),(0,X.jsxs)(P,{open:!!n,id:`${e}-result-details`,onClose:()=>r(null),anchorEl:n,anchorOrigin:{vertical:`bottom`,horizontal:-320},slotProps:{paper:{sx:{borderRadius:`${t.shape.borderRadiusLarge}px`,padding:t.spacing(3)}}},children:[(0,X.jsx)(z,{variant:`subtitle2`,sx:{mb:3},children:`Environments diff`}),(0,X.jsx)(jn,{features:e})]})]})})},Fn=e=>e.reduce((e,t)=>e+Object.values(t.environments).flatMap(e=>Object.keys(e)).length,0),In=e=>e<0?`invalid bucket`:e>=2e4?`20000+`:e>=1e4?`10000-20000`:e>=1e3?`1000-10000`:e>=100?`100-1000`:`0-100`,{value:Ln,setValue:Rn}=me(`AdvancedPlaygroundResultsTable:v1`,{id:`name`,desc:!1}),zn=({features:e,input:t,loading:r})=>{let{trackEvent:a}=ue();e&&a(`playground`,{props:{eventType:`number-of-combinations`,count:In(Fn(e))}});let[o,c]=n(),l=he(r),[u,f]=(0,Y.useState)(o.get(`search`)||``),m=A(i().breakpoints.down(`md`)),h=e&&e.length>0?Object.keys(e[0].environments).length:0,g=(0,Y.useMemo)(()=>{let e=[{id:`name`,header:`Name`,accessorKey:`name`,cell:({getValue:e,row:{original:t}})=>(0,X.jsx)(be,{title:String(e()??``),to:`/projects/${t?.projectId}/features/${e()}`}),meta:{searchable:!0,minWidth:160}},{id:`projectId`,header:`Project ID`,accessorKey:`projectId`,sortingFn:`alphanumeric`,cell:({getValue:e})=>{let t=String(e()??``);return(0,X.jsx)(be,{title:t,to:`/projects/${t}`})},meta:{filterName:`projectId`,searchable:!0,minWidth:150}},...t?.environments?.map(e=>({id:`environments.${e}`,header:r?``:U(e),cell:({row:t})=>(0,X.jsx)(An,{value:t.original.environments[e]}),meta:{maxWidth:150,align:`left`}}))||[]];return h>1&&e.push({id:`diff`,header:`Diff`,cell:({row:e})=>(0,X.jsx)(Pn,{value:e.original.environments}),meta:{minWidth:150,align:`left`}}),e},[t,r]),{data:_,getSearchText:v,getSearchContext:y}=b(g,u,e||[]),x=(0,Y.useMemo)(()=>r?[,,,,,].fill({name:`Feature name`,projectId:`Feature Project`,environments:{name:`Feature Environments`,variants:[]},enabled:!0}):_,[_,r]),[S]=(0,Y.useState)(()=>({sorting:[{id:o.get(`sort`)||Ln.id,desc:o.has(`order`)?o.get(`order`)===`desc`:Ln.desc}]})),C=p({columns:g,data:x,initialState:S,defaultColumn:{cell:({getValue:e})=>(0,X.jsx)(E,{value:String(e()??``)})},getCoreRowModel:s(),getSortedRowModel:d(),autoResetAll:!1,enableSortingRemoval:!1,enableMultiSort:!1});O([{condition:m,columns:[`projectId`]}],C.setColumnVisibility,g);let T=C.getState().sorting,D=C.getRowModel().rows;return(0,Y.useEffect)(()=>{if(r)return;let e=T[0];if(!e)return;let t=Object.fromEntries(o);t.sort=e.id,e.desc?t.order=`desc`:t.order&&delete t.order,u?t.search=u:delete t.search,c(t,{replace:!0}),Rn({id:e.id,desc:e.desc||!1})},[r,T,u]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(B,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,mb:3},children:[(0,X.jsx)(z,{variant:`subtitle1`,sx:{ml:1},children:e!==void 0&&!r?`Results (${D.length<x.length?`${D.length} of ${x.length}`:x.length})`:`Results`}),(0,X.jsx)(w,{initialValue:u,onChange:f,hasFilters:!0,getSearchContext:y,disabled:r,containerStyles:{marginLeft:`1rem`,maxWidth:`400px`}})]}),(0,X.jsx)(I,{condition:!r&&!x,show:()=>(0,X.jsx)(k,{children:x===void 0?`None of the feature flags were evaluated yet.`:`No results found.`}),elseShow:()=>(0,X.jsxs)(B,{ref:l,sx:{overflow:`auto`},children:[(0,X.jsx)(te,{value:v(u),children:(0,X.jsx)(K,{tableInstance:C})}),(0,X.jsx)(I,{condition:x.length===0&&u?.length>0,show:(0,X.jsxs)(k,{children:[`No feature flags found matching “`,u,`”`]})}),(0,X.jsx)(I,{condition:x&&x.length===0&&!u,show:(0,X.jsx)(k,{children:`No features flags to display`})})]})})]})},Bn=o(R)(({theme:e})=>({marginBottom:e.spacing(3)})),Vn=({response:e})=>{let t=e?.warnings?.invalidContextProperties;return t&&t.length>0?(t.sort(),(0,X.jsx)(Bn,{severity:`warning`,children:(0,X.jsxs)(o(`details`)(({theme:e})=>({"* + *":{marginBlockStart:e.spacing(1)}})),{children:[(0,X.jsx)(`summary`,{children:`Some context properties were not taken into account during evaluation`}),(0,X.jsx)(`p`,{children:`The context you provided for this query contained top-level properties with invalid values. These properties were not taken into consideration when evaluating your query. The properties are:`}),(0,X.jsx)(`ul`,{children:t.map(e=>(0,X.jsx)(`li`,{"data-testid":`context-warning-list-element`,children:(0,X.jsx)(`code`,{children:e})},e))}),(0,X.jsxs)(`p`,{children:[`Remember that context fields (with the exception of the`,` `,(0,X.jsx)(`code`,{children:`properties`}),` object) must be strings.`]}),(0,X.jsx)(`p`,{children:`Because we didn't take these properties into account during the feature flag evaluation, they will not appear in the results table.`})]})})):null},Hn=({FormComponent:e=Pt})=>{let{value:t,setValue:r}=me(`AdvancedPlayground:v1`,{projects:[],environments:[]}),{trackEvent:a}=ue(),{environments:o}=se(),s=i(),[c,l]=(0,Y.useState)(),[u,d]=(0,Y.useState)(t.environments),[f,p]=(0,Y.useState)(t.projects),[m,h]=(0,Y.useState)(t.token),[g,_]=(0,Y.useState)(t.context),[v,y]=(0,Y.useState)(),{setToastData:b}=ce(),[x,S]=n(),[C,w]=(0,Y.useState)(),{evaluateAdvancedPlayground:T,evaluateChangeRequestPlayground:E,loading:D,errors:ee}=et(),[O,te]=(0,Y.useState)(!1);(0,Y.useEffect)(()=>{u?.length===0&&o.length>0&&d([vt(o)])},[JSON.stringify(u),JSON.stringify(o)]),(0,Y.useEffect)(()=>{k()},[]);let k=async()=>{try{let e=A(),t=j(),n=ne();M(),N(),e&&n&&await P(e||[],t||`*`,n)}catch(e){b({type:`error`,text:`Failed to parse URL parameters: ${H(e)}`})}},A=()=>{let e=null,t=x.get(`environments`);return t&&(e=t.split(`,`),d(e)),e},j=()=>{let e=null,t=x.get(`projects`);return t&&(e=t.split(`,`),p(e)),e},ne=()=>{let e=x.get(`context`);return e&&(e=decodeURI(e),_(e)),e},M=()=>{let e=x.get(`token`);return e&&(e=decodeURI(e),h(e)),e},N=()=>{let e=x.get(`changeRequest`);e&&w(e)},P=async(e,t,n,r)=>{try{l(void 0);let i={appName:`playground`,...JSON.parse(n||`{}`)},a=C?await E(C,{context:i}):await T({environments:_t(e),projects:gt(t),context:i});r&&typeof r==`function`&&r(),y(a)}catch(e){e instanceof pe?l(e.message):e instanceof SyntaxError?b({type:`error`,text:`Error parsing context: ${H(e)}`}):b({type:`error`,text:H(e)})}},F=()=>{let e=`default`;m&&m!==``?e=`api_token`:C&&(e=`change_request`),a(`playground`,{props:{eventType:`try-configuration`,mode:e}})},L=async e=>{e.preventDefault(),te(!0),F(),await P(u,f,g,()=>{z(),C||r({environments:u,projects:f,context:g})})},R=()=>{w(void 0)},z=()=>{x.set(`context`,encodeURI(g||``)),Array.isArray(u)&&u.length>0&&!(u.length===1&&u[0]===`*`)?x.set(`environments`,u.join(`,`)):x.delete(`projects`),Array.isArray(f)&&f.length>0&&!(f.length===1&&f[0]===`*`)?x.set(`projects`,f.join(`,`)):x.delete(`projects`),C?x.set(`changeRequest`,C):x.delete(`changeRequest`),S(x)},V=bt(!0,v);return(0,X.jsx)(_e,{header:(0,X.jsx)(ge,{title:`Unleash playground`,actions:(0,X.jsx)(Bt,{})}),disableLoading:!0,bodyClass:`no-padding`,children:(0,X.jsxs)(B,{sx:{display:`flex`,flexDirection:`column`},children:[(0,X.jsx)(B,{sx:{background:s.palette.background.elevation2,borderBottomLeftRadius:s.shape.borderRadiusMedium,isolation:`isolate`,zIndex:2},children:(0,X.jsx)(re,{elevation:0,sx:{px:4,py:3,background:s.palette.background.elevation2,transition:`width 0.4s ease`,minWidth:`auto`,width:`auto`,position:`sticky`,top:0},children:(0,X.jsx)(e,{onSubmit:L,context:g,setContext:_,availableEnvironments:o,projects:f,environments:u,token:m,setToken:h,setProjects:p,setEnvironments:d,changeRequest:C||void 0,onClearChangeRequest:R})})}),(0,X.jsxs)(B,{sx:e=>({width:V,transition:`width 0.4s ease`,padding:e.spacing(4,4),isolation:`isolate`,zIndex:1}),children:[(0,X.jsx)(I,{condition:!!c,show:(0,X.jsx)(Bn,{severity:`warning`,children:c})}),(0,X.jsx)(I,{condition:D,show:(0,X.jsx)(ye,{}),elseShow:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(I,{condition:!!v&&Object.values(ee).length===0,show:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Vn,{response:v}),(0,X.jsx)(zn,{loading:D,features:v?.features,input:v?.input})]})}),(0,X.jsx)(I,{condition:!v&&!O,show:(0,X.jsx)(Lt,{})})]})})]})]})})};export{Hn as AdvancedPlayground,Hn as default};
@@ -1 +0,0 @@
1
- import{o as e,t}from"./react-GZhdek4G.js";import{t as n}from"./jsx-runtime-BnvnyDTF.js";import{D as r,O as i,_ as a,h as o,k as s,m as c,p as l,t as u,v as d,x as f}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";import{i as p,n as m,t as h}from"./CircularProgress-C_LUU3DK.js";import{n as g,r as _}from"./ConditionallyRender---uTpMBn.js";var v=e(t(),1),y=n();function b(e){return i(`MuiAlert`,e)}var x=r(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]);function S(e){return i(`MuiIconButton`,e)}var C=r(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),w=e=>{let{classes:t,disabled:n,color:r,edge:i,size:o,loading:s}=e;return f({root:[`root`,s&&`loading`,n&&`disabled`,r!=="default"&&`color${a(r)}`,i&&`edge${a(i)}`,`size${a(o)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},S,t)},T=d(m,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${a(n.color)}`],n.edge&&t[`edge${a(n.edge)}`],t[`size${a(n.size)}`]]}})(o(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),o(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(u()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${C.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${C.loading}`]:{color:`transparent`}}))),E=d(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),D=v.forwardRef(function(e,t){let n=c({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:u=!1,disableFocusRipple:d=!1,size:f=`medium`,id:p,loading:m=null,loadingIndicator:g,..._}=n,v=l(p),b=g??(0,y.jsx)(h,{"aria-labelledby":v,color:`inherit`,size:16}),x={...n,edge:r,color:o,disabled:u,disableFocusRipple:d,loading:m,loadingIndicator:b,size:f},S=w(x);return(0,y.jsxs)(T,{id:m?v:p,className:s(S.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!d,disabled:u||m,ref:t,..._,ownerState:x,children:[typeof m==`boolean`&&(0,y.jsx)(`span`,{className:S.loadingWrapper,style:{display:`contents`},children:(0,y.jsx)(E,{className:S.loadingIndicator,ownerState:x,children:m&&b})}),i]})}),O=p((0,y.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),k=p((0,y.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),A=p((0,y.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),j=p((0,y.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),M=p((0,y.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),N=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return f({root:[`root`,`color${a(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},b,i)},P=d(g,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(o(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(u([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${x.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(u([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${x.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(u([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),F=d(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),I=d(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),L=d(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),R={success:(0,y.jsx)(O,{fontSize:`inherit`}),warning:(0,y.jsx)(k,{fontSize:`inherit`}),error:(0,y.jsx)(A,{fontSize:`inherit`}),info:(0,y.jsx)(j,{fontSize:`inherit`})},z=v.forwardRef(function(e,t){let n=c({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:l,icon:u,iconMapping:d=R,onClose:f,role:p=`alert`,severity:m=`success`,slotProps:h={},slots:g={},variant:v=`standard`,...b}=n,x={...n,color:l,severity:m,variant:v,colorSeverity:l||m},S=N(x),C={slots:g,slotProps:h},[w,T]=_(`root`,{ref:t,shouldForwardComponentProp:!0,className:s(S.root,a),elementType:P,externalForwardedProps:{...C,...b},ownerState:x,additionalProps:{role:p,elevation:0}}),[E,O]=_(`icon`,{className:S.icon,elementType:F,externalForwardedProps:C,ownerState:x}),[k,A]=_(`message`,{className:S.message,elementType:I,externalForwardedProps:C,ownerState:x}),[j,z]=_(`action`,{className:S.action,elementType:L,externalForwardedProps:C,ownerState:x}),[B,V]=_(`closeButton`,{elementType:D,externalForwardedProps:C,ownerState:x}),[H,U]=_(`closeIcon`,{elementType:M,externalForwardedProps:C,ownerState:x});return(0,y.jsxs)(w,{...T,children:[u===!1?null:(0,y.jsx)(E,{...O,children:u||d[m]||R[m]}),(0,y.jsx)(k,{...A,children:i}),r==null?null:(0,y.jsx)(j,{...z,children:r}),r==null&&f?(0,y.jsx)(j,{...z,children:(0,y.jsx)(B,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:f,...V,children:(0,y.jsx)(H,{fontSize:`small`,...U})})}):null]})});export{M as n,D as r,z as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-BnvnyDTF.js";import{v as t}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";import{t as n}from"./Tooltip-BaILXXti.js";import{t as r}from"./ConditionallyRender---uTpMBn.js";import{t as i}from"./Alert-_bLyWbvx.js";import{t as a}from"./Typography-BTdLWIUX.js";import{t as o}from"./Box-BQsxfFmC.js";import{t as s}from"./useUiConfig-DbVjTDpE.js";import{t as c}from"./usePageTitle-CHzzFshF.js";import{t as l}from"./HelpOutlineOutlined-CpMsVJZu.js";import{Ft as u,Jt as d,Kt as f,Qt as p,in as m,nn as h,qt as g,rn as _}from"./index-C04TEs4k.js";import{a as v,i as y,l as b,n as x,o as S,t as C,u as w}from"./networkTrafficUsageHighlightPlugin-DlOtHZg3.js";import{t as T}from"./chartjs-plugin-annotation.esm-DP4wCpdA.js";var E=e(),D=t(o)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5)})),O=()=>{c(`Network - Backend Connections`);let{isOss:e}=s(),{chartDataSelection:t,setChartDataSelection:d,options:f}=x(),{chartData:p}=S(t);return(0,E.jsx)(r,{condition:e(),show:(0,E.jsx)(i,{severity:`warning`,children:`Not enabled.`}),elseShow:(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)(y,{children:[(0,E.jsxs)(v,{children:[(0,E.jsx)(o,{children:(0,E.jsx)(i,{severity:`info`,icon:!1,children:(0,E.jsxs)(D,{children:[(0,E.jsx)(a,{children:`1 connection = 7200 backend SDK requests per day`}),(0,E.jsx)(n,{title:`1 connection involves polling every 15 seconds and sending metrics every 60 seconds. This translates to 5 requests per minute, 300 requests per hour, and 7200 requests per day.`,children:(0,E.jsx)(l,{})})]})})}),(0,E.jsx)(w,{selectedPeriod:t,setPeriod:d})]}),(0,E.jsx)(u,{data:p,plugins:[C],options:f,"aria-label":b(t)})]})})})};d.register(T,g,p,f,_,m,h);export{O as BackendConnections,O as default};
@@ -1 +0,0 @@
1
- import{B as e,r as t}from"./useTheme-CQqAmDLr.js";import{A as n,D as r}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";import{t as i}from"./createBox-Cf2UJsmc.js";var a=r(`MuiBox`,[`root`]),o=i({themeId:e,defaultTheme:t(),defaultClassName:a.root,generateClassName:n.generate});export{o as t};
@@ -1 +0,0 @@
1
- import{o as e,t}from"./react-GZhdek4G.js";import{t as n}from"./jsx-runtime-BnvnyDTF.js";import{D as r,O as i,T as a,_ as o,h as s,k as c,m as l,p as u,t as d,v as f,x as p,y as m}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";import{n as h,t as g}from"./CircularProgress-C_LUU3DK.js";var _=e(t(),1);function v(e){return i(`MuiButton`,e)}var y=r(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),b=_.createContext({}),x=_.createContext(void 0),S=n(),C=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:s,loadingPosition:c,classes:l}=e,u=p({root:[`root`,s&&`loading`,a,`size${o(i)}`,`color${o(t)}`,n&&`disableElevation`,r&&`fullWidth`,s&&`loadingPosition${o(c)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},v,l);return{...l,...u}},w=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],T=f(h,{shouldForwardProp:e=>m(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${o(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(s(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${y.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${y.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${y.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${y.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(d()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${y.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${y.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${y.loading}`]:{color:`transparent`}}}]}})),E=f(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...w]})),D=f(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...w]})),O=f(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),k=f(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),A=_.forwardRef(function(e,t){let n=_.useContext(b),r=_.useContext(x),i=l({props:a(n,e),name:`MuiButton`}),{children:o,color:s=`primary`,component:d=`button`,className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:h=!1,endIcon:v,focusVisibleClassName:y,fullWidth:w=!1,id:A,loading:j=null,loadingIndicator:M,loadingPosition:N=`center`,size:P=`medium`,startIcon:F,type:I,variant:L=`text`,...R}=i,z=u(A),B=M??(0,S.jsx)(g,{"aria-labelledby":z,color:`inherit`,size:16}),V={...i,color:s,component:d,disabled:p,disableElevation:m,disableFocusRipple:h,fullWidth:w,loading:j,loadingIndicator:B,loadingPosition:N,size:P,type:I,variant:L},H=C(V),U=(F||j&&N===`start`)&&(0,S.jsx)(E,{className:H.startIcon,ownerState:V,children:F||(0,S.jsx)(k,{className:H.loadingIconPlaceholder,ownerState:V})}),W=(v||j&&N===`end`)&&(0,S.jsx)(D,{className:H.endIcon,ownerState:V,children:v||(0,S.jsx)(k,{className:H.loadingIconPlaceholder,ownerState:V})}),G=r||``,K=typeof j==`boolean`?(0,S.jsx)(`span`,{className:H.loadingWrapper,style:{display:`contents`},children:j&&(0,S.jsx)(O,{className:H.loadingIndicator,ownerState:V,children:B})}):null,{root:q,...J}=H;return(0,S.jsxs)(T,{ownerState:V,className:c(n.className,H.root,f,G),component:d,disabled:p||j,focusRipple:!h,focusVisibleClassName:c(H.focusVisible,y),ref:t,internalNativeButton:!0,type:I,id:j?z:A,...R,classes:J,children:[U,N!==`end`&&K,o,N===`end`&&K,W]})});export{A as t};
@@ -1,101 +0,0 @@
1
- import{o as e,t}from"./react-GZhdek4G.js";import{A as n,j as r,z as i}from"./useTheme-CQqAmDLr.js";import{t as a}from"./jsx-runtime-BnvnyDTF.js";import{D as o,O as s,_ as c,a as l,c as u,d,h as f,i as p,k as m,l as h,m as g,n as _,o as v,s as y,t as b,v as x,x as S}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";var C=e(t(),1);function w(e){return s(`MuiSvgIcon`,e)}o(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var T=a(),ee=e=>{let{color:t,fontSize:n,classes:r}=e;return S({root:[`root`,t!==`inherit`&&`color${c(t)}`,`fontSize${c(n)}`]},w,r)},te=x(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${c(n.color)}`],t[`fontSize${c(n.fontSize)}`]]}})(f(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),E=C.forwardRef(function(e,t){let n=g({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=C.isValidElement(r)&&r.type===`svg`,h={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},_={};return l||(_.viewBox=d),(0,T.jsxs)(te,{as:o,className:m(ee(h).root,i),focusable:`false`,color:c,"aria-hidden":u?void 0:!0,role:u?`img`:void 0,ref:t,..._,...f,...p&&r.props,ownerState:h,children:[p?r.props.children:r,u?(0,T.jsx)(`title`,{children:u}):null]})});E.muiName=`SvgIcon`;function D(e,t){function n(t,n){return(0,T.jsx)(E,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=E.muiName,C.memo(C.forwardRef(n))}function O(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function k(e,t){var n=function(e){return t&&(0,C.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&C.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function ne(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function A(e,t,n){return n[t]==null?e.props[t]:n[t]}function j(e,t){return k(e.children,function(n){return(0,C.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:A(n,`appear`,e),enter:A(n,`enter`,e),exit:A(n,`exit`,e)})})}function M(e,t,n){var r=k(e.children),i=ne(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,C.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,C.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,C.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:A(o,`exit`,e),enter:A(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,C.cloneElement)(o,{in:!1}):c&&s&&(0,C.isValidElement)(l)&&(i[a]=(0,C.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:A(o,`exit`,e),enter:A(o,`enter`,e)}))}}),i}var N=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},P={component:`div`,childFactory:function(e){return e}},F=function(e){y(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(O(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?j(e,r):M(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=k(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=i({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=u(e,[`component`,`childFactory`]),i=this.state.contextValue,a=N(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?C.createElement(v.Provider,{value:i},a):C.createElement(v.Provider,{value:i},C.createElement(t,r,a))},t}(C.Component);F.propTypes={},F.defaultProps=P;function I(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return C.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var re={};function ie(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=C.useRef(null),m=l===!0,h=I({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=C.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`?!0:!!(e.tagName===`A`&&e.href)},[t]),_=C.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:C.useCallback((e=re)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(u&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var ae=class e{static create(){return new e}static use(){let t=l(e.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=L(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function oe(){return ae.use()}function L(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function R(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=C.useState(!1),f=m(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},h=m(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),C.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,T.jsx)(`span`,{className:f,style:p,children:(0,T.jsx)(`span`,{className:h})})}var z=o(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),B=550,V=r`
2
- 0% {
3
- transform: scale(0);
4
- opacity: 0.1;
5
- }
6
-
7
- 100% {
8
- transform: scale(1);
9
- opacity: 0.3;
10
- }
11
- `,H=r`
12
- 0% {
13
- opacity: 1;
14
- }
15
-
16
- 100% {
17
- opacity: 0;
18
- }
19
- `,U=r`
20
- 0% {
21
- transform: scale(1);
22
- }
23
-
24
- 50% {
25
- transform: scale(0.92);
26
- }
27
-
28
- 100% {
29
- transform: scale(1);
30
- }
31
- `,W=x(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),G=x(R,{name:`MuiTouchRipple`,slot:`Ripple`})`
32
- opacity: 0;
33
- position: absolute;
34
-
35
- &.${z.rippleVisible} {
36
- opacity: 0.3;
37
- transform: scale(1);
38
- animation-name: ${V};
39
- animation-duration: ${B}ms;
40
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
41
- }
42
-
43
- &.${z.ripplePulsate} {
44
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
45
- }
46
-
47
- & .${z.child} {
48
- opacity: 1;
49
- display: block;
50
- width: 100%;
51
- height: 100%;
52
- border-radius: 50%;
53
- background-color: currentColor;
54
- }
55
-
56
- & .${z.childLeaving} {
57
- opacity: 0;
58
- animation-name: ${H};
59
- animation-duration: ${B}ms;
60
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
61
- }
62
-
63
- & .${z.childPulsate} {
64
- position: absolute;
65
- /* @noflip */
66
- left: 0px;
67
- top: 0;
68
- animation-name: ${U};
69
- animation-duration: 2500ms;
70
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
71
- animation-iteration-count: infinite;
72
- animation-delay: 200ms;
73
- }
74
- `,se=C.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=g({props:e,name:`MuiTouchRipple`}),[o,s]=C.useState([]),c=C.useRef(0),l=C.useRef(null);C.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=C.useRef(!1),d=p(),f=C.useRef(null),h=C.useRef(null),_=C.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,T.jsx)(G,{classes:{ripple:m(r.ripple,z.ripple),rippleVisible:m(r.rippleVisible,z.rippleVisible),ripplePulsate:m(r.ripplePulsate,z.ripplePulsate),child:m(r.child,z.child),childLeaving:m(r.childLeaving,z.childLeaving),childPulsate:m(r.childPulsate,z.childPulsate)},timeout:B,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),v=C.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:h.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,p,m;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),p=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),p=Math.round(n-c.top)}if(a)m=Math.sqrt((2*c.width**2+c.height**2)/3),m%2==0&&(m+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-p),p)*2+2;m=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{_({pulsate:i,rippleX:l,rippleY:p,rippleSize:m,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):_({pulsate:i,rippleX:l,rippleY:p,rippleSize:m,cb:r})},[n,_,d]),y=C.useCallback(()=>{v({},{pulsate:!0})},[v]),b=C.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{b(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return C.useImperativeHandle(t,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),(0,T.jsx)(W,{className:m(z.root,r.root,i),ref:h,...a,children:(0,T.jsx)(F,{component:null,exit:!0,children:o})})});function K(e){return s(`MuiButtonBase`,e)}var q=o(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),ce=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=S({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},K,a);return n&&!i&&r&&(o.root+=` ${r}`),o},le=x(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${q.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),ue=C.forwardRef(function(e,t){let n=g({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:p,focusableWhenDisabled:v,suppressFocusVisible:y=!1,internalNativeButton:b,LinkComponent:x=`a`,nativeButton:S,onBlur:w,onClick:ee,onContextMenu:te,onDragLeave:E,onFocus:D,onFocusVisible:O,onKeyDown:k,onKeyUp:ne,onMouseDown:A,onMouseLeave:j,onMouseUp:M,onTouchEnd:N,onTouchMove:P,onTouchStart:F,tabIndex:I=0,TouchRippleProps:re,touchRippleRef:ae,type:L,...R}=n,z=!!(R.href||R.to),B=!!R.formAction,V=s;V===`button`&&z&&(V=x);let H=typeof V==`string`?V===`button`:b??!1,U=S??H,W=oe(),G=h(W.ref,ae),[K,q]=C.useState(!1);(c||y)&&K&&q(!1);let ue=d(e=>{f&&!e.repeat&&K&&e.key===` `&&W.stop(e,()=>{W.start(e)})}),de=d(e=>{f&&e.key===` `&&K&&!e.defaultPrevented&&W.stop(e,()=>{W.pulsate(e)})}),{getButtonProps:Y,rootRef:X}=ie({nativeButton:U,nativeButtonProp:S,internalNativeButton:H,allowInferredHostMismatch:z||typeof V==`string`,disabled:c,type:L,hasFormAction:B,tabIndex:I,onBeforeKeyDown:ue,onBeforeKeyUp:de}),{onClick:Z,onKeyDown:fe,onKeyUp:pe,...me}=Y({onClick:ee,onKeyDown:k,onKeyUp:ne});C.useImperativeHandle(r,()=>({focusVisible:()=>{q(!0),X.current.focus()}}),[X]);let he=W.shouldMount&&!l&&!c;C.useEffect(()=>{K&&f&&!l&&W.pulsate()},[l,f,K,W]);let ge=J(W,`start`,A,u),_e=J(W,`stop`,te,u),ve=J(W,`stop`,E,u),Q=J(W,`stop`,M,u),ye=J(W,`stop`,e=>{K&&e.preventDefault(),j&&j(e)},u),be=J(W,`start`,F,u),xe=J(W,`stop`,N,u),Se=J(W,`stop`,P,u),Ce=J(W,`stop`,e=>{_(e.target)||q(!1),w&&w(e)},!1),we=d(e=>{X.current||=e.currentTarget,!y&&_(e.target)&&(q(!0),O&&O(e)),D&&D(e)}),$={};z&&($.tabIndex=c?-1:I,c&&($[`aria-disabled`]=c),$.type=L);let Te=h(t,X),Ee={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:f,suppressFocusVisible:y,tabIndex:I,focusVisible:K},De=ce(Ee);return(0,T.jsxs)(le,{as:V,className:m(De.root,o),ownerState:Ee,onBlur:Ce,onClick:Z,onContextMenu:_e,onFocus:we,onKeyDown:fe,onKeyUp:pe,onMouseDown:ge,onMouseLeave:ye,onMouseUp:Q,onDragLeave:ve,onTouchEnd:xe,onTouchMove:Se,onTouchStart:be,ref:Te,...z?$:me,...R,children:[a,he?(0,T.jsx)(se,{ref:G,center:i,...re}):null]})});function J(e,t,n,r=!1){return d(i=>(n&&n(i),r||e[t](i),!0))}function de(e){return s(`MuiCircularProgress`,e)}o(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var Y=44,X=r`
75
- 0% {
76
- transform: rotate(0deg);
77
- }
78
-
79
- 100% {
80
- transform: rotate(360deg);
81
- }
82
- `,Z=r`
83
- 0% {
84
- stroke-dasharray: 1px, 200px;
85
- stroke-dashoffset: 0;
86
- }
87
-
88
- 50% {
89
- stroke-dasharray: 100px, 200px;
90
- stroke-dashoffset: -15px;
91
- }
92
-
93
- 100% {
94
- stroke-dasharray: 1px, 200px;
95
- stroke-dashoffset: -126px;
96
- }
97
- `,fe=typeof X==`string`?null:n`
98
- animation: ${X} 1.4s linear infinite;
99
- `,pe=typeof Z==`string`?null:n`
100
- animation: ${Z} 1.4s ease-in-out infinite;
101
- `,me=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return S({root:[`root`,n,`color${c(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},de,t)},he=x(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${c(n.color)}`]]}})(f(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:fe||{animation:`${X} 1.4s linear infinite`}},...Object.entries(e.palette).filter(b()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ge=x(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),_e=x(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(f(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:pe||{animation:`${Z} 1.4s ease-in-out infinite`}}]}))),ve=x(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(f(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Q=C.forwardRef(function(e,t){let n=g({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...h}=n,_=s??0,v=c??100,y={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},b=me(y),x={},S={},C={};if(p===`determinate`){let e=2*Math.PI*((Y-d)/2),t=v-_;x.strokeDasharray=e.toFixed(3),x.strokeDashoffset=t>0?`${((v-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,S.transform=`rotate(-90deg)`,C[`aria-valuenow`]=f,C[`aria-valuemin`]=_,C[`aria-valuemax`]=v}return(0,T.jsx)(he,{className:m(b.root,r),style:{width:l,height:l,...S,...u},ownerState:y,ref:t,role:`progressbar`,...C,...h,children:(0,T.jsxs)(ge,{className:b.svg,ownerState:y,viewBox:`${Y/2} ${Y/2} ${Y} ${Y}`,children:[o?(0,T.jsx)(ve,{className:b.track,ownerState:y,cx:Y,cy:Y,r:(Y-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,T.jsx)(_e,{className:b.circle,style:x,ownerState:y,cx:Y,cy:Y,r:(Y-d)/2,fill:`none`,strokeWidth:d})]})})});export{E as a,D as i,ue as n,F as r,Q as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-BnvnyDTF.js";import{i as t}from"./CircularProgress-C_LUU3DK.js";var n=t((0,e().jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`);export{n as t};
@@ -1 +0,0 @@
1
- import{o as e,t}from"./react-GZhdek4G.js";import{a as n,l as r,s as i}from"./Grow-BIbmvKVy.js";import{a,t as o}from"./useTheme-CQqAmDLr.js";import{t as s}from"./jsx-runtime-BnvnyDTF.js";import{D as c,O as l,h as u,i as d,k as f,l as p,m,v as h,x as g}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";import{r as _}from"./ConditionallyRender---uTpMBn.js";var v=e(t(),1);function y(e){return l(`MuiCollapse`,e)}c(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var b=s(),ee=e=>{let{orientation:t,classes:n}=e;return g({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},y,n)},x=h(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(u(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),S=h(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),C=h(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),w=v.forwardRef(function(e,t){let s=m({props:e,name:`MuiCollapse`}),{addEndListener:c,children:l,className:u,collapsedSize:h=`0px`,component:g,easing:y,in:w,onEnter:T,onEntered:E,onEntering:D,onExit:O,onExited:k,onExiting:A,orientation:j=`vertical`,slots:M={},slotProps:N={},style:P,timeout:F=a.standard,TransitionComponent:I=r,...te}=s,L={...s,orientation:j,collapsedSize:h},R=ee(L),z=o(),B=d(),V=v.useRef(null),H=v.useRef(),U=typeof h==`number`?`${h}px`:h,W=j===`horizontal`,G=W?`width`:`height`,K=v.useRef(null),q=p(t,K),J=()=>V.current?V.current[W?`clientWidth`:`clientHeight`]:0,Y=i(K,(e,t)=>{V.current&&W&&(V.current.style.position=`absolute`),e.style[G]=U,T&&T(e,t)}),X=i(K,(e,t)=>{let r=J();V.current&&W&&(V.current.style.position=``);let{duration:i,easing:a}=n({style:P,timeout:F,easing:y},{mode:`enter`});if(F===`auto`){let t=z.transitions.getAutoHeightDuration(r);e.style.transitionDuration=`${t}ms`,H.current=t}else e.style.transitionDuration=typeof i==`string`?i:`${i}ms`;e.style[G]=`${r}px`,e.style.transitionTimingFunction=a,D&&D(e,t)}),Z=i(K,(e,t)=>{e.style[G]=`auto`,E&&E(e,t)}),ne=i(K,e=>{e.style[G]=`${J()}px`,O&&O(e)}),re=i(K,k),ie=i(K,e=>{let t=J(),{duration:r,easing:i}=n({style:P,timeout:F,easing:y},{mode:`exit`});if(F===`auto`){let n=z.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,H.current=n}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[G]=U,e.style.transitionTimingFunction=i,A&&A(e)}),ae=e=>{F===`auto`&&B.start(H.current||0,e),c&&c(K.current,e)},Q={slots:M,slotProps:N,component:g},[oe,$]=_(`root`,{ref:q,className:f(R.root,u),elementType:x,externalForwardedProps:Q,ownerState:L,additionalProps:{style:{[W?`minWidth`:`minHeight`]:U,...P}}}),[se,ce]=_(`wrapper`,{ref:V,className:R.wrapper,elementType:S,externalForwardedProps:Q,ownerState:L}),[le,ue]=_(`wrapperInner`,{className:R.wrapperInner,elementType:C,externalForwardedProps:Q,ownerState:L});return(0,b.jsx)(I,{in:w,onEnter:Y,onEntered:Z,onEntering:X,onExit:ne,onExited:re,onExiting:ie,addEndListener:ae,nodeRef:K,timeout:F===`auto`?null:F,...te,children:(e,{ownerState:t,...n})=>{let r={...L,state:e};return(0,b.jsx)(oe,{...$,className:f($.className,{entered:R.entered,exited:!w&&U===`0px`&&R.hidden}[e]),ownerState:r,...n,children:(0,b.jsx)(se,{...ce,ownerState:r,children:(0,b.jsx)(le,{...ue,ownerState:r,children:l})})})}})});w&&(w.muiSupportAuto=!0);export{w as t};
@@ -1 +0,0 @@
1
- import{o as e,t}from"./react-GZhdek4G.js";import{i as n,s as r,t as i}from"./useTheme-CQqAmDLr.js";import{t as a}from"./jsx-runtime-BnvnyDTF.js";import{D as o,O as s,h as c,k as l,m as u,u as d,v as f,x as p}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";function m(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function h(e){return typeof e==`string`}function g(e,t,n){return e===void 0||h(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function _(e,t,n){return typeof e==`function`?e(t,n):e}function v(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))m(n,e[n])&&(t[n]=e[n]);return t}function y(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function b(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=l(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=v({...i,...r}),s=y(r),c=y(i),u=t(o),d=l(u?.className,n?.className,a,i?.className,r?.className),f={...u?.style,...n?.style,...i?.style,...r?.style},p={...u,...n,...c,...s};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function x(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...p}=a,m=u[e]||r,h=_(f[e],i),{props:{component:v,...y},internalRef:x}=b({className:n,...c,externalForwardedProps:e===`root`?p:void 0,externalSlotProps:h}),S=d(x,h?.ref,t.ref),C=e===`root`?v||l:v;return[m,g(m,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...y,...C&&!s&&{as:C},...C&&s&&{component:C},ref:S},i)]}var S=e(t(),1);function C(e){return s(`MuiPaper`,e)}o(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var w=a(),T=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return p({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},C,i)},E=f(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(c(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),D=S.forwardRef(function(e,t){let a=u({props:e,name:`MuiPaper`}),o=i(),{className:s,component:c=`div`,elevation:d=1,square:f=!1,variant:p=`elevation`,...m}=a,h={...a,component:c,elevation:d,square:f,variant:p};return(0,w.jsx)(E,{as:c,ownerState:h,className:l(T(h).root,s),ref:t,...m,style:{...p===`elevation`&&{"--Paper-shadow":(o.vars||o).shadows[d],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[d]},...!o.vars&&o.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${r(`#fff`,n(d))}, ${r(`#fff`,n(d))})`}},...m.style}})}),O=({condition:e,show:t,elseShow:n})=>{let r=e=>e()||(console.warn(`Nothing was returned from your render function. Verify that you are returning a valid react component`),null),i=e=>typeof e==`function`;return e?i(t)?r(t):t:!e&&n?i(n)?r(n):n:null};export{v as a,h as c,b as i,m as l,D as n,_ as o,x as r,g as s,O as t};
@@ -1 +0,0 @@
1
- import{i as e}from"./chunk-QUQL4437-Dr42NpoL.js";import{t}from"./jsx-runtime-BnvnyDTF.js";var n=t(),r=()=>(0,n.jsx)(e,{to:`/projects?create=true`,replace:!0});export{r as default};
@@ -1 +0,0 @@
1
- import{o as e,t}from"./react-GZhdek4G.js";import{t as n}from"./useTheme-CQqAmDLr.js";import{t as r}from"./jsx-runtime-BnvnyDTF.js";import{D as i,O as a,S as o,_ as s,h as c,k as l,m as u,v as d,x as f}from"./createSimplePaletteValueFilter-BRAMrHWJ.js";import{c as p,i as m,r as h,s as g}from"./Popover-CUTnSn2h.js";import{n as _,r as v}from"./ConditionallyRender---uTpMBn.js";var y=e(t(),1);function b(e){return a(`MuiDialog`,e)}i(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]);var x=y.createContext({}),S=r(),C=d(g,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),w=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return f({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${s(n)}`],paper:[`paper`,`paperWidth${s(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},b,t)},T=d(h,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),E=d(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${s(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),D=d(_,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${s(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(c(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),O=y.forwardRef(function(e,t){let r=u({props:e,name:`MuiDialog`}),i=n(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":c,"aria-modal":d=!0,children:f,className:h,fullScreen:g=!1,fullWidth:b=!1,maxWidth:O=`sm`,onClick:k,onClose:A,open:j,PaperComponent:M=_,role:N=`dialog`,scroll:P=`paper`,slots:F={},slotProps:I={},transitionDuration:L=a,...R}=r,z={...r,fullScreen:g,fullWidth:b,maxWidth:O,scroll:P},B=w(z),V=y.useRef(),H=e=>{V.current=e.target===e.currentTarget},U=e=>{k&&k(e),V.current&&(V.current=null,A&&A(e,`backdropClick`))},W=o(c),G=y.useMemo(()=>({titleId:W}),[W]),K={slots:F,slotProps:I},[q,J]=v(`root`,{elementType:T,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z,className:l(B.root,h),ref:t}),[Y,X]=v(`backdrop`,{elementType:C,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z,className:B.backdrop}),[Z,Q]=v(`paper`,{elementType:D,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:z,className:B.paper,additionalProps:{elevation:24,role:N,"aria-describedby":s,"aria-labelledby":W,"aria-modal":d,tabIndex:-1,[m]:``}}),[$,ee]=v(`container`,{elementType:E,externalForwardedProps:K,ownerState:z,className:B.container}),[te,ne]=v(`transition`,{elementType:p,externalForwardedProps:K,ownerState:z,additionalProps:{appear:!0,in:j,timeout:L,role:`presentation`}});return(0,S.jsx)(q,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:L,...X}},onClose:A,open:j,onClick:U,...J,...R,children:(0,S.jsx)(te,{...ne,children:(0,S.jsx)($,{onMouseDown:H,...ee,children:(0,S.jsx)(Z,{as:M,...Q,children:(0,S.jsx)(x.Provider,{value:G,children:f})})})})})});export{x as n,O as t};