zenml-nightly 0.84.0.dev20250729__py3-none-any.whl → 0.84.0.dev20250730__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.
- zenml/VERSION +1 -1
- zenml/client.py +6 -1
- zenml/constants.py +25 -0
- zenml/integrations/gcp/__init__.py +4 -1
- zenml/logging/__init__.py +0 -11
- zenml/logging/step_logging.py +255 -149
- zenml/models/__init__.py +4 -0
- zenml/models/v2/core/service_account.py +87 -1
- zenml/models/v2/core/user.py +20 -6
- zenml/models/v2/misc/external_user.py +4 -1
- zenml/orchestrators/step_launcher.py +2 -4
- zenml/zen_server/auth.py +138 -27
- zenml/zen_server/dashboard/assets/{404-B5cfnwZ1.js → 404-CMbwR10f.js} +1 -1
- zenml/zen_server/dashboard/assets/{@radix-C_LirfyT.js → @radix-B1sy0Lhr.js} +1 -1
- zenml/zen_server/dashboard/assets/{@react-router-BSsrkPOd.js → @react-router-CHjLNlgw.js} +1 -1
- zenml/zen_server/dashboard/assets/{@reactflow-D9hglKLF.js → @reactflow-gbyyU3kq.js} +2 -2
- zenml/zen_server/dashboard/assets/{@tanstack-C0SeHZng.js → @tanstack-Dwlisomv.js} +1 -1
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-BpLj419i.js +1 -0
- zenml/zen_server/dashboard/assets/ButtonGroup-DVhzbQxV.js +1 -0
- zenml/zen_server/dashboard/assets/{CodeSnippet-D8iBqOVv.js → CodeSnippet-B7Wd4R8u.js} +1 -1
- zenml/zen_server/dashboard/assets/{CollapsibleCard-D0-pQi1n.js → CollapsibleCard-DSZzbjx5.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentBadge-mw2Ja_ON.js → ComponentBadge-MVT08kBV.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentIcon-BXgpt-jw.js → ComponentIcon-C9AY8usJ.js} +1 -1
- zenml/zen_server/dashboard/assets/DeleteAlertDialog-CzhTVQaC.js +1 -0
- zenml/zen_server/dashboard/assets/{DialogItem-DeME0oSt.js → DialogItem-DD_7v3UY.js} +1 -1
- zenml/zen_server/dashboard/assets/{DisplayDate-v3KW7oez.js → DisplayDate-57lUNS79.js} +1 -1
- zenml/zen_server/dashboard/assets/{EmptyState-DG0m-CGv.js → EmptyState-BMA34iVR.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-DcVLcrLs.js → Error-Cakgjexo.js} +1 -1
- zenml/zen_server/dashboard/assets/{ExecutionStatus-C4tlFnlh.js → ExecutionStatus-CQbWovhV.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-C-RGHz3S.js → Helpbox-7FZpmsHB.js} +1 -1
- zenml/zen_server/dashboard/assets/{Infobox-DFCWPbMb.js → Infobox-DnduZjNU.js} +1 -1
- zenml/zen_server/dashboard/assets/{LeftSideMenu-Czev0KCA.js → LeftSideMenu-D5UEs4vB.js} +1 -1
- zenml/zen_server/dashboard/assets/{Lock-CRP5J_su.js → Lock-u8WOoTTd.js} +1 -1
- zenml/zen_server/dashboard/assets/NestedCollapsible-0yviIfaA.js +1 -0
- zenml/zen_server/dashboard/assets/{NumberBox-CoQjQYDJ.js → NumberBox-C2Pju4PR.js} +1 -1
- zenml/zen_server/dashboard/assets/{Pagination-CcDD5yHh.js → Pagination-C1sE5Nzn.js} +1 -1
- zenml/zen_server/dashboard/assets/{Partials-DlMzfKgs.js → Partials-DosysQMU.js} +1 -1
- zenml/zen_server/dashboard/assets/{PasswordChecker-BZwoeQIm.js → PasswordChecker-DOPLfvg7.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProCta-CU2ycJDo.js → ProCta-CUkpV3PJ.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderIcon-BMAn9Jld.js → ProviderIcon-aQjTuTRX.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderRadio-D_q9tE3G.js → ProviderRadio-C6pLVNxC.js} +1 -1
- zenml/zen_server/dashboard/assets/RunsBody-CZAiSxYK.js +1 -0
- zenml/zen_server/dashboard/assets/{SearchField-D_0-uAPj.js → SearchField-Byv1PtST.js} +1 -1
- zenml/zen_server/dashboard/assets/{SecretTooltip-BcWMKb9f.js → SecretTooltip-CErfhVgF.js} +1 -1
- zenml/zen_server/dashboard/assets/{SetPassword-CaKVSqAL.js → SetPassword-C4OH-cn1.js} +1 -1
- zenml/zen_server/dashboard/assets/{SheetHeader-7vwlsY_i.js → SheetHeader-Bb3v9rha.js} +1 -1
- zenml/zen_server/dashboard/assets/StackComponentList-D85oab98.js +1 -0
- zenml/zen_server/dashboard/assets/StackList-DSAjbVb5.js +1 -0
- zenml/zen_server/dashboard/assets/Tabs-2uwqXsdL.js +1 -0
- zenml/zen_server/dashboard/assets/Tick-BQ7_xDBl.js +1 -0
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-Da5RndbV.js → UpdatePasswordSchemas-DNkYgzN6.js} +1 -1
- zenml/zen_server/dashboard/assets/{Wizard-8aJzxUjb.js → Wizard-2FIi8JNY.js} +1 -1
- zenml/zen_server/dashboard/assets/WizardFooter-DQEnlDmZ.js +1 -0
- zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-gorNNEaT.js → all-pipeline-runs-query-CdvWtiAY.js} +1 -1
- zenml/zen_server/dashboard/assets/{arrow-left-hcj2H8HY.js → arrow-left-BFB2mgJo.js} +1 -1
- zenml/zen_server/dashboard/assets/{bar-chart-square-check-9siI9icm.js → bar-chart-square-check-_m-oYysN.js} +1 -1
- zenml/zen_server/dashboard/assets/{bulk-delete-B5RTlnD_.js → bulk-delete-wdObjfps.js} +2 -2
- zenml/zen_server/dashboard/assets/{check-D1bHMJkL.js → check-C9Nye5lR.js} +1 -1
- zenml/zen_server/dashboard/assets/{check-circle-mnEgPhPF.js → check-circle-CG6XAdk-.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-down-Z3nUe-0U.js → chevron-down-Bl7WwQAL.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-right-double-CbRQKN4Q.js → chevron-right-double-CbMG1dOM.js} +1 -1
- zenml/zen_server/dashboard/assets/{clock-BMjHXT3f.js → clock-BnPvxp3D.js} +1 -1
- zenml/zen_server/dashboard/assets/{code-browser-DftoiCIg.js → code-browser-CzWvJ4S6.js} +1 -1
- zenml/zen_server/dashboard/assets/configuration-form-BbcNBQTO.js +1 -0
- zenml/zen_server/dashboard/assets/constants-DfvsDtcH.js +1 -0
- zenml/zen_server/dashboard/assets/{create-stack-BruqH_6X.js → create-stack-D4Sf7QpF.js} +1 -1
- zenml/zen_server/dashboard/assets/{credit-card-CH1BHrXY.js → credit-card-DfBA6dBb.js} +1 -1
- zenml/zen_server/dashboard/assets/{dataflow-2-qHjWt7zp.js → dataflow-2-BLkaTH0Q.js} +1 -1
- zenml/zen_server/dashboard/assets/{delete-run-ibBtciMR.js → delete-run-XSre8ru-.js} +1 -1
- zenml/zen_server/dashboard/assets/{expand-full-CD4fFvM-.js → expand-full-C8p_0jQv.js} +1 -1
- zenml/zen_server/dashboard/assets/{eye-CLNgIh_K.js → eye-BXcQevds.js} +1 -1
- zenml/zen_server/dashboard/assets/{file-text-CltVhgwZ.js → file-text-TdPXNd7s.js} +1 -1
- zenml/zen_server/dashboard/assets/form-C1jJgRy1.js +1 -0
- zenml/zen_server/dashboard/assets/{form-schemas-B9XgTS1V.js → form-schemas-BjWDRvGd.js} +1 -1
- zenml/zen_server/dashboard/assets/{help-B0CvBhCm.js → help-CRPfbPTO.js} +1 -1
- zenml/zen_server/dashboard/assets/{icon-hDriJUXY.js → icon--Tp6obFZ.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-mA8kL088.js → index-B4ZeIaPd.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-dCcVgFNl.js → index-BYHxFvoG.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-BQWlHo1Y.js → index-BYzR7YrM.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-BacoJBEQ.js → index-CO6UN3UX.js} +11 -11
- zenml/zen_server/dashboard/assets/{index-B7CRNU8l.js → index-d_QrPL-8.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-BRhKF2z-.js → index-g7wOyc86.js} +1 -1
- zenml/zen_server/dashboard/assets/index-n_sn2ITN.css +1 -0
- zenml/zen_server/dashboard/assets/{index.es-DcVFDpJU.js → index.es-CZMSrR6z.js} +1 -1
- zenml/zen_server/dashboard/assets/{index.esm-COnaHLSh.js → index.esm-SBF9nn_P.js} +1 -1
- zenml/zen_server/dashboard/assets/{info-CyMih3vQ.js → info-CI2szPUG.js} +1 -1
- zenml/zen_server/dashboard/assets/{key-icon-HOx2gazv.js → key-icon-BiV171aI.js} +1 -1
- zenml/zen_server/dashboard/assets/layout-Cyc-V16c.js +1 -0
- zenml/zen_server/dashboard/assets/{layout-C5dgIReC.js → layout-GIiNvS10.js} +1 -1
- zenml/zen_server/dashboard/assets/{login-mutation-CidpsqyH.js → login-mutation-CDgTlQBD.js} +1 -1
- zenml/zen_server/dashboard/assets/{logs-DoLoTEfj.js → logs-lNLbZqHL.js} +1 -1
- zenml/zen_server/dashboard/assets/{mail-C160gvB0.js → mail-DBJRSzyu.js} +1 -1
- zenml/zen_server/dashboard/assets/{message-chat-square-DLz6XmPS.js → message-chat-square-C3CRCQvD.js} +1 -1
- zenml/zen_server/dashboard/assets/{package-BhYXGPxF.js → package-pR4bbXJp.js} +1 -1
- zenml/zen_server/dashboard/assets/page-1DXG7hp8.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BCRXJXC9.js → page-43SWdz4k.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-YdWnx9MX.js → page-AOVMuHDc.js} +1 -1
- zenml/zen_server/dashboard/assets/page-B4QBxV0B.js +22 -0
- zenml/zen_server/dashboard/assets/{page-CvllZMBF.js → page-B8ict_cR.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BDre_qCO.js +1 -0
- zenml/zen_server/dashboard/assets/page-BbsvGfyi.js +18 -0
- zenml/zen_server/dashboard/assets/page-Bi4I23Hs.js +1 -0
- zenml/zen_server/dashboard/assets/page-BnAMyQZb.js +1 -0
- zenml/zen_server/dashboard/assets/{page-D6cvOG8w.js → page-BnZEAhNn.js} +1 -1
- zenml/zen_server/dashboard/assets/page-Bncp08FW.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BTDi81N3.js → page-C4Jnp1qP.js} +1 -1
- zenml/zen_server/dashboard/assets/page-C7Z2sDHE.js +1 -0
- zenml/zen_server/dashboard/assets/page-C8t9qLdV.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BByayrO-.js → page-C9IsnFid.js} +2 -2
- zenml/zen_server/dashboard/assets/page-CEHZzQ1Q.js +1 -0
- zenml/zen_server/dashboard/assets/page-CGtll3Jk.js +1 -0
- zenml/zen_server/dashboard/assets/{page-q41JNDWO.js → page-CKPkbOoE.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DF4FVxxW.js → page-CMvcoaSZ.js} +2 -2
- zenml/zen_server/dashboard/assets/page-CVwTAlzd.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DSZfclXt.js → page-ClqRvz_V.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-7CJ4Wq3O.js → page-CzDjN1wE.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BK59rZvf.js → page-D654xHWd.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DcXrWWWh.js → page-DLrYW-Dn.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DOnAInjC.js +1 -0
- zenml/zen_server/dashboard/assets/{page-Cc8owYXQ.js → page-DQncGJeH.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DQzNmXk3.js +1 -0
- zenml/zen_server/dashboard/assets/{page-FQxi1Otg.js → page-DSn1Jcvs.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DZ5hcS1o.js +1 -0
- zenml/zen_server/dashboard/assets/page-DerIbaqa.js +1 -0
- zenml/zen_server/dashboard/assets/{page-8U20Tu_8.js → page-DgOEl3Bc.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DgldL5UB.js → page-DgSu4pTE.js} +2 -2
- zenml/zen_server/dashboard/assets/page-DgblJuXC.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CY0LPcAJ.js → page-Dpw-xP4q.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DsFXol8x.js +1 -0
- zenml/zen_server/dashboard/assets/page-Du6bFZTS.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CeGBDh1Q.js → page-DznxxpKA.js} +1 -1
- zenml/zen_server/dashboard/assets/page-E9Mx9_rn.js +1 -0
- zenml/zen_server/dashboard/assets/page-HrebZOAM.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BX67x4iL.js → page-O5xnz_nW.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DDWW21kl.js → page-hX7NkNdA.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-BKKcL1Kp.js → persist-B3Hb8HDW.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-DxiyfAax.js → persist-Dkbp9MFP.js} +1 -1
- zenml/zen_server/dashboard/assets/{pipeline-BJ8liDnl.js → pipeline-CDJSAXrb.js} +1 -1
- zenml/zen_server/dashboard/assets/{plus-cI8zD2xh.js → plus-DOrkJCmy.js} +1 -1
- zenml/zen_server/dashboard/assets/primary-role-CjkpP9fL.js +1 -0
- zenml/zen_server/dashboard/assets/{react-error-boundary.esm-DoXxY4pT.js → react-error-boundary.esm-DgOYA0wh.js} +1 -1
- zenml/zen_server/dashboard/assets/{refresh-3EF2R7ja.js → refresh-C8BXS3Fb.js} +1 -1
- zenml/zen_server/dashboard/assets/{resource-tyes-list-B5rkZcbc.js → resource-tyes-list-CugyWUAE.js} +1 -1
- zenml/zen_server/dashboard/assets/{resource-type-tooltip-E97WGqfk.js → resource-type-tooltip-V-zdiLKz.js} +1 -1
- zenml/zen_server/dashboard/assets/{service-B9aVzfAF.js → service-FjqYTmBw.js} +2 -2
- zenml/zen_server/dashboard/assets/{service-connectors-DL2-k_E2.js → service-connectors-nF4-OXB9.js} +1 -1
- zenml/zen_server/dashboard/assets/{sharedSchema-DyUO09BR.js → sharedSchema-Br1JPr8d.js} +1 -1
- zenml/zen_server/dashboard/assets/{slash-circle-D2Lb2FyR.js → slash-circle-B0xMh8q6.js} +1 -1
- zenml/zen_server/dashboard/assets/{stack-detail-query-Bc4QKlWg.js → stack-detail-query-DnyMCdVE.js} +1 -1
- zenml/zen_server/dashboard/assets/{terminal-BObrvDlO.js → terminal-C2tAF2XG.js} +1 -1
- zenml/zen_server/dashboard/assets/{terminal-square-BObrvDlO.js → terminal-square-C2tAF2XG.js} +1 -1
- zenml/zen_server/dashboard/assets/{transform-DFpKTKgF.js → transform-S7omcvTm.js} +1 -1
- zenml/zen_server/dashboard/assets/{trash-HKxXWbSG.js → trash-D9LA4VFD.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-current-user-mutation-DSyUyHVj.js → update-current-user-mutation-B3Dpv3u6.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-CdM-Sdds.js → update-server-settings-mutation-s7tlHN8s.js} +1 -1
- zenml/zen_server/dashboard/assets/{zod-DgEcN9jD.js → zod-D48zuELD.js} +1 -1
- zenml/zen_server/dashboard/index.html +7 -7
- zenml/zen_server/rbac/zenml_cloud_rbac.py +8 -4
- zenml/zen_server/routers/service_accounts_endpoints.py +71 -12
- zenml/zen_stores/base_zen_store.py +0 -19
- zenml/zen_stores/migrations/versions/8d4b9ba22c1f_add_user_avatar.py +39 -0
- zenml/zen_stores/schemas/user_schemas.py +16 -5
- zenml/zen_stores/sql_zen_store.py +5 -1
- {zenml_nightly-0.84.0.dev20250729.dist-info → zenml_nightly-0.84.0.dev20250730.dist-info}/METADATA +1 -1
- {zenml_nightly-0.84.0.dev20250729.dist-info → zenml_nightly-0.84.0.dev20250730.dist-info}/RECORD +168 -167
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-druRNuO2.js +0 -1
- zenml/zen_server/dashboard/assets/ButtonGroup-SF2DlzHV.js +0 -1
- zenml/zen_server/dashboard/assets/DeleteAlertDialog-BbyFVnVI.js +0 -1
- zenml/zen_server/dashboard/assets/NestedCollapsible-CN9scBUn.js +0 -1
- zenml/zen_server/dashboard/assets/RunsBody-BToytB8e.js +0 -1
- zenml/zen_server/dashboard/assets/StackComponentList-s7eSfm8o.js +0 -1
- zenml/zen_server/dashboard/assets/StackList-Dt0FrIkM.js +0 -1
- zenml/zen_server/dashboard/assets/Tabs-B27AHUfo.js +0 -1
- zenml/zen_server/dashboard/assets/Tick-DDeDgTuT.js +0 -1
- zenml/zen_server/dashboard/assets/WizardFooter-Bt7_UE14.js +0 -1
- zenml/zen_server/dashboard/assets/configuration-form-Yz8m0QIG.js +0 -1
- zenml/zen_server/dashboard/assets/constants-DeV48DuZ.js +0 -1
- zenml/zen_server/dashboard/assets/form-6aSt3tIl.js +0 -1
- zenml/zen_server/dashboard/assets/index-eggipFZS.css +0 -1
- zenml/zen_server/dashboard/assets/layout-CFLL6-CM.js +0 -1
- zenml/zen_server/dashboard/assets/page-6huxSHEu.js +0 -1
- zenml/zen_server/dashboard/assets/page-BMpXak4U.js +0 -1
- zenml/zen_server/dashboard/assets/page-Bjmcdg64.js +0 -1
- zenml/zen_server/dashboard/assets/page-BsAn8p4m.js +0 -1
- zenml/zen_server/dashboard/assets/page-BwjPRuaY.js +0 -1
- zenml/zen_server/dashboard/assets/page-CDtSVkNc.js +0 -1
- zenml/zen_server/dashboard/assets/page-CEDU0L2T.js +0 -1
- zenml/zen_server/dashboard/assets/page-COJK90rG.js +0 -1
- zenml/zen_server/dashboard/assets/page-C_XMn4GU.js +0 -1
- zenml/zen_server/dashboard/assets/page-Cb3KGsPK.js +0 -22
- zenml/zen_server/dashboard/assets/page-CiGOVsj3.js +0 -1
- zenml/zen_server/dashboard/assets/page-CmLSFMkW.js +0 -1
- zenml/zen_server/dashboard/assets/page-CnfCptXq.js +0 -1
- zenml/zen_server/dashboard/assets/page-CxzglV3-.js +0 -1
- zenml/zen_server/dashboard/assets/page-DVLez4R1.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dg7-H_9i.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dw7XuiSo.js +0 -18
- zenml/zen_server/dashboard/assets/page-XrmOHHg7.js +0 -1
- zenml/zen_server/dashboard/assets/page-oRm7D4TC.js +0 -1
- zenml/zen_server/dashboard/assets/page-x2GXC8sI.js +0 -1
- zenml/zen_server/dashboard/assets/page-z2FXP4GY.js +0 -1
- zenml/zen_server/dashboard/assets/primary-role-CPGHymjN.js +0 -1
- {zenml_nightly-0.84.0.dev20250729.dist-info → zenml_nightly-0.84.0.dev20250730.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.84.0.dev20250729.dist-info → zenml_nightly-0.84.0.dev20250730.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.84.0.dev20250729.dist-info → zenml_nightly-0.84.0.dev20250730.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{r as p,j as e}from"./@radix-C_LirfyT.js";import{S as O}from"./package-BhYXGPxF.js";import{I as v}from"./Infobox-DFCWPbMb.js";import{a as R,C as Z}from"./index.esm-COnaHLSh.js";import{S as L}from"./credit-card-CH1BHrXY.js";import{T as z}from"./Tick-DDeDgTuT.js";import{bx as W,by as G,bz as H,az as P,d as C,ac as S,A as M,e as _,B as V,b4 as Y,j as F,a_ as q,a$ as Q,b0 as $,b1 as J,b2 as K}from"./index-BacoJBEQ.js";import{C as c}from"./ComponentBadge-mw2Ja_ON.js";import{s as w}from"./index-dCcVgFNl.js";import{g as U}from"./ProviderRadio-D_q9tE3G.js";import{b as N}from"./@tanstack-C0SeHZng.js";import{S as D}from"./logs-DoLoTEfj.js";import{C as k}from"./CodeSnippet-D8iBqOVv.js";import{N as B}from"./NumberBox-CoQjQYDJ.js";import{p as X,s as ee}from"./persist-DxiyfAax.js";import{C as re}from"./ProviderIcon-BMAn9Jld.js";const E=p.createContext(null);function Pe({children:a}){const{success:t,data:s}=X(),[r,n]=p.useState(!1),[l,i]=p.useState(!!t),[o,h]=p.useState(t?{location:s.location,provider:s.provider,stackName:s.stackName}:{}),[x,u]=p.useState(t?s.timestamp:""),m=p.useRef(null);return e.jsx(E.Provider,{value:{isNextButtonDisabled:r,setIsNextButtonDisabled:n,data:o,setData:h,isLoading:l,setIsLoading:i,formRef:m,timestamp:x,setTimestamp:u},children:a})}function A(){const a=p.useContext(E);if(a===null)throw new Error("useNewInfraFormContext must be used within an AuthProvider");return a}const ae=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 4.5C12.5523 4.5 13 4.94772 13 5.5V6H13.1667C15.0076 6 16.5 7.49238 16.5 9.33333C16.5 9.88562 16.0523 10.3333 15.5 10.3333C14.9477 10.3333 14.5 9.88562 14.5 9.33333C14.5 8.59695 13.903 8 13.1667 8H11C10.1716 8 9.5 8.67157 9.5 9.5C9.5 10.3284 10.1716 11 11 11H13C14.933 11 16.5 12.567 16.5 14.5C16.5 16.433 14.933 18 13 18V18.5C13 19.0523 12.5523 19.5 12 19.5C11.4477 19.5 11 19.0523 11 18.5V18H10.8333C8.99238 18 7.5 16.5076 7.5 14.6667C7.5 14.1144 7.94772 13.6667 8.5 13.6667C9.05228 13.6667 9.5 14.1144 9.5 14.6667C9.5 15.403 10.097 16 10.8333 16H13C13.8284 16 14.5 15.3284 14.5 14.5C14.5 13.6716 13.8284 13 13 13H11C9.067 13 7.5 11.433 7.5 9.5C7.5 7.567 9.067 6 11 6V5.5C11 4.94772 11.4477 4.5 12 4.5Z"}));function I({provider:a}){return e.jsxs(W,{children:[e.jsx(G,{className:"block",children:e.jsxs(v,{intent:"warning",children:["This will give ZenML permissions and create secret keys for secure ZenML -",">"," ",U(a)," communication. You can revoke these permissions at any time."]})}),e.jsx(H,{sideOffset:0,className:"w-auto p-5",children:e.jsx(P,{viewportClassName:"max-h-[300px]",children:e.jsx(te,{provider:a})})})]})}function te({provider:a}){const{isPending:t,isError:s,error:r,data:n}=N(w.stackDeploymentInfo({provider:a}));if(t)return e.jsx(C,{className:"h-[100px] w-full"});if(s)return e.jsx("p",{children:r.message});const l=Object.entries(n.permissions);return e.jsx("ul",{className:"space-y-2 pr-3 text-text-sm",children:l.map(([i,o])=>e.jsxs("li",{className:"flex flex-col gap-1",children:[e.jsx("p",{children:i}),e.jsx("ul",{className:"list-inside list-[square] pl-4 text-neutral-400 marker:text-primary-200",children:o.map((h,x)=>e.jsx("li",{children:h},x))})]},i))})}function se({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,o,h,x,u,m,g,f,j,b,y;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(M,{type:"square",size:"lg",children:e.jsx(_,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"IAM Role",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to AWS resources",badge:e.jsx(c,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/iam.webp",alt:"IAM logo"}}),n&&e.jsx(I,{provider:"aws"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((o=r==null?void 0:r.artifactStore)==null?void 0:o.name)||"S3 Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(c,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/aws.png",alt:"S3 logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"ECR Repository",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(c,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/aws.png",alt:"ECR logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"SageMaker",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(c,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/sagemaker.png",alt:"Sagemaker logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Sagemaker Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(c,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/sagemaker.png",alt:"Sagemaker step operator logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((b=r==null?void 0:r.imageBuilder)==null?void 0:b.name)||"AWS Image Builder",subtitle:((y=r==null?void 0:r.imageBuilder)==null?void 0:y.id)||"Build and manage container images",badge:e.jsx(c,{type:"image_builder",children:"Image Builder"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/image_builder/aws.png",alt:"AWS Image Builder logo"}})})]})}function le({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,o,h,x,u,m,g,f,j,b,y;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(M,{type:"square",size:"lg",children:e.jsx(_,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Service Account",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to GCP resources",badge:e.jsx(c,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/gcp-iam.webp",alt:"Service Account logo"}}),n&&e.jsx(I,{provider:"gcp"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((o=r==null?void 0:r.artifactStore)==null?void 0:o.name)||"GCS Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(c,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/gcp.png",alt:"GCS logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Google Artifact Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(c,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/gcp.png",alt:"Google Artifact Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Vertex AI",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(c,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/vertexai.png",alt:"VertexAI logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.imageBuilder)==null?void 0:f.name)||"Cloud Build",isLoading:t,isSuccess:s,subtitle:((j=r==null?void 0:r.imageBuilder)==null?void 0:j.id)||"Build, test, and deploy images",badge:e.jsx(c,{type:"image_builder",children:"Image Builder"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/image_builder/gcp.png",alt:"Cloud Build logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((b=r==null?void 0:r.operator)==null?void 0:b.name)||"Vertex Step Operator",subtitle:((y=r==null?void 0:r.operator)==null?void 0:y.id)||"Execute individual steps",badge:e.jsx(c,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/vertexai.png",alt:"Vertex step operator logo"}})})]})}function ie(){return e.jsx(v,{className:"border-warning-300 bg-warning-50",intent:"warning",children:'The Cloud Shell session will warn you that the ZenML GitHub repository is untrusted. We recommend that you review the contents of the repository and then check the "Trust repo" checkbox to proceed with the deployment, otherwise the Cloud Shell session will not be authenticated to access your GCP projects.'})}function ce(){const{data:a}=A(),t=N({...w.stackDeploymentConfig({provider:"gcp",stack_name:a.stackName,location:a.location})});return t.isError?null:t.isPending?e.jsx(C,{className:"h-[200px] w-full"}):e.jsxs("section",{className:"space-y-5 border-t border-theme-border-moderate pt-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(D,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]}),e.jsx(k,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})]})}function De(){const{data:a}=A();return e.jsxs("div",{className:"space-y-5",children:[e.jsx(v,{children:"This will provision and register a basic ZenML stack with all the necessary resources and credentials required to run pipelines."}),a.provider!=="azure"&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx(re,{provider:a.provider,className:"h-5 w-5"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploy the Stack"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack from your browser by clicking the button below:"})]}),a.provider==="gcp"&&e.jsx(ie,{}),a.provider!=="azure"&&e.jsx(T,{setTimestampBool:!0}),a.provider==="gcp"&&e.jsx(ce,{}),a.provider==="azure"&&e.jsx(oe,{displayInfobox:!0})]})}function T({setTimestampBool:a,children:t}){const{data:s,setTimestamp:r,setIsLoading:n}=A(),l=N({...w.stackDeploymentConfig({provider:s.provider,location:s.location,stack_name:s.stackName})});if(l.isError)return null;if(l.isPending)return e.jsx(C,{className:"h-[48px] w-[100px]"});function i(){const o=new Date().toISOString().slice(0,-1);a&&r(o),ee({location:s.location||"",provider:s.provider||"aws",stackName:s.stackName,timestamp:o}),n(!0)}return e.jsx(V,{asChild:!0,className:"w-fit gap-3 whitespace-nowrap",size:"lg",onClick:()=>i(),children:e.jsxs("a",{href:l.data.deployment_url,target:"_blank",rel:"noopener noreferrer",children:[t||e.jsxs("div",{children:["Deploy in ",e.jsx("span",{className:"uppercase",children:s.provider})]}),e.jsx(Y,{className:"h-5 w-5 shrink-0 fill-white"})]})})}function de({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,o,h,x,u,m,g,f,j;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(M,{type:"square",size:"lg",children:e.jsx(_,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Azure Service Principal",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to Azure resources",badge:e.jsx(c,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/azure-service-principal.webp",alt:"Service Principal logo"}}),n&&e.jsx(I,{provider:"azure"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((o=r==null?void 0:r.artifactStore)==null?void 0:o.name)||"Azure Blob Storage",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(c,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/azure.png",alt:"Blob Storage logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Azure Container Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(c,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/azure.png",alt:"Azure Container Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Azure ML",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(c,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/azureml.png",alt:"Azure ML logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Azure Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(c,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/azureml.png",alt:"Azure Step Operator logo"}})})]})}function oe({displayInfobox:a=!1}){return e.jsxs("section",{className:"space-y-5",children:[e.jsx(pe,{}),e.jsx(ne,{displayInfobox:a}),e.jsx(xe,{}),e.jsx(he,{})]})}function ne({displayInfobox:a=!1}){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(B,{children:"1"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell Console"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack using the Azure Cloud Shell console."})]}),e.jsx(T,{setTimestampBool:!0,children:e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell"})}),a&&e.jsx(v,{className:"border-warning-300 bg-warning-50",intent:"warning",children:"After the Terraform deployment is complete, you can close the Cloud Shell session and return to the dashboard to view details about the associated ZenML stack automatically registered with ZenML."})]})}function xe(){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(B,{children:"2"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Create a file with the following configuration"})]}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Create a file named ",e.jsx("code",{className:"font-mono text-primary-400",children:"main.tf"})," in the Cloud Shell and copy and paste the Terraform configuration below into it."]})]}),e.jsx(ue,{})]})}function he(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(B,{children:"3"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Run the following commands"})]})}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize the Terraform configuration."}),e.jsx(k,{code:"terraform init --upgrade"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run terraform apply to deploy the ZenML stack to Azure."}),e.jsx(k,{code:"terraform apply"})]})]})}function ue(){const{data:a}=A(),t=N({...w.stackDeploymentConfig({provider:"azure",stack_name:a.stackName,location:a.location}),enabled:!!a.stackName});return t.isError?null:t.isPending?e.jsx(C,{className:"h-[200px] w-full"}):e.jsx(k,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})}function pe(){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(D,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]})}function me({componentProps:a,type:t}){switch(t){case"aws":return e.jsx(se,{...a});case"gcp":return e.jsx(le,{...a});case"azure":return e.jsx(de,{...a})}}function d({img:a,title:t,subtitle:s,badge:r,isSuccess:n,isLoading:l}){return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[l&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),n&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx("img",{width:"40",height:"40",alt:a.alt,src:a.src}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:t}),e.jsx("p",{className:"text-theme-text-secondary",children:s})]})]}),r]})}function Ee({provider:a}){function t(){let s="#";switch(a){case"aws":s="https://calculator.aws/#/";break;case"gcp":s="https://cloud.google.com/products/calculator";break;case"azure":s="https://azure.microsoft.com/en-us/pricing/calculator/";break}return e.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"link",children:"official pricing calculator"})}return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ae,{className:"h-5 w-5 fill-primary-400"}),"Estimated Cost"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"These are rough estimates and actual costs may vary based on your usage."})]}),e.jsxs(F,{className:"flex items-start gap-[10px] p-3",children:[e.jsx("div",{className:"content-center rounded-sm bg-blue-25 p-1",children:e.jsx(L,{className:"h-5 w-5 fill-blue-400"})}),e.jsxs("div",{children:[e.jsxs("p",{children:["A small training job would cost around:"," ",e.jsx("span",{className:"font-semibold text-theme-text-success",children:"$0.60"})]}),e.jsxs("p",{className:"text-text-xs text-theme-text-secondary",children:["Please use the ",e.jsx(t,{})," for a detailed estimate"]})]})]})]})}const ge=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C8.13401 3 5 6.13401 5 10C5 11.8921 5.85317 13.678 7.29228 15.5467C8.50741 17.1245 10.0627 18.6673 11.7323 20.3233C11.8212 20.4115 11.9105 20.5 12 20.5889C12.0895 20.5 12.1788 20.4115 12.2677 20.3233C13.9373 18.6673 15.4926 17.1245 16.7077 15.5467C18.1468 13.678 19 11.8921 19 10C19 6.13401 15.866 3 12 3ZM3 10C3 5.02944 7.02944 1 12 1C16.9706 1 21 5.02944 21 10C21 12.5262 19.8532 14.7402 18.2923 16.767C16.988 18.4607 15.3185 20.1156 13.6508 21.7689C13.3354 22.0816 13.02 22.3943 12.7071 22.7071C12.3166 23.0976 11.6834 23.0976 11.2929 22.7071C10.98 22.3943 10.6646 22.0816 10.3492 21.7689C8.68147 20.1156 7.01205 18.4607 5.70772 16.767C4.14683 14.7402 3 12.5262 3 10ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8ZM8 10C8 7.79086 9.79086 6 12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10Z"}));function fe({provider:a}){const{control:t}=R(),{isPending:s,isError:r,data:n}=N({...w.stackDeploymentInfo({provider:a})});if(r)return null;if(s)return e.jsx(C,{className:"h-[40px] w-[100px]"});const l=Object.entries(n.locations);return e.jsx(Z,{control:t,name:"region",render:({field:{onChange:i,ref:o,...h}})=>e.jsxs(q,{...h,onValueChange:i,children:[e.jsx(Q,{className:"border border-neutral-300 text-left text-text-md",children:e.jsx($,{className:"flex items-center gap-2",placeholder:"Select your Location"})}),e.jsx(J,{children:e.jsx(P,{viewportClassName:"max-h-[300px]",children:l.map(([x,u])=>e.jsxs(K,{value:u,children:[x," - ",e.jsx("span",{className:"text-theme-text-secondary",children:u})]},x))})})]})})}function Te({provider:a}){return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ge,{className:"h-5 w-5 fill-primary-400"}),"Choose Your Location"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select where you want to deploy your cloud infrastructure for optimal performance and compliance."})]}),e.jsx(fe,{provider:a})]})}function Oe({provider:a}){const{watch:t}=R();return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(O,{className:"h-5 w-5 fill-primary-400"}),"Review Your Stack Components"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"The following components will be created for your ZenML stack."})]}),e.jsx(me,{type:a,componentProps:{displayPermissions:!0,stackName:t("stackName")}}),e.jsx(v,{children:"These resources create a basic ZenML stack for ML workflow management. ZenML supports highly flexible stacks. You can build advanced stacks at any time, combining your preferred tools and components for more complex MLOps."})]})}export{oe as A,me as C,T as D,Ee as E,ce as G,Pe as N,Te as R,Oe as a,De as b,A as u};
|
1
|
+
import{r as p,j as e}from"./@radix-B1sy0Lhr.js";import{S as O}from"./package-pR4bbXJp.js";import{I as v}from"./Infobox-DnduZjNU.js";import{a as R,C as Z}from"./index.esm-SBF9nn_P.js";import{S as L}from"./credit-card-DfBA6dBb.js";import{T as z}from"./Tick-BQ7_xDBl.js";import{bz as W,bA as G,bB as H,aG as P,d as C,a7 as S,A as M,f as B,B as V,b8 as Y,k as F,b2 as q,b3 as Q,b4 as $,b5 as J,b6 as K}from"./index-CO6UN3UX.js";import{C as c}from"./ComponentBadge-MVT08kBV.js";import{s as w}from"./index-BYHxFvoG.js";import{g as U}from"./ProviderRadio-C6pLVNxC.js";import{b as N}from"./@tanstack-Dwlisomv.js";import{S as D}from"./logs-lNLbZqHL.js";import{C as k}from"./CodeSnippet-B7Wd4R8u.js";import{N as _}from"./NumberBox-C2Pju4PR.js";import{p as X,s as ee}from"./persist-Dkbp9MFP.js";import{C as re}from"./ProviderIcon-aQjTuTRX.js";const E=p.createContext(null);function Pe({children:a}){const{success:t,data:s}=X(),[r,n]=p.useState(!1),[l,i]=p.useState(!!t),[o,h]=p.useState(t?{location:s.location,provider:s.provider,stackName:s.stackName}:{}),[x,u]=p.useState(t?s.timestamp:""),m=p.useRef(null);return e.jsx(E.Provider,{value:{isNextButtonDisabled:r,setIsNextButtonDisabled:n,data:o,setData:h,isLoading:l,setIsLoading:i,formRef:m,timestamp:x,setTimestamp:u},children:a})}function A(){const a=p.useContext(E);if(a===null)throw new Error("useNewInfraFormContext must be used within an AuthProvider");return a}const ae=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 4.5C12.5523 4.5 13 4.94772 13 5.5V6H13.1667C15.0076 6 16.5 7.49238 16.5 9.33333C16.5 9.88562 16.0523 10.3333 15.5 10.3333C14.9477 10.3333 14.5 9.88562 14.5 9.33333C14.5 8.59695 13.903 8 13.1667 8H11C10.1716 8 9.5 8.67157 9.5 9.5C9.5 10.3284 10.1716 11 11 11H13C14.933 11 16.5 12.567 16.5 14.5C16.5 16.433 14.933 18 13 18V18.5C13 19.0523 12.5523 19.5 12 19.5C11.4477 19.5 11 19.0523 11 18.5V18H10.8333C8.99238 18 7.5 16.5076 7.5 14.6667C7.5 14.1144 7.94772 13.6667 8.5 13.6667C9.05228 13.6667 9.5 14.1144 9.5 14.6667C9.5 15.403 10.097 16 10.8333 16H13C13.8284 16 14.5 15.3284 14.5 14.5C14.5 13.6716 13.8284 13 13 13H11C9.067 13 7.5 11.433 7.5 9.5C7.5 7.567 9.067 6 11 6V5.5C11 4.94772 11.4477 4.5 12 4.5Z"}));function I({provider:a}){return e.jsxs(W,{children:[e.jsx(G,{className:"block",children:e.jsxs(v,{intent:"warning",children:["This will give ZenML permissions and create secret keys for secure ZenML -",">"," ",U(a)," communication. You can revoke these permissions at any time."]})}),e.jsx(H,{sideOffset:0,className:"w-auto p-5",children:e.jsx(P,{viewportClassName:"max-h-[300px]",children:e.jsx(te,{provider:a})})})]})}function te({provider:a}){const{isPending:t,isError:s,error:r,data:n}=N(w.stackDeploymentInfo({provider:a}));if(t)return e.jsx(C,{className:"h-[100px] w-full"});if(s)return e.jsx("p",{children:r.message});const l=Object.entries(n.permissions);return e.jsx("ul",{className:"space-y-2 pr-3 text-text-sm",children:l.map(([i,o])=>e.jsxs("li",{className:"flex flex-col gap-1",children:[e.jsx("p",{children:i}),e.jsx("ul",{className:"list-inside list-[square] pl-4 text-neutral-400 marker:text-primary-200",children:o.map((h,x)=>e.jsx("li",{children:h},x))})]},i))})}function se({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,o,h,x,u,m,g,f,j,b,y;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(M,{type:"square",size:"lg",children:e.jsx(B,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"IAM Role",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to AWS resources",badge:e.jsx(c,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/iam.webp",alt:"IAM logo"}}),n&&e.jsx(I,{provider:"aws"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((o=r==null?void 0:r.artifactStore)==null?void 0:o.name)||"S3 Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(c,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/aws.png",alt:"S3 logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"ECR Repository",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(c,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/aws.png",alt:"ECR logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"SageMaker",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(c,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/sagemaker.png",alt:"Sagemaker logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Sagemaker Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(c,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/sagemaker.png",alt:"Sagemaker step operator logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((b=r==null?void 0:r.imageBuilder)==null?void 0:b.name)||"AWS Image Builder",subtitle:((y=r==null?void 0:r.imageBuilder)==null?void 0:y.id)||"Build and manage container images",badge:e.jsx(c,{type:"image_builder",children:"Image Builder"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/image_builder/aws.png",alt:"AWS Image Builder logo"}})})]})}function le({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,o,h,x,u,m,g,f,j,b,y;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(M,{type:"square",size:"lg",children:e.jsx(B,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Service Account",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to GCP resources",badge:e.jsx(c,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/gcp-iam.webp",alt:"Service Account logo"}}),n&&e.jsx(I,{provider:"gcp"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((o=r==null?void 0:r.artifactStore)==null?void 0:o.name)||"GCS Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(c,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/gcp.png",alt:"GCS logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Google Artifact Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(c,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/gcp.png",alt:"Google Artifact Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Vertex AI",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(c,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/vertexai.png",alt:"VertexAI logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.imageBuilder)==null?void 0:f.name)||"Cloud Build",isLoading:t,isSuccess:s,subtitle:((j=r==null?void 0:r.imageBuilder)==null?void 0:j.id)||"Build, test, and deploy images",badge:e.jsx(c,{type:"image_builder",children:"Image Builder"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/image_builder/gcp.png",alt:"Cloud Build logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((b=r==null?void 0:r.operator)==null?void 0:b.name)||"Vertex Step Operator",subtitle:((y=r==null?void 0:r.operator)==null?void 0:y.id)||"Execute individual steps",badge:e.jsx(c,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/vertexai.png",alt:"Vertex step operator logo"}})})]})}function ie(){return e.jsx(v,{className:"border-warning-300 bg-warning-50",intent:"warning",children:'The Cloud Shell session will warn you that the ZenML GitHub repository is untrusted. We recommend that you review the contents of the repository and then check the "Trust repo" checkbox to proceed with the deployment, otherwise the Cloud Shell session will not be authenticated to access your GCP projects.'})}function ce(){const{data:a}=A(),t=N({...w.stackDeploymentConfig({provider:"gcp",stack_name:a.stackName,location:a.location})});return t.isError?null:t.isPending?e.jsx(C,{className:"h-[200px] w-full"}):e.jsxs("section",{className:"space-y-5 border-t border-theme-border-moderate pt-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(D,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]}),e.jsx(k,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})]})}function De(){const{data:a}=A();return e.jsxs("div",{className:"space-y-5",children:[e.jsx(v,{children:"This will provision and register a basic ZenML stack with all the necessary resources and credentials required to run pipelines."}),a.provider!=="azure"&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx(re,{provider:a.provider,className:"h-5 w-5"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploy the Stack"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack from your browser by clicking the button below:"})]}),a.provider==="gcp"&&e.jsx(ie,{}),a.provider!=="azure"&&e.jsx(T,{setTimestampBool:!0}),a.provider==="gcp"&&e.jsx(ce,{}),a.provider==="azure"&&e.jsx(oe,{displayInfobox:!0})]})}function T({setTimestampBool:a,children:t}){const{data:s,setTimestamp:r,setIsLoading:n}=A(),l=N({...w.stackDeploymentConfig({provider:s.provider,location:s.location,stack_name:s.stackName})});if(l.isError)return null;if(l.isPending)return e.jsx(C,{className:"h-[48px] w-[100px]"});function i(){const o=new Date().toISOString().slice(0,-1);a&&r(o),ee({location:s.location||"",provider:s.provider||"aws",stackName:s.stackName,timestamp:o}),n(!0)}return e.jsx(V,{asChild:!0,className:"w-fit gap-3 whitespace-nowrap",size:"lg",onClick:()=>i(),children:e.jsxs("a",{href:l.data.deployment_url,target:"_blank",rel:"noopener noreferrer",children:[t||e.jsxs("div",{children:["Deploy in ",e.jsx("span",{className:"uppercase",children:s.provider})]}),e.jsx(Y,{className:"h-5 w-5 shrink-0 fill-white"})]})})}function de({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,o,h,x,u,m,g,f,j;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(M,{type:"square",size:"lg",children:e.jsx(B,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Azure Service Principal",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to Azure resources",badge:e.jsx(c,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/azure-service-principal.webp",alt:"Service Principal logo"}}),n&&e.jsx(I,{provider:"azure"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((o=r==null?void 0:r.artifactStore)==null?void 0:o.name)||"Azure Blob Storage",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(c,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/azure.png",alt:"Blob Storage logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Azure Container Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(c,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/azure.png",alt:"Azure Container Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Azure ML",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(c,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/azureml.png",alt:"Azure ML logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Azure Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(c,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/azureml.png",alt:"Azure Step Operator logo"}})})]})}function oe({displayInfobox:a=!1}){return e.jsxs("section",{className:"space-y-5",children:[e.jsx(pe,{}),e.jsx(ne,{displayInfobox:a}),e.jsx(xe,{}),e.jsx(he,{})]})}function ne({displayInfobox:a=!1}){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_,{children:"1"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell Console"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack using the Azure Cloud Shell console."})]}),e.jsx(T,{setTimestampBool:!0,children:e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell"})}),a&&e.jsx(v,{className:"border-warning-300 bg-warning-50",intent:"warning",children:"After the Terraform deployment is complete, you can close the Cloud Shell session and return to the dashboard to view details about the associated ZenML stack automatically registered with ZenML."})]})}function xe(){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_,{children:"2"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Create a file with the following configuration"})]}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Create a file named ",e.jsx("code",{className:"font-mono text-primary-400",children:"main.tf"})," in the Cloud Shell and copy and paste the Terraform configuration below into it."]})]}),e.jsx(ue,{})]})}function he(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_,{children:"3"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Run the following commands"})]})}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize the Terraform configuration."}),e.jsx(k,{code:"terraform init --upgrade"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run terraform apply to deploy the ZenML stack to Azure."}),e.jsx(k,{code:"terraform apply"})]})]})}function ue(){const{data:a}=A(),t=N({...w.stackDeploymentConfig({provider:"azure",stack_name:a.stackName,location:a.location}),enabled:!!a.stackName});return t.isError?null:t.isPending?e.jsx(C,{className:"h-[200px] w-full"}):e.jsx(k,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})}function pe(){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(D,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]})}function me({componentProps:a,type:t}){switch(t){case"aws":return e.jsx(se,{...a});case"gcp":return e.jsx(le,{...a});case"azure":return e.jsx(de,{...a})}}function d({img:a,title:t,subtitle:s,badge:r,isSuccess:n,isLoading:l}){return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[l&&e.jsx(S,{className:"h-5 w-5 shrink-0 border-[3px]"}),n&&e.jsx(z,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx("img",{width:"40",height:"40",alt:a.alt,src:a.src}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:t}),e.jsx("p",{className:"text-theme-text-secondary",children:s})]})]}),r]})}function Ee({provider:a}){function t(){let s="#";switch(a){case"aws":s="https://calculator.aws/#/";break;case"gcp":s="https://cloud.google.com/products/calculator";break;case"azure":s="https://azure.microsoft.com/en-us/pricing/calculator/";break}return e.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"link",children:"official pricing calculator"})}return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ae,{className:"h-5 w-5 fill-primary-400"}),"Estimated Cost"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"These are rough estimates and actual costs may vary based on your usage."})]}),e.jsxs(F,{className:"flex items-start gap-[10px] p-3",children:[e.jsx("div",{className:"content-center rounded-sm bg-blue-25 p-1",children:e.jsx(L,{className:"h-5 w-5 fill-blue-400"})}),e.jsxs("div",{children:[e.jsxs("p",{children:["A small training job would cost around:"," ",e.jsx("span",{className:"font-semibold text-theme-text-success",children:"$0.60"})]}),e.jsxs("p",{className:"text-text-xs text-theme-text-secondary",children:["Please use the ",e.jsx(t,{})," for a detailed estimate"]})]})]})]})}const ge=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C8.13401 3 5 6.13401 5 10C5 11.8921 5.85317 13.678 7.29228 15.5467C8.50741 17.1245 10.0627 18.6673 11.7323 20.3233C11.8212 20.4115 11.9105 20.5 12 20.5889C12.0895 20.5 12.1788 20.4115 12.2677 20.3233C13.9373 18.6673 15.4926 17.1245 16.7077 15.5467C18.1468 13.678 19 11.8921 19 10C19 6.13401 15.866 3 12 3ZM3 10C3 5.02944 7.02944 1 12 1C16.9706 1 21 5.02944 21 10C21 12.5262 19.8532 14.7402 18.2923 16.767C16.988 18.4607 15.3185 20.1156 13.6508 21.7689C13.3354 22.0816 13.02 22.3943 12.7071 22.7071C12.3166 23.0976 11.6834 23.0976 11.2929 22.7071C10.98 22.3943 10.6646 22.0816 10.3492 21.7689C8.68147 20.1156 7.01205 18.4607 5.70772 16.767C4.14683 14.7402 3 12.5262 3 10ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8ZM8 10C8 7.79086 9.79086 6 12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10Z"}));function fe({provider:a}){const{control:t}=R(),{isPending:s,isError:r,data:n}=N({...w.stackDeploymentInfo({provider:a})});if(r)return null;if(s)return e.jsx(C,{className:"h-[40px] w-[100px]"});const l=Object.entries(n.locations);return e.jsx(Z,{control:t,name:"region",render:({field:{onChange:i,ref:o,...h}})=>e.jsxs(q,{...h,onValueChange:i,children:[e.jsx(Q,{className:"border border-neutral-300 text-left text-text-md",children:e.jsx($,{className:"flex items-center gap-2",placeholder:"Select your Location"})}),e.jsx(J,{children:e.jsx(P,{viewportClassName:"max-h-[300px]",children:l.map(([x,u])=>e.jsxs(K,{value:u,children:[x," - ",e.jsx("span",{className:"text-theme-text-secondary",children:u})]},x))})})]})})}function Te({provider:a}){return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ge,{className:"h-5 w-5 fill-primary-400"}),"Choose Your Location"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select where you want to deploy your cloud infrastructure for optimal performance and compliance."})]}),e.jsx(fe,{provider:a})]})}function Oe({provider:a}){const{watch:t}=R();return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(O,{className:"h-5 w-5 fill-primary-400"}),"Review Your Stack Components"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"The following components will be created for your ZenML stack."})]}),e.jsx(me,{type:a,componentProps:{displayPermissions:!0,stackName:t("stackName")}}),e.jsx(v,{children:"These resources create a basic ZenML stack for ML workflow management. ZenML supports highly flexible stacks. You can build advanced stacks at any time, combining your preferred tools and components for more complex MLOps."})]})}export{oe as A,me as C,T as D,Ee as E,ce as G,Pe as N,Te as R,Oe as a,De as b,A as u};
|
zenml/zen_server/dashboard/assets/{PasswordChecker-BZwoeQIm.js → PasswordChecker-DOPLfvg7.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{j as s}from"./@radix-
|
1
|
+
import{j as s}from"./@radix-B1sy0Lhr.js";const a={uppercase:"Password must contain at least one uppercase letter",lowercase:"Password must contain at least one lowercase letter",number:"Password must contain at least one number",special:"Password must contain at least one special character",length:"Password must be at least 8 characters"};function l({errors:c,val:t}){const e=n(c||{});function r(o){return t?e.includes(o)?"text-theme-text-error":"text-theme-text-success":"text-theme-text-secondary"}return s.jsxs("div",{className:"space-y-1 rounded-md border border-theme-border-moderate bg-theme-surface-secondary px-5 py-3 text-text-xs text-theme-text-secondary",children:[s.jsx("p",{className:"text-text-sm text-theme-text-primary",children:"Password criteria"}),s.jsxs("div",{children:[s.jsx("p",{className:r(a.length),children:"Minimum 8 characters"}),s.jsx("p",{className:r(a.number),children:"Must Contain one Numeric value"}),s.jsx("p",{className:r(a.uppercase),children:"Must include upper cases"}),s.jsx("p",{className:r(a.lowercase),children:"Must include lower cases"}),s.jsx("p",{className:r(a.special),children:"Must include one special character (!,@,#...)"})]})]})}function n(c){const t=[];return Object.values(c).forEach(e=>{typeof e=="string"?t.push(e):Array.isArray(e)?t.push(...e):typeof e=="object"&&e!==null&&t.push(...n(e))}),t}export{l as P};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-
|
1
|
+
import{j as e}from"./@radix-B1sy0Lhr.js";import{c as a,a5 as l,B as i,r as d}from"./index-CO6UN3UX.js";import{S as c}from"./check-C9Nye5lR.js";import{L as m}from"./@react-router-CHjLNlgw.js";function g({className:s,...r}){return e.jsx("div",{className:a("flex items-center overflow-hidden rounded-md border border-warning-100 bg-theme-surface-primary px-7 py-5",s),...r})}function j({className:s,...r}){return e.jsx("h2",{className:a("text-display-xs font-semibold",s),...r})}function w(){return e.jsxs("div",{className:"flex w-fit gap-2 rounded-md bg-[#FFF6EA] px-3 py-1",children:[e.jsx("p",{children:"Instantly access Pro features while keeping your existing setup"}),e.jsx(l,{color:"yellow",rounded:!0,size:"sm",className:"font-semibold uppercase",children:"New"})]})}function b({className:s,features:r,...t}){return e.jsx("ul",{...t,className:a("grid grid-cols-1 gap-x-7 gap-y-5 md:grid-cols-2"),children:r.map((n,o)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(u,{}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:n.title}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:n.subtitle})]})]},o))})}function N(){return e.jsxs("div",{className:"flex w-fit flex-wrap gap-2",children:[e.jsx(i,{asChild:!0,className:"truncate bg-warning-600 hover:bg-warning-400 active:bg-warning-500 active:ring-warning-50",size:"md",children:e.jsx(m,{to:d.upgrade,children:"Try Pro Features"})}),e.jsx(i,{asChild:!0,intent:"secondary",className:"w-fit truncate",emphasis:"minimal",size:"md",children:e.jsx("a",{href:"https://www.zenml.io/pro",target:"_blank",rel:"noopener noreferrer",children:"Learn More"})})]})}function y({className:s,...r}){return e.jsx("img",{className:a("hidden w-full shrink-0 rounded-md border border-theme-border-moderate 2xl:block",s),...r})}function u(){return e.jsx("div",{className:"flex aspect-square h-5 w-5 shrink-0 items-center justify-center rounded-rounded bg-warning-400",children:e.jsx(c,{className:"h-3 w-3 shrink-0 fill-white"})})}export{g as P,u as T,j as a,w as b,b as c,N as d,y as e};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as C,j as a}from"./@radix-C_LirfyT.js";import{c as r}from"./index-BacoJBEQ.js";const s=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M7.25265 9.80525C7.25265 10.073 7.2816 10.2901 7.33226 10.4493C7.39015 10.6085 7.46252 10.7822 7.56383 10.9704C7.60002 11.0283 7.61449 11.0862 7.61449 11.1368C7.61449 11.2092 7.57107 11.2816 7.47699 11.3539L7.02107 11.6579C6.95594 11.7013 6.89081 11.723 6.83291 11.723C6.76054 11.723 6.68818 11.6868 6.61581 11.6217C6.51449 11.5131 6.42765 11.3974 6.35528 11.2816C6.28291 11.1585 6.21054 11.021 6.13094 10.8546C5.56647 11.5204 4.85726 11.8533 4.00331 11.8533C3.39541 11.8533 2.91054 11.6796 2.55594 11.3322C2.20133 10.9849 2.02041 10.5217 2.02041 9.94275C2.02041 9.32762 2.23752 8.82827 2.67897 8.45196C3.12041 8.07564 3.7066 7.88748 4.45199 7.88748C4.69804 7.88748 4.95133 7.9092 5.2191 7.94538C5.48686 7.98156 5.76186 8.03946 6.05133 8.10459V7.5763C6.05133 7.0263 5.93554 6.64275 5.7112 6.41841C5.47962 6.19406 5.08883 6.08551 4.5316 6.08551C4.27831 6.08551 4.01778 6.11446 3.75002 6.17959C3.48226 6.24472 3.22173 6.32433 2.96844 6.42564C2.85265 6.4763 2.76581 6.50525 2.71515 6.51972C2.66449 6.5342 2.62831 6.54143 2.59936 6.54143C2.49804 6.54143 2.44739 6.46906 2.44739 6.31709V5.96248C2.44739 5.8467 2.46186 5.75985 2.49804 5.7092C2.53423 5.65854 2.59936 5.60788 2.70068 5.55722C2.95397 5.42696 3.25791 5.31841 3.61252 5.23156C3.96712 5.13748 4.34344 5.09406 4.74147 5.09406C5.60265 5.09406 6.23226 5.28946 6.63752 5.68025C7.03554 6.07104 7.23818 6.66446 7.23818 7.46051V9.80525H7.25265ZM4.31449 10.9052C4.55331 10.9052 4.79936 10.8618 5.05989 10.775C5.32041 10.6881 5.55199 10.5289 5.74739 10.3118C5.86318 10.1743 5.95002 10.0224 5.99344 9.84867C6.03686 9.67498 6.06581 9.46512 6.06581 9.21906V8.91512C5.85594 8.86446 5.6316 8.82104 5.40002 8.79209C5.16844 8.76314 4.9441 8.74867 4.71976 8.74867C4.23489 8.74867 3.88028 8.84275 3.64147 9.03814C3.40265 9.23354 3.28686 9.50854 3.28686 9.87038C3.28686 10.2105 3.3737 10.4638 3.55462 10.6375C3.72831 10.8184 3.9816 10.9052 4.31449 10.9052ZM10.1257 11.6868C9.99541 11.6868 9.90857 11.6651 9.85068 11.6145C9.79278 11.571 9.74212 11.4697 9.6987 11.3322L7.99804 5.73814C7.95462 5.59341 7.93291 5.49933 7.93291 5.44867C7.93291 5.33288 7.99081 5.26775 8.1066 5.26775H8.81581C8.95331 5.26775 9.04739 5.28946 9.09804 5.34012C9.15594 5.38354 9.19936 5.48485 9.24278 5.62235L10.4586 10.4131L11.5875 5.62235C11.6237 5.47762 11.6671 5.38354 11.725 5.34012C11.7829 5.2967 11.8842 5.26775 12.0145 5.26775H12.5934C12.7309 5.26775 12.825 5.28946 12.8829 5.34012C12.9408 5.38354 12.9915 5.48485 13.0204 5.62235L14.1638 10.471L15.4158 5.62235C15.4592 5.47762 15.5099 5.38354 15.5605 5.34012C15.6184 5.2967 15.7125 5.26775 15.8428 5.26775H16.5158C16.6316 5.26775 16.6967 5.32564 16.6967 5.44867C16.6967 5.48485 16.6895 5.52104 16.6823 5.56446C16.675 5.60788 16.6605 5.66577 16.6316 5.74538L14.8875 11.3395C14.8441 11.4842 14.7934 11.5783 14.7355 11.6217C14.6776 11.6651 14.5836 11.6941 14.4605 11.6941H13.8382C13.7007 11.6941 13.6066 11.6724 13.5487 11.6217C13.4908 11.571 13.4402 11.477 13.4112 11.3322L12.2895 6.66446L11.175 11.325C11.1388 11.4697 11.0954 11.5638 11.0375 11.6145C10.9796 11.6651 10.8783 11.6868 10.748 11.6868H10.1257ZM19.425 11.8822C19.0487 11.8822 18.6724 11.8388 18.3105 11.752C17.9487 11.6651 17.6665 11.571 17.4783 11.4625C17.3625 11.3974 17.2829 11.325 17.254 11.2599C17.225 11.1947 17.2105 11.1224 17.2105 11.0572V10.6881C17.2105 10.5362 17.2684 10.4638 17.377 10.4638C17.4204 10.4638 17.4638 10.471 17.5073 10.4855C17.5507 10.5 17.6158 10.5289 17.6882 10.5579C17.9342 10.6664 18.202 10.7533 18.4842 10.8112C18.7737 10.8691 19.0559 10.898 19.3454 10.898C19.8013 10.898 20.1559 10.8184 20.402 10.6592C20.648 10.5 20.7783 10.2684 20.7783 9.97169C20.7783 9.76906 20.7132 9.60262 20.5829 9.46512C20.4527 9.32762 20.2066 9.20459 19.852 9.0888L18.8026 8.76314C18.2744 8.5967 17.8836 8.35064 17.6448 8.02498C17.4059 7.70656 17.2829 7.35196 17.2829 6.97564C17.2829 6.67169 17.348 6.40393 17.4783 6.17235C17.6086 5.94077 17.7823 5.73814 17.9994 5.57893C18.2165 5.41248 18.4625 5.28946 18.752 5.20262C19.0415 5.11577 19.3454 5.07959 19.6638 5.07959C19.823 5.07959 19.9895 5.08683 20.1487 5.10854C20.3151 5.13025 20.4671 5.1592 20.6191 5.18814C20.7638 5.22433 20.9013 5.26051 21.0316 5.30393C21.1619 5.34735 21.2632 5.39077 21.3355 5.4342C21.4369 5.49209 21.5092 5.54998 21.5526 5.61512C21.5961 5.67301 21.6178 5.75262 21.6178 5.85393V6.19406C21.6178 6.34604 21.5599 6.42564 21.4513 6.42564C21.3934 6.42564 21.2994 6.3967 21.1763 6.3388C20.7638 6.15064 20.3007 6.05656 19.7869 6.05656C19.3744 6.05656 19.0487 6.1217 18.8244 6.2592C18.6 6.3967 18.4842 6.60656 18.4842 6.90327C18.4842 7.10591 18.5566 7.27959 18.7013 7.41709C18.8461 7.55459 19.1138 7.69209 19.4974 7.81512L20.525 8.14077C21.0461 8.30722 21.4224 8.5388 21.6467 8.83551C21.8711 9.13222 21.9796 9.47235 21.9796 9.84867C21.9796 10.1599 21.9145 10.4421 21.7915 10.6881C21.6612 10.9342 21.4875 11.1513 21.2632 11.325C21.0388 11.5059 20.7711 11.6362 20.4599 11.7302C20.1342 11.8316 19.7941 11.8822 19.425 11.8822Z",fill:"#252F3E"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7928 15.3993C18.4119 17.1579 14.9527 18.0914 11.9783 18.0914C7.80989 18.0914 4.05397 16.55 1.21712 13.9881C0.992781 13.7855 1.19541 13.5105 1.46318 13.6697C4.5316 15.45 8.31647 16.5283 12.2316 16.5283C14.873 16.5283 17.775 15.9783 20.4454 14.8493C20.8434 14.6684 21.1836 15.1099 20.7928 15.3993Z",fill:"#FF9900"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7842 14.2704C21.4803 13.8796 19.7724 14.0822 18.998 14.1763C18.7665 14.2052 18.7303 14.0026 18.9401 13.8506C20.3007 12.8954 22.5369 13.1704 22.7974 13.4888C23.0579 13.8145 22.725 16.0506 21.4513 17.1217C21.2559 17.2881 21.0678 17.2013 21.1546 16.9842C21.4441 16.2677 22.0882 14.6539 21.7842 14.2704Z",fill:"#FF9900"})),i=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M14.96 7.87666H15.631L17.5433 5.96383L17.6373 5.15171C16.5417 4.18453 15.2178 3.51266 13.7905 3.19958C12.3632 2.88649 10.8797 2.94252 9.48005 3.36238C8.08042 3.78224 6.81091 4.55206 5.79143 5.59912C4.77195 6.64619 4.03616 7.93593 3.65356 9.34652C3.86661 9.25917 4.10261 9.24501 4.32457 9.30624L8.14928 8.67535C8.14928 8.67535 8.34387 8.35319 8.44452 8.37332C9.26404 7.47306 10.3966 6.92017 11.6103 6.82784C12.8241 6.73551 14.0272 7.11072 14.9734 7.87666H14.96Z",fill:"#EA4335"}),C.createElement("path",{d:"M20.2675 9.34654C19.828 7.72743 18.9255 6.27188 17.6708 5.15845L14.9868 7.84312C15.5461 8.3003 15.9944 8.87856 16.2978 9.53429C16.6012 10.19 16.7517 10.9061 16.7381 11.6285V12.105C17.0518 12.105 17.3624 12.1668 17.6522 12.2869C17.942 12.407 18.2054 12.583 18.4272 12.8049C18.649 13.0267 18.825 13.2901 18.945 13.58C19.0651 13.8699 19.1268 14.1806 19.1268 14.4944C19.1268 14.8082 19.0651 15.1189 18.945 15.4088C18.825 15.6987 18.649 15.9621 18.4272 16.1839C18.2054 16.4058 17.942 16.5818 17.6522 16.7019C17.3624 16.822 17.0518 16.8838 16.7381 16.8838H11.9605L11.4841 17.367V20.2329L11.9605 20.7094H16.7381C18.0722 20.7198 19.3742 20.3004 20.4515 19.5132C21.5289 18.7261 22.3243 17.613 22.7201 16.3386C23.116 15.0642 23.0912 13.6962 22.6495 12.437C22.2078 11.1778 21.3727 10.0942 20.2675 9.34654Z",fill:"#4285F4"}),C.createElement("path",{d:"M7.17626 20.6825H11.9538V16.8569H7.17626C6.83588 16.8568 6.49949 16.7835 6.18988 16.6421L5.51888 16.8502L3.5931 18.763L3.42535 19.4341C4.50529 20.2498 5.82303 20.6884 7.17626 20.6825Z",fill:"#34A853"}),C.createElement("path",{d:"M7.1763 8.27262C5.88182 8.28036 4.62207 8.6923 3.57302 9.45093C2.52396 10.2096 1.73798 11.277 1.32485 12.5041C0.911727 13.7312 0.892087 15.0567 1.26868 16.2956C1.64527 17.5344 2.39928 18.6246 3.4254 19.414L6.19664 16.6421C5.84447 16.4829 5.53617 16.2407 5.29817 15.9362C5.06017 15.6316 4.89959 15.2739 4.83021 14.8937C4.76082 14.5134 4.78471 14.122 4.89981 13.753C5.01491 13.384 5.21779 13.0484 5.49104 12.7751C5.7643 12.5018 6.09977 12.2989 6.46867 12.1837C6.83757 12.0686 7.22889 12.0447 7.60905 12.1141C7.98921 12.1835 8.34687 12.3441 8.65132 12.5822C8.95578 12.8203 9.19795 13.1286 9.35706 13.4809L12.1283 10.709C11.5466 9.94837 10.797 9.33267 9.9379 8.91001C9.07883 8.48736 8.13366 8.26921 7.1763 8.27262Z",fill:"#FBBC05"})),o=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8.72249 2.00023H14.6895L8.49515 20.3535C8.43149 20.5421 8.31028 20.706 8.1486 20.8221C7.98691 20.9382 7.79289 21.0006 7.59384 21.0007H2.95001C2.79919 21.0007 2.65054 20.9648 2.51635 20.896C2.38217 20.8271 2.2663 20.7273 2.17833 20.6048C2.09036 20.4823 2.03283 20.3406 2.01048 20.1915C1.98814 20.0424 2.00163 19.89 2.04984 19.7471L7.82094 2.6474C7.88458 2.45872 8.00581 2.29477 8.16754 2.17863C8.32928 2.06249 8.52337 2.00024 8.72249 2.00023Z",fill:"url(#paint0_linear_326_3226)"}),C.createElement("path",{d:"M17.3935 14.3104H7.93122C7.84325 14.3103 7.75729 14.3367 7.68454 14.3862C7.61178 14.4356 7.55561 14.5059 7.52334 14.5877C7.49106 14.6695 7.48418 14.7592 7.50359 14.845C7.523 14.9308 7.5678 15.0088 7.63216 15.0687L13.7124 20.7438C13.8894 20.909 14.1225 21.0008 14.3646 21.0007H19.7225L17.3935 14.3104Z",fill:"#0078D4"}),C.createElement("path",{d:"M8.72249 2.00025C8.5212 1.99948 8.32494 2.06309 8.16237 2.18179C7.99981 2.30049 7.87945 2.46806 7.81889 2.66002L2.05695 19.7316C2.0055 19.875 1.98935 20.0287 2.00986 20.1797C2.03037 20.3306 2.08694 20.4745 2.1748 20.599C2.26265 20.7235 2.37919 20.825 2.51456 20.8949C2.64994 20.9648 2.80017 21.0011 2.95253 21.0007H7.71622C7.89364 20.969 8.05947 20.8908 8.19676 20.774C8.33406 20.6572 8.4379 20.5061 8.49768 20.3361L9.64672 16.9497L13.7511 20.7779C13.9231 20.9202 14.1389 20.9989 14.3621 21.0007H19.7L17.3589 14.3104L10.5341 14.312L14.7111 2.00025H8.72249Z",fill:"url(#paint1_linear_326_3226)"}),C.createElement("path",{d:"M16.3439 2.64649C16.2804 2.45813 16.1593 2.29444 15.9978 2.17851C15.8364 2.06257 15.6426 2.00022 15.4438 2.00024H8.79358C8.99237 2.00026 9.18615 2.06262 9.34763 2.17855C9.50911 2.29448 9.63017 2.45815 9.69375 2.64649L15.4651 19.7469C15.5133 19.8898 15.5268 20.0422 15.5045 20.1914C15.4822 20.3406 15.4247 20.4823 15.3367 20.6048C15.2487 20.7274 15.1329 20.8272 14.9987 20.8961C14.8644 20.965 14.7158 21.0009 14.5649 21.0009H21.2153C21.3662 21.0009 21.5148 20.9649 21.649 20.896C21.7832 20.8271 21.899 20.7273 21.987 20.6048C22.0749 20.4822 22.1324 20.3405 22.1547 20.1913C22.177 20.0422 22.1635 19.8898 22.1153 19.7469L16.3439 2.64649Z",fill:"url(#paint2_linear_326_3226)"}),C.createElement("defs",null,C.createElement("linearGradient",{id:"paint0_linear_326_3226",x1:10.8973,y1:3.40823,x2:4.70038,y2:21.7154,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#114A8B"}),C.createElement("stop",{offset:1,stopColor:"#0669BC"})),C.createElement("linearGradient",{id:"paint1_linear_326_3226",x1:12.8331,y1:11.9399,x2:11.3996,y2:12.4246,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopOpacity:.3}),C.createElement("stop",{offset:.071,stopOpacity:.2}),C.createElement("stop",{offset:.321,stopOpacity:.1}),C.createElement("stop",{offset:.623,stopOpacity:.05}),C.createElement("stop",{offset:1,stopOpacity:0})),C.createElement("linearGradient",{id:"paint2_linear_326_3226",x1:12.0448,y1:2.87429,x2:18.8471,y2:20.997,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#3CCBF4"}),C.createElement("stop",{offset:1,stopColor:"#2892DF"}))));function m({provider:e,className:n,...t}){const l=r("w-5 h-5 shrink-0",n);switch(e){case"aws":return a.jsx(s,{...t,className:l});case"azure":return a.jsx(o,{...t,className:l});case"gcp":return a.jsx(i,{...t,className:l})}}export{m as C};
|
1
|
+
import{r as C,j as a}from"./@radix-B1sy0Lhr.js";import{c as r}from"./index-CO6UN3UX.js";const s=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M7.25265 9.80525C7.25265 10.073 7.2816 10.2901 7.33226 10.4493C7.39015 10.6085 7.46252 10.7822 7.56383 10.9704C7.60002 11.0283 7.61449 11.0862 7.61449 11.1368C7.61449 11.2092 7.57107 11.2816 7.47699 11.3539L7.02107 11.6579C6.95594 11.7013 6.89081 11.723 6.83291 11.723C6.76054 11.723 6.68818 11.6868 6.61581 11.6217C6.51449 11.5131 6.42765 11.3974 6.35528 11.2816C6.28291 11.1585 6.21054 11.021 6.13094 10.8546C5.56647 11.5204 4.85726 11.8533 4.00331 11.8533C3.39541 11.8533 2.91054 11.6796 2.55594 11.3322C2.20133 10.9849 2.02041 10.5217 2.02041 9.94275C2.02041 9.32762 2.23752 8.82827 2.67897 8.45196C3.12041 8.07564 3.7066 7.88748 4.45199 7.88748C4.69804 7.88748 4.95133 7.9092 5.2191 7.94538C5.48686 7.98156 5.76186 8.03946 6.05133 8.10459V7.5763C6.05133 7.0263 5.93554 6.64275 5.7112 6.41841C5.47962 6.19406 5.08883 6.08551 4.5316 6.08551C4.27831 6.08551 4.01778 6.11446 3.75002 6.17959C3.48226 6.24472 3.22173 6.32433 2.96844 6.42564C2.85265 6.4763 2.76581 6.50525 2.71515 6.51972C2.66449 6.5342 2.62831 6.54143 2.59936 6.54143C2.49804 6.54143 2.44739 6.46906 2.44739 6.31709V5.96248C2.44739 5.8467 2.46186 5.75985 2.49804 5.7092C2.53423 5.65854 2.59936 5.60788 2.70068 5.55722C2.95397 5.42696 3.25791 5.31841 3.61252 5.23156C3.96712 5.13748 4.34344 5.09406 4.74147 5.09406C5.60265 5.09406 6.23226 5.28946 6.63752 5.68025C7.03554 6.07104 7.23818 6.66446 7.23818 7.46051V9.80525H7.25265ZM4.31449 10.9052C4.55331 10.9052 4.79936 10.8618 5.05989 10.775C5.32041 10.6881 5.55199 10.5289 5.74739 10.3118C5.86318 10.1743 5.95002 10.0224 5.99344 9.84867C6.03686 9.67498 6.06581 9.46512 6.06581 9.21906V8.91512C5.85594 8.86446 5.6316 8.82104 5.40002 8.79209C5.16844 8.76314 4.9441 8.74867 4.71976 8.74867C4.23489 8.74867 3.88028 8.84275 3.64147 9.03814C3.40265 9.23354 3.28686 9.50854 3.28686 9.87038C3.28686 10.2105 3.3737 10.4638 3.55462 10.6375C3.72831 10.8184 3.9816 10.9052 4.31449 10.9052ZM10.1257 11.6868C9.99541 11.6868 9.90857 11.6651 9.85068 11.6145C9.79278 11.571 9.74212 11.4697 9.6987 11.3322L7.99804 5.73814C7.95462 5.59341 7.93291 5.49933 7.93291 5.44867C7.93291 5.33288 7.99081 5.26775 8.1066 5.26775H8.81581C8.95331 5.26775 9.04739 5.28946 9.09804 5.34012C9.15594 5.38354 9.19936 5.48485 9.24278 5.62235L10.4586 10.4131L11.5875 5.62235C11.6237 5.47762 11.6671 5.38354 11.725 5.34012C11.7829 5.2967 11.8842 5.26775 12.0145 5.26775H12.5934C12.7309 5.26775 12.825 5.28946 12.8829 5.34012C12.9408 5.38354 12.9915 5.48485 13.0204 5.62235L14.1638 10.471L15.4158 5.62235C15.4592 5.47762 15.5099 5.38354 15.5605 5.34012C15.6184 5.2967 15.7125 5.26775 15.8428 5.26775H16.5158C16.6316 5.26775 16.6967 5.32564 16.6967 5.44867C16.6967 5.48485 16.6895 5.52104 16.6823 5.56446C16.675 5.60788 16.6605 5.66577 16.6316 5.74538L14.8875 11.3395C14.8441 11.4842 14.7934 11.5783 14.7355 11.6217C14.6776 11.6651 14.5836 11.6941 14.4605 11.6941H13.8382C13.7007 11.6941 13.6066 11.6724 13.5487 11.6217C13.4908 11.571 13.4402 11.477 13.4112 11.3322L12.2895 6.66446L11.175 11.325C11.1388 11.4697 11.0954 11.5638 11.0375 11.6145C10.9796 11.6651 10.8783 11.6868 10.748 11.6868H10.1257ZM19.425 11.8822C19.0487 11.8822 18.6724 11.8388 18.3105 11.752C17.9487 11.6651 17.6665 11.571 17.4783 11.4625C17.3625 11.3974 17.2829 11.325 17.254 11.2599C17.225 11.1947 17.2105 11.1224 17.2105 11.0572V10.6881C17.2105 10.5362 17.2684 10.4638 17.377 10.4638C17.4204 10.4638 17.4638 10.471 17.5073 10.4855C17.5507 10.5 17.6158 10.5289 17.6882 10.5579C17.9342 10.6664 18.202 10.7533 18.4842 10.8112C18.7737 10.8691 19.0559 10.898 19.3454 10.898C19.8013 10.898 20.1559 10.8184 20.402 10.6592C20.648 10.5 20.7783 10.2684 20.7783 9.97169C20.7783 9.76906 20.7132 9.60262 20.5829 9.46512C20.4527 9.32762 20.2066 9.20459 19.852 9.0888L18.8026 8.76314C18.2744 8.5967 17.8836 8.35064 17.6448 8.02498C17.4059 7.70656 17.2829 7.35196 17.2829 6.97564C17.2829 6.67169 17.348 6.40393 17.4783 6.17235C17.6086 5.94077 17.7823 5.73814 17.9994 5.57893C18.2165 5.41248 18.4625 5.28946 18.752 5.20262C19.0415 5.11577 19.3454 5.07959 19.6638 5.07959C19.823 5.07959 19.9895 5.08683 20.1487 5.10854C20.3151 5.13025 20.4671 5.1592 20.6191 5.18814C20.7638 5.22433 20.9013 5.26051 21.0316 5.30393C21.1619 5.34735 21.2632 5.39077 21.3355 5.4342C21.4369 5.49209 21.5092 5.54998 21.5526 5.61512C21.5961 5.67301 21.6178 5.75262 21.6178 5.85393V6.19406C21.6178 6.34604 21.5599 6.42564 21.4513 6.42564C21.3934 6.42564 21.2994 6.3967 21.1763 6.3388C20.7638 6.15064 20.3007 6.05656 19.7869 6.05656C19.3744 6.05656 19.0487 6.1217 18.8244 6.2592C18.6 6.3967 18.4842 6.60656 18.4842 6.90327C18.4842 7.10591 18.5566 7.27959 18.7013 7.41709C18.8461 7.55459 19.1138 7.69209 19.4974 7.81512L20.525 8.14077C21.0461 8.30722 21.4224 8.5388 21.6467 8.83551C21.8711 9.13222 21.9796 9.47235 21.9796 9.84867C21.9796 10.1599 21.9145 10.4421 21.7915 10.6881C21.6612 10.9342 21.4875 11.1513 21.2632 11.325C21.0388 11.5059 20.7711 11.6362 20.4599 11.7302C20.1342 11.8316 19.7941 11.8822 19.425 11.8822Z",fill:"#252F3E"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7928 15.3993C18.4119 17.1579 14.9527 18.0914 11.9783 18.0914C7.80989 18.0914 4.05397 16.55 1.21712 13.9881C0.992781 13.7855 1.19541 13.5105 1.46318 13.6697C4.5316 15.45 8.31647 16.5283 12.2316 16.5283C14.873 16.5283 17.775 15.9783 20.4454 14.8493C20.8434 14.6684 21.1836 15.1099 20.7928 15.3993Z",fill:"#FF9900"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7842 14.2704C21.4803 13.8796 19.7724 14.0822 18.998 14.1763C18.7665 14.2052 18.7303 14.0026 18.9401 13.8506C20.3007 12.8954 22.5369 13.1704 22.7974 13.4888C23.0579 13.8145 22.725 16.0506 21.4513 17.1217C21.2559 17.2881 21.0678 17.2013 21.1546 16.9842C21.4441 16.2677 22.0882 14.6539 21.7842 14.2704Z",fill:"#FF9900"})),i=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M14.96 7.87666H15.631L17.5433 5.96383L17.6373 5.15171C16.5417 4.18453 15.2178 3.51266 13.7905 3.19958C12.3632 2.88649 10.8797 2.94252 9.48005 3.36238C8.08042 3.78224 6.81091 4.55206 5.79143 5.59912C4.77195 6.64619 4.03616 7.93593 3.65356 9.34652C3.86661 9.25917 4.10261 9.24501 4.32457 9.30624L8.14928 8.67535C8.14928 8.67535 8.34387 8.35319 8.44452 8.37332C9.26404 7.47306 10.3966 6.92017 11.6103 6.82784C12.8241 6.73551 14.0272 7.11072 14.9734 7.87666H14.96Z",fill:"#EA4335"}),C.createElement("path",{d:"M20.2675 9.34654C19.828 7.72743 18.9255 6.27188 17.6708 5.15845L14.9868 7.84312C15.5461 8.3003 15.9944 8.87856 16.2978 9.53429C16.6012 10.19 16.7517 10.9061 16.7381 11.6285V12.105C17.0518 12.105 17.3624 12.1668 17.6522 12.2869C17.942 12.407 18.2054 12.583 18.4272 12.8049C18.649 13.0267 18.825 13.2901 18.945 13.58C19.0651 13.8699 19.1268 14.1806 19.1268 14.4944C19.1268 14.8082 19.0651 15.1189 18.945 15.4088C18.825 15.6987 18.649 15.9621 18.4272 16.1839C18.2054 16.4058 17.942 16.5818 17.6522 16.7019C17.3624 16.822 17.0518 16.8838 16.7381 16.8838H11.9605L11.4841 17.367V20.2329L11.9605 20.7094H16.7381C18.0722 20.7198 19.3742 20.3004 20.4515 19.5132C21.5289 18.7261 22.3243 17.613 22.7201 16.3386C23.116 15.0642 23.0912 13.6962 22.6495 12.437C22.2078 11.1778 21.3727 10.0942 20.2675 9.34654Z",fill:"#4285F4"}),C.createElement("path",{d:"M7.17626 20.6825H11.9538V16.8569H7.17626C6.83588 16.8568 6.49949 16.7835 6.18988 16.6421L5.51888 16.8502L3.5931 18.763L3.42535 19.4341C4.50529 20.2498 5.82303 20.6884 7.17626 20.6825Z",fill:"#34A853"}),C.createElement("path",{d:"M7.1763 8.27262C5.88182 8.28036 4.62207 8.6923 3.57302 9.45093C2.52396 10.2096 1.73798 11.277 1.32485 12.5041C0.911727 13.7312 0.892087 15.0567 1.26868 16.2956C1.64527 17.5344 2.39928 18.6246 3.4254 19.414L6.19664 16.6421C5.84447 16.4829 5.53617 16.2407 5.29817 15.9362C5.06017 15.6316 4.89959 15.2739 4.83021 14.8937C4.76082 14.5134 4.78471 14.122 4.89981 13.753C5.01491 13.384 5.21779 13.0484 5.49104 12.7751C5.7643 12.5018 6.09977 12.2989 6.46867 12.1837C6.83757 12.0686 7.22889 12.0447 7.60905 12.1141C7.98921 12.1835 8.34687 12.3441 8.65132 12.5822C8.95578 12.8203 9.19795 13.1286 9.35706 13.4809L12.1283 10.709C11.5466 9.94837 10.797 9.33267 9.9379 8.91001C9.07883 8.48736 8.13366 8.26921 7.1763 8.27262Z",fill:"#FBBC05"})),o=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8.72249 2.00023H14.6895L8.49515 20.3535C8.43149 20.5421 8.31028 20.706 8.1486 20.8221C7.98691 20.9382 7.79289 21.0006 7.59384 21.0007H2.95001C2.79919 21.0007 2.65054 20.9648 2.51635 20.896C2.38217 20.8271 2.2663 20.7273 2.17833 20.6048C2.09036 20.4823 2.03283 20.3406 2.01048 20.1915C1.98814 20.0424 2.00163 19.89 2.04984 19.7471L7.82094 2.6474C7.88458 2.45872 8.00581 2.29477 8.16754 2.17863C8.32928 2.06249 8.52337 2.00024 8.72249 2.00023Z",fill:"url(#paint0_linear_326_3226)"}),C.createElement("path",{d:"M17.3935 14.3104H7.93122C7.84325 14.3103 7.75729 14.3367 7.68454 14.3862C7.61178 14.4356 7.55561 14.5059 7.52334 14.5877C7.49106 14.6695 7.48418 14.7592 7.50359 14.845C7.523 14.9308 7.5678 15.0088 7.63216 15.0687L13.7124 20.7438C13.8894 20.909 14.1225 21.0008 14.3646 21.0007H19.7225L17.3935 14.3104Z",fill:"#0078D4"}),C.createElement("path",{d:"M8.72249 2.00025C8.5212 1.99948 8.32494 2.06309 8.16237 2.18179C7.99981 2.30049 7.87945 2.46806 7.81889 2.66002L2.05695 19.7316C2.0055 19.875 1.98935 20.0287 2.00986 20.1797C2.03037 20.3306 2.08694 20.4745 2.1748 20.599C2.26265 20.7235 2.37919 20.825 2.51456 20.8949C2.64994 20.9648 2.80017 21.0011 2.95253 21.0007H7.71622C7.89364 20.969 8.05947 20.8908 8.19676 20.774C8.33406 20.6572 8.4379 20.5061 8.49768 20.3361L9.64672 16.9497L13.7511 20.7779C13.9231 20.9202 14.1389 20.9989 14.3621 21.0007H19.7L17.3589 14.3104L10.5341 14.312L14.7111 2.00025H8.72249Z",fill:"url(#paint1_linear_326_3226)"}),C.createElement("path",{d:"M16.3439 2.64649C16.2804 2.45813 16.1593 2.29444 15.9978 2.17851C15.8364 2.06257 15.6426 2.00022 15.4438 2.00024H8.79358C8.99237 2.00026 9.18615 2.06262 9.34763 2.17855C9.50911 2.29448 9.63017 2.45815 9.69375 2.64649L15.4651 19.7469C15.5133 19.8898 15.5268 20.0422 15.5045 20.1914C15.4822 20.3406 15.4247 20.4823 15.3367 20.6048C15.2487 20.7274 15.1329 20.8272 14.9987 20.8961C14.8644 20.965 14.7158 21.0009 14.5649 21.0009H21.2153C21.3662 21.0009 21.5148 20.9649 21.649 20.896C21.7832 20.8271 21.899 20.7273 21.987 20.6048C22.0749 20.4822 22.1324 20.3405 22.1547 20.1913C22.177 20.0422 22.1635 19.8898 22.1153 19.7469L16.3439 2.64649Z",fill:"url(#paint2_linear_326_3226)"}),C.createElement("defs",null,C.createElement("linearGradient",{id:"paint0_linear_326_3226",x1:10.8973,y1:3.40823,x2:4.70038,y2:21.7154,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#114A8B"}),C.createElement("stop",{offset:1,stopColor:"#0669BC"})),C.createElement("linearGradient",{id:"paint1_linear_326_3226",x1:12.8331,y1:11.9399,x2:11.3996,y2:12.4246,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopOpacity:.3}),C.createElement("stop",{offset:.071,stopOpacity:.2}),C.createElement("stop",{offset:.321,stopOpacity:.1}),C.createElement("stop",{offset:.623,stopOpacity:.05}),C.createElement("stop",{offset:1,stopOpacity:0})),C.createElement("linearGradient",{id:"paint2_linear_326_3226",x1:12.0448,y1:2.87429,x2:18.8471,y2:20.997,gradientUnits:"userSpaceOnUse"},C.createElement("stop",{stopColor:"#3CCBF4"}),C.createElement("stop",{offset:1,stopColor:"#2892DF"}))));function m({provider:e,className:n,...t}){const l=r("w-5 h-5 shrink-0",n);switch(e){case"aws":return a.jsx(s,{...t,className:l});case"azure":return a.jsx(o,{...t,className:l});case"gcp":return a.jsx(i,{...t,className:l})}}export{m as C};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e,r as o}from"./@radix-
|
1
|
+
import{j as e,r as o}from"./@radix-B1sy0Lhr.js";import{B as l,r as i,b as n,I as m,c as d,a5 as x}from"./index-CO6UN3UX.js";import{c as p}from"./persist-Dkbp9MFP.js";import{c as u}from"./@react-router-CHjLNlgw.js";import{a as f}from"./index.esm-SBF9nn_P.js";function v(){const r=u();function s(){p(),r(i.stacks.create.index)}return e.jsx(l,{onClick:()=>s(),intent:"secondary",size:"md",children:"Cancel"})}function k(r){switch(r){case"aws":return"AWS";case"azure":return"Azure";case"gcp":return"GCP";default:return"Provider"}}function C(){var t;const{register:r,formState:{errors:s}}=f();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(n,{className:"h-5 w-5 fill-primary-400"}),"Select a name for your Stack"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please select a name for your stack, that is not used already."})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(m,{className:`${s.stackName?"border-red-500":""}`,placeholder:"zenml-remote-stack",...r("stackName")}),s.stackName&&e.jsx("p",{className:"text-text-xs text-red-500",children:(t=s.stackName.message)==null?void 0:t.toString()})]})})]})}const h=o.forwardRef(({children:r,className:s,id:t,...a},c)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:t,...a,ref:c,className:d("peer sr-only",s),type:"radio"}),e.jsx("label",{htmlFor:t,className:"flex h-full w-full flex-col items-start justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary hover:cursor-pointer peer-checked:border-primary-100 peer-checked:bg-primary-25 peer-focus-visible:border-primary-100 peer-disabled:cursor-default peer-disabled:bg-neutral-50",children:r})]}));h.displayName="CloudProviderRadioButton";function S({icon:r,title:s,subtitle:t,comingSoon:a}){return e.jsxs("div",{className:"space-y-1 text-left",children:[r,e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:s}),a&&e.jsx(x,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:t})]})}export{h as C,S as P,C as S,v as a,k as g};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as a}from"./@radix-B1sy0Lhr.js";import{S as j}from"./refresh-C8BXS3Fb.js";import{P as f}from"./Pagination-C1sE5Nzn.js";import{S as v}from"./SearchField-Byv1PtST.js";import{u as S}from"./all-pipeline-runs-query-CdvWtiAY.js";import{Q as m,r as c,R as b,U as y,V as N,W as R,X as u,T as p,a2 as k,z as i,B as C,Y as w,d as x}from"./index-CO6UN3UX.js";import{R as P,u as T,a as A}from"./ButtonGroup-DVhzbQxV.js";import{S as F}from"./terminal-C2tAF2XG.js";import{D as _}from"./DisplayDate-57lUNS79.js";import{g as D,E}from"./ExecutionStatus-CQbWovhV.js";import{L as l,f as B}from"./@react-router-CHjLNlgw.js";const I=[{id:"select",meta:{width:"1%"},header:({table:e})=>a.jsx(m,{id:"check-all",checked:e.getIsAllRowsSelected(),onCheckedChange:s=>e.toggleAllRowsSelected(s==="indeterminate"?!0:s)}),cell:({row:e})=>a.jsx(m,{id:`check-${e.id}`,checked:e.getIsSelected(),onCheckedChange:e.getToggleSelectedHandler()})},{id:"name",header:"Run",accessorFn:e=>{var s;return{id:e.id,name:e.name,status:(s=e.body)==null?void 0:s.status}},cell:({getValue:e})=>{const{name:s,status:t,id:r}=e();return a.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[a.jsx(F,{className:`h-5 w-5 ${D(t)}`}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx(l,{to:c.projects.runs.detail(r),className:"flex items-center gap-1",children:a.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:s})}),a.jsx(b,{children:a.jsxs(y,{children:[a.jsx(N,{className:"hover:text-theme-text-brand hover:underline",children:a.jsx(E,{status:t})}),a.jsx(R,{className:"z-20 capitalize",children:t})]})}),a.jsx(u,{copyText:s})]}),a.jsxs(l,{to:c.projects.runs.detail(r),className:"flex items-center gap-1",children:[a.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:r.split("-")[0]}),a.jsx(u,{copyText:r})]})]})]})}},{id:"pipeline",header:"Pipeline",accessorFn:e=>{var s,t;return(t=(s=e.body)==null?void 0:s.pipeline)==null?void 0:t.name},cell:({getValue:e})=>{const s=e();return s?a.jsx(l,{to:c.projects.pipelines.namespace(s),children:a.jsx(p,{color:"purple",className:"inline-flex items-center gap-0.5 truncate",rounded:!1,emphasis:"subtle",children:s})}):null}},{id:"stack",header:"Stack",accessorFn:e=>{var s,t,r,n;return{name:(t=(s=e.body)==null?void 0:s.stack)==null?void 0:t.name,id:(n=(r=e.body)==null?void 0:r.stack)==null?void 0:n.id}},cell:({getValue:e})=>{const{name:s,id:t}=e();return!s||!t?null:a.jsx(p,{rounded:!1,className:"inline-block",color:"turquoise",emphasis:"subtle",children:s})}},{id:"created-at",header:"Created at",accessorFn:e=>{var s;return{date:(s=e.body)==null?void 0:s.created}},cell:({getValue:e})=>{const{date:s}=e();return a.jsx(_,{dateString:s})}},{id:"author",header:"Author",accessorFn:e=>{var s,t;return{name:(t=(s=e.resources)==null?void 0:s.user)==null?void 0:t.name}},cell:({row:e})=>{var t,r,n;const s=(t=e.original.resources)==null?void 0:t.user;return s?a.jsx(k,{avatarUrl:((r=s.body)==null?void 0:r.avatar_url)??void 0,username:s.name,isServiceAccount:!!((n=s.body)!=null&&n.is_service_account)}):null}},{id:"admin_actions",header:"",meta:{width:"5%"},cell:({row:e})=>a.jsx(P,{id:e.original.id})}],d=1,z=i.object({page:i.coerce.number().min(d).optional().default(d).catch(d),name:i.string().optional(),operator:i.enum(["and","or"]).optional(),status:i.enum(["pending","running","completed"]).optional()});function L(){const[e]=B(),{page:s,name:t,operator:r,status:n}=z.parse({page:e.get("page")||void 0,name:e.get("name")||void 0,operator:e.get("operator")||void 0,status:e.get("status")||void 0});return{page:s,name:t,logical_operator:r,status:n}}function J({fixedQueryParams:e={}}){const{selectedRowCount:s,rowSelection:t,setRowSelection:r}=T(),n=L(),{data:o,refetch:h}=S({params:{...n,sort_by:"desc:updated",...e}});return a.jsxs("div",{className:"flex flex-col gap-5 pt-5",children:[a.jsxs("div",{className:"flex items-center justify-between",children:[s?a.jsx(A,{}):a.jsx(v,{searchParams:n}),a.jsx("div",{className:"flex justify-between",children:a.jsxs(C,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>h(),children:[a.jsx(j,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),a.jsxs("div",{className:"flex flex-col items-center gap-5",children:[a.jsx("div",{className:"w-full",children:o?a.jsx(w,{rowSelection:t,onRowSelectionChange:r,columns:I,getRowId:g=>g.id,data:o.items}):a.jsx(x,{className:"h-[500px] w-full"})}),o?o.total_pages>1&&a.jsx(f,{searchParams:n,paginate:o}):a.jsx(x,{className:"h-[36px] w-[300px]"})]})]})}export{J as R};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as s,j as c}from"./@radix-
|
1
|
+
import{r as s,j as c}from"./@radix-B1sy0Lhr.js";import{Z as S,I as g}from"./index-CO6UN3UX.js";import{d as x}from"./index-g7wOyc86.js";import{c as C,f as v}from"./@react-router-CHjLNlgw.js";const w=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C12.8859 18 14.5977 17.2542 15.8564 16.0414C15.8827 16.0072 15.9115 15.9742 15.9429 15.9429C15.9742 15.9115 16.0072 15.8827 16.0414 15.8564C17.2542 14.5977 18 12.8859 18 11C18 7.13401 14.866 4 11 4ZM18.0319 16.6177C19.2635 15.078 20 13.125 20 11C20 6.02944 15.9706 2 11 2C6.02944 2 2 6.02944 2 11C2 15.9706 6.02944 20 11 20C13.125 20 15.078 19.2635 16.6177 18.0319L20.2929 21.7071C20.6834 22.0976 21.3166 22.0976 21.7071 21.7071C22.0976 21.3166 22.0976 20.6834 21.7071 20.2929L18.0319 16.6177Z"})),j=["equals:","contains:","startswith:","endswith:","gte:","gt:","lte:","lt:"];function E(t){const a=j.find(n=>t.startsWith(n));return a?t.slice(a.length):t}const N=s.forwardRef(({searchParams:t,searchContains:a=!0,inMemoryHandler:n,...i},l)=>{const u=C(),[m]=v(),[f,d]=s.useState(E(t.name||"")||""),o=s.useMemo(()=>x(p,500),[]);s.useEffect(()=>()=>{o.cancel()},[o]);function p(r){if(n){n(r);return}const e=new URLSearchParams({...Object.fromEntries(m),...S(t)});e.delete("logical_operator"),r?(e.set("name",a?`contains:${r}`:`${r}`),e.set("operator","or"),e.set("page","1")):(e.delete("name"),e.delete("operator")),u(`?${e.toString()}`,{preventScrollReset:!0,replace:!0})}function h(r){const{value:e}=r.target;d(e),o(e)}return c.jsxs("div",{className:"relative",children:[c.jsx(g,{className:"pl-[36px]",...i,ref:l,value:f,onChange:h,placeholder:"Search...",inputSize:"md"}),c.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-1",children:c.jsx(w,{className:"size-4 fill-neutral-400"})})]})});N.displayName="SearchField";export{N as S,w as a};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e,r as A}from"./@radix-
|
1
|
+
import{j as e,r as A}from"./@radix-B1sy0Lhr.js";import{S as $}from"./eye-BXcQevds.js";import{S as Q}from"./plus-DOrkJCmy.js";import{S as z}from"./trash-D9LA4VFD.js";import{q as T,c as L,b as O,h as G}from"./@tanstack-Dwlisomv.js";import{F as j,H as g,Z as U,x as w,_ as N,G as b,z as c,aJ as B,aK as H,D as J,v as M,I as f,B as h,aN as R,aO as _,aP as W,R as Z,U as X,V as Y,W as I}from"./index-CO6UN3UX.js";import{t as ee}from"./zod-D48zuELD.js";import{u as se,b as te,C as p}from"./index.esm-SBF9nn_P.js";import{C as ae}from"./CodeSnippet-B7Wd4R8u.js";import{S as re}from"./info-CI2szPUG.js";async function ie({params:t}){const i=j(g.secrets.all+"?"+U(t)),s=await w(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&N(),!s.ok){const l=await s.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Failed to fetch secrets");throw new b({status:s.status,statusText:s.statusText,message:l})}return s.json()}async function le(t){const i=j(g.secrets.detail(t)),s=await w(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&N(),!s.ok){const l=await s.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>`Failed to fetch secret ${t}`);throw new b({status:s.status,statusText:s.statusText,message:l})}return s.json()}const y={all:["secrets"],secretList:t=>T({queryKey:[...y.all,t],queryFn:async()=>ie({params:t})}),secretDetail:t=>T({queryKey:[...y.all,t],queryFn:async()=>le(t)})};async function ne(t,i){const s=j(g.secrets.detail(t)),l=await w(s,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(l.status===404&&N(),!l.ok)throw new b({message:"Error updating secret",status:l.status,statusText:l.statusText});return l.json()}function oe(t){return L({mutationFn:async({id:i,body:s})=>ne(i,s),...t})}const ce=c.object({secretName:c.string().min(1,"Secret Name is required"),keysValues:c.array(c.object({key:c.string().min(1,"Key is required"),value:c.string().min(1,"Value is required"),showPassword:c.boolean().optional()}))});function Ne({secretId:t,isSecretNameEditable:i,dialogTitle:s}){return e.jsxs(B,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(H,{children:e.jsx(J,{children:s})}),e.jsx(ue,{secretId:t,isSecretNameEditable:i})]})}function ue({secretId:t,isSecretNameEditable:i}){const{data:s,isLoading:l,isError:n}=O({...y.secretDetail(t)}),{handleSubmit:C,control:u,setValue:m,watch:v,formState:{isValid:V}}=se({resolver:ee(ce),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:x,append:D,remove:E}=te({control:u,name:"keysValues"});A.useEffect(()=>{var a;s&&(m("secretName",s.name),m("keysValues",Object.entries(((a=s.body)==null?void 0:a.values)||{}).map(([r,o])=>({key:r,value:String(o)}))))},[s,m]);const q=()=>{D({key:"",value:"",showPassword:!1})},{toast:S}=M(),k=G(),{mutate:F}=oe({onError(a){W(a)&&S({status:"error",emphasis:"subtle",description:a.message,rounded:!0})},onSuccess(){S({status:"success",emphasis:"subtle",description:"Secret updated successfull",rounded:!0}),k.invalidateQueries({queryKey:["secrets"]}),k.invalidateQueries({queryKey:["secretDetail",t]})}}),P=a=>{const r={name:a.secretName,values:a.keysValues.reduce((o,d)=>(d.key&&d.value&&(o[d.key]=d.value),o),{})};F({id:t,body:r})},K=a=>{const r=v(`keysValues.${a}.showPassword`);m(`keysValues.${a}.showPassword`,!r)};return l?e.jsx("p",{children:"Loading..."}):n?e.jsx("p",{children:"Error fetching secret details."}):e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"edit-secret-form",className:"gap-5 p-5",onSubmit:C(P),children:e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(p,{name:"secretName",control:u,render:({field:a})=>e.jsx(f,{...a,className:"mb-3 w-full",required:!0,disabled:!i})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),x.map((a,r)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsx("div",{className:"relative flex-grow",children:e.jsx(p,{name:`keysValues.${r}.key`,control:u,render:({field:o})=>e.jsx(f,{...o,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(p,{name:`keysValues.${r}.value`,control:u,render:({field:o})=>e.jsx(f,{...o,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:v(`keysValues.${r}.showPassword`)?"text":"password"})}),e.jsx("button",{type:"button",onClick:()=>K(r),className:"absolute inset-y-1 right-0 flex items-center pb-1 pr-3",children:e.jsx($,{className:"h-4 w-4 flex-shrink-0"})})]})}),e.jsxs("div",{className:"flex items-center",children:[r===x.length-1&&e.jsx(h,{intent:"primary",emphasis:"subtle",onClick:q,className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx(Q,{className:"flex-shrink-0 fill-primary-600"})}),r!==x.length-1&&e.jsx(h,{intent:"secondary",emphasis:"minimal",onClick:()=>E(r),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx(z,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},a.id))]})}),e.jsxs(R,{className:"gap-[10px]",children:[e.jsx(_,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"primary",type:"submit",form:"edit-secret-form",disabled:!V,children:"Save Secret"})]})]})}function be({code:t}){return e.jsx(Z,{children:e.jsxs(X,{children:[e.jsx(Y,{children:e.jsx(re,{className:"h-4 w-4 shrink-0 fill-theme-text-tertiary"})}),e.jsxs(I,{className:"z-50 flex max-w-[480px] flex-col gap-2 bg-theme-surface-primary p-5 text-text-sm text-theme-text-primary",children:[e.jsx("p",{className:"text-md text-theme-text-primary",children:"To use your secret in a step, you can use the following code:"}),e.jsx(ae,{highlightCode:!0,wrap:!0,codeClasses:"break-words",code:t}),e.jsx("a",{className:"link w-fit text-primary-400",target:"_blank",href:"https://docs.zenml.io/how-to/interact-with-secrets#accessing-registered-secrets",children:"Learn More"})]})]})})}export{Ne as E,be as S,y as a,ce as s,oe as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as s}from"./@radix-
|
1
|
+
import{j as s}from"./@radix-B1sy0Lhr.js";import{I as a,B as p}from"./index-CO6UN3UX.js";import{u as w}from"./index.esm-SBF9nn_P.js";import{t as u}from"./zod-D48zuELD.js";import{P as h}from"./PasswordChecker-DOPLfvg7.js";import{g as f}from"./form-schemas-BjWDRvGd.js";function b({displayUsername:r=!1,submitHandler:l,headline:o="Create your password",subHeadine:c="Select a password for your account"}){var t;const{register:e,watch:m,handleSubmit:d,formState:{isValid:i,errors:n}}=w({resolver:u(f(r)),mode:"onChange",criteriaMode:"all",defaultValues:{username:""}}),x=(t=n.newPassword)==null?void 0:t.types;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-display-xs font-semibold",children:o}),s.jsx("p",{className:"text-theme-text-secondary",children:c})]}),s.jsxs("form",{onSubmit:d(l),className:"space-y-5",children:[s.jsx("div",{className:"space-y-2",children:r&&s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Username"}),s.jsx(a,{...e("username"),className:"w-full"})]})}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"New Password"}),s.jsx(a,{...e("newPassword"),type:"password",className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Confirm Password"}),s.jsx(a,{...e("confirmPassword"),type:"password",className:"w-full"})]}),s.jsx(h,{val:m("newPassword"),errors:x||[]}),s.jsx(p,{disabled:!i,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{b as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-
|
1
|
+
import{j as e}from"./@radix-B1sy0Lhr.js";import{S as a}from"./chevron-right-double-CbMG1dOM.js";import{c as n,bp as i,B as o}from"./index-CO6UN3UX.js";function h({className:s,children:r,...t}){return e.jsxs("div",{className:n("flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",s),...t,children:[e.jsx(i,{asChild:!0,children:e.jsxs(o,{type:"button",className:"flex aspect-square items-center justify-center p-0",intent:"secondary",emphasis:"minimal",children:[e.jsx(a,{className:"h-5 w-5 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Close"})]})}),r]})}export{h as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as x}from"./@radix-B1sy0Lhr.js";import{S as B}from"./plus-DOrkJCmy.js";import{S as g}from"./refresh-C8BXS3Fb.js";import{P as y}from"./Pagination-C1sE5Nzn.js";import{S as v}from"./SearchField-Byv1PtST.js";import{x as H,F as I,G as M,H as O,af as T,r as h,R as Q,U as $,V as q,W as U,X as u,B as d,Y as N,d as m,A as G,f as K,a2 as P,h as J,i as V,j as W,bj as X,J as A,L as Y,M as Z,N as ee,O as se,aw as S,aS as te,Q as w,s as k,aa as ae,T as ne,z as p,K as re}from"./index-CO6UN3UX.js";import{c as ie,b as F}from"./@tanstack-Dwlisomv.js";import{L as j,c as le,f as oe}from"./@react-router-CHjLNlgw.js";import{D as C}from"./DisplayDate-57lUNS79.js";import{S as ce}from"./expand-full-C8p_0jQv.js";import{S as de}from"./SheetHeader-Bb3v9rha.js";import{S as me}from"./Tabs-2uwqXsdL.js";import{u as xe}from"./all-pipeline-runs-query-CdvWtiAY.js";import{S as he}from"./terminal-C2tAF2XG.js";import{g as ue,E as pe}from"./ExecutionStatus-CQbWovhV.js";import{s as je}from"./index-BYHxFvoG.js";import{C as fe}from"./ComponentBadge-MVT08kBV.js";import{S as _}from"./trash-D9LA4VFD.js";import{D as ge,a as ye}from"./DeleteAlertDialog-CzhTVQaC.js";import{I as ve}from"./Infobox-DnduZjNU.js";import{c as Ne,u as Ce}from"./bulk-delete-wdObjfps.js";async function be({componentId:t}){const s=I(O.components.detail(t)),a=await H(s,{method:"DELETE"});if(!a.ok){const n=await a.json().then(r=>Array.isArray(r.detail)?r.detail[1]:r.detail).catch(()=>`Error while deleting component ${t}`);throw new M({status:a.status,statusText:a.statusText,message:n})}return a.json()}function Se(t){return ie({...t,mutationFn:async({componentId:s})=>be({componentId:s})})}const{ContextProvider:ts,useContext:b}=Ne();function E(){const{setRowSelection:t}=b(),{mutateAsync:s}=Se();async function a(n){await s({componentId:n})}return Ce({deleteFn:a,queryKeyToInvalidate:T.all,setRowSelection:t})}const we=[{id:"name",header:"Run",accessorFn:t=>{var s;return{id:t.id,name:t.name,status:(s=t.body)==null?void 0:s.status}},cell:({getValue:t})=>{const{name:s,status:a,id:n}=t();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(he,{className:`h-5 w-5 ${ue(a)}`}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(j,{to:h.projects.runs.detail(n),className:"flex items-center gap-1",children:e.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:s})}),e.jsx(Q,{children:e.jsxs($,{children:[e.jsx(q,{className:"hover:text-theme-text-brand hover:underline",children:e.jsx(pe,{status:a})}),e.jsx(U,{className:"z-20 capitalize",children:a})]})}),e.jsx(u,{copyText:s})]}),e.jsxs(j,{to:h.projects.runs.detail(n),className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:n.split("-")[0]}),e.jsx(u,{copyText:n})]})]})]})}},{id:"created-at",header:"Created at",accessorFn:t=>{var s;return{date:(s=t.body)==null?void 0:s.created}},cell:({getValue:t})=>{const{date:s}=t();return e.jsx("div",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:s})})}}];function ke({componentId:t}){const[s,a]=x.useState(void 0),[n,r]=x.useState(1),o={name:s,page:n},{data:l,refetch:c}=xe({params:{...o,stack_component:t,sort_by:"desc:updated"}});return e.jsx("section",{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("div",{className:"flex items-center gap-2",children:e.jsx(v,{inMemoryHandler:i=>{r(1),i||a(void 0),a(`contains:${i}`)},searchParams:{}})}),e.jsx("div",{className:"flex items-center justify-between gap-2",children:e.jsxs(d,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>c(),children:[e.jsx(g,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:l?e.jsx(N,{columns:we,data:l.items}):e.jsx(m,{className:"h-[500px] w-full"})}),l?l.total_pages>1&&e.jsx(y,{inMemoryHandler:r,searchParams:{},paginate:l}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}function De(){return[{id:"name",header:"Stack",accessorFn:t=>t.name,cell:({row:t})=>{const{name:s,id:a}=t.original;return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(G,{type:"square",size:"md",children:e.jsx(K,{size:"md",children:s[0]})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-text-md font-semibold",children:s})}),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(u,{copyText:a})]})]})]})}},{id:"author",header:"Author",accessorFn:t=>{var s;return{author:(s=t.resources)==null?void 0:s.user}},cell:({getValue:t})=>{var a,n;const{author:s}=t();return s?e.jsx(P,{avatarUrl:((a=s.body)==null?void 0:a.avatar_url)??void 0,username:s.name,isServiceAccount:!!((n=s.body)!=null&&n.is_service_account)}):null}},{id:"created",header:"Created at",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.created},cell:({getValue:t})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:t()})})}]}function Te({componentId:t}){const[s,a]=x.useState(void 0),[n,r]=x.useState(1),o={name:s,page:n},{refetch:l,data:c}=F(je.stackList({...o,component_id:t,sort_by:"desc:updated"}));return e.jsx("section",{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("div",{className:"flex items-center gap-2",children:e.jsx(v,{inMemoryHandler:i=>{r(1),i||a(void 0),a(`contains:${i}`)},searchParams:{}})}),e.jsx("div",{className:"flex items-center justify-between gap-2",children:e.jsxs(d,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>l(),children:[e.jsx(g,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:c?e.jsx(N,{columns:De(),data:c.items}):e.jsx(m,{className:"h-[500px] w-full"})}),c?c.total_pages>1&&e.jsx(y,{inMemoryHandler:r,searchParams:{},paginate:c}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}function D({children:t,onOpenChange:s,componentId:a}){return e.jsxs(J,{onOpenChange:s,children:[e.jsx(V,{asChild:!0,children:t}),e.jsxs(W,{className:"w-[1000px] overflow-y-auto",children:[e.jsx(de,{className:"gap-0.5",children:e.jsx(d,{className:"flex aspect-square items-center justify-center p-0",intent:"secondary",asChild:!0,emphasis:"minimal",children:e.jsxs(j,{to:h.components.detail(a),children:[e.jsx(ce,{className:"h-5 w-5 shrink-0 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Expand component detail to page"})]})})}),e.jsxs("div",{className:"@container",children:[e.jsx(X,{isPanel:!0,componentId:a}),e.jsx(me,{isPanel:!0,runsTabContent:e.jsx(ke,{componentId:a}),stacksTabContent:e.jsx(Te,{componentId:a}),componentId:a})]})]})]})}function R({deleteHandler:t}){return e.jsx(ge,{title:"Delete Components",handleDelete:t,children:e.jsxs(ye,{children:[e.jsx("p",{children:"Are you sure?"}),e.jsx("p",{children:"This action cannot be undone."}),e.jsx(ve,{className:"mt-4 text-theme-text-primary",children:"If a component is still part of a stack, it will not be deleted."})]})})}function Pe({deleteHandler:t,open:s,setOpen:a}){return e.jsx(A,{open:s,onOpenChange:a,children:e.jsx(R,{deleteHandler:t})})}function Ae({id:t}){const[s,a]=x.useState(!1),n=le(),{bulkDelete:r}=E();async function o(){await r([t]),a(!1)}return e.jsxs(e.Fragment,{children:[e.jsx(Pe,{deleteHandler:o,open:s,setOpen:a}),e.jsxs(Y,{children:[e.jsx(Z,{asChild:!0,children:e.jsx(d,{intent:"secondary",emphasis:"minimal",className:"flex aspect-square items-center justify-center p-0",children:e.jsx(ee,{className:"h-4 w-4 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(se,{align:"end",sideOffset:7,children:[e.jsxs(S,{onSelect:()=>n(h.components.edit(t)),className:"cursor-pointer space-x-2",children:[e.jsx(te,{className:"h-3 w-3 fill-neutral-400"}),e.jsx("p",{children:"Edit"})]}),e.jsxs(S,{onClick:()=>a(!0),className:"cursor-pointer space-x-2",children:[e.jsx(_,{className:"h-3 w-3 fill-neutral-400"}),e.jsx("p",{children:"Delete"})]})]})]})]})}function Fe(){return[{id:"select",meta:{width:"1%"},header:({table:t})=>e.jsx(w,{id:"check-all",checked:t.getIsAllRowsSelected(),onCheckedChange:s=>t.toggleAllRowsSelected(s==="indeterminate"?!0:s)}),cell:({row:t})=>e.jsx(w,{id:`check-${t.id}`,checked:t.getIsSelected(),onCheckedChange:t.getToggleSelectedHandler()})},{id:"name",header:"Component",accessorKey:"name",cell:({row:t})=>{var n;const s=t.original.id,a=t.original.name;return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx("img",{width:32,height:32,src:k(((n=t.original.body)==null?void 0:n.logo_url)||""),alt:"Flavor Icon"}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(D,{componentId:s,children:e.jsx("button",{children:e.jsx("h2",{className:"text-text-md font-semibold",children:a})})}),e.jsx(u,{copyText:a})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(D,{componentId:s,children:e.jsx("button",{className:"text-text-xs text-theme-text-secondary",children:s.split("-")[0]})}),e.jsx(u,{copyText:s})]})]})]})}},{id:"type",header:"Component Type",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.type},cell:({row:t})=>{var a;const s=((a=t.original.body)==null?void 0:a.type)||"orchestrator";return e.jsx(fe,{type:s,children:ae(s)})}},{id:"flavor",header:"Flavor",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.flavor_name},cell:({row:t})=>{var a,n;const s=(a=t.original.body)==null?void 0:a.flavor_name;return e.jsxs(ne,{rounded:!1,className:"w-fit gap-1 text-theme-text-primary",color:"grey",emphasis:"minimal",children:[e.jsx("img",{width:20,height:20,src:k(((n=t.original.body)==null?void 0:n.logo_url)||""),alt:"Flavor Icon of Component"}),e.jsx("p",{children:s})]})}},{id:"author",header:"Author",accessorFn:t=>{var s,a;return(a=(s=t.resources)==null?void 0:s.user)==null?void 0:a.name},cell:({row:t})=>{var a,n,r;const s=(a=t.original.resources)==null?void 0:a.user;return s?e.jsx(P,{avatarUrl:((n=s.body)==null?void 0:n.avatar_url)??void 0,username:s.name,isServiceAccount:!!((r=s.body)!=null&&r.is_service_account)}):null}},{id:"created",header:"Created at",accessorFn:t=>{var s;return(s=t.body)==null?void 0:s.created},cell:({row:t})=>{var s;return e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:((s=t.original.body)==null?void 0:s.created)||""})})}},{id:"admin_actions",header:"",cell:({row:t})=>e.jsx(Ae,{id:t.original.id})}]}const f=1,_e=p.object({page:p.coerce.number().min(f).optional().default(f).catch(f),name:p.string().optional(),operator:p.enum(["and","or"]).optional()});function Ee(){const[t]=oe(),{page:s,name:a,operator:n}=_e.parse({page:t.get("page")||void 0,name:t.get("name")||void 0});return{page:s,name:a,logical_operator:n}}function Re(){const{bulkDelete:t}=E(),{selectedRowCount:s,selectedRowIDs:a}=b();async function n(){await t(a)}const r=s>1?"s":"",o=`${s} Component${r} selected`;return e.jsxs("div",{className:"flex items-center divide-x divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsx("div",{className:"bg-primary-25 px-2 py-1 font-semibold text-theme-text-brand",children:o}),e.jsxs(A,{children:[e.jsx(re,{asChild:!0,children:e.jsxs(d,{className:"rounded-sharp border-y-0 bg-white",size:"md",emphasis:"subtle",intent:"secondary",children:[e.jsx(_,{className:"h-5 w-5 shrink-0 gap-1 fill-neutral-400"}),"Delete"]})}),e.jsx(R,{deleteHandler:n})]})]})}function as({fixedQueryParams:t,displayCreateComponent:s=!0}){const a=Ee(),{rowSelection:n,setRowSelection:r,selectedRowCount:o}=b(),l=F({...T.componentList({...a,...t,sort_by:"desc:updated"}),throwOnError:!0}),c=Fe();if(l.isError)return null;const{data:i,refetch:z}=l;return e.jsx("section",{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("div",{className:"flex items-center gap-2",children:o>=1?e.jsx(Re,{}):e.jsx(v,{searchParams:a})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(d,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>z(),children:[e.jsx(g,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),s&&e.jsx(d,{size:"md",asChild:!0,children:e.jsxs(j,{to:h.components.create,children:[e.jsx(B,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Component"})]})})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:i?e.jsx(N,{getRowId:L=>L.id,rowSelection:n,onRowSelectionChange:r,columns:c,data:i.items}):e.jsx(m,{className:"h-[500px] w-full"})}),i?i.total_pages>1&&e.jsx(y,{searchParams:a,paginate:i}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}export{ts as C,as as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as c,j as e}from"./@radix-B1sy0Lhr.js";import{S as I}from"./plus-DOrkJCmy.js";import{S as z}from"./refresh-C8BXS3Fb.js";import{P as O}from"./Pagination-C1sE5Nzn.js";import{S as R}from"./SearchField-Byv1PtST.js";import{s as g}from"./index-BYHxFvoG.js";import{z as h,aJ as F,aK as _,D as L,aH as U,aI as M,B as x,bv as B,h as H,i as q,j as $,d as p,A as D,f as A,X as j,k as Q,s as G,r as f,aa as K,F as W,G as J,H as X,v as Y,w as V,az as Z,aB as ee,aC as se,aE as te,L as S,M as ae,N as ne,O as re,aS as ie,a2 as ce,Y as le}from"./index-CO6UN3UX.js";import{b as w,c as oe,h as de}from"./@tanstack-Dwlisomv.js";import{f as me,L as N,c as xe}from"./@react-router-CHjLNlgw.js";import{D as ue}from"./DisplayDate-57lUNS79.js";import{C as v}from"./CodeSnippet-B7Wd4R8u.js";import{C as he}from"./CollapsibleCard-DSZzbjx5.js";import{S as pe}from"./SheetHeader-Bb3v9rha.js";import{e as k}from"./components-Br2ezRib.js";import{N as C}from"./NumberBox-C2Pju4PR.js";import{C as je}from"./ComponentBadge-MVT08kBV.js";import{I as fe}from"./Infobox-DnduZjNU.js";import{S as ge}from"./trash-D9LA4VFD.js";import{D as ye}from"./DialogItem-DD_7v3UY.js";import{A as Ne}from"./AlertDialogDropdownItem-BpLj419i.js";const y=1,ve=h.object({page:h.coerce.number().min(y).optional().default(y).catch(y),name:h.string().optional(),operator:h.enum(["and","or"]).optional()});function we(){const[t]=me(),{page:s,name:a,operator:n}=ve.parse({page:t.get("page")||void 0,name:t.get("name")||void 0});return{page:s,name:a,logical_operator:n}}const T=c.createContext(null);function be({children:t}){const[s,a]=c.useState([]);return e.jsx(T.Provider,{value:{integrations:s,setIntegrations:a},children:t})}function E(){const t=c.useContext(T);if(t===null)throw new Error("useIntegrationsContext must be used within an AuthProvider");return t}const b=c.forwardRef(({closeModal:t,name:s,...a},n)=>e.jsxs(F,{...a,ref:n,children:[e.jsx(_,{children:e.jsx(L,{children:"Update Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(Se,{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(v,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${s} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));b.displayName="UpdateStackDialog";function Se({action:t}){function s(){switch(t){case"delete":return"delete";case"update":return"update";case"describe":return"get details of"}}return e.jsx(fe,{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 ",s()," your stack."]})]})})})}function ke({name:t}){const[s,a]=c.useState(!1);return e.jsxs(U,{open:s,onOpenChange:a,children:[e.jsx(M,{asChild:!0,children:e.jsx(x,{type:"button",size:"sm",intent:"primary",emphasis:"subtle",children:e.jsx(B,{})})}),e.jsx(b,{name:t,className:"lg:min-w-[600px]"})]})}function Ce({children:t,stackId:s,stackName:a}){return e.jsxs(H,{children:[e.jsx(q,{children:t}),e.jsx($,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(be,{children:[e.jsx(pe,{}),e.jsx(De,{stackId:s}),e.jsx(Ee,{name:a}),e.jsx(Ae,{stackId:s})]})})]})}function De({stackId:t}){const s=w({...g.stackDetail(t)});return s.isError?null:s.isPending?e.jsx("div",{className:"p-5",children:e.jsx(p,{className:"h-6 w-full"})}):e.jsxs("div",{className:"flex items-center justify-between border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(D,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:s.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:s.data.id}),e.jsx(j,{copyText:s.data.id})]}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-display-xs font-semibold",children:s.data.name})})]})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(ke,{name:s.data.name})})]})}function Ae({stackId:t}){var r;const{setIntegrations:s}=E(),a=w({...g.stackDetail(t)});if(c.useEffect(()=>{var d;if(!a.data)return;const l=k((d=a.data.metadata)==null?void 0:d.components).map(o=>{var m;return(m=o.body)==null?void 0:m.integration}).filter(o=>!!o&&o!=="built-in"&&o!=="custom");l.length>=1&&s(o=>Array.from(new Set([...o,...l])))},[a.data]),a.isError)return null;if(a.isPending)return e.jsx("div",{className:"p-5",children:e.jsx(p,{className:"h-[300px] w-full"})});const n=k((r=a.data.metadata)==null?void 0:r.components);return e.jsx("ul",{className:"space-y-5 p-5",children:n.map(i=>e.jsx("li",{children:e.jsx(Te,{component:i})},i.id))})}function Te({component:t}){var s,a,n,r;return e.jsxs(Q,{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:`${(s=t.body)==null?void 0:s.flavor_name} logo`,src:G(((a=t.body)==null?void 0:a.logo_url)||"")}),e.jsxs("div",{children:[e.jsx(N,{to:f.components.detail(t.id),className:"text-text-xl",children:t.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:t.id.split("-")[0]}),e.jsx(j,{copyText:t.id})]})]})]}),e.jsx(N,{to:f.components.overview,children:e.jsx(je,{type:((n=t.body)==null?void 0:n.type)||"orchestrator",children:K(((r=t.body)==null?void 0:r.type)||"")})})]})}function Ee({name:t}){const{integrations:s}=E();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"}),initialOpen:!0,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(C,{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(v,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack set ${t}`})]})]}),s.length>=1&&e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{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(v,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${s.join(" ")}`})]})]})]})})})}async function Pe({stackId:t},s){const a=W(X.stacks.detail(t)),n=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!n.ok){const r=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>`Error while deleting stack ${t}`);throw new J({status:n.status,statusText:n.statusText,message:r})}return n.json()}function Ie(t){return oe({...t,mutationFn:async({stackId:s})=>Pe({stackId:s})})}function ze(t){const{toast:s}=Y(),a=de(),n=xe(),r=Ie({onSuccess:async()=>{a.invalidateQueries({queryKey:g.all}),n(f.stacks.overview)},onError:l=>{s({status:"error",emphasis:"subtle",icon:e.jsx(V,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:l.message,rounded:!0})}});function i(){r.mutate({stackId:t})}return{handleDelete:i,deleteStack:r}}const P=c.forwardRef(({closeModal:t,name:s,stackId:a,...n},r)=>{const{handleDelete:i,deleteStack:l}=ze(a);return e.jsxs(Z,{...n,className:"p-0",ref:r,children:[e.jsxs(ee,{className:"m-0 py-2 pl-5 pr-3 text-text-lg font-semibold",children:["Delete ",s]}),e.jsx("div",{className:"border-y border-theme-border-moderate px-5 py-5",children:e.jsxs(se,{children:["Are you sure you want to delete this stack? ",e.jsx("br",{}),"This action cannot be undone."]})}),e.jsxs("div",{className:"flex justify-end gap-3 px-5 py-3",children:[e.jsx(te,{onClick:()=>t==null?void 0:t(),asChild:!0,children:e.jsx(x,{intent:"secondary",children:"Cancel"})}),e.jsxs(x,{disabled:l.isPending,type:"button",onClick:()=>i(),intent:"danger",children:[l.isPending&&e.jsx("div",{role:"alert","aria-busy":"true",className:"full h-[20px] w-[20px] animate-spin rounded-rounded border-2 border-theme-text-negative border-b-theme-text-error"}),"Delete"]})]})]})});P.displayName="DeleteStackDialog";function Oe({name:t,id:s}){const[a,n]=c.useState(!1),[r,i]=c.useState(!1),l=c.useRef(null),d=c.useRef(null);function o(){d.current=l.current}function m(u){n(u),u===!1&&i(!1)}return e.jsx(S,{open:r,onOpenChange:i,children:e.jsxs(S,{children:[e.jsx(ae,{className:"z-10",ref:l,children:e.jsx(ne,{className:"h-5 w-5 fill-theme-text-secondary"})}),e.jsxs(re,{hidden:a,onCloseAutoFocus:u=>{d.current&&(d.current.focus(),d.current=null,u.preventDefault())},className:"z-10",align:"end",sideOffset:1,children:[e.jsx(ye,{onSelect:o,onOpenChange:m,icon:e.jsx(ie,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx(b,{name:t,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})}),e.jsx(Ne,{onSelect:o,onOpenChange:m,icon:e.jsx(ge,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Delete",children:e.jsx(P,{stackId:s,name:t,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})})]})]})})}function Re(){const t=[{id:"name",header:"Stack",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{name:a,id:n}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(D,{type:"square",size:"md",children:e.jsx(A,{size:"md",children:a[0]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ce,{stackName:a,stackId:n,children:e.jsx("h2",{className:"text-text-md font-semibold",children:a})}),e.jsx(j,{copyText:a})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:n.split("-")[0]}),e.jsx(j,{copyText:n})]})]})]})}},{id:"created",header:"Created at",accessorFn:s=>{var a;return(a=s.body)==null?void 0:a.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(ue,{dateString:s()})})},{id:"author",header:"Author",accessorFn:s=>{var a,n;return(n=(a=s.resources)==null?void 0:a.user)==null?void 0:n.name},cell:({row:s})=>{var n,r,i;const a=(n=s.original.resources)==null?void 0:n.user;return a?e.jsx(ce,{avatarUrl:((r=a.body)==null?void 0:r.avatar_url)??void 0,username:a.name,isServiceAccount:!!((i=a.body)!=null&&i.is_service_account)}):null}},{id:"actions",header:"",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{id:a,name:n}=s();return e.jsx(Oe,{name:n,id:a})}}];return c.useMemo(()=>t,[])}function ts({fixedQueryParams:t={}}){const s=we(),a=Re(),{refetch:n,data:r}=w({...g.stackList({...s,sort_by:"desc:updated",...t}),throwOnError:!0});return e.jsx("section",{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(R,{searchParams:s}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(x,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[e.jsx(z,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(x,{size:"md",asChild:!0,children:e.jsxs(N,{to:f.stacks.create.index,children:[e.jsx(I,{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:[e.jsx("div",{className:"w-full",children:r?e.jsx(le,{columns:a,data:r.items}):e.jsx(p,{className:"h-[500px] w-full"})}),r?r.total_pages>1&&e.jsx(O,{searchParams:s,paginate:r}):e.jsx(p,{className:"h-[36px] w-[300px]"})]})]})})}export{ts as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as S}from"./@radix-B1sy0Lhr.js";import{r as k,T as y,bk as T,d as w,C as P,o as _,p as D,q as E,s as I,a2 as L,z as N,ab as U,ac as A,ad as g,bl as O,b as R,ae as x}from"./index-CO6UN3UX.js";import{S as z}from"./terminal-C2tAF2XG.js";import{S as B}from"./chevron-down-Bl7WwQAL.js";import{S as F}from"./transform-S7omcvTm.js";import{L as K,f as M,c as V}from"./@react-router-CHjLNlgw.js";import{D as C}from"./DisplayDate-57lUNS79.js";import{K as o,N as $}from"./NestedCollapsible-0yviIfaA.js";function q({connectorName:s,connectorId:a}){return e.jsx(K,{to:k.settings.connectors.detail.configuration(a),children:e.jsxs(y,{color:"yellow",rounded:!1,className:"w-fit gap-0.5",emphasis:"subtle",children:[e.jsx(F,{width:20,height:20,className:"shrink-0 fill-warning-900"}),e.jsx("span",{children:s})]})})}function H({componentId:s}){return e.jsxs("section",{className:"grid grid-cols-1 gap-5 @5xl:grid-cols-2",children:[e.jsx("div",{children:e.jsx(Q,{componentId:s})}),e.jsx("div",{children:e.jsx(G,{componentId:s})})]})}function Q({componentId:s}){var c,m,p,f,h,b,j,v;const[a,r]=S.useState(!0),l=T(s);if(l.isError)return null;if(l.isPending)return e.jsx(w,{className:"h-[150px] w-full"});const t=l.data,n=(c=t.resources)==null?void 0:c.user,d=(m=t.body)==null?void 0:m.created,u=(p=t.body)==null?void 0:p.updated,i=(f=t.metadata)==null?void 0:f.connector;return e.jsxs(P,{open:a,onOpenChange:r,children:[e.jsx(_,{className:"flex items-center gap-[10px]",children:e.jsxs(D,{className:"flex w-full items-center",children:[e.jsx(B,{className:` ${a?"":"-rotate-90"} mr-2 h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Basic Parameters"]})}),e.jsx(E,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:e.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[e.jsx(o,{label:"Component Name",value:t.name}),e.jsx(o,{label:"Flavor",value:e.jsxs(y,{rounded:!1,className:"w-fit gap-0.5 text-theme-text-primary",color:"grey",emphasis:"minimal",children:[e.jsx("img",{width:20,height:20,src:I(((h=t.body)==null?void 0:h.logo_url)||""),alt:"Flavor Icon of Component"}),e.jsx("p",{className:"truncate",children:(b=t.body)==null?void 0:b.flavor_name})]})}),e.jsx(o,{label:"Author",value:n?e.jsx(L,{avatarUrl:((j=n.body)==null?void 0:j.avatar_url)??void 0,username:n.name,isServiceAccount:!!((v=n.body)!=null&&v.is_service_account)}):"Not available"}),e.jsx(o,{label:"Service Connector",value:i?e.jsx(q,{connectorName:i.name,connectorId:i.id}):"Not available"}),e.jsx(o,{label:"Updated",value:u?e.jsx(C,{dateString:u}):"Not available"}),e.jsx(o,{label:"Created",value:d?e.jsx(C,{dateString:d}):"Not available"})]})})]})}function G({componentId:s}){var r;const a=T(s);return a.isError?null:a.isPending?e.jsx(w,{className:"h-[150px] w-full"}):e.jsx($,{isInitialOpen:!0,intent:"primary",title:"Configuration",data:(r=a.data.metadata)==null?void 0:r.configuration})}const J=N.object({tab:N.enum(["configuration","stacks","runs"]).optional().default("configuration").catch("configuration")});function W(){const[s]=M(),{tab:a}=J.parse({tab:s.get("tab")||void 0});return a}function ne({componentId:s,isPanel:a,stacksTabContent:r,runsTabContent:l}){const[t,n]=S.useState("configuration"),d=W(),u=V();function i(c){if(a){n(c);return}const m=new URLSearchParams;m.set("tab",c),u(`?${m.toString()}`)}return e.jsx("div",{className:"p-5",children:e.jsxs(U,{value:a?t:d,onValueChange:i,children:[e.jsxs(A,{children:[e.jsxs(g,{className:"flex items-center gap-2 text-text-md",value:"configuration",children:[e.jsx(O,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Configuration"})]}),e.jsxs(g,{className:"flex items-center gap-2 text-text-md",value:"stacks",children:[e.jsx(R,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Stacks"})]}),e.jsxs(g,{className:"flex items-center gap-2 text-text-md",value:"runs",children:[e.jsx(z,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Runs"})]})]}),e.jsx(x,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:e.jsx(H,{componentId:s})}),e.jsx(x,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"stacks",children:r}),e.jsx(x,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"runs",children:l})]})})}export{ne as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as s}from"./@radix-B1sy0Lhr.js";import{bo as c,c as i}from"./index-CO6UN3UX.js";import{S as e}from"./check-C9Nye5lR.js";function n({tickClasses:r,...o}){return s.jsx(c,{...o,children:s.jsx(e,{className:i("h-4 w-4 fill-success-300",r)})})}export{n as T};
|
@@ -1 +1 @@
|
|
1
|
-
import{z as s}from"./index-
|
1
|
+
import{z as s}from"./index-CO6UN3UX.js";const e=s.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[!@#$%^&*(),.?":{}|<>\/]/,"Password must contain at least one special character"),o=s.object({oldPassword:s.string().optional(),newPassword:e,confirmPassword:s.string().min(1)}),t=o.refine(a=>a.newPassword===a.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"});export{o as a,t as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as r}from"./@radix-
|
1
|
+
import{j as r}from"./@radix-B1sy0Lhr.js";import{k as a,c as o}from"./index-CO6UN3UX.js";function m({children:e}){return r.jsx(a,{className:"w-full",children:e})}function i({children:e,className:s,...t}){return r.jsx("div",{className:o("border-b border-theme-border-moderate px-5 py-3 text-display-xs font-semibold",s),...t,children:e})}function p({children:e,className:s,...t}){return r.jsx("div",{...t,className:o("p-5",s),children:e})}function x({children:e}){return r.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-theme-border-moderate p-5",children:e})}export{p as B,x as F,i as H,m as W};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as r}from"./@radix-B1sy0Lhr.js";import{F as s}from"./Wizard-2FIi8JNY.js";import{a}from"./ProviderRadio-C6pLVNxC.js";function n({children:o,displayCancel:t=!0}){return r.jsxs(s,{children:[t&&r.jsx(a,{}),o]})}export{n as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{
|
1
|
+
import{F as n,H as r,Z as a,x as u,_ as o,G as i}from"./index-CO6UN3UX.js";import{b as c}from"./@tanstack-Dwlisomv.js";function l({params:e}){return["runs",e]}async function p({params:e}){const s=n(r.runs.all+"?"+a(e)),t=await u(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&o(),!t.ok)throw new i({message:"Error while fetching pipeline runs",status:t.status,statusText:t.statusText});return t.json()}function y(e,s){return c({queryKey:l(e),queryFn:()=>p(e),...s})}export{y as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-B1sy0Lhr.js";const r=t=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L7.41421 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H7.41421L12.7071 18.2929C13.0976 18.6834 13.0976 19.3166 12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071L4.29289 12.7071C3.90237 12.3166 3.90237 11.6834 4.29289 11.2929L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z"}));export{r as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as C}from"./@radix-
|
1
|
+
import{r as C}from"./@radix-B1sy0Lhr.js";const t=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H12C11.4477 4 11 3.55229 11 3C11 2.44772 11.4477 2 12 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.71569 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55228 12 9 12.4477 9 13V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 3.29289C9.09763 3.68342 9.09763 4.31658 8.70711 4.70711L4.70711 8.70711C4.31658 9.09763 3.68342 9.09763 3.29289 8.70711L1.29289 6.70711C0.902369 6.31658 0.902369 5.68342 1.29289 5.29289C1.68342 4.90237 2.31658 4.90237 2.70711 5.29289L4 6.58579L7.29289 3.29289C7.68342 2.90237 8.31658 2.90237 8.70711 3.29289Z"}));export{t as S};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import{r as m,c as x,j as a}from"./@radix-
|
1
|
+
import{r as m,c as x,j as a}from"./@radix-B1sy0Lhr.js";import{h}from"./@tanstack-Dwlisomv.js";import{v as j}from"./index-CO6UN3UX.js";function g(){const t=m.createContext(null);function s(){const r=x.useContext(t);if(!r)throw new Error("DataTableConsumerContext must be used within its Provider");return r}function i({children:r}){const[n,d]=m.useState({}),o=C(n),c=o.length;return a.jsx(t.Provider,{value:{rowSelection:n,setRowSelection:d,selectedRowIDs:o,selectedRowCount:c},children:r})}return{Context:t,ContextProvider:i,useContext:s}}function C(t){return Object.entries(t).filter(([s,i])=>i).map(([s])=>s)}function v({deleteFn:t,queryKeyToInvalidate:s,setRowSelection:i}){const r=h(),{toast:n}=j();async function d(o){if(o.length)try{const l=(await Promise.allSettled(o.map(e=>t(e)))).map((e,u)=>({id:o[u],status:e.status,error:e.status==="rejected"?e.reason:null})).filter(e=>e.status==="rejected"),p=Object.fromEntries(l.map(e=>[e.id,!0]));if(i(p),l.length===0)n({description:"All items deleted successfully.",status:"success",emphasis:"subtle",rounded:!0});else{const e=l.length;console.error(`Failed to delete items:
|
2
2
|
`,l.map(({id:u,error:f})=>`${u}: ${f}`).join(`
|
3
|
-
`)),n({status:"error",emphasis:"subtle",description:a.jsxs("p",{children:["Failed to delete ",e," item",e>1?"s":"",":",l.map(({id:u})=>a.jsxs(a.Fragment,{children:[a.jsx("br",{}),a.jsx("span",{children:u})]},u))]}),rounded:!0})}await r.invalidateQueries({queryKey:s})}catch(c){console.error("Bulk delete operation failed:",c),n({status:"error",emphasis:"subtle",description:"Bulk delete operation failed unexpectedly",rounded:!0})}}return{bulkDelete:d}}export{g as c,
|
3
|
+
`)),n({status:"error",emphasis:"subtle",description:a.jsxs("p",{children:["Failed to delete ",e," item",e>1?"s":"",":",l.map(({id:u})=>a.jsxs(a.Fragment,{children:[a.jsx("br",{}),a.jsx("span",{children:u})]},u))]}),rounded:!0})}await r.invalidateQueries({queryKey:s})}catch(c){console.error("Bulk delete operation failed:",c),n({status:"error",emphasis:"subtle",description:"Bulk delete operation failed unexpectedly",rounded:!0})}}return{bulkDelete:d}}export{g as c,v as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-B1sy0Lhr.js";const o=t=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z"}));export{o as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-B1sy0Lhr.js";const t=C=>e.createElement("svg",{viewBox:"0 0 33 33",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 4.4834C9.87258 4.4834 4.49999 9.85598 4.49999 16.4834C4.49999 23.1108 9.87258 28.4834 16.5 28.4834C23.1274 28.4834 28.5 23.1108 28.5 16.4834C28.5 9.85598 23.1274 4.4834 16.5 4.4834ZM1.83333 16.4834C1.83333 8.38322 8.39982 1.81673 16.5 1.81673C24.6002 1.81673 31.1667 8.38322 31.1667 16.4834C31.1667 24.5836 24.6002 31.1501 16.5 31.1501C8.39982 31.1501 1.83333 24.5836 1.83333 16.4834ZM23.4428 11.5406C23.9635 12.0613 23.9635 12.9055 23.4428 13.4262L15.4428 21.4262C14.9221 21.9469 14.0779 21.9469 13.5572 21.4262L9.55719 17.4262C9.03649 16.9055 9.03649 16.0613 9.55719 15.5406C10.0779 15.0199 10.9221 15.0199 11.4428 15.5406L14.5 18.5978L21.5572 11.5406C22.0779 11.0199 22.9221 11.0199 23.4428 11.5406Z"}));export{t as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-B1sy0Lhr.js";const o=t=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z"}));export{o as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-B1sy0Lhr.js";const l=t=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("g",{id:"chevron-right-double"},e.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 6.29289C5.68342 5.90237 6.31658 5.90237 6.70711 6.29289L11.7071 11.2929C12.0976 11.6834 12.0976 12.3166 11.7071 12.7071L6.70711 17.7071C6.31658 18.0976 5.68342 18.0976 5.29289 17.7071C4.90237 17.3166 4.90237 16.6834 5.29289 16.2929L9.58579 12L5.29289 7.70711C4.90237 7.31658 4.90237 6.68342 5.29289 6.29289ZM12.2929 6.29289C12.6834 5.90237 13.3166 5.90237 13.7071 6.29289L18.7071 11.2929C19.0976 11.6834 19.0976 12.3166 18.7071 12.7071L13.7071 17.7071C13.3166 18.0976 12.6834 18.0976 12.2929 17.7071C11.9024 17.3166 11.9024 16.6834 12.2929 16.2929L16.5858 12L12.2929 7.70711C11.9024 7.31658 11.9024 6.68342 12.2929 6.29289Z"})));export{l as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-B1sy0Lhr.js";const t=C=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 5C12.5523 5 13 5.44772 13 6V11.382L16.4472 13.1056C16.9412 13.3526 17.1414 13.9532 16.8944 14.4472C16.6474 14.9412 16.0468 15.1414 15.5528 14.8944L11.5528 12.8944C11.214 12.725 11 12.3788 11 12V6C11 5.44772 11.4477 5 12 5Z"}));export{t as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as C}from"./@radix-
|
1
|
+
import{r as C}from"./@radix-B1sy0Lhr.js";const r=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75871 2L17.2413 2C18.0463 1.99999 18.7106 1.99998 19.2518 2.0442C19.8139 2.09012 20.3306 2.18869 20.816 2.43598C21.5686 2.81947 22.1805 3.43139 22.564 4.18404C22.8113 4.66938 22.9099 5.18608 22.9558 5.74818C23 6.28937 23 6.95372 23 7.75868V16.2413C23 17.0463 23 17.7106 22.9558 18.2518C22.9099 18.8139 22.8113 19.3306 22.564 19.816C22.1805 20.5686 21.5686 21.1805 20.816 21.564C20.3306 21.8113 19.8139 21.9099 19.2518 21.9558C18.7106 22 18.0463 22 17.2413 22H6.75877C5.95377 22 5.28939 22 4.74817 21.9558C4.18608 21.9099 3.66937 21.8113 3.18404 21.564C2.43139 21.1805 1.81947 20.5686 1.43597 19.816C1.18868 19.3306 1.09012 18.8139 1.04419 18.2518C0.999977 17.7106 0.999988 17.0463 1 16.2413L1 9.00066C1 9.00088 1 9.00044 1 9.00066C1 9.00044 1 8.99956 1 8.99934L1 7.7587C0.999988 6.95373 0.999977 6.28937 1.04419 5.74818C1.09012 5.18608 1.18868 4.66937 1.43598 4.18404C1.81947 3.43139 2.43139 2.81947 3.18404 2.43597C3.66938 2.18868 4.18608 2.09012 4.74818 2.04419C5.28937 1.99998 5.95374 1.99999 6.75871 2ZM3 10V16.2C3 17.0566 3.00078 17.6389 3.03755 18.089C3.07337 18.5274 3.1383 18.7516 3.21799 18.908C3.40973 19.2843 3.7157 19.5903 4.09202 19.782C4.24842 19.8617 4.47262 19.9266 4.91104 19.9624C5.36113 19.9992 5.94342 20 6.8 20H17.2C18.0566 20 18.6389 19.9992 19.089 19.9625C19.5274 19.9266 19.7516 19.8617 19.908 19.782C20.2843 19.5903 20.5903 19.2843 20.782 18.908C20.8617 18.7516 20.9266 18.5274 20.9625 18.089C20.9992 17.6389 21 17.0566 21 16.2V10H3ZM21 8H3V7.8C3 6.94342 3.00078 6.36113 3.03755 5.91104C3.07337 5.47262 3.1383 5.24842 3.21799 5.09202C3.40974 4.7157 3.7157 4.40973 4.09202 4.21799C4.24842 4.1383 4.47262 4.07337 4.91104 4.03755C5.36113 4.00078 5.94342 4 6.8 4L17.2 4C18.0566 4 18.6389 4.00078 19.089 4.03755C19.5274 4.07337 19.7516 4.1383 19.908 4.21799C20.2843 4.40974 20.5903 4.7157 20.782 5.09202C20.8617 5.24842 20.9266 5.47262 20.9625 5.91104C20.9992 6.36113 21 6.94342 21 7.8V8ZM10.7071 11.7929C11.0976 12.1834 11.0976 12.8166 10.7071 13.2071L8.91422 15L10.7071 16.7929C11.0976 17.1834 11.0976 17.8166 10.7071 18.2071C10.3166 18.5976 9.68342 18.5976 9.2929 18.2071L6.7929 15.7071C6.40237 15.3166 6.40237 14.6834 6.7929 14.2929L9.2929 11.7929C9.68342 11.4024 10.3166 11.4024 10.7071 11.7929ZM13.2929 11.7929C13.6834 11.4024 14.3166 11.4024 14.7071 11.7929L17.2071 14.2929C17.5976 14.6834 17.5976 15.3166 17.2071 15.7071L14.7071 18.2071C14.3166 18.5976 13.6834 18.5976 13.2929 18.2071C12.9024 17.8166 12.9024 17.1834 13.2929 16.7929L15.0858 15L13.2929 13.2071C12.9024 12.8166 12.9024 12.1834 13.2929 11.7929Z"}));export{r as S};
|