zenml-nightly 0.62.0.dev20240729__py3-none-any.whl → 0.63.0.dev20240731__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 (157) hide show
  1. README.md +1 -1
  2. RELEASE_NOTES.md +41 -0
  3. zenml/VERSION +1 -1
  4. zenml/actions/pipeline_run/pipeline_run_action.py +19 -17
  5. zenml/analytics/enums.py +4 -0
  6. zenml/cli/__init__.py +28 -15
  7. zenml/cli/base.py +1 -1
  8. zenml/cli/pipeline.py +54 -61
  9. zenml/cli/stack.py +6 -8
  10. zenml/client.py +232 -99
  11. zenml/config/compiler.py +14 -22
  12. zenml/config/pipeline_run_configuration.py +3 -0
  13. zenml/config/server_config.py +3 -0
  14. zenml/config/source.py +2 -1
  15. zenml/constants.py +2 -0
  16. zenml/enums.py +3 -0
  17. zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +13 -4
  18. zenml/integrations/databricks/flavors/databricks_orchestrator_flavor.py +11 -2
  19. zenml/integrations/databricks/orchestrators/databricks_orchestrator.py +19 -13
  20. zenml/models/__init__.py +26 -10
  21. zenml/models/v2/base/filter.py +32 -0
  22. zenml/models/v2/core/pipeline.py +73 -89
  23. zenml/models/v2/core/pipeline_build.py +15 -11
  24. zenml/models/v2/core/pipeline_deployment.py +56 -0
  25. zenml/models/v2/core/pipeline_run.py +52 -1
  26. zenml/models/v2/core/run_template.py +393 -0
  27. zenml/models/v2/misc/stack_deployment.py +5 -0
  28. zenml/new/pipelines/build_utils.py +34 -58
  29. zenml/new/pipelines/pipeline.py +17 -76
  30. zenml/new/pipelines/run_utils.py +12 -0
  31. zenml/post_execution/pipeline.py +1 -4
  32. zenml/service_connectors/service_connector_utils.py +4 -2
  33. zenml/stack_deployments/aws_stack_deployment.py +6 -5
  34. zenml/stack_deployments/azure_stack_deployment.py +118 -11
  35. zenml/stack_deployments/gcp_stack_deployment.py +12 -5
  36. zenml/stack_deployments/stack_deployment.py +6 -5
  37. zenml/steps/utils.py +0 -4
  38. zenml/utils/package_utils.py +39 -0
  39. zenml/zen_server/dashboard/assets/{404-B_YdvmwS.js → 404-CI13wQp4.js} +1 -1
  40. zenml/zen_server/dashboard/assets/{@reactflow-l_1hUr1S.js → @reactflow-DIYUhKYX.js} +1 -1
  41. zenml/zen_server/dashboard/assets/{@tanstack-DYiOyJUL.js → @tanstack-k96lU_C-.js} +4 -4
  42. zenml/zen_server/dashboard/assets/{AwarenessChannel-CFg5iX4Z.js → AwarenessChannel-BNg5uWgI.js} +1 -1
  43. zenml/zen_server/dashboard/assets/{CodeSnippet-Dvkx_82E.js → CodeSnippet-Cyp7f4dM.js} +2 -2
  44. zenml/zen_server/dashboard/assets/CollapsibleCard-Cu_A9W57.js +1 -0
  45. zenml/zen_server/dashboard/assets/{Commands-DoN1xrEq.js → Commands-DmQwTXjj.js} +1 -1
  46. zenml/zen_server/dashboard/assets/{CopyButton-Cr7xYEPb.js → CopyButton-B3sWVJ4Z.js} +1 -1
  47. zenml/zen_server/dashboard/assets/{CsvVizualization-Ck-nZ43m.js → CsvVizualization-BvqItd-O.js} +1 -1
  48. zenml/zen_server/dashboard/assets/{Error-kLtljEOM.js → Error-DbXCTGua.js} +1 -1
  49. zenml/zen_server/dashboard/assets/{ExecutionStatus-DguLLgTK.js → ExecutionStatus-9zM7eaLh.js} +1 -1
  50. zenml/zen_server/dashboard/assets/{Helpbox-BXUMP21n.js → Helpbox-BIiNc-uH.js} +1 -1
  51. zenml/zen_server/dashboard/assets/{Infobox-DSt0O-dm.js → Infobox-iv1Nu1A0.js} +1 -1
  52. zenml/zen_server/dashboard/assets/{InlineAvatar-xsrsIGE-.js → InlineAvatar-BvBtO2Dp.js} +1 -1
  53. zenml/zen_server/dashboard/assets/ProviderRadio-pSAvrGRS.js +1 -0
  54. zenml/zen_server/dashboard/assets/SearchField-CXoBknpt.js +1 -0
  55. zenml/zen_server/dashboard/assets/{SetPassword-BXGTWiwj.js → SetPassword-BOxpgh6N.js} +1 -1
  56. zenml/zen_server/dashboard/assets/{SuccessStep-DZC60t0x.js → SuccessStep-CTSKN2lp.js} +1 -1
  57. zenml/zen_server/dashboard/assets/Tick-Bnr2TpW6.js +1 -0
  58. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DGvwFWO1.js → UpdatePasswordSchemas-BeCeaRW5.js} +1 -1
  59. zenml/zen_server/dashboard/assets/chevron-down-D_ZlKMqH.js +1 -0
  60. zenml/zen_server/dashboard/assets/{cloud-only-C_yFCAkP.js → cloud-only-qelmY92E.js} +1 -1
  61. zenml/zen_server/dashboard/assets/components-DWe4cTjS.js +1 -0
  62. zenml/zen_server/dashboard/assets/dots-horizontal-BObFzD5l.js +1 -0
  63. zenml/zen_server/dashboard/assets/{index-BczVOqUf.js → index-KsTz2dHG.js} +5 -5
  64. zenml/zen_server/dashboard/assets/index-vfjX_fJV.css +1 -0
  65. zenml/zen_server/dashboard/assets/index.esm-CbHNSeVw.js +1 -0
  66. zenml/zen_server/dashboard/assets/{login-mutation-CrHrndTI.js → login-mutation-DRpbESS7.js} +1 -1
  67. zenml/zen_server/dashboard/assets/{not-found-DYa4pC-C.js → not-found-Dfx9hfkf.js} +1 -1
  68. zenml/zen_server/dashboard/assets/package-ClbU3KUi.js +1 -0
  69. zenml/zen_server/dashboard/assets/{page-uA5prJGY.js → page-399pVZHU.js} +1 -1
  70. zenml/zen_server/dashboard/assets/{page-1h_sD1jz.js → page-BoFtUD9H.js} +1 -1
  71. zenml/zen_server/dashboard/assets/{page-BDns21Iz.js → page-Btu39x7k.js} +1 -1
  72. zenml/zen_server/dashboard/assets/{page-BnaevhnB.js → page-BxiWdeyg.js} +1 -1
  73. zenml/zen_server/dashboard/assets/{page-1iL8aMqs.js → page-C176KxyB.js} +1 -1
  74. zenml/zen_server/dashboard/assets/page-C6tXXjnK.js +1 -0
  75. zenml/zen_server/dashboard/assets/{page-BkeAAYwp.js → page-CDgZmwxP.js} +1 -1
  76. zenml/zen_server/dashboard/assets/page-CP9obrnG.js +1 -0
  77. zenml/zen_server/dashboard/assets/{page-C6-UGEbH.js → page-CZe9GEBF.js} +1 -1
  78. zenml/zen_server/dashboard/assets/page-CaTOsNNw.js +1 -0
  79. zenml/zen_server/dashboard/assets/{page-CCNRIt_f.js → page-Cjn97HMv.js} +1 -1
  80. zenml/zen_server/dashboard/assets/page-CmXmB_5i.js +1 -0
  81. zenml/zen_server/dashboard/assets/page-CvGAOfad.js +1 -0
  82. zenml/zen_server/dashboard/assets/page-CzucfYPo.js +2 -0
  83. zenml/zen_server/dashboard/assets/{page-Bi-wtWiO.js → page-D0bbc-qr.js} +1 -1
  84. zenml/zen_server/dashboard/assets/page-DLEtD2ex.js +1 -0
  85. zenml/zen_server/dashboard/assets/{page-BhgCDInH.js → page-DVPxY5fT.js} +1 -1
  86. zenml/zen_server/dashboard/assets/{page-BkuQDIf-.js → page-DYBNGxJt.js} +1 -1
  87. zenml/zen_server/dashboard/assets/{page-8a4UMKXZ.js → page-DtpwnNXq.js} +1 -1
  88. zenml/zen_server/dashboard/assets/{page-B6h3iaHJ.js → page-DupV0aBd.js} +1 -1
  89. zenml/zen_server/dashboard/assets/page-EweAR81y.js +1 -0
  90. zenml/zen_server/dashboard/assets/{page-MFQyIJd3.js → page-f3jBVI5Z.js} +1 -1
  91. zenml/zen_server/dashboard/assets/{page-2grKx_MY.js → page-p2hLJdS2.js} +1 -1
  92. zenml/zen_server/dashboard/assets/page-w-YaL77M.js +9 -0
  93. zenml/zen_server/dashboard/assets/persist-BReKApOc.js +14 -0
  94. zenml/zen_server/dashboard/assets/plus-DOeLmm7C.js +1 -0
  95. zenml/zen_server/dashboard/assets/{stack-detail-query-Cficsl6d.js → stack-detail-query-Ck7j7BP_.js} +1 -1
  96. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-7d8xi1tS.js → update-server-settings-mutation-f3ZT7psb.js} +1 -1
  97. zenml/zen_server/dashboard/assets/{url-D7mAQGUM.js → url-rGEp5Umh.js} +1 -1
  98. zenml/zen_server/dashboard/assets/{zod-BhoGpZ63.js → zod-BtSyGx4C.js} +1 -1
  99. zenml/zen_server/dashboard/index.html +5 -5
  100. zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
  101. zenml/zen_server/dashboard_legacy/index.html +1 -1
  102. zenml/zen_server/dashboard_legacy/{precache-manifest.12246c7548e71e2c4438e496360de80c.js → precache-manifest.2fa6e528a6e7447caaf35dadfe7514bb.js} +4 -4
  103. zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
  104. zenml/zen_server/dashboard_legacy/static/js/{main.3b27024b.chunk.js → main.4aab7e98.chunk.js} +2 -2
  105. zenml/zen_server/dashboard_legacy/static/js/{main.3b27024b.chunk.js.map → main.4aab7e98.chunk.js.map} +1 -1
  106. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  107. zenml/zen_server/deploy/helm/README.md +2 -2
  108. zenml/zen_server/rbac/models.py +1 -0
  109. zenml/zen_server/rbac/utils.py +4 -0
  110. zenml/zen_server/routers/pipeline_builds_endpoints.py +2 -66
  111. zenml/zen_server/routers/pipeline_deployments_endpoints.py +2 -53
  112. zenml/zen_server/routers/pipelines_endpoints.py +1 -74
  113. zenml/zen_server/routers/run_templates_endpoints.py +212 -0
  114. zenml/zen_server/routers/workspaces_endpoints.py +79 -0
  115. zenml/zen_server/{pipeline_deployment → template_execution}/runner_entrypoint_configuration.py +1 -8
  116. zenml/zen_server/{pipeline_deployment → template_execution}/utils.py +214 -92
  117. zenml/zen_server/utils.py +2 -2
  118. zenml/zen_server/zen_server_api.py +2 -1
  119. zenml/zen_stores/migrations/versions/0.63.0_release.py +23 -0
  120. zenml/zen_stores/migrations/versions/7d1919bb1ef0_add_run_templates.py +100 -0
  121. zenml/zen_stores/migrations/versions/b59aa68fdb1f_simplify_pipelines.py +139 -0
  122. zenml/zen_stores/rest_zen_store.py +107 -36
  123. zenml/zen_stores/schemas/__init__.py +2 -0
  124. zenml/zen_stores/schemas/pipeline_build_schemas.py +3 -3
  125. zenml/zen_stores/schemas/pipeline_deployment_schemas.py +29 -2
  126. zenml/zen_stores/schemas/pipeline_run_schemas.py +26 -3
  127. zenml/zen_stores/schemas/pipeline_schemas.py +29 -30
  128. zenml/zen_stores/schemas/run_template_schemas.py +264 -0
  129. zenml/zen_stores/schemas/step_run_schemas.py +11 -4
  130. zenml/zen_stores/sql_zen_store.py +364 -150
  131. zenml/zen_stores/template_utils.py +261 -0
  132. zenml/zen_stores/zen_store_interface.py +93 -20
  133. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.63.0.dev20240731.dist-info}/METADATA +2 -2
  134. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.63.0.dev20240731.dist-info}/RECORD +139 -129
  135. zenml/models/v2/core/pipeline_namespace.py +0 -113
  136. zenml/new/pipelines/deserialization_utils.py +0 -292
  137. zenml/zen_server/dashboard/assets/CollapsibleCard-opiuBHHc.js +0 -1
  138. zenml/zen_server/dashboard/assets/Pagination-C6X-mifw.js +0 -1
  139. zenml/zen_server/dashboard/assets/index-EpMIKgrI.css +0 -1
  140. zenml/zen_server/dashboard/assets/index-rK_Wuy2W.js +0 -1
  141. zenml/zen_server/dashboard/assets/index.esm-Corw4lXQ.js +0 -1
  142. zenml/zen_server/dashboard/assets/package-B3fWP-Dh.js +0 -1
  143. zenml/zen_server/dashboard/assets/page-5NCOHOsy.js +0 -1
  144. zenml/zen_server/dashboard/assets/page-Bq0YxkLV.js +0 -1
  145. zenml/zen_server/dashboard/assets/page-Bs2F4eoD.js +0 -2
  146. zenml/zen_server/dashboard/assets/page-CHNxpz3n.js +0 -1
  147. zenml/zen_server/dashboard/assets/page-DgorQFqi.js +0 -1
  148. zenml/zen_server/dashboard/assets/page-K8ebxVIs.js +0 -1
  149. zenml/zen_server/dashboard/assets/page-TgCF0P_U.js +0 -1
  150. zenml/zen_server/dashboard/assets/page-ZnCEe-eK.js +0 -9
  151. zenml/zen_server/dashboard/assets/persist-D7HJNBWx.js +0 -1
  152. zenml/zen_server/dashboard/assets/plus-C8WOyCzt.js +0 -1
  153. /zenml/zen_server/{pipeline_deployment → template_execution}/__init__.py +0 -0
  154. /zenml/zen_server/{pipeline_deployment → template_execution}/workload_manager_interface.py +0 -0
  155. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.63.0.dev20240731.dist-info}/LICENSE +0 -0
  156. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.63.0.dev20240731.dist-info}/WHEEL +0 -0
  157. {zenml_nightly-0.62.0.dev20240729.dist-info → zenml_nightly-0.63.0.dev20240731.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
1
- import{r as a,j as e}from"./@radix-CFOkMR_E.js";import{aq as g,ar as f,as as b,at as v,au as L,B as m,av as y}from"./index-BczVOqUf.js";import{I as C}from"./Infobox-DSt0O-dm.js";import{V as d,g as p}from"./Commands-DoN1xrEq.js";import{H as S}from"./Helpbox-BXUMP21n.js";import{S as w,a as j,b as k}from"./aws-BgKTfTfx.js";import{S as A}from"./docker-CQMVm_4d.js";import"./@tanstack-DYiOyJUL.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-l_1hUr1S.js";import"./play-circle-CNtZKDnW.js";import"./CodeSnippet-Dvkx_82E.js";import"./copy-BXNk6BjL.js";import"./help-bu_DgLKI.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(d,{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(d,{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}),p(l),n&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"Prerequisites"}),n.map((h,x)=>e.jsx(a.Fragment,{children:p(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
+ import{r as a,j as e}from"./@radix-CFOkMR_E.js";import{aq as g,ar as f,as as b,at as v,au as L,B as m,av as y}from"./index-KsTz2dHG.js";import{I as C}from"./Infobox-iv1Nu1A0.js";import{V as d,g as p}from"./Commands-DmQwTXjj.js";import{H as S}from"./Helpbox-BIiNc-uH.js";import{S as w,a as j,b as k}from"./aws-BgKTfTfx.js";import{S as A}from"./docker-CQMVm_4d.js";import"./@tanstack-k96lU_C-.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DIYUhKYX.js";import"./play-circle-CNtZKDnW.js";import"./CodeSnippet-Cyp7f4dM.js";import"./copy-BXNk6BjL.js";import"./help-bu_DgLKI.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(d,{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(d,{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}),p(l),n&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"Prerequisites"}),n.map((h,x)=>e.jsx(a.Fragment,{children:p(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};
@@ -0,0 +1 @@
1
+ import{j as e}from"./@radix-CFOkMR_E.js";import{B as u,E as l,c as f,S as h,$ as p,r as n,aA as j}from"./index-KsTz2dHG.js";import{S as g}from"./database-1xWSgZfO.js";import{c as o,L as c}from"./@react-router-CO-OsFwI.js";import"./@tanstack-k96lU_C-.js";import"./@reactflow-DIYUhKYX.js";function m({icon:t,estimatedTime:s,subtitle:a,title:r,comingSoon:i=!1,isRecommended:x=!1}){return e.jsxs(u,{className:`h-full w-full space-y-1 px-6 py-5 ${i&&"bg-neutral-50"}`,children:[t,e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx("h2",{className:"text-text-lg font-semibold",children:r}),x&&e.jsx(l,{className:"font-semibold",color:"green",size:"sm",children:"Recommended"}),i&&e.jsx(l,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:a}),e.jsxs("p",{className:"text-text-xs text-theme-text-tertiary",children:["Estimated time: ",s," mins"]})]})}function y(){const{isError:t,isPending:s,data:a}=f();if(s)return e.jsx(h,{className:"h-[200px] w-full"});if(t)return e.jsx("div",{children:"Failed to load server info"});const r=p(a.deployment_type||"other");return e.jsxs("section",{className:"w-full space-y-5",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-text-xl font-semibold",children:"Smart Stack Setup"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Use our smart tools to connect to your Cloud in a quick and simplified way."})]}),e.jsxs("div",{className:"grid w-full grid-cols-1 gap-6 md:grid-cols-2",children:[e.jsx(N,{isLocalDeployment:r}),e.jsx(v,{isLocalDeployment:r})]})]})}function N({isLocalDeployment:t}){const[s]=o(),a=n.stacks.create.newInfra+(s.size>=1?`?${s.toString()}`:"");return e.jsxs("div",{className:"relative",children:[t&&e.jsx(d,{}),e.jsx(c,{to:a,children:e.jsx(m,{title:"New Infrastructure",isRecommended:!0,subtitle:"Use a script to set a new cloud infrastructure from scratch",icon:e.jsx(g,{className:"h-6 w-6 fill-primary-400"}),estimatedTime:"3"})})]})}function v({isLocalDeployment:t}){const[s]=o(),a=n.stacks.create.existingInfra+(s.size>=1?`?${s.toString()}`:"");return e.jsxs("div",{className:"relative",children:[t&&e.jsx(d,{}),e.jsx(c,{to:a,children:e.jsx(m,{title:"Use existing Cloud",subtitle:"Connect to your existing Cloud and configure your components manually.",icon:e.jsx(j,{className:"h-6 w-6 fill-primary-400"}),estimatedTime:"15"})})]})}function d(){return e.jsx("div",{className:"group absolute flex h-full w-full items-center justify-center rounded-md border border-theme-border-moderate bg-white/70",children:e.jsx("div",{className:"hidden rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg animate-in fade-in-0 fade-out-0 zoom-in-95 group-hover:block",children:"Smart Setup is not available for local deployments"})})}function I(){return e.jsx("section",{className:"layout-container flex gap-2 p-5",children:e.jsx(y,{})})}export{I as default};
@@ -0,0 +1 @@
1
+ import{j as s,r as p}from"./@radix-CFOkMR_E.js";import{C as u,R as d}from"./CopyButton-B3sWVJ4Z.js";import{k as h,l as f,j as x,n as g,F as j,m as P,r as l,T as y,z as r,o as b,P as N,h as v,D as w,S as o}from"./index-KsTz2dHG.js";import{S,P as E}from"./SearchField-CXoBknpt.js";import{q as T,a as C}from"./@tanstack-k96lU_C-.js";import{o as _}from"./url-rGEp5Umh.js";import{S as F}from"./terminal-By9cErXc.js";import{g as R,E as L}from"./ExecutionStatus-9zM7eaLh.js";import{L as c,c as k}from"./@react-router-CO-OsFwI.js";import"./copy-BXNk6BjL.js";import"./@reactflow-DIYUhKYX.js";import"./dots-horizontal-BObFzD5l.js";import"./chevron-right-double-CZBOf6JM.js";import"./check-circle-i56092KI.js";async function q({params:e}){const t=h(f.pipelines.all+"?"+_(e)),a=await x(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(a.status===404&&g(),!a.ok)throw new j({message:"Error while fetching pipelines",status:a.status,statusText:a.statusText});return a.json()}const m={all:["pipelines"],pipelineList:e=>T({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(P,{className:`h-5 w-5 ${R(a)}`}),s.jsxs(c,{to:l.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(u,{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:l.runs.detail(t),children:s.jsxs(y,{emphasis:"subtle",rounded:!1,className:"inline-flex items-center gap-0.5",color:B(a),children:[s.jsx(F,{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 ee(){const{setCurrentBreadcrumbData:e}=b(),t=I(),{data:a,refetch:n}=C({...m.pipelineList({...t,sort_by:"desc:latest_run"}),throwOnError:!0});return p.useEffect(()=>{e({segment:"pipelines",data:null})},[]),s.jsxs("div",{children:[s.jsx(N,{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(S,{searchParams:t}),s.jsx("div",{className:"flex justify-between",children:s.jsxs(v,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[s.jsx(d,{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(w,{columns:z(),data:a.items}):s.jsx(o,{className:"h-[500px] w-full"})}),a?a.total_pages>1&&s.jsx(E,{searchParams:t,paginate:a}):s.jsx(o,{className:"h-[36px] w-[300px]"})]})]})})]})}export{ee as default};
@@ -0,0 +1,2 @@
1
+ import{r as a,j as e}from"./@radix-CFOkMR_E.js";import{B as h,d as Z,p as H,q as j,aL as C,av as D,U as p,V as g,r as R,h as I,aM as k,c as w,S as N,aN as L,$ as E,aO as _,aP as M,aH as S,ay as O}from"./index-KsTz2dHG.js";import{S as P,a as F}from"./file-text-CqD_iu6l.js";import{S as V}from"./terminal-By9cErXc.js";import{S as B}from"./package-ClbU3KUi.js";import{S as v}from"./chevron-down-D_ZlKMqH.js";import{T as b}from"./Tick-Bnr2TpW6.js";import{S as A}from"./plus-DOeLmm7C.js";import{C as c}from"./CodeSnippet-Cyp7f4dM.js";import{H as y}from"./Helpbox-BIiNc-uH.js";import{F as T}from"./chevron-right-double-CZBOf6JM.js";import{L as q}from"./@react-router-CO-OsFwI.js";import{H as $}from"./help-bu_DgLKI.js";import"./@tanstack-k96lU_C-.js";import"./@reactflow-DIYUhKYX.js";import"./copy-BXNk6BjL.js";const U=s=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},a.createElement("path",{d:"M6.20195 14.6383C6.20195 15.7947 5.25733 16.7393 4.10098 16.7393C2.94463 16.7393 2 15.7947 2 14.6383C2 13.482 2.94463 12.5374 4.10098 12.5374H6.20195V14.6383Z",fill:"#E01E5A"}),a.createElement("path",{d:"M7.26056 14.6383C7.26056 13.482 8.20518 12.5374 9.36154 12.5374C10.5179 12.5374 11.4625 13.482 11.4625 14.6383V19.8989C11.4625 21.0553 10.5179 21.9999 9.36154 21.9999C8.20518 21.9999 7.26056 21.0553 7.26056 19.8989V14.6383Z",fill:"#E01E5A"}),a.createElement("path",{d:"M9.36154 6.20195C8.20518 6.20195 7.26056 5.25733 7.26056 4.10098C7.26056 2.94463 8.20518 2 9.36154 2C10.5179 2 11.4625 2.94463 11.4625 4.10098V6.20195H9.36154Z",fill:"#36C5F0"}),a.createElement("path",{d:"M9.36156 7.26062C10.5179 7.26062 11.4625 8.20525 11.4625 9.3616C11.4625 10.5179 10.5179 11.4626 9.36156 11.4626H4.10098C2.94463 11.4626 2 10.5179 2 9.3616C2 8.20525 2.94463 7.26062 4.10098 7.26062H9.36156Z",fill:"#36C5F0"}),a.createElement("path",{d:"M17.798 9.3616C17.798 8.20525 18.7426 7.26062 19.8989 7.26062C21.0553 7.26062 21.9999 8.20525 21.9999 9.3616C21.9999 10.5179 21.0553 11.4626 19.8989 11.4626H17.798V9.3616Z",fill:"#2EB67D"}),a.createElement("path",{d:"M16.7394 9.36156C16.7394 10.5179 15.7948 11.4625 14.6385 11.4625C13.4821 11.4625 12.5375 10.5179 12.5375 9.36156V4.10098C12.5375 2.94463 13.4821 2 14.6385 2C15.7948 2 16.7394 2.94463 16.7394 4.10098V9.36156Z",fill:"#2EB67D"}),a.createElement("path",{d:"M14.6384 17.7981C15.7947 17.7981 16.7394 18.7427 16.7394 19.8991C16.7394 21.0554 15.7947 22 14.6384 22C13.482 22 12.5374 21.0554 12.5374 19.8991V17.7981H14.6384Z",fill:"#ECB22E"}),a.createElement("path",{d:"M14.6385 16.7393C13.4821 16.7393 12.5375 15.7947 12.5375 14.6383C12.5375 13.482 13.4821 12.5374 14.6385 12.5374H19.899C21.0554 12.5374 22 13.482 22 14.6383C22 15.7947 21.0554 16.7393 19.899 16.7393H14.6385Z",fill:"#ECB22E"})),K=s=>a.createElement("svg",{viewBox:"0 0 60 60",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.8968 2.5L35 2.5C35.663 2.5 36.2989 2.76339 36.7678 3.23224L51.7678 18.2322C52.2366 18.7011 52.5 19.337 52.5 20V43.1033C52.5 45.1157 52.5001 46.7766 52.3895 48.1296C52.2747 49.5348 52.0283 50.8266 51.4101 52.0399C50.4513 53.9215 48.9215 55.4513 47.0399 56.4101C45.8266 57.0283 44.5348 57.2747 43.1296 57.3895C41.7766 57.5001 40.1157 57.5 38.1033 57.5H21.8967C19.8843 57.5 18.2234 57.5001 16.8704 57.3895C15.4652 57.2747 14.1734 57.0283 12.9601 56.4101C11.0785 55.4513 9.54867 53.9215 8.58994 52.0399C7.97171 50.8266 7.7253 49.5348 7.61049 48.1296C7.49994 46.7766 7.49997 45.1157 7.5 43.1032V16.8968C7.49997 14.8843 7.49994 13.2234 7.61049 11.8704C7.7253 10.4652 7.97171 9.17344 8.58994 7.9601C9.54867 6.07848 11.0785 4.54867 12.9601 3.58994C14.1734 2.97171 15.4652 2.7253 16.8704 2.61049C18.2234 2.49994 19.8843 2.49997 21.8968 2.5ZM17.2776 7.59388C16.1816 7.68343 15.621 7.84575 15.2301 8.04497C14.2892 8.52434 13.5243 9.28924 13.045 10.23C12.8457 10.621 12.6834 11.1816 12.5939 12.2776C12.5019 13.4028 12.5 14.8586 12.5 17V43C12.5 45.1414 12.5019 46.5972 12.5939 47.7224C12.6834 48.8184 12.8457 49.3789 13.045 49.7699C13.5243 50.7108 14.2892 51.4757 15.2301 51.955C15.621 52.1543 16.1816 52.3166 17.2776 52.4061C18.4028 52.4981 19.8586 52.5 22 52.5H38C40.1415 52.5 41.5972 52.4981 42.7224 52.4061C43.8184 52.3166 44.379 52.1543 44.77 51.955C45.7108 51.4757 46.4757 50.7108 46.955 49.7699C47.1543 49.3789 47.3166 48.8184 47.4061 47.7224C47.4981 46.5972 47.5 45.1414 47.5 43V22.5002L38.9203 22.5002C38.2893 22.5003 37.6748 22.5003 37.1544 22.4578C36.5829 22.4111 35.9086 22.301 35.23 21.9552C34.2892 21.4758 33.5243 20.7109 33.045 19.7701C32.6992 19.0916 32.5891 18.4172 32.5424 17.8458C32.4998 17.3253 32.4999 16.7109 32.5 16.0799L32.5 7.5H22C19.8586 7.5 18.4028 7.50195 17.2776 7.59388ZM37.5 11.0355L43.9646 17.5002H39C38.2587 17.5002 37.8531 17.4982 37.5616 17.4744C37.55 17.4735 37.539 17.4725 37.5286 17.4716C37.5277 17.4612 37.5267 17.4502 37.5258 17.4386C37.5019 17.1471 37.5 16.7415 37.5 16.0002V11.0355ZM30.4548 28.7949C29.7284 28.6703 28.9814 28.8068 28.346 29.1803C27.7106 29.5537 27.2278 30.14 26.9833 30.8352C26.5251 32.1377 25.0978 32.8221 23.7953 32.3639C22.4929 31.9057 21.8084 30.4785 22.2666 29.176C22.903 27.3668 24.1592 25.8413 25.8126 24.8696C27.466 23.8979 29.4099 23.5427 31.3001 23.8669C33.1903 24.1911 34.9048 25.1738 36.1399 26.641C37.3746 28.1078 38.0506 29.9642 38.048 31.8815C38.0469 35.081 35.6802 37.1377 34.1244 38.1749C33.2702 38.7444 32.4338 39.1608 31.8208 39.4332C31.5108 39.571 31.2489 39.6759 31.0587 39.7484C30.9634 39.7847 30.8855 39.8131 30.8279 39.8336L30.7568 39.8585L30.7331 39.8666L30.7244 39.8695L30.7209 39.8707C30.7201 39.8709 30.7178 39.8717 29.9633 37.6083L30.7178 39.8717C29.4079 40.3083 27.9921 39.6004 27.5555 38.2906C27.1197 36.983 27.8243 35.5698 29.1298 35.1306L29.1528 35.1225C29.1775 35.1137 29.2204 35.0982 29.2788 35.076C29.396 35.0313 29.5732 34.9606 29.7901 34.8642C30.2311 34.6682 30.7999 34.382 31.3509 34.0147C32.6051 33.1785 33.048 32.4256 33.048 31.8792L33.048 31.8755C33.0491 31.1385 32.7894 30.4248 32.3147 29.861C31.8401 29.2972 31.1812 28.9195 30.4548 28.7949ZM27.5 45C27.5 43.6193 28.6193 42.5 30 42.5H30.025C31.4057 42.5 32.525 43.6193 32.525 45C32.525 46.3807 31.4057 47.5 30.025 47.5H30C28.6193 47.5 27.5 46.3807 27.5 45Z"}));function Q(){const s=[{text:"Connect with Slack",href:"https://zenml.io/slack",icon:e.jsx(U,{className:"h-5 w-5"})},{text:"Send us a message",href:"mailto:cloud@zenml.io",icon:e.jsx(P,{className:"h-5 w-5 fill-primary-600"})}];return e.jsxs(h,{className:"flex w-full flex-col overflow-hidden",children:[e.jsx("div",{className:"flex h-[120px] items-center justify-center bg-primary-50 ",children:e.jsx(Z,{className:"h-[60px] w-[60px]"})}),e.jsxs("div",{className:"p-5",children:[e.jsx("p",{className:"mb-0.5 text-text-lg font-semibold",children:"Need support?"}),e.jsx("p",{className:"mb-2 text-theme-text-secondary",children:"Schedule a call with us, connect with our Slack community or send us a message."}),e.jsx("ul",{className:"space-y-1",children:s.map((t,r)=>e.jsx("li",{children:e.jsx(z,{href:t.href,text:t.text,icon:t.icon})},r))})]})]})}function W(){const s=[{text:"Browse our docs",href:"https://docs.zenml.io",icon:e.jsx(F,{className:"h-5 w-5 fill-primary-600"})},{text:"Discover projects",href:"https://github.com/zenml-io/zenml-projects",icon:e.jsx(B,{className:"h-5 w-5 fill-primary-600"})},{text:"Navigate our examples",href:"https://github.com/zenml-io/zenml/tree/main/examples/",icon:e.jsx(V,{className:"h-5 w-5 fill-primary-600"})},{text:"Read our blog",href:"https://zenml.io/blog",icon:e.jsx(H,{className:"h-5 w-5 fill-primary-600"})}];return e.jsxs(h,{className:"flex w-full flex-col overflow-hidden",children:[e.jsx("div",{className:"flex h-[120px] items-center justify-center bg-turquoise-25",children:e.jsx(K,{className:"h-[60px] w-[60px] fill-teal-400"})}),e.jsxs("div",{className:"p-5",children:[e.jsx("p",{className:"mb-0.5 text-text-lg font-semibold",children:"Resources"}),e.jsx("p",{className:"mb-2 text-theme-text-secondary",children:"Need help? Follow our extensive documentation to get started."}),e.jsx("ul",{className:"space-y-1",children:s.map((t,r)=>e.jsx("li",{children:e.jsx(z,{href:t.href,text:t.text,icon:t.icon})},r))})]})]})}function z({href:s,text:t,icon:r}){return e.jsxs("a",{className:"inline-flex items-center gap-1 font-semibold text-primary-600 underline transition-all duration-200 hover:decoration-transparent",target:"_blank",href:s,rel:"noopener noreferrer",children:[r&&r,t]})}function Y(){return e.jsx(h,{className:"flex flex-col-reverse items-stretch overflow-hidden md:flex-row",children:e.jsxs("div",{className:"w-full px-7 py-5 md:w-2/3",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Welcome to ZenML"}),e.jsx("p",{className:"mt-2 text-text-lg text-theme-text-secondary",children:"You successfully installed the ZenML dashboard. Now you can get started with your new ZenML server."})]})})}function G({className:s,...t}){return e.jsx("div",{className:j("flex h-[28px] w-[28px] shrink-0 items-center justify-center rounded-rounded border-2 border-warning-300 bg-warning-50",s),...t,children:e.jsx(T,{className:"h-3 w-3 fill-warning-300"})})}function u({completed:s,title:t,children:r,hasDownstream:n,active:l}){const[i,m]=a.useState(l);return e.jsx(C,{open:i,onOpenChange:m,children:e.jsxs("div",{className:"flex w-full flex-col gap-3",children:[e.jsxs("div",{className:"flex w-full justify-between gap-2",children:[s?e.jsx(b,{className:"shrink-0"}):n?e.jsx(G,{}):e.jsx(D,{className:"shrink-0"}),e.jsx(p,{className:"w-full",children:e.jsx(J,{skipped:n,title:t,completed:s})}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(p,{children:e.jsx(v,{className:` ${i?"":"-rotate-90"} h-5 w-5 shrink-0 rounded-md fill-neutral-500`})})})]}),r&&e.jsx(g,{children:e.jsxs("div",{className:"flex w-full items-center gap-2",children:[e.jsx("div",{className:"w-[28px] shrink-0"}),e.jsx("div",{className:"w-full min-w-0 flex-1",children:r})]})})]})})}function J({completed:s,title:t,skipped:r}){return e.jsx("div",{className:"flex w-full items-center justify-between gap-2",children:e.jsx("div",{className:"flex w-full items-center",children:e.jsx("div",{className:`font-semibold ${j({"text-theme-text-tertiary":s||r,"line-through decoration-theme-text-tertiary":s})}
2
+ `,children:t})})})}function X({completed:s,active:t,hasDownstreamStep:r}){const n=R.stacks.create.index+"?"+new URLSearchParams({origin:"onboarding"}).toString();return e.jsxs(u,{hasDownstream:r,completed:s,title:"Create a new stack",active:t,children:[e.jsxs("p",{className:"mb-3",children:["A stack configures how a pipeline is executed"," ",e.jsx(se,{href:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Connect your Cloud to deploy your ZenML pipelines in a remote stack."}),e.jsx(I,{className:"w-fit",size:"md",asChild:!0,children:e.jsxs(q,{className:"flex",to:n,children:[e.jsx(A,{className:"h-5 w-5 shrink-0 fill-white"}),"Register a stack"]})})]}),e.jsx(y,{link:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})]})]})}function ee({active:s,completed:t,hasDownstreamStep:r}){return e.jsx(u,{hasDownstream:r,completed:t,title:"Run the pipeline in the new stack",active:s,children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Set the new stack"}),e.jsx(c,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml stack set REMOTE_STACK"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Run the pipeline"}),e.jsx(c,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"python run.py --training-pipeline"})]}),e.jsx("div",{children:e.jsx(y,{link:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})})]})})}function se({href:s}){return e.jsx("a",{href:s,rel:"noopener noreferrer",target:"_blank",className:"link text-text-sm font-semibold text-theme-text-brand",children:"Learn more"})}function te(){const s=k({refetchInterval:5e3}),t=w(),[r,n]=a.useState(!0);if(s.isPending||t.isPending)return e.jsx(N,{className:"h-[200px] w-full"});if(s.isError||t.isError)return null;const l=L(s.data,E(t.data.deployment_type||"other")),{progress:i,totalItems:m,itemsDone:f,getItem:x}=_(s.data),o=x("stack_with_remote_orchestrator_created"),d=x("pipeline_run_with_remote_orchestrator");return e.jsx(e.Fragment,{children:e.jsxs(C,{onOpenChange:n,open:r,className:j("rounded-md border border-theme-border-moderate bg-theme-surface-primary"),children:[e.jsxs(p,{className:"flex w-full items-center justify-between gap-[10px] p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[i>=100?e.jsx(b,{className:"h-7 w-7",tickClasses:"w-[28px] h-[28px]"}):e.jsx(M,{value:i,children:e.jsxs("span",{className:"absolute text-text-xs font-semibold",children:[f,"/",m]})}),e.jsxs("div",{className:"text-left",children:[e.jsxs("p",{className:"text-text-md font-semibold",children:["Production Setup"," ",e.jsx("span",{className:"text-text-md font-medium text-theme-text-secondary",children:"(10 min)"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:l.isFinished?"Level up your skills in a production setting.":e.jsx("span",{className:"text-primary-400",children:"Complete the Starter Setup to enable the production setup."})})]})]}),e.jsx(v,{className:` ${r?"":"-rotate-90"} h-5 w-5 shrink-0 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})]}),e.jsx(g,{className:"border-t border-theme-border-moderate p-5",children:e.jsxs("ul",{className:"divide-y divide-theme-border-moderate",children:[e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(X,{active:l.isFinished&&o.isActive,completed:o.isCompleted,hasDownstreamStep:o.hasDownStreamStep})}),e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(ee,{active:l.isFinished&&d.isActive,completed:d.isCompleted,hasDownstreamStep:d.hasDownStreamStep})})]})})]})})}function re({completed:s,hasDownstreamStep:t,active:r}){const{data:n}=w({throwOnError:!0});return e.jsx(u,{active:r,hasDownstream:t,completed:s,title:"Connect to ZenML",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Install ZenML"}),e.jsx(c,{code:`pip install "zenml==${n?n.version:e.jsx(N,{className:"w-7"})}"`})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Login to your ZenML Server"}),e.jsx(c,{code:`zenml connect --url ${window.location.origin}`})]}),e.jsx(y,{link:"https://docs.zenml.io/user-guide/production-guide/deploying-zenml#connecting-to-a-deployed-zenml"})]})})}function ae({active:s,completed:t,hasDownstreamStep:r}){return e.jsx(u,{active:s,hasDownstream:r,completed:t,title:"Run your first pipeline",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Download the quickstart example to your local machine"}),e.jsx(c,{code:"git clone --depth 1 https://github.com/zenml-io/zenml.git && cd zenml/examples/quickstart"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize ZenML in the current directory"}),e.jsx(c,{code:"zenml init"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Install the remaining requirements apart from ZenML"}),e.jsx(c,{code:"pip install -r requirements.txt"})]}),e.jsxs("div",{children:[e.jsxs("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:["Run the training pipeline.",e.jsx("br",{}),"Once it is running, your dashboard will show all the details of the associated run, models, and artifacts."]}),e.jsx(c,{code:"python run.py --training-pipeline"})]}),e.jsxs(h,{className:"flex w-full flex-wrap items-center justify-between gap-y-1 p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx($,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:"Do you need help?"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:S({intent:"secondary",emphasis:"subtle",size:"md"}),href:"https://github.com/zenml-io/zenml/blob/main/examples/quickstart/README.md",children:"Open the Readme"}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:S({intent:"primary",emphasis:"subtle",size:"md"}),href:"https://docs.zenml.io/user-guide/starter-guide/create-an-ml-pipeline",children:"Browse our docs"})]})]})]})})}function ne(){const s=k({refetchInterval:5e3}),t=w(),[r,n]=a.useState(!0);if(s.isPending||t.isPending)return e.jsx(N,{className:"h-[200px] w-full"});if(s.isError||t.isError)return null;const l=E(t.data.deployment_type||"other"),{progress:i,itemsDone:m,totalItems:f,getItem:x}=L(s.data,l),o=x("device_verified"),d=x("pipeline_run");return e.jsxs(C,{open:r,onOpenChange:n,className:"rounded-md border border-theme-border-moderate bg-theme-surface-primary",children:[e.jsxs(p,{className:"flex w-full items-center justify-between gap-[10px] p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[i>=100?e.jsx(b,{className:"h-7 w-7",tickClasses:"w-[28px] h-[28px]"}):e.jsx(M,{value:i,children:e.jsxs("span",{className:"absolute text-text-xs font-semibold",children:[m,"/",f]})}),e.jsxs("div",{className:"text-left",children:[e.jsxs("p",{className:"text-text-xl font-semibold",children:["Starter Setup"," ",e.jsx("span",{className:"text-text-md font-medium text-theme-text-secondary",children:"(2 min)"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow these steps to make sure your client is connected and run your first MLOps pipeline with ZenML"})]})]}),e.jsx(v,{className:` ${r?"":"-rotate-90"} h-5 w-5 shrink-0 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})]}),e.jsx(g,{className:"border-t border-theme-border-moderate p-5",children:e.jsxs("ul",{className:"divide-y divide-theme-border-moderate",children:[!l&&e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(re,{active:o.isActive,completed:o.isCompleted,hasDownstreamStep:o.hasDownStreamStep})}),e.jsx("li",{className:"py-5 first:pt-0 last:pb-0",children:e.jsx(ae,{active:d.isActive,completed:d.isCompleted,hasDownstreamStep:d.hasDownStreamStep})})]})})]})}function ve(){const{setTourState:s,tourState:{tourActive:t}}=O();return a.useEffect(()=>{t&&s(r=>({...r,run:!0,stepIndex:r.stepIndex}))},[t]),e.jsxs("div",{className:"layout-container grid grid-cols-4 gap-5 py-5",children:[e.jsxs("div",{className:"col-span-4 space-y-5 lg:col-span-3",children:[e.jsx(Y,{}),e.jsx(ne,{}),e.jsx(te,{})]}),e.jsxs("div",{className:"col-span-4 space-y-5 lg:col-span-1",children:[e.jsx(Q,{}),e.jsx(W,{})]})]})}export{ve as default};
@@ -1,4 +1,4 @@
1
- import{j as e}from"./@radix-CFOkMR_E.js";import{B as r,av as i}from"./index-BczVOqUf.js";import{I as a}from"./Infobox-DSt0O-dm.js";import{H as o}from"./Helpbox-BXUMP21n.js";import{V as s,g as l}from"./Commands-DoN1xrEq.js";import"./@tanstack-DYiOyJUL.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-l_1hUr1S.js";import"./help-bu_DgLKI.js";import"./play-circle-CNtZKDnW.js";import"./CodeSnippet-Dvkx_82E.js";import"./copy-BXNk6BjL.js";const c=[{command:`zenml secret create SECRET_NAME --key1=value1 --key2=value2 --key3=value3 ...
1
+ import{j as e}from"./@radix-CFOkMR_E.js";import{B as r,av as i}from"./index-KsTz2dHG.js";import{I as a}from"./Infobox-iv1Nu1A0.js";import{H as o}from"./Helpbox-BIiNc-uH.js";import{V as s,g as l}from"./Commands-DmQwTXjj.js";import"./@tanstack-k96lU_C-.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DIYUhKYX.js";import"./help-bu_DgLKI.js";import"./play-circle-CNtZKDnW.js";import"./CodeSnippet-Cyp7f4dM.js";import"./copy-BXNk6BjL.js";const c=[{command:`zenml secret create SECRET_NAME --key1=value1 --key2=value2 --key3=value3 ...
2
2
 
3
3
 
4
4
  # Another option is to use the '--values' option and provide key-value pairs in either JSON or YAML format.
@@ -0,0 +1 @@
1
+ import{j as e,r as c}from"./@radix-CFOkMR_E.js";import{P as W,a0 as R,a1 as P,ac as q,a2 as C,a3 as y,a4 as v,aj as S,ak as Q,al as Z,C as Y,Y as E,aw as g,ax as D,M as G,N as K,O as J,S as h,A as z,b as T,B as V,h as N,r as M,z as u,D as X,o as ee,ay as se}from"./index-KsTz2dHG.js";import{S as te}from"./plus-DOeLmm7C.js";import{C as b,R as ae}from"./CopyButton-B3sWVJ4Z.js";import{S as re,P as ne}from"./SearchField-CXoBknpt.js";import{s as p,C as ce,p as A,c as le}from"./persist-BReKApOc.js";import{a as f}from"./@tanstack-k96lU_C-.js";import{L as O,c as ie}from"./@react-router-CO-OsFwI.js";import{D as oe}from"./DisplayDate-DYgIjlDF.js";import{I as de}from"./InlineAvatar-BvBtO2Dp.js";import{S as xe}from"./dots-horizontal-BObFzD5l.js";import{S as me,e as I}from"./components-DWe4cTjS.js";import{I as k}from"./Infobox-iv1Nu1A0.js";import{C as m}from"./CodeSnippet-Cyp7f4dM.js";import{C as he}from"./CollapsibleCard-Cu_A9W57.js";import{F as ue}from"./chevron-right-double-CZBOf6JM.js";import{s as pe}from"./url-rGEp5Umh.js";import"./@reactflow-DIYUhKYX.js";import"./copy-BXNk6BjL.js";import"./stack-detail-query-Ck7j7BP_.js";import"./database-1xWSgZfO.js";import"./chevron-down-D_ZlKMqH.js";function fe(){return e.jsx(W,{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"Stacks"})})}const je=s=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2929 2.29295C17.788 0.797857 20.212 0.797859 21.7071 2.29295C23.2022 3.78805 23.2022 6.21207 21.7071 7.70717L18.7097 10.7045C18.7088 10.7054 18.708 10.7063 18.7071 10.7072C18.7062 10.708 18.7053 10.7089 18.7044 10.7098L8.50078 20.9134C8.48402 20.9302 8.46741 20.9468 8.45093 20.9633C8.20603 21.2086 7.99001 21.425 7.73334 21.5943C7.50768 21.7431 7.26295 21.8607 7.00578 21.9439C6.71327 22.0386 6.40936 22.0722 6.06483 22.1102C6.04165 22.1127 6.01829 22.1153 5.99474 22.1179L2.61038 22.4939C2.30845 22.5275 2.00765 22.422 1.79284 22.2072C1.57803 21.9924 1.47251 21.6916 1.50606 21.3896L1.8821 18.0053C1.88472 17.9817 1.8873 17.9583 1.88985 17.9352C1.92786 17.5906 1.96138 17.2867 2.05607 16.9942C2.13932 16.7371 2.25695 16.4923 2.40576 16.2667C2.57501 16.01 2.79138 15.794 3.03667 15.5491C3.05317 15.5326 3.06981 15.516 3.08657 15.4992L16.2929 2.29295ZM14 7.41427L4.50078 16.9134C4.17827 17.2359 4.1184 17.3025 4.07541 17.3677C4.02581 17.4429 3.9866 17.5245 3.95885 17.6102C3.9348 17.6845 3.92024 17.7728 3.86987 18.2261L3.63187 20.3681L5.77388 20.1301C6.22718 20.0798 6.3155 20.0652 6.3898 20.0412C6.47553 20.0134 6.5571 19.9742 6.63232 19.9246C6.69752 19.8816 6.76406 19.8217 7.08657 19.4992L16.5858 10.0001L14 7.41427ZM18 8.58584L15.4142 6.00006L17.7071 3.70716C18.4211 2.99312 19.5788 2.99312 20.2929 3.70717C21.0069 4.42121 21.0069 5.57891 20.2929 6.29295L18 8.58584Z"})),w=c.forwardRef((s,t)=>{const{triggerChildren:a,children:r,onSelect:n,onOpenChange:i,icon:d,open:x,...l}=s;return e.jsxs(R,{open:x,onOpenChange:i,children:[e.jsx(P,{asChild:!0,children:e.jsx(q,{...l,className:"hover:cursor-pointer",icon:s.icon,ref:t,onSelect:o=>{o.preventDefault(),n&&n()},children:a})}),r]})});w.displayName="DialogItem";const F=c.forwardRef(({closeModal:s,name:t,...a},r)=>e.jsxs(C,{...a,ref:r,children:[e.jsx(y,{children:e.jsx(v,{children:"Update Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(H,{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(m,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${t} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));F.displayName="UpdateStackDialog";const B=c.forwardRef(({closeModal:s,name:t,...a},r)=>e.jsxs(C,{...a,ref:r,children:[e.jsx(y,{children:e.jsx(v,{children:"Delete Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(H,{action:"delete"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Delete a stack"}),e.jsx(m,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack delete ${t}`})]})]})]}));B.displayName="DeleteStackDialog";function H({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."]})]})})})}function ge({name:s}){const[t,a]=c.useState(!1),[r,n]=c.useState(!1),i=c.useRef(null),d=c.useRef(null);function x(){d.current=i.current}function l(o){a(o),o===!1&&n(!1)}return e.jsx(S,{open:r,onOpenChange:n,children:e.jsxs(S,{children:[e.jsx(Q,{className:"z-10",ref:i,children:e.jsx(xe,{className:"h-5 w-5 fill-theme-text-secondary"})}),e.jsxs(Z,{hidden:t,onCloseAutoFocus:o=>{d.current&&(d.current.focus(),d.current=null,o.preventDefault())},className:"z-10",align:"end",sideOffset:1,children:[e.jsx(w,{onSelect:x,onOpenChange:l,icon:e.jsx(je,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx(F,{name:s,className:"lg:min-w-[600px]",closeModal:()=>l(!1)})}),e.jsx(w,{onSelect:x,onOpenChange:l,icon:e.jsx(me,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Delete",children:e.jsx(B,{name:s,className:"lg:min-w-[600px]",closeModal:()=>l(!1)})})]})]})})}function Ne(){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(Y,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[e.jsx(ue,{className:"h-5 w-5 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Close"})]})})}const _=c.forwardRef(({name:s,children:t,type:a,...r},n)=>e.jsxs(R,{children:[e.jsx(P,{asChild:!0,children:t}),e.jsxs(C,{className:"w-fit max-w-fit",...r,ref:n,children:[e.jsx(y,{children:e.jsx(v,{children:E(a||"")})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(we,{type:a}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Describe your ",g(a)]}),e.jsx(m,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${D(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 ",g(a)]}),e.jsx(m,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${D(a)} update ${s}`})]})]})]})]}));_.displayName="ComponentFallbackDialog";function we({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 ",g(s),"."]})]})})})}const $=c.createContext(null);function Ce({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 ye({children:s,stackId:t,stackName:a}){return e.jsxs(G,{children:[e.jsx(K,{children:s}),e.jsx(J,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(Ce,{children:[e.jsx(Ne,{}),e.jsx(ve,{stackId:t}),e.jsx(Se,{name:a}),e.jsx(be,{stackId:t})]})})]})}function ve({stackId:s}){const t=f({...p.stackDetail(s)});return t.isError?null:t.isPending?e.jsx("div",{className:"p-5",children:e.jsx(h,{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(T,{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 be({stackId:s}){var n;const{setIntegrations:t}=U(),a=f({...p.stackDetail(s)});if(c.useEffect(()=>{var x;if(!a.data)return;const d=I((x=a.data.metadata)==null?void 0:x.components).map(l=>{var o;return(o=l.body)==null?void 0:o.integration}).filter(l=>!!l&&l!=="built-in"&&l!=="custom");d.length>=1&&t(l=>Array.from(new Set([...l,...d])))},[a.data]),a.isError)return null;if(a.isPending)return e.jsx("div",{className:"p-5",children:e.jsx(h,{className:"h-[300px] w-full"})});const r=I((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(ke,{component:i})},i.id))})}function ke({component:s}){var t,a,r,n,i;return e.jsxs(V,{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:pe(((a=s.body)==null?void 0:a.logo_url)||"")}),e.jsxs("div",{children:[e.jsx(_,{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(ce,{type:((n=s.body)==null?void 0:n.type)||"orchestrator",children:E(((i=s.body)==null?void 0:i.type)||"")})]})}function Se({name:s}){const{integrations:t}=U();return e.jsx("section",{className:"px-5 pt-5",children:e.jsx(he,{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(L,{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(m,{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(L,{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(m,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${t.join(" ")}`})]})]})]})})})}function L({children:s}){return e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-primary-100 text-text-lg font-semibold text-theme-text-brand",children:s})}function De(){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(T,{size:"md",children:t[0]})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(ye,{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(oe,{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(de,{username:t.name}):null}},{id:"actions",header:"",accessorKey:"name",cell:({getValue:s})=>e.jsx(ge,{name:s()})}]}function Ie({setHasResumeableStack:s}){const{success:t,data:a}=A(),r=f({...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&&(le(),s(!1))},[r.data]),!t||r.isError?null:r.isPending?e.jsx(h,{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(N,{className:"w-fit bg-theme-surface-primary",intent:"primary",emphasis:"subtle",asChild:!0,children:e.jsx(O,{to:M.stacks.create.newInfra,children:e.jsx("span",{children:"Review Stack"})})})})]})})}const j=1,Le=u.object({page:u.coerce.number().min(j).optional().default(j).catch(j),name:u.string().optional(),operator:u.enum(["and","or"]).optional()});function Re(){const[s]=ie(),{page:t,name:a,operator:r}=Le.parse({page:s.get("page")||void 0,name:s.get("name")||void 0});return{page:t,name:a,logical_operator:r}}function Pe(){const[s,t]=c.useState(A().success),a=Re(),{refetch:r,data:n}=f({...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(re,{searchParams:a}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(N,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>r(),children:[e.jsx(ae,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(N,{size:"md",asChild:!0,children:e.jsxs(O,{to:M.stacks.create.index,children:[e.jsx(te,{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(Ie,{setHasResumeableStack:t}),e.jsx("div",{className:"w-full",children:n?e.jsx(X,{columns:De(),data:n.items}):e.jsx(h,{className:"h-[500px] w-full"})}),n?n.total_pages>1&&e.jsx(ne,{searchParams:a,paginate:n}):e.jsx(h,{className:"h-[36px] w-[300px]"})]})]})})}function es(){const{setCurrentBreadcrumbData:s}=ee(),{setTourState:t,tourState:{tourActive:a}}=se();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(fe,{}),e.jsx(Pe,{})]})}export{es as default};
@@ -1,2 +1,2 @@
1
- import{r as u,j as a}from"./@radix-CFOkMR_E.js";import{u as h,c as w,S as v,a as y,b as k}from"./SuccessStep-DZC60t0x.js";import{S}from"./SetPassword-BXGTWiwj.js";import{I as x,h as j,j as N,F as A,k as C,l as q,e as P,f as z,i as E}from"./index-BczVOqUf.js";import{u as F}from"./index.esm-Corw4lXQ.js";import{t as M}from"./zod-BhoGpZ63.js";import{b as T}from"./@tanstack-DYiOyJUL.js";import{u as U}from"./login-mutation-CrHrndTI.js";import"./UpdatePasswordSchemas-DGvwFWO1.js";import"./check-circle-i56092KI.js";import"./url-D7mAQGUM.js";import"./@react-router-CO-OsFwI.js";import"./PasswordChecker-DUveqlva.js";import"./@reactflow-l_1hUr1S.js";const g=u.createContext(null);function $({children:e,initialSettings:r}){const[t,s]=u.useState(r||{});return a.jsx(g.Provider,{value:{serverSettings:t,setServerSettings:s},children:e})}function f(){const e=u.useContext(g);if(e===null)throw new Error("useServerActivationContext must be used within an ServerActivationProvider");return e}function I(){const{setSurveyStep:e}=h(),{setServerSettings:r}=f();function t({newPassword:s,username:o}){r(i=>({...i,admin_password:s,admin_username:o})),e(i=>i+1)}return a.jsx(S,{displayUsername:!0,headline:"Create your admin user and password",subHeadine:"Select a username and password for your admin account",submitHandler:t})}const m=e=>{e=1831565813+(e|=0)|0;let r=Math.imul(e^e>>>15,1|e);return r=r+Math.imul(r^r>>>7,61|r)^r,((r^r>>>14)>>>0)/4294967296};class L{constructor(r){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:t,separator:s,dictionaries:o,style:i,seed:l}=r;this.dictionaries=o,this.separator=s,this.length=t,this.style=i,this.seed=l}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
1
+ import{r as u,j as a}from"./@radix-CFOkMR_E.js";import{u as h,c as w,S as v,a as y,b as k}from"./SuccessStep-CTSKN2lp.js";import{S}from"./SetPassword-BOxpgh6N.js";import{I as x,h as j,j as N,F as A,k as C,l as q,e as P,f as z,i as E}from"./index-KsTz2dHG.js";import{u as F}from"./index.esm-CbHNSeVw.js";import{t as M}from"./zod-BtSyGx4C.js";import{b as T}from"./@tanstack-k96lU_C-.js";import{u as U}from"./login-mutation-DRpbESS7.js";import"./UpdatePasswordSchemas-BeCeaRW5.js";import"./check-circle-i56092KI.js";import"./url-rGEp5Umh.js";import"./@react-router-CO-OsFwI.js";import"./PasswordChecker-DUveqlva.js";import"./@reactflow-DIYUhKYX.js";const g=u.createContext(null);function $({children:e,initialSettings:r}){const[t,s]=u.useState(r||{});return a.jsx(g.Provider,{value:{serverSettings:t,setServerSettings:s},children:e})}function f(){const e=u.useContext(g);if(e===null)throw new Error("useServerActivationContext must be used within an ServerActivationProvider");return e}function I(){const{setSurveyStep:e}=h(),{setServerSettings:r}=f();function t({newPassword:s,username:o}){r(i=>({...i,admin_password:s,admin_username:o})),e(i=>i+1)}return a.jsx(S,{displayUsername:!0,headline:"Create your admin user and password",subHeadine:"Select a username and password for your admin account",submitHandler:t})}const m=e=>{e=1831565813+(e|=0)|0;let r=Math.imul(e^e>>>15,1|e);return r=r+Math.imul(r^r>>>7,61|r)^r,((r^r>>>14)>>>0)/4294967296};class L{constructor(r){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:t,separator:s,dictionaries:o,style:i,seed:l}=r;this.dictionaries=o,this.separator=s,this.length=t,this.style=i,this.seed=l}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
2
2
  Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let r=this.seed;return this.dictionaries.slice(0,this.length).reduce((t,s)=>{let o;r?(o=(l=>{if(typeof l=="string"){const c=l.split("").map(d=>d.charCodeAt(0)).reduce((d,b)=>d+b,1),n=Math.floor(Number(c));return m(n)}return m(l)})(r),r=4294967296*o):o=Math.random();let i=s[Math.floor(o*s.length)]||"";if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[l,...c]=i.split("");i=l.toUpperCase()+c.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return t?`${t}${this.separator}${i}`:`${i}`},"")}}const p={separator:"_",dictionaries:[]},_=e=>{const r=[...e&&e.dictionaries||p.dictionaries],t={...p,...e,length:e&&e.length||r.length,dictionaries:r};if(!e||!e.dictionaries||!e.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new L(t).generate()};var H=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"],D=["amaranth","amber","amethyst","apricot","aqua","aquamarine","azure","beige","black","blue","blush","bronze","brown","chocolate","coffee","copper","coral","crimson","cyan","emerald","fuchsia","gold","gray","green","harlequin","indigo","ivory","jade","lavender","lime","magenta","maroon","moccasin","olive","orange","peach","pink","plum","purple","red","rose","salmon","sapphire","scarlet","silver","tan","teal","tomato","turquoise","violet","white","yellow"];const R=["booby","swallow"];function V(){return _({dictionaries:[D,H.filter(e=>!R.includes(e))]})}function Y({submitHandler:e}){const r=u.useId(),{handleSubmit:t,register:s,formState:{isValid:o}}=F({resolver:M(w),defaultValues:{serverName:V()}});return a.jsxs("div",{className:"max-w-[570px] space-y-5",children:[a.jsxs("div",{children:[a.jsx("h1",{className:"text-display-xs font-semibold",children:"Almost there! Select a server name"}),a.jsx("p",{className:"text-theme-text-secondary",children:"This will identify your ZenML server. You can use the generated name or create your own."})]}),a.jsxs("form",{onSubmit:t(e),className:"space-y-5",children:[a.jsx("div",{className:"space-y-2",children:a.jsxs("div",{className:"space-y-0.5",children:[a.jsx("label",{htmlFor:r,className:"text-text-sm",children:"Server Name"}),a.jsx(x,{...s("serverName"),id:r,className:"w-full"})]})}),a.jsx(j,{disabled:!o,className:"w-full text-center",size:"md",children:a.jsx("span",{className:"w-full",children:"Activate your Server"})})]})]})}async function Z(e){const r=C(q.activate),t=await N(r,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const s=await t.json().then(o=>Array.isArray(o.detail)?o.detail[1]:o.detail).catch(()=>"Failed to activate server");throw new A({status:t.status,statusText:t.statusText,message:s})}return t.json()}function B(e){return T({mutationFn:async r=>Z(r),...e})}function G({setUsername:e}){const{serverSettings:r}=f(),{setSurveyStep:t}=h(),{setAuthState:s}=P(),{toast:o}=z(),{mutate:i}=U({onSuccess:()=>{s("true"),t(n=>n+1)}}),{mutate:l}=B({onSuccess:async n=>{e(n.name),i({username:n.name,password:r.admin_password??void 0})},onError:n=>{n instanceof Error&&o({status:"error",emphasis:"subtle",icon:a.jsx(E,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:n.message,rounded:!0})}});function c({serverName:n}){l({...r,server_name:n})}return a.jsx(Y,{submitHandler:c})}function J(){const{surveyStep:e}=h(),[r,t]=u.useState("");return a.jsx(a.Fragment,{children:a.jsxs($,{children:[a.jsx(v,{stepAmount:2}),e===1&&a.jsx(I,{}),e===2&&a.jsx(G,{setUsername:t}),e===3&&a.jsx(y,{subHeader:"Your created your ZenML account",username:r})]})})}function ce(){return a.jsx(k,{children:a.jsx(J,{})})}export{ce as default};
@@ -1 +1 @@
1
- import{r as o,j as e}from"./@radix-CFOkMR_E.js";import{z as i,f as v,a6 as y,ap as j,a9 as S,i as C,u as k,B as w,S as E}from"./index-BczVOqUf.js";import{u as F}from"./update-server-settings-mutation-7d8xi1tS.js";import{t as q}from"./zod-BhoGpZ63.js";import{c as A}from"./@tanstack-DYiOyJUL.js";import{u as I,C as b}from"./index.esm-Corw4lXQ.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-l_1hUr1S.js";const _=i.object({announcements:i.boolean(),updates:i.boolean()});function K({settings:t}){var h,f;const c=o.useId(),d=o.useId(),{toast:l}=v(),u=A(),{mutate:g}=F({onError:s=>{u.invalidateQueries({queryKey:j()}),S(s)&&l({status:"error",emphasis:"subtle",icon:e.jsx(C,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:s.message,rounded:!0})},onSuccess:()=>{u.invalidateQueries({queryKey:j()}),l({status:"success",emphasis:"subtle",rounded:!0,description:"Settings updated successfully"})}}),{control:m,handleSubmit:p,watch:x}=I({resolver:q(_),defaultValues:{announcements:((h=t.body)==null?void 0:h.display_announcements)??void 0,updates:((f=t.body)==null?void 0:f.display_updates)??void 0}});function N({announcements:s,updates:a}){g({display_announcements:s,display_updates:a})}return o.useEffect(()=>{const s=x(()=>p(N)());return()=>s.unsubscribe()},[p,x]),e.jsx("form",{id:"create-user-form",className:"space-y-5",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"announcements",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:c})}),e.jsxs("label",{htmlFor:c,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Announcements"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Enable Announcements for important ZenML updates, surveys, and feedback opportunities."})]})]}),e.jsx("hr",{}),e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"updates",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:d})}),e.jsxs("label",{htmlFor:d,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Updates"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Activate Updates to receive the latest ZenML news and feature releases."})]})]})]})})}function P(){const{data:t}=k({throwOnError:!0});return e.jsxs(w,{className:"flex flex-col gap-5 p-5",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Notifications"}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"ZenML comes equipped with default widgets designed to enhance your experience by analyzing usage patterns, gathering your feedback, and ensuring you stay informed about our latest updates and features."})]}),e.jsx("div",{className:"",children:t?e.jsx(K,{settings:t}):e.jsx(E,{className:"h-[250px] w-full"})})]})}export{P as default};
1
+ import{r as o,j as e}from"./@radix-CFOkMR_E.js";import{z as i,f as v,a6 as y,ap as j,a9 as S,i as C,u as k,B as w,S as E}from"./index-KsTz2dHG.js";import{u as F}from"./update-server-settings-mutation-f3ZT7psb.js";import{t as q}from"./zod-BtSyGx4C.js";import{c as A}from"./@tanstack-k96lU_C-.js";import{u as I,C as b}from"./index.esm-CbHNSeVw.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DIYUhKYX.js";const _=i.object({announcements:i.boolean(),updates:i.boolean()});function K({settings:t}){var h,f;const c=o.useId(),d=o.useId(),{toast:l}=v(),u=A(),{mutate:g}=F({onError:s=>{u.invalidateQueries({queryKey:j()}),S(s)&&l({status:"error",emphasis:"subtle",icon:e.jsx(C,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:s.message,rounded:!0})},onSuccess:()=>{u.invalidateQueries({queryKey:j()}),l({status:"success",emphasis:"subtle",rounded:!0,description:"Settings updated successfully"})}}),{control:m,handleSubmit:p,watch:x}=I({resolver:q(_),defaultValues:{announcements:((h=t.body)==null?void 0:h.display_announcements)??void 0,updates:((f=t.body)==null?void 0:f.display_updates)??void 0}});function N({announcements:s,updates:a}){g({display_announcements:s,display_updates:a})}return o.useEffect(()=>{const s=x(()=>p(N)());return()=>s.unsubscribe()},[p,x]),e.jsx("form",{id:"create-user-form",className:"space-y-5",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"announcements",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:c})}),e.jsxs("label",{htmlFor:c,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Announcements"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Enable Announcements for important ZenML updates, surveys, and feedback opportunities."})]})]}),e.jsx("hr",{}),e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx(b,{control:m,name:"updates",render:({field:{value:s,onChange:a,ref:n}})=>e.jsx(y,{ref:n,checked:s,onCheckedChange:r=>{a(!!r)},id:d})}),e.jsxs("label",{htmlFor:d,className:"text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"Updates"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Activate Updates to receive the latest ZenML news and feature releases."})]})]})]})})}function P(){const{data:t}=k({throwOnError:!0});return e.jsxs(w,{className:"flex flex-col gap-5 p-5",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Notifications"}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"ZenML comes equipped with default widgets designed to enhance your experience by analyzing usage patterns, gathering your feedback, and ensuring you stay informed about our latest updates and features."})]}),e.jsx("div",{className:"",children:t?e.jsx(K,{settings:t}):e.jsx(E,{className:"h-[250px] w-full"})})]})}export{P as default};
@@ -1 +1 @@
1
- import{r as l,j as s}from"./@radix-CFOkMR_E.js";import{a0 as D,a1 as E,h as f,a2 as k,a3 as z,a4 as M,f as C,ao as P,a9 as b,i as S,I as o,a7 as A,a8 as T,z as a,an as B,B as L,S as v,A as q,b as Q,am as R}from"./index-BczVOqUf.js";import{c as V}from"./@tanstack-DYiOyJUL.js";import{u as F}from"./index.esm-Corw4lXQ.js";import{t as U}from"./zod-BhoGpZ63.js";import{P as Z}from"./PasswordChecker-DUveqlva.js";import{u as _}from"./UpdatePasswordSchemas-DGvwFWO1.js";import{D as K}from"./DisplayDate-DYgIjlDF.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-l_1hUr1S.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(),n=l.useId(),d=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:n,className:"text-text-sm",children:"New Password"}),s.jsx(o,{...c("newPassword"),type:"password",id:n,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:d,className:"text-text-sm",children:"Confirm Password"}),s.jsx(o,{...c("confirmPassword"),type:"password",id:d,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:n}=C(),d=l.useId(),x=l.useId(),p=l.useId(),{isPending:j,mutate:c}=P({onError(r){b(r)&&n({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(),n({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:d,className:"text-text-sm",children:"Full Name"}),s.jsx(o,{placeholder:(h=e.body)==null?void 0:h.full_name,...m("fullName"),id:d,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 ns(){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{ns as default};
1
+ import{r as l,j as s}from"./@radix-CFOkMR_E.js";import{a0 as D,a1 as E,h as f,a2 as k,a3 as z,a4 as M,f as C,ao as P,a9 as b,i as S,I as o,a7 as A,a8 as T,z as a,an as B,B as L,S as v,A as q,b as Q,am as R}from"./index-KsTz2dHG.js";import{c as V}from"./@tanstack-k96lU_C-.js";import{u as F}from"./index.esm-CbHNSeVw.js";import{t as U}from"./zod-BtSyGx4C.js";import{P as Z}from"./PasswordChecker-DUveqlva.js";import{u as _}from"./UpdatePasswordSchemas-BeCeaRW5.js";import{D as K}from"./DisplayDate-DYgIjlDF.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DIYUhKYX.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(),n=l.useId(),d=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:n,className:"text-text-sm",children:"New Password"}),s.jsx(o,{...c("newPassword"),type:"password",id:n,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:d,className:"text-text-sm",children:"Confirm Password"}),s.jsx(o,{...c("confirmPassword"),type:"password",id:d,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:n}=C(),d=l.useId(),x=l.useId(),p=l.useId(),{isPending:j,mutate:c}=P({onError(r){b(r)&&n({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(),n({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:d,className:"text-text-sm",children:"Full Name"}),s.jsx(o,{placeholder:(h=e.body)==null?void 0:h.full_name,...m("fullName"),id:d,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 ns(){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{ns as default};
@@ -1 +1 @@
1
- import{j as e}from"./@radix-CFOkMR_E.js";import{u as x,S as n,A as c,a as d,g as f,b as u,r,c as h,d as p,an as g,am as v}from"./index-BczVOqUf.js";import{h as j,O as N}from"./@react-router-CO-OsFwI.js";import{I as b}from"./InlineAvatar-xsrsIGE-.js";import"./@tanstack-DYiOyJUL.js";import"./@reactflow-l_1hUr1S.js";function w({children:s,...t}){return e.jsx(j,{className:({isActive:a})=>` ${a?"bg-primary-50 text-theme-text-brand":"hover:bg-neutral-200"} block rounded-md px-4 py-1 text-text-sm font-semibold `,...t,children:s})}function o({items:s}){return e.jsx("nav",{className:"flex w-full flex-col items-center",children:e.jsx("ul",{className:"flex w-full flex-row flex-wrap items-center gap-1 lg:flex-col lg:items-start",children:s.map(t=>e.jsx("li",{className:"lg:w-full",children:e.jsx(w,{end:!0,to:t.href,children:t.name})},t.name))})})}function y(){var l,i,m;const{data:s,isError:t,isPending:a}=x({throwOnError:!0});return a?e.jsx(n,{className:"h-9 w-full"}):t?null:e.jsxs("div",{className:"flex w-full items-center gap-2 rounded-md border border-theme-border-moderate bg-theme-surface-primary p-2",children:[e.jsxs(c,{size:"md",type:"square",children:[e.jsx(d,{src:f(((l=s.body)==null?void 0:l.server_name)||"default")}),e.jsx(u,{size:"md",children:((i=s.body)==null?void 0:i.server_name[0])||"D"})]}),e.jsx("p",{className:"truncate text-text-sm font-semibold",children:(m=s.body)==null?void 0:m.server_name})]})}function S(){function s(){return[{name:"General",href:r.settings.general},{name:"Members",href:r.settings.members},{name:"Repositories",href:r.settings.repositories.overview},{name:"Secrets",href:r.settings.secrets.overview},{name:"Connectors",href:r.settings.connectors.overview},{name:"Notifications",href:r.settings.notifications}]}const t=s();return e.jsx(o,{items:t})}function I(){function s(){return[{name:"Profile",href:r.settings.profile}]}const t=s();return e.jsx(o,{items:t})}function k(){const{data:s,isPending:t,isError:a}=h();return t?e.jsx(n,{className:"h-[70px] w-full"}):a?null:e.jsxs("div",{className:"rounded-md border border-theme-border-moderate bg-theme-surface-primary p-3",children:[e.jsxs("div",{className:"mb-2 flex items-center",children:[e.jsx(p,{className:"h-4 w-4 fill-theme-text-brand"}),e.jsx("p",{className:"ml-2 text-text-sm font-semibold",children:"Open source"})]}),e.jsxs("p",{className:"mb-1 text-text-sm text-theme-text-tertiary",children:["ZenML v",s.version]}),e.jsxs("p",{className:"text-text-sm text-theme-text-tertiary",children:["UI Version ","v0.21.1"]})]})}function L(){const{data:s}=g();return e.jsxs("div",{className:"layout-container flex flex-col gap-7 pt-5 lg:flex-row lg:px-10",children:[e.jsxs("div",{className:"flex shrink-0 flex-col gap-4 lg:w-[200px]",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-text-xs font-semibold uppercase text-theme-text-tertiary",children:"Server"}),e.jsx(y,{}),e.jsx(S,{})]}),s?e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-text-xs font-semibold uppercase text-theme-text-tertiary",children:"Account"}),e.jsx(b,{username:v(s)})]}):e.jsx(n,{className:"h-[70px] w-full"}),e.jsx("div",{className:"flex flex-col gap-4",children:e.jsx(I,{})}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-text-xs font-semibold uppercase text-theme-text-tertiary",children:"Version"}),e.jsx(k,{})]})]}),e.jsx("div",{className:"w-full",children:e.jsx(N,{})})]})}export{L as default};
1
+ import{j as e}from"./@radix-CFOkMR_E.js";import{u as x,S as n,A as c,a as d,g as f,b as u,r,c as h,d as p,an as g,am as v}from"./index-KsTz2dHG.js";import{h as j,O as N}from"./@react-router-CO-OsFwI.js";import{I as b}from"./InlineAvatar-BvBtO2Dp.js";import"./@tanstack-k96lU_C-.js";import"./@reactflow-DIYUhKYX.js";function w({children:s,...t}){return e.jsx(j,{className:({isActive:a})=>` ${a?"bg-primary-50 text-theme-text-brand":"hover:bg-neutral-200"} block rounded-md px-4 py-1 text-text-sm font-semibold `,...t,children:s})}function o({items:s}){return e.jsx("nav",{className:"flex w-full flex-col items-center",children:e.jsx("ul",{className:"flex w-full flex-row flex-wrap items-center gap-1 lg:flex-col lg:items-start",children:s.map(t=>e.jsx("li",{className:"lg:w-full",children:e.jsx(w,{end:!0,to:t.href,children:t.name})},t.name))})})}function y(){var l,i,m;const{data:s,isError:t,isPending:a}=x({throwOnError:!0});return a?e.jsx(n,{className:"h-9 w-full"}):t?null:e.jsxs("div",{className:"flex w-full items-center gap-2 rounded-md border border-theme-border-moderate bg-theme-surface-primary p-2",children:[e.jsxs(c,{size:"md",type:"square",children:[e.jsx(d,{src:f(((l=s.body)==null?void 0:l.server_name)||"default")}),e.jsx(u,{size:"md",children:((i=s.body)==null?void 0:i.server_name[0])||"D"})]}),e.jsx("p",{className:"truncate text-text-sm font-semibold",children:(m=s.body)==null?void 0:m.server_name})]})}function S(){function s(){return[{name:"General",href:r.settings.general},{name:"Members",href:r.settings.members},{name:"Repositories",href:r.settings.repositories.overview},{name:"Secrets",href:r.settings.secrets.overview},{name:"Connectors",href:r.settings.connectors.overview},{name:"Notifications",href:r.settings.notifications}]}const t=s();return e.jsx(o,{items:t})}function I(){function s(){return[{name:"Profile",href:r.settings.profile}]}const t=s();return e.jsx(o,{items:t})}function k(){const{data:s,isPending:t,isError:a}=h();return t?e.jsx(n,{className:"h-[70px] w-full"}):a?null:e.jsxs("div",{className:"rounded-md border border-theme-border-moderate bg-theme-surface-primary p-3",children:[e.jsxs("div",{className:"mb-2 flex items-center",children:[e.jsx(p,{className:"h-4 w-4 fill-theme-text-brand"}),e.jsx("p",{className:"ml-2 text-text-sm font-semibold",children:"Open source"})]}),e.jsxs("p",{className:"mb-1 text-text-sm text-theme-text-tertiary",children:["ZenML v",s.version]}),e.jsxs("p",{className:"text-text-sm text-theme-text-tertiary",children:["UI Version ","v0.22.0"]})]})}function L(){const{data:s}=g();return e.jsxs("div",{className:"layout-container flex flex-col gap-7 pt-5 lg:flex-row lg:px-10",children:[e.jsxs("div",{className:"flex shrink-0 flex-col gap-4 lg:w-[200px]",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-text-xs font-semibold uppercase text-theme-text-tertiary",children:"Server"}),e.jsx(y,{}),e.jsx(S,{})]}),s?e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-text-xs font-semibold uppercase text-theme-text-tertiary",children:"Account"}),e.jsx(b,{username:v(s)})]}):e.jsx(n,{className:"h-[70px] w-full"}),e.jsx("div",{className:"flex flex-col gap-4",children:e.jsx(I,{})}),e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx("p",{className:"text-text-xs font-semibold uppercase text-theme-text-tertiary",children:"Version"}),e.jsx(k,{})]})]}),e.jsx("div",{className:"w-full",children:e.jsx(N,{})})]})}export{L as default};
@@ -0,0 +1 @@
1
+ import{r as p,j as t}from"./@radix-CFOkMR_E.js";import{b as et,u as P,C as R,S as tt,a as ce,P as le,W as rt,L as st}from"./ProviderRadio-pSAvrGRS.js";import{B as nt,z as h,q as De,k as Y,l as J,j as ve,n as Re,F as X,S as ee,I as Z,h as w,aq as ot,ar as it,as as at,at as ct,aE as lt,au as ut,a6 as dt,a0 as ft,a2 as mt,a4 as ht,d as xt,y as pt,f as Me,i as yt,r as jt,A as gt,b as _t,Y as vt}from"./index-KsTz2dHG.js";import{t as $}from"./zod-BtSyGx4C.js";import{a as j,C as b,u as H,F as W,b as Ct}from"./index.esm-CbHNSeVw.js";import{e as Ce,f as bt,S as St,s as Le,C as wt}from"./persist-BReKApOc.js";import{q as qe,a as te,b as Ve,h as Be,c as Nt}from"./@tanstack-k96lU_C-.js";import{o as Ft,s as kt}from"./url-rGEp5Umh.js";import{S as Pt}from"./plus-DOeLmm7C.js";import{S as At,e as zt}from"./components-DWe4cTjS.js";import{S as It}from"./dots-horizontal-BObFzD5l.js";import{T as be}from"./Tick-Bnr2TpW6.js";import{L as Ot}from"./@react-router-CO-OsFwI.js";import"./aws-BgKTfTfx.js";import"./@reactflow-DIYUhKYX.js";import"./stack-detail-query-Ck7j7BP_.js";import"./database-1xWSgZfO.js";const Ze=p.createContext(null);function Tt({children:e}){const[r,s]=p.useState({stackName:null,createdStackId:null,connectorConfig:null,fullstackResources:null,artifactStoreConfig:null,registryConfig:null,orchestratorConfig:null});return t.jsx(Ze.Provider,{value:{data:r,setData:s},children:e})}function S(){const e=p.useContext(Ze);if(e===null)throw new Error("useExistingInfraContext must be used within an ExistingInfraProvider");return e}const $e=p.createContext(null);function ke({children:e,initialSchema:r}){const[s,n]=p.useState(r);return t.jsx($e.Provider,{value:{schema:s,setSchema:n},children:e})}function re(){const e=p.useContext($e);if(!e)throw new Error("useSchemaContext must be used within a SchemaProvider");return e}function O({children:e}){return t.jsx(nt,{className:"w-full",children:e})}function T({children:e}){return t.jsx("div",{className:"border-b border-theme-border-moderate px-5 py-3 text-display-xs font-semibold",children:e})}function E({children:e}){return t.jsx("div",{className:"p-5",children:e})}function Et({children:e}){return t.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-theme-border-moderate p-5",children:e})}function D({children:e,displayCancel:r=!0}){return t.jsxs(Et,{children:[r&&t.jsx(et,{}),e]})}const Dt=h.object({resourceId:h.string().min(1),flavor:h.string()});function Rt(){return t.jsxs("div",{className:"space-y-1",children:[t.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[t.jsx(Ce,{type:"artifact_store",className:"h-5 w-5 fill-primary-400"}),"Select your Artifact Store"]}),t.jsx("p",{className:"text-theme-text-secondary",children:"Choose one of the storages for the new Artifact Store."})]})}const M=p.forwardRef(({className:e,...r},s)=>t.jsx("label",{ref:s,...r,className:De("flex w-full items-center gap-2 space-x-2 rounded-md border border-theme-border-moderate p-4 font-semibold transition-shadow duration-150 hover:cursor-pointer hover:shadow-sm data-[state=selected]:border-theme-surface-strong",e)}));M.displayName="RadioItemLabel";const L=p.forwardRef(({className:e,type:r,...s},n)=>t.jsx("input",{type:"radio",ref:n,...s,className:De("h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong",e)}));L.displayName="RadioItem";var He=Symbol.for("immer-nothing"),Pe=Symbol.for("immer-draftable"),g=Symbol.for("immer-state");function v(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var A=Object.getPrototypeOf;function z(e){return!!e&&!!e[g]}function F(e){var r;return e?We(e)||Array.isArray(e)||!!e[Pe]||!!((r=e.constructor)!=null&&r[Pe])||ne(e)||oe(e):!1}var Mt=Object.prototype.constructor.toString();function We(e){if(!e||typeof e!="object")return!1;const r=A(e);if(r===null)return!0;const s=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return s===Object?!0:typeof s=="function"&&Function.toString.call(s)===Mt}function U(e,r){se(e)===0?Reflect.ownKeys(e).forEach(s=>{r(s,e[s],e)}):e.forEach((s,n)=>r(n,s,e))}function se(e){const r=e[g];return r?r.type_:Array.isArray(e)?1:ne(e)?2:oe(e)?3:0}function he(e,r){return se(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Ke(e,r,s){const n=se(e);n===2?e.set(r,s):n===3?e.add(s):e[r]=s}function Lt(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function ne(e){return e instanceof Map}function oe(e){return e instanceof Set}function N(e){return e.copy_||e.base_}function xe(e,r){if(ne(e))return new Map(e);if(oe(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const s=We(e);if(r===!0||r==="class_only"&&!s){const n=Object.getOwnPropertyDescriptors(e);delete n[g];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],u=n[a];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[a]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[a]})}return Object.create(A(e),n)}else{const n=A(e);if(n!==null&&s)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Se(e,r=!1){return ie(e)||z(e)||!F(e)||(se(e)>1&&(e.set=e.add=e.clear=e.delete=qt),Object.freeze(e),r&&Object.entries(e).forEach(([s,n])=>Se(n,!0))),e}function qt(){v(2)}function ie(e){return Object.isFrozen(e)}var Vt={};function k(e){const r=Vt[e];return r||v(0,e),r}var q;function Ue(){return q}function Bt(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ae(e,r){r&&(k("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function pe(e){ye(e),e.drafts_.forEach(Zt),e.drafts_=null}function ye(e){e===q&&(q=e.parent_)}function ze(e){return q=Bt(q,e)}function Zt(e){const r=e[g];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Ie(e,r){r.unfinalizedDrafts_=r.drafts_.length;const s=r.drafts_[0];return e!==void 0&&e!==s?(s[g].modified_&&(pe(r),v(4)),F(e)&&(e=Q(r,e),r.parent_||G(r,e)),r.patches_&&k("Patches").generateReplacementPatches_(s[g].base_,e,r.patches_,r.inversePatches_)):e=Q(r,s,[]),pe(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==He?e:void 0}function Q(e,r,s){if(ie(r))return r;const n=r[g];if(!n)return U(r,(o,i)=>Oe(e,n,r,o,i,s)),r;if(n.scope_!==e)return r;if(!n.modified_)return G(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let i=o,a=!1;n.type_===3&&(i=new Set(o),o.clear(),a=!0),U(i,(u,f)=>Oe(e,n,o,u,f,s,a)),G(e,o,!1),s&&e.patches_&&k("Patches").generatePatches_(n,s,e.patches_,e.inversePatches_)}return n.copy_}function Oe(e,r,s,n,o,i,a){if(z(o)){const u=i&&r&&r.type_!==3&&!he(r.assigned_,n)?i.concat(n):void 0,f=Q(e,o,u);if(Ke(s,n,f),z(f))e.canAutoFreeze_=!1;else return}else a&&s.add(o);if(F(o)&&!ie(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Q(e,o),(!r||!r.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(s,n)&&G(e,o)}}function G(e,r,s=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Se(r,s)}function $t(e,r){const s=Array.isArray(e),n={type_:s?1:0,scope_:r?r.scope_:Ue(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=we;s&&(o=[n],i=V);const{revoke:a,proxy:u}=Proxy.revocable(o,i);return n.draft_=u,n.revoke_=a,u}var we={get(e,r){if(r===g)return e;const s=N(e);if(!he(s,r))return Ht(e,s,r);const n=s[r];return e.finalized_||!F(n)?n:n===ue(e.base_,r)?(de(e),e.copy_[r]=ge(n,e)):n},has(e,r){return r in N(e)},ownKeys(e){return Reflect.ownKeys(N(e))},set(e,r,s){const n=Qe(N(e),r);if(n!=null&&n.set)return n.set.call(e.draft_,s),!0;if(!e.modified_){const o=ue(N(e),r),i=o==null?void 0:o[g];if(i&&i.base_===s)return e.copy_[r]=s,e.assigned_[r]=!1,!0;if(Lt(s,o)&&(s!==void 0||he(e.base_,r)))return!0;de(e),je(e)}return e.copy_[r]===s&&(s!==void 0||r in e.copy_)||Number.isNaN(s)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=s,e.assigned_[r]=!0),!0},deleteProperty(e,r){return ue(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,de(e),je(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const s=N(e),n=Reflect.getOwnPropertyDescriptor(s,r);return n&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:n.enumerable,value:s[r]}},defineProperty(){v(11)},getPrototypeOf(e){return A(e.base_)},setPrototypeOf(){v(12)}},V={};U(we,(e,r)=>{V[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});V.deleteProperty=function(e,r){return V.set.call(this,e,r,void 0)};V.set=function(e,r,s){return we.set.call(this,e[0],r,s,e[0])};function ue(e,r){const s=e[g];return(s?N(s):e)[r]}function Ht(e,r,s){var o;const n=Qe(r,s);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Qe(e,r){if(!(r in e))return;let s=A(e);for(;s;){const n=Object.getOwnPropertyDescriptor(s,r);if(n)return n;s=A(s)}}function je(e){e.modified_||(e.modified_=!0,e.parent_&&je(e.parent_))}function de(e){e.copy_||(e.copy_=xe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Wt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,s,n)=>{if(typeof r=="function"&&typeof s!="function"){const i=s;s=r;const a=this;return function(f=i,...d){return a.produce(f,c=>s.call(this,c,...d))}}typeof s!="function"&&v(6),n!==void 0&&typeof n!="function"&&v(7);let o;if(F(r)){const i=ze(this),a=ge(r,void 0);let u=!0;try{o=s(a),u=!1}finally{u?pe(i):ye(i)}return Ae(i,n),Ie(o,i)}else if(!r||typeof r!="object"){if(o=s(r),o===void 0&&(o=r),o===He&&(o=void 0),this.autoFreeze_&&Se(o,!0),n){const i=[],a=[];k("Patches").generateReplacementPatches_(r,o,i,a),n(i,a)}return o}else v(1,r)},this.produceWithPatches=(r,s)=>{if(typeof r=="function")return(a,...u)=>this.produceWithPatches(a,f=>r(f,...u));let n,o;return[this.produce(r,s,(a,u)=>{n=a,o=u}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){F(e)||v(8),z(e)&&(e=Kt(e));const r=ze(this),s=ge(e,void 0);return s[g].isManual_=!0,ye(r),s}finishDraft(e,r){const s=e&&e[g];(!s||!s.isManual_)&&v(9);const{scope_:n}=s;return Ae(n,r),Ie(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,r){let s;for(s=r.length-1;s>=0;s--){const o=r[s];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}s>-1&&(r=r.slice(s+1));const n=k("Patches").applyPatches_;return z(e)?n(e,r):this.produce(e,o=>n(o,r))}};function ge(e,r){const s=ne(e)?k("MapSet").proxyMap_(e,r):oe(e)?k("MapSet").proxySet_(e,r):$t(e,r);return(r?r.scope_:Ue()).drafts_.push(s),s}function Kt(e){return z(e)||v(10,e),Ge(e)}function Ge(e){if(!F(e)||ie(e))return e;const r=e[g];let s;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,s=xe(e,r.scope_.immer_.useStrictShallowCopy_)}else s=xe(e,!0);return U(s,(n,o)=>{Ke(s,n,Ge(o))}),r&&(r.finalized_=!1),s}var _=new Wt,I=_.produce;_.produceWithPatches.bind(_);_.setAutoFreeze.bind(_);_.setUseStrictShallowCopy.bind(_);_.applyPatches.bind(_);_.createDraft.bind(_);_.finishDraft.bind(_);function Ut(){const{data:e,setData:r}=S(),{setCurrentStep:s}=P();if(!e.fullstackResources)return s(2),{handleFormSubmit:()=>{},flattenedInstances:[]};const n=e.fullstackResources.components_resources_info.artifact_store,o=n.flatMap(a=>a.accessible_by_service_connector.map(u=>({...a,value:u})));function i({flavor:a,resourceId:u}){const f=n.find(d=>d.flavor===a);f&&(r(d=>I(d,c=>{c.artifactStoreConfig={flavor:a,configuration:Object.fromEntries(Object.keys(f.required_configuration||{}).map(m=>[m,u])),service_connector_resource_id:u}})),s(d=>d+1))}return{handleFormSubmit:i,flattenedInstances:o}}async function Qt(e){const r=Y(J.flavors.all)+(e?`?${Ft(e)}`:""),s=await ve(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&Re(),!s.ok){const n=await s.json().then(o=>Array.isArray(o.detail)?o.detail[1]:o.detail).catch(()=>"Error while fetching flavors");throw new X({status:s.status,statusText:s.statusText,message:n})}return s.json()}const Ye={all:["flavors"],flavorList:e=>qe({queryKey:[...Ye.all,e],queryFn:async()=>Qt(e)})};function B({flavor:e,type:r,width:s=32,height:n=32,...o}){var a;const i=te({...Ye.flavorList({name:e,type:r})});return i.isError?null:i.isPending?t.jsx(ee,{style:{height:`${n}px`,width:`${s}px`}}):t.jsx("img",{width:s,height:n,alt:`${e} logo`,...o,src:kt(((a=i.data.items[0].body)==null?void 0:a.logo_url)??"")})}const Gt="artifact_store";function Yt(){const[e,r]=p.useState(""),{control:s,setValue:n,handleSubmit:o,register:i,watch:a,trigger:u,reset:f}=j(),{flattenedInstances:d,handleFormSubmit:c}=Ut(),m=d.filter(l=>l.value.toLocaleLowerCase().includes(e.toLocaleLowerCase()));return t.jsxs(t.Fragment,{children:[t.jsx(Z,{placeholder:"Search...",onChange:l=>{f(),r(l.target.value)}}),t.jsxs("form",{onSubmit:o(c),id:"artifact-store-form",children:[t.jsx("input",{type:"hidden",...i("flavor")}),t.jsx("ul",{className:"space-y-1",children:m.map(l=>t.jsx("li",{children:t.jsx(b,{name:"resourceId",control:s,render:({field:{onChange:x,...y}})=>t.jsxs(M,{"data-state":a("resourceId")===l.value?"selected":"unselected",htmlFor:l.value,children:[t.jsx(L,{id:l.value,type:"radio",...y,onChange:C=>{n("flavor",l.flavor,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}),x(C.target.value),u()},value:l.value,name:"connector-radio"}),t.jsx(B,{type:Gt,width:24,height:24,flavor:l.flavor})," ",t.jsx("span",{children:l.value})]})})},l.value))})]})]})}function Jt(){const e=H({resolver:$(Dt),shouldUnregister:!0});return t.jsx(W,{...e,children:t.jsxs(O,{children:[t.jsx(T,{children:"Artifact Store"}),t.jsx(E,{children:t.jsxs("section",{className:"space-y-5 py-5 first:pt-0 last:pb-0",children:[t.jsx(Rt,{}),t.jsx(Yt,{})]})}),t.jsx(D,{children:t.jsx(Xt,{})})]})})}function Xt(){const e=j();return t.jsx(w,{disabled:!e.formState.isValid,form:"artifact-store-form",size:"md",children:"Next"})}function er(e,r){const s=Object.keys(e).reduce((n,o)=>{var d,c;const i=e[o];let a;const u=Je(o,r);switch(i.type||((c=(d=i.anyOf)==null?void 0:d.find(m=>m.type!==null))==null?void 0:c.type)){case"string":a=h.string().trim();break;case"boolean":a=h.boolean();break;case"array":a=h.array(h.string());break;default:a=h.string();break}return u&&(a=a.optional()),!u&&i.type==="string"&&a instanceof h.ZodString&&(a=a.min(1,"Required")),n[o]=a,n},{});return h.object(s)}function Je(e,r){return!r.includes(e)}async function tr(e){const r=Y(J.serviceConnectors.types.detail(e)),s=await ve(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&Re(),!s.ok){const n=await s.json().then(o=>Array.isArray(o.detail)?o.detail[1]:o.detail).catch(()=>"Error while fetching service connector type");throw new X({status:s.status,statusText:s.statusText,message:n})}return s.json()}const Ne={connectorTypes:["service_connector_types"],serviceConnectorTypeDetail:e=>qe({queryKey:[...Ne.connectorTypes,e],queryFn:async()=>tr(e)})},Xe=h.object({authMethod:h.string().min(1),stackName:bt});function rr(){var c,m;const{data:e}=S(),{setCurrentStep:r}=P(),{control:s,watch:n,resetField:o}=j(),{setSchema:i}=re(),a=te({...Ne.serviceConnectorTypeDetail(((c=e.connectorConfig)==null?void 0:c.type)||"")});if(a.isError)return null;if(a.isPending)return t.jsx(ee,{className:"h-[40px] w-[100px]"});const u=a.data.auth_methods.filter(l=>l.auth_method!=="implicit").map(l=>({name:l.name,auth_method:l.auth_method}));if(!((m=e.connectorConfig)!=null&&m.type)){r(1);return}function f(){var Fe;const l=n("authMethod"),x=(Fe=a.data)==null?void 0:Fe.auth_methods.find(ae=>ae.auth_method===l);if(!x)return;const y=er(x.config_schema.properties,x.config_schema.required);i(Xe.merge(y)),Object.keys(y.shape).forEach(ae=>o(ae))}const d=e.connectorConfig.type||"";return t.jsx(b,{control:s,name:"authMethod",render:({field:{onChange:l,ref:x,...y}})=>t.jsxs(ot,{...y,onValueChange:C=>{l(C),f()},children:[t.jsx(it,{className:"w-fit border border-neutral-300 text-left text-text-md",children:t.jsx(at,{className:"flex items-center gap-2",placeholder:"Select your Auth Method"})}),t.jsx(ct,{children:t.jsx(lt,{viewportClassName:"max-h-[300px]",children:u.map(C=>t.jsx(ut,{className:"space-x-2",value:C.auth_method,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(R,{provider:d}),t.jsx("div",{children:C.name})]})},C.auth_method))})})]})})}function sr(){return t.jsxs("section",{className:"space-y-5 py-5 first:pt-0 last:pb-0",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[t.jsx(St,{className:"h-5 w-5 fill-primary-400"}),"Select an Authentication Method"]}),t.jsx("p",{className:"text-theme-text-secondary",children:"Connect ZenML to your resources for seamless integration of cloud services into your ML pipelines."})]}),t.jsx(rr,{})]})}const nr=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 8C6 4.68629 8.68629 2 12 2C15.3137 2 18 4.68629 18 8V9.15032C18.2826 9.21225 18.5539 9.30243 18.816 9.43597C19.5686 9.81947 20.1805 10.4314 20.564 11.184C20.8113 11.6694 20.9099 12.1861 20.9558 12.7482C21 13.2894 21 13.9537 21 14.7587V16.2413C21 17.0463 21 17.7106 20.9558 18.2518C20.9099 18.8139 20.8113 19.3306 20.564 19.816C20.1805 20.5686 19.5686 21.1805 18.816 21.564C18.3306 21.8113 17.8139 21.9099 17.2518 21.9558C16.7106 22 16.0463 22 15.2413 22H8.75868C7.95372 22 7.28936 22 6.74817 21.9558C6.18608 21.9099 5.66937 21.8113 5.18404 21.564C4.43139 21.1805 3.81947 20.5686 3.43597 19.816C3.18868 19.3306 3.09012 18.8139 3.04419 18.2518C2.99998 17.7106 2.99999 17.0463 3 16.2413V14.7587C2.99999 13.9537 2.99998 13.2894 3.04419 12.7482C3.09012 12.1861 3.18868 11.6694 3.43597 11.184C3.81947 10.4314 4.43139 9.81947 5.18404 9.43597C5.44614 9.30243 5.71739 9.21225 6 9.15032V8ZM8 9.00163C8.23771 8.99999 8.4904 9 8.7587 9H15.2413C15.5096 9 15.7623 8.99999 16 9.00163V8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8V9.00163ZM6.91104 11.0376C6.47262 11.0734 6.24842 11.1383 6.09202 11.218C5.7157 11.4097 5.40973 11.7157 5.21799 12.092C5.1383 12.2484 5.07337 12.4726 5.03755 12.911C5.00078 13.3611 5 13.9434 5 14.8V16.2C5 17.0566 5.00078 17.6389 5.03755 18.089C5.07337 18.5274 5.1383 18.7516 5.21799 18.908C5.40973 19.2843 5.7157 19.5903 6.09202 19.782C6.24842 19.8617 6.47262 19.9266 6.91104 19.9624C7.36113 19.9992 7.94342 20 8.8 20H15.2C16.0566 20 16.6389 19.9992 17.089 19.9624C17.5274 19.9266 17.7516 19.8617 17.908 19.782C18.2843 19.5903 18.5903 19.2843 18.782 18.908C18.8617 18.7516 18.9266 18.5274 18.9624 18.089C18.9992 17.6389 19 17.0566 19 16.2V14.8C19 13.9434 18.9992 13.3611 18.9624 12.911C18.9266 12.4726 18.8617 12.2484 18.782 12.092C18.5903 11.7157 18.2843 11.4097 17.908 11.218C17.7516 11.1383 17.5274 11.0734 17.089 11.0376C16.6389 11.0008 16.0566 11 15.2 11H8.8C7.94342 11 7.36113 11.0008 6.91104 11.0376ZM12 13.5C12.5523 13.5 13 13.9477 13 14.5V16.5C13 17.0523 12.5523 17.5 12 17.5C11.4477 17.5 11 17.0523 11 16.5V14.5C11 13.9477 11.4477 13.5 12 13.5Z"}));function or({schema:e,name:r,isOptional:s}){var o,i;const n=e.type||((i=(o=e.anyOf)==null?void 0:o.find(a=>a.type!==null))==null?void 0:i.type);if(!n)return null;switch(n){case"string":return t.jsx(ir,{isOptional:s,schema:e,name:r});case"array":return t.jsx(ar,{isOptional:s,schema:e,name:r});case"boolean":return t.jsx(cr,{isOptional:s,schema:e,name:r});default:return null}}function ir({name:e,schema:r,isOptional:s}){const n=j(),o=r.format==="password";return t.jsxs("div",{children:[t.jsxs("label",{htmlFor:e,className:"text-text-sm",children:[r.title," ",s?"(optional)":""]}),t.jsx(b,{defaultValue:"",control:n.control,name:e,render:({field:i})=>t.jsx(Z,{inputSize:"md",className:"w-full",id:e,...i,type:o?"password":"text"})})]})}function ar({name:e,schema:r,isOptional:s}){const{control:n}=j(),{fields:o,append:i,remove:a}=Ct({name:e,control:n});return t.jsxs("div",{className:"space-y-3",children:[t.jsxs("label",{className:"text-text-sm",children:[r.title," ",s?"(optional)":""]}),t.jsx("ul",{className:"space-y-5",children:o.map((u,f)=>t.jsxs("li",{className:"flex w-full items-center gap-4 [&>div]:w-full",children:[t.jsx(b,{defaultValue:"",name:`${e}.${f}`,render:({field:d})=>t.jsx(Z,{className:"w-full flex-1",inputSize:"md",...d})}),t.jsxs(w,{className:"h-7 w-7",emphasis:"subtle",size:"sm",type:"button",onClick:()=>a(f),children:[t.jsx(At,{className:"h-5 w-5 fill-primary-900"}),t.jsx("span",{className:"sr-only",children:"remove"})]})]},u.id))}),t.jsxs(w,{className:"h-7 w-7",emphasis:"subtle",type:"button",onClick:()=>i(""),children:[t.jsx(Pt,{className:"h-5 w-5 fill-primary-900"}),t.jsx("p",{className:"sr-only",children:"Add Item"})]})]})}function cr({name:e,schema:r,isOptional:s}){const n=j(),o=r.default||!1;return t.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[t.jsxs("label",{htmlFor:e,className:"text-text-sm",children:[r.title," ",s?"(optional)":""]}),t.jsx(b,{defaultValue:o,control:n.control,name:e,render:({field:{onChange:i,value:a,...u}})=>t.jsx(dt,{id:e,checked:a,onCheckedChange:f=>i(f),...u})})]})}function lr(){return t.jsxs("section",{className:"space-y-5 py-5 first:pt-0 last:pb-0",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[t.jsx(nr,{className:"h-5 w-5 fill-primary-400"}),"Add your Configuration"]}),t.jsx("p",{className:"text-theme-text-secondary",children:"Your credentials are securely stored and encrypted. ZenML uses these credentials to interact with your resources."})]}),t.jsx(ur,{})]})}function ur(){var f,d;const{data:e}=S(),{watch:r}=j(),s=te({...Ne.serviceConnectorTypeDetail(((f=e.connectorConfig)==null?void 0:f.type)||"")}),n=r("authMethod"),o=(d=s.data)==null?void 0:d.auth_methods.find(c=>c.auth_method===n);if(s.isError)return null;if(s.isPending)return t.jsx(ee,{className:"h-[200px] w-full"});if(!o)return null;const i=o.config_schema.properties,a=o.config_schema.required,u=Object.entries(i).sort(([c],[m])=>a.includes(c)&&!a.includes(m)?-1:!a.includes(c)&&a.includes(m)?1:0);return t.jsx("div",{className:"space-y-5",children:u.map(([c,m])=>t.jsx(or,{isOptional:Je(c,a),name:c,schema:m},c))})}function dr({open:e,loadingComponents:r}){var n,o;const{data:s}=S();return(n=s.connectorConfig)!=null&&n.type?t.jsx(ft,{open:e,children:t.jsxs(mt,{onPointerDownOutside:i=>i.preventDefault(),onEscapeKeyDown:i=>i.preventDefault(),className:"max-w-[600px]",children:[t.jsx("div",{className:"flex items-center justify-between border-b border-theme-border-moderate py-2 pl-5 pr-3",children:t.jsx(ht,{className:"text-text-lg",children:"Connecting and loading your components..."})}),t.jsxs("div",{className:"flex h-[200px] items-center justify-center gap-5 bg-primary-50",children:[t.jsx(xt,{className:"h-[60px] w-[60px]"}),t.jsx("div",{className:"flex h-[60px] w-[60px] items-center justify-center",children:t.jsx(It,{className:"h-5 w-5 fill-theme-text-tertiary"})}),t.jsx(R,{className:"h-[60px] w-[60px]",provider:s.connectorConfig.type})]}),t.jsxs("div",{className:"flex flex-col gap-1 px-7 pb-6 pt-5",children:[t.jsxs("p",{className:"text-theme-text-secondary",children:["We're securely connecting to"," ",t.jsx("span",{className:"capitalize",children:(o=s.connectorConfig)==null?void 0:o.type})," and retrieving your custom components. This process typically takes about 30-60 seconds."]}),t.jsx(fr,{loadingComponents:r})]})]})}):null}function fr({loadingComponents:e}){const[r,s]=p.useState(!0),[n,o]=p.useState(!0);return p.useEffect(()=>{const i=setTimeout(()=>{s(!1)},Math.floor(Math.random()*1e3)+500),a=setTimeout(()=>{o(!1)},1500);return()=>{clearTimeout(i),clearTimeout(a)}},[]),t.jsxs("ul",{className:"mt-3 space-y-3 text-theme-text-secondary",children:[t.jsxs(me,{children:[t.jsx(fe,{loading:r}),"Establishing a secure connection"]}),t.jsxs(me,{children:[t.jsx(fe,{loading:n}),"Authenticating your account"]}),t.jsxs(me,{children:[t.jsx(fe,{loading:e}),"Fetching your existing components"]})]})}function fe({loading:e}){return e?t.jsx(pt,{className:"h-5 w-5 border-2"}):t.jsx(be,{className:"h-5 w-5",tickClasses:"w-3 h-3"})}function me({children:e}){return t.jsx("li",{className:"flex items-center gap-1",children:e})}async function mr({payload:e}){const r=Y(J.serviceConnectors.fullStackResources),s=await ve(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!s.ok){const n=await s.json().then(o=>Array.isArray(o.detail)?o.detail[1]:o.detail).catch(()=>"Error while fetching service connector type");throw new X({status:s.status,statusText:s.statusText,message:n})}return s.json()}function hr(e){return Ve({...e,mutationFn:async({payload:r})=>mr({payload:r})})}function xr(e){return new Promise(r=>setTimeout(r,e))}function pr(){const{setCurrentStep:e}=P(),[r,s]=p.useState(!0),{toast:n}=Me(),{setData:o,data:i}=S(),a=hr({onSuccess:async f=>{o(d=>I(d,c=>{c.fullstackResources=f})),s(!1),await xr(200),e(d=>d+1)},onError:f=>{n({status:"error",emphasis:"subtle",description:f.message,rounded:!0})}});return{handleFormSubmit:({authMethod:f,stackName:d,...c})=>{Object.keys(c).forEach(l=>{(c[l]===""||c[l]===null||c[l]===void 0||Array.isArray(c[l])&&c[l].length===0)&&delete c[l]});const m=I(i,l=>{l.stackName=d,l.connectorConfig&&(l.connectorConfig.auth_method=f,l.connectorConfig.configuration={...c})});o(m),m.connectorConfig&&a.mutate({payload:m.connectorConfig})},fullStackResources:a,loadingComponents:r}}function yr(){const{handleSubmit:e,formState:{isSubmitting:r}}=j(),{handleFormSubmit:s,fullStackResources:n,loadingComponents:o}=pr();return t.jsxs("form",{onSubmit:e(s),id:"connect-form",children:[t.jsx(dr,{loadingComponents:o,open:r||n.isPending}),t.jsx(sr,{}),t.jsx(tt,{}),t.jsx(lr,{})]})}function jr(){const{schema:e}=re(),r=H({shouldUnregister:!0,mode:"onChange",resolver:$(e)});return t.jsx(W,{...r,children:t.jsxs(O,{children:[t.jsx(T,{children:"Connect to your Cloud"}),t.jsx(E,{children:t.jsx(yr,{})}),t.jsx(D,{children:t.jsx(gr,{})})]})})}function gr(){const{formState:{isValid:e,isSubmitting:r}}=j(),s=!!Be();return t.jsx(w,{className:"justify-center gap-2",disabled:!e||s||r,form:"connect-form",size:"md",children:s||r?"Loading...":"Next"})}async function _r({workspaceId:e,payload:r}){const s=Y(J.workspaces.fullStack(e)),n=await fetch(s,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!n.ok){const o=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating full stack");throw new X({status:n.status,statusText:n.statusText,message:o})}return n.json()}function vr(e){return Ve({...e,mutationFn:async({workspaceId:r,payload:s})=>_r({workspaceId:r,payload:s})})}function Cr(){const{data:e,setData:r}=S(),s=Nt(),{toast:n}=Me(),{setCurrentStep:o}=P(),{mutate:i}=vr({onError:d=>{d instanceof Error&&n({status:"error",emphasis:"subtle",icon:t.jsx(yt,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:d.message,rounded:!0})},onSuccess:async d=>{r(c=>I(c,m=>{m.createdStackId=d.id})),o(c=>c+1),s.invalidateQueries({queryKey:Le.all})}});if(!e.fullstackResources)return o(2),{handleFormSubmit:()=>{},flattenedInstances:[]};const a=e.fullstackResources.components_resources_info.container_registry,u=a.flatMap(d=>d.accessible_by_service_connector.map(c=>({...d,value:c})));function f({flavor:d,resourceId:c}){const m=a.find(x=>x.flavor===d);if(!m)return;const l=I(e,x=>{x.registryConfig={flavor:d,configuration:Object.fromEntries(Object.keys(m.required_configuration||{}).map(y=>[y,c])),service_connector_resource_id:c}});r(l),i({workspaceId:"default",payload:{name:l.stackName||Math.random().toString(36).substring(7),service_connectors:l.connectorConfig?[l.connectorConfig]:[],components:{orchestrator:l.orchestratorConfig,artifact_store:l.artifactStoreConfig,container_registry:l.registryConfig}}})}return{handleFormSubmit:f,flattenedInstances:u}}const br="container_registry";function Sr(){const[e,r]=p.useState(""),{control:s,setValue:n,handleSubmit:o,register:i,watch:a,trigger:u,reset:f}=j(),{flattenedInstances:d,handleFormSubmit:c}=Cr(),m=d.filter(l=>l.value.toLocaleLowerCase().includes(e.toLocaleLowerCase()));return t.jsxs(t.Fragment,{children:[t.jsx(Z,{placeholder:"Search...",onChange:l=>{f(),r(l.target.value)}}),t.jsxs("form",{onSubmit:o(c),id:"artifact-store-form",children:[t.jsx("input",{type:"hidden",...i("flavor")}),t.jsx("ul",{className:"space-y-1",children:m.map(l=>t.jsx("li",{children:t.jsx(b,{name:"resourceId",control:s,render:({field:{onChange:x,...y}})=>t.jsxs(M,{"data-state":a("resourceId")===l.value?"selected":"unselected",htmlFor:l.value,children:[t.jsx(L,{id:l.value,type:"radio",...y,onChange:C=>{n("flavor",l.flavor,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}),x(C.target.value),u()},value:l.value,name:"connector-radio"}),t.jsx(B,{width:24,height:24,type:br,flavor:l.flavor})," ",t.jsx("span",{children:l.value})]})})},l.value))})]})]})}function wr(){return t.jsx("section",{className:"space-y-5 py-5 first:pt-0 last:pb-0",children:t.jsxs("div",{className:"space-y-1",children:[t.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[t.jsx(Ce,{type:"container_registry",className:"h-5 w-5 fill-primary-400"}),"Select your Container Registry"]}),t.jsx("p",{className:"text-theme-text-secondary",children:"Select one of the Container Registries for your new stack"})]})})}const Nr=h.object({flavor:h.string().min(1),resourceId:h.string().min(1)});function Fr(){const e=H({resolver:$(Nr),shouldUnregister:!0});return t.jsx(W,{...e,children:t.jsxs(O,{children:[t.jsx(T,{children:"Container Registry"}),t.jsx(E,{children:t.jsxs("section",{className:"space-y-5 py-5 first:pt-0 last:pb-0",children:[t.jsx(wr,{}),t.jsx(Sr,{})]})}),t.jsx(D,{children:t.jsx(kr,{})})]})})}function kr(){const e=j(),r=!!Be();return t.jsxs(w,{className:"justify-center gap-2",disabled:!e.formState.isValid||r,form:"artifact-store-form",size:"md",children:[r&&t.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-brand"}),r?"Loading...":"Next"]})}function Pr(){var i;const{data:e,setData:r}=S(),{setCurrentStep:s}=P();if(!e.fullstackResources)return s(2),{orchestrators:[],handleFormSubmit:()=>{}};const n=((i=e.fullstackResources.components_resources_info)==null?void 0:i.orchestrator)||[];function o({flavor:a,resourceId:u,...f}){const d=n.find(c=>c.flavor===a);d&&(r(c=>{const m=d!=null&&d.use_resource_value_as_fixed_config?Object.fromEntries(Object.keys(d.required_configuration||{}).map(l=>[l,u])):{...f};return I(c,l=>{l.orchestratorConfig={flavor:a,configuration:m,service_connector_resource_id:u}})}),s(c=>c+1))}return{orchestrators:n,handleFormSubmit:o}}const _e=h.object({flavor:h.string().min(1),resourceId:h.string().min(1)});function Ar(e){const r=Object.keys(e).reduce((s,n)=>(s[n]=h.string().trim().min(1),s),{});return h.object(r)}const K="kubernetes",Te="orchestrator";function zr(){const{orchestrators:e,handleFormSubmit:r}=Pr(),{setSchema:s}=re(),{control:n,watch:o,setValue:i,register:a,reset:u,handleSubmit:f}=j(),d=o("flavor");return t.jsxs("form",{onSubmit:f(r),id:"artifact-store-form",children:[d!==K&&t.jsx("input",{...a("resourceId"),type:"hidden"}),t.jsx("ul",{className:"space-y-1",children:e.map((c,m)=>t.jsxs("li",{children:[t.jsx(b,{control:n,name:"flavor",render:({field:{onChange:l,...x}})=>t.jsxs(M,{"data-state":d===c.flavor?"selected":"unselected",htmlFor:c.flavor,children:[t.jsx(L,{onChange:y=>{u({flavor:c.flavor}),c.use_resource_value_as_fixed_config===!0&&s(_e),c.use_resource_value_as_fixed_config===!1&&c.required_configuration&&s(_e.merge(Ar(c.required_configuration))),c.flavor!==K&&c.accessible_by_service_connector.length>0&&i("resourceId",c.accessible_by_service_connector[0]),l(y)},...x,id:c.flavor,type:"radio",value:c.flavor,name:"orchestrator-flavor-radio"}),t.jsx(B,{width:24,height:24,type:Te,flavor:c.flavor}),t.jsx("span",{children:c.flavor_display_name})]})}),d===c.flavor&&(c.flavor===K||c.use_resource_value_as_fixed_config===!1)&&t.jsxs("div",{className:"space-y-3 py-5 pl-8",children:[c.flavor===K&&t.jsx("ul",{className:"space-y-1",children:c.accessible_by_service_connector.map(l=>t.jsx("li",{children:t.jsx(b,{control:n,name:"resourceId",render:({field:x})=>t.jsxs(M,{"data-state":o("resourceId")===l?"selected":"unselected",htmlFor:l,children:[t.jsx(L,{...x,id:l,type:"radio",value:l,name:"instance-radio"}),t.jsx(B,{type:Te,width:24,height:24,flavor:c.flavor}),t.jsx("span",{children:l})]})})},l))}),c.use_resource_value_as_fixed_config===!1&&c.required_configuration&&Object.keys(c.required_configuration).length>=1&&t.jsx("div",{children:Object.entries(c.required_configuration).map(([l,x])=>t.jsx("div",{children:t.jsx(b,{name:l,control:n,render:({field:y})=>t.jsxs("div",{children:[t.jsx("label",{htmlFor:l,className:"text-text-sm",children:x}),t.jsx(Z,{...y,inputSize:"md",required:!0,className:"w-full",id:l})]})})},l))})]})]},m))})]})}function Ir(){return t.jsx("section",{className:"space-y-5 py-5 first:pt-0 last:pb-0",children:t.jsxs("div",{className:"space-y-1",children:[t.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[t.jsx(Ce,{type:"orchestrator",className:"h-5 w-5 fill-primary-400"}),"Select your Orchestrator"]}),t.jsx("p",{className:"text-theme-text-secondary",children:"Select one of the connected orchestrators for your new stack"})]})})}function Or(){const{schema:e}=re(),r=H({resolver:$(e),shouldUnregister:!0,defaultValues:{resourceId:""}});return t.jsx(W,{...r,children:t.jsxs(O,{children:[t.jsx(T,{children:"Orchestrator"}),t.jsxs(E,{children:[t.jsx(Ir,{}),t.jsx(zr,{})]}),t.jsx(D,{children:t.jsx(Tr,{})})]})})}function Tr(){const e=j();return t.jsx(w,{disabled:!e.formState.isValid,form:"artifact-store-form",size:"md",children:"Next"})}const Er=h.object({provider:h.string().min(1)});function Dr(){var i;const{setData:e,data:r}=S(),{setCurrentStep:s}=P(),n=H({resolver:$(Er),defaultValues:{provider:((i=r.connectorConfig)==null?void 0:i.type)||""}});function o(a){e(u=>({...u,connectorConfig:{type:a.provider,auth_method:""}})),s(u=>u+1)}return t.jsx(W,{...n,children:t.jsxs(O,{children:[t.jsx(T,{children:"Select Your Existing Cloud Infrastructure"}),t.jsx(E,{children:t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-text-lg font-semibold",children:"Select a Cloud Provider"}),t.jsx("p",{className:"text-theme-text-secondary",children:"Select the cloud provider where you have existing infrastructure to connect with ZenML. This will allow you to integrate your current cloud resources with ZenML for model deployment and management."})]}),t.jsxs("form",{id:"provider-form",onSubmit:n.handleSubmit(o),className:"grid grid-cols-1 gap-3 xl:grid-cols-3",children:[t.jsx(ce,{id:"aws-provider",...n.register("provider"),value:"aws",children:t.jsx(le,{icon:t.jsx(R,{provider:"aws",className:"h-6 w-6 shrink-0"}),title:"AWS",subtitle:"Connect your existing S3, ECR, and Sagemaker components to ZenML"})}),t.jsx(ce,{id:"gcp-provider",...n.register("provider"),value:"gcp",children:t.jsx(le,{icon:t.jsx(R,{provider:"gcp",className:"h-6 w-6 shrink-0"}),title:"GCP",subtitle:"Link your GCS, Artifact Registry, and Vertex AI components to ZenML"})}),t.jsx(ce,{id:"azure-provider",...n.register("provider"),value:"azure",children:t.jsx(le,{icon:t.jsx(R,{provider:"azure",className:"h-6 w-6 shrink-0"}),title:"Azure",subtitle:"Integrate ZenML with your Blob Storage, Container Registry, and Azure ML"})})]})]})}),t.jsx(D,{children:t.jsx(Rr,{})})]})})}function Rr(){const{formState:{isValid:e}}=j();return t.jsx(w,{form:"provider-form",disabled:!e,size:"md",children:"Next"})}function Mr(){var o;const{data:e}=S(),r=te({...Le.stackDetail(e.createdStackId||""),throwOnError:!0});if(r.isError)return null;if(r.isPending)return t.jsx(ee,{className:"h-[200px] w-full"});const s=r.data,n=zt((o=r.data.metadata)==null?void 0:o.components);return t.jsxs(O,{children:[t.jsx(T,{children:"Your stack"}),t.jsx(E,{children:t.jsxs("div",{className:"space-y-5",children:[t.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."}),t.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[t.jsx(qr,{stack:s}),n.map(i=>t.jsx(Vr,{component:i},i.id))]})]})}),t.jsx(D,{displayCancel:!1,children:t.jsx(Lr,{})})]})}function Lr(){return t.jsx(w,{size:"md",asChild:!0,children:t.jsx(Ot,{to:jt.stacks.overview,children:"Finish"})})}function qr({stack:e}){return t.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 font-semibold",children:[t.jsx(be,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),t.jsx(gt,{type:"square",size:"lg",children:t.jsx(_t,{size:"lg",children:e.name[0]})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-text-lg",children:e.name}),t.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.id.split("-")[0]})]})]})}function Vr({component:e}){var r,s,n,o;return t.jsxs("div",{className:"flex items-center justify-between py-3 pl-9 pr-5",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(be,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),t.jsx(B,{width:24,height:24,flavor:((r=e.body)==null?void 0:r.flavor)||"",type:((s=e.body)==null?void 0:s.type)||"orchestrator"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-text-lg font-semibold",children:e.name}),t.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.id.split("-")[0]})]})]}),t.jsx(wt,{type:((n=e.body)==null?void 0:n.type)||"alerter",children:vt((o=e.body)==null?void 0:o.type)})]},e.id)}function Br(){const{currentStep:e}=P();if(e===1)return t.jsx(Dr,{});if(e===2)return t.jsx(ke,{initialSchema:Xe,children:t.jsx(jr,{})});if(e===3)return t.jsx(Jt,{});if(e===4)return t.jsx(ke,{initialSchema:_e,children:t.jsx(Or,{})});if(e===5)return t.jsx(Fr,{});if(e===6)return t.jsx(Mr,{})}const Ee=["Infrastructure Type","Cloud Provider","Connect your Cloud","Artifact Store","Orchestrator","Container Registry"];function is(){return t.jsx(rt,{maxSteps:Ee.length+1,initialStep:1,children:t.jsx(Tt,{children:t.jsxs("section",{className:"layout-container flex flex-col gap-5 py-5 xl:flex-row",children:[t.jsx(st,{entries:Ee}),t.jsx("div",{className:"w-full",children:t.jsx(Br,{})})]})})})}export{is as default};
@@ -1 +1 @@
1
- import{r as l,j as e}from"./@radix-CFOkMR_E.js";import{u as m,S as f,a as S,b as j}from"./SuccessStep-DZC60t0x.js";import{f as v,ao as b,aJ as g,i as w,h as x,A,a as C,b as U,an as P,S as _}from"./index-BczVOqUf.js";import{A as N,a as k,P as z}from"./AwarenessChannel-CFg5iX4Z.js";import{c as H}from"./@tanstack-DYiOyJUL.js";import"./UpdatePasswordSchemas-DGvwFWO1.js";import"./check-circle-i56092KI.js";import"./url-D7mAQGUM.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-l_1hUr1S.js";import"./zod-BhoGpZ63.js";import"./index.esm-Corw4lXQ.js";import"./file-text-CqD_iu6l.js";import"./play-circle-CNtZKDnW.js";const h=l.createContext(null);function E({children:t,initialUser:r}){const[s,a]=l.useState(r||{});return e.jsx(h.Provider,{value:{user:s,setUser:a},children:t})}function d(){const t=l.useContext(h);if(t===null)throw new Error("useSurveyUserContext must be used within an SurveyUserProvider");return t}function F({user:t}){var o,u;const{setSurveyStep:r}=m(),{setUser:s}=d();function a({fullName:n,getUpdates:i,email:c}){s(p=>({...p,...c?{email:c}:{email:null},full_name:n,email_opted_in:i})),r(2)}return e.jsx(N,{email:(o=t.metadata)==null?void 0:o.email,fullName:(u=t.body)==null?void 0:u.full_name,submitHandler:a})}function Z(){const{user:t}=d(),{setSurveyStep:r}=m(),{toast:s}=v(),a=H(),{mutate:o}=b({onSuccess:async()=>{await a.invalidateQueries({queryKey:g()}),r(n=>n+1)},onError:n=>{n instanceof Error&&s({status:"error",emphasis:"subtle",icon:e.jsx(w,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:n.message,rounded:!0})}});function u({other:n,channels:i,otherVal:c}){const y={awareness_channels:n?[...i,c]:i};o({...t,user_metadata:{...t.user_metadata,...y}})}return e.jsx(k,{submitHandler:u})}function B({user:t}){const{setSurveyStep:r}=m(),{setUser:s}=d();function a({amountProductionModels:o,primaryUse:u}){const n={models_production:o,primary_use:u};s(i=>({...i,user_metadata:{...i.user_metadata,...n}})),r(3)}return e.jsx(z,{user:t,submitHandler:a})}const D="/assets/adam-e-y0WnB_.webp",L="/assets/alex-DcCuDHPg.webp",M="/assets/baris-C0ZrZ10g.webp",K="/assets/hamza-NKKOZz1I.webp",J="/assets/stefan-B08Ftbba.webp";function T(){const{setSurveyStep:t}=m();function r(){window.open("https://zenml.io/slack","_blank"),t(s=>s+1)}return e.jsxs("div",{className:"max-w-[540px] space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Join The ZenML Slack Community"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Connect to our growing community and meet fellow ZenML enthusiasts, get support, and share your insights. Let's grow together!"})]}),e.jsx(I,{}),e.jsx(x,{onClick:()=>r(),className:"h-auto min-h-8 w-full justify-center py-1",intent:"primary",emphasis:"bold",size:"lg",children:"Join the ZenML Community and Continue"}),e.jsx(x,{intent:"secondary",emphasis:"minimal",onClick:()=>t(s=>s+1),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})}const q=[{name:"Adam",image:D},{name:"Hamza",image:K},{name:"Alex",image:L},{name:"Stefan",image:J},{name:"Baris",image:M}];function I(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:q.map(t=>e.jsxs(A,{size:"lg",type:"rounded",children:[e.jsx(C,{alt:`Portrait of ${t.name}`,src:t.image}),e.jsx(U,{size:"lg",children:t.name[0]})]},t.name))}),e.jsx("p",{className:"text-center text-text-xs text-theme-text-tertiary",children:"Adam Probst, Hamza Tahir, and +1,800 others have already joined"})]})}function O(){const{data:t,isPending:r,isError:s}=P({throwOnError:!0}),{surveyStep:a}=m();return s?null:r?e.jsx(_,{className:"h-[300px]"}):e.jsx(e.Fragment,{children:e.jsxs(E,{children:[e.jsx(f,{stepAmount:4}),a===1&&e.jsx(F,{user:t}),a===2&&e.jsx(B,{user:t}),a===3&&e.jsx(Z,{}),a===4&&e.jsx(T,{}),a===5&&e.jsx(S,{subHeader:"Your ZenML account is now updated",displayBody:!1,username:t.name})]})})}function ie(){return e.jsx("div",{children:e.jsx(j,{children:e.jsx(O,{})})})}export{ie as default};
1
+ import{r as l,j as e}from"./@radix-CFOkMR_E.js";import{u as m,S as f,a as S,b as j}from"./SuccessStep-CTSKN2lp.js";import{f as v,ao as b,aJ as g,i as w,h as x,A,a as C,b as U,an as P,S as _}from"./index-KsTz2dHG.js";import{A as N,a as k,P as z}from"./AwarenessChannel-BNg5uWgI.js";import{c as H}from"./@tanstack-k96lU_C-.js";import"./UpdatePasswordSchemas-BeCeaRW5.js";import"./check-circle-i56092KI.js";import"./url-rGEp5Umh.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DIYUhKYX.js";import"./zod-BtSyGx4C.js";import"./index.esm-CbHNSeVw.js";import"./file-text-CqD_iu6l.js";import"./play-circle-CNtZKDnW.js";const h=l.createContext(null);function E({children:t,initialUser:r}){const[s,a]=l.useState(r||{});return e.jsx(h.Provider,{value:{user:s,setUser:a},children:t})}function d(){const t=l.useContext(h);if(t===null)throw new Error("useSurveyUserContext must be used within an SurveyUserProvider");return t}function F({user:t}){var o,u;const{setSurveyStep:r}=m(),{setUser:s}=d();function a({fullName:n,getUpdates:i,email:c}){s(p=>({...p,...c?{email:c}:{email:null},full_name:n,email_opted_in:i})),r(2)}return e.jsx(N,{email:(o=t.metadata)==null?void 0:o.email,fullName:(u=t.body)==null?void 0:u.full_name,submitHandler:a})}function Z(){const{user:t}=d(),{setSurveyStep:r}=m(),{toast:s}=v(),a=H(),{mutate:o}=b({onSuccess:async()=>{await a.invalidateQueries({queryKey:g()}),r(n=>n+1)},onError:n=>{n instanceof Error&&s({status:"error",emphasis:"subtle",icon:e.jsx(w,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:n.message,rounded:!0})}});function u({other:n,channels:i,otherVal:c}){const y={awareness_channels:n?[...i,c]:i};o({...t,user_metadata:{...t.user_metadata,...y}})}return e.jsx(k,{submitHandler:u})}function B({user:t}){const{setSurveyStep:r}=m(),{setUser:s}=d();function a({amountProductionModels:o,primaryUse:u}){const n={models_production:o,primary_use:u};s(i=>({...i,user_metadata:{...i.user_metadata,...n}})),r(3)}return e.jsx(z,{user:t,submitHandler:a})}const D="/assets/adam-e-y0WnB_.webp",L="/assets/alex-DcCuDHPg.webp",M="/assets/baris-C0ZrZ10g.webp",K="/assets/hamza-NKKOZz1I.webp",J="/assets/stefan-B08Ftbba.webp";function T(){const{setSurveyStep:t}=m();function r(){window.open("https://zenml.io/slack","_blank"),t(s=>s+1)}return e.jsxs("div",{className:"max-w-[540px] space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Join The ZenML Slack Community"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Connect to our growing community and meet fellow ZenML enthusiasts, get support, and share your insights. Let's grow together!"})]}),e.jsx(I,{}),e.jsx(x,{onClick:()=>r(),className:"h-auto min-h-8 w-full justify-center py-1",intent:"primary",emphasis:"bold",size:"lg",children:"Join the ZenML Community and Continue"}),e.jsx(x,{intent:"secondary",emphasis:"minimal",onClick:()=>t(s=>s+1),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})}const q=[{name:"Adam",image:D},{name:"Hamza",image:K},{name:"Alex",image:L},{name:"Stefan",image:J},{name:"Baris",image:M}];function I(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:q.map(t=>e.jsxs(A,{size:"lg",type:"rounded",children:[e.jsx(C,{alt:`Portrait of ${t.name}`,src:t.image}),e.jsx(U,{size:"lg",children:t.name[0]})]},t.name))}),e.jsx("p",{className:"text-center text-text-xs text-theme-text-tertiary",children:"Adam Probst, Hamza Tahir, and +1,800 others have already joined"})]})}function O(){const{data:t,isPending:r,isError:s}=P({throwOnError:!0}),{surveyStep:a}=m();return s?null:r?e.jsx(_,{className:"h-[300px]"}):e.jsx(e.Fragment,{children:e.jsxs(E,{children:[e.jsx(f,{stepAmount:4}),a===1&&e.jsx(F,{user:t}),a===2&&e.jsx(B,{user:t}),a===3&&e.jsx(Z,{}),a===4&&e.jsx(T,{}),a===5&&e.jsx(S,{subHeader:"Your ZenML account is now updated",displayBody:!1,username:t.name})]})})}function ie(){return e.jsx("div",{children:e.jsx(j,{children:e.jsx(O,{})})})}export{ie as default};
@@ -1 +1 @@
1
- import{j as e}from"./@radix-CFOkMR_E.js";import{B as o,av as n}from"./index-BczVOqUf.js";import{I as r}from"./Infobox-DSt0O-dm.js";import{H as a}from"./Helpbox-BXUMP21n.js";import{V as s,g as c}from"./Commands-DoN1xrEq.js";import"./@tanstack-DYiOyJUL.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-l_1hUr1S.js";import"./help-bu_DgLKI.js";import"./play-circle-CNtZKDnW.js";import"./CodeSnippet-Dvkx_82E.js";import"./copy-BXNk6BjL.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 v(){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{v as default};
1
+ import{j as e}from"./@radix-CFOkMR_E.js";import{B as o,av as n}from"./index-KsTz2dHG.js";import{I as r}from"./Infobox-iv1Nu1A0.js";import{H as a}from"./Helpbox-BIiNc-uH.js";import{V as s,g as c}from"./Commands-DmQwTXjj.js";import"./@tanstack-k96lU_C-.js";import"./@react-router-CO-OsFwI.js";import"./@reactflow-DIYUhKYX.js";import"./help-bu_DgLKI.js";import"./play-circle-CNtZKDnW.js";import"./CodeSnippet-Cyp7f4dM.js";import"./copy-BXNk6BjL.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 v(){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{v as default};