zenml-nightly 0.83.1.dev20250711__py3-none-any.whl → 0.84.0.dev20250712__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/constants.py +1 -0
- zenml/enums.py +9 -0
- zenml/models/v2/core/logs.py +2 -1
- zenml/zen_server/dashboard/assets/{404-B5eko6XL.js → 404-B5cfnwZ1.js} +1 -1
- zenml/zen_server/dashboard/assets/{@radix-Cdvw4jJ8.js → @radix-C_LirfyT.js} +1 -1
- zenml/zen_server/dashboard/assets/{@react-router-DeDfXbUF.js → @react-router-BSsrkPOd.js} +1 -1
- zenml/zen_server/dashboard/assets/{@reactflow-B_iCtR7X.js → @reactflow-D9hglKLF.js} +2 -2
- zenml/zen_server/dashboard/assets/{@tanstack-5gTMR7G2.js → @tanstack-C0SeHZng.js} +1 -1
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-druRNuO2.js +1 -0
- zenml/zen_server/dashboard/assets/ButtonGroup-SF2DlzHV.js +1 -0
- zenml/zen_server/dashboard/assets/{CodeSnippet-Ctplhzdc.js → CodeSnippet-D8iBqOVv.js} +1 -1
- zenml/zen_server/dashboard/assets/CollapsibleCard-D0-pQi1n.js +1 -0
- zenml/zen_server/dashboard/assets/{ComponentBadge-Cnecw3qz.js → ComponentBadge-mw2Ja_ON.js} +1 -1
- zenml/zen_server/dashboard/assets/ComponentIcon-BXgpt-jw.js +1 -0
- zenml/zen_server/dashboard/assets/{DeleteAlertDialog-DEI0YDzP.js → DeleteAlertDialog-BbyFVnVI.js} +1 -1
- zenml/zen_server/dashboard/assets/DialogItem-DeME0oSt.js +1 -0
- zenml/zen_server/dashboard/assets/{DisplayDate-8RESqe5H.js → DisplayDate-v3KW7oez.js} +1 -1
- zenml/zen_server/dashboard/assets/{EmptyState-CjrgDtVk.js → EmptyState-DG0m-CGv.js} +1 -1
- zenml/zen_server/dashboard/assets/Error-DcVLcrLs.js +1 -0
- zenml/zen_server/dashboard/assets/ExecutionStatus-C4tlFnlh.js +1 -0
- zenml/zen_server/dashboard/assets/{Helpbox-DtUG2Bf_.js → Helpbox-C-RGHz3S.js} +1 -1
- zenml/zen_server/dashboard/assets/{Infobox-CSBRrM6r.js → Infobox-DFCWPbMb.js} +1 -1
- zenml/zen_server/dashboard/assets/{LeftSideMenu-DPsCCK3z.js → LeftSideMenu-Czev0KCA.js} +1 -1
- zenml/zen_server/dashboard/assets/{Lock-CrIAdQo6.js → Lock-CRP5J_su.js} +1 -1
- zenml/zen_server/dashboard/assets/NestedCollapsible-CN9scBUn.js +1 -0
- zenml/zen_server/dashboard/assets/{NumberBox-DtCv7jh3.js → NumberBox-CoQjQYDJ.js} +1 -1
- zenml/zen_server/dashboard/assets/{Pagination-CWnEpSpN.js → Pagination-CcDD5yHh.js} +1 -1
- zenml/zen_server/dashboard/assets/Partials-DlMzfKgs.js +1 -0
- zenml/zen_server/dashboard/assets/{PasswordChecker-B88WjuCe.js → PasswordChecker-BZwoeQIm.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProCta-CNyp04C8.js → ProCta-CU2ycJDo.js} +1 -1
- zenml/zen_server/dashboard/assets/ProviderIcon-BMAn9Jld.js +1 -0
- zenml/zen_server/dashboard/assets/ProviderRadio-D_q9tE3G.js +1 -0
- zenml/zen_server/dashboard/assets/RunsBody-BToytB8e.js +1 -0
- zenml/zen_server/dashboard/assets/{SearchField-BtUi6cYl.js → SearchField-D_0-uAPj.js} +1 -1
- zenml/zen_server/dashboard/assets/SecretTooltip-BcWMKb9f.js +1 -0
- zenml/zen_server/dashboard/assets/{SetPassword-BmbgL_ed.js → SetPassword-CaKVSqAL.js} +1 -1
- zenml/zen_server/dashboard/assets/{SheetHeader-DkH7aG9K.js → SheetHeader-7vwlsY_i.js} +1 -1
- zenml/zen_server/dashboard/assets/StackComponentList-s7eSfm8o.js +1 -0
- zenml/zen_server/dashboard/assets/StackList-Dt0FrIkM.js +1 -0
- zenml/zen_server/dashboard/assets/Tabs-B27AHUfo.js +1 -0
- zenml/zen_server/dashboard/assets/Tick-DDeDgTuT.js +1 -0
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-D_DCETSO.js → UpdatePasswordSchemas-Da5RndbV.js} +1 -1
- zenml/zen_server/dashboard/assets/{Wizard-BHvY75u_.js → Wizard-8aJzxUjb.js} +1 -1
- zenml/zen_server/dashboard/assets/WizardFooter-Bt7_UE14.js +1 -0
- zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-DpKw9WL9.js → all-pipeline-runs-query-gorNNEaT.js} +1 -1
- zenml/zen_server/dashboard/assets/{arrow-left-MRXv5pAH.js → arrow-left-hcj2H8HY.js} +1 -1
- zenml/zen_server/dashboard/assets/bar-chart-square-check-9siI9icm.js +1 -0
- zenml/zen_server/dashboard/assets/{bulk-delete-CzYA--cC.js → bulk-delete-B5RTlnD_.js} +1 -1
- zenml/zen_server/dashboard/assets/{check-B9QMTa3f.js → check-D1bHMJkL.js} +1 -1
- zenml/zen_server/dashboard/assets/{check-circle-C4tYvbtw.js → check-circle-mnEgPhPF.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-down-jbbQh82s.js → chevron-down-Z3nUe-0U.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-right-double-Dgp_gEsp.js → chevron-right-double-CbRQKN4Q.js} +1 -1
- zenml/zen_server/dashboard/assets/{clock-B_mTG8PH.js → clock-BMjHXT3f.js} +1 -1
- zenml/zen_server/dashboard/assets/{code-browser-CiD8qkBx.js → code-browser-DftoiCIg.js} +1 -1
- zenml/zen_server/dashboard/assets/configuration-form-Yz8m0QIG.js +1 -0
- zenml/zen_server/dashboard/assets/constants-DeV48DuZ.js +1 -0
- zenml/zen_server/dashboard/assets/{create-stack-BpZrmKDu.js → create-stack-BruqH_6X.js} +1 -1
- zenml/zen_server/dashboard/assets/credit-card-CH1BHrXY.js +1 -0
- zenml/zen_server/dashboard/assets/dataflow-2-qHjWt7zp.js +1 -0
- zenml/zen_server/dashboard/assets/{delete-run-BkyDsKQc.js → delete-run-ibBtciMR.js} +1 -1
- zenml/zen_server/dashboard/assets/{expand-full-BPiXpch2.js → expand-full-CD4fFvM-.js} +1 -1
- zenml/zen_server/dashboard/assets/{eye-CbVlAYty.js → eye-CLNgIh_K.js} +1 -1
- zenml/zen_server/dashboard/assets/{file-text-Cd8wVfq5.js → file-text-CltVhgwZ.js} +1 -1
- zenml/zen_server/dashboard/assets/form-6aSt3tIl.js +1 -0
- zenml/zen_server/dashboard/assets/form-schemas-B9XgTS1V.js +1 -0
- zenml/zen_server/dashboard/assets/gradient_bg-BH8t8fi6.webp +0 -0
- zenml/zen_server/dashboard/assets/{help-Co6aedki.js → help-B0CvBhCm.js} +1 -1
- zenml/zen_server/dashboard/assets/icon-hDriJUXY.js +1 -0
- zenml/zen_server/dashboard/assets/{index-eoDB_1XX.js → index-B7CRNU8l.js} +1 -1
- zenml/zen_server/dashboard/assets/index-BQWlHo1Y.js +1 -0
- zenml/zen_server/dashboard/assets/{index-DWpiv-Ft.js → index-BRhKF2z-.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-BgEfQ3_G.js → index-BacoJBEQ.js} +11 -11
- zenml/zen_server/dashboard/assets/{index-BBt0LDtR.js → index-dCcVgFNl.js} +1 -1
- zenml/zen_server/dashboard/assets/index-eggipFZS.css +1 -0
- zenml/zen_server/dashboard/assets/index-mA8kL088.js +14 -0
- zenml/zen_server/dashboard/assets/{index.es-C1gfATPn.js → index.es-DcVFDpJU.js} +1 -1
- zenml/zen_server/dashboard/assets/{index.esm-DhJo3mA6.js → index.esm-COnaHLSh.js} +1 -1
- zenml/zen_server/dashboard/assets/{info-QkbQz4QU.js → info-CyMih3vQ.js} +1 -1
- zenml/zen_server/dashboard/assets/{key-icon-C07HKw8z.js → key-icon-HOx2gazv.js} +1 -1
- zenml/zen_server/dashboard/assets/{layout-DBbfEFBe.js → layout-C5dgIReC.js} +1 -1
- zenml/zen_server/dashboard/assets/layout-CFLL6-CM.js +1 -0
- zenml/zen_server/dashboard/assets/{login-mutation-C1hvP_cX.js → login-mutation-CidpsqyH.js} +1 -1
- zenml/zen_server/dashboard/assets/{logs-CQKlJjo0.js → logs-DoLoTEfj.js} +1 -1
- zenml/zen_server/dashboard/assets/mail-C160gvB0.js +1 -0
- zenml/zen_server/dashboard/assets/message-chat-square-DLz6XmPS.js +1 -0
- zenml/zen_server/dashboard/assets/{package-miExReQl.js → package-BhYXGPxF.js} +1 -1
- zenml/zen_server/dashboard/assets/page-6huxSHEu.js +1 -0
- zenml/zen_server/dashboard/assets/page-7CJ4Wq3O.js +1 -0
- zenml/zen_server/dashboard/assets/page-8U20Tu_8.js +1 -0
- zenml/zen_server/dashboard/assets/{page-4zc4xPv2.js → page-BByayrO-.js} +2 -2
- zenml/zen_server/dashboard/assets/page-BCRXJXC9.js +1 -0
- zenml/zen_server/dashboard/assets/page-BK59rZvf.js +1 -0
- zenml/zen_server/dashboard/assets/page-BMpXak4U.js +1 -0
- zenml/zen_server/dashboard/assets/page-BTDi81N3.js +1 -0
- zenml/zen_server/dashboard/assets/{page-D-tJ_Y0a.js → page-BX67x4iL.js} +1 -1
- zenml/zen_server/dashboard/assets/page-Bjmcdg64.js +1 -0
- zenml/zen_server/dashboard/assets/page-BsAn8p4m.js +1 -0
- zenml/zen_server/dashboard/assets/{page-C2i-C7jv.js → page-BwjPRuaY.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CDtSVkNc.js +1 -0
- zenml/zen_server/dashboard/assets/page-CEDU0L2T.js +1 -0
- zenml/zen_server/dashboard/assets/page-COJK90rG.js +1 -0
- zenml/zen_server/dashboard/assets/page-CY0LPcAJ.js +1 -0
- zenml/zen_server/dashboard/assets/page-C_XMn4GU.js +1 -0
- zenml/zen_server/dashboard/assets/page-Cb3KGsPK.js +22 -0
- zenml/zen_server/dashboard/assets/page-Cc8owYXQ.js +1 -0
- zenml/zen_server/dashboard/assets/{page-C3JfJxuR.js → page-CeGBDh1Q.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CiGOVsj3.js +1 -0
- zenml/zen_server/dashboard/assets/page-CmLSFMkW.js +1 -0
- zenml/zen_server/dashboard/assets/page-CnfCptXq.js +1 -0
- zenml/zen_server/dashboard/assets/page-CvllZMBF.js +1 -0
- zenml/zen_server/dashboard/assets/page-CxzglV3-.js +1 -0
- zenml/zen_server/dashboard/assets/{page-rVhXI5ZO.js → page-D6cvOG8w.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BxeZrG_t.js → page-DDWW21kl.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DiHZK-1w.js → page-DF4FVxxW.js} +2 -2
- zenml/zen_server/dashboard/assets/page-DSZfclXt.js +1 -0
- zenml/zen_server/dashboard/assets/page-DVLez4R1.js +1 -0
- zenml/zen_server/dashboard/assets/page-DcXrWWWh.js +1 -0
- zenml/zen_server/dashboard/assets/page-Dg7-H_9i.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BPQ66vR-.js → page-DgldL5UB.js} +2 -2
- zenml/zen_server/dashboard/assets/page-Dw7XuiSo.js +18 -0
- zenml/zen_server/dashboard/assets/{page-DOCOmmKn.js → page-FQxi1Otg.js} +1 -1
- zenml/zen_server/dashboard/assets/page-XrmOHHg7.js +1 -0
- zenml/zen_server/dashboard/assets/page-YdWnx9MX.js +1 -0
- zenml/zen_server/dashboard/assets/page-oRm7D4TC.js +1 -0
- zenml/zen_server/dashboard/assets/{page-uxjMX8Iq.js → page-q41JNDWO.js} +1 -1
- zenml/zen_server/dashboard/assets/page-x2GXC8sI.js +1 -0
- zenml/zen_server/dashboard/assets/page-z2FXP4GY.js +1 -0
- zenml/zen_server/dashboard/assets/{persist-CFPbMcJX.js → persist-BKKcL1Kp.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-BsdEtCkd.js → persist-DxiyfAax.js} +1 -1
- zenml/zen_server/dashboard/assets/{pipeline-CSUlkd50.js → pipeline-BJ8liDnl.js} +1 -1
- zenml/zen_server/dashboard/assets/{plus-Cl0_rCVF.js → plus-cI8zD2xh.js} +1 -1
- zenml/zen_server/dashboard/assets/primary-role-CPGHymjN.js +1 -0
- zenml/zen_server/dashboard/assets/{react-error-boundary.esm-7_MuhCay.js → react-error-boundary.esm-DoXxY4pT.js} +1 -1
- zenml/zen_server/dashboard/assets/{refresh-BcTM09NW.js → refresh-3EF2R7ja.js} +1 -1
- zenml/zen_server/dashboard/assets/{resource-tyes-list-79FqS3LY.js → resource-tyes-list-B5rkZcbc.js} +1 -1
- zenml/zen_server/dashboard/assets/resource-type-tooltip-E97WGqfk.js +1 -0
- zenml/zen_server/dashboard/assets/service-B9aVzfAF.js +2 -0
- zenml/zen_server/dashboard/assets/service-connectors-DL2-k_E2.js +1 -0
- zenml/zen_server/dashboard/assets/{sharedSchema-C_HkejsG.js → sharedSchema-DyUO09BR.js} +1 -1
- zenml/zen_server/dashboard/assets/slash-circle-D2Lb2FyR.js +1 -0
- zenml/zen_server/dashboard/assets/stack-detail-query-Bc4QKlWg.js +1 -0
- zenml/zen_server/dashboard/assets/{terminal-XFL_4QN-.js → terminal-BObrvDlO.js} +1 -1
- zenml/zen_server/dashboard/assets/{terminal-square-XFL_4QN-.js → terminal-square-BObrvDlO.js} +1 -1
- zenml/zen_server/dashboard/assets/{transform-CeZdrxDZ.js → transform-DFpKTKgF.js} +1 -1
- zenml/zen_server/dashboard/assets/{trash-DP6Tpp_E.js → trash-HKxXWbSG.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-current-user-mutation-Ca-Lmwuj.js → update-current-user-mutation-DSyUyHVj.js} +1 -1
- zenml/zen_server/dashboard/assets/update-server-settings-mutation-CdM-Sdds.js +1 -0
- zenml/zen_server/dashboard/assets/{zod-XdS2h1ws.js → zod-DgEcN9jD.js} +1 -1
- zenml/zen_server/dashboard/index.html +7 -7
- zenml/zen_stores/migrations/versions/0.84.0_release.py +23 -0
- zenml/zen_stores/sql_zen_store.py +9 -3
- {zenml_nightly-0.83.1.dev20250711.dist-info → zenml_nightly-0.84.0.dev20250712.dist-info}/METADATA +1 -1
- {zenml_nightly-0.83.1.dev20250711.dist-info → zenml_nightly-0.84.0.dev20250712.dist-info}/RECORD +157 -150
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-DsOmO1FH.js +0 -1
- zenml/zen_server/dashboard/assets/ButtonGroup-4sPZDv70.js +0 -1
- zenml/zen_server/dashboard/assets/CollapsibleCard-CBKenz9f.js +0 -1
- zenml/zen_server/dashboard/assets/ComponentIcon-CMiVW-O6.js +0 -1
- zenml/zen_server/dashboard/assets/DialogItem-CRCDpYU6.js +0 -1
- zenml/zen_server/dashboard/assets/Error-BG6f_WRd.js +0 -1
- zenml/zen_server/dashboard/assets/ExecutionStatus-BuhNAE9w.js +0 -1
- zenml/zen_server/dashboard/assets/NestedCollapsible-CMuDIJlp.js +0 -1
- zenml/zen_server/dashboard/assets/Partials-CfHD6OH5.js +0 -1
- zenml/zen_server/dashboard/assets/ProviderIcon-DHejyg7C.js +0 -1
- zenml/zen_server/dashboard/assets/ProviderRadio-tGtie8Gc.js +0 -1
- zenml/zen_server/dashboard/assets/RunsBody-mYwMcWWj.js +0 -1
- zenml/zen_server/dashboard/assets/SecretTooltip-B5u1UsQ9.js +0 -1
- zenml/zen_server/dashboard/assets/StackComponentList-Bi8BKqCu.js +0 -1
- zenml/zen_server/dashboard/assets/StackList-Cvxapo0p.js +0 -1
- zenml/zen_server/dashboard/assets/StackName-CFSZL8ec.js +0 -1
- zenml/zen_server/dashboard/assets/Tabs-D4dv48ry.js +0 -1
- zenml/zen_server/dashboard/assets/Tick-Qquvr4P3.js +0 -1
- zenml/zen_server/dashboard/assets/UsageReason-DhiUV1bu.js +0 -1
- zenml/zen_server/dashboard/assets/WizardFooter-FQm8y-jP.js +0 -1
- zenml/zen_server/dashboard/assets/configuration-form-DSoMMiPE.js +0 -1
- zenml/zen_server/dashboard/assets/constants-DTfsIqHy.js +0 -1
- zenml/zen_server/dashboard/assets/flyte-Cj-xy_8I.svg +0 -10
- zenml/zen_server/dashboard/assets/form-BgtamtJm.js +0 -1
- zenml/zen_server/dashboard/assets/form-schemas-dyDkAxXP.js +0 -1
- zenml/zen_server/dashboard/assets/gcp-B1I3Qvcx.js +0 -1
- zenml/zen_server/dashboard/assets/index-BfNISy0X.css +0 -1
- zenml/zen_server/dashboard/assets/layout-o1x87a3q.js +0 -1
- zenml/zen_server/dashboard/assets/metaflow-weOkWNyT.svg +0 -10
- zenml/zen_server/dashboard/assets/page-4xUZpMN0.js +0 -31
- zenml/zen_server/dashboard/assets/page-B0104V6C.js +0 -1
- zenml/zen_server/dashboard/assets/page-BNJsjvof.js +0 -1
- zenml/zen_server/dashboard/assets/page-BQgSZ2nH.js +0 -1
- zenml/zen_server/dashboard/assets/page-BXl2ZX6J.js +0 -1
- zenml/zen_server/dashboard/assets/page-C2A-2Cj_.js +0 -1
- zenml/zen_server/dashboard/assets/page-CESEqC2L.js +0 -1
- zenml/zen_server/dashboard/assets/page-CF8cTZ7l.js +0 -1
- zenml/zen_server/dashboard/assets/page-CKjsimVu.js +0 -1
- zenml/zen_server/dashboard/assets/page-COLzBwff.js +0 -1
- zenml/zen_server/dashboard/assets/page-COifg5fa.js +0 -1
- zenml/zen_server/dashboard/assets/page-CQeJuA8T.js +0 -1
- zenml/zen_server/dashboard/assets/page-CcjWEjre.js +0 -1
- zenml/zen_server/dashboard/assets/page-CefGLeWy.js +0 -1
- zenml/zen_server/dashboard/assets/page-CfxpV3j4.js +0 -1
- zenml/zen_server/dashboard/assets/page-ClcUzawe.js +0 -1
- zenml/zen_server/dashboard/assets/page-Ct_LB3zo.js +0 -1
- zenml/zen_server/dashboard/assets/page-D-ZWUMYY.js +0 -1
- zenml/zen_server/dashboard/assets/page-DHrvih9u.js +0 -1
- zenml/zen_server/dashboard/assets/page-DMhaHZDw.js +0 -1
- zenml/zen_server/dashboard/assets/page-DcQmxKLp.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dh4GRWw5.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dn7ZNapg.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dy4vSQY7.js +0 -1
- zenml/zen_server/dashboard/assets/page-QrvWQwZb.js +0 -1
- zenml/zen_server/dashboard/assets/page-RF3Fup0q.js +0 -40
- zenml/zen_server/dashboard/assets/page-WuvCrN47.js +0 -1
- zenml/zen_server/dashboard/assets/page-_WnHBI1F.js +0 -1
- zenml/zen_server/dashboard/assets/page-ghjVNgVE.js +0 -1
- zenml/zen_server/dashboard/assets/page-iDsDiDXw.js +0 -1
- zenml/zen_server/dashboard/assets/resource-type-tooltip-BL9ZTRKi.js +0 -1
- zenml/zen_server/dashboard/assets/service-connectors-Q8h7-_rG.js +0 -1
- zenml/zen_server/dashboard/assets/service-k-9Vsb30.js +0 -2
- zenml/zen_server/dashboard/assets/stack-detail-query-CNmVZ0Bo.js +0 -1
- zenml/zen_server/dashboard/assets/type-guards-CNgPYg8l.js +0 -1
- zenml/zen_server/dashboard/assets/update-server-settings-mutation-Bwe3gUt4.js +0 -1
- {zenml_nightly-0.83.1.dev20250711.dist-info → zenml_nightly-0.84.0.dev20250712.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.83.1.dev20250711.dist-info → zenml_nightly-0.84.0.dev20250712.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.83.1.dev20250711.dist-info → zenml_nightly-0.84.0.dev20250712.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as o}from"./@radix-C_LirfyT.js";import{B as l,r as i,b as n,I as m,c as d,am as x}from"./index-BacoJBEQ.js";import{c as p}from"./persist-DxiyfAax.js";import{c as u}from"./@react-router-BSsrkPOd.js";import{a as f}from"./index.esm-COnaHLSh.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 t}from"./@radix-C_LirfyT.js";import{S as g}from"./refresh-3EF2R7ja.js";import{P as f}from"./Pagination-CcDD5yHh.js";import{S}from"./SearchField-D_0-uAPj.js";import{u as v}from"./all-pipeline-runs-query-gorNNEaT.js";import{N as m,r as l,O as N,Q as b,R,U as y,V as u,T as p,a0 as k,z as i,B as C,W as w,d as x}from"./index-BacoJBEQ.js";import{R as P,u as T,a as F}from"./ButtonGroup-SF2DlzHV.js";import{S as A}from"./terminal-BObrvDlO.js";import{D}from"./DisplayDate-v3KW7oez.js";import{g as E,E as B}from"./ExecutionStatus-C4tlFnlh.js";import{L as c,f as I}from"./@react-router-BSsrkPOd.js";const _=[{id:"select",meta:{width:"1%"},header:({table:e})=>t.jsx(m,{id:"check-all",checked:e.getIsAllRowsSelected(),onCheckedChange:s=>e.toggleAllRowsSelected(s==="indeterminate"?!0:s)}),cell:({row:e})=>t.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:a,id:r}=e();return t.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[t.jsx(A,{className:`h-5 w-5 ${E(a)}`}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(c,{to:l.projects.runs.detail(r),className:"flex items-center gap-1",children:t.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:s})}),t.jsx(N,{children:t.jsxs(b,{children:[t.jsx(R,{className:"hover:text-theme-text-brand hover:underline",children:t.jsx(B,{status:a})}),t.jsx(y,{className:"z-20 capitalize",children:a})]})}),t.jsx(u,{copyText:s})]}),t.jsxs(c,{to:l.projects.runs.detail(r),className:"flex items-center gap-1",children:[t.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:r.split("-")[0]}),t.jsx(u,{copyText:r})]})]})]})}},{id:"pipeline",header:"Pipeline",accessorFn:e=>{var s,a;return(a=(s=e.body)==null?void 0:s.pipeline)==null?void 0:a.name},cell:({getValue:e})=>{const s=e();return s?t.jsx(c,{to:l.projects.pipelines.namespace(s),children:t.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,a,r,n;return{name:(a=(s=e.body)==null?void 0:s.stack)==null?void 0:a.name,id:(n=(r=e.body)==null?void 0:r.stack)==null?void 0:n.id}},cell:({getValue:e})=>{const{name:s,id:a}=e();return!s||!a?null:t.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 t.jsx(D,{dateString:s})}},{id:"author",header:"Author",accessorFn:e=>{var s,a;return{name:(a=(s=e.resources)==null?void 0:s.user)==null?void 0:a.name}},cell:({getValue:e})=>{const{name:s}=e();return s?t.jsx(k,{username:s}):null}},{id:"admin_actions",header:"",meta:{width:"5%"},cell:({row:e})=>t.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]=I(),{page:s,name:a,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:a,logical_operator:r,status:n}}function M({fixedQueryParams:e={}}){const{selectedRowCount:s,rowSelection:a,setRowSelection:r}=T(),n=L(),{data:o,refetch:h}=v({params:{...n,sort_by:"desc:updated",...e}});return t.jsxs("div",{className:"flex flex-col gap-5 pt-5",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[s?t.jsx(F,{}):t.jsx(S,{searchParams:n}),t.jsx("div",{className:"flex justify-between",children:t.jsxs(C,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>h(),children:[t.jsx(g,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),t.jsxs("div",{className:"flex flex-col items-center gap-5",children:[t.jsx("div",{className:"w-full",children:o?t.jsx(w,{rowSelection:a,onRowSelectionChange:r,columns:_,getRowId:j=>j.id,data:o.items}):t.jsx(x,{className:"h-[500px] w-full"})}),o?o.total_pages>1&&t.jsx(f,{searchParams:n,paginate:o}):t.jsx(x,{className:"h-[36px] w-[300px]"})]})]})}export{M as R};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as s,j as c}from"./@radix-
|
1
|
+
import{r as s,j as c}from"./@radix-C_LirfyT.js";import{X as S,I as g}from"./index-BacoJBEQ.js";import{d as x}from"./index-BRhKF2z-.js";import{c as C,f as v}from"./@react-router-BSsrkPOd.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};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as A}from"./@radix-C_LirfyT.js";import{S as Q}from"./eye-CLNgIh_K.js";import{S as $}from"./plus-cI8zD2xh.js";import{S as z}from"./trash-HKxXWbSG.js";import{q as T,c as L,b as O,h as G}from"./@tanstack-C0SeHZng.js";import{y as j,E as g,X as U,v as w,Y as N,F as b,z as c,aC as B,aD as H,D as M,s as R,I as f,B as h,aG as J,aH as X,aI as Y,O as _,Q as I,R as W,U as Z}from"./index-BacoJBEQ.js";import{t as ee}from"./zod-DgEcN9jD.js";import{u as se,b as te,C as p}from"./index.esm-COnaHLSh.js";import{C as ae}from"./CodeSnippet-D8iBqOVv.js";import{S as re}from"./info-CyMih3vQ.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(M,{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}=R(),k=G(),{mutate:F}=oe({onError(a){Y(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(Q,{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($,{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(J,{className:"gap-[10px]",children:[e.jsx(X,{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(_,{children:e.jsxs(I,{children:[e.jsx(W,{children:e.jsx(re,{className:"h-4 w-4 shrink-0 fill-theme-text-tertiary"})}),e.jsxs(Z,{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-C_LirfyT.js";import{I as a,B as p}from"./index-BacoJBEQ.js";import{u as w}from"./index.esm-COnaHLSh.js";import{t as u}from"./zod-DgEcN9jD.js";import{P as h}from"./PasswordChecker-BZwoeQIm.js";import{g as f}from"./form-schemas-B9XgTS1V.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-C_LirfyT.js";import{S as a}from"./chevron-right-double-CbRQKN4Q.js";import{c as n,bn as i,B as o}from"./index-BacoJBEQ.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-C_LirfyT.js";import{S as B}from"./plus-cI8zD2xh.js";import{S as g}from"./refresh-3EF2R7ja.js";import{P as y}from"./Pagination-CcDD5yHh.js";import{S as N}from"./SearchField-D_0-uAPj.js";import{v as H,y as I,F as M,E as O,a1 as T,r as h,O as Q,Q as $,R as q,U as G,V as p,B as d,W as v,d as m,A as K,e as U,a0 as P,f as J,h as V,i as W,bh as X,G as A,J as Y,K as Z,L as ee,M as se,av as S,b7 as te,N as w,a5 as k,at as ae,T as ne,z as u,H as re}from"./index-BacoJBEQ.js";import{c as le,b as F}from"./@tanstack-C0SeHZng.js";import{L as j,c as ie,f as oe}from"./@react-router-BSsrkPOd.js";import{D as C}from"./DisplayDate-v3KW7oez.js";import{S as ce}from"./expand-full-CD4fFvM-.js";import{S as de}from"./SheetHeader-7vwlsY_i.js";import{S as me}from"./Tabs-B27AHUfo.js";import{u as xe}from"./all-pipeline-runs-query-gorNNEaT.js";import{S as he}from"./terminal-BObrvDlO.js";import{g as pe,E as ue}from"./ExecutionStatus-C4tlFnlh.js";import{s as je}from"./index-dCcVgFNl.js";import{C as fe}from"./ComponentBadge-mw2Ja_ON.js";import{S as E}from"./trash-HKxXWbSG.js";import{D as ge,a as ye}from"./DeleteAlertDialog-BbyFVnVI.js";import{I as Ne}from"./Infobox-DFCWPbMb.js";import{c as ve,u as Ce}from"./bulk-delete-B5RTlnD_.js";async function be({componentId:s}){const t=I(O.components.detail(s)),a=await H(t,{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 ${s}`);throw new M({status:a.status,statusText:a.statusText,message:n})}return a.json()}function Se(s){return le({...s,mutationFn:async({componentId:t})=>be({componentId:t})})}const{ContextProvider:ts,useContext:b}=ve();function R(){const{setRowSelection:s}=b(),{mutateAsync:t}=Se();async function a(n){await t({componentId:n})}return Ce({deleteFn:a,queryKeyToInvalidate:T.all,setRowSelection:s})}const we=[{id:"name",header:"Run",accessorFn:s=>{var t;return{id:s.id,name:s.name,status:(t=s.body)==null?void 0:t.status}},cell:({getValue:s})=>{const{name:t,status:a,id:n}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(he,{className:`h-5 w-5 ${pe(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:t})}),e.jsx(Q,{children:e.jsxs($,{children:[e.jsx(q,{className:"hover:text-theme-text-brand hover:underline",children:e.jsx(ue,{status:a})}),e.jsx(G,{className:"z-20 capitalize",children:a})]})}),e.jsx(p,{copyText:t})]}),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(p,{copyText:n})]})]})]})}},{id:"created-at",header:"Created at",accessorFn:s=>{var t;return{date:(t=s.body)==null?void 0:t.created}},cell:({getValue:s})=>{const{date:t}=s();return e.jsx("div",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:t})})}}];function ke({componentId:s}){const[t,a]=x.useState(void 0),[n,r]=x.useState(1),o={name:t,page:n},{data:i,refetch:c}=xe({params:{...o,stack_component:s,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(N,{inMemoryHandler:l=>{r(1),l||a(void 0),a(`contains:${l}`)},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:i?e.jsx(v,{columns:we,data:i.items}):e.jsx(m,{className:"h-[500px] w-full"})}),i?i.total_pages>1&&e.jsx(y,{inMemoryHandler:r,searchParams:{},paginate:i}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}function De(){return[{id:"name",header:"Stack",accessorFn:s=>s.name,cell:({row:s})=>{const{name:t,id:a}=s.original;return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(K,{type:"square",size:"md",children:e.jsx(U,{size:"md",children:t[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:t})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:a.split("-")[0]}),e.jsx(p,{copyText:a})]})]})]})}},{id:"author",header:"Author",accessorFn:s=>{var t;return{author:(t=s.resources)==null?void 0:t.user}},cell:({getValue:s})=>{const{author:t}=s();return t?e.jsx(P,{username:t.name||"default"}):null}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:s()})})}]}function Te({componentId:s}){const[t,a]=x.useState(void 0),[n,r]=x.useState(1),o={name:t,page:n},{refetch:i,data:c}=F(je.stackList({...o,component_id:s,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(N,{inMemoryHandler:l=>{r(1),l||a(void 0),a(`contains:${l}`)},searchParams:{}})}),e.jsx("div",{className:"flex items-center justify-between gap-2",children:e.jsxs(d,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>i(),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(v,{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:s,onOpenChange:t,componentId:a}){return e.jsxs(J,{onOpenChange:t,children:[e.jsx(V,{asChild:!0,children:s}),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 _({deleteHandler:s}){return e.jsx(ge,{title:"Delete Components",handleDelete:s,children:e.jsxs(ye,{children:[e.jsx("p",{children:"Are you sure?"}),e.jsx("p",{children:"This action cannot be undone."}),e.jsx(Ne,{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:s,open:t,setOpen:a}){return e.jsx(A,{open:t,onOpenChange:a,children:e.jsx(_,{deleteHandler:s})})}function Ae({id:s}){const[t,a]=x.useState(!1),n=ie(),{bulkDelete:r}=R();async function o(){await r([s]),a(!1)}return e.jsxs(e.Fragment,{children:[e.jsx(Pe,{deleteHandler:o,open:t,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(s)),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(E,{className:"h-3 w-3 fill-neutral-400"}),e.jsx("p",{children:"Delete"})]})]})]})]})}function Fe(){return[{id:"select",meta:{width:"1%"},header:({table:s})=>e.jsx(w,{id:"check-all",checked:s.getIsAllRowsSelected(),onCheckedChange:t=>s.toggleAllRowsSelected(t==="indeterminate"?!0:t)}),cell:({row:s})=>e.jsx(w,{id:`check-${s.id}`,checked:s.getIsSelected(),onCheckedChange:s.getToggleSelectedHandler()})},{id:"name",header:"Component",accessorKey:"name",cell:({row:s})=>{var n;const t=s.original.id,a=s.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=s.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:t,children:e.jsx("button",{children:e.jsx("h2",{className:"text-text-md font-semibold",children:a})})}),e.jsx(p,{copyText:a})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(D,{componentId:t,children:e.jsx("button",{className:"text-text-xs text-theme-text-secondary",children:t.split("-")[0]})}),e.jsx(p,{copyText:t})]})]})]})}},{id:"type",header:"Component Type",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.type},cell:({row:s})=>{var a;const t=((a=s.original.body)==null?void 0:a.type)||"orchestrator";return e.jsx(fe,{type:t,children:ae(t)})}},{id:"flavor",header:"Flavor",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.flavor_name},cell:({row:s})=>{var a,n;const t=(a=s.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=s.original.body)==null?void 0:n.logo_url)||""),alt:"Flavor Icon of Component"}),e.jsx("p",{children:t})]})}},{id:"author",header:"Author",accessorFn:s=>{var t,a;return(a=(t=s.resources)==null?void 0:t.user)==null?void 0:a.name},cell:({row:s})=>{var a,n;const t=(n=(a=s.original.resources)==null?void 0:a.user)==null?void 0:n.name;return t?e.jsx(P,{username:t}):null}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({row:s})=>{var t;return e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:((t=s.original.body)==null?void 0:t.created)||""})})}},{id:"admin_actions",header:"",cell:({row:s})=>e.jsx(Ae,{id:s.original.id})}]}const f=1,Ee=u.object({page:u.coerce.number().min(f).optional().default(f).catch(f),name:u.string().optional(),operator:u.enum(["and","or"]).optional()});function Re(){const[s]=oe(),{page:t,name:a,operator:n}=Ee.parse({page:s.get("page")||void 0,name:s.get("name")||void 0});return{page:t,name:a,logical_operator:n}}function _e(){const{bulkDelete:s}=R(),{selectedRowCount:t,selectedRowIDs:a}=b();async function n(){await s(a)}const r=t>1?"s":"",o=`${t} 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(E,{className:"h-5 w-5 shrink-0 gap-1 fill-neutral-400"}),"Delete"]})}),e.jsx(_,{deleteHandler:n})]})]})}function as({fixedQueryParams:s,displayCreateComponent:t=!0}){const a=Re(),{rowSelection:n,setRowSelection:r,selectedRowCount:o}=b(),i=F({...T.componentList({...a,...s,sort_by:"desc:updated"}),throwOnError:!0}),c=Fe();if(i.isError)return null;const{data:l,refetch:z}=i;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(_e,{}):e.jsx(N,{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"]}),t&&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:l?e.jsx(v,{getRowId:L=>L.id,rowSelection:n,onRowSelectionChange:r,columns:c,data:l.items}):e.jsx(m,{className:"h-[500px] w-full"})}),l?l.total_pages>1&&e.jsx(y,{searchParams:a,paginate:l}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}export{ts as C,as as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as l,j as e}from"./@radix-C_LirfyT.js";import{S as I}from"./plus-cI8zD2xh.js";import{S as z}from"./refresh-3EF2R7ja.js";import{P as O}from"./Pagination-CcDD5yHh.js";import{S as R}from"./SearchField-D_0-uAPj.js";import{s as g}from"./index-dCcVgFNl.js";import{z as h,aC as F,aD as L,D as M,aA as U,aB as B,B as m,bt as _,f as q,h as H,i as $,d as p,A as D,e as A,V as j,j as Q,a5 as K,r as f,at as W,y as J,F as G,E as V,s as X,t as Y,aJ as Z,aK as ee,aL as se,aM as te,J as S,K as ae,L as ne,M as re,b7 as ie,a0 as le,W as ce}from"./index-BacoJBEQ.js";import{b,c as oe,h as de}from"./@tanstack-C0SeHZng.js";import{f as xe,L as N,c as me}from"./@react-router-BSsrkPOd.js";import{D as ue}from"./DisplayDate-v3KW7oez.js";import{C as w}from"./CodeSnippet-D8iBqOVv.js";import{C as he}from"./CollapsibleCard-D0-pQi1n.js";import{S as pe}from"./SheetHeader-7vwlsY_i.js";import{e as k}from"./components-Br2ezRib.js";import{N as C}from"./NumberBox-CoQjQYDJ.js";import{C as je}from"./ComponentBadge-mw2Ja_ON.js";import{I as fe}from"./Infobox-DFCWPbMb.js";import{S as ge}from"./trash-HKxXWbSG.js";import{D as ye}from"./DialogItem-DeME0oSt.js";import{A as Ne}from"./AlertDialogDropdownItem-druRNuO2.js";const y=1,we=h.object({page:h.coerce.number().min(y).optional().default(y).catch(y),name:h.string().optional(),operator:h.enum(["and","or"]).optional()});function be(){const[t]=xe(),{page:s,name:a,operator:n}=we.parse({page:t.get("page")||void 0,name:t.get("name")||void 0});return{page:s,name:a,logical_operator:n}}const T=l.createContext(null);function ve({children:t}){const[s,a]=l.useState([]);return e.jsx(T.Provider,{value:{integrations:s,setIntegrations:a},children:t})}function E(){const t=l.useContext(T);if(t===null)throw new Error("useIntegrationsContext must be used within an AuthProvider");return t}const v=l.forwardRef(({closeModal:t,name:s,...a},n)=>e.jsxs(F,{...a,ref:n,children:[e.jsx(L,{children:e.jsx(M,{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(w,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${s} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));v.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]=l.useState(!1);return e.jsxs(U,{open:s,onOpenChange:a,children:[e.jsx(B,{asChild:!0,children:e.jsx(m,{type:"button",size:"sm",intent:"primary",emphasis:"subtle",children:e.jsx(_,{})})}),e.jsx(v,{name:t,className:"lg:min-w-[600px]"})]})}function Ce({children:t,stackId:s,stackName:a}){return e.jsxs(q,{children:[e.jsx(H,{children:t}),e.jsx($,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(ve,{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=b({...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=b({...g.stackDetail(t)});if(l.useEffect(()=>{var d;if(!a.data)return;const c=k((d=a.data.metadata)==null?void 0:d.components).map(o=>{var x;return(x=o.body)==null?void 0:x.integration}).filter(o=>!!o&&o!=="built-in"&&o!=="custom");c.length>=1&&s(o=>Array.from(new Set([...o,...c])))},[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:K(((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:W(((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(w,{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(w,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${s.join(" ")}`})]})]})]})})})}async function Pe({stackId:t},s){const a=J(V.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 G({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}=X(),a=de(),n=me(),r=Ie({onSuccess:async()=>{a.invalidateQueries({queryKey:g.all}),n(f.stacks.overview)},onError:c=>{s({status:"error",emphasis:"subtle",icon:e.jsx(Y,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:c.message,rounded:!0})}});function i(){r.mutate({stackId:t})}return{handleDelete:i,deleteStack:r}}const P=l.forwardRef(({closeModal:t,name:s,stackId:a,...n},r)=>{const{handleDelete:i,deleteStack:c}=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(m,{intent:"secondary",children:"Cancel"})}),e.jsxs(m,{disabled:c.isPending,type:"button",onClick:()=>i(),intent:"danger",children:[c.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]=l.useState(!1),[r,i]=l.useState(!1),c=l.useRef(null),d=l.useRef(null);function o(){d.current=c.current}function x(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:c,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:x,icon:e.jsx(ie,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx(v,{name:t,className:"lg:min-w-[600px]",closeModal:()=>x(!1)})}),e.jsx(Ne,{onSelect:o,onOpenChange:x,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:()=>x(!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{author:(n=(a=s.resources)==null?void 0:a.user)==null?void 0:n.name}},cell:({getValue:s})=>{const{author:a}=s();return a?e.jsx(le,{username:a}):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 l.useMemo(()=>t,[])}function ts({fixedQueryParams:t={}}){const s=be(),a=Re(),{refetch:n,data:r}=b({...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(m,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[e.jsx(z,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(m,{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(ce,{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 N}from"./@radix-C_LirfyT.js";import{r as T,T as C,bi as S,d as y,C as w,n as k,o as P,p as D,a5 as E,a0 as I,z as j,an as L,ao as O,ap as g,bj as R,b as U,aq as x}from"./index-BacoJBEQ.js";import{S as z}from"./terminal-BObrvDlO.js";import{S as A}from"./chevron-down-Z3nUe-0U.js";import{S as B}from"./transform-DFpKTKgF.js";import{L as F,f as K,c as M}from"./@react-router-BSsrkPOd.js";import{D as v}from"./DisplayDate-v3KW7oez.js";import{K as o,N as V}from"./NestedCollapsible-CN9scBUn.js";function _({connectorName:s,connectorId:a}){return e.jsx(F,{to:T.settings.connectors.detail.configuration(a),children:e.jsxs(C,{color:"yellow",rounded:!1,className:"w-fit gap-0.5",emphasis:"subtle",children:[e.jsx(B,{width:20,height:20,className:"shrink-0 fill-warning-900"}),e.jsx("span",{children:s})]})})}function $({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(H,{componentId:s})})]})}function q({componentId:s}){var c,m,p,f,h,b;const[a,r]=N.useState(!0),l=S(s);if(l.isError)return null;if(l.isPending)return e.jsx(y,{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(w,{open:a,onOpenChange:r,children:[e.jsx(k,{className:"flex items-center gap-[10px]",children:e.jsxs(P,{className:"flex w-full items-center",children:[e.jsx(A,{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(D,{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(C,{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:E(((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!=null&&n.name?e.jsx(I,{username:n.name}):"Not available"}),e.jsx(o,{label:"Service Connector",value:i?e.jsx(_,{connectorName:i.name,connectorId:i.id}):"Not available"}),e.jsx(o,{label:"Updated",value:u?e.jsx(v,{dateString:u}):"Not available"}),e.jsx(o,{label:"Created",value:d?e.jsx(v,{dateString:d}):"Not available"})]})})]})}function H({componentId:s}){var r;const a=S(s);return a.isError?null:a.isPending?e.jsx(y,{className:"h-[150px] w-full"}):e.jsx(V,{isInitialOpen:!0,intent:"primary",title:"Configuration",data:(r=a.data.metadata)==null?void 0:r.configuration})}const Q=j.object({tab:j.enum(["configuration","stacks","runs"]).optional().default("configuration").catch("configuration")});function G(){const[s]=K(),{tab:a}=Q.parse({tab:s.get("tab")||void 0});return a}function te({componentId:s,isPanel:a,stacksTabContent:r,runsTabContent:l}){const[t,n]=N.useState("configuration"),d=G(),u=M();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(L,{value:a?t:d,onValueChange:i,children:[e.jsxs(O,{children:[e.jsxs(g,{className:"flex items-center gap-2 text-text-md",value:"configuration",children:[e.jsx(R,{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(U,{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($,{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{te as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as s}from"./@radix-C_LirfyT.js";import{bm as o,c as i}from"./index-BacoJBEQ.js";import{S as m}from"./check-D1bHMJkL.js";function n({tickClasses:r,...c}){return s.jsx(o,{...c,children:s.jsx(m,{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-BacoJBEQ.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-C_LirfyT.js";import{j as a,c as o}from"./index-BacoJBEQ.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-C_LirfyT.js";import{F as s}from"./Wizard-8aJzxUjb.js";import{a}from"./ProviderRadio-D_q9tE3G.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{y as n,E as r,X as a,v as u,Y as o,F as i}from"./index-BacoJBEQ.js";import{b as c}from"./@tanstack-C0SeHZng.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-C_LirfyT.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};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as C}from"./@radix-C_LirfyT.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-C_LirfyT.js";import{h}from"./@tanstack-C0SeHZng.js";import{s as j}from"./index-BacoJBEQ.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 D({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
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,D as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-C_LirfyT.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-C_LirfyT.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-C_LirfyT.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-C_LirfyT.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-C_LirfyT.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-C_LirfyT.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};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as D}from"./@radix-C_LirfyT.js";import{v as q,y as L,F as Q,E as B,aA as X,aC as H,aD as ee,D as se,aV as re,d as R,ad as te,ae,au as ne,af as oe,ag as ie,ah as le,I as V,ai as ce,aj as me,ak as k,al as N,c as de,bu as ue,j as pe,a5 as xe,B as C,a as he,z as v,u as fe,s as je,az as ge,a1 as ye}from"./index-BacoJBEQ.js";import{c as M,j as Ne,b as Ce,h as ve}from"./@tanstack-C0SeHZng.js";import{f as be}from"./index-B7CRNU8l.js";import{g as we,a as Se,D as Fe,b as _e}from"./form-6aSt3tIl.js";import{t as ze}from"./zod-DgEcN9jD.js";import{a as Pe,C as Te,u as Ee,F as Ae}from"./index.esm-COnaHLSh.js";import{S as Oe}from"./transform-DFpKTKgF.js";import{S as De}from"./check-D1bHMJkL.js";import{S as ke}from"./plus-cI8zD2xh.js";import{C as Ie}from"./CodeSnippet-D8iBqOVv.js";import{S as qe}from"./file-text-CltVhgwZ.js";import{S as Le}from"./terminal-square-BObrvDlO.js";import{C as Qe}from"./ComponentIcon-BXgpt-jw.js";async function Be({payload:s}){const r=L(B.components.all),t=await q(r,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)});if(!t.ok){const o=await t.json().then(l=>Array.isArray(l.detail)?l.detail[1]:l.detail).catch(()=>"Error while creating new stack");throw new Q({status:t.status,statusText:t.statusText,message:o})}return t.json()}function Re(s){return M({...s,mutationFn:async({payload:r})=>Be({payload:r})})}function Ve({open:s,setOpen:r}){return e.jsx(X,{open:s,onOpenChange:r,children:e.jsxs(H,{className:"max-w-[600px]",children:[e.jsx(ee,{children:e.jsx(se,{children:"Create Service Connector"})}),e.jsx("div",{className:"min-w-0 p-5",children:e.jsxs("div",{className:"min-w-0 max-w-full space-y-1",children:[e.jsx("p",{children:"Create a new service connector"}),e.jsx(Ie,{wrap:!0,code:"zenml service-connector register <NAME> --type=<TYPE> --interactive"})]})})]})})}function Me({connectorResourceType:s}){var h;const r=Pe(),[t,o]=D.useState(!1),[l,p]=D.useState(!1),x=Ne(re.serviceConnectorListInfinite({resource_type:s,sort_by:"desc:created"}));if(x.isPending)return e.jsx(R,{className:"h-[60px] w-full"});if(x.isError)return e.jsx("div",{children:"Error"});const m=(h=x.data)==null?void 0:h.pages.flatMap(a=>a.items);return e.jsxs(e.Fragment,{children:[e.jsx(Te,{control:r.control,name:"connector",render:({field:a})=>e.jsxs(te,{modal:!0,open:t,onOpenChange:o,children:[e.jsx(ae,{asChild:!0,children:e.jsx("button",{className:ne("w-full flex-1 truncate rounded-md border border-primary-400 bg-theme-surface-secondary px-2",{"h-7":!a.value,"py-2 pl-2 pr-3 text-left":a.value}),children:a.value?(()=>{const i=m.find(d=>d.id===a.value);return i?e.jsx(I,{connector:i}):"Select Connector"})():"Select Connector"})}),e.jsx(oe,{className:"p-0",style:{width:"var(--radix-popover-trigger-width)"},align:"start",children:e.jsxs(ie,{filter:(i,d)=>i.toLowerCase().includes(d.toLowerCase())||i.includes("doNotFilter-")?1:0,children:[m.length>0&&e.jsx(le,{placeholder:"Search connectors...",children:e.jsx(V,{className:"w-full",inputSize:"sm"})}),e.jsx(ce,{className:"space-y-1 p-2",children:e.jsxs("div",{className:"space-y-1",children:[m.length>0?e.jsxs(e.Fragment,{children:[e.jsx(me,{children:"No results"}),e.jsx(k,{className:"max-h-[300px] overflow-y-auto",children:m.map(i=>e.jsxs(N,{value:`${i.id}:${i.name}`,onSelect:d=>{const[f]=d.split(":");r.setValue("connector",a.value===f?"":f),o(!1)},children:[e.jsx(I,{connector:i}),e.jsx(De,{className:de("fill-brand-500 ml-auto size-4 shrink-0",a.value===i.id?"opacity-100":"opacity-0")})]},i.id))})]}):e.jsx("div",{className:"p-2 text-center text-theme-text-secondary",children:"No connectors found"}),e.jsx(ue,{className:"-mx-1"}),e.jsxs(k,{children:[x.hasNextPage&&e.jsx(N,{value:"doNotFilter-fetch-more",className:"flex items-center font-semibold",onSelect:()=>{x.fetchNextPage()},children:"Load more"}),e.jsxs(N,{value:"doNotFilter-create-new",className:"flex items-center gap-2 font-semibold",onSelect:()=>{o(!1),p(!0)},children:[e.jsx(ke,{className:"size-3 shrink-0 fill-neutral-400"}),"Create new Service Connector"]})]})]})})]})})]})}),e.jsx(Ve,{open:l,setOpen:p})]})}function I({connector:s}){var r,t;return e.jsxs("div",{className:"flex items-center gap-2",children:[typeof((r=s.body)==null?void 0:r.connector_type)=="object"&&((t=s.body)==null?void 0:t.connector_type.logo_url)&&e.jsx("img",{src:s.body.connector_type.logo_url,alt:s.name,className:"size-5 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s.name}),e.jsx("div",{className:"text-theme-text-secondary",children:s.id.split("-")[0]})]})]})}function Ue({connectorResourceType:s}){return e.jsxs("section",{className:"w-full max-w-full space-y-3 overflow-x-hidden rounded-md border border-warning-50 bg-[#FFF6EA] p-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Oe,{className:"size-5 shrink-0 fill-warning-400"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Connect to resource"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You can select a Service Connector to connect ZenML to external resources"})]}),e.jsx(Me,{connectorResourceType:s})]})}function $e({sdkDocsUrl:s,name:r,logoUrl:t,type:o}){return e.jsxs(pe,{className:"space-y-5 overflow-hidden pb-5",children:[e.jsx("div",{className:"flex h-[120px] w-full items-center justify-center bg-teal-25",children:t?e.jsx("img",{width:60,height:60,className:"aspect-square object-contain",src:xe(t),alt:`Logo of ${r}`}):e.jsx(Qe,{className:"aspect-square h-[60px] w-[60px] fill-primary-400 object-contain",type:o})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"px-5",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Need Help?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow our extensive documentation to get started."})]}),e.jsxs("ul",{className:"space-y-0.5 px-5",children:[!!s&&e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:s,children:[e.jsx(qe,{className:"size-5 shrink-0 fill-primary-600"}),"Api Reference"]})})}),e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://github.com/zenml-io/zenml/tree/main/examples",children:[e.jsx(Le,{className:"size-5 shrink-0 fill-primary-600"}),"Navigate our examples"]})})}),e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://www.zenml.io/blog",children:[e.jsx(he,{className:"size-5 shrink-0 fill-primary-600"}),"Read our blog"]})})})]})]})]})}const Ke=v.object({componentName:v.string().min(1,"Component name is required"),connector:v.string()});async function Je({componentId:s,payload:r}){const t=L(B.components.detail(s)),o=await q(t,{headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify(r)});if(!o.ok){const l=await o.json().then(p=>Array.isArray(p.detail)?p.detail[1]:p.detail).catch(()=>"Error while creating new stack");throw new Q({status:o.status,statusText:o.statusText,message:l})}return o.json()}function Ye(s){return M({...s,mutationFn:async({payload:r,componentId:t})=>Je({payload:r,componentId:t})})}function ms({flavorId:s,formId:r,successHandler:t,FooterComponent:o,useMaxHeight:l=!1,component:p,isCreate:x=!0}){var a,i,d,f;const m=Ce(be.flavorDetail(s)),h=fe();return m.isPending||h.isPending?e.jsx("div",{className:"px-8 py-5",children:e.jsx(R,{className:"h-[250px] w-full"})}):m.isError||h.isError?e.jsx("p",{className:"px-8 py-5",children:"Failed to fetch flavor"}):e.jsx(Ze,{isCreate:x,component:p,useMaxHeight:l,infoTile:e.jsx($e,{type:((a=m.data.body)==null?void 0:a.type)||"orchestrator",name:m.data.name,sdkDocsUrl:((i=m.data.metadata)==null?void 0:i.sdk_docs_url)??void 0,logoUrl:((d=m.data.body)==null?void 0:d.logo_url)??void 0}),FooterComponent:o,successHandler:t,flavor:m.data,userId:h.data.id,formId:r,schema:(f=m.data.metadata)==null?void 0:f.config_schema})}function Ze({formId:s,schema:r,flavor:t,userId:o,successHandler:l,infoTile:p,FooterComponent:x,useMaxHeight:m,isCreate:h,component:a}){var S,F,_,z,P;const{toast:i}=je(),d=ye.all,f=ve(),b=Re({onSuccess:({id:n})=>{f.invalidateQueries({queryKey:d}),l==null||l(n)},onError:n=>{i({emphasis:"subtle",status:"error",rounded:!0,description:n.message})}}),U=Ye({onSuccess:({id:n})=>{f.invalidateQueries({queryKey:d}),l==null||l(n)},onError:n=>{i({emphasis:"subtle",status:"error",rounded:!0,description:n.message})}}),$=r.properties||{},g=r.required||[],K=r.$defs;function J({componentName:n,...c}){var E,A,O;if(Object.keys(c).forEach(u=>{(c[u]===""||c[u]===null||c[u]===void 0||Array.isArray(c[u])&&c[u].length===0||typeof c[u]=="object"&&!Array.isArray(c[u])&&Object.keys(c[u]).length===0)&&delete c[u]}),!t.body)return;const{connector:y,...T}=c;if(h)b.mutate({payload:{name:n,configuration:T,flavor:t.name,type:t.body.type,user:o,connector:y||null}});else{if(!a)return;const u=((A=(E=a.metadata)==null?void 0:E.connector)==null?void 0:A.id)!==y,W=(O=a.metadata)==null?void 0:O.connector_resource_id;U.mutate({componentId:a.id,payload:{...!u&&{connector_resource_id:W},name:n,configuration:T,connector:y||null}})}}const Y=Ke.merge(we(r)),Z=Se(r,(S=a==null?void 0:a.metadata)==null?void 0:S.configuration),j=Ee({resolver:ze(Y),defaultValues:{componentName:(a==null?void 0:a.name)??"",connector:((_=(F=a==null?void 0:a.metadata)==null?void 0:F.connector)==null?void 0:_.id)??"",...Z}}),{handleSubmit:G}=j,w=Object.entries($).sort(([n],[c])=>g.includes(n)&&!g.includes(c)?-1:!g.includes(n)&&g.includes(c)?1:0);return e.jsx(Ae,{...j,children:e.jsxs("form",{onSubmit:n=>(n.stopPropagation(),G(J)(n)),id:s,children:[e.jsx(ge,{viewportClassName:m?"max-h-[70vh]":"",children:e.jsxs("div",{className:"space-y-4 p-8",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{className:"text-text-lg font-semibold",children:"Component Name"}),e.jsx(V,{...j.register("componentName"),"data-error":j.formState.errors.componentName?"true":"false",className:"w-full data-[error=true]:border-error-500",inputSize:"lg"}),j.formState.errors.componentName&&e.jsx("p",{className:"text-text-sm text-error-500",children:(z=j.formState.errors.componentName.message)==null?void 0:z.toString()})]}),e.jsxs("div",{className:"flex flex-col-reverse gap-5 xl:flex-row",children:[e.jsxs("div",{className:"flex-1 space-y-5",children:[(P=t.metadata)!=null&&P.connector_resource_type?e.jsx(Ue,{connectorResourceType:t.metadata.connector_resource_type}):null,w.length>0?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Attributes"}),w.map(([n,c])=>e.jsx(Fe,{definitions:K,isOptional:_e(n,g),name:n,schema:c},n))]}):null]}),e.jsx("div",{className:"w-full xl:w-1/3",children:p})]})]})}),e.jsx(x,{formId:s,isPending:b.isPending})]})})}export{ms as C};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as s}from"./@radix-C_LirfyT.js";import{d as l,B as c,a5 as m,at as d}from"./index-BacoJBEQ.js";import{f as p}from"./index-B7CRNU8l.js";import{j as u}from"./@tanstack-C0SeHZng.js";import{C as g}from"./ComponentIcon-BXgpt-jw.js";function L({type:e,setSelectedFlavor:r}){const t=u(p.flavorListInfinite({type:e}));if(t.isPending)return s.jsx(f,{});if(t.isError)return s.jsx("p",{children:"Failed to fetch Flavor List"});const{data:i}=t;return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:i.pages.map(n=>n.items.map(a=>{var o;return s.jsx("li",{className:"",children:s.jsx(x,{type:e,onClick:()=>r(a),id:a.id,name:a.name,logoUrl:((o=a.body)==null?void 0:o.logo_url)??void 0})},a.id)}))})}function x({name:e,logoUrl:r,onClick:t,type:i}){return s.jsxs(c,{onClick:t,intent:"secondary",emphasis:"subtle",className:"h-auto w-full gap-2 px-5 py-3",children:[r?s.jsx("img",{alt:`Logo of ${e}`,width:36,height:36,className:"aspect-square object-contain",src:m(r)}):s.jsx(g,{className:"aspect-square h-[36px] w-[36px] fill-primary-400 object-contain",type:i}),s.jsx("span",{className:"min-w-0 truncate",children:d(e)})]})}function f(){return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:Array.from({length:4}).map((e,r)=>s.jsx(l,{className:"h-[70px] w-full"},r))})}const k=["orchestrator","artifact_store","container_registry","step_operator","model_deployer","feature_store","experiment_tracker","alerter","annotator","data_validator","image_builder","model_registry"];export{L as S,k as s};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,j as n}from"./@radix-
|
1
|
+
import{r as o,j as n}from"./@radix-C_LirfyT.js";import{c as i,y as c,F as u,E as d}from"./index-BacoJBEQ.js";import{c as m}from"./@tanstack-C0SeHZng.js";const l=o.forwardRef(({className:e,...r},t)=>n.jsx("label",{ref:t,...r,className:i("flex w-full items-center gap-2 space-x-2 rounded-md border border-theme-border-moderate p-4 font-semibold transition-shadow duration-150 hover:cursor-pointer hover:shadow-sm data-[state=selected]:border-theme-surface-strong",e)}));l.displayName="RadioItemLabel";const f=o.forwardRef(({className:e,type:r,...t},a)=>n.jsx("input",{type:"radio",ref:a,...t,className:i("h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong",e)}));f.displayName="RadioItem";function y(e){return new Promise(r=>setTimeout(r,e))}async function p({payload:e}){const r=c(d.stacks.all),t=await fetch(r,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while creating new stack");throw new u({status:t.status,statusText:t.statusText,message:a})}return t.json()}function x(e){return m({...e,mutationFn:async({payload:r})=>p({payload:r})})}export{l as R,f as a,y as s,x as u};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as C}from"./@radix-C_LirfyT.js";const l=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:"M5.16145 4L18.8385 4C19.3657 3.99998 19.8205 3.99997 20.195 4.03057C20.5904 4.06287 20.9836 4.13419 21.362 4.32698C21.9265 4.6146 22.3854 5.07354 22.673 5.63803C22.8658 6.01641 22.9371 6.40963 22.9694 6.80498C23 7.17954 23 7.6343 23 8.16144V15.8386C23 16.3657 23 16.8205 22.9694 17.195C22.9371 17.5904 22.8658 17.9836 22.673 18.362C22.3854 18.9265 21.9265 19.3854 21.362 19.673C20.9836 19.8658 20.5904 19.9371 20.195 19.9694C19.8205 20 19.3657 20 18.8386 20L5.16148 20C4.63432 20 4.17955 20 3.80497 19.9694C3.40963 19.9371 3.01641 19.8658 2.63803 19.673C2.07354 19.3854 1.6146 18.9265 1.32698 18.362C1.13419 17.9836 1.06287 17.5904 1.03057 17.195C0.999967 16.8205 0.999983 16.3657 1 15.8385L1 10.0006C1 10.0004 1 10.0008 1 10.0006C1 10.0004 1 9.99958 1 9.99937L1 8.16146C0.999983 7.63431 0.999968 7.17955 1.03057 6.80497C1.06287 6.40963 1.13419 6.01641 1.32698 5.63803C1.6146 5.07354 2.07354 4.6146 2.63803 4.32698C3.01641 4.13419 3.40963 4.06287 3.80497 4.03057C4.17955 3.99997 4.63431 3.99998 5.16145 4ZM3 11V15.8C3 16.3766 3.00078 16.7488 3.02393 17.0322C3.04612 17.3038 3.0838 17.4045 3.109 17.454C3.20487 17.6422 3.35785 17.7951 3.54601 17.891C3.59546 17.9162 3.69617 17.9539 3.96784 17.9761C4.25117 17.9992 4.62345 18 5.2 18L18.8 18C19.3766 18 19.7488 17.9992 20.0322 17.9761C20.3038 17.9539 20.4045 17.9162 20.454 17.891C20.6422 17.7951 20.7951 17.6422 20.891 17.454C20.9162 17.4045 20.9539 17.3038 20.9761 17.0322C20.9992 16.7488 21 16.3766 21 15.8V11H3ZM21 9H3V8.2C3 7.62345 3.00078 7.25117 3.02393 6.96784C3.04612 6.69617 3.0838 6.59546 3.109 6.54601C3.20487 6.35785 3.35785 6.20487 3.54601 6.109C3.59546 6.0838 3.69617 6.04612 3.96784 6.02393C4.25118 6.00078 4.62345 6 5.2 6L18.8 6C19.3766 6 19.7488 6.00078 20.0322 6.02393C20.3038 6.04613 20.4045 6.0838 20.454 6.109C20.6422 6.20487 20.7951 6.35785 20.891 6.54601C20.9162 6.59546 20.9539 6.69617 20.9761 6.96784C20.9992 7.25118 21 7.62345 21 8.2V9ZM5 14C5 13.4477 5.44772 13 6 13H11C11.5523 13 12 13.4477 12 14C12 14.5523 11.5523 15 11 15H6C5.44772 15 5 14.5523 5 14Z"}));export{l as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as C}from"./@radix-C_LirfyT.js";const l=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.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.55229 12 9 12.4477 9 13V17C9 17.5523 8.55229 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"})),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:"M2.77687 1.00001C2.78469 1.00001 2.79241 1.00001 2.80001 1.00001H6.20001C6.20762 1.00001 6.21533 1.00001 6.22315 1.00001C6.34227 0.999961 6.48452 0.999906 6.60984 1.01015C6.75506 1.02201 6.96305 1.05245 7.181 1.1635C7.46324 1.30731 7.69271 1.53678 7.83652 1.81903C7.94757 2.03697 7.97801 2.24496 7.98988 2.39018C8.00012 2.5155 8.00006 2.65776 8.00002 2.77687C8.00001 2.78469 8.00001 2.79241 8.00001 2.80001V6.20001C8.00001 6.20762 8.00001 6.21533 8.00002 6.22315C8.00006 6.34227 8.00012 6.48452 7.98988 6.60984C7.97801 6.75506 7.94757 6.96305 7.83652 7.181C7.69271 7.46324 7.46324 7.69271 7.181 7.83652C6.96305 7.94757 6.75506 7.97801 6.60984 7.98988C6.48452 8.00012 6.34227 8.00006 6.22315 8.00002C6.21533 8.00001 6.20762 8.00001 6.20001 8.00001H2.80001C2.79241 8.00001 2.78469 8.00001 2.77687 8.00002C2.65776 8.00006 2.5155 8.00012 2.39018 7.98988C2.24496 7.97801 2.03697 7.94757 1.81903 7.83652C1.53678 7.69271 1.30731 7.46324 1.1635 7.181C1.05245 6.96305 1.02201 6.75506 1.01015 6.60984C0.999906 6.48452 0.999961 6.34227 1.00001 6.22315C1.00001 6.21533 1.00001 6.20762 1.00001 6.20001V2.80001C1.00001 2.79241 1.00001 2.78469 1.00001 2.77687C0.999961 2.65776 0.999906 2.5155 1.01015 2.39018C1.02201 2.24496 1.05245 2.03697 1.1635 1.81903C1.30731 1.53678 1.53678 1.30731 1.81903 1.1635C2.03697 1.05245 2.24496 1.02201 2.39018 1.01015C2.5155 0.999906 2.65776 0.999961 2.77687 1.00001ZM3.00001 3.00001V6.00001H6.00001V3.00001H3.00001ZM19.5322 5.52394C19.2488 5.50079 18.8766 5.50001 18.3 5.50001H11C10.4477 5.50001 10 5.0523 10 4.50001C10 3.94773 10.4477 3.50001 11 3.50001L18.3386 3.50001C18.8657 3.49999 19.3205 3.49998 19.695 3.53058C20.0904 3.56288 20.4836 3.6342 20.862 3.82699C21.4265 4.11461 21.8854 4.57356 22.173 5.13804C22.3658 5.51642 22.4371 5.90964 22.4694 6.30498C22.5 6.67955 22.5 7.13431 22.5 7.66145V9.032C22.5 9.47065 22.5 9.84914 22.4787 10.1624C22.4562 10.4922 22.4067 10.8221 22.2717 11.1481C21.9672 11.8832 21.3831 12.4672 20.6481 12.7717C20.3221 12.9067 19.9922 12.9562 19.6624 12.9787C19.3491 13 18.9706 13 18.532 13H18.5C17.9477 13 17.5 12.5523 17.5 12C17.5 11.4477 17.9477 11 18.5 11C18.9796 11 19.2893 10.9995 19.5263 10.9833C19.7542 10.9677 19.8411 10.9411 19.8827 10.9239C20.1277 10.8224 20.3224 10.6277 20.4239 10.3827C20.4411 10.3411 20.4677 10.2543 20.4833 10.0263C20.4995 9.78927 20.5 9.47964 20.5 9.00001V7.70001C20.5 7.12346 20.4992 6.75118 20.4761 6.46785C20.4539 6.19618 20.4162 6.09547 20.391 6.04602C20.2951 5.85786 20.1422 5.70488 19.954 5.60901C19.9046 5.58381 19.8038 5.54613 19.5322 5.52394ZM10.2769 8.50001C10.2847 8.50001 10.2924 8.50001 10.3 8.50001H13.7C13.7076 8.50001 13.7153 8.50001 13.7232 8.50001C13.8423 8.49996 13.9845 8.49991 14.1098 8.51015C14.2551 8.52201 14.4631 8.55245 14.681 8.6635C14.9632 8.80731 15.1927 9.03678 15.3365 9.31903C15.4476 9.53697 15.478 9.74496 15.4899 9.89018C15.5001 10.0155 15.5001 10.1578 15.5 10.2769C15.5 10.2847 15.5 10.2924 15.5 10.3V13.7C15.5 13.7076 15.5 13.7153 15.5 13.7231C15.5001 13.8423 15.5001 13.9845 15.4899 14.1098C15.478 14.2551 15.4476 14.4631 15.3365 14.681C15.1927 14.9632 14.9632 15.1927 14.681 15.3365C14.4631 15.4476 14.2551 15.478 14.1098 15.4899C13.9845 15.5001 13.8423 15.5001 13.7231 15.5C13.7153 15.5 13.7076 15.5 13.7 15.5H10.3C10.2924 15.5 10.2847 15.5 10.2769 15.5C10.1578 15.5001 10.0155 15.5001 9.89018 15.4899C9.74496 15.478 9.53697 15.4476 9.31903 15.3365C9.03678 15.1927 8.80731 14.9632 8.6635 14.681C8.55245 14.4631 8.52201 14.2551 8.51015 14.1098C8.49991 13.9845 8.49996 13.8423 8.50001 13.7232C8.50001 13.7153 8.50001 13.7076 8.50001 13.7V10.3C8.50001 10.2924 8.50001 10.2847 8.50001 10.2769C8.49996 10.1578 8.49991 10.0155 8.51015 9.89018C8.52201 9.74496 8.55245 9.53697 8.6635 9.31903C8.80731 9.03678 9.03678 8.80731 9.31903 8.6635C9.53697 8.55245 9.74496 8.52201 9.89018 8.51015C10.0155 8.49991 10.1578 8.49996 10.2769 8.50001ZM10.5 10.5V13.5H13.5V10.5H10.5ZM5.46802 11H5.50001C6.0523 11 6.50001 11.4477 6.50001 12C6.50001 12.5523 6.0523 13 5.50001 13C5.02039 13 4.71075 13.0006 4.47377 13.0167C4.24577 13.0323 4.15894 13.0589 4.11733 13.0761C3.8723 13.1776 3.67763 13.3723 3.57613 13.6173C3.5589 13.6589 3.53228 13.7458 3.51672 13.9738C3.50055 14.2108 3.50001 14.5204 3.50001 15V16.3C3.50001 16.8766 3.50079 17.2488 3.52394 17.5322C3.54614 17.8038 3.58381 17.9046 3.60901 17.954C3.70488 18.1422 3.85786 18.2951 4.04602 18.391C4.09547 18.4162 4.19618 18.4539 4.46785 18.4761C4.75119 18.4992 5.12346 18.5 5.70001 18.5H13C13.5523 18.5 14 18.9477 14 19.5C14 20.0523 13.5523 20.5 13 20.5H5.66145C5.13431 20.5 4.67955 20.5 4.30498 20.4694C3.90964 20.4371 3.51642 20.3658 3.13804 20.173C2.57356 19.8854 2.11461 19.4265 1.82699 18.862C1.6342 18.4836 1.56288 18.0904 1.53058 17.695C1.49998 17.3205 1.49999 16.8657 1.50001 16.3386L1.50001 14.968C1.5 14.5294 1.49999 14.1509 1.52136 13.8376C1.54387 13.5078 1.59337 13.1779 1.72837 12.852C2.03286 12.1169 2.61688 11.5329 3.35196 11.2284C3.67789 11.0934 4.0078 11.0439 4.33763 11.0214C4.65089 11 5.02937 11 5.46802 11ZM17.7769 16H21.2231C21.3423 16 21.4845 15.9999 21.6098 16.0101C21.7551 16.022 21.9631 16.0525 22.181 16.1635C22.4632 16.3073 22.6927 16.5368 22.8365 16.819C22.9476 17.037 22.978 17.245 22.9899 17.3902C23.0001 17.5155 23.0001 17.6577 23 17.7769C23 17.7847 23 17.7924 23 17.8V21.2C23 21.2076 23 21.2153 23 21.2232C23.0001 21.3423 23.0001 21.4845 22.9899 21.6098C22.978 21.7551 22.9476 21.9631 22.8365 22.181C22.6927 22.4632 22.4632 22.6927 22.181 22.8365C21.9631 22.9476 21.7551 22.978 21.6098 22.9899C21.4845 23.0001 21.3423 23.0001 21.2232 23C21.2153 23 21.2076 23 21.2 23H17.8C17.7924 23 17.7847 23 17.7769 23C17.6577 23.0001 17.5155 23.0001 17.3902 22.9899C17.245 22.978 17.037 22.9476 16.819 22.8365C16.5368 22.6927 16.3073 22.4632 16.1635 22.181C16.0525 21.9631 16.022 21.7551 16.0101 21.6098C15.9999 21.4845 16 21.3423 16 21.2231V17.7769C16 17.6578 15.9999 17.5155 16.0101 17.3902C16.022 17.245 16.0525 17.037 16.1635 16.819C16.3073 16.5368 16.5368 16.3073 16.819 16.1635C17.037 16.0525 17.245 16.022 17.3902 16.0101C17.5155 15.9999 17.6578 16 17.7769 16ZM18 18V21H21V18H18Z"}));export{t as S,l as a};
|
@@ -1 +1 @@
|
|
1
|
-
import{
|
1
|
+
import{y as o,F as r,E as i}from"./index-BacoJBEQ.js";import{c as u}from"./@tanstack-C0SeHZng.js";async function c({runId:e}){const a=o(i.runs.detail(e)),t=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!t.ok){const s=await t.json().then(n=>n.detail).catch(()=>`Failed to delete run ${e}`);throw new r({status:t.status,statusText:t.statusText,message:s})}return t.json()}function d(e){return u({mutationFn:c,...e})}export{d as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e}from"./@radix-
|
1
|
+
import{r as e}from"./@radix-C_LirfyT.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:"M15 4C14.4477 4 14 3.55228 14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L14.7071 10.7071C14.3166 11.0976 13.6834 11.0976 13.2929 10.7071C12.9024 10.3166 12.9024 9.68342 13.2929 9.29289L18.5858 4H15ZM10.7071 13.2929C11.0976 13.6834 11.0976 14.3166 10.7071 14.7071L5.41421 20H9C9.55228 20 10 20.4477 10 21C10 21.5523 9.55228 22 9 22H3C2.73478 22 2.48043 21.8946 2.29289 21.7071C2.10536 21.5196 2 21.2652 2 21L2 15C2 14.4477 2.44772 14 3 14C3.55229 14 4 14.4477 4 15L4 18.5858L9.29289 13.2929C9.68342 12.9024 10.3166 12.9024 10.7071 13.2929Z"}));export{t as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as C}from"./@radix-
|
1
|
+
import{r as C}from"./@radix-C_LirfyT.js";const l=e=>C.createElement("svg",{viewBox:"0 0 20 14",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29898 3.86908C4.04374 4.91672 3.16532 6.14781 2.72143 6.85066C2.69198 6.89729 2.67138 6.92996 2.65417 6.95831C2.64281 6.97702 2.63531 6.98996 2.63029 6.99898C2.63029 6.99932 2.63029 6.99966 2.63029 6.99999C2.63029 7.00033 2.63029 7.00067 2.63029 7.001C2.63531 7.01003 2.64281 7.02297 2.65417 7.04168C2.67138 7.07003 2.69198 7.1027 2.72143 7.14933C3.16532 7.85218 4.04374 9.08327 5.29898 10.1309C6.55226 11.1769 8.13098 12 10.0004 12C11.8699 12 13.4486 11.1769 14.7019 10.1309C15.9571 9.08327 16.8355 7.85218 17.2794 7.14933C17.3089 7.1027 17.3295 7.07003 17.3467 7.04168C17.358 7.02297 17.3655 7.01002 17.3705 7.001C17.3705 7.00067 17.3705 7.00033 17.3705 6.99999C17.3705 6.99966 17.3705 6.99932 17.3705 6.99899C17.3655 6.98997 17.358 6.97702 17.3467 6.95831C17.3295 6.92996 17.3089 6.89729 17.2794 6.85066C16.8355 6.14781 15.9571 4.91672 14.7019 3.86908C13.4486 2.82308 11.8699 1.99999 10.0004 1.99999C8.13097 1.99999 6.55226 2.82308 5.29898 3.86908ZM4.23104 2.58952C5.67154 1.38726 7.61569 0.333328 10.0004 0.333328C12.3851 0.333328 14.3293 1.38726 15.7698 2.58952C17.2083 3.79014 18.1946 5.17857 18.6886 5.9607C18.6951 5.97104 18.7018 5.98159 18.7086 5.99236C18.8067 6.14664 18.9339 6.34696 18.9983 6.62764C19.0502 6.85426 19.0502 7.14573 18.9983 7.37235C18.9339 7.65303 18.8067 7.85335 18.7086 8.00763C18.7018 8.01841 18.6951 8.02895 18.6886 8.03929C18.1946 8.82142 17.2083 10.2098 15.7698 11.4105C14.3293 12.6127 12.3851 13.6667 10.0004 13.6667C7.61569 13.6667 5.67154 12.6127 4.23104 11.4105C2.7925 10.2098 1.80622 8.82142 1.31227 8.03929C1.30574 8.02895 1.29904 8.01841 1.2922 8.00764C1.19418 7.85335 1.06692 7.65303 1.00258 7.37235C0.950637 7.14573 0.950637 6.85426 1.00258 6.62764C1.06692 6.34696 1.19418 6.14664 1.2922 5.99235C1.29904 5.98158 1.30574 5.97104 1.31227 5.9607C1.80622 5.17857 2.7925 3.79014 4.23104 2.58952ZM10.0004 5.33333C9.07994 5.33333 8.33375 6.07952 8.33375 6.99999C8.33375 7.92047 9.07994 8.66666 10.0004 8.66666C10.9209 8.66666 11.6671 7.92047 11.6671 6.99999C11.6671 6.07952 10.9209 5.33333 10.0004 5.33333ZM6.66708 6.99999C6.66708 5.15905 8.15947 3.66666 10.0004 3.66666C11.8414 3.66666 13.3338 5.15905 13.3338 6.99999C13.3338 8.84094 11.8414 10.3333 10.0004 10.3333C8.15947 10.3333 6.66708 8.84094 6.66708 6.99999Z"}));export{l as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as C}from"./@radix-
|
1
|
+
import{r as C}from"./@radix-C_LirfyT.js";const l=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:"M8.7587 1L14 1C14.2652 1 14.5196 1.10536 14.7071 1.29289L20.7071 7.29289C20.8946 7.48043 21 7.73478 21 8V17.2413C21 18.0463 21 18.7106 20.9558 19.2518C20.9099 19.8139 20.8113 20.3306 20.564 20.816C20.1805 21.5686 19.5686 22.1805 18.816 22.564C18.3306 22.8113 17.8139 22.9099 17.2518 22.9558C16.7106 23 16.0463 23 15.2413 23H8.75868C7.95372 23 7.28936 23 6.74817 22.9558C6.18608 22.9099 5.66937 22.8113 5.18404 22.564C4.43139 22.1805 3.81947 21.5686 3.43597 20.816C3.18868 20.3306 3.09012 19.8139 3.04419 19.2518C2.99998 18.7106 2.99999 18.0463 3 17.2413V6.7587C2.99999 5.95373 2.99998 5.28937 3.04419 4.74817C3.09012 4.18608 3.18868 3.66937 3.43597 3.18404C3.81947 2.43139 4.43139 1.81947 5.18404 1.43597C5.66937 1.18868 6.18608 1.09012 6.74817 1.04419C7.28937 0.999977 7.95373 0.999988 8.7587 1ZM6.91104 3.03755C6.47262 3.07337 6.24842 3.1383 6.09202 3.21799C5.7157 3.40973 5.40973 3.7157 5.21799 4.09202C5.1383 4.24842 5.07337 4.47262 5.03755 4.91104C5.00078 5.36113 5 5.94342 5 6.8V17.2C5 18.0566 5.00078 18.6389 5.03755 19.089C5.07337 19.5274 5.1383 19.7516 5.21799 19.908C5.40973 20.2843 5.7157 20.5903 6.09202 20.782C6.24842 20.8617 6.47262 20.9266 6.91104 20.9624C7.36113 20.9992 7.94342 21 8.8 21H15.2C16.0566 21 16.6389 20.9992 17.089 20.9624C17.5274 20.9266 17.7516 20.8617 17.908 20.782C18.2843 20.5903 18.5903 20.2843 18.782 19.908C18.8617 19.7516 18.9266 19.5274 18.9624 19.089C18.9992 18.6389 19 18.0566 19 17.2V9.00007L15.5681 9.00007C15.3157 9.0001 15.0699 9.00013 14.8618 8.98313C14.6332 8.96445 14.3634 8.92038 14.092 8.78208C13.7157 8.59034 13.4097 8.28438 13.218 7.90805C13.0797 7.63663 13.0356 7.3669 13.0169 7.1383C12.9999 6.93014 13 6.68434 13 6.43195L13 3H8.8C7.94342 3 7.36113 3.00078 6.91104 3.03755ZM15 4.41421L17.5859 7.00007H15.6C15.3035 7.00007 15.1412 6.99929 15.0246 6.98977C15.02 6.98939 15.0156 6.98901 15.0114 6.98862C15.0111 6.98447 15.0107 6.98008 15.0103 6.97544C15.0008 6.85885 15 6.6966 15 6.40007V4.41421ZM7 9C7 8.44772 7.44772 8 8 8H10C10.5523 8 11 8.44772 11 9C11 9.55229 10.5523 10 10 10H8C7.44772 10 7 9.55229 7 9ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM7 17C7 16.4477 7.44772 16 8 16H16C16.5523 16 17 16.4477 17 17C17 17.5523 16.5523 18 16 18H8C7.44772 18 7 17.5523 7 17Z"}));export{l as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{bk as C,a2 as O,at as T,z as i,O as R,Q as z,R as $,U as E,B as F,aF as I,a_ as A,a$ as J,b0 as V,b1 as k,az as q,b2 as B,I as b,bs as P}from"./index-BacoJBEQ.js";import{j as t}from"./@radix-C_LirfyT.js";import{S as _}from"./plus-cI8zD2xh.js";import{S as D}from"./trash-HKxXWbSG.js";import{a as d,b as H,C as x}from"./index.esm-COnaHLSh.js";import{S as U}from"./info-CyMih3vQ.js";function Z(e){return e.type==="string"}function K(e){return e.type==="string"&&e.enum!==void 0}function M(e){return e.type==="string"&&!!e.sensitive}function S(e){return e.type==="boolean"}function v(e){return e.type==="object"}function N(e){return e.type==="array"}function Q(e){return e.type==="integer"}function Y(e){var s;return((s=e.enum)==null?void 0:s.map(n=>n.toString()))||[]}function j(e,s){if(!e.$ref||!s)return e;const n=e.$ref.replace("#/$defs/",""),a=s[n];return a||console.error(`Could not resolve $ref: ${e.$ref}`),a}function G(e,s){return e.title?e.title:T(s)}function me(e,s){const n=Object.entries(e.properties||{}).reduce((a,[o,r])=>{let l="";return r.default?S(r)?l=r.default:v(r)?l=JSON.stringify(r.default):N(r)?l=r.default:l=r.default.toString():N(r)&&(l=[]),{...a,[o]:l}},{});return s&&Object.entries(s).forEach(([a,o])=>{var l;const r=(l=e.properties)==null?void 0:l[a];r&&S(r)?n[a]=o==="True"?!0:o==="False"?!1:!!o:n[a]=C(o)?o.map(c=>JSON.stringify(c)):O(o)?JSON.stringify(o):o}),n}function xe(e){const s=Object.keys(e).reduce((n,a)=>(n[a]=i.string().trim().min(1),n),{});return i.object(s)}function je(e){if(!e.properties)return i.object({});const s=e.required||[],n=e.properties,a=Object.keys(n).reduce((o,r)=>{const l=n[r];if(!l)return o;const c=L(r,s);return o[r]=w(l,e.$defs,c),o},{});return i.object(a)}function w(e,s,n,a=!1){let o=y(e,s);if(o.anyOf){const l=o.anyOf.find(c=>c.type!==null);l&&(o=y(l,s))}switch(o.allOf&&(o=y(o.allOf[0],s)),o.type){case"string":return n?i.string().trim():i.string().trim().min(1,"Required");case"boolean":return n?i.union([i.literal(""),i.boolean()]):i.boolean();case"array":{if(a)return n?i.union([i.literal(""),h]):h;const l=i.array(w(o.items||{},s,!1,!0));return n?l:l.min(1)}case"object":return n?i.union([i.literal(""),h]):h;case"integer":return n?i.union([i.literal(""),i.preprocess(l=>Number(l),i.number().int())]):i.preprocess(l=>Number(l),i.number().int());default:return n?i.union([i.literal(""),i.string()]):i.string().min(1,"Required")}}function L(e,s){return!s.includes(e)}const h=i.string().refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:"Invalid JSON"}).transform(e=>e===""?e:JSON.parse(e));function y(e,s){if(!e.$ref||!s)return e;const n=e.$ref.split("/").pop();return!n||!s[n]?e:s[n]}function W({schema:e,fieldName:s}){const n=e.description;return n?t.jsx(R,{children:t.jsxs(z,{children:[t.jsx($,{children:t.jsx(U,{className:"size-4 shrink-0 fill-theme-text-secondary"})}),t.jsx(E,{className:"z-20 max-w-[400px] bg-theme-surface-primary p-5 text-text-sm text-theme-text-primary",children:t.jsxs("div",{className:"space-y-4",children:[t.jsx("p",{className:"w-fit rounded-sm bg-primary-25 px-1 py-0.5 font-mono text-primary-400",children:s}),t.jsx("p",{children:n})]})})]})}):null}function f({label:e,isOptional:s,schema:n,fieldName:a}){return t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs("p",{children:[e,!s&&t.jsx("span",{className:"text-theme-text-error","aria-label":"required",children:"*"})]}),n&&a&&t.jsx(W,{schema:n,fieldName:a})]})}function X({name:e,label:s,isOptional:n,schema:a,definitions:o}){const r=d(),{fields:l,append:c,remove:u}=H({name:e,control:r.control});return t.jsxs("div",{className:"space-y-3",children:[!!s&&t.jsx("label",{className:"text-text-sm",children:t.jsx(f,{label:s,isOptional:n,schema:a,fieldName:e})}),t.jsx("ul",{className:"space-y-5",children:l.map((p,m)=>t.jsxs("li",{className:"flex w-full items-center gap-4 [&>div]:w-full",children:[t.jsx(oe,{isNested:!0,name:`${e}.${m}`,schema:a,isOptional:n,definitions:o}),t.jsxs(F,{className:"h-7 w-7",emphasis:"subtle",size:"sm",type:"button",onClick:()=>u(m),children:[t.jsx(D,{className:"h-5 w-5 fill-primary-900"}),t.jsx("span",{className:"sr-only",children:"remove"})]})]},p.id))}),t.jsxs(F,{className:"h-7 w-7",emphasis:"subtle",type:"button",onClick:()=>c(""),children:[t.jsx(_,{className:"h-5 w-5 fill-primary-900"}),t.jsx("p",{className:"sr-only",children:"Add Item"})]})]})}function ee({name:e,isOptional:s,label:n,schema:a}){var l;const o=d(),r=o.formState.errors[e];return t.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[!!n&&t.jsx("label",{htmlFor:e,className:"text-text-sm",children:t.jsx(f,{label:n,isOptional:s,schema:a,fieldName:e})}),t.jsx(x,{control:o.control,name:e,render:({field:{onChange:c,value:u,...p}})=>t.jsx(I,{id:e,checked:u,onCheckedChange:m=>c(m),...p})}),r&&t.jsx("p",{className:"text-text-sm text-error-500",children:(l=r.message)==null?void 0:l.toString()})]})}function re({name:e,label:s,isOptional:n,schema:a,enumValues:o}){var c;const r=d(),l=r.formState.errors[e];return t.jsxs("div",{className:"space-y-0.5",children:[!!s&&t.jsx("label",{htmlFor:e,className:"text-text-sm",children:t.jsx(f,{label:s,isOptional:n,schema:a,fieldName:e})}),t.jsx(x,{control:r.control,name:e,render:({field:{onChange:u,ref:p,...m}})=>t.jsxs(A,{...m,onValueChange:u,children:[t.jsx(J,{"data-error":l?"true":"false",className:"h-7 max-w-full truncate border border-neutral-300 px-2 text-left text-text-sm data-[error=true]:border-error-500",children:t.jsx(V,{placeholder:"Select Option"})}),t.jsx(k,{children:t.jsx(q,{viewportClassName:"max-h-[300px]",children:o.map(g=>t.jsx(B,{className:"space-x-2",value:g,children:g},g))})})]})}),l&&t.jsx("p",{className:"text-text-sm text-error-500",children:(c=l.message)==null?void 0:c.toString()})]})}function te({name:e,isOptional:s,label:n,schema:a}){var l;const o=d(),r=o.formState.errors[e];return t.jsxs("div",{className:"space-y-0.5",children:[!!n&&t.jsx("label",{htmlFor:e,className:"text-text-sm",children:t.jsx(f,{label:n,isOptional:s,schema:a,fieldName:e})}),t.jsx(x,{control:o.control,name:e,render:({field:c})=>t.jsx(b,{inputSize:"md",className:"w-full data-[error=true]:border-error-500",id:e,...c,type:"number","data-error":r?"true":"false"})}),r&&t.jsx("p",{className:"text-text-sm text-error-500",children:(l=r.message)==null?void 0:l.toString()})]})}function se({name:e,label:s,isOptional:n,schema:a}){var l;const o=d(),r=o.formState.errors[e];return t.jsxs("div",{className:"space-y-0.5",children:[!!s&&t.jsx("label",{htmlFor:e,className:"text-text-sm",children:t.jsx(f,{label:s,isOptional:n,schema:a,fieldName:e})}),t.jsx(x,{control:o.control,name:e,render:({field:c})=>t.jsx("textarea",{rows:4,placeholder:"Please paste your JSON",className:P({inputSize:"md",className:"h-auto w-full resize-none font-mono data-[error=true]:border-error-500"}),id:e,...c,"data-error":r?"true":"false"})}),r&&t.jsx("p",{className:"text-text-sm text-error-500",children:(l=r.message)==null?void 0:l.toString()})]})}function ne({name:e,isOptional:s,label:n,schema:a}){var l;const o=d(),r=o.formState.errors[e];return t.jsxs("div",{className:"space-y-0.5",children:[!!n&&t.jsx("label",{htmlFor:e,className:"text-text-sm",children:t.jsx(f,{label:n,isOptional:s,schema:a,fieldName:e})}),t.jsx(x,{control:o.control,name:e,render:({field:c})=>t.jsx(b,{inputSize:"md",className:"w-full data-[error=true]:border-error-500",id:e,...c,"data-error":r?"true":"false"})}),r&&t.jsx("p",{className:"text-text-sm text-error-500",children:(l=r.message)==null?void 0:l.toString()})]})}function le({name:e,label:s,isOptional:n,schema:a}){var l;const o=d(),r=o.formState.errors[e];return t.jsxs("div",{className:"space-y-0.5",children:[!!s&&t.jsx("label",{htmlFor:e,className:"text-text-sm",children:t.jsx(f,{label:s,isOptional:n,schema:a,fieldName:e})}),t.jsx(x,{control:o.control,name:e,render:({field:c})=>t.jsx(b,{placeholder:"Use {{<SECRET_NAME>.<SECRET_KEY>}} to reference a secret",inputSize:"md",className:"w-full placeholder:font-mono data-[error=true]:border-error-500",id:e,...c,type:"text","data-error":r?"true":"false"})}),r&&t.jsx("p",{className:"text-text-sm text-error-500",children:(l=r.message)==null?void 0:l.toString()})]})}function oe({schema:e,name:s,isOptional:n,definitions:a,isNested:o}){let r=j(e,a);o&&r.items&&(r=j(r.items,a)),o&&r.prefixItems&&(r=j(r.prefixItems[0],a));const l=o?"":G(r,s);if(r.anyOf){const c=r.anyOf.find(u=>u.type!==null);if(c){const u=j(c,a);r={...r,...u}}}if(r.allOf){const c=j(r.allOf[0],a);r={...r,...c}}if(K(r))return t.jsx(re,{name:s,label:l,schema:r,isOptional:n,enumValues:Y(r)});if(M(r))return t.jsx(le,{name:s,label:l,schema:r,isOptional:n});if(Q(r))return t.jsx(te,{name:s,label:l,schema:r,isOptional:n});if(Z(r))return t.jsx(ne,{name:s,label:l,schema:r,isOptional:n});if(S(r))return t.jsx(ee,{name:s,label:l,schema:r,isOptional:n});if(v(r)||N(r)&&o)return t.jsx(se,{name:s,label:l,schema:r,isOptional:n});if(N(r))return t.jsx(X,{definitions:a,name:s,label:l,schema:r,isOptional:n})}export{oe as D,me as a,L as b,je as g,xe as z};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as o,j as t}from"./@radix-C_LirfyT.js";import{S as u}from"./check-circle-mnEgPhPF.js";import{bo as d,j as p,B as h,r as x,z as r}from"./index-BacoJBEQ.js";import{f,L as g}from"./@react-router-BSsrkPOd.js";import{a as w}from"./UpdatePasswordSchemas-Da5RndbV.js";const c=o.createContext(null);function P({children:e,initialStep:s=1}){const[n,a]=o.useState(s);return t.jsx(c.Provider,{value:{surveyStep:n,setSurveyStep:a},children:e})}function y(){const e=o.useContext(c);if(e===null)throw new Error("useSurveyContext must be used within an SurveyProvider");return e}function L({stepAmount:e}){const{surveyStep:s}=y();return s>e?null:t.jsx("ol",{className:"flex flex-wrap justify-center gap-1 pb-5","aria-label":"progress",children:Array.from({length:e},(n,a)=>t.jsx("li",{"aria-current":s===a+1?"step":void 0,className:`h-0.5 w-[90px] rounded-rounded ${s===a+1?"bg-primary-100":s>a?"bg-primary-300":"bg-neutral-200"}`},a))})}const S=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L16.5858 13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H16.5858L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289Z"}));function R({username:e,subHeader:s,displayBody:n=!0}){const[a]=f(),i=a.get("redirect"),m=i&&`${window.location.origin}${i}`,l=d.safeParse(m);return t.jsxs(p,{className:"flex max-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[t.jsx(u,{className:"h-[120px] w-[120px] fill-theme-text-success"}),t.jsxs("div",{className:"space-y-3 text-center",children:[t.jsxs("p",{className:"text-display-xs font-semibold",children:["Congratulations!",t.jsx("br",{}),s]}),n&&t.jsxs("p",{className:"text-theme-text-secondary",children:["You can log in to the dashboard with your username"," ",t.jsx("span",{className:"font-semibold text-theme-text-primary",children:e})," and your password to start exploring!"]}),t.jsx(h,{className:"inline-flex",size:"md",intent:"primary",asChild:!0,children:t.jsxs(g,{to:l.success?l.data:x.projects.overview,children:[t.jsx("span",{children:"Go to Dashboard"}),t.jsx(S,{className:"h-5 w-5 fill-white"})]})})]})]})}const k=r.object({fullName:r.string().min(1),email:r.union([r.string().email(),r.literal("")]),getUpdates:r.boolean()}).refine(e=>e.getUpdates?e.email!=="":!0),B=r.object({primaryRole:r.string().min(1),otherVal:r.string().optional()}).refine(e=>e.primaryRole==="other"?e.otherVal!=="":!0),E=r.object({aiTypes:r.enum(["traditional_ml","deep_learning","computer_vision","llm_and_foundation_models","ai_agents_and_workflows","hybrid_applications"]).array().min(1),biggestChallenge:r.string().array().optional()}).refine(e=>{var n;return e.aiTypes.some(a=>a==="llm_and_foundation_models"||a==="ai_agents_and_workflows")?((n=e.biggestChallenge)==null?void 0:n.length)??!1:!0}),F=r.object({serverName:r.string().optional()});function v(e=!1){return w.extend({username:r.string()}).refine(s=>s.newPassword===s.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"}).refine(s=>e?s.username.length>0:!0)}v();export{L as S,R as a,P as b,F as c,k as d,E as e,v as g,B as p,y as u};
|
Binary file
|
@@ -1 +1 @@
|
|
1
|
-
import{r as C}from"./@radix-
|
1
|
+
import{r as C}from"./@radix-C_LirfyT.js";const t=e=>C.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12.2581 8.02432C11.7926 7.94447 11.3138 8.03195 10.9066 8.27127C10.4994 8.51058 10.1901 8.88629 10.0333 9.33184C9.85006 9.85283 9.27915 10.1266 8.75816 9.94333C8.23717 9.76006 7.96339 9.18915 8.14667 8.66816C8.46014 7.77705 9.07887 7.02563 9.89327 6.547C10.7077 6.06837 11.6652 5.89341 12.5962 6.05311C13.5273 6.2128 14.3718 6.69686 14.9801 7.41953C15.5883 8.14205 15.9213 9.05648 15.92 10.0009C15.9195 11.5313 14.7849 12.5419 13.9747 13.0821C13.5391 13.3725 13.1106 13.586 12.7949 13.7263C12.6356 13.7971 12.5015 13.8508 12.4049 13.8876C12.3565 13.9061 12.3173 13.9203 12.2887 13.9305L12.254 13.9427L12.2429 13.9464L12.239 13.9478L12.2375 13.9483C12.2372 13.9484 12.2362 13.9487 11.92 13L12.2362 13.9487C11.7123 14.1233 11.146 13.8402 10.9713 13.3162C10.7967 12.7925 11.0796 12.2263 11.6032 12.0515L11.6187 12.0461C11.6341 12.0406 11.6593 12.0314 11.6929 12.0186C11.7603 11.9929 11.8606 11.9529 11.9826 11.8987C12.2294 11.789 12.5509 11.6275 12.8653 11.4179C13.5549 10.9582 13.92 10.4691 13.92 10L13.92 9.99851C13.9207 9.52619 13.7542 9.06886 13.4501 8.70753C13.1459 8.34619 12.7236 8.10417 12.2581 8.02432ZM11 17C11 16.4477 11.4477 16 12 16H12.01C12.5623 16 13.01 16.4477 13.01 17C13.01 17.5523 12.5623 18 12.01 18H12C11.4477 18 11 17.5523 11 17Z"}));export{t as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,j as l}from"./@radix-C_LirfyT.js";const a=t=>e.createElement("svg",{width:182,height:104,viewBox:"0 0 182 104",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{d:"M35 12C35 7.58172 38.5817 4 43 4H147C151.418 4 155 7.58172 155 12V96C155 100.418 151.418 104 147 104H43C38.5817 104 35 100.418 35 96V12Z",fill:"#F1EBFE"}),e.createElement("path",{d:"M1 56H181",stroke:"#7A3EF4",strokeLinecap:"round"}),e.createElement("path",{d:"M16 61H166",stroke:"#7A3EF4",strokeLinecap:"round"}),e.createElement("g",{clipPath:"url(#clip0_8218_459)"},e.createElement("path",{d:"M31 8C31 3.58172 34.5817 0 39 0H143C147.418 0 151 3.58172 151 8V92C151 96.4183 147.418 100 143 100H39C34.5817 100 31 96.4183 31 92V8Z",fill:"white"}),e.createElement("mask",{id:"path-6-inside-1_8218_459",fill:"white"},e.createElement("path",{d:"M31 0H151V12H31V0Z"})),e.createElement("path",{d:"M31 0H151V12H31V0Z",fill:"#FBF9FF"}),e.createElement("path",{d:"M151 11H31V13H151V11Z",fill:"#7A3EF4",mask:"url(#path-6-inside-1_8218_459)"}),e.createElement("circle",{cx:41,cy:6,r:2,fill:"#AF8BF8"}),e.createElement("circle",{cx:47,cy:6,r:2,fill:"#AF8BF8"}),e.createElement("circle",{cx:53,cy:6,r:2,fill:"#AF8BF8"})),e.createElement("path",{d:"M31.5 8C31.5 3.85786 34.8579 0.5 39 0.5H143C147.142 0.5 150.5 3.85786 150.5 8V92C150.5 96.1421 147.142 99.5 143 99.5H39C34.8579 99.5 31.5 96.1421 31.5 92V8Z",stroke:"#7A3EF4"}),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_8218_459"},e.createElement("path",{d:"M31 8C31 3.58172 34.5817 0 39 0H143C147.418 0 151 3.58172 151 8V92C151 96.4183 147.418 100 143 100H39C34.5817 100 31 96.4183 31 92V8Z",fill:"white"}))));function c({icon:t}){return l.jsxs("div",{className:"relative",children:[l.jsx(a,{}),l.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-rounded bg-primary-25 p-3",children:t})]})}export{c as F};
|
@@ -1 +1 @@
|
|
1
|
-
import{i as y,q as i}from"./@tanstack-
|
1
|
+
import{i as y,q as i}from"./@tanstack-C0SeHZng.js";import{y as l,E as c,X as p,v as u,Y as f,F as h}from"./index-BacoJBEQ.js";async function o(t){const a=l(c.flavors.all)+(t?`?${p(t)}`:""),e=await u(a,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&f(),!e.ok){const s=await e.json().then(r=>Array.isArray(r.detail)?r.detail[1]:r.detail).catch(()=>"Error while fetching flavors");throw new h({status:e.status,statusText:e.statusText,message:s})}return e.json()}async function v(t){const a=l(c.flavors.detail(t)),e=await u(a,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&f(),!e.ok){const s=await e.json().then(r=>Array.isArray(r.detail)?r.detail[1]:r.detail).catch(()=>`Error while fetching flavor ${t}`);throw new h({status:e.status,statusText:e.statusText,message:s})}return e.json()}const n={all:["flavors"],flavorList:t=>i({queryKey:[...n.all,t],queryFn:async()=>o(t)}),flavorDetail:t=>i({queryKey:[...n.all,t],queryFn:async()=>v(t)}),flavorListInfinite:t=>y({queryKey:[...n.all,t,"infinite"],queryFn:({pageParam:a})=>o({...t,page:a}),getNextPageParam:a=>a.index<a.total_pages?a.index+1:null,initialPageParam:1})};export{n as f};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{q as i}from"./@tanstack-C0SeHZng.js";import{y as n,E as o,X as p,v as l,Y as c,F as u}from"./index-BacoJBEQ.js";async function h({params:t}){const a=n(o.pipelines.all+"?"+p(t)),e=await l(a,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&c(),!e.ok){const r=await e.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching pipelines");throw new u({status:e.status,statusText:e.statusText,message:r})}return e.json()}const f={all:["pipelines"],pipelineList:t=>i({queryKey:[...f.all,t],queryFn:async()=>h({params:t})})};export{f as p};
|
@@ -1 +1 @@
|
|
1
|
-
import{aE as g,g as V}from"./@radix-
|
1
|
+
import{aE as g,g as V}from"./@radix-C_LirfyT.js";var h,L;function Y(){if(L)return h;L=1;var _="Expected a function",x=NaN,C="[object Symbol]",F=/^\s+|\s+$/g,M=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,R=/^0o[0-7]+$/i,W=parseInt,$=typeof g=="object"&&g&&g.Object===Object&&g,A=typeof self=="object"&&self&&self.Object===Object&&self,B=$||A||Function("return this")(),q=Object.prototype,D=q.toString,G=Math.max,P=Math.min,y=function(){return B.Date.now()};function H(e,t,i){var a,u,b,c,r,f,s=0,O=!1,d=!1,j=!0;if(typeof e!="function")throw new TypeError(_);t=I(t)||0,p(i)&&(O=!!i.leading,d="maxWait"in i,b=d?G(I(i.maxWait)||0,t):b,j="trailing"in i?!!i.trailing:j);function v(n){var o=a,m=u;return a=u=void 0,s=n,c=e.apply(m,o),c}function z(n){return s=n,r=setTimeout(l,t),O?v(n):c}function J(n){var o=n-f,m=n-s,k=t-o;return d?P(k,b-m):k}function E(n){var o=n-f,m=n-s;return f===void 0||o>=t||o<0||d&&m>=b}function l(){var n=y();if(E(n))return S(n);r=setTimeout(l,J(n))}function S(n){return r=void 0,j&&a?v(n):(a=u=void 0,c)}function K(){r!==void 0&&clearTimeout(r),s=0,a=f=u=r=void 0}function Q(){return r===void 0?c:S(y())}function T(){var n=y(),o=E(n);if(a=arguments,u=this,f=n,o){if(r===void 0)return z(f);if(d)return r=setTimeout(l,t),v(f)}return r===void 0&&(r=setTimeout(l,t)),c}return T.cancel=K,T.flush=Q,T}function p(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function U(e){return!!e&&typeof e=="object"}function X(e){return typeof e=="symbol"||U(e)&&D.call(e)==C}function I(e){if(typeof e=="number")return e;if(X(e))return x;if(p(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=p(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(F,"");var i=N.test(e);return i||R.test(e)?W(e.slice(2),i?2:8):M.test(e)?x:+e}return h=H,h}var Z=Y();const ee=V(Z);export{ee as d};
|