zenml-nightly 0.64.0.dev20240811__py3-none-any.whl → 0.66.0.dev20240910__py3-none-any.whl

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 (291) hide show
  1. README.md +1 -1
  2. RELEASE_NOTES.md +126 -4
  3. zenml/VERSION +1 -1
  4. zenml/artifacts/utils.py +13 -6
  5. zenml/cli/__init__.py +1 -1
  6. zenml/cli/base.py +4 -4
  7. zenml/cli/integration.py +48 -9
  8. zenml/cli/pipeline.py +9 -2
  9. zenml/cli/stack.py +39 -27
  10. zenml/cli/utils.py +13 -0
  11. zenml/client.py +15 -17
  12. zenml/config/compiler.py +34 -0
  13. zenml/config/server_config.py +30 -0
  14. zenml/config/source.py +3 -7
  15. zenml/constants.py +5 -3
  16. zenml/entrypoints/base_entrypoint_configuration.py +41 -27
  17. zenml/entrypoints/step_entrypoint_configuration.py +5 -2
  18. zenml/enums.py +2 -0
  19. zenml/environment.py +31 -0
  20. zenml/feature_stores/base_feature_store.py +4 -6
  21. zenml/integrations/__init__.py +3 -0
  22. zenml/integrations/airflow/flavors/airflow_orchestrator_flavor.py +9 -0
  23. zenml/integrations/aws/__init__.py +2 -2
  24. zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +2 -1
  25. zenml/integrations/azure/__init__.py +2 -2
  26. zenml/integrations/azure/azureml_utils.py +201 -0
  27. zenml/integrations/azure/flavors/azureml.py +139 -0
  28. zenml/integrations/azure/flavors/azureml_orchestrator_flavor.py +20 -118
  29. zenml/integrations/azure/flavors/azureml_step_operator_flavor.py +67 -14
  30. zenml/integrations/azure/orchestrators/azureml_orchestrator.py +58 -172
  31. zenml/integrations/azure/orchestrators/azureml_orchestrator_entrypoint_config.py +1 -0
  32. zenml/integrations/azure/service_connectors/azure_service_connector.py +4 -0
  33. zenml/integrations/azure/step_operators/azureml_step_operator.py +78 -177
  34. zenml/integrations/constants.py +3 -0
  35. zenml/integrations/databricks/__init__.py +22 -4
  36. zenml/integrations/databricks/flavors/databricks_orchestrator_flavor.py +9 -0
  37. zenml/integrations/deepchecks/__init__.py +29 -11
  38. zenml/integrations/deepchecks/materializers/deepchecks_dataset_materializer.py +3 -1
  39. zenml/integrations/deepchecks/validation_checks.py +0 -30
  40. zenml/integrations/evidently/__init__.py +17 -2
  41. zenml/integrations/facets/__init__.py +21 -5
  42. zenml/integrations/feast/__init__.py +19 -6
  43. zenml/integrations/gcp/__init__.py +2 -2
  44. zenml/integrations/gcp/flavors/vertex_orchestrator_flavor.py +9 -0
  45. zenml/integrations/gcp/orchestrators/vertex_orchestrator.py +10 -1
  46. zenml/integrations/great_expectations/__init__.py +21 -7
  47. zenml/integrations/huggingface/__init__.py +39 -15
  48. zenml/integrations/huggingface/materializers/__init__.py +3 -0
  49. zenml/integrations/huggingface/materializers/huggingface_datasets_materializer.py +3 -1
  50. zenml/integrations/huggingface/materializers/huggingface_pt_model_materializer.py +1 -1
  51. zenml/integrations/huggingface/materializers/huggingface_t5_materializer.py +107 -0
  52. zenml/integrations/huggingface/materializers/huggingface_tf_model_materializer.py +1 -1
  53. zenml/integrations/huggingface/materializers/huggingface_tokenizer_materializer.py +2 -2
  54. zenml/integrations/huggingface/steps/accelerate_runner.py +108 -85
  55. zenml/integrations/hyperai/flavors/hyperai_orchestrator_flavor.py +9 -0
  56. zenml/integrations/kubeflow/flavors/kubeflow_orchestrator_flavor.py +9 -0
  57. zenml/integrations/kubeflow/orchestrators/kubeflow_orchestrator.py +10 -1
  58. zenml/integrations/kubernetes/flavors/kubernetes_orchestrator_flavor.py +9 -0
  59. zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py +10 -1
  60. zenml/integrations/lightning/__init__.py +48 -0
  61. zenml/integrations/lightning/flavors/__init__.py +23 -0
  62. zenml/integrations/lightning/flavors/lightning_orchestrator_flavor.py +148 -0
  63. zenml/integrations/lightning/orchestrators/__init__.py +23 -0
  64. zenml/integrations/lightning/orchestrators/lightning_orchestrator.py +596 -0
  65. zenml/integrations/lightning/orchestrators/lightning_orchestrator_entrypoint.py +307 -0
  66. zenml/integrations/lightning/orchestrators/lightning_orchestrator_entrypoint_configuration.py +77 -0
  67. zenml/integrations/lightning/orchestrators/utils.py +67 -0
  68. zenml/integrations/mlflow/__init__.py +43 -5
  69. zenml/integrations/mlflow/services/mlflow_deployment.py +26 -0
  70. zenml/integrations/numpy/__init__.py +32 -0
  71. zenml/integrations/numpy/materializers/__init__.py +18 -0
  72. zenml/integrations/numpy/materializers/numpy_materializer.py +246 -0
  73. zenml/integrations/pandas/__init__.py +32 -0
  74. zenml/integrations/pandas/materializers/__init__.py +18 -0
  75. zenml/integrations/pandas/materializers/pandas_materializer.py +192 -0
  76. zenml/integrations/prodigy/annotators/prodigy_annotator.py +1 -1
  77. zenml/integrations/seldon/__init__.py +18 -3
  78. zenml/integrations/sklearn/__init__.py +1 -1
  79. zenml/integrations/skypilot_azure/__init__.py +1 -1
  80. zenml/integrations/tensorboard/__init__.py +1 -1
  81. zenml/integrations/tensorflow/__init__.py +2 -2
  82. zenml/integrations/tensorflow/materializers/tf_dataset_materializer.py +2 -2
  83. zenml/integrations/whylogs/__init__.py +18 -2
  84. zenml/logging/step_logging.py +9 -2
  85. zenml/materializers/__init__.py +0 -4
  86. zenml/materializers/base_materializer.py +4 -0
  87. zenml/materializers/numpy_materializer.py +23 -234
  88. zenml/materializers/pandas_materializer.py +22 -179
  89. zenml/model/model.py +91 -2
  90. zenml/model/utils.py +5 -5
  91. zenml/models/__init__.py +16 -3
  92. zenml/models/v2/core/model_version.py +1 -1
  93. zenml/models/v2/core/pipeline_run.py +31 -1
  94. zenml/models/v2/core/stack.py +51 -20
  95. zenml/models/v2/core/step_run.py +28 -0
  96. zenml/models/v2/misc/info_models.py +78 -0
  97. zenml/new/pipelines/pipeline.py +65 -25
  98. zenml/new/pipelines/run_utils.py +57 -136
  99. zenml/new/steps/step_context.py +17 -6
  100. zenml/orchestrators/base_orchestrator.py +9 -0
  101. zenml/orchestrators/step_launcher.py +37 -14
  102. zenml/orchestrators/step_runner.py +14 -13
  103. zenml/orchestrators/utils.py +107 -7
  104. zenml/service_connectors/service_connector_utils.py +2 -2
  105. zenml/stack/utils.py +11 -2
  106. zenml/stack_deployments/azure_stack_deployment.py +2 -1
  107. zenml/steps/base_step.py +62 -25
  108. zenml/steps/utils.py +115 -3
  109. zenml/utils/cloud_utils.py +8 -8
  110. zenml/utils/code_utils.py +130 -32
  111. zenml/utils/function_utils.py +7 -7
  112. zenml/utils/notebook_utils.py +14 -0
  113. zenml/utils/pipeline_docker_image_builder.py +1 -11
  114. zenml/utils/pydantic_utils.py +3 -3
  115. zenml/utils/secret_utils.py +2 -2
  116. zenml/utils/settings_utils.py +1 -1
  117. zenml/utils/source_utils.py +67 -21
  118. zenml/utils/string_utils.py +29 -0
  119. zenml/zen_server/dashboard/assets/{404-CRAA_Lew.js → 404-iO8vpun1.js} +1 -1
  120. zenml/zen_server/dashboard/assets/{@radix-BXWm7HOa.js → @radix-DnFH_oo1.js} +1 -1
  121. zenml/zen_server/dashboard/assets/{@react-router-l3lMcXA2.js → @react-router-APVeuk-U.js} +1 -1
  122. zenml/zen_server/dashboard/assets/{@reactflow-CeVxyqYT.js → @reactflow-B6kq9fJZ.js} +2 -2
  123. zenml/zen_server/dashboard/assets/{@tanstack-FmcYZMuX.js → @tanstack-QbMbTrh5.js} +1 -1
  124. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-BXeSvmMY.js +1 -0
  125. zenml/zen_server/dashboard/assets/{CodeSnippet-D0VLxT2A.js → CodeSnippet-DNWdQmbo.js} +2 -2
  126. zenml/zen_server/dashboard/assets/CollapsibleCard-B2OVjWYE.js +1 -0
  127. zenml/zen_server/dashboard/assets/Commands-DsoaVElZ.js +1 -0
  128. zenml/zen_server/dashboard/assets/CopyButton-BqE_-PHO.js +2 -0
  129. zenml/zen_server/dashboard/assets/{CsvVizualization-D3kAypDj.js → CsvVizualization-Dyasr2jU.js} +6 -6
  130. zenml/zen_server/dashboard/assets/{edit-C0MVvPD2.js → DialogItem-Cz1VLRwa.js} +1 -1
  131. zenml/zen_server/dashboard/assets/{DisplayDate-DizbSeT-.js → DisplayDate-DkCy54Bp.js} +1 -1
  132. zenml/zen_server/dashboard/assets/EditSecretDialog-Du423_3U.js +1 -0
  133. zenml/zen_server/dashboard/assets/{EmptyState-BHblM39I.js → EmptyState-Cs3DEmso.js} +1 -1
  134. zenml/zen_server/dashboard/assets/{Error-C6LeJSER.js → Error-DorJD_va.js} +1 -1
  135. zenml/zen_server/dashboard/assets/ExecutionStatus-CIfQTutR.js +1 -0
  136. zenml/zen_server/dashboard/assets/{Helpbox-aAB2XP-z.js → Helpbox-CmfvtNeq.js} +1 -1
  137. zenml/zen_server/dashboard/assets/Infobox-BL9NOS37.js +1 -0
  138. zenml/zen_server/dashboard/assets/{InlineAvatar-DpTLgM3Q.js → InlineAvatar-Ds2ZFHPc.js} +1 -1
  139. zenml/zen_server/dashboard/assets/{Lock-CNyJvf2r.js → Lock-CmIn0szs.js} +1 -1
  140. zenml/zen_server/dashboard/assets/{MarkdownVisualization-Bajxn0HY.js → MarkdownVisualization-DS05sfBm.js} +1 -1
  141. zenml/zen_server/dashboard/assets/{NumberBox-BmKE0qnO.js → NumberBox-CrN0_kqI.js} +1 -1
  142. zenml/zen_server/dashboard/assets/Partials-DX-8iEa1.js +1 -0
  143. zenml/zen_server/dashboard/assets/{PasswordChecker-yGGoJSB-.js → PasswordChecker-DE71J_3F.js} +1 -1
  144. zenml/zen_server/dashboard/assets/ProviderIcon-BOQJgapd.js +1 -0
  145. zenml/zen_server/dashboard/assets/ProviderRadio-BsYBw9YA.js +1 -0
  146. zenml/zen_server/dashboard/assets/SearchField-W3GXpLlI.js +1 -0
  147. zenml/zen_server/dashboard/assets/SetPassword-B-0a8UCj.js +1 -0
  148. zenml/zen_server/dashboard/assets/{Tick-uxv80Q6a.js → Tick-i1DYsVcX.js} +1 -1
  149. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-oN4G3sKz.js → UpdatePasswordSchemas-C6Zb7ASL.js} +1 -1
  150. zenml/zen_server/dashboard/assets/UsageReason-CCnzmwS8.js +1 -0
  151. zenml/zen_server/dashboard/assets/WizardFooter-BHbO7zOa.js +1 -0
  152. zenml/zen_server/dashboard/assets/all-pipeline-runs-query-BBEe6I9-.js +1 -0
  153. zenml/zen_server/dashboard/assets/{check-circle-1_I207rW.js → check-circle-DOoS4yhF.js} +1 -1
  154. zenml/zen_server/dashboard/assets/{chevron-down-BpaF8JqM.js → chevron-down-Cwb-W_B_.js} +1 -1
  155. zenml/zen_server/dashboard/assets/{chevron-right-double-Dk8e2L99.js → chevron-right-double-c9H46Kl8.js} +1 -1
  156. zenml/zen_server/dashboard/assets/{cloud-only-BkUuI0lZ.js → cloud-only-BuP4Kt_7.js} +1 -1
  157. zenml/zen_server/dashboard/assets/code-browser-BJYErIjr.js +1 -0
  158. zenml/zen_server/dashboard/assets/codespaces-BitYDX9d.gif +0 -0
  159. zenml/zen_server/dashboard/assets/{copy-f3XGPPxt.js → copy-CaGlDsUy.js} +1 -1
  160. zenml/zen_server/dashboard/assets/create-stack-B2x2d4r1.js +1 -0
  161. zenml/zen_server/dashboard/assets/{docker-8uj__HHK.js → docker-BFAFXr2_.js} +1 -1
  162. zenml/zen_server/dashboard/assets/{dots-horizontal-sKQlWEni.js → dots-horizontal-C6K59vUm.js} +1 -1
  163. zenml/zen_server/dashboard/assets/flyte-Cj-xy_8I.svg +10 -0
  164. zenml/zen_server/dashboard/assets/form-schemas-Bap0f854.js +1 -0
  165. zenml/zen_server/dashboard/assets/gcp-Dj6ntk0L.js +1 -0
  166. zenml/zen_server/dashboard/assets/{help-FuHlZwn0.js → help-CwN931fX.js} +1 -1
  167. zenml/zen_server/dashboard/assets/{index-Bd1xgUQG.js → index-5GJ5ysEZ.js} +1 -1
  168. zenml/zen_server/dashboard/assets/{index-DaGknux4.css → index-6DYjZgDn.css} +1 -1
  169. zenml/zen_server/dashboard/assets/index-B9wVwe7u.js +55 -0
  170. zenml/zen_server/dashboard/assets/index-DFi8BroH.js +1 -0
  171. zenml/zen_server/dashboard/assets/{index.esm-DT4uyn2i.js → index.esm-BE1uqCX5.js} +1 -1
  172. zenml/zen_server/dashboard/assets/kubernetes-BjbR6D-1.js +1 -0
  173. zenml/zen_server/dashboard/assets/{layout-D6oiSbfd.js → layout-Dru15_XR.js} +1 -1
  174. zenml/zen_server/dashboard/assets/link-external-BT2L8hAQ.js +1 -0
  175. zenml/zen_server/dashboard/assets/{login-mutation-13A_JSVA.js → login-mutation-DwxUz8VA.js} +1 -1
  176. zenml/zen_server/dashboard/assets/{logs-CgeE2vZP.js → logs-GiDJXbLS.js} +1 -1
  177. zenml/zen_server/dashboard/assets/metaflow-weOkWNyT.svg +10 -0
  178. zenml/zen_server/dashboard/assets/{not-found-B0Mmb90p.js → not-found-D5i9DunU.js} +1 -1
  179. zenml/zen_server/dashboard/assets/{package-DdkziX79.js → package-DYKZ5jKW.js} +1 -1
  180. zenml/zen_server/dashboard/assets/page-BFuJICXM.js +9 -0
  181. zenml/zen_server/dashboard/assets/{page-BGwA9B1M.js → page-BiF8hLbO.js} +1 -1
  182. zenml/zen_server/dashboard/assets/{page-DugsjcQ_.js → page-BitfWsiW.js} +1 -1
  183. zenml/zen_server/dashboard/assets/page-CDOQLrPC.js +1 -0
  184. zenml/zen_server/dashboard/assets/page-CEJWu1YO.js +1 -0
  185. zenml/zen_server/dashboard/assets/page-CIbehp7V.js +1 -0
  186. zenml/zen_server/dashboard/assets/page-CLiRGfWo.js +1 -0
  187. zenml/zen_server/dashboard/assets/page-CV44mQn9.js +1 -0
  188. zenml/zen_server/dashboard/assets/page-CrSdkteO.js +2 -0
  189. zenml/zen_server/dashboard/assets/page-D5F3DJjm.js +1 -0
  190. zenml/zen_server/dashboard/assets/page-DE03uZZR.js +1 -0
  191. zenml/zen_server/dashboard/assets/page-DFCK65G9.js +1 -0
  192. zenml/zen_server/dashboard/assets/{page-RnG-qhv9.js → page-DGMa3ZQL.js} +1 -1
  193. zenml/zen_server/dashboard/assets/page-DI-qTWrm.js +1 -0
  194. zenml/zen_server/dashboard/assets/page-DQGCHKrQ.js +1 -0
  195. zenml/zen_server/dashboard/assets/{page-DSTQnBk-.js → page-DQdwZZ9x.js} +1 -1
  196. zenml/zen_server/dashboard/assets/page-DgM-N9RL.js +1 -0
  197. zenml/zen_server/dashboard/assets/page-Dt8VgzbE.js +1 -0
  198. zenml/zen_server/dashboard/assets/{page-DLpOnf7u.js → page-J0s8Sq3N.js} +1 -1
  199. zenml/zen_server/dashboard/assets/page-WCQ659by.js +1 -0
  200. zenml/zen_server/dashboard/assets/page-bimkItOg.js +1 -0
  201. zenml/zen_server/dashboard/assets/{page-hQaiQXfg.js → page-iwoJnwPv.js} +1 -1
  202. zenml/zen_server/dashboard/assets/{page-YiF_fNbe.js → page-oS4hqS8M.js} +1 -1
  203. zenml/zen_server/dashboard/assets/page-oSqx9dkH.js +1 -0
  204. zenml/zen_server/dashboard/assets/page-p3GqEAUW.js +1 -0
  205. zenml/zen_server/dashboard/assets/page-qvcUVPE-.js +1 -0
  206. zenml/zen_server/dashboard/assets/page-xQG6GmFJ.js +1 -0
  207. zenml/zen_server/dashboard/assets/{persist-3-5nOJ6m.js → persist-mEZN_fgH.js} +1 -1
  208. zenml/zen_server/dashboard/assets/persist-xsYgVtR1.js +1 -0
  209. zenml/zen_server/dashboard/assets/{plus-FB9-lEq_.js → plus-Bc8eLSDM.js} +1 -1
  210. zenml/zen_server/dashboard/assets/{refresh-COb6KYDi.js → refresh-hfgWPeto.js} +1 -1
  211. zenml/zen_server/dashboard/assets/rocket-SESCGQXm.js +1 -0
  212. zenml/zen_server/dashboard/assets/sharedSchema-BfZcy7aP.js +14 -0
  213. zenml/zen_server/dashboard/assets/stack-detail-query-CU4egfhp.js +1 -0
  214. zenml/zen_server/dashboard/assets/templates-1S_8WeSK.webp +0 -0
  215. zenml/zen_server/dashboard/assets/{trash-Cd5CSFqA.js → trash-DUWZWzse.js} +1 -1
  216. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-B8GB_ubU.js → update-server-settings-mutation-DNqmQXDM.js} +1 -1
  217. zenml/zen_server/dashboard/assets/{url-hcMJkz8p.js → url-DwbuKk1b.js} +1 -1
  218. zenml/zen_server/dashboard/assets/{zod-CnykDKJj.js → zod-uFd1wBcd.js} +1 -1
  219. zenml/zen_server/dashboard/index.html +7 -7
  220. zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
  221. zenml/zen_server/dashboard_legacy/index.html +1 -1
  222. zenml/zen_server/dashboard_legacy/{precache-manifest.9c473c96a43298343a7ce1256183123b.js → precache-manifest.290b95d5b43efa3368b3dc63d20c4782.js} +4 -4
  223. zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
  224. zenml/zen_server/dashboard_legacy/static/js/{main.463c90b9.chunk.js → main.840d1bf0.chunk.js} +2 -2
  225. zenml/zen_server/dashboard_legacy/static/js/{main.463c90b9.chunk.js.map → main.840d1bf0.chunk.js.map} +1 -1
  226. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  227. zenml/zen_server/deploy/helm/README.md +2 -2
  228. zenml/zen_server/routers/service_connectors_endpoints.py +2 -4
  229. zenml/zen_server/routers/workspaces_endpoints.py +20 -66
  230. zenml/zen_server/secure_headers.py +120 -0
  231. zenml/zen_server/template_execution/runner_entrypoint_configuration.py +0 -2
  232. zenml/zen_server/template_execution/utils.py +1 -0
  233. zenml/zen_server/utils.py +0 -100
  234. zenml/zen_server/zen_server_api.py +4 -2
  235. zenml/zen_stores/migrations/versions/0.65.0_release.py +23 -0
  236. zenml/zen_stores/migrations/versions/0.66.0_release.py +23 -0
  237. zenml/zen_stores/migrations/versions/bf2120261b5a_add_configured_model_version_id.py +74 -0
  238. zenml/zen_stores/rest_zen_store.py +4 -21
  239. zenml/zen_stores/schemas/constants.py +16 -0
  240. zenml/zen_stores/schemas/model_schemas.py +9 -3
  241. zenml/zen_stores/schemas/pipeline_run_schemas.py +22 -8
  242. zenml/zen_stores/schemas/step_run_schemas.py +23 -12
  243. zenml/zen_stores/sql_zen_store.py +312 -300
  244. zenml/zen_stores/zen_store_interface.py +0 -16
  245. {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/METADATA +10 -12
  246. {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/RECORD +249 -217
  247. zenml/models/v2/misc/full_stack.py +0 -129
  248. zenml/new/pipelines/model_utils.py +0 -72
  249. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-ErO9aOgK.js +0 -1
  250. zenml/zen_server/dashboard/assets/AwarenessChannel-CLXo5rKM.js +0 -1
  251. zenml/zen_server/dashboard/assets/CollapsibleCard-BaUPiVg0.js +0 -1
  252. zenml/zen_server/dashboard/assets/Commands-JrcZK-3j.js +0 -1
  253. zenml/zen_server/dashboard/assets/CopyButton-Dbo52T1K.js +0 -2
  254. zenml/zen_server/dashboard/assets/EditSecretDialog-Bd7mFLS4.js +0 -1
  255. zenml/zen_server/dashboard/assets/ExecutionStatus-jH4OrWBq.js +0 -1
  256. zenml/zen_server/dashboard/assets/Infobox-BQ0aty32.js +0 -1
  257. zenml/zen_server/dashboard/assets/ProviderRadio-BBqkIuTd.js +0 -1
  258. zenml/zen_server/dashboard/assets/RadioItem-xLhXoiFV.js +0 -1
  259. zenml/zen_server/dashboard/assets/SearchField-C9R0mdaX.js +0 -1
  260. zenml/zen_server/dashboard/assets/SetPassword-52sNxNiO.js +0 -1
  261. zenml/zen_server/dashboard/assets/SuccessStep-DlkItqYG.js +0 -1
  262. zenml/zen_server/dashboard/assets/aws-0_3UsPif.js +0 -1
  263. zenml/zen_server/dashboard/assets/database-cXYNX9tt.js +0 -1
  264. zenml/zen_server/dashboard/assets/file-text-B9JibxTs.js +0 -1
  265. zenml/zen_server/dashboard/assets/index-DhIZtpxB.js +0 -55
  266. zenml/zen_server/dashboard/assets/page-7-v2OBm-.js +0 -1
  267. zenml/zen_server/dashboard/assets/page-B3ozwdD1.js +0 -1
  268. zenml/zen_server/dashboard/assets/page-BkjAUyTA.js +0 -1
  269. zenml/zen_server/dashboard/assets/page-BnacgBiy.js +0 -1
  270. zenml/zen_server/dashboard/assets/page-BxF_KMQ3.js +0 -2
  271. zenml/zen_server/dashboard/assets/page-C4POHC0K.js +0 -1
  272. zenml/zen_server/dashboard/assets/page-C9kudd44.js +0 -9
  273. zenml/zen_server/dashboard/assets/page-CA1j3GpJ.js +0 -1
  274. zenml/zen_server/dashboard/assets/page-CCY6yfmu.js +0 -1
  275. zenml/zen_server/dashboard/assets/page-CgTe7Bme.js +0 -1
  276. zenml/zen_server/dashboard/assets/page-Cgn-6v2Y.js +0 -1
  277. zenml/zen_server/dashboard/assets/page-CxQmQqDw.js +0 -1
  278. zenml/zen_server/dashboard/assets/page-D2Goey3H.js +0 -1
  279. zenml/zen_server/dashboard/assets/page-DTysUGOy.js +0 -1
  280. zenml/zen_server/dashboard/assets/page-D_EXUFJb.js +0 -1
  281. zenml/zen_server/dashboard/assets/page-Db15QzsM.js +0 -1
  282. zenml/zen_server/dashboard/assets/page-OFKSPyN7.js +0 -1
  283. zenml/zen_server/dashboard/assets/page-T2BtjwPl.js +0 -1
  284. zenml/zen_server/dashboard/assets/page-TXe1Eo3Z.js +0 -1
  285. zenml/zen_server/dashboard/assets/play-circle-XSkLR12B.js +0 -1
  286. zenml/zen_server/dashboard/assets/sharedSchema-BoYx_B_L.js +0 -14
  287. zenml/zen_server/dashboard/assets/stack-detail-query-B-US_-wa.js +0 -1
  288. zenml/zen_server/dashboard/assets/terminal-grtjrIEJ.js +0 -1
  289. {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/LICENSE +0 -0
  290. {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/WHEEL +0 -0
  291. {zenml_nightly-0.64.0.dev20240811.dist-info → zenml_nightly-0.66.0.dev20240910.dist-info}/entry_points.txt +0 -0
@@ -1 +0,0 @@
1
- import{r,j as e}from"./@radix-BXWm7HOa.js";import{u as f,a as y,S as D,E as v}from"./EditSecretDialog-Bd7mFLS4.js";import{a9 as S,as as b,a0 as w,a1 as N,h as C,a2 as E,a3 as k,a4 as O,I as g,a7 as V,a8 as L,af as T,ag as K,ah as M,aj as H,D as R,B as A}from"./index-DhIZtpxB.js";import{S as F}from"./dots-horizontal-sKQlWEni.js";import{A as I}from"./AlertDialogDropdownItem-ErO9aOgK.js";import{S as q}from"./trash-Cd5CSFqA.js";import{c as z}from"./@tanstack-FmcYZMuX.js";import{g as B}from"./@react-router-l3lMcXA2.js";import"./plus-FB9-lEq_.js";import"./index.esm-DT4uyn2i.js";import"./zod-CnykDKJj.js";import"./@reactflow-CeVxyqYT.js";const P=t=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99995 9C7.99995 5.13401 11.134 2 14.9999 2C18.8659 2 21.9999 5.13401 21.9999 9C21.9999 12.866 18.8659 16 14.9999 16C14.6816 16 14.3677 15.9787 14.0597 15.9373C13.8347 15.907 13.6939 15.8883 13.5912 15.8784C13.5729 15.8766 13.5579 15.8753 13.5458 15.8745C13.5428 15.8771 13.5395 15.8801 13.5359 15.8833C13.4825 15.9321 13.4121 16.0021 13.2862 16.128L11.7071 17.7071C11.5195 17.8946 11.2652 18 10.9999 18H9.99995V19C9.99995 19.5523 9.55223 20 8.99995 20H7.99995V21C7.99995 21.5523 7.55223 22 6.99995 22L4.56803 22C4.31565 22 4.06987 22.0001 3.86172 21.9831C3.63312 21.9644 3.36339 21.9203 3.09197 21.782C2.71564 21.5903 2.40968 21.2843 2.21793 20.908C2.07964 20.6366 2.03557 20.3668 2.01689 20.1382C1.99988 19.9301 1.99991 19.6843 1.99994 19.4319L1.99995 17.6627C1.99995 17.6462 1.9999 17.6291 1.99985 17.6117C1.99935 17.4218 1.99871 17.1827 2.05521 16.9473C2.1042 16.7432 2.18501 16.5482 2.29467 16.3692C2.42112 16.1629 2.59067 15.9942 2.72532 15.8603C2.73768 15.848 2.74975 15.836 2.76147 15.8243L7.87197 10.7138C7.99789 10.5878 8.06789 10.5175 8.1166 10.464C8.11984 10.4604 8.1228 10.4572 8.12549 10.4541C8.12461 10.442 8.12336 10.427 8.12159 10.4087C8.11168 10.3061 8.09292 10.1653 8.06267 9.94028C8.02127 9.63227 7.99995 9.31836 7.99995 9ZM7.99995 18V17C7.99995 16.4477 8.44766 16 8.99995 16H10.5857L11.872 14.7138C11.889 14.6967 11.9065 14.6791 11.9244 14.6611C12.1036 14.4807 12.3216 14.2613 12.5701 14.1224C12.8036 13.9919 12.9981 13.9262 13.2628 13.8884C13.4562 13.8607 13.6445 13.8742 13.7834 13.8876C13.928 13.9016 14.1065 13.9256 14.3084 13.9527L14.3262 13.9551C14.5461 13.9847 14.771 14 14.9999 14C17.7614 14 19.9999 11.7614 19.9999 9C19.9999 6.23858 17.7614 4 14.9999 4C12.2385 4 9.99995 6.23858 9.99995 9C9.99995 9.22899 10.0153 9.45388 10.0448 9.67379L10.0472 9.6916C10.0744 9.89344 10.0984 10.072 10.1123 10.2165C10.1258 10.3555 10.1393 10.5438 10.1116 10.7372C10.0737 11.0019 10.008 11.1964 9.87753 11.4298C9.73863 11.6783 9.5192 11.8963 9.33879 12.0756C9.32083 12.0934 9.30326 12.1109 9.28619 12.128L4.17568 17.2385C4.08305 17.3311 4.03699 17.3775 4.00494 17.4126C4.0041 17.4135 4.0033 17.4144 4.00253 17.4153C4.00247 17.4164 4.00241 17.4176 4.00236 17.4189C4.00019 17.4664 3.99995 17.5317 3.99995 17.6627V19.4C3.99995 19.6965 4.00072 19.8588 4.01025 19.9754C4.01063 19.98 4.01101 19.9844 4.01139 19.9885C4.01554 19.9889 4.01994 19.9893 4.02458 19.9897C4.14117 19.9992 4.30342 20 4.59995 20H5.99995V19C5.99995 18.4477 6.44766 18 6.99995 18H7.99995ZM13.9999 7C13.9999 6.44772 14.4477 6 14.9999 6C15.7662 6 16.5357 6.29309 17.1213 6.87868C17.7068 7.46425 17.9999 8.23372 17.9999 8.99991C18 9.5522 17.5523 9.99993 17 9.99994C16.4477 9.99996 16 9.55226 15.9999 8.99997C15.9999 8.74251 15.9025 8.48834 15.7071 8.29289C15.5116 8.09743 15.2574 8 14.9999 8C14.4477 8 13.9999 7.55229 13.9999 7Z"}));function Q({secretId:t,isOpen:n,onClose:s,keyName:l}){const{data:o,isLoading:a,isError:d}=f(t),u=z(),{mutate:i}=y({onError(m){S(m)&&b({status:"error",emphasis:"subtle",description:m.message,rounded:!0})},onSuccess(){u.invalidateQueries({queryKey:["secrets"]}),u.invalidateQueries({queryKey:["secretDetail",t]}),s()}}),[x,p]=r.useState(""),c=()=>{if(o){const m={...o.body.values};delete m[l];const j={name:o.secretName,scope:"workspace",values:m};i({id:t,body:j})}};function h(m){p(m.target.value)}return a?e.jsx("div",{children:"Loading..."}):d?e.jsx("div",{children:"Error loading secret details"}):e.jsxs(w,{open:n,onOpenChange:s,children:[e.jsx(N,{asChild:!0,children:e.jsx(C,{className:"shrink-0",intent:"primary",children:"Delete Secret"})}),e.jsxs(E,{children:[e.jsx(k,{children:e.jsx(O,{children:"Delete Key"})}),e.jsxs("div",{className:"gap-5 p-5",children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Are you sure you want to delete this eky?"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"This action cannot be undone."}),e.jsx("h3",{className:"font-inter text-sm mb-1 mt-4 text-left font-medium leading-5",children:"Please type DELETE to confirm"}),e.jsx(g,{name:"key",onChange:h,className:"w-full",required:!0,value:x})]}),e.jsxs(V,{className:"gap-[10px]",children:[e.jsx(L,{asChild:!0,children:e.jsx(C,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(C,{intent:"danger",type:"button",onClick:c,disabled:x!=="DELETE",children:"Delete"})]})]})]})}function Z({secretId:t,keyName:n}){const[s,l]=r.useState(!1),[o,a]=r.useState(!1),[d]=r.useState(!1),u=r.useRef(null),i=r.useRef(null);function x(){i.current=u.current}function p(){a(!0)}return e.jsxs(T,{onOpenChange:l,open:s,children:[e.jsx(K,{ref:u,children:e.jsx(F,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(M,{hidden:d,onCloseAutoFocus:c=>{i.current&&(i.current.focus(),i.current=null,c.preventDefault())},align:"end",sideOffset:7,children:e.jsx(I,{onSelect:x,onOpenChange:p,triggerChildren:"Delete ",icon:e.jsx(q,{}),children:e.jsx(Q,{isOpen:o,onClose:()=>{l(!1),a(!1)},secretId:t,keyName:n})})})]})}const G=({value:t})=>{const[n,s]=r.useState(!1),l=typeof t=="string"?t:"",o="•".repeat(l.length);return e.jsxs("div",{className:"flex items-center gap-2 space-x-2",children:[e.jsx(D,{onClick:()=>s(!n),className:"h-4 w-4 flex-shrink-0 cursor-pointer"}),e.jsx("span",{children:n?l:o})]})};function U(t){return[{id:"key",header:"Key",accessorKey:"key",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(P,{className:"h-4 w-4 flex-shrink-0 cursor-pointer"}),e.jsx("div",{className:"flex flex-col",children:e.jsx("div",{className:"flex flex-row space-x-1",children:e.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:s.getValue("key")})})})]})},{id:"value",header:"Value",accessorKey:"value",cell:({row:s})=>e.jsx(G,{value:s.getValue("value")})},{id:"actions",header:"",cell:({row:s})=>e.jsx(Z,{secretId:t,keyName:s.getValue("key")})}]}function _({secretId:t}){var p;const[n,s]=r.useState(!1),[l,o]=r.useState(""),{data:a}=f(t),{data:d}=H(),u=(p=d==null?void 0:d.body)==null?void 0:p.is_admin,i=r.useMemo(()=>a?Object.entries(a.body.values).map(([c,h])=>({id:a.id,name:a.name,key:c,value:h,scope:a.body.scope,created:a.body.created,updated:a.body.updated,user:a.body.user})):[],[a]),x=r.useMemo(()=>l?i.filter(c=>c.key.toLowerCase().includes(l.toLowerCase())):i,[l,i]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2",children:[e.jsx(g,{type:"text",placeholder:"Search by key...",value:l,onChange:c=>o(c.target.value),inputSize:"md"}),e.jsx(C,{size:"sm",intent:"primary",onClick:()=>s(!0),children:"Edit Keys"})]}),u&&e.jsx(v,{secretId:t,isOpen:n,onClose:()=>s(!1),isSecretNameEditable:!1,dialogTitle:"Edit keys"}),e.jsx("div",{className:"w-full",children:a&&e.jsx(R,{columns:U(t),data:x})})]})}function ie(){const{secretId:t}=B()||"",{data:n}=f(t||"");return e.jsx(e.Fragment,{children:e.jsxs(A,{className:"space-y-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:n==null?void 0:n.name}),e.jsx("span",{className:"text-sm text-gray-500",children:t==null?void 0:t.slice(0,8)}),e.jsx(_,{secretId:t||""})]})})}export{ie as default};
@@ -1 +0,0 @@
1
- import{j as a,r as f}from"./@radix-BXWm7HOa.js";import{P as j,m as g,z as o,k as y,l as b,j as P,n as N,F as v,r as i,T as u,h as S,D as k,S as p,o as R}from"./index-DhIZtpxB.js";import{c as T,L as c,g as h}from"./@react-router-l3lMcXA2.js";import{R as E}from"./refresh-COb6KYDi.js";import{a as C}from"./@tanstack-FmcYZMuX.js";import{o as F}from"./url-hcMJkz8p.js";import{S as _,P as w}from"./SearchField-C9R0mdaX.js";import{S as D}from"./terminal-grtjrIEJ.js";import{C as x}from"./CopyButton-Dbo52T1K.js";import{D as A}from"./DisplayDate-DizbSeT-.js";import{g as I,E as B}from"./ExecutionStatus-jH4OrWBq.js";import{I as q}from"./InlineAvatar-DpTLgM3Q.js";import"./@reactflow-CeVxyqYT.js";import"./dots-horizontal-sKQlWEni.js";import"./chevron-right-double-Dk8e2L99.js";import"./index-Bd1xgUQG.js";import"./copy-f3XGPPxt.js";import"./check-circle-1_I207rW.js";function L({namespace:e}){return a.jsx(j,{children:a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(g,{className:"h-5 w-5 fill-neutral-400"}),a.jsx("h1",{className:"text-display-xs font-semibold",children:decodeURIComponent(e)})]})})}const l=1,U=o.object({page:o.coerce.number().min(l).optional().default(l).catch(l),name:o.string().optional(),operator:o.enum(["and","or"]).optional()});function z(){const[e]=T(),{page:s,name:t,operator:r}=U.parse({page:e.get("page")||void 0,name:e.get("name")||void 0});return{page:s,name:t,logical_operator:r}}function G({params:e}){return["runs",e]}async function H({params:e}){const s=y(b.runs.all+"?"+F(e)),t=await P(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&N(),!t.ok)throw new v({message:"Error while fetching pipeline runs",status:t.status,statusText:t.statusText});return t.json()}function K(e,s){return C({queryKey:G(e),queryFn:()=>H(e),...s})}function Q(){return[{id:"run",header:"Run",accessorFn:e=>{var s;return{name:e.name,id:e.id,status:(s=e.body)==null?void 0:s.status}},cell:({getValue:e})=>{const{name:s,status:t,id:r}=e();return a.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[a.jsx(D,{className:`h-5 w-5 shrink-0 ${I(t)}`}),a.jsxs("div",{children:[a.jsxs(c,{to:i.runs.detail(r),className:"flex items-center gap-1",children:[a.jsx("h2",{className:"text-text-md font-semibold",children:s}),a.jsx(B,{status:t}),a.jsx(x,{copyText:s})]}),a.jsxs(c,{to:i.runs.detail(r),className:"flex items-center gap-1",children:[a.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:r.split("-")[0]}),a.jsx(x,{copyText:r})]})]})]})}},{id:"stack",header:"Stack",accessorFn:e=>{var s,t,r,n;return{name:(t=(s=e.body)==null?void 0:s.stack)==null?void 0:t.name,id:(n=(r=e.body)==null?void 0:r.stack)==null?void 0:n.id}},cell:({getValue:e})=>{const{name:s,id:t}=e();return!s||!t?null:a.jsx(c,{to:i.stacks.overview,children:a.jsx(u,{rounded:!1,className:"inline-block",color:"turquoise",emphasis:"subtle",children:s})})}},{id:"repository",header:"Repository",accessorFn:e=>{var s,t,r,n,m,d;return{name:(r=(t=(s=e.body)==null?void 0:s.code_reference)==null?void 0:t.body)==null?void 0:r.code_repository.name,id:(d=(m=(n=e.body)==null?void 0:n.code_reference)==null?void 0:m.body)==null?void 0:d.code_repository.id}},cell:({getValue:e})=>{const{name:s,id:t}=e();return!s||!t?null:a.jsx("div",{children:a.jsx(u,{rounded:!1,className:"inline-block",color:"grey",emphasis:"subtle",children:s})})}},{id:"created",header:"Created at",accessorFn:e=>{var s;return(s=e.body)==null?void 0:s.created},cell:({getValue:e})=>a.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:a.jsx(A,{dateString:e()})})},{id:"author",header:"Author",accessorFn:e=>{var s;return{author:(s=e.body)==null?void 0:s.user}},cell:({getValue:e})=>{const{author:s}=e();return a.jsx(q,{username:s.name})}}]}function O(){const{namespace:e}=h(),s=z(),t=Q(),{data:r,refetch:n}=K({params:{pipeline_name:decodeURIComponent(e),...s,sort_by:"desc:updated"}},{throwOnError:!0});return a.jsxs("div",{className:"flex flex-col gap-5 p-5",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[a.jsx(_,{searchParams:s}),a.jsxs(S,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[a.jsx(E,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})]}),a.jsxs("div",{className:"flex flex-col items-center gap-5",children:[a.jsx("div",{className:"w-full",children:r?a.jsx(k,{columns:t,data:r.items}):a.jsx(p,{className:"h-[500px] w-full"})}),r?r.total_pages>1&&a.jsx(w,{searchParams:s,paginate:r}):a.jsx(p,{className:"h-[36px] w-[300px]"})]})]})}function me(){const{namespace:e}=h(),{setCurrentBreadcrumbData:s}=R();return f.useEffect(()=>{e&&s({segment:"pipeline_detail",data:{name:e}})},[e]),a.jsxs("div",{children:[a.jsx(L,{namespace:e}),a.jsx(O,{})]})}export{me as default};
@@ -1 +0,0 @@
1
- import{r as x,j as e}from"./@radix-BXWm7HOa.js";import{C as N,S as ne,u as D,a as P,P as L,b as de,W as ue,L as xe}from"./ProviderRadio-BBqkIuTd.js";import{p as U,C as p,s as me,a as he,c as X,b as pe}from"./persist-3-5nOJ6m.js";import{aC as fe,aD as ge,aE as je,aF as ee,S as j,y as z,A as R,b as I,h as te,B,am as Ce,an as ve,ao as ye,ap as be,aq as we,aG as Ne,r as J}from"./index-DhIZtpxB.js";import{c as ke,b as Se}from"./@react-router-l3lMcXA2.js";import{I as C}from"./Infobox-BQ0aty32.js";import{t as re}from"./zod-CnykDKJj.js";import{b as se,C as ze,u as ae,F as Me}from"./index.esm-DT4uyn2i.js";import{T as M}from"./Tick-uxv80Q6a.js";import{s as v}from"./sharedSchema-BoYx_B_L.js";import{a as y}from"./@tanstack-FmcYZMuX.js";import{S as ie}from"./logs-CgeE2vZP.js";import{C as k}from"./CodeSnippet-D0VLxT2A.js";import{N as E}from"./NumberBox-BmKE0qnO.js";import{S as Ae}from"./package-DdkziX79.js";import"./aws-0_3UsPif.js";import"./@reactflow-CeVxyqYT.js";import"./url-hcMJkz8p.js";import"./stack-detail-query-B-US_-wa.js";import"./database-cXYNX9tt.js";import"./layout-D6oiSbfd.js";import"./copy-f3XGPPxt.js";const le=x.createContext(null);function Pe({children:r}){const{success:s,data:a}=U(),[t,i]=x.useState(!1),[c,l]=x.useState(!!s),[o,d]=x.useState(s?{location:a.location,provider:a.provider,stackName:a.stackName}:{}),[n,u]=x.useState(s?a.timestamp:""),h=x.useRef(null);return e.jsx(le.Provider,{value:{isNextButtonDisabled:t,setIsNextButtonDisabled:i,data:o,setData:d,isLoading:c,setIsLoading:l,formRef:h,timestamp:n,setTimestamp:u},children:r})}function m(){const r=x.useContext(le);if(r===null)throw new Error("useNewInfraFormContext must be used within an AuthProvider");return r}const Le=r=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 4.5C12.5523 4.5 13 4.94772 13 5.5V6H13.1667C15.0076 6 16.5 7.49238 16.5 9.33333C16.5 9.88562 16.0523 10.3333 15.5 10.3333C14.9477 10.3333 14.5 9.88562 14.5 9.33333C14.5 8.59695 13.903 8 13.1667 8H11C10.1716 8 9.5 8.67157 9.5 9.5C9.5 10.3284 10.1716 11 11 11H13C14.933 11 16.5 12.567 16.5 14.5C16.5 16.433 14.933 18 13 18V18.5C13 19.0523 12.5523 19.5 12 19.5C11.4477 19.5 11 19.0523 11 18.5V18H10.8333C8.99238 18 7.5 16.5076 7.5 14.6667C7.5 14.1144 7.94772 13.6667 8.5 13.6667C9.05228 13.6667 9.5 14.1144 9.5 14.6667C9.5 15.403 10.097 16 10.8333 16H13C13.8284 16 14.5 15.3284 14.5 14.5C14.5 13.6716 13.8284 13 13 13H11C9.067 13 7.5 11.433 7.5 9.5C7.5 7.567 9.067 6 11 6V5.5C11 4.94772 11.4477 4.5 12 4.5Z"})),De=r=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.16145 4L18.8385 4C19.3657 3.99998 19.8205 3.99997 20.195 4.03057C20.5904 4.06287 20.9836 4.13419 21.362 4.32698C21.9265 4.6146 22.3854 5.07354 22.673 5.63803C22.8658 6.01641 22.9371 6.40963 22.9694 6.80498C23 7.17954 23 7.6343 23 8.16144V15.8386C23 16.3657 23 16.8205 22.9694 17.195C22.9371 17.5904 22.8658 17.9836 22.673 18.362C22.3854 18.9265 21.9265 19.3854 21.362 19.673C20.9836 19.8658 20.5904 19.9371 20.195 19.9694C19.8205 20 19.3657 20 18.8386 20L5.16148 20C4.63432 20 4.17955 20 3.80497 19.9694C3.40963 19.9371 3.01641 19.8658 2.63803 19.673C2.07354 19.3854 1.6146 18.9265 1.32698 18.362C1.13419 17.9836 1.06287 17.5904 1.03057 17.195C0.999967 16.8205 0.999983 16.3657 1 15.8385L1 10.0006C1 10.0004 1 10.0008 1 10.0006C1 10.0004 1 9.99958 1 9.99937L1 8.16146C0.999983 7.63431 0.999968 7.17955 1.03057 6.80497C1.06287 6.40963 1.13419 6.01641 1.32698 5.63803C1.6146 5.07354 2.07354 4.6146 2.63803 4.32698C3.01641 4.13419 3.40963 4.06287 3.80497 4.03057C4.17955 3.99997 4.63431 3.99998 5.16145 4ZM3 11V15.8C3 16.3766 3.00078 16.7488 3.02393 17.0322C3.04612 17.3038 3.0838 17.4045 3.109 17.454C3.20487 17.6422 3.35785 17.7951 3.54601 17.891C3.59546 17.9162 3.69617 17.9539 3.96784 17.9761C4.25117 17.9992 4.62345 18 5.2 18L18.8 18C19.3766 18 19.7488 17.9992 20.0322 17.9761C20.3038 17.9539 20.4045 17.9162 20.454 17.891C20.6422 17.7951 20.7951 17.6422 20.891 17.454C20.9162 17.4045 20.9539 17.3038 20.9761 17.0322C20.9992 16.7488 21 16.3766 21 15.8V11H3ZM21 9H3V8.2C3 7.62345 3.00078 7.25117 3.02393 6.96784C3.04612 6.69617 3.0838 6.59546 3.109 6.54601C3.20487 6.35785 3.35785 6.20487 3.54601 6.109C3.59546 6.0838 3.69617 6.04612 3.96784 6.02393C4.25118 6.00078 4.62345 6 5.2 6L18.8 6C19.3766 6 19.7488 6.00078 20.0322 6.02393C20.3038 6.04613 20.4045 6.0838 20.454 6.109C20.6422 6.20487 20.7951 6.35785 20.891 6.54601C20.9162 6.59546 20.9539 6.69617 20.9761 6.96784C20.9992 7.25118 21 7.62345 21 8.2V9ZM5 14C5 13.4477 5.44772 13 6 13H11C11.5523 13 12 13.4477 12 14C12 14.5523 11.5523 15 11 15H6C5.44772 15 5 14.5523 5 14Z"}));function _(){const{data:r}=m();return e.jsxs(fe,{children:[e.jsx(ge,{className:"block",children:e.jsxs(C,{intent:"warning",children:["This will give ZenML permissions and create secret keys for secure ZenML -",">"," ",e.jsx("span",{className:"capitalize",children:r.provider||"Provider"})," communication. You can revoke these permissions at any time."]})}),e.jsx(je,{sideOffset:0,className:"w-auto p-5",children:e.jsx(ee,{viewportClassName:"max-h-[300px]",children:e.jsx(Re,{})})})]})}function Re(){const{data:r}=m(),{isPending:s,isError:a,error:t,data:i}=y(v.stackDeploymentInfo({provider:r.provider}));if(s)return e.jsx(j,{className:"h-[100px] w-full"});if(a)return e.jsx("p",{children:t.message});const c=Object.entries(i.permissions);return e.jsx("ul",{className:"space-y-2 pr-3 text-text-sm",children:c.map(([l,o])=>e.jsxs("li",{className:"flex flex-col gap-1",children:[e.jsx("p",{children:l}),e.jsx("ul",{className:"list-inside list-[square] pl-4 text-neutral-400 marker:text-primary-200",children:o.map((d,n)=>e.jsx("li",{children:d},n))})]},l))})}function Ie({stackName:r,isLoading:s,isSuccess:a,components:t,displayPermissions:i=!1}){var c,l,o,d,n,u,h,g;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[s&&e.jsx(z,{className:"h-5 w-5 shrink-0 border-[3px]"}),a&&e.jsx(M,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(R,{type:"square",size:"lg",children:e.jsx(I,{size:"lg",children:r[0]})}),r]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(f,{title:((c=t==null?void 0:t.connector)==null?void 0:c.name)||"IAM Role",isLoading:s,isSuccess:a,subtitle:((l=t==null?void 0:t.connector)==null?void 0:l.id)||"Manage access to AWS resources",badge:e.jsx(p,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/iam.webp",alt:"IAM logo"}}),i&&e.jsx(_,{})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((o=t==null?void 0:t.artifactStore)==null?void 0:o.name)||"S3 Bucket",subtitle:((d=t==null?void 0:t.artifactStore)==null?void 0:d.id)||"Artifact storage for ML pipelines",badge:e.jsx(p,{type:"artifact_store",children:"Artifact Store"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/aws.png",alt:"S3 logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((n=t==null?void 0:t.registry)==null?void 0:n.name)||"ECR Repository",subtitle:((u=t==null?void 0:t.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(p,{type:"container_registry",children:"Container Registry"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/aws.png",alt:"ECR logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((h=t==null?void 0:t.orchestrator)==null?void 0:h.name)||"SageMaker",isLoading:s,isSuccess:a,subtitle:((g=t==null?void 0:t.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(p,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/sagemaker.png",alt:"Sagemaker logo"}})})]})}function Be({stackName:r,isLoading:s,isSuccess:a,components:t,displayPermissions:i=!1}){var c,l,o,d,n,u,h,g,b,w;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[s&&e.jsx(z,{className:"h-5 w-5 shrink-0 border-[3px]"}),a&&e.jsx(M,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(R,{type:"square",size:"lg",children:e.jsx(I,{size:"lg",children:r[0]})}),r]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(f,{title:((c=t==null?void 0:t.connector)==null?void 0:c.name)||"Service Account",isLoading:s,isSuccess:a,subtitle:((l=t==null?void 0:t.connector)==null?void 0:l.id)||"Manage access to GCP resources",badge:e.jsx(p,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/gcp-iam.webp",alt:"Service Account logo"}}),i&&e.jsx(_,{})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((o=t==null?void 0:t.artifactStore)==null?void 0:o.name)||"GCS Bucket",subtitle:((d=t==null?void 0:t.artifactStore)==null?void 0:d.id)||"Artifact storage for ML pipelines",badge:e.jsx(p,{type:"artifact_store",children:"Artifact Store"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/gcp.png",alt:"GCS logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((n=t==null?void 0:t.registry)==null?void 0:n.name)||"Google Artifact Registry",subtitle:((u=t==null?void 0:t.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(p,{type:"container_registry",children:"Container Registry"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/gcp.png",alt:"Google Artifact Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((h=t==null?void 0:t.orchestrator)==null?void 0:h.name)||"Vertex AI",isLoading:s,isSuccess:a,subtitle:((g=t==null?void 0:t.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(p,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/vertexai.png",alt:"VertexAI logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((b=t==null?void 0:t.imageBuilder)==null?void 0:b.name)||"Cloud Build",isLoading:s,isSuccess:a,subtitle:((w=t==null?void 0:t.imageBuilder)==null?void 0:w.id)||"Build, test, and deploy images",badge:e.jsx(p,{type:"image_builder",children:"Image Builder"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/image_builder/gcp.png",alt:"Cloud Build logo"}})})]})}function Ee(){return e.jsx(C,{className:"border-warning-300 bg-warning-50",intent:"warning",children:'The Cloud Shell session will warn you that the ZenML GitHub repository is untrusted. We recommend that you review the contents of the repository and then check the "Trust repo" checkbox to proceed with the deployment, otherwise the Cloud Shell session will not be authenticated to access your GCP projects.'})}function oe(){const{data:r}=m(),s=y({...v.stackDeploymentConfig({provider:"gcp",stack_name:r.stackName,location:r.location})});return s.isError?null:s.isPending?e.jsx(j,{className:"h-[200px] w-full"}):e.jsxs("section",{className:"space-y-5 border-t border-theme-border-moderate pt-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ie,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]}),e.jsx(k,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:s.data.configuration||""})]})}const _e=r=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2L10 2C10.5523 2 11 2.44772 11 3C11 3.55229 10.5523 4 10 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V14C20 13.4477 20.4477 13 21 13C21.5523 13 22 13.4477 22 14V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43598 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM14 3.00001C14 2.44773 14.4477 2.00001 15 2.00001H21C21.5523 2.00001 22 2.44773 22 3.00001L22 9.00001C22 9.55229 21.5523 10 21 10C20.4477 10 20 9.5523 20 9.00001L20 5.41422L12.7071 12.7071C12.3166 13.0976 11.6834 13.0976 11.2929 12.7071C10.9024 12.3166 10.9024 11.6834 11.2929 11.2929L18.5858 4.00001H15C14.4477 4.00001 14 3.5523 14 3.00001Z"}));function Ze(){const{data:r}=m();return e.jsxs("div",{className:"space-y-5",children:[e.jsx(C,{children:"This will provision and register a basic ZenML stack with all the necessary resources and credentials required to run pipelines."}),r.provider!=="azure"&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx(N,{provider:r.provider,className:"h-5 w-5"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploy the Stack"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack from your browser by clicking the button below:"})]}),r.provider==="gcp"&&e.jsx(Ee,{}),r.provider!=="azure"&&e.jsx(S,{setTimestampBool:!0}),r.provider==="gcp"&&e.jsx(oe,{}),r.provider==="azure"&&e.jsx(ce,{displayInfobox:!0})]})}function S({setTimestampBool:r,children:s}){const{data:a,setTimestamp:t,setIsLoading:i}=m(),c=y({...v.stackDeploymentConfig({provider:a.provider,location:a.location,stack_name:a.stackName})});if(c.isError)return null;if(c.isPending)return e.jsx(j,{className:"h-[48px] w-[100px]"});function l(){const o=new Date().toISOString().slice(0,-1);r&&t(o),me({location:a.location||"",provider:a.provider||"aws",stackName:a.stackName,timestamp:o}),i(!0)}return e.jsx(te,{asChild:!0,className:"w-fit gap-3 whitespace-nowrap",size:"lg",onClick:()=>l(),children:e.jsxs("a",{href:c.data.deployment_url,target:"_blank",rel:"noopener noreferrer",children:[s||e.jsxs("div",{children:["Deploy in ",e.jsx("span",{className:"uppercase",children:a.provider})]}),e.jsx(_e,{className:"h-5 w-5 shrink-0 fill-white"})]})})}function Te({stackName:r,isLoading:s,isSuccess:a,components:t,displayPermissions:i=!1}){var c,l,o,d,n,u,h,g;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[s&&e.jsx(z,{className:"h-5 w-5 shrink-0 border-[3px]"}),a&&e.jsx(M,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(R,{type:"square",size:"lg",children:e.jsx(I,{size:"lg",children:r[0]})}),r]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(f,{title:((c=t==null?void 0:t.connector)==null?void 0:c.name)||"Azure Service Principal",isLoading:s,isSuccess:a,subtitle:((l=t==null?void 0:t.connector)==null?void 0:l.id)||"Manage access to Azure resources",badge:e.jsx(p,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/azure-service-principal.webp",alt:"Service Principal logo"}}),i&&e.jsx(_,{})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((o=t==null?void 0:t.artifactStore)==null?void 0:o.name)||"Azure Blob Storage",subtitle:((d=t==null?void 0:t.artifactStore)==null?void 0:d.id)||"Artifact storage for ML pipelines",badge:e.jsx(p,{type:"artifact_store",children:"Artifact Store"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/azure.png",alt:"Blob Storage logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((n=t==null?void 0:t.registry)==null?void 0:n.name)||"Azure Container Registry",subtitle:((u=t==null?void 0:t.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(p,{type:"container_registry",children:"Container Registry"}),isLoading:s,isSuccess:a,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/azure.png",alt:"Azure Container Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(f,{title:((h=t==null?void 0:t.orchestrator)==null?void 0:h.name)||"Azure Skypilot Orchestrator",isLoading:s,isSuccess:a,subtitle:((g=t==null?void 0:t.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(p,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/azure-skypilot.png",alt:"Azure Skypilot logo"}})})]})}function ce({displayInfobox:r=!1}){return e.jsxs("section",{className:"space-y-5",children:[e.jsx(Fe,{}),e.jsx(Ve,{displayInfobox:r}),e.jsx(He,{}),e.jsx(We,{})]})}function Ve({displayInfobox:r=!1}){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(E,{children:"1"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell Console"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack using the Azure Cloud Shell console."})]}),e.jsx(S,{setTimestampBool:!0,children:e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell"})}),r&&e.jsx(C,{className:"border-warning-300 bg-warning-50",intent:"warning",children:"After the Terraform deployment is complete, you can close the Cloud Shell session and return to the dashboard to view details about the associated ZenML stack automatically registered with ZenML."})]})}function He(){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(E,{children:"2"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Create a file with the following configuration"})]}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Create a file named ",e.jsx("code",{className:"font-mono text-primary-400",children:"main.tf"})," in the Cloud Shell and copy and paste the Terraform configuration below into it."]})]}),e.jsx(Oe,{})]})}function We(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(E,{children:"3"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Run the following commands"})]})}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize the Terraform configuration."}),e.jsx(k,{code:"terraform init --upgrade"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run terraform apply to deploy the ZenML stack to Azure."}),e.jsx(k,{code:"terraform apply"})]})]})}function Oe(){const{data:r}=m(),s=y({...v.stackDeploymentConfig({provider:"azure",stack_name:r.stackName,location:r.location}),enabled:!!r.stackName});return s.isError?null:s.isPending?e.jsx(j,{className:"h-[200px] w-full"}):e.jsx(k,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:s.data.configuration||""})}function Fe(){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ie,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]})}function Z({componentProps:r,type:s}){switch(s){case"aws":return e.jsx(Ie,{...r});case"gcp":return e.jsx(Be,{...r});case"azure":return e.jsx(Te,{...r})}}function f({img:r,title:s,subtitle:a,badge:t,isSuccess:i,isLoading:c}){return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[c&&e.jsx(z,{className:"h-5 w-5 shrink-0 border-[3px]"}),i&&e.jsx(M,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx("img",{width:"40",height:"40",alt:r.alt,src:r.src}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:s}),e.jsx("p",{className:"text-theme-text-secondary",children:a})]})]}),t]})}function Ge(){const{data:r}=m();function s(){let a="#";switch(r.provider){case"aws":a="https://calculator.aws/#/";break;case"gcp":a="https://cloud.google.com/products/calculator";break;case"azure":a="https://azure.microsoft.com/en-us/pricing/calculator/";break}return e.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"link",children:"official pricing calculator"})}return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(Le,{className:"h-5 w-5 fill-primary-400"}),"Estimated Cost"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"These are rough estimates and actual costs may vary based on your usage."})]}),e.jsxs(B,{className:"flex items-start gap-[10px] p-3",children:[e.jsx("div",{className:"content-center rounded-sm bg-blue-25 p-1",children:e.jsx(De,{className:"h-5 w-5 fill-blue-400"})}),e.jsxs("div",{children:[e.jsxs("p",{children:["A small training job would cost around:"," ",e.jsx("span",{className:"font-semibold text-theme-text-success",children:"$0.60"})]}),e.jsxs("p",{className:"text-text-xs text-theme-text-secondary",children:["Please use the ",e.jsx(s,{})," for a detailed estimate"]})]})]})]})}const Ye=r=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C8.13401 3 5 6.13401 5 10C5 11.8921 5.85317 13.678 7.29228 15.5467C8.50741 17.1245 10.0627 18.6673 11.7323 20.3233C11.8212 20.4115 11.9105 20.5 12 20.5889C12.0895 20.5 12.1788 20.4115 12.2677 20.3233C13.9373 18.6673 15.4926 17.1245 16.7077 15.5467C18.1468 13.678 19 11.8921 19 10C19 6.13401 15.866 3 12 3ZM3 10C3 5.02944 7.02944 1 12 1C16.9706 1 21 5.02944 21 10C21 12.5262 19.8532 14.7402 18.2923 16.767C16.988 18.4607 15.3185 20.1156 13.6508 21.7689C13.3354 22.0816 13.02 22.3943 12.7071 22.7071C12.3166 23.0976 11.6834 23.0976 11.2929 22.7071C10.98 22.3943 10.6646 22.0816 10.3492 21.7689C8.68147 20.1156 7.01205 18.4607 5.70772 16.767C4.14683 14.7402 3 12.5262 3 10ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8ZM8 10C8 7.79086 9.79086 6 12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10Z"}));function qe(){const{control:r}=se(),{data:s}=m(),{isPending:a,isError:t,data:i}=y({...v.stackDeploymentInfo({provider:s.provider})});if(t)return null;if(a)return e.jsx(j,{className:"h-[40px] w-[100px]"});const c=Object.entries(i.locations);return e.jsx(ze,{control:r,name:"region",render:({field:{onChange:l,ref:o,...d}})=>e.jsxs(Ce,{...d,onValueChange:l,children:[e.jsx(ve,{className:"border border-neutral-300 text-left text-text-md",children:e.jsx(ye,{className:"flex items-center gap-2",placeholder:"Select your Location"})}),e.jsx(be,{children:e.jsx(ee,{viewportClassName:"max-h-[300px]",children:c.map(([n,u])=>e.jsxs(we,{value:u,children:[n," - ",e.jsx("span",{className:"text-theme-text-secondary",children:u})]},n))})})]})})}function Qe(){return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(Ye,{className:"h-5 w-5 fill-primary-400"}),"Choose Your Location"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select where you want to deploy your cloud infrastructure for optimal performance and compliance."})]}),e.jsx(qe,{})]})}function $e(){const{data:r}=m(),{watch:s}=se();return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(Ae,{className:"h-5 w-5 fill-primary-400"}),"Review Your Stack Components"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"The following components will be created for your ZenML stack."})]}),e.jsx(Z,{type:r.provider,componentProps:{displayPermissions:!0,stackName:s("stackName")}}),e.jsx(C,{children:"These resources create a basic ZenML stack for ML workflow management. ZenML supports highly flexible stacks. You can build advanced stacks at any time, combining your preferred tools and components for more complex MLOps."})]})}function Je(){const{formRef:r,setIsNextButtonDisabled:s,setData:a,data:t}=m(),i=ae({resolver:re(he),mode:"onChange",defaultValues:{region:t.location,stackName:t.stackName||""}});x.useEffect(()=>{s(!i.formState.isValid)},[i.formState.isValid,s]);function c(l){a(o=>({...o,location:l.region,stackName:l.stackName}))}return e.jsx(A,{title:"Review Stack Configuration",children:e.jsx(Me,{...i,children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs(C,{className:"text-text-sm",children:[e.jsx("p",{className:"font-semibold",children:"Important"}),e.jsx("p",{children:"This will create new resources in your account. Ensure you have the necessary permissions and are aware of any potential costs."})]}),e.jsxs("form",{onSubmit:i.handleSubmit(c),ref:r,className:"space-y-5",children:[e.jsx(Qe,{}),e.jsx(ne,{})]}),e.jsx($e,{}),e.jsx(Ge,{})]})})})}function Ke(){const{data:r,timestamp:s,setIsNextButtonDisabled:a}=m(),{setCurrentStep:t}=D(),{isPending:i,isError:c,data:l}=y({...v.stackDeploymentStack({provider:r.provider,stack_name:r.stackName,date_start:s}),refetchInterval:5e3,throwOnError:!0});return x.useEffect(()=>{l&&(X(),t(o=>o+1),a(!1))},[l]),i?e.jsx(j,{className:"h-[200px] w-full"}):c?null:e.jsxs("div",{className:"space-y-5",children:[e.jsx(Ue,{}),e.jsx(Xe,{stack:l})]})}function Ue(){const{data:r}=m();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs(B,{className:"flex items-center justify-between gap-4 px-6 py-5",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(N,{provider:r.provider,className:"h-6 w-6 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploying the Stack..."}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow the steps in your Cloud console to finish the setup. You can come back to check once your components are deployed."})]})]}),r.provider==="azure"?e.jsx(S,{children:e.jsx("span",{children:"Deploy in Azure"})}):e.jsx(S,{})]}),r.provider==="gcp"&&e.jsx(oe,{}),r.provider==="azure"&&e.jsx(ce,{})]})}function Xe({stack:r}){const s=!!r;return e.jsxs("div",{className:"space-y-5",children:[!s&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(Ne,{className:"h-5 w-5 fill-primary-400"}),"Creating your stack and components..."]}),e.jsx("p",{className:"text-theme-text-secondary",children:"We are creating your stack and stack components based on your configuration. Once you finish the setup, come back to check your brand new stack and components ready."})]}),e.jsx(tt,{isReady:s}),e.jsx(et,{stack:r})]})}function et({stack:r}){const s=!!r,{data:a}=m();return e.jsxs("div",{className:"relative overflow-hidden rounded-md",children:[!s&&e.jsx("div",{className:"absolute z-50 h-full w-full bg-neutral-50/50"}),e.jsx(Z,{type:a.provider,componentProps:{isLoading:!s,isSuccess:s,stackName:a.stackName}})]})}function tt({isReady:r}){const[s,a]=x.useState(!1);return x.useEffect(()=>{const t=setTimeout(()=>{a(!0)},3e5);return()=>clearTimeout(t)},[]),!s||r?null:e.jsx(C,{children:"Your stack is taking longer than usual to deploy. Please check your Cloud console, or the stacks list in ZenML."})}function rt(){return e.jsx(A,{title:"Deploy ZenML Stack",children:e.jsx(st,{})})}function st(){const{setIsNextButtonDisabled:r,isLoading:s}=m();return x.useEffect(()=>{r(!0)},[]),s?e.jsx(Ke,{}):e.jsx(Ze,{})}function at(){const{formRef:r,setIsNextButtonDisabled:s,setData:a,data:t}=m(),{register:i,handleSubmit:c,formState:{isValid:l}}=ae({resolver:re(pe),defaultValues:{provider:t.provider}});x.useEffect(()=>{s(!l)},[l,s]);function o(d){a(n=>({...n,provider:d.provider}))}return e.jsx(A,{title:"New Cloud Infrastructure",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Select a Cloud Provider"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select the cloud provider where your want to create your infrastructure and deploy your ZenML models. You will be able to remove the ZenML stack at any time."})]}),e.jsxs("form",{id:"provider-form",onSubmit:c(o),className:"grid grid-cols-1 gap-3 xl:grid-cols-3",ref:r,children:[e.jsx(P,{id:"aws-provider",...i("provider"),value:"aws",children:e.jsx(L,{icon:e.jsx(N,{provider:"aws",className:"h-6 w-6 shrink-0"}),title:"AWS",subtitle:"ZenML stack with S3, ECR, and SageMaker integration"})}),e.jsx(P,{id:"gcp-provider",...i("provider"),value:"gcp",children:e.jsx(L,{icon:e.jsx(N,{provider:"gcp",className:"h-6 w-6 shrink-0"}),title:"GCP",subtitle:"Create ZenML infrastructure using GCS, Artifact Registry, and Vertex AI"})}),e.jsx(P,{id:"azure-provider",...i("provider"),value:"azure",children:e.jsx(L,{icon:e.jsx(N,{provider:"azure",className:"h-6 w-6 shrink-0"}),title:"Azure",subtitle:"Set up ZenML with Azure Storage, Container Registry, and ML services"})})]})]})})}function it(){const{setIsNextButtonDisabled:r}=m();return r(!1),e.jsx(A,{title:"Your Stack",children:e.jsxs("div",{className:"space-y-5",children:[e.jsx("p",{className:"text-theme-text-secondary",children:"Here you can review the created stack and stack components. Now you can start running pipelines using this new configuration."}),e.jsx(lt,{})]})})}function lt(){var h,g,b,w,T,V,H,W,O,F,G,Y,q,Q,$;const{timestamp:r,data:s}=m(),{isPending:a,isError:t,data:i}=y({...v.stackDeploymentStack({provider:s.provider,stack_name:s.stackName,date_start:r}),throwOnError:!0});if(a)return e.jsx(j,{className:"h-[200px] w-full"});if(t)return null;const c=i.stack.name,l=(h=i.stack.metadata)==null?void 0:h.components.orchestrator,o=(g=i.stack.metadata)==null?void 0:g.components.artifact_store,d=(b=i.stack.metadata)==null?void 0:b.components.container_registry,n=(w=i.stack.metadata)==null?void 0:w.components.image_builder,u={orchestrator:{name:((T=l==null?void 0:l[0])==null?void 0:T.name)??"Orchestrator",id:((V=l==null?void 0:l[0])==null?void 0:V.id.split("-")[0])??""},artifactStore:{name:((H=o==null?void 0:o[0])==null?void 0:H.name)??"Artifact Store",id:((W=o==null?void 0:o[0])==null?void 0:W.id.split("-")[0])??""},registry:{name:((O=d==null?void 0:d[0])==null?void 0:O.name)??"Container Registry",id:((F=d==null?void 0:d[0])==null?void 0:F.id.split("-")[0])??""},connector:{name:(G=i.service_connector)==null?void 0:G.name,id:((q=(Y=i.service_connector)==null?void 0:Y.id)==null?void 0:q.split("-")[0])??""},imageBuilder:{name:((Q=n==null?void 0:n[0])==null?void 0:Q.name)??"Image Builder",id:(($=n==null?void 0:n[0])==null?void 0:$.id.split("-")[0])??""}};return e.jsx(Z,{type:s.provider,componentProps:{components:u,isSuccess:!0,stackName:c}})}function ot(){const{currentStep:r}=D();if(r===1)return e.jsx(at,{});if(r===2)return e.jsx(Je,{});if(r===3)return e.jsx(rt,{});if(r===4)return e.jsx(it,{})}function ct(){var n;const[s]=ke(),{setCurrentStep:a,currentStep:t}=D(),{formRef:i,isNextButtonDisabled:c}=m(),l=Se(),o=s.get("origin")==="onboarding";async function d(){i.current&&(i.current.requestSubmit(),await new Promise(u=>setTimeout(u,20))),a(u=>u<4?u+1:u),t===4&&(X(),l(o?J.onboarding:J.stacks.overview))}return e.jsx(te,{form:(n=i.current)==null?void 0:n.id,disabled:c,onClick:()=>d(),size:"md",children:t===4?"Finish":"Next"})}function A({children:r,title:s}){return e.jsxs(B,{className:"w-full",children:[e.jsx("div",{className:"border-b border-theme-border-moderate px-5 py-3 text-display-xs font-semibold",children:s}),e.jsx("div",{className:"p-5",children:r}),e.jsxs("div",{className:"flex items-center justify-end gap-2 border-t border-theme-border-moderate p-5",children:[e.jsx(de,{}),e.jsx(ct,{})]})]})}const K=["Infrastructure Type","Cloud Provider","Review Configuration","Deploy Stack"];function Lt(){const{success:r}=U();return e.jsx(ue,{maxSteps:K.length,initialStep:r?3:1,children:e.jsx(Pe,{children:e.jsxs("section",{className:"layout-container flex flex-col gap-5 p-5 xl:flex-row",children:[e.jsx(xe,{entries:K}),e.jsx("div",{className:"w-full overflow-y-hidden",children:e.jsx(ot,{})})]})})})}export{Lt as default};
@@ -1 +0,0 @@
1
- import{r as l,j as s}from"./@radix-BXWm7HOa.js";import{a0 as D,a1 as E,h as f,a2 as k,a3 as z,a4 as M,f as C,ak as P,a9 as b,i as S,I as o,a7 as A,a8 as T,z as a,aj as B,B as L,S as v,A as q,b as Q,ai as R}from"./index-DhIZtpxB.js";import{c as V}from"./@tanstack-FmcYZMuX.js";import{u as F}from"./index.esm-DT4uyn2i.js";import{t as U}from"./zod-CnykDKJj.js";import{P as Z}from"./PasswordChecker-yGGoJSB-.js";import{u as _}from"./UpdatePasswordSchemas-oN4G3sKz.js";import{D as K}from"./DisplayDate-DizbSeT-.js";import"./@react-router-l3lMcXA2.js";import"./@reactflow-CeVxyqYT.js";const O=e=>l.createElement("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 5.5C15.5736 5.5 5.5 15.5736 5.5 28C5.5 40.4264 15.5736 50.5 28 50.5C40.4264 50.5 50.5 40.4264 50.5 28C50.5 15.5736 40.4264 5.5 28 5.5ZM0.5 28C0.5 12.8122 12.8122 0.5 28 0.5C43.1878 0.5 55.5 12.8122 55.5 28C55.5 43.1878 43.1878 55.5 28 55.5C12.8122 55.5 0.5 43.1878 0.5 28ZM41.0178 18.7322C41.9941 19.7085 41.9941 21.2915 41.0178 22.2678L26.0178 37.2678C25.0415 38.2441 23.4585 38.2441 22.4822 37.2678L14.9822 29.7678C14.0059 28.7915 14.0059 27.2085 14.9822 26.2322C15.9585 25.2559 17.5415 25.2559 18.5178 26.2322L24.25 31.9645L37.4822 18.7322C38.4585 17.7559 40.0415 17.7559 41.0178 18.7322Z"}));function H(){const[e,t]=l.useState(!1);return s.jsxs(D,{onOpenChange:()=>{t(!1)},children:[s.jsx(E,{asChild:!0,children:s.jsx(f,{size:"md",className:"shrink-0",intent:"primary",emphasis:"subtle",children:"Change Password"})}),s.jsxs(k,{children:[s.jsx(z,{children:s.jsx(M,{children:" Update Credentials"})}),e?s.jsx(J,{}):s.jsx(G,{setSuccess:t})]})]})}function G({setSuccess:e}){var u;const t=l.useId(),d=l.useId(),n=l.useId(),{toast:x}=C(),{mutate:p,isPending:j}=P({onSuccess(){e(!0)},onError(i){b(i)&&x({status:"error",emphasis:"subtle",icon:s.jsx(S,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:i.message,rounded:!0})}}),{register:c,handleSubmit:m,watch:w,formState:{isValid:N,errors:g}}=F({resolver:U(_),mode:"onChange",criteriaMode:"all"});function y(i){p({old_password:i.oldPassword,password:i.newPassword})}const h=(u=g.newPassword)==null?void 0:u.types;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-5 p-7",children:[s.jsx("form",{id:"update-password-form",onSubmit:m(y),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:t,className:"text-text-sm",children:"Old Password"}),s.jsx(o,{...c("oldPassword"),type:"password",id:t,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:d,className:"text-text-sm",children:"New Password"}),s.jsx(o,{...c("newPassword"),type:"password",id:d,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:n,className:"text-text-sm",children:"Confirm Password"}),s.jsx(o,{...c("confirmPassword"),type:"password",id:n,className:"w-full"})]})]})}),s.jsx(Z,{val:w("newPassword"),errors:h||[]})]}),s.jsxs(A,{className:"gap-[10px]",children:[s.jsx(T,{asChild:!0,children:s.jsx(f,{size:"sm",intent:"secondary",children:"Cancel"})}),s.jsx(f,{disabled:!N||j,form:"update-password-form",size:"sm",children:"Update Password"})]})]})}function J(){return s.jsxs("div",{className:"space-y-5 p-7 text-center",children:[s.jsx(O,{className:"mx-auto h-[110px] w-[110px] fill-success-500"}),s.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:"The password was updated successfully!"})]})}const W=a.object({fullName:a.union([a.string(),a.literal("")]),username:a.union([a.string(),a.literal("")]),email:a.union([a.string().email(),a.literal("")])}).refine(e=>e.fullName!==""||e.username!==""||e.email!=="");function X({user:e}){var h,u,i;const t=V(),{toast:d}=C(),n=l.useId(),x=l.useId(),p=l.useId(),{isPending:j,mutate:c}=P({onError(r){b(r)&&d({status:"error",emphasis:"subtle",icon:s.jsx(S,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:r.message,rounded:!0})},onSuccess:()=>{t.invalidateQueries({queryKey:["current-user"]}),t.invalidateQueries({queryKey:["users"]}),w(),d({status:"success",emphasis:"subtle",rounded:!0,description:"User updated successfully"})}}),{register:m,reset:w,handleSubmit:N,formState:{isValid:g}}=F({resolver:U(W),defaultValues:{email:void 0,fullName:void 0,username:void 0}});function y(r){const I={...r.fullName&&{full_name:r.fullName},...r.username&&{name:r.username},...r.email&&{email:r.email}};c(I)}return s.jsxs("div",{className:"w-full max-w-[600px]",children:[s.jsx("form",{onSubmit:N(y),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:n,className:"text-text-sm",children:"Full Name"}),s.jsx(o,{placeholder:(h=e.body)==null?void 0:h.full_name,...m("fullName"),id:n,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:x,className:"text-text-sm",children:"Username"}),s.jsx(o,{...m("username"),placeholder:e.name,id:x,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:p,className:"text-text-sm",children:"Email"}),s.jsx(o,{placeholder:((u=e.metadata)==null?void 0:u.email)??void 0,...m("email"),id:p,className:"w-full"})]}),s.jsx("div",{className:"flex justify-end",children:s.jsx(f,{disabled:j||!g,size:"md",intent:"primary",children:"Update"})})]})}),s.jsx(H,{}),s.jsxs("p",{className:"mt-5 text-text-sm text-theme-text-secondary",children:["Created on ",s.jsx(K,{dateString:((i=e.body)==null?void 0:i.created)||""})]})]})}function ds(){const{data:e}=B();return s.jsxs(L,{className:"flex flex-col gap-5 p-5",children:[s.jsx("h1",{className:"text-text-xl font-semibold",children:"Profile"}),s.jsxs("div",{className:"flex justify-between",children:[e?s.jsx(X,{user:e}):s.jsx(v,{className:"h-[350px] w-full"}),e?s.jsx(q,{size:"xxl",className:"ml-5 h-[140px] w-[140px]",type:"rounded",children:s.jsx(Q,{className:"text-display-lg",size:"xxl",children:R(e)[0]})}):s.jsx(v,{className:"h-[140px] w-[140px] rounded-rounded"})]})]})}export{ds as default};
@@ -1 +0,0 @@
1
- import{r as o,j as e}from"./@radix-BXWm7HOa.js";import{k as j,l as C,j as y,n as M,F as b,a0 as T,a1 as E,h,a2 as F,a3 as P,a4 as U,a5 as k,z as m,f as v,I as O,a6 as I,a7 as R,a8 as _,a9 as H,i as D,aa as q,ab as z,ac as Z,ad as B,ae as K,af as Q,ag as V,ah as L,E as w,ai as G,aj as J,S as f,D as $,B as W}from"./index-DhIZtpxB.js";import{S as X,P as Y}from"./SearchField-C9R0mdaX.js";import{a as ee,b as N,c as A}from"./@tanstack-FmcYZMuX.js";import{o as se}from"./url-hcMJkz8p.js";import{C as te}from"./CodeSnippet-D0VLxT2A.js";import{u as ae}from"./index.esm-DT4uyn2i.js";import{D as re}from"./DisplayDate-DizbSeT-.js";import{I as ne}from"./InlineAvatar-DpTLgM3Q.js";import{S as ie}from"./dots-horizontal-sKQlWEni.js";import{A as oe}from"./AlertDialogDropdownItem-ErO9aOgK.js";import{c as le}from"./@react-router-l3lMcXA2.js";import"./@reactflow-CeVxyqYT.js";import"./chevron-right-double-Dk8e2L99.js";import"./index-Bd1xgUQG.js";import"./copy-f3XGPPxt.js";function ce({params:a}){return["users",a]}async function de({params:a}){const s=j(C.users.all+"?"+se(a)),t=await y(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&M(),!t.ok)throw new b({message:"Error while fetching users",status:t.status,statusText:t.statusText});return t.json()}function ue(a,s){return ee({queryKey:ce(a),queryFn:()=>de(a),...s})}const me=a=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4C8.06703 4 6.50002 5.567 6.50002 7.5C6.50002 9.433 8.06703 11 10 11C11.933 11 13.5 9.433 13.5 7.5C13.5 5.567 11.933 4 10 4ZM4.50002 7.5C4.50002 4.46243 6.96246 2 10 2C13.0376 2 15.5 4.46243 15.5 7.5C15.5 10.5376 13.0376 13 10 13C6.96246 13 4.50002 10.5376 4.50002 7.5ZM19 14C19.5523 14 20 14.4477 20 15V17H22C22.5523 17 23 17.4477 23 18C23 18.5523 22.5523 19 22 19H20V21C20 21.5523 19.5523 22 19 22C18.4477 22 18 21.5523 18 21V19H16C15.4477 19 15 18.5523 15 18C15 17.4477 15.4477 17 16 17H18V15C18 14.4477 18.4477 14 19 14ZM7.32629 14.5C7.38335 14.5 7.44125 14.5 7.50003 14.5H12C12.5523 14.5 13 14.9477 13 15.5C13 16.0523 12.5523 16.5 12 16.5H7.50003C6.03171 16.5 5.51923 16.5109 5.12917 16.6292C4.17036 16.92 3.42005 17.6703 3.1292 18.6291C3.01088 19.0192 3.00002 19.5317 3.00002 21C3.00002 21.5523 2.55231 22 2.00002 22C1.44774 22 1.00002 21.5523 1.00002 21C1.00002 20.9412 1 20.8833 0.99998 20.8263C0.999526 19.599 0.999216 18.761 1.21532 18.0486C1.70007 16.4506 2.95059 15.2 4.54859 14.7153C5.261 14.4992 6.09902 14.4995 7.32629 14.5Z"}));async function he(a){const s=j(C.users.all),t=await y(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!t.ok){const r=await t.json().then(n=>n.detail).catch(()=>"Failed to create User");throw new b({status:t.status,statusText:t.statusText,message:r})}return t.json()}function xe(a){return N({mutationFn:async s=>he(s),...a})}function pe(){const[a,s]=o.useState(!1),[t,r]=o.useState(null);return e.jsxs(T,{open:a,onOpenChange:n=>{s(n),r(null)},children:[e.jsx(E,{asChild:!0,children:e.jsx(h,{className:"shrink-0",intent:"primary",children:"Add Member"})}),e.jsxs(F,{className:"",children:[e.jsx(P,{children:e.jsx(U,{children:" Add a New Member"})}),t?e.jsx(ge,{name:t.name,token:k(t)}):e.jsx(fe,{setSuccessMember:r})]})]})}m.object({username:m.string(),isAdmin:m.boolean()});function fe({setSuccessMember:a}){const{toast:s}=v(),t=A(),{mutate:r,isPending:n}=xe({onError(d){H(d)&&s({status:"error",emphasis:"subtle",icon:e.jsx(D,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:d.message,rounded:!0})},onSuccess(d){a(d),t.invalidateQueries({queryKey:["users"]})}}),c=o.useId(),l=o.useId(),{register:i,handleSubmit:x,watch:p,setValue:u}=ae();function S(d){r({is_admin:d.isAdmin,name:d.username})}return e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"create-user-form",onSubmit:x(S),className:"space-y-5 p-7",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:c,className:"text-text-sm",children:"Username"}),e.jsx(O,{...i("username"),id:c,className:"w-full"})]}),e.jsxs("div",{className:"flex gap-5",children:[e.jsx("label",{htmlFor:l,className:"text-text-md",children:"Add user as an Admin"}),e.jsx(I,{onCheckedChange:d=>u("isAdmin",!!d),...i("isAdmin",{value:!1}),id:l})]})]})}),e.jsxs(R,{className:"gap-[10px]",children:[e.jsx(_,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{disabled:!p("username")||n,form:"create-user-form",size:"sm",children:"Generate Token"})]})]})}function ge({token:a,name:s}){return e.jsxs("div",{className:"space-y-5 overflow-hidden p-7 text-center",children:[e.jsx(me,{className:"m-auto mb-5 h-[110px] w-[110px] fill-success-500"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:`The user ${s} was created successfully!`}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Share the invitation link with the user to complete the registration."})]}),e.jsx(te,{className:"mx-auto",code:a})]})}const je=a=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.9681 6.38231C3.73647 7.92199 3 9.87499 3 12C3 16.9706 7.02944 21 12 21C14.125 21 16.078 20.2635 17.6177 19.0319L4.9681 6.38231ZM6.38231 4.9681L19.0319 17.6177C20.2635 16.078 21 14.125 21 12C21 7.02944 16.9706 3 12 3C9.87499 3 7.92199 3.73647 6.38231 4.9681ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z"}));async function Ce(a){const s=j(C.users.detail(a)),t=await y(s,{method:"DELETE",headers:{"Content-Type":"application/json"}});if(!t.ok){const r=await t.json().then(n=>n.detail).catch(()=>"Failed to delete User");throw new b({status:t.status,statusText:t.statusText,message:r})}return t.json()}function ye(a){return N({mutationFn:async s=>Ce(s),...a})}function be({userId:a,name:s}){const{toast:t}=v(),r=A(),{isPending:n,mutate:c}=ye({onSuccess(){r.invalidateQueries({queryKey:["users"]})},onError:i=>{i instanceof Error&&t({status:"error",emphasis:"subtle",icon:e.jsx(D,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:i.message,rounded:!0})}});function l(){c(a)}return e.jsxs(q,{className:"p-0",children:[e.jsx(z,{className:"py-2 pl-5 pr-3 text-text-lg font-semibold",children:"Delete Member"}),e.jsx("div",{className:"border-y border-theme-border-moderate px-5 py-5",children:e.jsxs(Z,{children:["Deleting ",e.jsx("strong",{children:s})," cannot be undone."]})}),e.jsxs("div",{className:"flex justify-end gap-3 px-5 py-3",children:[e.jsx(B,{asChild:!0,children:e.jsx(h,{intent:"secondary",children:"Cancel"})}),e.jsx(K,{asChild:!0,children:e.jsx(h,{onClick:l,disabled:n,intent:"danger",children:"Delete"})})]})]})}function we({userId:a,name:s}){const[t,r]=o.useState(!1),[n,c]=o.useState(!1),l=o.useRef(null),i=o.useRef(null);function x(){i.current=l.current}function p(u){if(u===!1){c(!1),setTimeout(()=>{r(u)},200);return}r(u)}return e.jsxs(Q,{onOpenChange:c,open:n,children:[e.jsx(V,{ref:l,children:e.jsx(ie,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(L,{hidden:t,onCloseAutoFocus:u=>{i.current&&(i.current.focus(),i.current=null,u.preventDefault())},align:"end",sideOffset:7,children:e.jsx(oe,{onSelect:x,onOpenChange:p,triggerChildren:"Remove Member",icon:e.jsx(je,{fill:"red"}),children:e.jsx(be,{name:s,userId:a})})})]})}function ve({isAdmin:a}){return[{id:"name",accessorFn:s=>{var t;return{name:s.name,is_admin:!!((t=s.body)!=null&&t.is_admin)}},cell:({getValue:s})=>{const{name:t,is_admin:r}=s();return e.jsxs("div",{className:"flex",children:[e.jsx(ne,{username:t}),r&&e.jsx("div",{children:e.jsx(w,{className:"ml-2 capitalize",size:"xs",color:"purple",children:"Admin"})})]})},header:"User"},{accessorKey:"status",header:"Status",accessorFn:s=>{var t;return{status:(t=s.body)==null?void 0:t.active}},cell:({getValue:s})=>{const{status:t}=s();return e.jsx(w,{className:"capitalize",color:t?"green":"grey",children:t?"Active":"Inactive"})}},{id:"created",header:"Created",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(re,{dateString:s()})})},...a?[{id:"actions",header:"",accessorFn:s=>({id:s.id,name:G(s)}),meta:{width:"5%"},cell:({getValue:s})=>{const{id:t,name:r}=s();return e.jsx(we,{name:r,userId:t})}}]:[]]}const g=1,De=m.object({page:m.coerce.number().min(g).optional().default(g).catch(g),name:m.string().optional(),operator:m.enum(["and","or"]).optional()});function Ne(){const[a]=le(),{page:s,name:t,operator:r}=De.parse({page:a.get("page")||void 0,name:a.get("name")||void 0,operator:a.get("operator")||void 0});return{page:s,name:t,logical_operator:r}}function Ae(){var l,i;const a=Ne(),{data:s,isError:t}=ue({params:{...a,sort_by:"desc:created"}},{throwOnError:!0}),{data:r,isPending:n,isError:c}=J();return t||c?null:n?e.jsx(f,{className:"h-[350px]"}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx(X,{searchParams:a}),((l=r.body)==null?void 0:l.is_admin)&&e.jsx(pe,{})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:s?e.jsx($,{columns:ve({isAdmin:(i=r.body)==null?void 0:i.is_admin}),data:s.items}):e.jsx(f,{className:"h-[250px] w-full"})}),s?s.total_pages>1&&e.jsx(Y,{searchParams:a,paginate:s}):e.jsx(f,{className:"h-[36px] w-[300px]"})]})]})}function Be(){return e.jsxs(W,{className:"flex flex-col gap-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Members"}),e.jsx(Ae,{})]})}export{Be as default};
@@ -1 +0,0 @@
1
- import{r as c,j as e}from"./@radix-BXWm7HOa.js";import{a0 as A,a1 as I,at as q,a2 as T,a3 as P,a4 as E,F as Q,k as W,l as Y,f as G,r as w,i as K,aa as J,ab as V,ac as X,ad as Z,h as x,af as v,ag as ee,ah as se,C as te,Y as R,au as y,av as S,M as ae,N as re,O as ne,S as u,A as z,b as F,B as ie,z as j,D as ce,o as le,aw as oe,P as de}from"./index-DhIZtpxB.js";import{S as me}from"./plus-FB9-lEq_.js";import{R as xe}from"./refresh-COb6KYDi.js";import{S as ue,P as he}from"./SearchField-C9R0mdaX.js";import{s as p}from"./sharedSchema-BoYx_B_L.js";import{b as pe,c as fe,a as g}from"./@tanstack-FmcYZMuX.js";import{b as je,L as O,c as ge}from"./@react-router-l3lMcXA2.js";import{C as b}from"./CopyButton-Dbo52T1K.js";import{D as Ne}from"./DisplayDate-DizbSeT-.js";import{I as ye}from"./InlineAvatar-DpTLgM3Q.js";import{S as we}from"./dots-horizontal-sKQlWEni.js";import{S as be}from"./edit-C0MVvPD2.js";import{S as ke}from"./trash-Cd5CSFqA.js";import{I as k}from"./Infobox-BQ0aty32.js";import{C as h}from"./CodeSnippet-D0VLxT2A.js";import{A as ve}from"./AlertDialogDropdownItem-ErO9aOgK.js";import{C as Se}from"./CollapsibleCard-BaUPiVg0.js";import{F as Ce}from"./chevron-right-double-Dk8e2L99.js";import{e as C}from"./components-Br2ezRib.js";import{s as De}from"./url-hcMJkz8p.js";import{N as D}from"./NumberBox-BmKE0qnO.js";import{C as Ae,p as L,c as Ie}from"./persist-3-5nOJ6m.js";import"./@reactflow-CeVxyqYT.js";import"./index-Bd1xgUQG.js";import"./stack-detail-query-B-US_-wa.js";import"./database-cXYNX9tt.js";import"./layout-D6oiSbfd.js";import"./copy-f3XGPPxt.js";import"./chevron-down-BpaF8JqM.js";const B=c.forwardRef((s,t)=>{const{triggerChildren:a,children:r,onSelect:n,onOpenChange:i,icon:o,open:d,...l}=s;return e.jsxs(A,{open:d,onOpenChange:i,children:[e.jsx(I,{asChild:!0,children:e.jsx(q,{...l,className:"hover:cursor-pointer",icon:s.icon,ref:t,onSelect:m=>{m.preventDefault(),n&&n()},children:a})}),r]})});B.displayName="DialogItem";const M=c.forwardRef(({closeModal:s,name:t,...a},r)=>e.jsxs(T,{...a,ref:r,children:[e.jsx(P,{children:e.jsx(E,{children:"Update Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(Te,{action:"update"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Update a stack"}),e.jsx(h,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${t} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));M.displayName="UpdateStackDialog";function Te({action:s}){function t(){switch(s){case"delete":return"delete";case"update":return"update";case"describe":return"get details of"}}return e.jsx(k,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to ",t()," your stack."]})]})})})}async function Pe({stackId:s},t){const a=W(Y.stacks.detail(s)),r=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json",...t?{Authorization:`Bearer ${t}`}:{}}});if(!r.ok){const n=await r.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>`Error while deleting stack ${s}`);throw new Q({status:r.status,statusText:r.statusText,message:n})}return r.json()}function Ee(s){return pe({...s,mutationFn:async({stackId:t})=>Pe({stackId:t})})}function Re(s){const{toast:t}=G(),a=fe(),r=je(),n=Ee({onSuccess:async()=>{a.invalidateQueries({queryKey:p.all}),r(w.stacks.overview)},onError:o=>{t({status:"error",emphasis:"subtle",icon:e.jsx(K,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:o.message,rounded:!0})}});function i(){n.mutate({stackId:s})}return{handleDelete:i,deleteStack:n}}const $=c.forwardRef(({closeModal:s,name:t,stackId:a,...r},n)=>{const{handleDelete:i,deleteStack:o}=Re(a);return e.jsxs(J,{...r,className:"p-0",ref:n,children:[e.jsxs(V,{className:"m-0 py-2 pl-5 pr-3 text-text-lg font-semibold",children:["Delete ",t]}),e.jsx("div",{className:"border-y border-theme-border-moderate px-5 py-5",children:e.jsxs(X,{children:["Are you sure you want to delete this stack? ",e.jsx("br",{}),"This action cannot be undone."]})}),e.jsxs("div",{className:"flex justify-end gap-3 px-5 py-3",children:[e.jsx(Z,{onClick:()=>s==null?void 0:s(),asChild:!0,children:e.jsx(x,{intent:"secondary",children:"Cancel"})}),e.jsxs(x,{disabled:o.isPending,type:"button",onClick:()=>i(),intent:"danger",children:[o.isPending&&e.jsx("div",{role:"alert","aria-busy":"true",className:"full h-[20px] w-[20px] animate-spin rounded-rounded border-2 border-theme-text-negative border-b-theme-text-error"}),"Delete"]})]})]})});$.displayName="DeleteStackDialog";function ze({name:s,id:t}){const[a,r]=c.useState(!1),[n,i]=c.useState(!1),o=c.useRef(null),d=c.useRef(null);function l(){d.current=o.current}function m(f){r(f),f===!1&&i(!1)}return e.jsx(v,{open:n,onOpenChange:i,children:e.jsxs(v,{children:[e.jsx(ee,{className:"z-10",ref:o,children:e.jsx(we,{className:"h-5 w-5 fill-theme-text-secondary"})}),e.jsxs(se,{hidden:a,onCloseAutoFocus:f=>{d.current&&(d.current.focus(),d.current=null,f.preventDefault())},className:"z-10",align:"end",sideOffset:1,children:[e.jsx(B,{onSelect:l,onOpenChange:m,icon:e.jsx(be,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx(M,{name:s,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})}),e.jsx(ve,{onSelect:l,onOpenChange:m,icon:e.jsx(ke,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Delete",children:e.jsx($,{stackId:t,name:s,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})})]})]})})}function Fe(){return e.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:e.jsxs(te,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[e.jsx(Ce,{className:"h-5 w-5 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Close"})]})})}const H=c.forwardRef(({name:s,children:t,type:a,...r},n)=>e.jsxs(A,{children:[e.jsx(I,{asChild:!0,children:t}),e.jsxs(T,{className:"w-fit max-w-fit",...r,ref:n,children:[e.jsx(P,{children:e.jsx(E,{children:R(a||"")})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(Oe,{type:a}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Describe your ",y(a)]}),e.jsx(h,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${S(a)} describe ${s}`})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Update your ",y(a)]}),e.jsx(h,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${S(a)} update ${s}`})]})]})]})]}));H.displayName="ComponentFallbackDialog";function Oe({type:s}){return e.jsx(k,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to manage your ",y(s),"."]})]})})})}const _=c.createContext(null);function Le({children:s}){const[t,a]=c.useState([]);return e.jsx(_.Provider,{value:{integrations:t,setIntegrations:a},children:s})}function U(){const s=c.useContext(_);if(s===null)throw new Error("useIntegrationsContext must be used within an AuthProvider");return s}function Be({children:s,stackId:t,stackName:a}){return e.jsxs(ae,{children:[e.jsx(re,{children:s}),e.jsx(ne,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(Le,{children:[e.jsx(Fe,{}),e.jsx(Me,{stackId:t}),e.jsx(_e,{name:a}),e.jsx($e,{stackId:t})]})})]})}function Me({stackId:s}){const t=g({...p.stackDetail(s)});return t.isError?null:t.isPending?e.jsx("div",{className:"p-5",children:e.jsx(u,{className:"h-6 w-full"})}):e.jsxs("div",{className:"flex items-center space-x-2 border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsx(z,{type:"square",size:"lg",children:e.jsx(F,{size:"lg",children:t.data.name[0]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:t.data.id}),e.jsx(b,{copyText:t.data.id})]}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-display-xs font-semibold",children:t.data.name})})]})]})}function $e({stackId:s}){var n;const{setIntegrations:t}=U(),a=g({...p.stackDetail(s)});if(c.useEffect(()=>{var d;if(!a.data)return;const o=C((d=a.data.metadata)==null?void 0:d.components).map(l=>{var m;return(m=l.body)==null?void 0:m.integration}).filter(l=>!!l&&l!=="built-in"&&l!=="custom");o.length>=1&&t(l=>Array.from(new Set([...l,...o])))},[a.data]),a.isError)return null;if(a.isPending)return e.jsx("div",{className:"p-5",children:e.jsx(u,{className:"h-[300px] w-full"})});const r=C((n=a.data.metadata)==null?void 0:n.components);return e.jsx("ul",{className:"space-y-5 p-5",children:r.map(i=>e.jsx("li",{children:e.jsx(He,{component:i})},i.id))})}function He({component:s}){var t,a,r,n,i;return e.jsxs(ie,{className:"flex items-center justify-between p-5",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("img",{width:32,height:32,alt:`${(t=s.body)==null?void 0:t.flavor} logo`,src:De(((a=s.body)==null?void 0:a.logo_url)||"")}),e.jsxs("div",{children:[e.jsx(H,{type:((r=s.body)==null?void 0:r.type)||"orchestrator",name:s.name,children:e.jsx("button",{className:"text-text-xl",children:s.name})}),e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.id.split("-")[0]}),e.jsx(b,{copyText:s.id})]})]})]}),e.jsx(Ae,{type:((n=s.body)==null?void 0:n.type)||"orchestrator",children:R(((i=s.body)==null?void 0:i.type)||"")})]})}function _e({name:s}){const{integrations:t}=U();return e.jsx("section",{className:"px-5 pt-5",children:e.jsx(Se,{title:e.jsx("span",{className:"text-text-lg",children:"Set this stack"}),children:e.jsxs("ul",{className:"space-y-5",children:[e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{children:"1"}),e.jsx("p",{className:"font-semibold",children:"Set your stack"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Set the stack as active on your client"}),e.jsx(h,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack set ${s}`})]})]}),t.length>=1&&e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{children:"2"}),e.jsx("p",{className:"font-semibold",children:"Install the integrations"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the required integrations to run pipelines in your stack"}),e.jsx(h,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${t.join(" ")}`})]})]})]})})})}function Ue(){return[{id:"name",header:"Stack",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{name:t,id:a}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(z,{type:"square",size:"md",children:e.jsx(F,{size:"md",children:t[0]})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(Be,{stackName:t,stackId:a,children:e.jsx("h2",{className:"text-text-md font-semibold",children:t})})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:a.split("-")[0]}),e.jsx(b,{copyText:a})]})]})]})}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(Ne,{dateString:s()})})},{id:"author",header:"Author",accessorFn:s=>{var t;return{author:(t=s.body)==null?void 0:t.user}},cell:({getValue:s})=>{const{author:t}=s();return t?e.jsx(ye,{username:t.name}):null}},{id:"actions",header:"",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{id:t,name:a}=s();return e.jsx(ze,{name:a,id:t})}}]}function qe({setHasResumeableStack:s}){const{success:t,data:a}=L(),r=g({...p.stackDeploymentStack({provider:(a==null?void 0:a.provider)||"aws",stack_name:(a==null?void 0:a.stackName)||"",date_start:a==null?void 0:a.timestamp}),enabled:t,throwOnError:!0});return c.useEffect(()=>{r.data&&(Ie(),s(!1))},[r.data]),!t||r.isError?null:r.isPending?e.jsx(u,{className:"h-[70px] w-full"}):e.jsx(k,{className:"w-full",children:e.jsxs("section",{className:"flex flex-wrap items-center justify-between gap-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("p",{className:"font-semibold",children:"You have a Stack provision incomplete"}),e.jsx("p",{className:"text-text-sm",children:"Return to the setup and finish the configuration on your cloud provider"})]}),e.jsx("div",{children:e.jsx(x,{className:"w-fit bg-theme-surface-primary",intent:"primary",emphasis:"subtle",asChild:!0,children:e.jsx(O,{to:w.stacks.create.newInfra,children:e.jsx("span",{children:"Review Stack"})})})})]})})}const N=1,Qe=j.object({page:j.coerce.number().min(N).optional().default(N).catch(N),name:j.string().optional(),operator:j.enum(["and","or"]).optional()});function We(){const[s]=ge(),{page:t,name:a,operator:r}=Qe.parse({page:s.get("page")||void 0,name:s.get("name")||void 0});return{page:t,name:a,logical_operator:r}}function Ye(){const[s,t]=c.useState(L().success),a=We(),{refetch:r,data:n}=g({...p.stackList({...a,sort_by:"desc:updated"}),throwOnError:!0});return e.jsx("section",{className:"p-5",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx(ue,{searchParams:a}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(x,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>r(),children:[e.jsx(xe,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(x,{size:"md",asChild:!0,children:e.jsxs(O,{to:w.stacks.create.index,children:[e.jsx(me,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Stack"})]})})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[s&&e.jsx(qe,{setHasResumeableStack:t}),e.jsx("div",{className:"w-full",children:n?e.jsx(ce,{columns:Ue(),data:n.items}):e.jsx(u,{className:"h-[500px] w-full"})}),n?n.total_pages>1&&e.jsx(he,{searchParams:a,paginate:n}):e.jsx(u,{className:"h-[36px] w-[300px]"})]})]})})}function Ss(){const{setCurrentBreadcrumbData:s}=le(),{setTourState:t,tourState:{tourActive:a}}=oe();return c.useEffect(()=>{a&&t(r=>({...r,run:!0,stepIndex:r.stepIndex}))},[a]),c.useEffect(()=>{s({segment:"stacks",data:null})},[]),e.jsxs("div",{children:[e.jsx(Ge,{}),e.jsx(Ye,{})]})}function Ge(){return e.jsx(de,{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"Stacks"})})}export{Ss as default};
@@ -1 +0,0 @@
1
- import{r as l,j as e}from"./@radix-BXWm7HOa.js";import{u as m,S as v,a as w,b as j}from"./SuccessStep-DlkItqYG.js";import{A as y,P as A,a as P}from"./AwarenessChannel-CLXo5rKM.js";import{S as b}from"./SetPassword-52sNxNiO.js";import{j as U,F as _,k as g,l as F,e as C,f as E,i as k}from"./index-DhIZtpxB.js";import{b as N}from"./@tanstack-FmcYZMuX.js";import{u as M}from"./login-mutation-13A_JSVA.js";import{c as D}from"./@react-router-l3lMcXA2.js";import{E as H}from"./EmptyState-BHblM39I.js";import"./UpdatePasswordSchemas-oN4G3sKz.js";import"./check-circle-1_I207rW.js";import"./url-hcMJkz8p.js";import"./zod-CnykDKJj.js";import"./index.esm-DT4uyn2i.js";import"./file-text-B9JibxTs.js";import"./play-circle-XSkLR12B.js";import"./PasswordChecker-yGGoJSB-.js";import"./@reactflow-CeVxyqYT.js";const f=l.createContext(null);function T({children:t,initialUser:r}){const[n,s]=l.useState(r||{});return e.jsx(f.Provider,{value:{newUser:n,setNewUser:s},children:t})}function d(){const t=l.useContext(f);if(t===null)throw new Error("useActivationContext must be used within an ActivationProvider");return t}function I(){const{setSurveyStep:t}=m(),{setNewUser:r,newUser:n}=d();function s({fullName:a,getUpdates:o,email:i}){r(c=>({...c,...i?{email:i}:{email:null},full_name:a,email_opted_in:o})),t(c=>c+1)}return e.jsx(y,{email:n.email,fullName:n.full_name,submitHandler:s})}function L(){const{setSurveyStep:t}=m(),{setNewUser:r}=d();function n({newPassword:s}){r(a=>({...a,password:s})),t(a=>a+1)}return e.jsx(b,{submitHandler:n})}function z(){const{setSurveyStep:t}=m(),{setNewUser:r}=d();function n({amountProductionModels:s,primaryUse:a}){const o={primary_use:a,models_production:s};r(i=>({...i,user_metadata:{...i.user_metadata,...o}})),t(i=>i+1)}return e.jsx(A,{submitHandler:n})}async function J({userId:t,body:r}){const n=g(F.users.activate(t)),s=await U(n,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!s.ok){const a=await s.json().then(o=>Array.isArray(o.detail)?o.detail[1]:o.detail).catch(()=>"Failed to update activate user");throw new _({status:s.status,statusText:s.statusText,message:a})}return s.json()}function O(t){return N({mutationFn:async r=>J(r),...t})}function R({userId:t,setUsername:r}){const{newUser:n}=d(),{setAuthState:s}=C(),{setSurveyStep:a}=m(),{mutate:o}=M({onSuccess:()=>{s("true"),a(u=>u+1)}}),{toast:i}=E(),{mutate:c}=O({onSuccess:async u=>{r(u.name),o({username:u.name,password:n.password??void 0})},onError:u=>{u instanceof Error&&i({status:"error",emphasis:"subtle",icon:e.jsx(k,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:u.message,rounded:!0})}});function S({other:u,channels:p,otherVal:x}){const h={awareness_channels:u?[...p,x]:p};c({userId:t,body:{...n,user_metadata:{...n.user_metadata,...h}}})}return e.jsx(P,{submitHandler:S})}function W(){const{surveyStep:t}=m(),[r]=D(),[n,s]=l.useState(""),a=r.get("user"),o=r.get("token");return!a||!o?e.jsx(H,{children:e.jsx("p",{children:"Invalid activation link."})}):e.jsx(e.Fragment,{children:e.jsxs(T,{initialUser:{activation_token:o},children:[e.jsx(v,{stepAmount:4}),t===1&&e.jsx(I,{}),t===2&&e.jsx(L,{}),t===3&&e.jsx(z,{}),t===4&&e.jsx(R,{setUsername:s,userId:a}),t===5&&e.jsx(w,{subHeader:"Your created your ZenML account",username:n})]})})}function ct(){return e.jsx("div",{children:e.jsx(j,{children:e.jsx(W,{})})})}export{ct as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./@radix-BXWm7HOa.js";import{B as o,ar as n}from"./index-DhIZtpxB.js";import{I as r}from"./Infobox-BQ0aty32.js";import{H as a}from"./Helpbox-aAB2XP-z.js";import{V as s,g as c}from"./Commands-JrcZK-3j.js";import"./@tanstack-FmcYZMuX.js";import"./@react-router-l3lMcXA2.js";import"./@reactflow-CeVxyqYT.js";import"./help-FuHlZwn0.js";import"./play-circle-XSkLR12B.js";import"./CodeSnippet-D0VLxT2A.js";import"./copy-f3XGPPxt.js";const l=[{command:"zenml code-repository register <NAME> --type=<CODE_REPOSITORY_TYPE] [--CODE_REPOSITORY_OPTIONS]",description:"Register a code repository"},{command:"zenml code-repository register <NAME> --type=custom --source=<CODE_REPOSITORY_SOURCE> [--CODE_REPOSITORY_OPTIONS]",description:"Use a custom repository "},{command:"zenml code-repository list",description:"List your registered code repositories"},{command:"zenml code-repository delete <REPOSITORY_NAME_OR_ID>",description:"Delete a code repository that you have previously registered"}],d="/assets/repos-video-D8kpu60k.svg";function m(){return e.jsx(r,{children:e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-x-2 gap-y-0.5 text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"We are creating a new Repositories experience"}),e.jsx("p",{children:"In the meanwhile you can use the CLI to add and manage your repos."})]})})}function p(){const t="https://zenml.portal.trainn.co/share/koVfVubiXfXLXtVcDAqPyg/embed?autoplay=false";return e.jsxs(o,{className:"flex flex-col-reverse items-stretch overflow-hidden md:flex-row",children:[e.jsxs("div",{className:"w-full p-7 md:w-2/3",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Learn More about Repositories"}),e.jsx("p",{className:"mt-2 text-text-lg text-theme-text-secondary",children:"Get started with ZenML Repositories for streamlined pipeline versioning and faster Docker builds."}),e.jsx(s,{videoLink:t,buttonText:"Watch the Starter Guide (2 min)"})]}),e.jsx("div",{className:"flex w-full items-center justify-center bg-primary-50 lg:w-1/3",children:e.jsx(s,{fallbackImage:e.jsx("img",{src:d,alt:"Purple squares with text indicating a starter guide for secrets",className:"h-full w-full"}),videoLink:t,isButton:!1})})]})}function x(){return e.jsxs("section",{className:"space-y-5 pl-8 pr-5",children:[e.jsx(r,{className:"text-text-md",intent:"neutral",children:"Code repositories enable ZenML to keep track of the code version that you use for your pipeline runs. Additionally, running a pipeline which is tracked in a registered code repository can decrease the time it takes Docker to build images for containerized stack components."}),l.map((t,i)=>e.jsx(e.Fragment,{children:c(t)},i)),e.jsx(a,{text:"Check all the commands and find more about Repositories in our Docs",link:"https://docs.zenml.io/how-to/setting-up-a-project-repository/connect-your-git-repository"})]})}function I(){return e.jsxs(o,{className:"space-y-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Repositories"}),e.jsx(m,{}),e.jsx(p,{}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(n,{}),"Administering your Code Repositories"]}),e.jsx(x,{})]})}export{I as default};
@@ -1 +0,0 @@
1
- import{r as x,j as e}from"./@radix-BXWm7HOa.js";import{k as w,l as S,j as N,F as v,a0 as O,a1 as P,h,a2 as A,a3 as q,a4 as V,f as B,I as y,a7 as I,a8 as L,a9 as G,n as E,af as H,ag as U,ah as W,ai as J,z as g,aj as X,D as Y,S as T,B as Z}from"./index-DhIZtpxB.js";import{S as ee,P as se}from"./SearchField-C9R0mdaX.js";import{S as te,s as ae,E as re}from"./EditSecretDialog-Bd7mFLS4.js";import{S as ne}from"./plus-FB9-lEq_.js";import{S as K}from"./trash-Cd5CSFqA.js";import{b as R,c as _,a as M}from"./@tanstack-FmcYZMuX.js";import{t as ie}from"./zod-CnykDKJj.js";import{u as oe,a as le,C as k}from"./index.esm-DT4uyn2i.js";import{o as ce}from"./url-hcMJkz8p.js";import{D as de}from"./DisplayDate-DizbSeT-.js";import{I as me}from"./InlineAvatar-DpTLgM3Q.js";import{S as ue}from"./edit-C0MVvPD2.js";import{S as xe}from"./dots-horizontal-sKQlWEni.js";import{A as F}from"./AlertDialogDropdownItem-ErO9aOgK.js";import{S as he}from"./Lock-CNyJvf2r.js";import{C as pe}from"./CopyButton-Dbo52T1K.js";import{c as fe,b as je}from"./@react-router-l3lMcXA2.js";import"./@reactflow-CeVxyqYT.js";import"./chevron-right-double-Dk8e2L99.js";import"./index-Bd1xgUQG.js";import"./copy-f3XGPPxt.js";async function ge(a){const t=w(S.secrets.add(a.workspace)),s=await N(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!s.ok){const r=await s.json().then(n=>n.detail).catch(()=>"Failed to create Secret");throw new v({status:s.status,statusText:s.statusText,message:r})}return s.json()}function ye(a){return R({mutationFn:async t=>ge(t),...a})}function we({id:a,workspace:t}){const[s,r]=x.useState(!1);return e.jsxs(O,{open:s,onOpenChange:n=>{r(n)},children:[e.jsx(P,{asChild:!0,children:e.jsx(h,{className:"shrink-0",intent:"primary",children:"Add secret"})}),e.jsxs(A,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(q,{children:e.jsx(V,{children:"Register New Secret"})}),e.jsx(Se,{userId:a,setOpen:r,workspaceId:t.id})]})]})}function Se({userId:a,setOpen:t,workspaceId:s}){const{handleSubmit:r,control:n,watch:i,setValue:c,formState:{isValid:u},reset:p}=oe({resolver:ie(ae),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:d,append:j,remove:D}=le({control:n,name:"keysValues"}),{toast:C}=B(),f=_(),{mutate:$}=ye({onError(o){G(o)&&C({status:"error",emphasis:"subtle",description:o.message,rounded:!0})},onSuccess(){f.invalidateQueries({queryKey:["secrets"]}),t(!1),p()}}),z=o=>{$({user:a,workspace:s,name:o.secretName,scope:"workspace",values:o.keysValues.reduce((l,m)=>(m.key&&m.value&&(l[m.key]=m.value),l),{})})},Q=o=>{z(o)};return e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"create-secret-form",className:"gap-5 p-5",onSubmit:r(Q),children:e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(k,{name:"secretName",control:n,render:({field:o})=>e.jsx(y,{...o,className:"mb-3 w-full",required:!0})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold ",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row ",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),d.map((o,l)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1 ",children:[e.jsx("div",{className:"relative flex-grow ",children:e.jsx(k,{name:`keysValues.${l}.key`,control:n,render:({field:m})=>e.jsx(y,{...m,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(k,{name:`keysValues.${l}.value`,control:n,render:({field:m})=>e.jsx(y,{...m,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:i(`keysValues.${l}.showPassword`)?"text":"password"})}),e.jsx("div",{onClick:()=>{const m=i(`keysValues.${l}.showPassword`);c(`keysValues.${l}.showPassword`,!m)},className:"absolute inset-y-1 right-0 flex cursor-pointer items-center pb-1 pr-3",children:e.jsx(te,{className:"h-4 w-4 flex-shrink-0 cursor-pointer"})})]})}),e.jsxs("div",{className:"flex items-center",children:[l===d.length-1&&e.jsx(h,{intent:"primary",emphasis:"subtle",onClick:()=>j({key:"",value:""}),className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx(ne,{className:"flex-shrink-0 fill-primary-600"})}),l!==d.length-1&&e.jsx(h,{intent:"secondary",emphasis:"minimal",onClick:()=>D(l),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx(K,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},o.id))]})}),e.jsxs(I,{className:"gap-[10px]",children:[e.jsx(L,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"primary",disabled:!u,type:"submit",form:"create-secret-form",children:"Register Secret"})]})]})}function Ne({params:a}){return["secrets",a]}async function ve({params:a}){const t=w(S.secrets.all+"?"+ce(a)),s=await N(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&E(),!s.ok)throw new v({message:"Error while fetching secrets",status:s.status,statusText:s.statusText});return s.json()}function De(a,t){return M({queryKey:Ne(a),queryFn:()=>ve(a),...t})}async function Ce(a){const t=w(S.secrets.detail(a)),s=await N(t,{method:"DELETE",headers:{"Content-Type":"application/json"}});if(s.status===404&&E(),!s.ok)throw new v({message:"Error deleting secret",status:s.status,statusText:s.statusText});return s.json()}function ke(a){return R({mutationFn:async t=>Ce(t),...a})}function be({secretId:a,isOpen:t,onClose:s}){const r=_(),{mutate:n}=ke({onSuccess(){r.invalidateQueries({queryKey:["secrets"]})}}),[i,c]=x.useState("");function u(){n(a)}function p(d){c(d.target.value)}return e.jsxs(O,{open:t,onOpenChange:s,children:[e.jsx(P,{asChild:!0,children:e.jsx(h,{className:"shrink-0",intent:"primary",children:"Delete Secret"})}),e.jsxs(A,{children:[e.jsx(q,{children:e.jsx(V,{children:"Delete secret"})}),e.jsxs("div",{className:"gap-5 p-5",children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Are you sure you want to delete this secret?"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"This action cannot be undone."}),e.jsx("h3",{className:"font-inter text-sm mb-1 mt-4 text-left font-medium leading-5",children:"Please type DELETE to confirm"}),e.jsx(y,{name:"key",onChange:p,className:"w-full",required:!0,value:i})]}),e.jsxs(I,{className:"gap-[10px]",children:[e.jsx(L,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"danger",type:"submit",form:"edit-secret-form",onClick:u,disabled:i!=="DELETE",children:"Delete"})]})]})]})}function Ee({secretId:a}){const[t,s]=x.useState(!1),[r]=x.useState(!1),[n,i]=x.useState(!1),[c,u]=x.useState(!1),p=x.useRef(null),d=x.useRef(null);function j(){d.current=p.current}function D(){u(!0)}function C(f){i(f)}return e.jsxs(H,{onOpenChange:s,open:t,children:[e.jsx(U,{ref:p,children:e.jsx(xe,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsxs(W,{hidden:r,onCloseAutoFocus:f=>{d.current&&(d.current.focus(),d.current=null,f.preventDefault())},align:"end",sideOffset:7,children:[e.jsx(F,{onSelect:j,onOpenChange:C,triggerChildren:"Edit ",icon:e.jsx(ue,{}),children:e.jsx(re,{secretId:a,isOpen:n,onClose:()=>{s(!1),i(!1)},isSecretNameEditable:!0,dialogTitle:"Edit secret"})}),e.jsx(F,{onSelect:j,onOpenChange:D,triggerChildren:"Delete ",icon:e.jsx(K,{}),children:e.jsx(be,{isOpen:c,onClose:()=>{s(!1),u(!1)},secretId:a})})]})]})}function Te(a){return[{id:"secret",header:"Secret",accessorFn:t=>t.name,cell:({getValue:t,row:s})=>e.jsxs("div",{className:"flex cursor-pointer items-center space-x-2",children:[e.jsx(he,{className:"h-4 w-4 flex-shrink-0 cursor-pointer fill-primary-400"}),e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"group/copybutton flex flex flex-row items-center gap-0.5 space-x-1",children:[e.jsx("span",{className:" text-text-md font-semibold text-theme-text-primary",onClick:()=>a(`/settings/secrets/${s.original.id}`),children:t()}),e.jsx(pe,{copyText:t()})]}),e.jsxs("span",{className:"text-sm text-gray-500",children:[" ",s.original.id.slice(0,8)]})]})]})},{id:"author",header:"Author",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.user},cell:({getValue:t})=>{const s=t();return e.jsx(e.Fragment,{children:e.jsx(me,{username:J(s)})})}},{id:"created_at",header:"Created At",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.created},cell:({getValue:t})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(de,{dateString:t()})})},{id:"admin_actions",header:"",accessorFn:t=>String(t.id),cell:({row:t,getValue:s})=>{var n,i,c;const r=s();return(c=(i=(n=t.original.body)==null?void 0:n.user)==null?void 0:i.body)!=null&&c.is_admin?e.jsx(Ee,{secretId:r}):e.jsx("p",{className:"text-sm text-theme-text-secondary",children:"No Actions"})}}]}async function Fe(a){const t=w(S.workspaces.detail(a)),s=await N(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&E(),!s.ok)throw new v({message:"Error fetching secret details",status:s.status,statusText:s.statusText});return s.json()}function Oe(a,t){return M({queryFn:()=>Fe(a),queryKey:["workspaceDetail",a],...t})}const b=1,Pe=g.object({page:g.coerce.number().min(b).optional().default(b).catch(b),name:g.string().optional(),operator:g.enum(["and","or"]).optional()});function Ae(){const[a]=fe(),{page:t,name:s,operator:r}=Pe.parse({page:a.get("page")||void 0,name:a.get("name")||void 0,operator:a.get("operator")||void 0});return{page:t,name:s,logical_operator:r}}function qe(){const a=je(),t=Ae(),{data:s}=De({params:{...t,sort_by:"desc:created"}},{throwOnError:!0}),{data:r}=X(),n=(r==null?void 0:r.id)||"",{data:i,isLoading:c,isError:u}=Oe("default");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx(ee,{searchParams:t}),c?e.jsx("div",{children:"Loading..."}):u?e.jsx("div",{children:"Error loading workspace details."}):e.jsx(we,{id:n,workspace:i})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:s?e.jsx(Y,{columns:Te(a),data:s.items}):e.jsx(T,{className:"h-[250px] w-full"})}),s?s.total_pages>1&&e.jsx(se,{searchParams:t,paginate:s}):e.jsx(T,{className:"h-[36px] w-[300px]"})]})]})}function as(){return e.jsxs(Z,{className:"space-y-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Secrets"}),e.jsxs("div",{className:"flex flex-row space-x-2",children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Configure and manage your pipeline secrets and configurations."}),e.jsx("a",{href:"https://docs.zenml.io/how-to/interact-with-secrets",className:"text-text-md text-primary-400",children:"Learn More"})]}),e.jsx(qe,{})]})}export{as as default};
@@ -1 +0,0 @@
1
- import{j as e,r as f}from"./@radix-BXWm7HOa.js";import{z as d,k as x,l as h,j,F as p,B as m,f as N,aH as S,h as D,i as P,y as C}from"./index-DhIZtpxB.js";import{c as E}from"./@react-router-l3lMcXA2.js";import{E as _}from"./EmptyState-BHblM39I.js";import{a as k,b as F}from"./@tanstack-FmcYZMuX.js";import{o as T}from"./url-hcMJkz8p.js";import{E as I}from"./Error-C6LeJSER.js";import{t as A}from"./zod-CnykDKJj.js";import{u as V,C as z}from"./index.esm-DT4uyn2i.js";import{S as q}from"./check-circle-1_I207rW.js";import"./@reactflow-CeVxyqYT.js";const B=d.object({device_id:d.string().optional(),user_code:d.string().optional()});function Y(){const[s]=E(),{device_id:t,user_code:i}=B.parse({device_id:s.get("device_id")||void 0,user_code:s.get("user_code")||void 0});return{user_code:i,device_id:t}}const H=d.object({trustDevice:d.boolean()});function K({deviceId:s,queryParams:t}){return["devices",s,t]}async function L({deviceId:s,queryParams:t}){const i=x(h.devices.detail(s)+"?"+T(t)),r=await j(i,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new p({message:"Error while fetching Device details",status:r.status,statusText:r.statusText});return r.json()}function R(s,t){return k({queryKey:K(s),queryFn:async()=>L(s),...t})}function W({device:s}){var t,i,r,a,c,n;return e.jsx(m,{className:"w-full p-5",children:e.jsxs("dl",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("dt",{children:"IP Address"}),e.jsx("dd",{children:(t=s.body)==null?void 0:t.ip_address})]}),((i=s.metadata)==null?void 0:i.city)&&((r=s.metadata)==null?void 0:r.country)&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("dt",{children:"Location"}),e.jsxs("dd",{children:[(a=s.metadata)==null?void 0:a.city,", ",(c=s.metadata)==null?void 0:c.country]})]}),e.jsxs("div",{className:"flex min-w-0 items-center justify-between",children:[e.jsx("dt",{children:"Hostname"}),e.jsx("dd",{className:"truncate",children:(n=s.body)==null?void 0:n.hostname})]})]})})}async function G({deviceId:s,payload:t}){const i=x(h.devices.verify(s)),r=await j(i,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok){const a=await r.json().then(c=>c.detail).catch(()=>["","Failed to verify device."]);throw new p({status:r.status,statusText:r.statusText,message:a[1]||"Failed to verify device."})}return r.json()}function J(s){return F({mutationFn:async t=>G(t),...s})}function M({deviceId:s,user_code:t,setSuccess:i}){const r=f.useId(),{handleSubmit:a,formState:{isValid:c},control:n}=V({resolver:A(H),defaultValues:{trustDevice:!1}}),{toast:l}=N(),{mutate:v,isPending:y}=J({onSuccess:()=>{i(!0)},onError:o=>{o instanceof Error&&l({status:"error",emphasis:"subtle",icon:e.jsx(P,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:o.message,rounded:!0})}});function g(o){v({deviceId:s,payload:{user_code:t,trusted_device:o.trustDevice}})}return e.jsxs("form",{onSubmit:a(g),className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(z,{control:n,name:"trustDevice",render:({field:{onChange:o,value:w}})=>e.jsx(S,{checked:w,onCheckedChange:b=>o(!!b),id:r})}),e.jsxs("label",{htmlFor:r,children:[e.jsx("p",{children:"Trust this device"}),e.jsx("p",{className:"text-theme-text-secondary",children:"We won't ask you again soon on this device."})]})]}),e.jsx(D,{disabled:y||!c,size:"md",className:"flex w-full justify-center",children:"Authorize this device"})]})}function O(){return e.jsxs(m,{className:"flex min-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[e.jsx(q,{className:"h-[120px] w-[120px] fill-theme-text-success"}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-display-xs font-semibold",children:"You successfully added your device"}),e.jsx("p",{className:"text-theme-text-secondary",children:"You may close this screen and return to your CLI."})]})]})}function ce(){const{device_id:s,user_code:t}=Y(),[i,r]=f.useState(!1),{data:a,isPending:c,isError:n,error:l}=R({deviceId:s,queryParams:{user_code:t}},{enabled:!!s&&!!t});return!s||!t?e.jsx(_,{children:e.jsx("p",{children:"Invalid device verification link."})}):n?e.jsx(u,{children:e.jsx(I,{isAlertCircle:!0,err:l})}):c?e.jsx(u,{children:e.jsx(C,{})}):i?e.jsx(O,{}):e.jsx(u,{children:e.jsxs("div",{className:"w-full space-y-7",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-0.5 text-display-xs font-semibold",children:"Authorize a new device"}),e.jsx("p",{className:"text-theme-text-secondary",children:"You are logging in from a new device."})]}),e.jsx(W,{device:a}),e.jsx(M,{setSuccess:r,deviceId:s,user_code:t})]})})}function u({children:s}){return e.jsx(m,{className:"flex w-full min-w-[540px] flex-col items-center justify-center gap-5 p-7",children:s})}export{ce as default};
@@ -1 +0,0 @@
1
- import{r as a,j as e}from"./@radix-BXWm7HOa.js";import{am as g,an as f,ao as b,ap as v,aq as L,B as m,ar as y}from"./index-DhIZtpxB.js";import{I as C}from"./Infobox-BQ0aty32.js";import{V as p,g as d}from"./Commands-JrcZK-3j.js";import{H as S}from"./Helpbox-aAB2XP-z.js";import{S as w,a as j,b as k}from"./aws-0_3UsPif.js";import{S as A}from"./docker-8uj__HHK.js";import"./@tanstack-FmcYZMuX.js";import"./@react-router-l3lMcXA2.js";import"./@reactflow-CeVxyqYT.js";import"./play-circle-XSkLR12B.js";import"./CodeSnippet-D0VLxT2A.js";import"./copy-f3XGPPxt.js";import"./help-FuHlZwn0.js";const z="/assets/connectors-video-C9qY4syJ.svg",T=t=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{d:"M20.2524 6.30383C20.1382 5.93755 19.864 5.63994 19.5213 5.4568L12.5537 2.11446C12.3709 2.02289 12.1653 2 11.9826 2C11.7998 2 11.5942 2 11.4115 2.04579L4.4438 5.41102C4.10113 5.57126 3.84984 5.86887 3.75846 6.25805L2.02226 13.7898C1.95372 14.1789 2.0451 14.5681 2.27355 14.8886L7.09379 20.8636C7.36793 21.1383 7.75629 21.3215 8.14465 21.3444H15.8433C16.2545 21.3901 16.6429 21.207 16.8942 20.8636L21.7144 14.8886C21.9429 14.5681 22.0343 14.1789 21.9886 13.7898L20.2524 6.30383Z",fill:"#326DE6"}),a.createElement("path",{d:"M19.1559 13.4921C19.133 13.4921 19.133 13.4921 19.1559 13.4921C19.133 13.4464 19.0645 13.4464 19.0416 13.4464C18.9503 13.4235 18.8589 13.4235 18.7675 13.4235C18.7218 13.4235 18.6761 13.4235 18.6304 13.4006H18.6076C18.3563 13.3777 18.0822 13.3319 17.8309 13.2632C17.7623 13.2403 17.6938 13.1716 17.671 13.103C17.671 13.0801 17.6481 13.0801 17.6481 13.0801L17.4654 13.0343C17.5567 12.3704 17.5111 11.6836 17.374 11.0197C17.2141 10.3558 16.9399 9.71485 16.5744 9.14253L16.7115 9.00517V8.98228C16.7115 8.9136 16.7343 8.82203 16.78 8.77624C16.9856 8.61599 17.1912 8.45575 17.4197 8.34128C17.4654 8.31839 17.5111 8.2955 17.5567 8.2726C17.6481 8.22682 17.7167 8.18103 17.808 8.13525C17.8309 8.11235 17.8537 8.11235 17.8766 8.08946C17.8994 8.06657 17.8994 8.06657 17.8994 8.06657C18.105 7.90632 18.1507 7.63161 17.9908 7.42557C17.9223 7.334 17.7852 7.26532 17.671 7.26532C17.5567 7.26532 17.4425 7.31111 17.3511 7.37979L17.3283 7.40268C17.3054 7.42557 17.2826 7.44847 17.2598 7.44847C17.1912 7.51714 17.1227 7.58582 17.077 7.6545C17.0542 7.70029 17.0085 7.72318 16.9856 7.74607C16.8029 7.92921 16.6201 8.11235 16.4145 8.24971C16.3688 8.2726 16.3231 8.2955 16.2774 8.2955C16.2546 8.2955 16.2089 8.2955 16.1861 8.2726L16.0033 8.40996C15.8205 8.22682 15.6149 8.04368 15.4322 7.86054C14.5869 7.19665 13.5361 6.78458 12.4624 6.67011L12.4395 6.48697L12.4167 6.46408C12.3481 6.41829 12.3253 6.34962 12.3024 6.28094C12.3024 6.02912 12.3024 5.7773 12.3481 5.50258V5.47969C12.3481 5.43391 12.371 5.38812 12.371 5.34234C12.3938 5.25076 12.3938 5.15919 12.4167 5.06762V4.93027C12.4395 4.70134 12.2568 4.47241 12.0283 4.47241C11.8912 4.47241 11.7542 4.5182 11.6628 4.60977C11.5714 4.70134 11.5257 4.8158 11.5257 4.93027V5.04473C11.5257 5.1363 11.5486 5.22787 11.5714 5.31944C11.5943 5.36523 11.5943 5.41101 11.5943 5.4568V5.47969C11.6399 5.73151 11.6399 5.98333 11.6399 6.25804C11.6171 6.32672 11.5943 6.3954 11.5257 6.44119L11.5029 6.46408L11.48 6.64722C11.2287 6.67011 10.9774 6.7159 10.7033 6.76168C9.62961 6.99061 8.64728 7.56293 7.89341 8.36417L7.75634 8.2726H7.73349C7.71065 8.2726 7.68781 8.2955 7.64212 8.2955C7.59643 8.2955 7.52789 8.2726 7.50505 8.24971C7.29944 8.08946 7.11669 7.90632 6.93393 7.72318C6.91108 7.67739 6.86539 7.6545 6.84255 7.63161C6.77401 7.56293 6.72833 7.49425 6.65979 7.42557C6.63695 7.40268 6.6141 7.40268 6.59126 7.37979C6.56841 7.3569 6.56841 7.35689 6.56841 7.35689C6.47703 7.28822 6.36281 7.24243 6.24859 7.24243C6.11152 7.24243 5.99729 7.28822 5.90591 7.40268C5.76885 7.60872 5.81454 7.88343 5.99729 8.04368C6.02014 8.04368 6.02014 8.06657 6.02014 8.06657C6.02014 8.06657 6.06583 8.11236 6.08867 8.11236C6.15721 8.15814 6.24859 8.20393 6.33996 8.24971C6.38565 8.2726 6.43134 8.2955 6.47703 8.31839C6.70548 8.45575 6.91108 8.5931 7.11669 8.75335C7.16238 8.79914 7.20807 8.89071 7.18522 8.95939V8.98228L7.32229 9.11963C7.29944 9.16542 7.2766 9.18831 7.25375 9.2341C6.54557 10.3558 6.27143 11.6836 6.47703 12.9885L6.29427 13.0343C6.29427 13.0572 6.27143 13.0572 6.27143 13.0572C6.24859 13.1259 6.18005 13.1716 6.11152 13.2174C5.86022 13.2861 5.60893 13.3319 5.3348 13.3548H5.31195C5.26626 13.3548 5.22057 13.3548 5.17488 13.3777C5.0835 13.3777 4.99212 13.4006 4.90074 13.4006C4.8779 13.4006 4.85506 13.4235 4.80937 13.4235C4.78652 13.4235 4.78652 13.4235 4.76368 13.4464C4.51238 13.4921 4.35247 13.7211 4.39816 13.9729C4.44385 14.1789 4.64945 14.3163 4.85506 14.2934C4.90074 14.2934 4.92359 14.2934 4.96928 14.2705C4.99212 14.2705 4.99212 14.2705 4.99212 14.2476C4.99212 14.2247 5.03781 14.2247 5.0835 14.2247C5.17488 14.2018 5.26626 14.156 5.3348 14.1331C5.38048 14.1102 5.42617 14.0874 5.47186 14.0874H5.49471C5.72316 13.9958 5.97445 13.9271 6.22574 13.8813H6.24859C6.31712 13.8813 6.38565 13.9042 6.43134 13.95C6.45419 13.95 6.45419 13.9729 6.45419 13.9729L6.65979 13.95C7.00246 15.0031 7.64212 15.9417 8.53306 16.6284C8.73866 16.7887 8.92142 16.9261 9.14987 17.0405L9.05849 17.2237C9.05849 17.2466 9.08134 17.2466 9.08134 17.2466C9.12703 17.3152 9.12703 17.4068 9.10418 17.4755C9.0128 17.7044 8.87573 17.9333 8.73866 18.1394V18.1623C8.71582 18.208 8.69297 18.2309 8.64729 18.2767C8.6016 18.3225 8.55591 18.4141 8.48737 18.5057C8.46453 18.5285 8.46453 18.5514 8.44168 18.5743C8.44168 18.5743 8.44168 18.5972 8.41884 18.5972C8.30461 18.8261 8.39599 19.1009 8.6016 19.2153C8.64728 19.2382 8.71582 19.2611 8.78435 19.2611C8.96711 19.2611 9.12703 19.1466 9.2184 18.9864C9.2184 18.9864 9.2184 18.9635 9.24125 18.9635C9.24125 18.9406 9.26409 18.9177 9.28694 18.8948C9.30978 18.8033 9.35547 18.7346 9.37832 18.643L9.42401 18.5057C9.49254 18.2538 9.60676 18.0249 9.72099 17.796C9.76668 17.7273 9.83521 17.6815 9.90375 17.6586C9.92659 17.6586 9.92659 17.6586 9.92659 17.6357L10.018 17.4526C10.6576 17.7044 11.3201 17.8189 12.0055 17.8189C12.4167 17.8189 12.8279 17.7731 13.2391 17.6815C13.4904 17.6357 13.7417 17.5442 13.9701 17.4755L14.0615 17.6357C14.0843 17.6357 14.0843 17.6357 14.0843 17.6586C14.1529 17.6815 14.2214 17.7273 14.2671 17.796C14.3813 18.0249 14.4727 18.2538 14.5641 18.4828V18.5057L14.6098 18.643C14.6326 18.7346 14.6555 18.8261 14.7011 18.8948C14.724 18.9177 14.724 18.9406 14.7468 18.9635C14.7468 18.9635 14.7468 18.9864 14.7697 18.9864C14.8611 19.1466 15.021 19.2611 15.2037 19.2611C15.2723 19.2611 15.318 19.2382 15.3865 19.2153C15.4779 19.1695 15.5692 19.078 15.5921 18.9635C15.6149 18.849 15.6149 18.7117 15.5692 18.5972C15.5692 18.5743 15.5464 18.5743 15.5464 18.5743C15.5464 18.5514 15.5236 18.5285 15.5007 18.5057C15.455 18.4141 15.4093 18.3454 15.3408 18.2767C15.318 18.2309 15.2951 18.208 15.2494 18.1623V18.1394C15.0895 17.9333 14.9753 17.7044 14.8839 17.4755C14.8611 17.4068 14.8611 17.3152 14.9067 17.2466C14.9067 17.2237 14.9296 17.2237 14.9296 17.2237L14.8611 17.0405C16.049 16.3308 16.9171 15.232 17.3511 13.9271L17.5339 13.95C17.5567 13.95 17.5567 13.9271 17.5567 13.9271C17.6024 13.8813 17.671 13.8584 17.7395 13.8584H17.7623C18.0136 13.9042 18.2649 13.9729 18.4934 14.0645H18.5162C18.5619 14.0874 18.6076 14.1102 18.6533 14.1102C18.7447 14.156 18.8132 14.1789 18.9046 14.2018C18.9274 14.2018 18.9503 14.2247 18.996 14.2247C19.0188 14.2247 19.0188 14.2247 19.0416 14.2476C19.0873 14.2705 19.1102 14.2705 19.1559 14.2705C19.3615 14.2705 19.5442 14.1331 19.6128 13.95C19.5442 13.7211 19.3843 13.5379 19.1559 13.4921ZM12.5766 12.7825L11.9598 13.0801L11.343 12.7825L11.1602 12.1186L11.5943 11.5692H12.3024L12.7365 12.1186L12.5766 12.7825ZM16.3003 11.2944C16.4145 11.7752 16.4373 12.2559 16.3917 12.7367L14.2214 12.1186C14.0158 12.0728 13.9016 11.8668 13.9473 11.6607C13.9701 11.592 13.993 11.5463 14.0386 11.5005L15.752 9.94377C16.0033 10.3558 16.1861 10.8137 16.3003 11.2944ZM15.0667 9.09674L13.2162 10.4245C13.0563 10.5161 12.8279 10.4932 12.7137 10.3329C12.668 10.2872 12.6451 10.2414 12.6451 10.1727L12.508 7.86054C13.4675 7.975 14.3813 8.40996 15.0667 9.09674ZM10.9318 7.92921L11.3887 7.83764L11.2516 10.1269C11.2516 10.3329 11.0688 10.4932 10.8632 10.4932C10.7947 10.4932 10.749 10.4703 10.6805 10.4474L8.83004 9.09674C9.40116 8.52442 10.1322 8.11235 10.9318 7.92921ZM8.1447 9.94377L9.83521 11.4547C9.99513 11.592 10.018 11.821 9.8809 11.9812C9.83521 12.0499 9.78952 12.0728 9.69814 12.0957L7.50505 12.7367C7.41367 11.7752 7.64212 10.7908 8.1447 9.94377ZM7.75634 13.8126L10.018 13.4235C10.2007 13.4235 10.3835 13.5379 10.4063 13.7211C10.4292 13.7898 10.4292 13.8813 10.3835 13.95L9.51539 16.0561C8.71582 15.5296 8.07617 14.7284 7.75634 13.8126ZM12.9421 16.6513C12.6223 16.72 12.2796 16.7658 11.9369 16.7658C11.4572 16.7658 10.9546 16.6742 10.4977 16.5369L11.6171 14.4994C11.7313 14.3621 11.9141 14.3163 12.074 14.4079C12.1425 14.4536 12.1882 14.4994 12.2568 14.5681L13.3533 16.5598C13.2391 16.5827 13.102 16.6056 12.9421 16.6513ZM15.7292 14.6597C15.3865 15.2091 14.9067 15.6898 14.3585 16.0332L13.4675 13.9042C13.4218 13.7211 13.4904 13.5379 13.6731 13.4464C13.7417 13.4235 13.8102 13.4006 13.8787 13.4006L16.1632 13.7898C16.049 14.1102 15.9119 14.4079 15.7292 14.6597Z",fill:"white"})),s="w-5 h-5",N=[{label:"Kubernetes",value:"kubernetes",icon:e.jsx(T,{className:s})},{label:"GCP",value:"gcp",icon:e.jsx(w,{className:s})},{label:"Docker",value:"docker",icon:e.jsx(A,{className:s})},{label:"Azure",value:"azure",icon:e.jsx(j,{className:s})},{label:"AWS",value:"aws",icon:e.jsx(k,{className:s})}],P={help:{href:"https://docs.zenml.io/how-to/auth-management/kubernetes-service-connector",text:"Use the complete guide to set up your Kubernetes Service Connector."},prerequisites:c("kubernetes","Kubernetes"),listCommand:i("kubernetes","Kubernetes"),topInfobox:"The ZenML Kubernetes service connector facilitates authenticating and connecting to a Kubernetes cluster. The connector can be used to access to any generic Kubernetes cluster by providing pre-authenticated Kubernetes python clients to Stack Components that are linked to it and also allows configuring the local Kubernetes CLI (i.e. kubectl).",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation provides you with a comprehensive list of resource types that can be employed to establish your connector. Please refer to the documentation to explore all available options."},I={help:{text:"Use the complete guide to set up your GCP Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/gcp-service-connector"},prerequisites:c("gcp","GCP"),listCommand:i("gcp","GCP"),bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your GCP connector. Please refer to the documentation to explore all available options.",topInfobox:"The ZenML GCP Service Connector facilitates the authentication and access to managed GCP services and resources. These encompass a range of resources, including GCS buckets, GCR container repositories, and GKE clusters. The connector provides support for various authentication methods, including GCP user accounts, service accounts, short-lived OAuth 2.0 tokens, and implicit authentication."},M={help:{text:"Use the complete guide to set up your Docker Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/docker-service-connector"},listCommand:i("docker","Docker"),topInfobox:"The ZenML Docker Service Connector allows authenticating with a Docker or OCI container registry and managing Docker clients for the registry. This connector provides pre-authenticated python-docker Python clients to Stack Components that are linked to it.",bottomInfobox:"No Python packages are required for this Service Connector. All prerequisites are included in the base ZenML Python package. Docker needs to be installed on environments where container images are built and pushed to the target container registry. Please refer to the documentation to explore all available options."},q={help:{text:"Use the complete guide to set up your Azure Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/azure-service-connector"},listCommand:i("azure","Azure"),prerequisites:c("azure","Azure"),topInfobox:"The ZenML Azure Service Connector facilitates the authentication and access to managed Azure services and resources. These encompass a range of resources, including blob storage containers, ACR repositories, and AKS clusters.",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your Azure connector. Please refer to the documentation to explore all available options."},Z={help:{text:"Use the complete guide to set up your AWS Service Connector.",href:"https://docs.zenml.io/how-to/auth-management/aws-service-connector"},listCommand:i("aws","AWS"),prerequisites:c("aws","AWS"),topInfobox:"The ZenML AWS Service Connector facilitates the authentication and access to managed AWS services and resources. These encompass a range of resources, including S3 buckets, ECR container repositories, and EKS clusters. The connector provides support for various authentication methods, including explicit long-lived AWS secret keys, IAM roles, short-lived STS tokens, and implicit authentication.",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your AWS connector. Please refer to the documentation to explore all available options."};function i(t,o){return{command:`zenml service-connector list-types --type ${t}`,description:`List ${o} Connector Types`}}function c(t,o){return[{description:"Install the prerequisites",command:`pip install "zenml[connectors-${t}]"`},{description:`Install the entire ${o} ZenML integration`,command:`zenml integration install ${t}`}]}function V({id:t,selectedType:o,onTypeChange:l}){return e.jsxs(g,{value:o,onValueChange:n=>l(n),children:[e.jsx(f,{id:t,className:"w-[250px] border border-neutral-300 px-2 text-left text-text-md",children:e.jsx(b,{placeholder:"Select Connector Type"})}),e.jsx(v,{className:"",children:N.map(n=>e.jsx(L,{value:n.value,children:e.jsxs("div",{className:"flex items-center gap-1",children:[n.icon,n.label]})},n.value))})]})}function G(){return e.jsx(C,{children:e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-x-2 gap-y-0.5 text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"We are creating a new Connectors experience"}),e.jsx("p",{children:"In the meanwhile you can use the CLI to add and manage your connectors."})]})})}function K(){const t="https://zenml.portal.trainn.co/share/V6magMJZZvMptz1wdnUmPA/embed?autoplay=false";return e.jsxs(m,{className:"flex flex-col-reverse items-stretch overflow-hidden lg:flex-row",children:[e.jsxs("div",{className:"w-full p-7 lg:w-2/3",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Learn More about Connectors"}),e.jsx("p",{className:"mt-2 text-text-lg text-theme-text-secondary",children:"Dive into Service Connector Types for a documented approach to secure authentication and authorization practices."}),e.jsx(p,{videoLink:t,buttonText:"Watch the Starter Guide (2 min)"})]}),e.jsx("div",{className:"flex w-full items-center justify-center bg-primary-50 lg:w-1/3",children:e.jsx(p,{fallbackImage:e.jsx("img",{src:z,alt:"Purple squares with text indicating a starter guide for secrets",className:"h-full w-full"}),videoLink:t,isButton:!1})})]})}function H(){const[t,o]=a.useState("kubernetes");return e.jsxs("section",{className:"space-y-5 pl-8 pr-5",children:[e.jsx(V,{selectedType:t,onTypeChange:o,id:"connector-select"}),D(t)]})}function r({topInfobox:t,bottomInfobox:o,listCommand:l,prerequisites:n,help:u}){return e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"text-text-md",intent:"neutral",children:t}),d(l),n&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"Prerequisites"}),n.map((h,x)=>e.jsx(a.Fragment,{children:d(h)},x))]}),e.jsx(C,{className:"text-text-md",intent:"neutral",children:o}),e.jsx(S,{text:u.text,link:u.href})]})}function D(t){switch(t){case"kubernetes":return r(P);case"gcp":return r(I);case"docker":return r(M);case"azure":return r(q);case"aws":return r(Z)}}function t1(){return e.jsxs(m,{className:"space-y-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Secrets"}),e.jsx(G,{}),e.jsx(K,{}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(y,{}),"Administering your Connectors"]}),e.jsx(H,{})]})}export{t1 as default};
@@ -1 +0,0 @@
1
- import{j as s,r as p}from"./@radix-BXWm7HOa.js";import{R as u}from"./refresh-COb6KYDi.js";import{k as d,l as h,j as f,n as x,F as g,m as j,r as o,T as P,z as r,o as y,P as b,h as N,D as v,S as l}from"./index-DhIZtpxB.js";import{S as w,P as S}from"./SearchField-C9R0mdaX.js";import{q as E,a as T}from"./@tanstack-FmcYZMuX.js";import{o as C}from"./url-hcMJkz8p.js";import{S as _}from"./terminal-grtjrIEJ.js";import{C as F}from"./CopyButton-Dbo52T1K.js";import{g as R,E as L}from"./ExecutionStatus-jH4OrWBq.js";import{L as c,c as k}from"./@react-router-l3lMcXA2.js";import"./@reactflow-CeVxyqYT.js";import"./dots-horizontal-sKQlWEni.js";import"./chevron-right-double-Dk8e2L99.js";import"./index-Bd1xgUQG.js";import"./copy-f3XGPPxt.js";import"./check-circle-1_I207rW.js";async function q({params:e}){const t=d(h.pipelines.all+"?"+C(e)),a=await f(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(a.status===404&&x(),!a.ok)throw new g({message:"Error while fetching pipelines",status:a.status,statusText:a.statusText});return a.json()}const m={all:["pipelines"],pipelineList:e=>E({queryKey:[...m.all,e],queryFn:async()=>q({params:e})})};function z(){return[{id:"name",header:"Pipeline",accessorFn:e=>{var t;return{name:e.name,status:(t=e.body)==null?void 0:t.latest_run_status}},cell:({getValue:e})=>{const{name:t,status:a}=e();return s.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[s.jsx(j,{className:`h-5 w-5 ${R(a)}`}),s.jsxs(c,{to:o.pipelines.namespace(encodeURIComponent(t)),className:"flex items-center gap-1",children:[s.jsx("h2",{className:"text-text-md font-semibold",children:t}),s.jsx(L,{status:a}),s.jsx(F,{copyText:t})]})]})}},{id:"latest-run",header:"Latest Run",accessorFn:e=>{var t,a;return{status:(t=e.body)==null?void 0:t.latest_run_status,runId:(a=e.body)==null?void 0:a.latest_run_id}},cell:({getValue:e})=>{const{runId:t,status:a}=e();return!t||!a?s.jsx("div",{children:"No run"}):s.jsx(c,{to:o.runs.detail(t),children:s.jsxs(P,{emphasis:"subtle",rounded:!1,className:"inline-flex items-center gap-0.5",color:B(a),children:[s.jsx(_,{className:`h-3 w-3 ${A(a)}`}),t==null?void 0:t.split("-")[0]]})})}}]}function A(e){if(!e)return"fill-theme-text-brand";switch(e){case"running":return"fill-orange-700";case"cached":return"fill-theme-text-secondary";case"completed":return"fill-success-800";case"failed":return"fill-error-800";case"initializing":return"fill-theme-text-brand"}}function B(e){if(!e)return"purple";switch(e){case"running":return"orange";case"cached":return"grey";case"completed":return"green";case"failed":return"red";case"initializing":return"purple"}}const i=1,D=r.object({page:r.coerce.number().min(i).optional().default(i).catch(i),name:r.string().optional(),operator:r.enum(["and","or"]).optional()});function I(){const[e]=k(),{page:t,name:a,operator:n}=D.parse({page:e.get("page")||void 0,name:e.get("name")||void 0,operator:e.get("operator")||void 0});return{page:t,name:a,logical_operator:n}}function te(){const{setCurrentBreadcrumbData:e}=y(),t=I(),{data:a,refetch:n}=T({...m.pipelineList({...t,sort_by:"desc:latest_run"}),throwOnError:!0});return p.useEffect(()=>{e({segment:"pipelines",data:null})},[]),s.jsxs("div",{children:[s.jsx(b,{children:s.jsx("h1",{className:"text-display-xs font-semibold",children:"Pipelines"})}),s.jsx("section",{className:"p-5",children:s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(w,{searchParams:t}),s.jsx("div",{className:"flex justify-between",children:s.jsxs(N,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[s.jsx(u,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),s.jsxs("div",{className:"flex flex-col items-center gap-5",children:[s.jsx("div",{className:"w-full",children:a?s.jsx(v,{columns:z(),data:a.items}):s.jsx(l,{className:"h-[500px] w-full"})}),a?a.total_pages>1&&s.jsx(S,{searchParams:t,paginate:a}):s.jsx(l,{className:"h-[36px] w-[300px]"})]})]})})]})}export{te as default};
@@ -1 +0,0 @@
1
- import{r as C}from"./@radix-BXWm7HOa.js";const t=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM11.2451 7.43304C11.2546 7.43912 11.264 7.44517 11.2734 7.45121L15.994 10.4859C16.0026 10.4914 16.0112 10.497 16.02 10.5026C16.171 10.5996 16.3361 10.7057 16.4676 10.8083C16.6071 10.917 16.8273 11.1089 16.9571 11.4162C17.1148 11.7894 17.1148 12.2106 16.9571 12.5838C16.8273 12.8911 16.6071 13.083 16.4676 13.1917C16.3361 13.2943 16.171 13.4004 16.02 13.4974C16.0112 13.503 16.0026 13.5086 15.994 13.5141L11.2734 16.5488C11.264 16.5548 11.2545 16.5609 11.2451 16.567C11.0694 16.68 10.8846 16.7988 10.7219 16.8835C10.5582 16.9687 10.2611 17.1066 9.89314 17.0804C9.45914 17.0494 9.05999 16.8314 8.79923 16.4831C8.57813 16.1878 8.5335 15.8633 8.51664 15.6796C8.49989 15.4969 8.49995 15.2772 8.49999 15.0683C8.5 15.057 8.5 15.0458 8.5 15.0347V8.96533C8.5 8.95417 8.5 8.94296 8.49999 8.93173C8.49995 8.72279 8.49989 8.50311 8.51664 8.32042C8.5335 8.13665 8.57813 7.81219 8.79923 7.51687C9.05999 7.16856 9.45914 6.95064 9.89314 6.91964C10.2611 6.89336 10.5582 7.03127 10.7219 7.11647C10.8846 7.20117 11.0694 7.32001 11.2451 7.43304ZM10.5 9.33167V14.6683L14.6507 12L10.5 9.33167Z"}));export{t as S};
@@ -1,14 +0,0 @@
1
- import{q as u}from"./@tanstack-FmcYZMuX.js";import{k as p,l as h,j as v,n as L,F as g,z as S}from"./index-DhIZtpxB.js";import{o as w}from"./url-hcMJkz8p.js";import{f as E}from"./stack-detail-query-B-US_-wa.js";import{r as a,j as c,g as R}from"./@radix-BXWm7HOa.js";import{S as T}from"./database-cXYNX9tt.js";import{S as F}from"./layout-D6oiSbfd.js";async function A(e){const C=p(h.stackDeployment.config)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&L(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stack deployment config");throw new g({status:t.status,statusText:t.statusText,message:r})}return t.json()}async function B(e){const C=p(h.stackDeployment.info)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&L(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stack deployment info");throw new g({status:t.status,statusText:t.statusText,message:r})}return t.json()}async function P(e){const C=p(h.stackDeployment.stack)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&L(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching the deployed stack");throw new g({status:t.status,statusText:t.statusText,message:r})}return t.json()}async function b(e){const C=p(h.stacks.all)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&L(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stacks");throw new g({status:t.status,statusText:t.statusText,message:r})}return t.json()}const d={all:["stacks"],stackDeployment:["stack-deployment"],stackList:e=>u({queryKey:[...d.all,e],queryFn:async()=>b(e)}),stackDetail:e=>u({queryKey:[...d.all,e],queryFn:async()=>E({stackId:e})}),stackDeploymentInfo:e=>u({queryKey:[...d.stackDeployment,"info",e],queryFn:async()=>B(e)}),stackDeploymentStack:e=>u({queryKey:[...d.stackDeployment,"stack",e],queryFn:async()=>P(e)}),stackDeploymentConfig:e=>u({queryKey:[...d.stackDeployment,"config",e],queryFn:async()=>A(e)})},_=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V13.5343C22 14.2041 22 14.7569 21.9691 15.2095C21.9371 15.6788 21.8686 16.1129 21.6955 16.5307C21.2895 17.5108 20.5108 18.2895 19.5307 18.6955C19.1129 18.8686 18.6788 18.9371 18.2095 18.9691C17.7569 19 17.2041 19 16.5343 19H16.5C15.9634 19 15.8569 19.0063 15.7702 19.0268C15.6192 19.0624 15.4784 19.1328 15.3593 19.2322C15.2909 19.2893 15.2219 19.3707 14.9 19.8L13.4231 21.7693C13.3297 21.8938 13.2242 22.0346 13.1226 22.1476C13.0106 22.2721 12.8244 22.4555 12.5437 22.5647C12.194 22.7007 11.806 22.7007 11.4563 22.5647C11.1756 22.4555 10.9894 22.2721 10.8774 22.1476C10.7758 22.0346 10.6703 21.8938 10.577 21.7693L9.1 19.8C8.77806 19.3708 8.70913 19.2893 8.64075 19.2322C8.52156 19.1328 8.38085 19.0624 8.22975 19.0268C8.14307 19.0063 8.03656 19 7.5 19H7.46573C6.79594 19 6.24307 19 5.79046 18.9691C5.32118 18.9371 4.88708 18.8686 4.46927 18.6955C3.48915 18.2895 2.71046 17.5108 2.30448 16.5307C2.13142 16.1129 2.06288 15.6788 2.03087 15.2095C1.99998 14.7569 1.99999 14.2041 2 13.5343L2 7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V13.5C4 14.2126 4.00054 14.697 4.02623 15.0734C4.0513 15.4409 4.09694 15.6319 4.15224 15.7654C4.35523 16.2554 4.74458 16.6448 5.23463 16.8478C5.36813 16.9031 5.55915 16.9487 5.9266 16.9738C6.30304 16.9995 6.78741 17 7.5 17C7.52818 17 7.55611 17 7.58382 16.9999C7.9894 16.9996 8.34611 16.9992 8.68926 17.0803C9.14254 17.1873 9.56467 17.3983 9.92224 17.6967C10.1929 17.9227 10.4067 18.2082 10.6497 18.5329C10.6663 18.5551 10.6831 18.5775 10.7 18.6L12 20.3333L13.3 18.6C13.3169 18.5775 13.3337 18.5551 13.3503 18.5329C13.5933 18.2082 13.8071 17.9227 14.0778 17.6967C14.4353 17.3983 14.8575 17.1873 15.3107 17.0803C15.6539 16.9992 16.0106 16.9996 16.4162 16.9999C16.4439 17 16.4718 17 16.5 17C17.2126 17 17.697 16.9995 18.0734 16.9738C18.4409 16.9487 18.6319 16.9031 18.7654 16.8478C19.2554 16.6448 19.6448 16.2554 19.8478 15.7654C19.9031 15.6319 19.9487 15.4409 19.9738 15.0734C19.9995 14.697 20 14.2126 20 13.5V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V10.5C13 11.0523 12.5523 11.5 12 11.5C11.4477 11.5 11 11.0523 11 10.5V7C11 6.44772 11.4477 6 12 6ZM11 14C11 13.4477 11.4477 13 12 13H12.01C12.5623 13 13.01 13.4477 13.01 14C13.01 14.5523 12.5623 15 12.01 15H12C11.4477 15 11 14.5523 11 14Z"})),q=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H12C11.4477 4 11 3.55229 11 3C11 2.44772 11.4477 2 12 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.71569 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55228 12 9 12.4477 9 13V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 3.29289C9.09763 3.68342 9.09763 4.31658 8.70711 4.70711L4.70711 8.70711C4.31658 9.09763 3.68342 9.09763 3.29289 8.70711L1.29289 6.70711C0.902369 6.31658 0.902369 5.68342 1.29289 5.29289C1.68342 4.90237 2.31658 4.90237 2.70711 5.29289L4 6.58579L7.29289 3.29289C7.68342 2.90237 8.31658 2.90237 8.70711 3.29289Z"})),O=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56808 1C9.5787 1 9.58933 1.00001 9.59997 1.00001L14.4319 1C14.6843 0.999973 14.93 0.999943 15.1382 1.01695C15.3668 1.03563 15.6365 1.07969 15.908 1.21799C16.2843 1.40974 16.5902 1.7157 16.782 2.09202C16.9203 2.36345 16.9644 2.63318 16.983 2.86178C16.9869 2.90871 16.9898 2.95756 16.9921 3.00797C17.3873 3.02072 17.7257 3.05337 18.0353 3.1363C19.4156 3.50617 20.4938 4.58436 20.8637 5.96473C21.0008 6.47638 21.0005 7.06704 21 7.86243C21 7.90762 21 7.95347 21 8.00001V17.2413C21 18.0463 21 18.7106 20.9558 19.2518C20.9099 19.8139 20.8113 20.3306 20.564 20.816C20.1805 21.5686 19.5686 22.1805 18.8159 22.564C18.3306 22.8113 17.8139 22.9099 17.2518 22.9558C16.7106 23 16.0463 23 15.2413 23H8.75865C7.95369 23 7.28934 23 6.74815 22.9558C6.18605 22.9099 5.66935 22.8113 5.18401 22.564C4.43136 22.1805 3.81944 21.5686 3.43595 20.816C3.18866 20.3306 3.09009 19.8139 3.04417 19.2518C2.99995 18.7106 2.99996 18.0463 2.99997 17.2413L2.99997 8.00001C2.99997 7.95347 2.99995 7.90762 2.99993 7.86242C2.99949 7.06704 2.99917 6.47638 3.13627 5.96473C3.50614 4.58436 4.58433 3.50617 5.9647 3.1363C6.27421 3.05337 6.61264 3.02072 7.00782 3.00796C7.01012 2.95756 7.01308 2.90871 7.01692 2.86178C7.0356 2.63318 7.07966 2.36345 7.21796 2.09202C7.40971 1.7157 7.71567 1.40974 8.09199 1.21799C8.36342 1.07969 8.63315 1.03563 8.86174 1.01695C9.0699 0.999943 9.31569 0.999973 9.56808 1ZM7.00865 5.00956C6.74556 5.01867 6.60245 5.03597 6.48234 5.06815C5.79215 5.25309 5.25306 5.79218 5.06812 6.48237C5.00856 6.70465 4.99997 7.00565 4.99997 8.00001V17.2C4.99997 18.0566 5.00075 18.6389 5.03753 19.089C5.07335 19.5274 5.13827 19.7516 5.21796 19.908C5.40971 20.2843 5.71567 20.5903 6.09199 20.782C6.24839 20.8617 6.4726 20.9266 6.91101 20.9625C7.3611 20.9992 7.94339 21 8.79997 21H15.2C16.0566 21 16.6388 20.9992 17.0889 20.9625C17.5274 20.9266 17.7516 20.8617 17.908 20.782C18.2843 20.5903 18.5902 20.2843 18.782 19.908C18.8617 19.7516 18.9266 19.5274 18.9624 19.089C18.9992 18.6389 19 18.0566 19 17.2V8.00001C19 7.00565 18.9914 6.70465 18.9318 6.48237C18.7469 5.79218 18.2078 5.25309 17.5176 5.06815C17.3975 5.03597 17.2544 5.01867 16.9913 5.00956C16.9891 5.05378 16.9864 5.09676 16.983 5.13824C16.9644 5.36683 16.9203 5.63656 16.782 5.90799C16.5902 6.28431 16.2843 6.59027 15.908 6.78202C15.6365 6.92032 15.3668 6.96438 15.1382 6.98306C14.93 7.00007 14.6843 7.00004 14.4319 7.00001L9.59997 7.00001C9.58933 7.00001 9.5787 7.00001 9.56808 7.00001C9.31569 7.00004 9.0699 7.00007 8.86174 6.98306C8.63315 6.96438 8.36342 6.92032 8.09199 6.78202C7.71567 6.59027 7.40971 6.28431 7.21796 5.90799C7.07966 5.63656 7.0356 5.36683 7.01692 5.13824C7.01353 5.09676 7.01082 5.05378 7.00865 5.00956ZM15 3.60001C15 3.30348 14.9992 3.14122 14.9897 3.02464C14.9893 3.02 14.9889 3.0156 14.9885 3.01145C14.9844 3.01107 14.98 3.01069 14.9753 3.01031C14.8588 3.00078 14.6965 3.00001 14.4 3.00001H9.59997C9.30345 3.00001 9.14119 3.00078 9.02461 3.01031C9.01997 3.01069 9.01557 3.01107 9.01142 3.01145C9.01104 3.0156 9.01066 3.02 9.01028 3.02464C9.00075 3.14122 8.99997 3.30348 8.99997 3.60001V4.40001C8.99997 4.69653 9.00075 4.85879 9.01028 4.97537C9.01066 4.98001 9.01104 4.98441 9.01142 4.98856C9.01557 4.98894 9.01997 4.98932 9.02461 4.9897C9.14119 4.99923 9.30345 5.00001 9.59997 5.00001H14.4C14.6965 5.00001 14.8588 4.99923 14.9753 4.9897C14.98 4.98932 14.9844 4.98894 14.9885 4.98856C14.9889 4.98441 14.9893 4.98001 14.9897 4.97537C14.9992 4.85879 15 4.69653 15 4.40001V3.60001Z"})),Z=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V16.0586C22 16.082 22.0001 16.1061 22.0002 16.1308C22.0011 16.3946 22.0024 16.7264 21.899 17.0391C21.8097 17.3095 21.6637 17.5576 21.4707 17.767C21.2476 18.0092 20.9569 18.1693 20.7258 18.2966C20.7042 18.3085 20.6831 18.3201 20.6627 18.3314L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.2742 18.2966C3.04307 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.6907 2.33632 6.44253 2.52927 6.23315C2.75244 5.99097 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52436C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM12 3.14907C11.9985 3.1498 11.9969 3.15056 11.9952 3.15136C11.9375 3.1792 11.8602 3.22173 11.7086 3.30592L5.05914 7.00008L12 10.8561L18.9408 7.00006L12.2914 3.30592C12.1398 3.22173 12.0625 3.1792 12.0048 3.15136C12.0031 3.15056 12.0015 3.1498 12 3.14907ZM20 8.69955V16.0586C20 16.2416 19.9996 16.3353 19.9955 16.4031C19.9954 16.4051 19.9953 16.407 19.9951 16.4088C19.9936 16.4098 19.992 16.4108 19.9903 16.4119C19.933 16.4484 19.8513 16.4943 19.6914 16.5831L13 20.3006L13 12.5885L20 8.69955ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.0097 16.4119C4.067 16.4484 4.14866 16.4943 4.30862 16.5831L11 20.3006L11 12.5885Z"})),K=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.09 4.05463C9.96938 4.01302 9.8127 3.99997 9.02229 3.99997H5.2C4.62345 3.99997 4.25117 4.00075 3.96784 4.0239C3.69617 4.04609 3.59546 4.08377 3.54601 4.10896C3.35785 4.20484 3.20487 4.35782 3.109 4.54598C3.0838 4.59542 3.04612 4.69614 3.02393 4.96781C3.00357 5.21695 3.00052 5.53487 3.00007 5.99997H11.382L10.99 5.2161C10.6366 4.50915 10.5548 4.37484 10.4637 4.28555C10.3578 4.18184 10.2301 4.10296 10.09 4.05463ZM13.618 5.99997L12.7789 4.32168C12.7602 4.28429 12.7417 4.24719 12.7234 4.2104C12.4586 3.67916 12.2258 3.21196 11.8631 2.85672C11.5454 2.54557 11.1625 2.30893 10.7421 2.16394C10.2622 1.99839 9.74022 1.99908 9.14666 1.99986C9.10555 1.99992 9.0641 1.99997 9.02229 1.99997L5.16146 1.99997C4.63431 1.99995 4.17955 1.99994 3.80497 2.03054C3.40963 2.06284 3.01641 2.13416 2.63803 2.32695C2.07354 2.61457 1.6146 3.07351 1.32698 3.638C1.13419 4.01638 1.06287 4.4096 1.03057 4.80494C0.999967 5.17952 0.999983 5.63428 1 6.16143L1 16.2413C0.999989 17.0462 0.999978 17.7106 1.0442 18.2518C1.09012 18.8139 1.18868 19.3306 1.43598 19.8159C1.81947 20.5686 2.43139 21.1805 3.18404 21.564C3.66938 21.8113 4.18608 21.9099 4.74818 21.9558C5.28937 22 5.95372 22 6.75868 22H17.2413C18.0463 22 18.7106 22 19.2518 21.9558C19.8139 21.9099 20.3306 21.8113 20.816 21.564C21.5686 21.1805 22.1805 20.5686 22.564 19.8159C22.8113 19.3306 22.9099 18.8139 22.9558 18.2518C23 17.7106 23 17.0463 23 16.2413V11.7586C23 10.9537 23 10.2893 22.9558 9.74815C22.9099 9.18605 22.8113 8.66934 22.564 8.18401C22.1805 7.43136 21.5686 6.81944 20.816 6.43595C20.3306 6.18865 19.8139 6.09009 19.2518 6.04417C18.7106 5.99995 18.0463 5.99996 17.2413 5.99997L13.618 5.99997ZM12.9799 7.99997C12.9938 8.00026 13.0077 8.00026 13.0217 7.99997H17.2C18.0566 7.99997 18.6389 8.00075 19.089 8.03752C19.5274 8.07334 19.7516 8.13827 19.908 8.21796C20.2843 8.40971 20.5903 8.71567 20.782 9.09199C20.8617 9.24839 20.9266 9.47259 20.9625 9.91101C20.9992 10.3611 21 10.9434 21 11.8V16.2C21 17.0566 20.9992 17.6388 20.9625 18.0889C20.9266 18.5273 20.8617 18.7516 20.782 18.908C20.5903 19.2843 20.2843 19.5902 19.908 19.782C19.7516 19.8617 19.5274 19.9266 19.089 19.9624C18.6389 19.9992 18.0566 20 17.2 20H6.8C5.94342 20 5.36113 19.9992 4.91104 19.9624C4.47262 19.9266 4.24842 19.8617 4.09202 19.782C3.7157 19.5902 3.40974 19.2843 3.21799 18.908C3.1383 18.7516 3.07337 18.5273 3.03755 18.0889C3.00078 17.6388 3 17.0566 3 16.2V7.99997H12.9799Z"})),$=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0331 3.55266C16.2491 2.10798 17.4952 1 19 1C20.6569 1 22 2.34315 22 4C22 5.65685 20.6569 7 19 7C18.0222 7 17.1537 6.53221 16.606 5.80823L14.7071 7.70711C14.5196 7.89464 14.2652 8 14 8H11.3028L8.5547 9.83205C8.39043 9.94156 8.19742 10 8 10H6C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8H7.69722L10.4453 6.16795C10.6096 6.05844 10.8026 6 11 6H13.5858L16.0331 3.55266ZM19 3C18.4477 3 18 3.44771 18 4C18 4.55228 18.4477 5 19 5C19.5523 5 20 4.55228 20 4C20 3.44772 19.5523 3 19 3ZM4.62228 2.69442C6.62277 1.19905 9.25414 1.36395 11.3162 2.05132C11.8402 2.22596 12.1233 2.79228 11.9487 3.31623C11.774 3.84017 11.2077 4.12333 10.6838 3.94868C8.90412 3.35547 7.06274 3.36718 5.81971 4.29634C4.46575 5.30843 3 7.24435 3 12C3 12.9382 3.05705 13.7667 3.15904 14.5H4.99576C5.16125 14.5 5.32416 14.4589 5.46986 14.3805L11.7479 11H16.1707C16.5825 9.83481 17.6938 9 19 9C20.6569 9 22 10.3431 22 12C22 13.6569 20.6569 15 19 15C17.6938 15 16.5825 14.1652 16.1707 13H12.2521L6.41806 16.1414C5.98094 16.3768 5.49223 16.5 4.99576 16.5H3.61096C4.1633 18.166 5.01143 19.0995 5.81971 19.7037C7.06274 20.6328 8.90412 20.6445 10.6838 20.0513C11.2077 19.8767 11.774 20.1598 11.9487 20.6838C12.1233 21.2077 11.8402 21.774 11.3162 21.9487C9.25414 22.636 6.62277 22.8009 4.62228 21.3056C2.65716 19.8367 1 17.241 1 12C1 6.75899 2.65716 4.16335 4.62228 2.69442ZM19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11ZM8.79289 16.2929C8.98043 16.1054 9.23478 16 9.5 16H14C14.2652 16 14.5196 16.1054 14.7071 16.2929L16.606 18.1918C17.1537 17.4678 18.0222 17 19 17C20.6569 17 22 18.3431 22 20C22 21.6569 20.6569 23 19 23C17.4952 23 16.2491 21.892 16.0331 20.4473L13.5858 18H9.91421L9.20711 18.7071C8.81658 19.0976 8.18342 19.0976 7.79289 18.7071C7.40237 18.3166 7.40237 17.6834 7.79289 17.2929L8.79289 16.2929ZM19 19C18.4477 19 18 19.4477 18 20C18 20.5523 18.4477 21 19 21C19.5523 21 20 20.5523 20 20C20 19.4477 19.5523 19 19 19Z"})),G=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L12.7846 2.41823L13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315L21.1563 6.52296L21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153L22 12.5001C22 13.0524 21.5523 13.5001 21 13.5001C20.4477 13.5001 20 13.0524 20 12.5001L20 8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.3006L13.5144 20.0148C13.9971 19.7466 14.6059 19.9205 14.8742 20.4033C15.1424 20.8861 14.9684 21.4949 14.4856 21.7631L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.27421 18.2966C3.04308 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.69069 2.33632 6.44253 2.52927 6.23315C2.75244 5.99098 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L3.33733 5.66872L6.99904 3.63444C7.00862 3.62891 7.01828 3.62354 7.02802 3.61834L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52437C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM7.5 5.64404L5.05914 7.00008L12 10.8561L14.4408 9.50006L7.5 5.64404ZM16.5 8.3561L9.55913 4.50008L11.7086 3.30592C11.8602 3.22174 11.9375 3.1792 11.9952 3.15136C11.9969 3.15056 11.9985 3.1498 12 3.14907C12.0015 3.1498 12.0031 3.15056 12.0048 3.15136C12.0625 3.1792 12.1398 3.22173 12.2914 3.30592L18.9408 7.00006L16.5 8.3561ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.00971 16.4119C4.067 16.4484 4.14867 16.4943 4.30862 16.5831L3.82297 17.4573L4.30862 16.5831L11 20.3006L11 12.5885ZM19 14.0001C19.5523 14.0001 20 14.4478 20 15.0001V17.0001H22C22.5523 17.0001 23 17.4478 23 18.0001C23 18.5524 22.5523 19.0001 22 19.0001H20V21.0001C20 21.5524 19.5523 22.0001 19 22.0001C18.4477 22.0001 18 21.5524 18 21.0001V19.0001H16C15.4477 19.0001 15 18.5524 15 18.0001C15 17.4478 15.4477 17.0001 16 17.0001H18V15.0001C18 14.4478 18.4477 14.0001 19 14.0001Z"})),I=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6634 4.40771C20.7762 3.73089 20.1894 3.14411 19.5126 3.25691L16.114 3.82335C16.8361 4.39318 17.5361 5.01441 18.2079 5.68618C18.8896 6.36789 19.5193 7.07869 20.096 7.81215L20.6634 4.40771ZM19.3551 10.1804C18.6205 9.10701 17.7659 8.07266 16.7937 7.10039C15.8308 6.13747 14.8069 5.29004 13.7446 4.56019L9.9976 8.56559C9.98958 8.57449 9.9814 8.58322 9.97309 8.5918L7.17626 11.5815C6.05341 12.7818 5.89351 14.5446 6.68049 15.9047L12.2925 10.2927C12.683 9.90216 13.3162 9.90216 13.7067 10.2927C14.0973 10.6832 14.0973 11.3164 13.7067 11.7069L8.11719 17.2965C9.46251 18.0183 11.1682 17.8391 12.3388 16.7441L15.3245 13.9509C15.3357 13.94 15.3472 13.9293 15.3589 13.9188L19.3551 10.1804ZM17.1759 14.9578L20.7743 11.5915C21.327 11.0744 21.694 10.3896 21.8184 9.64298L22.6362 4.7365C22.9746 2.70604 21.2143 0.945715 19.1838 1.28413L14.2773 2.10187C13.5307 2.22631 12.8459 2.59329 12.3288 3.14605L8.96251 6.74448L6.69595 5.98896C6.03378 5.76824 5.30444 5.9087 4.77161 6.35955L1.91445 8.77715C0.744598 9.76702 1.07695 11.6508 2.51492 12.1806L4.32557 12.8477C3.98551 14.3806 4.29093 16.0249 5.23466 17.3505L2.79252 19.7927C2.402 20.1832 2.402 20.8164 2.79252 21.2069C3.18305 21.5974 3.81621 21.5974 4.20674 21.2069L6.66301 18.7506C7.97201 19.6433 9.57553 19.9269 11.0727 19.5947L11.7397 21.4052C12.2695 22.8432 14.1533 23.1756 15.1432 22.0057L17.5608 19.1485C18.0116 18.6157 18.1521 17.8864 17.9314 17.2242L17.1759 14.9578ZM15.5688 16.4611L13.7051 18.2046C13.4573 18.4364 13.1941 18.6417 12.9189 18.8205L13.6164 20.7138L16.034 17.8567L15.5688 16.4611ZM5.09979 11.0015C5.27862 10.7263 5.48391 10.463 5.71572 10.2152L7.45914 8.35154L6.06349 7.88633L3.20634 10.3039L5.09979 11.0015Z"})),W=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.56811 2C4.57873 2 4.58936 2.00001 4.60001 2.00001H5.40001C5.41065 2.00001 5.42128 2 5.4319 2C5.68429 1.99997 5.93008 1.99994 6.13824 2.01695C6.36683 2.03563 6.63656 2.07969 6.90799 2.21799C7.28431 2.40974 7.59027 2.7157 7.78202 3.09202C7.92032 3.36345 7.96438 3.63318 7.98306 3.86178C7.98669 3.90624 7.98955 3.95241 7.99179 4.00001L16.0082 4.00001C16.0105 3.95241 16.0133 3.90624 16.0169 3.86178C16.0356 3.63318 16.0797 3.36345 16.218 3.09202C16.4097 2.7157 16.7157 2.40974 17.092 2.21799C17.3634 2.07969 17.6332 2.03563 17.8618 2.01695C18.0699 1.99994 18.3157 1.99997 18.5681 2H19.4319C19.6843 1.99997 19.9301 1.99994 20.1382 2.01695C20.3668 2.03563 20.6366 2.07969 20.908 2.21799C21.2843 2.40974 21.5903 2.7157 21.782 3.09202C21.9203 3.36345 21.9644 3.63318 21.9831 3.86178C22.0001 4.06993 22 4.31571 22 4.56809V5.43192C22 5.6843 22.0001 5.93008 21.9831 6.13824C21.9644 6.36683 21.9203 6.63656 21.782 6.90799C21.5903 7.28431 21.2843 7.59027 20.908 7.78202C20.6366 7.92032 20.3668 7.96438 20.1382 7.98306C20.0938 7.98669 20.0476 7.98955 20 7.99179V16.0082C20.0476 16.0105 20.0938 16.0133 20.1382 16.0169C20.3668 16.0356 20.6366 16.0797 20.908 16.218C21.2843 16.4097 21.5903 16.7157 21.782 17.092C21.9203 17.3634 21.9644 17.6332 21.9831 17.8618C22.0001 18.0699 22 18.3157 22 18.5681V19.4319C22 19.6843 22.0001 19.9301 21.9831 20.1382C21.9644 20.3668 21.9203 20.6366 21.782 20.908C21.5903 21.2843 21.2843 21.5903 20.908 21.782C20.6366 21.9203 20.3668 21.9644 20.1382 21.9831C19.9301 22.0001 19.6843 22 19.4319 22H18.5681C18.3157 22 18.0699 22.0001 17.8618 21.9831C17.6332 21.9644 17.3634 21.9203 17.092 21.782C16.7157 21.5903 16.4097 21.2843 16.218 20.908C16.0797 20.6366 16.0356 20.3668 16.0169 20.1382C16.0133 20.0938 16.0105 20.0476 16.0082 20H7.99179C7.98955 20.0476 7.98669 20.0938 7.98306 20.1382C7.96438 20.3668 7.92032 20.6366 7.78202 20.908C7.59027 21.2843 7.28431 21.5903 6.90799 21.782C6.63656 21.9203 6.36683 21.9644 6.13824 21.9831C5.93008 22.0001 5.6843 22 5.43192 22H4.56809C4.31571 22 4.06993 22.0001 3.86178 21.9831C3.63318 21.9644 3.36345 21.9203 3.09202 21.782C2.7157 21.5903 2.40974 21.2843 2.21799 20.908C2.07969 20.6366 2.03563 20.3668 2.01695 20.1382C1.99994 19.9301 1.99997 19.6843 2 19.4319V18.5681C1.99997 18.3157 1.99994 18.0699 2.01695 17.8618C2.03563 17.6332 2.07969 17.3634 2.21799 17.092C2.40974 16.7157 2.7157 16.4097 3.09202 16.218C3.36345 16.0797 3.63318 16.0356 3.86178 16.0169C3.90624 16.0133 3.95241 16.0105 4.00001 16.0082V7.99179C3.95241 7.98955 3.90624 7.98669 3.86178 7.98306C3.63318 7.96438 3.36345 7.92032 3.09202 7.78202C2.7157 7.59027 2.40974 7.28431 2.21799 6.90799C2.07969 6.63656 2.03563 6.36683 2.01695 6.13824C1.99994 5.93008 1.99997 5.68429 2 5.4319C2 5.42128 2.00001 5.41065 2.00001 5.40001V4.60001C2.00001 4.58936 2 4.57873 2 4.56811C1.99997 4.31572 1.99994 4.06993 2.01695 3.86178C2.03563 3.63318 2.07969 3.36345 2.21799 3.09202C2.40974 2.7157 2.7157 2.40974 3.09202 2.21799C3.36345 2.07969 3.63318 2.03563 3.86178 2.01695C4.06993 1.99994 4.31572 1.99997 4.56811 2ZM6.00001 7.99179V16.0082C6.0476 16.0105 6.09377 16.0133 6.13824 16.0169C6.36683 16.0356 6.63656 16.0797 6.90799 16.218C7.28431 16.4097 7.59027 16.7157 7.78202 17.092C7.92032 17.3634 7.96438 17.6332 7.98306 17.8618C7.98669 17.9062 7.98955 17.9524 7.99179 18H16.0082C16.0105 17.9524 16.0133 17.9062 16.0169 17.8618C16.0356 17.6332 16.0797 17.3634 16.218 17.092C16.4097 16.7157 16.7157 16.4097 17.092 16.218C17.3634 16.0797 17.6332 16.0356 17.8618 16.0169C17.9062 16.0133 17.9524 16.0105 18 16.0082V7.99179C17.9524 7.98955 17.9062 7.98669 17.8618 7.98306C17.6332 7.96438 17.3634 7.92032 17.092 7.78202C16.7157 7.59027 16.4097 7.28431 16.218 6.90799C16.0797 6.63656 16.0356 6.36683 16.0169 6.13824C16.0133 6.09377 16.0105 6.0476 16.0082 6.00001L7.99179 6.00001C7.98955 6.0476 7.98669 6.09377 7.98306 6.13824C7.96438 6.36683 7.92032 6.63656 7.78202 6.90799C7.59027 7.28431 7.28431 7.59027 6.90799 7.78202C6.63656 7.92032 6.36683 7.96438 6.13824 7.98306C6.09377 7.98669 6.0476 7.98955 6.00001 7.99179ZM6.00001 4.60001C6.00001 4.30348 5.99923 4.14122 5.9897 4.02464C5.98932 4.02 5.98894 4.0156 5.98856 4.01145C5.98441 4.01107 5.98001 4.01069 5.97537 4.01031C5.85879 4.00078 5.69653 4.00001 5.40001 4.00001H4.60001C4.30348 4.00001 4.14122 4.00078 4.02464 4.01031C4.02 4.01069 4.0156 4.01107 4.01145 4.01145C4.01107 4.0156 4.01069 4.02 4.01031 4.02464C4.00078 4.14122 4.00001 4.30348 4.00001 4.60001V5.40001C4.00001 5.69653 4.00078 5.85879 4.01031 5.97537C4.01069 5.98001 4.01107 5.98441 4.01145 5.98856C4.0156 5.98894 4.02 5.98932 4.02464 5.9897C4.14122 5.99923 4.30348 6.00001 4.60001 6.00001H5.40001C5.69653 6.00001 5.85879 5.99923 5.97537 5.9897C5.98001 5.98932 5.98441 5.98894 5.98856 5.98856C5.98894 5.98441 5.98932 5.98001 5.9897 5.97537C5.99923 5.85879 6.00001 5.69653 6.00001 5.40001V4.60001ZM18 5.40001C18 5.69653 18.0008 5.85879 18.0103 5.97537C18.0107 5.98001 18.0111 5.98441 18.0115 5.98856C18.0156 5.98894 18.02 5.98932 18.0246 5.9897C18.1412 5.99923 18.3035 6.00001 18.6 6.00001H19.4C19.6965 6.00001 19.8588 5.99923 19.9754 5.9897C19.98 5.98932 19.9844 5.98893 19.9886 5.98855C19.9889 5.9844 19.9893 5.98001 19.9897 5.97537C19.9992 5.85879 20 5.69653 20 5.40001V4.60001C20 4.30348 19.9992 4.14122 19.9897 4.02464C19.9893 4.02 19.9889 4.0156 19.9885 4.01145C19.9844 4.01107 19.98 4.01069 19.9754 4.01031C19.8588 4.00078 19.6965 4.00001 19.4 4.00001H18.6C18.3035 4.00001 18.1412 4.00078 18.0246 4.01031C18.02 4.01069 18.0156 4.01107 18.0115 4.01145C18.0111 4.0156 18.0107 4.02 18.0103 4.02464C18.0008 4.14122 18 4.30348 18 4.60001V5.40001ZM18.6 18C18.3035 18 18.1412 18.0008 18.0246 18.0103C18.02 18.0107 18.0156 18.0111 18.0115 18.0115C18.0111 18.0156 18.0107 18.02 18.0103 18.0246C18.0008 18.1412 18 18.3035 18 18.6V19.4C18 19.6965 18.0008 19.8588 18.0103 19.9754C18.0107 19.98 18.0111 19.9844 18.0115 19.9885C18.0156 19.9889 18.02 19.9893 18.0246 19.9897C18.1412 19.9992 18.3035 20 18.6 20H19.4C19.6965 20 19.8588 19.9992 19.9754 19.9897C19.98 19.9893 19.9844 19.9889 19.9886 19.9885C19.9889 19.9844 19.9893 19.98 19.9897 19.9754C19.9992 19.8588 20 19.6965 20 19.4V18.6C20 18.3035 19.9992 18.1412 19.9897 18.0246C19.9893 18.02 19.9889 18.0156 19.9885 18.0115C19.9844 18.0111 19.98 18.0107 19.9754 18.0103C19.8588 18.0008 19.6965 18 19.4 18H18.6ZM6.00001 18.6C6.00001 18.3035 5.99923 18.1412 5.9897 18.0246C5.98932 18.02 5.98894 18.0156 5.98856 18.0115C5.98441 18.0111 5.98001 18.0107 5.97537 18.0103C5.85879 18.0008 5.69653 18 5.40001 18H4.60001C4.30348 18 4.14122 18.0008 4.02464 18.0103C4.02 18.0107 4.0156 18.0111 4.01145 18.0115C4.01107 18.0156 4.01069 18.02 4.01031 18.0246C4.00078 18.1412 4.00001 18.3035 4.00001 18.6V19.4C4.00001 19.6965 4.00078 19.8588 4.01031 19.9754C4.01069 19.98 4.01107 19.9844 4.01145 19.9885C4.0156 19.9889 4.02 19.9893 4.02464 19.9897C4.14122 19.9992 4.30348 20 4.60001 20H5.40001C5.69653 20 5.85879 19.9992 5.97537 19.9897C5.98001 19.9893 5.98441 19.9889 5.98856 19.9885C5.98894 19.9844 5.98932 19.98 5.9897 19.9754C5.99923 19.8588 6.00001 19.6965 6.00001 19.4V18.6Z"}));function l1({type:e,...C}){switch(e){case"orchestrator":return c.jsx($,{...C});case"artifact_store":return c.jsx(K,{...C});case"container_registry":return c.jsx(Z,{...C});case"step_operator":return c.jsx(Z,{...C});case"model_deployer":return c.jsx(I,{...C});case"feature_store":return c.jsx(T,{...C});case"experiment_tracker":return c.jsx(O,{...C});case"alerter":return c.jsx(_,{...C});case"annotator":return c.jsx(W,{...C});case"data_validator":return c.jsx(q,{...C});case"image_builder":return c.jsx(G,{...C});case"model_registry":return c.jsx(F,{...C})}}var z=function(C){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=void 0,o=void 0,i=void 0,s=[];return function(){var H=N(t),x=new Date().getTime(),j=!n||x-n>H;n=x;for(var M=arguments.length,f=Array(M),m=0;m<M;m++)f[m]=arguments[m];if(j&&r.leading)return r.accumulate?Promise.resolve(C.call(this,[f])).then(function(k){return k[0]}):Promise.resolve(C.call.apply(C,[this].concat(f)));if(o?clearTimeout(i):o=Q(),s.push(f),i=setTimeout(l.bind(this),H),r.accumulate){var D=s.length-1;return o.promise.then(function(k){return k[D]})}return o.promise};function l(){var y=o;clearTimeout(i),Promise.resolve(r.accumulate?C.call(this,s):C.apply(this,s[s.length-1])).then(y.resolve,y.reject),s=[],o=null}};function N(e){return typeof e=="function"?e():e}function Q(){var e={};return e.promise=new Promise(function(C,t){e.resolve=C,e.reject=t}),e}const J=R(z);function U(e){var C=null,t=null,r=new Promise(function(n,o){C=n,t=o});return e&&e.then(function(n){C&&C(n)},function(n){t&&t(n)}),{promise:r,resolve:function(n){C&&C(n)},reject:function(n){t&&t(n)},cancel:function(){C=null,t=null}}}function X(e){var C=null,t=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];C&&C();var o=e.apply(void 0,r),i=U(o),s=i.promise,l=i.cancel;return C=l,s};return t}/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */var V=function(){return V=Object.assign||function(C){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(C[o]=t[o])}return C},V.apply(this,arguments)},Y={key:function(){return null},onlyResolvesLast:!0},e1=function(){function e(C){this.config=C,this.debounceSingleton=null,this.debounceCache={}}return e.prototype._createDebouncedFunction=function(){var C=J(this.config.func,this.config.wait,this.config.options);return this.config.options.onlyResolvesLast&&(C=X(C)),{func:C}},e.prototype.getDebouncedFunction=function(C){var t,r=(t=this.config.options).key.apply(t,C);return r===null||typeof r>"u"?(this.debounceSingleton||(this.debounceSingleton=this._createDebouncedFunction()),this.debounceSingleton):(this.debounceCache[r]||(this.debounceCache[r]=this._createDebouncedFunction()),this.debounceCache[r])},e}();function C1(e,C,t){var r=V({},Y,t),n=new e1({func:e,wait:C,options:r}),o=function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var l=n.getDebouncedFunction(i).func;return l.apply(void 0,i)};return o}const t1=C1(async e=>(await b({name:e})).total===0,500),u1=S.string().trim().min(1,"Stack name is required").max(32,"Stack name must be less than 32 characters").regex(/^[a-zA-Z0-9-]+$/,"Stack name can only contain alphanumeric characters and hyphens").refine(e=>t1(e),"Stack name is already in use");export{l1 as C,W as S,u1 as a,d as s};
@@ -1 +0,0 @@
1
- import{j as a,n as r,F as n,k as o,l as u}from"./index-DhIZtpxB.js";import{a as i}from"./@tanstack-FmcYZMuX.js";function c({stackId:t}){return["stacks",t]}async function f({stackId:t}){const s=o(u.stacks.detail(t)),e=await a(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&r(),!e.ok)throw new n({message:`Error while fetching stack ${t}`,status:e.status,statusText:e.statusText});return e.json()}function y(t,s){return i({queryKey:c(t),queryFn:()=>f(t),...s})}export{f,y as u};
@@ -1 +0,0 @@
1
- import{r as C}from"./@radix-BXWm7HOa.js";const t=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM6.29289 8.29289C6.68342 7.90237 7.31658 7.90237 7.70711 8.29289L10.7071 11.2929C11.0976 11.6834 11.0976 12.3166 10.7071 12.7071L7.70711 15.7071C7.31658 16.0976 6.68342 16.0976 6.29289 15.7071C5.90237 15.3166 5.90237 14.6834 6.29289 14.2929L8.58579 12L6.29289 9.70711C5.90237 9.31658 5.90237 8.68342 6.29289 8.29289ZM12 15C12 14.4477 12.4477 14 13 14H17C17.5523 14 18 14.4477 18 15C18 15.5523 17.5523 16 17 16H13C12.4477 16 12 15.5523 12 15Z"}));export{t as S};