zenml-nightly 0.66.0.dev20240923__py3-none-any.whl → 0.66.0.dev20240928__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/cli/__init__.py +7 -0
- zenml/cli/base.py +2 -2
- zenml/cli/pipeline.py +21 -0
- zenml/cli/utils.py +14 -11
- zenml/client.py +68 -3
- zenml/config/step_configurations.py +0 -5
- zenml/constants.py +3 -0
- zenml/enums.py +2 -0
- zenml/integrations/__init__.py +1 -0
- zenml/integrations/aws/flavors/sagemaker_orchestrator_flavor.py +76 -7
- zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +370 -115
- zenml/integrations/azure/__init__.py +6 -2
- zenml/integrations/azure/orchestrators/azureml_orchestrator.py +157 -4
- zenml/integrations/constants.py +1 -0
- zenml/integrations/deepchecks/__init__.py +1 -1
- zenml/integrations/deepchecks/data_validators/deepchecks_data_validator.py +55 -14
- zenml/integrations/deepchecks/validation_checks.py +62 -5
- zenml/integrations/gcp/orchestrators/vertex_orchestrator.py +207 -18
- zenml/integrations/lightning/__init__.py +1 -1
- zenml/integrations/lightning/flavors/lightning_orchestrator_flavor.py +9 -0
- zenml/integrations/lightning/orchestrators/lightning_orchestrator.py +18 -17
- zenml/integrations/lightning/orchestrators/lightning_orchestrator_entrypoint.py +2 -6
- zenml/integrations/mlflow/steps/mlflow_registry.py +2 -0
- zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py +38 -26
- zenml/integrations/skypilot_kubernetes/__init__.py +52 -0
- zenml/integrations/skypilot_kubernetes/flavors/__init__.py +26 -0
- zenml/integrations/skypilot_kubernetes/flavors/skypilot_orchestrator_kubernetes_vm_flavor.py +125 -0
- zenml/integrations/skypilot_kubernetes/orchestrators/__init__.py +25 -0
- zenml/integrations/skypilot_kubernetes/orchestrators/skypilot_kubernetes_vm_orchestrator.py +74 -0
- zenml/integrations/tensorboard/visualizers/tensorboard_visualizer.py +1 -1
- zenml/models/v2/base/filter.py +315 -149
- zenml/models/v2/base/scoped.py +5 -2
- zenml/models/v2/core/artifact_version.py +69 -8
- zenml/models/v2/core/model.py +43 -6
- zenml/models/v2/core/model_version.py +49 -1
- zenml/models/v2/core/model_version_artifact.py +18 -3
- zenml/models/v2/core/model_version_pipeline_run.py +18 -4
- zenml/models/v2/core/pipeline.py +108 -1
- zenml/models/v2/core/pipeline_run.py +172 -21
- zenml/models/v2/core/run_template.py +53 -1
- zenml/models/v2/core/stack.py +33 -5
- zenml/models/v2/core/step_run.py +7 -0
- zenml/new/pipelines/pipeline.py +4 -0
- zenml/new/pipelines/run_utils.py +4 -1
- zenml/orchestrators/base_orchestrator.py +41 -12
- zenml/stack/stack.py +11 -2
- zenml/utils/env_utils.py +54 -1
- zenml/utils/string_utils.py +50 -0
- zenml/zen_server/cloud_utils.py +33 -8
- zenml/zen_server/dashboard/assets/{404-iO8vpun1.js → 404-Y50hSt65.js} +1 -1
- zenml/zen_server/dashboard/assets/{@reactflow-B6kq9fJZ.js → @reactflow-ytavUpwh.js} +1 -1
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-xLR9a1iw.js +1 -0
- zenml/zen_server/dashboard/assets/{CodeSnippet-DNWdQmbo.js → CodeSnippet-IxXNxUDa.js} +2 -2
- zenml/zen_server/dashboard/assets/{CollapsibleCard-B2OVjWYE.js → CollapsibleCard-BhutZbBL.js} +1 -1
- zenml/zen_server/dashboard/assets/{Commands-DsoaVElZ.js → Commands-Bf-rd1z8.js} +1 -1
- zenml/zen_server/dashboard/assets/ComponentBadge-gKR1OIwG.js +1 -0
- zenml/zen_server/dashboard/assets/{CopyButton-BqE_-PHO.js → CopyButton-DcFHidFJ.js} +1 -1
- zenml/zen_server/dashboard/assets/{CsvVizualization-Dyasr2jU.js → CsvVizualization-QSbjrfxw.js} +1 -1
- zenml/zen_server/dashboard/assets/{DialogItem-Cz1VLRwa.js → DialogItem-Cd3HqST4.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-DorJD_va.js → Error-BhwdmqK7.js} +1 -1
- zenml/zen_server/dashboard/assets/{ExecutionStatus-CIfQTutR.js → ExecutionStatus-D6r6aK8J.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-CmfvtNeq.js → Helpbox-0pBpTwTm.js} +1 -1
- zenml/zen_server/dashboard/assets/Infobox-BTK_EUKT.js +1 -0
- zenml/zen_server/dashboard/assets/{InlineAvatar-Ds2ZFHPc.js → InlineAvatar-CA3DFMcM.js} +1 -1
- zenml/zen_server/dashboard/assets/Partials-QLOZw624.js +1 -0
- zenml/zen_server/dashboard/assets/{ProviderIcon-BOQJgapd.js → ProviderIcon-C16CCIN4.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderRadio-BsYBw9YA.js → ProviderRadio-D3FuCHf3.js} +1 -1
- zenml/zen_server/dashboard/assets/{SearchField-W3GXpLlI.js → SearchField-BzmfxS0L.js} +1 -1
- zenml/zen_server/dashboard/assets/SecretTooltip-BaMwHF-Q.js +1 -0
- zenml/zen_server/dashboard/assets/{SetPassword-B-0a8UCj.js → SetPassword-DuIC65H9.js} +1 -1
- zenml/zen_server/dashboard/assets/{Tick-i1DYsVcX.js → Tick-DJTCF0Re.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-C6Zb7ASL.js → UpdatePasswordSchemas-CUm-DMpw.js} +1 -1
- zenml/zen_server/dashboard/assets/UsageReason-CKw0juLF.js +1 -0
- zenml/zen_server/dashboard/assets/{WizardFooter-BHbO7zOa.js → WizardFooter-Cv9ApYWU.js} +1 -1
- zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-BBEe6I9-.js → all-pipeline-runs-query-BA3R2Sey.js} +1 -1
- zenml/zen_server/dashboard/assets/{cloud-only-BuP4Kt_7.js → cloud-only-BB4BVa6E.js} +1 -1
- zenml/zen_server/dashboard/assets/{create-stack-B2x2d4r1.js → create-stack-F29xAUEx.js} +1 -1
- zenml/zen_server/dashboard/assets/delete-run-CP0pcJ3U.js +1 -0
- zenml/zen_server/dashboard/assets/{form-schemas-Bap0f854.js → form-schemas-BKXwSDK2.js} +1 -1
- zenml/zen_server/dashboard/assets/index-BhJ6ZJxv.css +1 -0
- zenml/zen_server/dashboard/assets/{index-B9wVwe7u.js → index-Ci0nJ8EZ.js} +5 -5
- zenml/zen_server/dashboard/assets/{index-DFi8BroH.js → index-D-mtoBj3.js} +1 -1
- zenml/zen_server/dashboard/assets/{login-mutation-DwxUz8VA.js → login-mutation-ax6iL2Mb.js} +1 -1
- zenml/zen_server/dashboard/assets/{not-found-D5i9DunU.js → not-found-DbjllLY_.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-oS4hqS8M.js → page-3qPX9WYH.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-iwoJnwPv.js → page-6mfzecin.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DGMa3ZQL.js → page-8kYmrh0B.js} +1 -1
- zenml/zen_server/dashboard/assets/page-B1n7_W7z.js +1 -0
- zenml/zen_server/dashboard/assets/page-BDg1F-Ug.js +6 -0
- zenml/zen_server/dashboard/assets/{page-xQG6GmFJ.js → page-BXarY9K2.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BZZhLo2u.js +1 -0
- zenml/zen_server/dashboard/assets/page-Bbf_oBjn.js +1 -0
- zenml/zen_server/dashboard/assets/page-BjjuBvZG.js +9 -0
- zenml/zen_server/dashboard/assets/{page-J0s8Sq3N.js → page-BukXK1Aa.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CHaQkFK5.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BitfWsiW.js → page-CKHNAq7z.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DE03uZZR.js → page-CS0SYFK8.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-WCQ659by.js → page-CvKnNK1S.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CrSdkteO.js → page-DGM1CbYT.js} +2 -2
- zenml/zen_server/dashboard/assets/{page-DQGCHKrQ.js → page-DMSLXKGT.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DOmIZ2ra.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DgM-N9RL.js → page-DRfcRK1w.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DYVmJ9_w.js +3 -0
- zenml/zen_server/dashboard/assets/{page-BiF8hLbO.js → page-DcTjHmYZ.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DuqYMYmH.js +1 -0
- zenml/zen_server/dashboard/assets/page-Dwow2doB.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DQdwZZ9x.js → page-HkVBdZl6.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-bimkItOg.js → page-MAXyfXBq.js} +1 -1
- zenml/zen_server/dashboard/assets/page-miU2rhYG.js +1 -0
- zenml/zen_server/dashboard/assets/page-p0BhSAWx.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DFCK65G9.js → page-uORspyRu.js} +1 -1
- zenml/zen_server/dashboard/assets/persist-BxIR2XZs.js +1 -0
- zenml/zen_server/dashboard/assets/{persist-xsYgVtR1.js → persist-CfJMar_k.js} +1 -1
- zenml/zen_server/dashboard/assets/sharedSchema-vub0rii3.js +14 -0
- zenml/zen_server/dashboard/assets/stack-detail-query-DQcyzG-2.js +1 -0
- zenml/zen_server/dashboard/assets/tick-circle-m-hJG8i9.js +1 -0
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-DNqmQXDM.js → update-server-settings-mutation-FGVP7X2U.js} +1 -1
- zenml/zen_server/dashboard/assets/{url-DwbuKk1b.js → url-CbAPzsmT.js} +1 -1
- zenml/zen_server/dashboard/index.html +4 -4
- zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
- zenml/zen_server/dashboard_legacy/index.html +1 -1
- zenml/zen_server/dashboard_legacy/{precache-manifest.290b95d5b43efa3368b3dc63d20c4782.js → precache-manifest.6d320abb70db612019dda6c4948e7a90.js} +4 -4
- zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
- zenml/zen_server/dashboard_legacy/static/js/{main.840d1bf0.chunk.js → main.fa9299d5.chunk.js} +2 -2
- zenml/zen_server/dashboard_legacy/static/js/{main.840d1bf0.chunk.js.map → main.fa9299d5.chunk.js.map} +1 -1
- zenml/zen_server/routers/runs_endpoints.py +89 -3
- zenml/zen_stores/sql_zen_store.py +1 -0
- {zenml_nightly-0.66.0.dev20240923.dist-info → zenml_nightly-0.66.0.dev20240928.dist-info}/METADATA +8 -1
- {zenml_nightly-0.66.0.dev20240923.dist-info → zenml_nightly-0.66.0.dev20240928.dist-info}/RECORD +133 -125
- zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-BXeSvmMY.js +0 -1
- zenml/zen_server/dashboard/assets/EditSecretDialog-Du423_3U.js +0 -1
- zenml/zen_server/dashboard/assets/Infobox-BL9NOS37.js +0 -1
- zenml/zen_server/dashboard/assets/Partials-DX-8iEa1.js +0 -1
- zenml/zen_server/dashboard/assets/UsageReason-CCnzmwS8.js +0 -1
- zenml/zen_server/dashboard/assets/index-6DYjZgDn.css +0 -1
- zenml/zen_server/dashboard/assets/page-BFuJICXM.js +0 -9
- zenml/zen_server/dashboard/assets/page-CDOQLrPC.js +0 -1
- zenml/zen_server/dashboard/assets/page-CEJWu1YO.js +0 -1
- zenml/zen_server/dashboard/assets/page-CIbehp7V.js +0 -1
- zenml/zen_server/dashboard/assets/page-CLiRGfWo.js +0 -1
- zenml/zen_server/dashboard/assets/page-CV44mQn9.js +0 -1
- zenml/zen_server/dashboard/assets/page-D5F3DJjm.js +0 -1
- zenml/zen_server/dashboard/assets/page-DI-qTWrm.js +0 -1
- zenml/zen_server/dashboard/assets/page-Dt8VgzbE.js +0 -1
- zenml/zen_server/dashboard/assets/page-oSqx9dkH.js +0 -1
- zenml/zen_server/dashboard/assets/page-p3GqEAUW.js +0 -1
- zenml/zen_server/dashboard/assets/page-qvcUVPE-.js +0 -1
- zenml/zen_server/dashboard/assets/persist-mEZN_fgH.js +0 -1
- zenml/zen_server/dashboard/assets/sharedSchema-BfZcy7aP.js +0 -14
- zenml/zen_server/dashboard/assets/stack-detail-query-CU4egfhp.js +0 -1
- {zenml_nightly-0.66.0.dev20240923.dist-info → zenml_nightly-0.66.0.dev20240928.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.66.0.dev20240923.dist-info → zenml_nightly-0.66.0.dev20240928.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.66.0.dev20240923.dist-info → zenml_nightly-0.66.0.dev20240928.dist-info}/entry_points.txt +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
import{r as c,j as e}from"./@radix-DnFH_oo1.js";import{ag as A,ah as E,ai as R,F as M,l as U,m as q,i as W,r as N,j as Q,o as Y,q as G,ao as K,t as V,f as x,D as S,x as J,y as X,$ as Z,ae as ee,af as se,a6 as I,aB as b,aC as C,a2 as te,a3 as ae,a4 as re,S as u,A as P,b as z,B as ne,z as g,M as ie,U as ce,aD as le,V as oe}from"./index-B9wVwe7u.js";import{S as de}from"./plus-Bc8eLSDM.js";import{S as me}from"./refresh-hfgWPeto.js";import{S as xe,P as ue}from"./SearchField-W3GXpLlI.js";import{s as h}from"./sharedSchema-BfZcy7aP.js";import{b as he,c as pe,a as f}from"./@tanstack-QbMbTrh5.js";import{b as fe,L as k,c as je}from"./@react-router-APVeuk-U.js";import{C as v}from"./CopyButton-BqE_-PHO.js";import{D as ge}from"./DisplayDate-DkCy54Bp.js";import{I as Ne}from"./InlineAvatar-Ds2ZFHPc.js";import{S as ye}from"./dots-horizontal-C6K59vUm.js";import{D as we,S as be}from"./DialogItem-Cz1VLRwa.js";import{S as ke}from"./trash-DUWZWzse.js";import{I as y}from"./Infobox-BL9NOS37.js";import{C as p}from"./CodeSnippet-DNWdQmbo.js";import{A as ve}from"./AlertDialogDropdownItem-BXeSvmMY.js";import{C as Se}from"./CollapsibleCard-B2OVjWYE.js";import{F as Ce}from"./chevron-right-double-c9H46Kl8.js";import{e as D}from"./components-Br2ezRib.js";import{s as De}from"./url-DwbuKk1b.js";import{N as T}from"./NumberBox-CrN0_kqI.js";import{C as Te,p as F,c as Ae}from"./persist-mEZN_fgH.js";import{p as O,c as Ee}from"./persist-xsYgVtR1.js";import"./@reactflow-B6kq9fJZ.js";import"./index-5GJ5ysEZ.js";import"./stack-detail-query-CU4egfhp.js";import"./layout-Dru15_XR.js";import"./rocket-SESCGQXm.js";import"./copy-CaGlDsUy.js";import"./chevron-down-Cwb-W_B_.js";const $=c.forwardRef(({closeModal:s,name:t,...a},r)=>e.jsxs(A,{...a,ref:r,children:[e.jsx(E,{children:e.jsx(R,{children:"Update Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(Re,{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(p,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${t} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));$.displayName="UpdateStackDialog";function Re({action:s}){function t(){switch(s){case"delete":return"delete";case"update":return"update";case"describe":return"get details of"}}return e.jsx(y,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to ",t()," your stack."]})]})})})}async function Ie({stackId:s},t){const a=U(q.stacks.detail(s)),r=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json",...t?{Authorization:`Bearer ${t}`}:{}}});if(!r.ok){const n=await r.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>`Error while deleting stack ${s}`);throw new M({status:r.status,statusText:r.statusText,message:n})}return r.json()}function Pe(s){return he({...s,mutationFn:async({stackId:t})=>Ie({stackId:t})})}function ze(s){const{toast:t}=W(),a=pe(),r=fe(),n=Pe({onSuccess:async()=>{a.invalidateQueries({queryKey:h.all}),r(N.stacks.overview)},onError:l=>{t({status:"error",emphasis:"subtle",icon:e.jsx(Q,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:l.message,rounded:!0})}});function i(){n.mutate({stackId:s})}return{handleDelete:i,deleteStack:n}}const B=c.forwardRef(({closeModal:s,name:t,stackId:a,...r},n)=>{const{handleDelete:i,deleteStack:l}=ze(a);return e.jsxs(Y,{...r,className:"p-0",ref:n,children:[e.jsxs(G,{className:"m-0 py-2 pl-5 pr-3 text-text-lg font-semibold",children:["Delete ",t]}),e.jsx("div",{className:"border-y border-theme-border-moderate px-5 py-5",children:e.jsxs(K,{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(V,{onClick:()=>s==null?void 0:s(),asChild:!0,children:e.jsx(x,{intent:"secondary",children:"Cancel"})}),e.jsxs(x,{disabled:l.isPending,type:"button",onClick:()=>i(),intent:"danger",children:[l.isPending&&e.jsx("div",{role:"alert","aria-busy":"true",className:"full h-[20px] w-[20px] animate-spin rounded-rounded border-2 border-theme-text-negative border-b-theme-text-error"}),"Delete"]})]})]})});B.displayName="DeleteStackDialog";function Fe({name:s,id:t}){const[a,r]=c.useState(!1),[n,i]=c.useState(!1),l=c.useRef(null),d=c.useRef(null);function o(){d.current=l.current}function m(j){r(j),j===!1&&i(!1)}return e.jsx(S,{open:n,onOpenChange:i,children:e.jsxs(S,{children:[e.jsx(J,{className:"z-10",ref:l,children:e.jsx(ye,{className:"h-5 w-5 fill-theme-text-secondary"})}),e.jsxs(X,{hidden:a,onCloseAutoFocus:j=>{d.current&&(d.current.focus(),d.current=null,j.preventDefault())},className:"z-10",align:"end",sideOffset:1,children:[e.jsx(we,{onSelect:o,onOpenChange:m,icon:e.jsx(be,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx($,{name:s,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})}),e.jsx(ve,{onSelect:o,onOpenChange:m,icon:e.jsx(ke,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Delete",children:e.jsx(B,{stackId:t,name:s,className:"lg:min-w-[600px]",closeModal:()=>m(!1)})})]})]})})}function Oe(){return e.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:e.jsxs(Z,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[e.jsx(Ce,{className:"h-5 w-5 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Close"})]})})}const L=c.forwardRef(({name:s,children:t,type:a,...r},n)=>e.jsxs(ee,{children:[e.jsx(se,{asChild:!0,children:t}),e.jsxs(A,{className:"w-fit max-w-fit",...r,ref:n,children:[e.jsx(E,{children:e.jsx(R,{children:I(a||"")})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx($e,{type:a}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Describe your ",b(a)]}),e.jsx(p,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${C(a)} describe ${s}`})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-text-sm text-theme-text-secondary",children:["Update your ",b(a)]}),e.jsx(p,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml ${C(a)} update ${s}`})]})]})]})]}));L.displayName="ComponentFallbackDialog";function $e({type:s}){return e.jsx(y,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to manage your ",b(s),"."]})]})})})}const _=c.createContext(null);function Be({children:s}){const[t,a]=c.useState([]);return e.jsx(_.Provider,{value:{integrations:t,setIntegrations:a},children:s})}function H(){const s=c.useContext(_);if(s===null)throw new Error("useIntegrationsContext must be used within an AuthProvider");return s}function Le({children:s,stackId:t,stackName:a}){return e.jsxs(te,{children:[e.jsx(ae,{children:s}),e.jsx(re,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(Be,{children:[e.jsx(Oe,{}),e.jsx(_e,{stackId:t}),e.jsx(Ue,{name:a}),e.jsx(He,{stackId:t})]})})]})}function _e({stackId:s}){const t=f({...h.stackDetail(s)});return t.isError?null:t.isPending?e.jsx("div",{className:"p-5",children:e.jsx(u,{className:"h-6 w-full"})}):e.jsxs("div",{className:"flex items-center space-x-2 border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsx(P,{type:"square",size:"lg",children:e.jsx(z,{size:"lg",children:t.data.name[0]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:t.data.id}),e.jsx(v,{copyText:t.data.id})]}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-display-xs font-semibold",children:t.data.name})})]})]})}function He({stackId:s}){var n;const{setIntegrations:t}=H(),a=f({...h.stackDetail(s)});if(c.useEffect(()=>{var d;if(!a.data)return;const l=D((d=a.data.metadata)==null?void 0:d.components).map(o=>{var m;return(m=o.body)==null?void 0:m.integration}).filter(o=>!!o&&o!=="built-in"&&o!=="custom");l.length>=1&&t(o=>Array.from(new Set([...o,...l])))},[a.data]),a.isError)return null;if(a.isPending)return e.jsx("div",{className:"p-5",children:e.jsx(u,{className:"h-[300px] w-full"})});const r=D((n=a.data.metadata)==null?void 0:n.components);return e.jsx("ul",{className:"space-y-5 p-5",children:r.map(i=>e.jsx("li",{children:e.jsx(Me,{component:i})},i.id))})}function Me({component:s}){var t,a,r,n,i;return e.jsxs(ne,{className:"flex items-center justify-between p-5",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("img",{width:32,height:32,alt:`${(t=s.body)==null?void 0:t.flavor} logo`,src:De(((a=s.body)==null?void 0:a.logo_url)||"")}),e.jsxs("div",{children:[e.jsx(L,{type:((r=s.body)==null?void 0:r.type)||"orchestrator",name:s.name,children:e.jsx("button",{className:"text-text-xl",children:s.name})}),e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.id.split("-")[0]}),e.jsx(v,{copyText:s.id})]})]})]}),e.jsx(Te,{type:((n=s.body)==null?void 0:n.type)||"orchestrator",children:I(((i=s.body)==null?void 0:i.type)||"")})]})}function Ue({name:s}){const{integrations:t}=H();return e.jsx("section",{className:"px-5 pt-5",children:e.jsx(Se,{title:e.jsx("span",{className:"text-text-lg",children:"Set this stack"}),children:e.jsxs("ul",{className:"space-y-5",children:[e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{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(p,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack set ${s}`})]})]}),t.length>=1&&e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{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(p,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${t.join(" ")}`})]})]})]})})})}function qe(){return[{id:"name",header:"Stack",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{name:t,id:a}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(P,{type:"square",size:"md",children:e.jsx(z,{size:"md",children:t[0]})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(Le,{stackName:t,stackId:a,children:e.jsx("h2",{className:"text-text-md font-semibold",children:t})})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:a.split("-")[0]}),e.jsx(v,{copyText:a})]})]})]})}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(ge,{dateString:s()})})},{id:"author",header:"Author",accessorFn:s=>{var t;return{author:(t=s.body)==null?void 0:t.user}},cell:({getValue:s})=>{const{author:t}=s();return t?e.jsx(Ne,{username:t.name}):null}},{id:"actions",header:"",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{id:t,name:a}=s();return e.jsx(Fe,{name:a,id:t})}}]}function We({setHasResumeableStack:s}){const{success:t,data:a}=F(),r=f({...h.stackDeploymentStack({provider:(a==null?void 0:a.provider)||"aws",stack_name:(a==null?void 0:a.stackName)||"",date_start:a==null?void 0:a.timestamp}),enabled:t,throwOnError:!0});return c.useEffect(()=>{r.data&&(Ae(),s(!1))},[r.data]),!t||r.isError?null:r.isPending?e.jsx(u,{className:"h-[70px] w-full"}):e.jsx(y,{className:"w-full",children:e.jsxs("section",{className:"flex flex-wrap items-center justify-between gap-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("p",{className:"font-semibold",children:"You have a Stack provision incomplete"}),e.jsx("p",{className:"text-text-sm",children:"Return to the setup and finish the configuration on your cloud provider"})]}),e.jsx("div",{children:e.jsx(x,{className:"w-fit bg-theme-surface-primary",intent:"primary",emphasis:"subtle",asChild:!0,children:e.jsx(k,{to:N.stacks.create.newInfra,children:e.jsx("span",{children:"Review Stack"})})})})]})})}const w=1,Qe=g.object({page:g.coerce.number().min(w).optional().default(w).catch(w),name:g.string().optional(),operator:g.enum(["and","or"]).optional()});function Ye(){const[s]=je(),{page:t,name:a,operator:r}=Qe.parse({page:s.get("page")||void 0,name:s.get("name")||void 0});return{page:t,name:a,logical_operator:r}}function Ge({setHasResumeableTerraform:s}){const{success:t,data:a}=O(),r=f({...h.stackDeploymentStack({provider:(a==null?void 0:a.provider)||"aws",stack_name:(a==null?void 0:a.stackName)||"",date_start:a==null?void 0:a.timestamp}),enabled:t,throwOnError:!0});return c.useEffect(()=>{r.data&&(Ee(),s(!1))},[r.data]),!t||r.isError?null:r.isPending?e.jsx(u,{className:"h-[70px] w-full"}):e.jsx(y,{className:"w-full",children:e.jsxs("section",{className:"flex flex-wrap items-center justify-between gap-y-2",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("p",{className:"font-semibold",children:"You have a Terraform Stack provision incomplete"}),e.jsx("p",{className:"text-text-sm",children:"Return to the setup and finish the configuration on your cloud provider"})]}),e.jsx("div",{children:e.jsx(x,{className:"w-fit bg-theme-surface-primary",intent:"primary",emphasis:"subtle",asChild:!0,children:e.jsx(k,{to:N.stacks.create.terraform,children:e.jsx("span",{children:"Review Stack"})})})})]})})}function Ke(){const[s,t]=c.useState(F().success),[a,r]=c.useState(O().success),n=Ye(),{refetch:i,data:l}=f({...h.stackList({...n,sort_by:"desc:updated"}),throwOnError:!0});return e.jsx("section",{className:"p-5",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx(xe,{searchParams:n}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(x,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>i(),children:[e.jsx(me,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(x,{size:"md",asChild:!0,children:e.jsxs(k,{to:N.stacks.create.index,children:[e.jsx(de,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Stack"})]})})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[s&&e.jsx(We,{setHasResumeableStack:t}),a&&e.jsx(Ge,{setHasResumeableTerraform:r}),e.jsx("div",{className:"w-full",children:l?e.jsx(ie,{columns:qe(),data:l.items}):e.jsx(u,{className:"h-[500px] w-full"})}),l?l.total_pages>1&&e.jsx(ue,{searchParams:n,paginate:l}):e.jsx(u,{className:"h-[36px] w-[300px]"})]})]})})}function Ts(){const{setCurrentBreadcrumbData:s}=ce(),{setTourState:t,tourState:{tourActive:a}}=le();return c.useEffect(()=>{a&&t(r=>({...r,run:!0,stepIndex:r.stepIndex}))},[a]),c.useEffect(()=>{s({segment:"stacks",data:null})},[]),e.jsxs("div",{children:[e.jsx(Ve,{}),e.jsx(Ke,{})]})}function Ve(){return e.jsx(oe,{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"Stacks"})})}export{Ts as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,j as e}from"./@radix-DnFH_oo1.js";import{S as I}from"./code-browser-BJYErIjr.js";import{H as x}from"./help-CwN931fX.js";import{B as T,X as B,aH as R,c as V,S,ad as E,r as d,T as a,G as l,H as n,a0 as m,J as c,aI as P}from"./index-B9wVwe7u.js";import{c as z,L as h}from"./@react-router-APVeuk-U.js";import{C as L}from"./ProviderIcon-BOQJgapd.js";import{S as F}from"./layout-Dru15_XR.js";import"./@tanstack-QbMbTrh5.js";import"./@reactflow-B6kq9fJZ.js";import"./gcp-Dj6ntk0L.js";const _=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.56811 2C4.57873 2 4.58936 2.00001 4.60001 2.00001H5.40001C5.41065 2.00001 5.42128 2 5.4319 2C5.68429 1.99997 5.93008 1.99994 6.13824 2.01695C6.36683 2.03563 6.63656 2.07969 6.90799 2.21799C7.28431 2.40974 7.59027 2.7157 7.78202 3.09202C7.92032 3.36345 7.96438 3.63318 7.98306 3.86178C7.98669 3.90624 7.98955 3.95241 7.99179 4.00001L16.0082 4.00001C16.0105 3.95241 16.0133 3.90624 16.0169 3.86178C16.0356 3.63318 16.0797 3.36345 16.218 3.09202C16.4097 2.7157 16.7157 2.40974 17.092 2.21799C17.3634 2.07969 17.6332 2.03563 17.8618 2.01695C18.0699 1.99994 18.3157 1.99997 18.5681 2H19.4319C19.6843 1.99997 19.9301 1.99994 20.1382 2.01695C20.3668 2.03563 20.6366 2.07969 20.908 2.21799C21.2843 2.40974 21.5903 2.7157 21.782 3.09202C21.9203 3.36345 21.9644 3.63318 21.9831 3.86178C22.0001 4.06993 22 4.31571 22 4.56809V5.43192C22 5.6843 22.0001 5.93008 21.9831 6.13824C21.9644 6.36683 21.9203 6.63656 21.782 6.90799C21.5903 7.28431 21.2843 7.59027 20.908 7.78202C20.6366 7.92032 20.3668 7.96438 20.1382 7.98306C20.0938 7.98669 20.0476 7.98955 20 7.99179V11C20 11.5523 19.5523 12 19 12C18.4477 12 18 11.5523 18 11V7.99179C17.9524 7.98955 17.9062 7.98669 17.8618 7.98306C17.6332 7.96438 17.3634 7.92032 17.092 7.78202C16.7157 7.59027 16.4097 7.28431 16.218 6.90799C16.0797 6.63656 16.0356 6.36683 16.0169 6.13824C16.0133 6.09377 16.0105 6.0476 16.0082 6.00001L7.99179 6.00001C7.98955 6.0476 7.98669 6.09377 7.98306 6.13824C7.96438 6.36683 7.92032 6.63656 7.78202 6.90799C7.59027 7.28431 7.28431 7.59027 6.90799 7.78202C6.63656 7.92032 6.36683 7.96438 6.13824 7.98306C6.09377 7.98669 6.0476 7.98955 6.00001 7.99179V16.0082C6.0476 16.0105 6.09377 16.0133 6.13824 16.0169C6.36683 16.0356 6.63656 16.0797 6.90799 16.218C7.28431 16.4097 7.59027 16.7157 7.78202 17.092C7.92032 17.3634 7.96438 17.6332 7.98306 17.8618C7.98669 17.9062 7.98955 17.9524 7.99179 18H11C11.5523 18 12 18.4477 12 19C12 19.5523 11.5523 20 11 20H7.99179C7.98955 20.0476 7.98669 20.0938 7.98306 20.1382C7.96438 20.3668 7.92032 20.6366 7.78202 20.908C7.59027 21.2843 7.28431 21.5903 6.90799 21.782C6.63656 21.9203 6.36683 21.9644 6.13824 21.9831C5.93008 22.0001 5.6843 22 5.43192 22H4.56809C4.31571 22 4.06993 22.0001 3.86178 21.9831C3.63318 21.9644 3.36345 21.9203 3.09202 21.782C2.7157 21.5903 2.40974 21.2843 2.21799 20.908C2.07969 20.6366 2.03563 20.3668 2.01695 20.1382C1.99994 19.9301 1.99997 19.6843 2 19.4319V18.5681C1.99997 18.3157 1.99994 18.0699 2.01695 17.8618C2.03563 17.6332 2.07969 17.3634 2.21799 17.092C2.40974 16.7157 2.7157 16.4097 3.09202 16.218C3.36345 16.0797 3.63318 16.0356 3.86178 16.0169C3.90624 16.0133 3.95241 16.0105 4.00001 16.0082V7.99179C3.95241 7.98955 3.90624 7.98669 3.86178 7.98306C3.63318 7.96438 3.36345 7.92032 3.09202 7.78202C2.7157 7.59027 2.40974 7.28431 2.21799 6.90799C2.07969 6.63656 2.03563 6.36683 2.01695 6.13824C1.99994 5.93008 1.99997 5.68429 2 5.4319C2 5.42128 2.00001 5.41065 2.00001 5.40001V4.60001C2.00001 4.58936 2 4.57873 2 4.56811C1.99997 4.31572 1.99994 4.06993 2.01695 3.86178C2.03563 3.63318 2.07969 3.36345 2.21799 3.09202C2.40974 2.7157 2.7157 2.40974 3.09202 2.21799C3.36345 2.07969 3.63318 2.03563 3.86178 2.01695C4.06993 1.99994 4.31572 1.99997 4.56811 2ZM5.40001 6.00001C5.69653 6.00001 5.85879 5.99923 5.97537 5.9897C5.98001 5.98932 5.98441 5.98894 5.98856 5.98856C5.98894 5.98441 5.98932 5.98001 5.9897 5.97537C5.99923 5.85879 6.00001 5.69653 6.00001 5.40001V4.60001C6.00001 4.30348 5.99923 4.14122 5.9897 4.02464C5.98932 4.02 5.98894 4.0156 5.98856 4.01145C5.98441 4.01107 5.98001 4.01069 5.97537 4.01031C5.85879 4.00078 5.69653 4.00001 5.40001 4.00001H4.60001C4.30348 4.00001 4.14122 4.00078 4.02464 4.01031C4.02 4.01069 4.0156 4.01107 4.01145 4.01145C4.01107 4.0156 4.01069 4.02 4.01031 4.02464C4.00078 4.14122 4.00001 4.30348 4.00001 4.60001V5.40001C4.00001 5.69653 4.00078 5.85879 4.01031 5.97537C4.01069 5.98001 4.01107 5.98441 4.01145 5.98856C4.0156 5.98894 4.02 5.98932 4.02464 5.9897C4.14122 5.99923 4.30348 6.00001 4.60001 6.00001H5.40001ZM4.60001 18C4.30348 18 4.14122 18.0008 4.02464 18.0103C4.02 18.0107 4.0156 18.0111 4.01145 18.0115C4.01107 18.0156 4.01069 18.02 4.01031 18.0246C4.00078 18.1412 4.00001 18.3035 4.00001 18.6V19.4C4.00001 19.6965 4.00078 19.8588 4.01031 19.9754C4.01069 19.98 4.01107 19.9844 4.01145 19.9885C4.0156 19.9889 4.02 19.9893 4.02464 19.9897C4.14122 19.9992 4.30348 20 4.60001 20H5.40001C5.69653 20 5.85879 19.9992 5.97537 19.9897C5.98001 19.9893 5.98441 19.9889 5.98856 19.9885C5.98894 19.9844 5.98932 19.98 5.9897 19.9754C5.99923 19.8588 6.00001 19.6965 6.00001 19.4V18.6C6.00001 18.3035 5.99923 18.1412 5.9897 18.0246C5.98932 18.02 5.98894 18.0156 5.98856 18.0115C5.98441 18.0111 5.98001 18.0107 5.97537 18.0103C5.85879 18.0008 5.69653 18 5.40001 18H4.60001ZM18 5.40001C18 5.69653 18.0008 5.85879 18.0103 5.97537C18.0107 5.98001 18.0111 5.98441 18.0115 5.98856C18.0156 5.98894 18.02 5.98932 18.0246 5.9897C18.1412 5.99923 18.3035 6.00001 18.6 6.00001H19.4C19.6965 6.00001 19.8588 5.99923 19.9754 5.9897C19.98 5.98932 19.9844 5.98893 19.9886 5.98855C19.9889 5.9844 19.9893 5.98001 19.9897 5.97537C19.9992 5.85879 20 5.69653 20 5.40001V4.60001C20 4.30348 19.9992 4.14122 19.9897 4.02464C19.9893 4.02 19.9889 4.0156 19.9885 4.01145C19.9844 4.01107 19.98 4.01069 19.9754 4.01031C19.8588 4.00078 19.6965 4.00001 19.4 4.00001H18.6C18.3035 4.00001 18.1412 4.00078 18.0246 4.01031C18.02 4.01069 18.0156 4.01107 18.0115 4.01145C18.0111 4.0156 18.0107 4.02 18.0103 4.02464C18.0008 4.14122 18 4.30348 18 4.60001V5.40001ZM18 14C18.5523 14 19 14.4477 19 15V17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H19V21C19 21.5523 18.5523 22 18 22C17.4477 22 17 21.5523 17 21V19H15C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17H17V15C17 14.4477 17.4477 14 18 14Z"}));function M(){return e.jsx("div",{className:"group absolute z-20 flex h-full w-full items-center justify-center rounded-md border border-theme-border-moderate bg-white/70",children:e.jsx("div",{className:"hidden rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg animate-in fade-in-0 fade-out-0 zoom-in-95 group-hover:block",children:"This option is not available for local deployments"})})}const D=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},t.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"})),U=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{d:"M15.1636 8.68344V14.9934L20.644 11.8401V5.52344L15.1636 8.68344Z",fill:"#4040B2"}),t.createElement("path",{d:"M9.08185 5.52344L14.5622 8.68344V14.9934L9.08185 11.8368V5.52344Z",fill:"#5C4EE5"}),t.createElement("path",{d:"M3 2V8.31333L8.48033 11.47V5.15667L3 2ZM9.08183 18.8433L14.5622 22V15.6867L9.08183 12.53V18.8433Z",fill:"#5C4EE5"})),$=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 4C7.84315 4 6.5 5.34315 6.5 7C6.5 8.65685 7.84315 10 9.5 10C11.1569 10 12.5 8.65685 12.5 7C12.5 5.34315 11.1569 4 9.5 4ZM4.5 7C4.5 4.23858 6.73858 2 9.5 2C12.2614 2 14.5 4.23858 14.5 7C14.5 9.76142 12.2614 12 9.5 12C6.73858 12 4.5 9.76142 4.5 7ZM14.5731 2.91554C14.7803 2.40361 15.3633 2.1566 15.8752 2.36382C17.7058 3.10481 19 4.90006 19 7C19 9.09994 17.7058 10.8952 15.8752 11.6362C15.3633 11.8434 14.7803 11.5964 14.5731 11.0845C14.3658 10.5725 14.6129 9.98953 15.1248 9.7823C16.2261 9.33652 17 8.25744 17 7C17 5.74256 16.2261 4.66348 15.1248 4.2177C14.6129 4.01047 14.3658 3.42748 14.5731 2.91554ZM7.96448 14H11.0355C11.9373 14 12.6647 14 13.2567 14.0404C13.8654 14.0819 14.4037 14.1695 14.9134 14.3806C16.1386 14.8881 17.1119 15.8614 17.6194 17.0866C17.8305 17.5963 17.9181 18.1346 17.9596 18.7433C18 19.3353 18 20.0627 18 20.9645V21C18 21.5523 17.5523 22 17 22C16.4477 22 16 21.5523 16 21C16 20.0544 15.9995 19.3953 15.9643 18.8794C15.9297 18.3725 15.865 18.0773 15.7716 17.8519C15.4672 17.1169 14.8831 16.5328 14.1481 16.2284C13.9227 16.135 13.6275 16.0703 13.1206 16.0357C12.6047 16.0005 11.9456 16 11 16H8C7.05444 16 6.39534 16.0005 5.87945 16.0357C5.37254 16.0703 5.07733 16.135 4.85195 16.2284C4.11687 16.5328 3.53284 17.1169 3.22836 17.8519C3.135 18.0773 3.07033 18.3725 3.03574 18.8794C3.00054 19.3953 3 20.0544 3 21C3 21.5523 2.55229 22 2 22C1.44772 22 1 21.5523 1 21L1 20.9645C0.999993 20.0627 0.999988 19.3353 1.04038 18.7433C1.08191 18.1346 1.16948 17.5963 1.3806 17.0866C1.88807 15.8614 2.86144 14.8881 4.08658 14.3806C4.59628 14.1695 5.13456 14.0819 5.74331 14.0404C6.33531 14 7.06272 14 7.96448 14ZM18.0316 14.8768C18.1692 14.3419 18.7144 14.0199 19.2493 14.1576C21.4056 14.7126 23 16.6688 23 19V21C23 21.5523 22.5523 22 22 22C21.4477 22 21 21.5523 21 21V19C21 17.6035 20.0449 16.4275 18.7507 16.0945C18.2159 15.9568 17.8939 15.4116 18.0316 14.8768Z"}));function C({children:s,className:r,...i}){return e.jsx(T,{...i,className:B("h-full w-full space-y-1 px-6 py-5",r),children:s})}function u({children:s}){return e.jsx(e.Fragment,{children:s})}function j({children:s}){return e.jsx("div",{className:"space-y-0.5",children:s})}function f({children:s}){return e.jsx("div",{className:"flex items-center gap-1",children:s})}function p({children:s}){return e.jsx("h2",{className:"text-text-lg font-semibold",children:s})}function g({children:s}){return e.jsx("p",{className:"text-theme-text-secondary",children:s})}function y({children:s}){return e.jsx("div",{className:"flex w-full flex-wrap items-start justify-between gap-y-1",children:s})}function v({hasTerraform:s=!1}){return e.jsxs("div",{className:"flex items-center gap-2",children:[s&&e.jsx(U,{className:"h-4 w-4 shrink-0"}),e.jsx(L,{className:"h-4 w-4",provider:"aws"}),e.jsx(L,{className:"h-4 w-4",provider:"gcp"}),e.jsx(L,{className:"h-4 w-4",provider:"azure"})]})}function w({min:s}){return e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx(D,{className:"h-3 w-3 shrink-0 fill-theme-text-tertiary"}),e.jsxs("p",{className:"text-text-xs text-theme-text-tertiary",children:["Estimated time: ",s," mins"]})]})}function N({flexibility:s,children:r}){return e.jsxs("div",{className:"flex w-full items-center gap-0.5 lg:w-1/3",children:[e.jsxs("div",{className:"flex items-center gap-0.5",children:[e.jsx("span",{className:"text-theme-text-secondary",children:"Flexibility"}),r]}),e.jsx(R,{className:"h-1 flex-1 shrink-0 rounded-rounded",value:s})]})}function k({children:s}){return e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-y-1 text-text-xs",children:s})}function b({recommendataion:s}){return e.jsxs("div",{className:"flex items-center gap-0.5 text-text-xs text-theme-text-success",children:[e.jsx($,{className:"h-3 w-3 shrink-0 fill-theme-text-success"}),e.jsxs("p",{children:["Recommended for ",s]})]})}const H="https://docs.zenml.io/how-to/stack-deployment/deploy-a-cloud-stack";function q(){const{isError:s,isPending:r,data:i}=V();if(r)return e.jsx(S,{className:"h-[200px] w-full"});if(s)return e.jsx("div",{children:"Failed to load server info"});const o=E(i.deployment_type||"other");return e.jsxs("section",{className:"w-full space-y-5",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-text-xl font-semibold",children:"Create New Infrastructure"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Use our smart tools to create a new Cloud infrastructure a quick and simplified way."})]}),e.jsxs("div",{className:"grid w-full grid-cols-1 gap-6 md:grid-cols-2",children:[e.jsx(O,{isLocalDeployment:o}),e.jsx(A,{isLocalDeployment:o})]})]})}function O({isLocalDeployment:s}){const[r]=z(),i=d.stacks.create.newInfra+(r.size>=1?`?${r.toString()}`:"");return e.jsxs("div",{className:"relative",children:[s&&e.jsx(M,{}),e.jsx(h,{to:i,children:e.jsxs(C,{children:[e.jsxs(y,{children:[e.jsx(u,{children:e.jsx(I,{className:"h-6 w-6 fill-primary-400"})}),e.jsx(v,{})]}),e.jsxs(j,{children:[e.jsxs(f,{children:[e.jsx(p,{children:"In-browser Experience"}),e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(m,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{align:"start",side:"bottom",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",{children:"Deploy the necessary pieces of infrastructure on your selected cloud provider and get you started on remote stack with a single click."}),e.jsx("a",{className:"link text-primary-400",target:"_blank",href:H,children:"Learn More"})]})]})})]}),e.jsx(g,{children:"Provision cloud infrastructure via browser UI. No local installs needed. Quick setup for cloud resources."})]}),e.jsx(b,{recommendataion:"data scientists"}),e.jsxs(k,{children:[e.jsx(w,{min:"5"}),e.jsx(N,{flexibility:25,children:e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(x,{className:"h-3 w-3 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{className:"z-50 max-w-[480px] bg-theme-surface-primary text-theme-text-primary",children:[e.jsx("strong",{children:"Low flexibility:"})," Best for straightforward setups with minimal customization."]})]})})})]})]})})]})}function A({isLocalDeployment:s}){const[r]=z(),i=d.stacks.create.terraform+(r.size>=1?`?${r.toString()}`:"");return e.jsxs("div",{className:"relative",children:[s&&e.jsx(M,{}),e.jsx(h,{to:i,children:e.jsxs(C,{className:"flex flex-col justify-between space-y-0",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(y,{children:[e.jsx(u,{children:e.jsx(_,{className:"h-6 w-6 fill-primary-400"})}),e.jsx(v,{hasTerraform:!0})]}),e.jsxs(j,{children:[e.jsxs(f,{children:[e.jsx(p,{children:"Infrastructure-as-code"}),e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(m,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{align:"start",side:"bottom",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",{children:"Infrastructure-as-code (IaC) refers to using a dynamic codebase to provision and manage infrastructure, rather than deferring to manual processes."}),e.jsx("a",{className:"link text-primary-400",target:"_blank",href:H,children:"Learn More"})]})]})})]}),e.jsx(g,{children:"Use Terraform modules to deploy infrastructure and register it back to ZenML."})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(b,{recommendataion:"infrastructure engineers"}),e.jsxs(k,{children:[e.jsx(w,{min:"3"}),e.jsx(N,{flexibility:75,children:e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(x,{className:"h-3 w-3 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{className:"z-50 max-w-[480px] bg-theme-surface-primary text-theme-text-primary",children:[e.jsx("strong",{children:"High flexibility:"})," Offers extensive customization for advanced users or complex setups."]})]})})})]})]})]})})]})}const Z="https://docs.zenml.io/how-to/stack-deployment/deploy-a-cloud-stack";function G(){const{isError:s,isPending:r,data:i}=V();if(r)return e.jsx(S,{className:"h-[200px] w-full"});if(s)return e.jsx("div",{children:"Failed to load server info"});const o=E(i.deployment_type||"other");return e.jsxs("section",{className:"w-full space-y-5",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-text-xl font-semibold",children:"Connect Existing Infrastructure"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Register your stack and components using existing resources that are already provisioned."})]}),e.jsxs("div",{className:"grid w-full grid-cols-1 gap-6 md:grid-cols-2",children:[e.jsx(Q,{isLocalDeployment:o}),e.jsx(J,{})]})]})}function J(){const[s]=z(),r=d.stacks.create.manual+(s.size>=1?`?${s.toString()}`:"");return e.jsx("div",{className:"relative",children:e.jsx(h,{to:r,children:e.jsxs(C,{children:[e.jsxs(y,{children:[e.jsx(u,{children:e.jsx(F,{className:"h-6 w-6 fill-primary-400"})}),e.jsx(v,{})]}),e.jsxs(j,{children:[e.jsxs(f,{children:[e.jsx(p,{children:"Manual Setup"}),e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(m,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{align:"start",side:"bottom",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",{children:"Customize your ML stack by selecting each component individually through the ZenML interface. Choose from a list of pre-configured components or add new ones tailored to your needs."}),e.jsx("a",{className:"link text-primary-400",target:"_blank",href:Z,children:"Learn More"})]})]})})]}),e.jsx(g,{children:"Register stack and components manually using ZenML. Recommended for advanced or custom configurations."})]}),e.jsx(b,{recommendataion:"advanced users"}),e.jsxs(k,{children:[e.jsx(w,{min:"5-10"}),e.jsx(N,{flexibility:100,children:e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(x,{className:"h-3 w-3 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{className:"z-50 max-w-[480px] bg-theme-surface-primary text-theme-text-primary",children:[e.jsx("strong",{children:"Full flexibility:"})," Complete control and customization. For expert users and highly specialized requirements."]})]})})})]})]})})})}function Q({isLocalDeployment:s}){return e.jsxs("div",{className:"relative",children:[s&&e.jsx(M,{}),e.jsx(h,{to:d.stacks.create.existingInfra,children:e.jsxs(C,{children:[e.jsxs(y,{children:[e.jsx(u,{children:e.jsx(P,{className:"h-6 w-6 fill-primary-400"})}),e.jsx(v,{})]}),e.jsxs(j,{children:[e.jsxs(f,{children:[e.jsx(p,{children:"Scan your Cloud"}),e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(m,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{align:"start",side:"bottom",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",{children:"The stack wizard allows you to browse through your existing infrastructure and use it to register a ZenML cloud stack."}),e.jsx("a",{className:"link text-primary-400",target:"_blank",href:Z,children:"Learn More"})]})]})})]}),e.jsx(g,{children:"Input your credentials and scan existing infrastructure on your cloud provider. Best for users with existing resources."})]}),e.jsx(b,{recommendataion:"infrastructure engineers"}),e.jsxs(k,{children:[e.jsx(w,{min:"5"}),e.jsx(N,{flexibility:50,children:e.jsx(a,{children:e.jsxs(l,{children:[e.jsx(n,{asChild:!0,children:e.jsx("div",{className:"z-10",children:e.jsx(x,{className:"h-3 w-3 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(c,{className:"z-50 max-w-[480px] bg-theme-surface-primary text-theme-text-primary",children:[e.jsx("strong",{children:"Medium flexibility:"})," Balances ease-of-use with some customization options."]})]})})})]})]})})]})}function l1(){return e.jsxs("section",{className:"layout-container space-y-5 py-5",children:[e.jsx(q,{}),e.jsx(G,{})]})}export{l1 as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as i,j as e}from"./@radix-DnFH_oo1.js";import{l as R,m as E,k as ne,n as ae,F as k,z as c,o as re,p as le,q as ie,I as oe,s as ce,t as de,f as p,i as F,v as L,w as _,D as M,x as I,y as z,C as B,E as ue,r as x,T as $,G as q,H as U,J as Z,K as T,L as A,M as H,S as y,B as me,N as pe,O as he,P as xe,e as fe,Q as N,R as je,U as ge,V as be}from"./index-B9wVwe7u.js";import{L as f,c as P,b as Ce}from"./@react-router-APVeuk-U.js";import{S as V}from"./refresh-hfgWPeto.js";import{S as G,P as Q}from"./SearchField-W3GXpLlI.js";import{q as ye,b as K,c as J,a as ve}from"./@tanstack-QbMbTrh5.js";import{o as Pe}from"./url-DwbuKk1b.js";import{S as w}from"./trash-DUWZWzse.js";import{t as we}from"./zod-uFd1wBcd.js";import{u as Ne}from"./index.esm-BE1uqCX5.js";import{C as v}from"./CopyButton-BqE_-PHO.js";import{g as W,E as X,a as De}from"./ExecutionStatus-CIfQTutR.js";import{S as Y}from"./dots-horizontal-C6K59vUm.js";import{A as ee}from"./AlertDialogDropdownItem-BXeSvmMY.js";import{u as Se}from"./all-pipeline-runs-query-BBEe6I9-.js";import{D as Te}from"./DisplayDate-DkCy54Bp.js";import{I as Re}from"./InlineAvatar-Ds2ZFHPc.js";import{I as Ee}from"./Infobox-BL9NOS37.js";import"./@reactflow-B6kq9fJZ.js";import"./chevron-right-double-c9H46Kl8.js";import"./index-5GJ5ysEZ.js";import"./copy-CaGlDsUy.js";import"./check-circle-DOoS4yhF.js";const ke=t=>i.createElement("svg",{viewBox:"0 0 60 60",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},i.createElement("g",{id:"dataflow-02"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 7.5C11.1193 7.5 10 8.61929 10 10C10 11.3807 11.1193 12.5 12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61929 13.8807 7.5 12.5 7.5ZM5 10C5 5.85786 8.35787 2.5 12.5 2.5C15.7655 2.5 18.5436 4.58702 19.5732 7.5L40.4268 7.5C41.4564 4.58702 44.2345 2.5 47.5 2.5C51.6421 2.5 55 5.85786 55 10C55 14.1421 51.6421 17.5 47.5 17.5C44.2345 17.5 41.4564 15.413 40.4268 12.5L32.5 12.5V27.5H40.4268C41.4564 24.587 44.2345 22.5 47.5 22.5C51.6421 22.5 55 25.8579 55 30C55 34.1421 51.6421 37.5 47.5 37.5C44.2345 37.5 41.4564 35.413 40.4268 32.5H32.5V38C32.5 40.1415 32.502 41.5972 32.5939 42.7224C32.6834 43.8185 32.8457 44.379 33.045 44.77C33.5243 45.7108 34.2892 46.4757 35.2301 46.955C35.6211 47.1543 36.1816 47.3166 37.2776 47.4061C38.103 47.4736 39.1062 47.4926 40.4275 47.4979C41.4577 44.586 44.2352 42.5 47.5 42.5C51.6421 42.5 55 45.8579 55 50C55 54.1421 51.6421 57.5 47.5 57.5C44.2338 57.5 41.4552 55.4121 40.4261 52.4982C39.0579 52.4929 37.8787 52.4719 36.8704 52.3895C35.4652 52.2747 34.1734 52.0283 32.9601 51.4101C31.0785 50.4513 29.5487 48.9215 28.5899 47.0399C27.9717 45.8266 27.7253 44.5348 27.6105 43.1296C27.4999 41.7766 27.5 40.1157 27.5 38.1032V12.5L19.5732 12.5C18.5436 15.413 15.7655 17.5 12.5 17.5C8.35787 17.5 5 14.1421 5 10ZM47.5 7.5C46.1193 7.5 45 8.61929 45 10C45 11.3807 46.1193 12.5 47.5 12.5C48.8807 12.5 50 11.3807 50 10C50 8.61929 48.8807 7.5 47.5 7.5ZM47.5 27.5C46.1193 27.5 45 28.6193 45 30C45 31.3807 46.1193 32.5 47.5 32.5C48.8807 32.5 50 31.3807 50 30C50 28.6193 48.8807 27.5 47.5 27.5ZM47.5 47.5C46.1193 47.5 45 48.6193 45 50C45 51.3807 46.1193 52.5 47.5 52.5C48.8807 52.5 50 51.3807 50 50C50 48.6193 48.8807 47.5 47.5 47.5Z"})));async function Ae({params:t}){const s=R(E.pipelines.all+"?"+Pe(t)),n=await ne(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(n.status===404&&ae(),!n.ok)throw new k({message:"Error while fetching pipelines",status:n.status,statusText:n.statusText});return n.json()}const O={all:["pipelines"],pipelineList:t=>ye({queryKey:[...O.all,t],queryFn:async()=>Ae({params:t})})},Oe=c.object({delete:c.string()}).refine(t=>t.delete==="DELETE",{message:"Please type DELETE to confirm"}),g=i.forwardRef(({handleDelete:t,title:s},n)=>{const{register:a,handleSubmit:r,formState:{isValid:l}}=Ne({resolver:we(Oe),defaultValues:{delete:""}});return e.jsxs(re,{ref:n,children:[e.jsx(le,{children:e.jsx(ie,{children:s})}),e.jsxs("form",{onSubmit:r(()=>t()),id:"delete-form",className:"space-y-5 p-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Are you sure?"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"This action cannot be undone."})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"mb-0.5 text-text-sm",children:"Please type DELETE to confirm"}),e.jsx(oe,{onPaste:o=>o.preventDefault(),...a("delete"),className:"w-full"})]})]}),e.jsxs(ce,{className:"gap-[10px]",children:[e.jsx(de,{asChild:!0,children:e.jsx(p,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(p,{form:"delete-form",disabled:!l,intent:"danger",type:"submit",children:"Delete"})]})]})});g.displayName="DeleteAlertContent";async function Fe({pipelineId:t}){const s=R(E.pipelines.detail(t)),n=await fetch(s,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!n.ok){const a=await n.json().then(r=>r.detail).catch(()=>`Failed to delete pipeline ${t}`);throw new k({status:n.status,statusText:n.statusText,message:a})}return n.json()}function Le(t){return K({mutationFn:Fe,...t})}const te=i.createContext(null);function _e({children:t}){const[s,n]=i.useState([]),a=J(),{toast:r}=F(),l=Le(),o=async d=>{try{const u=d.map(h=>l.mutateAsync({pipelineId:h}));await Promise.all(u),r({description:"Deleted successfully.",status:"success",emphasis:"subtle",rounded:!0}),await a.invalidateQueries({queryKey:O.all}),n([])}catch(u){console.error("Failed to delete some pipelines:",u)}};return e.jsx(te.Provider,{value:{selectedPipelines:s,setSelectedPipelines:n,bulkDeletePipelines:o},children:t})}function b(){const t=i.useContext(te);if(!t)throw new Error("usePipelinesSelectorContext must be used within a PipelinesSelectorProvider");return t}function Me(){const[t,s]=i.useState(!1),{bulkDeletePipelines:n,selectedPipelines:a}=b();async function r(){await n(a),s(!1)}return e.jsxs(L,{open:t,onOpenChange:s,children:[e.jsx(_,{children:e.jsxs(p,{className:"rounded-sharp border-none bg-white",size:"md",emphasis:"subtle",intent:"secondary",children:[e.jsx(w,{className:"h-5 w-5 shrink-0 gap-1 fill-neutral-400"}),"Delete"]})}),e.jsx(g,{title:`Delete Pipeline${a.length>=2?"s":""}`,handleDelete:r})]})}function Ie(){const{selectedPipelines:t}=b();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:`${t==null?void 0:t.length} Pipeline${(t==null?void 0:t.length)>1?"s":""} selected`}),e.jsx(Me,{})]})}function ze({id:t}){const[s,n]=i.useState(!1),[a,r]=i.useState(!1),l=i.useRef(null),o=i.useRef(null),{bulkDeletePipelines:d}=b();async function u(){await d([t]),j(!1)}function h(){o.current=l.current}function j(m){if(m===!1){r(!1),setTimeout(()=>{n(m)},200);return}n(m)}return e.jsxs(M,{onOpenChange:r,open:a,children:[e.jsx(I,{ref:l,children:e.jsx(Y,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(z,{hidden:s,onCloseAutoFocus:m=>{o.current&&(o.current.focus(),o.current=null,m.preventDefault())},align:"end",sideOffset:7,children:e.jsx(ee,{onSelect:h,open:s,onOpenChange:j,triggerChildren:"Delete",icon:e.jsx(w,{fill:"red"}),children:e.jsx(g,{title:"Delete Pipeline",handleDelete:u})})})]})}const Be=({id:t})=>{const{selectedPipelines:s,setSelectedPipelines:n}=b(),a=(r,l)=>{n(o=>r?[...o,l]:o.filter(d=>d!==l))};return e.jsx(B,{id:t,onCheckedChange:r=>a(r,t),checked:s.includes(t),className:"h-3 w-3"})};function $e(){return[{id:"check",header:"",meta:{width:"1%"},cell:({row:t})=>e.jsx(Be,{id:t.original.id})},{id:"name",header:"Pipeline",cell:({row:t})=>{var s,n,a;return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(ue,{className:`h-5 w-5 ${W((s=t.original.body)==null?void 0:s.latest_run_status)}`}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(f,{to:x.pipelines.namespace(encodeURIComponent(t.original.name)),className:"flex items-center gap-1",children:e.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:t.original.name})}),e.jsx($,{children:e.jsxs(q,{children:[e.jsx(U,{className:"hover:text-theme-text-brand hover:underline",children:e.jsx(X,{status:(n=t.original.body)==null?void 0:n.latest_run_status})}),e.jsx(Z,{className:"z-20 capitalize",children:(a=t.original.body)==null?void 0:a.latest_run_status})]})}),e.jsx(v,{copyText:t.original.name})]}),e.jsxs(f,{to:x.pipelines.namespace(encodeURIComponent(t.original.name)),className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:t.original.id.split("-")[0]}),e.jsx(v,{copyText:t.original.id})]})]})]})}},{id:"latest-run",header:"Latest Run",accessorFn:t=>{var s,n;return{status:(s=t.body)==null?void 0:s.latest_run_status,runId:(n=t.body)==null?void 0:n.latest_run_id}},cell:({getValue:t})=>{const{runId:s,status:n}=t();return!s||!n?e.jsx("div",{children:"No run"}):e.jsx(f,{to:x.runs.detail(s),children:e.jsxs(T,{emphasis:"subtle",rounded:!1,className:"inline-flex items-center gap-0.5",color:De(n),children:[e.jsx(A,{className:"h-3 w-3 fill-current"}),s==null?void 0:s.split("-")[0]]})})}},{id:"admin_actions",header:"",meta:{width:"5%"},cell:({row:t})=>e.jsx(ze,{id:t.original.id})}]}const D=1,qe=c.object({page:c.coerce.number().min(D).optional().default(D).catch(D),name:c.string().optional(),operator:c.enum(["and","or"]).optional()});function Ue(){const[t]=P(),{page:s,name:n,operator:a}=qe.parse({page:t.get("page")||void 0,name:t.get("name")||void 0,operator:t.get("operator")||void 0});return{page:s,name:n,logical_operator:a}}function Ze(){const t=Ue(),{selectedPipelines:s}=b(),{data:n,refetch:a}=ve({...O.pipelineList({...t,sort_by:"desc:latest_run"}),throwOnError:!0});return e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[s.length?e.jsx(Ie,{}):e.jsx(G,{searchParams:t}),e.jsx("div",{className:"flex justify-between",children:e.jsxs(p,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>a(),children:[e.jsx(V,{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:n?e.jsx(H,{columns:$e(),data:n.items}):e.jsx(y,{className:"h-[500px] w-full"})}),n?n.total_pages>1&&e.jsx(Q,{searchParams:t,paginate:n}):e.jsx(y,{className:"h-[36px] w-[300px]"})]})]})}async function He({runId:t}){const s=R(E.runs.detail(t)),n=await fetch(s,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!n.ok){const a=await n.json().then(r=>r.detail).catch(()=>`Failed to delete run ${t}`);throw new k({status:n.status,statusText:n.statusText,message:a})}return n.json()}function Ve(t){return K({mutationFn:He,...t})}const se=i.createContext(null);function Ge({children:t}){const[s,n]=i.useState([]),a=J(),{toast:r}=F(),l=Ve(),o=async d=>{try{const u=d.map(h=>l.mutateAsync({runId:h}));await Promise.all(u),r({description:"Deleted successfully.",status:"success",emphasis:"subtle",rounded:!0}),await a.invalidateQueries({queryKey:["runs"]}),n([])}catch(u){console.error("Failed to delete some runs:",u)}};return e.jsx(se.Provider,{value:{selectedRuns:s,setSelectedRuns:n,bulkDeleteRuns:o},children:t})}function C(){const t=i.useContext(se);if(!t)throw new Error("useRunsSelectorContext must be used within a RunsSelectorProvider");return t}function Qe(){const[t,s]=i.useState(!1),{bulkDeleteRuns:n,selectedRuns:a}=C();async function r(){await n(a),s(!1)}return e.jsxs(L,{open:t,onOpenChange:s,children:[e.jsx(_,{children:e.jsxs(p,{className:"rounded-sharp border-none bg-white",size:"md",emphasis:"subtle",intent:"secondary",children:[e.jsx(w,{className:"h-5 w-5 shrink-0 gap-1 fill-neutral-400"}),"Delete"]})}),e.jsx(g,{title:`Delete Run${a.length>=2?"s":""}`,handleDelete:r})]})}function Ke(){const{selectedRuns:t}=C();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:`${t==null?void 0:t.length} Run${(t==null?void 0:t.length)>1?"s":""} selected`}),e.jsx(Qe,{})]})}function Je({id:t}){const[s,n]=i.useState(!1),[a,r]=i.useState(!1),l=i.useRef(null),o=i.useRef(null),{bulkDeleteRuns:d}=C();async function u(){await d([t]),j(!1)}function h(){o.current=l.current}function j(m){if(m===!1){r(!1),setTimeout(()=>{n(m)},200);return}n(m)}return e.jsxs(M,{onOpenChange:r,open:a,children:[e.jsx(I,{ref:l,children:e.jsx(Y,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(z,{hidden:s,onCloseAutoFocus:m=>{o.current&&(o.current.focus(),o.current=null,m.preventDefault())},align:"end",sideOffset:7,children:e.jsx(ee,{onSelect:h,open:s,onOpenChange:j,triggerChildren:"Delete",icon:e.jsx(w,{fill:"red"}),children:e.jsx(g,{title:"Delete Run",handleDelete:u})})})]})}const We=({id:t})=>{const{selectedRuns:s,setSelectedRuns:n}=C(),a=(r,l)=>{n(o=>r?[...o,l]:o.filter(d=>d!==l))};return e.jsx(B,{id:t,onCheckedChange:r=>a(r,t),checked:s.includes(t),className:"h-3 w-3"})},Xe=[{id:"check",header:"",meta:{width:"1%"},accessorFn:t=>({id:t.id}),cell:({getValue:t})=>{const{id:s}=t();return e.jsx(We,{id:s})}},{id:"name",header:"Run",accessorFn:t=>{var s;return{id:t.id,name:t.name,status:(s=t.body)==null?void 0:s.status}},cell:({getValue:t})=>{const{name:s,status:n,id:a}=t();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(A,{className:`h-5 w-5 ${W(n)}`}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(f,{to:x.runs.detail(a),className:"flex items-center gap-1",children:e.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:s})}),e.jsx($,{children:e.jsxs(q,{children:[e.jsx(U,{className:"hover:text-theme-text-brand hover:underline",children:e.jsx(X,{status:n})}),e.jsx(Z,{className:"z-20 capitalize",children:n})]})}),e.jsx(v,{copyText:s})]}),e.jsxs(f,{to:x.runs.detail(a),className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:a.split("-")[0]}),e.jsx(v,{copyText:a})]})]})]})}},{id:"pipeline",header:"Pipeline",accessorFn:t=>{var s,n;return(n=(s=t.body)==null?void 0:s.pipeline)==null?void 0:n.name},cell:({getValue:t})=>{const s=t();return s?e.jsx(f,{to:x.pipelines.namespace(s),children:e.jsx(T,{color:"purple",className:"inline-flex items-center gap-0.5 truncate",rounded:!1,emphasis:"subtle",children:s})}):null}},{id:"stack",header:"Stack",accessorFn:t=>{var s,n,a,r;return{name:(n=(s=t.body)==null?void 0:s.stack)==null?void 0:n.name,id:(r=(a=t.body)==null?void 0:a.stack)==null?void 0:r.id}},cell:({getValue:t})=>{const{name:s,id:n}=t();return!s||!n?null:e.jsx(T,{rounded:!1,className:"inline-block",color:"turquoise",emphasis:"subtle",children:s})}},{id:"created-at",header:"Created at",accessorFn:t=>{var s;return{date:(s=t.body)==null?void 0:s.created}},cell:({getValue:t})=>{const{date:s}=t();return e.jsx(Te,{dateString:s})}},{id:"author",header:"Author",accessorFn:t=>{var s,n,a,r,l;return{name:((a=(n=(s=t.body)==null?void 0:s.user)==null?void 0:n.body)==null?void 0:a.full_name)||((l=(r=t.body)==null?void 0:r.user)==null?void 0:l.name)}},cell:({getValue:t})=>{const{name:s}=t();return e.jsx(Re,{username:s})}},{id:"admin_actions",header:"",meta:{width:"5%"},cell:({row:t})=>e.jsx(Je,{id:t.original.id})}],S=1,Ye=c.object({page:c.coerce.number().min(S).optional().default(S).catch(S),name:c.string().optional(),operator:c.enum(["and","or"]).optional(),status:c.enum(["pending","running","completed"]).optional()});function et(){const[t]=P(),{page:s,name:n,operator:a,status:r}=Ye.parse({page:t.get("page")||void 0,name:t.get("name")||void 0,operator:t.get("operator")||void 0,status:t.get("status")||void 0});return{page:s,name:n,logical_operator:a,status:r}}function tt(){const{selectedRuns:t}=C(),s=et(),{data:n,refetch:a}=Se({params:{...s,sort_by:"desc:updated"}});return e.jsxs("div",{className:"mt-5 flex flex-col gap-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[t.length?e.jsx(Ke,{}):e.jsx(G,{searchParams:s}),e.jsx("div",{className:"flex justify-between",children:e.jsxs(p,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>a(),children:[e.jsx(V,{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:n?e.jsx(H,{columns:Xe,data:n.items}):e.jsx(y,{className:"h-[500px] w-full"})}),n?n.total_pages>1&&e.jsx(Q,{searchParams:s,paginate:n}):e.jsx(y,{className:"h-[36px] w-[300px]"})]})]})}const st=c.object({tab:c.enum(["pipelines","runs","templates"]).optional().default("pipelines").catch("pipelines")});function nt(){const[t]=P(),{tab:s}=st.parse({tab:t.get("tab")||void 0});return s}const at="/assets/templates-1S_8WeSK.webp";function rt(){return e.jsxs("div",{className:"layout-container space-y-5",children:[e.jsx(lt,{}),e.jsx(ot,{})]})}function lt(){return e.jsx(Ee,{children:e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-x-2 gap-y-0.5 text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"This is a ZenML Pro feature. "}),e.jsx("p",{children:"Upgrade to ZenML Pro to access the Templates and save settings and run pipelines from the dashboard."})]})})}const it=["Run pipelines from the dashboard with Templates","Re-run a pipeline easily from the UI","Model and Artifact Control Plane Dashboard","Managed ZenML server on your VPC or hosted on our servers","Social SSO, RBAC, and User Management","CI/CD/CT, and more!"];function ot(){return e.jsxs(me,{className:"relative overflow-hidden px-7 py-5",children:[e.jsxs("div",{className:"max-w-[450px] space-y-4",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Access Advanced Template Features with ZenML Pro"}),e.jsx("ul",{className:"space-y-2",children:it.map((t,s)=>e.jsx("li",{className:"text-text-md text-theme-text-secondary",children:t},s))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(p,{size:"md",asChild:!0,children:e.jsx("a",{href:"https://cloud.zenml.io/signup",target:"_blank",rel:"noopener noreferrer",children:"Upgrade to ZenML Pro"})}),e.jsx(p,{emphasis:"minimal",size:"md",children:e.jsx("a",{href:"https://www.zenml.io/pro",target:"_blank",rel:"noopener noreferrer",children:"Learn more"})})]})]}),e.jsx("img",{className:"absolute right-0 top-0 hidden translate-x-[30%] scale-75 md:translate-y-[30%] lg:block xl:-translate-y-[5%]",src:at,alt:"Screenshot of Zenml Pro Templates Feature"})]})}const ct=[{value:"pipelines",label:"Pipelines",icon:ke},{value:"runs",label:"Runs",icon:A},{value:"templates",label:"Templates",icon:je}];function dt(){const[t]=P(),s=nt(),n=Ce();i.useEffect(()=>{if(!t.get("tab")){const l=new URLSearchParams(t);l.set("tab","pipelines"),n(`?${l.toString()}`,{replace:!0})}},[n,t]);function a(r){const l=new URLSearchParams;l.set("tab",r),n(`?${l.toString()}`)}return e.jsx("div",{className:"p-5",children:e.jsxs(pe,{onValueChange:a,value:s,children:[e.jsx(he,{children:ct.map(r=>e.jsxs(xe,{className:"flex items-center gap-2 text-text-md",value:r.value.toLowerCase(),children:[e.jsx(r.icon,{className:`h-5 w-5 ${s===r.value?"fill-primary-400":"fill-theme-text-tertiary"}`}),r.label,r.value==="templates"&&e.jsx(fe,{className:"rounded-sm font-semibold text-primary-500",color:"purple",size:"sm",children:"New"})]},r.value))}),e.jsx(N,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"pipelines",children:e.jsx(_e,{children:e.jsx(Ze,{})})}),e.jsx(N,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"runs",children:e.jsx(Ge,{children:e.jsx(tt,{})})}),e.jsx(N,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"templates",children:e.jsx(rt,{})})]})})}function Ft(){const{setCurrentBreadcrumbData:t}=ge();return i.useEffect(()=>{t({segment:"pipelines",data:null})},[]),e.jsxs("div",{children:[e.jsx(be,{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"Pipelines"})}),e.jsx(dt,{})]})}export{Ft as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as n,j as e}from"./@radix-DnFH_oo1.js";import{a as h,u as y,S as D,E as v}from"./EditSecretDialog-Du423_3U.js";import{a as f,c as S}from"./@tanstack-QbMbTrh5.js";import{an as b,aA as w,o as E,p as N,q as k,I as g,s as T,t as V,f as p,D as L,x as A,y as K,ae as M,af as O,M as H,U as R,B}from"./index-B9wVwe7u.js";import{S as q}from"./dots-horizontal-C6K59vUm.js";import{S as F}from"./trash-DUWZWzse.js";import{A as I}from"./AlertDialogDropdownItem-BXeSvmMY.js";import{g as Q}from"./@react-router-APVeuk-U.js";import"./plus-Bc8eLSDM.js";import"./url-DwbuKk1b.js";import"./zod-uFd1wBcd.js";import"./index.esm-BE1uqCX5.js";import"./@reactflow-B6kq9fJZ.js";const z=s=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99995 9C7.99995 5.13401 11.134 2 14.9999 2C18.8659 2 21.9999 5.13401 21.9999 9C21.9999 12.866 18.8659 16 14.9999 16C14.6816 16 14.3677 15.9787 14.0597 15.9373C13.8347 15.907 13.6939 15.8883 13.5912 15.8784C13.5729 15.8766 13.5579 15.8753 13.5458 15.8745C13.5428 15.8771 13.5395 15.8801 13.5359 15.8833C13.4825 15.9321 13.4121 16.0021 13.2862 16.128L11.7071 17.7071C11.5195 17.8946 11.2652 18 10.9999 18H9.99995V19C9.99995 19.5523 9.55223 20 8.99995 20H7.99995V21C7.99995 21.5523 7.55223 22 6.99995 22L4.56803 22C4.31565 22 4.06987 22.0001 3.86172 21.9831C3.63312 21.9644 3.36339 21.9203 3.09197 21.782C2.71564 21.5903 2.40968 21.2843 2.21793 20.908C2.07964 20.6366 2.03557 20.3668 2.01689 20.1382C1.99988 19.9301 1.99991 19.6843 1.99994 19.4319L1.99995 17.6627C1.99995 17.6462 1.9999 17.6291 1.99985 17.6117C1.99935 17.4218 1.99871 17.1827 2.05521 16.9473C2.1042 16.7432 2.18501 16.5482 2.29467 16.3692C2.42112 16.1629 2.59067 15.9942 2.72532 15.8603C2.73768 15.848 2.74975 15.836 2.76147 15.8243L7.87197 10.7138C7.99789 10.5878 8.06789 10.5175 8.1166 10.464C8.11984 10.4604 8.1228 10.4572 8.12549 10.4541C8.12461 10.442 8.12336 10.427 8.12159 10.4087C8.11168 10.3061 8.09292 10.1653 8.06267 9.94028C8.02127 9.63227 7.99995 9.31836 7.99995 9ZM7.99995 18V17C7.99995 16.4477 8.44766 16 8.99995 16H10.5857L11.872 14.7138C11.889 14.6967 11.9065 14.6791 11.9244 14.6611C12.1036 14.4807 12.3216 14.2613 12.5701 14.1224C12.8036 13.9919 12.9981 13.9262 13.2628 13.8884C13.4562 13.8607 13.6445 13.8742 13.7834 13.8876C13.928 13.9016 14.1065 13.9256 14.3084 13.9527L14.3262 13.9551C14.5461 13.9847 14.771 14 14.9999 14C17.7614 14 19.9999 11.7614 19.9999 9C19.9999 6.23858 17.7614 4 14.9999 4C12.2385 4 9.99995 6.23858 9.99995 9C9.99995 9.22899 10.0153 9.45388 10.0448 9.67379L10.0472 9.6916C10.0744 9.89344 10.0984 10.072 10.1123 10.2165C10.1258 10.3555 10.1393 10.5438 10.1116 10.7372C10.0737 11.0019 10.008 11.1964 9.87753 11.4298C9.73863 11.6783 9.5192 11.8963 9.33879 12.0756C9.32083 12.0934 9.30326 12.1109 9.28619 12.128L4.17568 17.2385C4.08305 17.3311 4.03699 17.3775 4.00494 17.4126C4.0041 17.4135 4.0033 17.4144 4.00253 17.4153C4.00247 17.4164 4.00241 17.4176 4.00236 17.4189C4.00019 17.4664 3.99995 17.5317 3.99995 17.6627V19.4C3.99995 19.6965 4.00072 19.8588 4.01025 19.9754C4.01063 19.98 4.01101 19.9844 4.01139 19.9885C4.01554 19.9889 4.01994 19.9893 4.02458 19.9897C4.14117 19.9992 4.30342 20 4.59995 20H5.99995V19C5.99995 18.4477 6.44766 18 6.99995 18H7.99995ZM13.9999 7C13.9999 6.44772 14.4477 6 14.9999 6C15.7662 6 16.5357 6.29309 17.1213 6.87868C17.7068 7.46425 17.9999 8.23372 17.9999 8.99991C18 9.5522 17.5523 9.99993 17 9.99994C16.4477 9.99996 16 9.55226 15.9999 8.99997C15.9999 8.74251 15.9025 8.48834 15.7071 8.29289C15.5116 8.09743 15.2574 8 14.9999 8C14.4477 8 13.9999 7.55229 13.9999 7Z"}));function P({secretId:s,keyName:r}){const{data:t,isLoading:a,isError:c}=f({...h.secretDetail(s)}),u=S(),{mutate:l}=y({onError(o){b(o)&&w({status:"error",emphasis:"subtle",description:o.message,rounded:!0})},onSuccess(){u.invalidateQueries({queryKey:["secrets"]}),u.invalidateQueries({queryKey:["secretDetail",s]})}}),[d,x]=n.useState(""),m=()=>{var o;if(t){const C={...(o=t.body)==null?void 0:o.values};delete C[r];const j={name:t.name,scope:"workspace",values:C};l({id:s,body:j})}};function i(o){x(o.target.value)}return a?e.jsx("div",{children:"Loading..."}):c?e.jsx("div",{children:"Error loading secret details"}):e.jsxs(E,{children:[e.jsx(N,{children:e.jsx(k,{children:"Delete Key"})}),e.jsxs("div",{className:"gap-5 p-5",children:[e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Are you sure you want to delete this key?"}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"This action cannot be undone."}),e.jsx("h3",{className:"font-inter text-sm mb-1 mt-4 text-left font-medium leading-5",children:"Please type DELETE to confirm"}),e.jsx(g,{name:"key",onChange:i,className:"w-full",required:!0,value:d})]}),e.jsxs(T,{className:"gap-[10px]",children:[e.jsx(V,{asChild:!0,children:e.jsx(p,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(p,{intent:"danger",type:"button",onClick:m,disabled:d!=="DELETE",children:"Delete"})]})]})}function Z({secretId:s,keyName:r}){const[t,a]=n.useState(!1),[c,u]=n.useState(!1),l=n.useRef(null),d=n.useRef(null);function x(){d.current=l.current}function m(i){if(i===!1){a(!1),setTimeout(()=>{u(i)},200);return}u(i)}return e.jsxs(L,{onOpenChange:a,open:t,children:[e.jsx(A,{ref:l,children:e.jsx(q,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(K,{hidden:c,onCloseAutoFocus:i=>{d.current&&(d.current.focus(),d.current=null,i.preventDefault())},align:"end",sideOffset:7,children:e.jsx(I,{onSelect:x,onOpenChange:m,triggerChildren:"Delete ",icon:e.jsx(F,{}),children:e.jsx(P,{secretId:s,keyName:r})})})]})}const U=({value:s})=>{const[r,t]=n.useState(!1),a=typeof s=="string"?s:"",c="•".repeat(a.length);return e.jsxs("div",{className:"flex items-center gap-2 space-x-2",children:[e.jsx(D,{onClick:()=>t(!r),className:"h-4 w-4 flex-shrink-0 cursor-pointer"}),e.jsx("span",{children:r?a:c})]})};function G(s){return[{id:"key",header:"Key",accessorKey:"key",cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(z,{className:"h-4 w-4 flex-shrink-0 cursor-pointer"}),e.jsx("div",{className:"flex flex-col",children:e.jsx("div",{className:"flex flex-row space-x-1",children:e.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:t.getValue("key")})})})]})},{id:"value",header:"Value",accessorKey:"value",cell:({row:t})=>e.jsx(U,{value:t.getValue("value")})},{id:"actions",header:"",cell:({row:t})=>e.jsx(Z,{secretId:s,keyName:t.getValue("key")})}]}function J({secretId:s}){const[r,t]=n.useState(""),{data:a}=f({...h.secretDetail(s)}),c=n.useMemo(()=>{var l;return a?Object.entries(((l=a.body)==null?void 0:l.values)||[]).map(([d,x])=>{var m,i,o,C;return{id:a.id,name:a.name,key:d,value:x,scope:(m=a.body)==null?void 0:m.scope,created:(i=a.body)==null?void 0:i.created,updated:(o=a.body)==null?void 0:o.updated,user:(C=a.body)==null?void 0:C.user}}):[]},[a]),u=n.useMemo(()=>r?c.filter(l=>l.key.toLowerCase().includes(r.toLowerCase())):c,[r,c]);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2",children:[e.jsx(g,{type:"text",placeholder:"Search by key...",value:r,onChange:l=>t(l.target.value),inputSize:"md"}),e.jsxs(M,{children:[e.jsx(O,{asChild:!0,children:e.jsx(p,{size:"sm",intent:"primary",children:"Edit Keys"})}),e.jsx(v,{secretId:s,isSecretNameEditable:!1,dialogTitle:"Edit keys"})]})]}),e.jsx("div",{className:"w-full",children:a&&e.jsx(H,{columns:G(s),data:u})})]})}function oe(){const{secretId:s}=Q(),{setCurrentBreadcrumbData:r}=R(),{data:t}=f({...h.secretDetail(s||"")});return n.useEffect(()=>{t&&r({segment:"secretsDetail",data:{name:t.name,id:t.id}})},[t]),e.jsx(e.Fragment,{children:e.jsxs(B,{className:"space-y-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:t==null?void 0:t.name}),e.jsx("span",{className:"text-sm text-gray-500",children:s==null?void 0:s.slice(0,8)}),e.jsx(J,{secretId:s||""})]})})}export{oe as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,j as e}from"./@radix-DnFH_oo1.js";import{l as j,m as C,k as y,n as M,F as b,ae as T,af as F,f as h,ag as E,ah as P,ai as U,aj as k,z as m,i as v,I as O,ak as I,al as R,am as _,an as q,j as D,o as H,q as z,ao as Z,t as B,ap as K,D as Q,x as V,y as L,e as w,aq as G,ar as J,S as f,M as $,B as W}from"./index-B9wVwe7u.js";import{S as X,P as Y}from"./SearchField-W3GXpLlI.js";import{a as ee,b as N,c as A}from"./@tanstack-QbMbTrh5.js";import{o as se}from"./url-DwbuKk1b.js";import{C as te}from"./CodeSnippet-DNWdQmbo.js";import{u as ae}from"./index.esm-BE1uqCX5.js";import{D as re}from"./DisplayDate-DkCy54Bp.js";import{I as ne}from"./InlineAvatar-Ds2ZFHPc.js";import{S as ie}from"./dots-horizontal-C6K59vUm.js";import{A as oe}from"./AlertDialogDropdownItem-BXeSvmMY.js";import{c as le}from"./@react-router-APVeuk-U.js";import"./@reactflow-B6kq9fJZ.js";import"./chevron-right-double-c9H46Kl8.js";import"./index-5GJ5ysEZ.js";import"./copy-CaGlDsUy.js";function ce({params:a}){return["users",a]}async function de({params:a}){const s=j(C.users.all+"?"+se(a)),t=await y(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&M(),!t.ok)throw new b({message:"Error while fetching users",status:t.status,statusText:t.statusText});return t.json()}function ue(a,s){return ee({queryKey:ce(a),queryFn:()=>de(a),...s})}const me=a=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4C8.06703 4 6.50002 5.567 6.50002 7.5C6.50002 9.433 8.06703 11 10 11C11.933 11 13.5 9.433 13.5 7.5C13.5 5.567 11.933 4 10 4ZM4.50002 7.5C4.50002 4.46243 6.96246 2 10 2C13.0376 2 15.5 4.46243 15.5 7.5C15.5 10.5376 13.0376 13 10 13C6.96246 13 4.50002 10.5376 4.50002 7.5ZM19 14C19.5523 14 20 14.4477 20 15V17H22C22.5523 17 23 17.4477 23 18C23 18.5523 22.5523 19 22 19H20V21C20 21.5523 19.5523 22 19 22C18.4477 22 18 21.5523 18 21V19H16C15.4477 19 15 18.5523 15 18C15 17.4477 15.4477 17 16 17H18V15C18 14.4477 18.4477 14 19 14ZM7.32629 14.5C7.38335 14.5 7.44125 14.5 7.50003 14.5H12C12.5523 14.5 13 14.9477 13 15.5C13 16.0523 12.5523 16.5 12 16.5H7.50003C6.03171 16.5 5.51923 16.5109 5.12917 16.6292C4.17036 16.92 3.42005 17.6703 3.1292 18.6291C3.01088 19.0192 3.00002 19.5317 3.00002 21C3.00002 21.5523 2.55231 22 2.00002 22C1.44774 22 1.00002 21.5523 1.00002 21C1.00002 20.9412 1 20.8833 0.99998 20.8263C0.999526 19.599 0.999216 18.761 1.21532 18.0486C1.70007 16.4506 2.95059 15.2 4.54859 14.7153C5.261 14.4992 6.09902 14.4995 7.32629 14.5Z"}));async function he(a){const s=j(C.users.all),t=await y(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!t.ok){const r=await t.json().then(n=>n.detail).catch(()=>"Failed to create User");throw new b({status:t.status,statusText:t.statusText,message:r})}return t.json()}function xe(a){return N({mutationFn:async s=>he(s),...a})}function pe(){const[a,s]=o.useState(!1),[t,r]=o.useState(null);return e.jsxs(T,{open:a,onOpenChange:n=>{s(n),r(null)},children:[e.jsx(F,{asChild:!0,children:e.jsx(h,{className:"shrink-0",intent:"primary",children:"Add Member"})}),e.jsxs(E,{className:"",children:[e.jsx(P,{children:e.jsx(U,{children:" Add a New Member"})}),t?e.jsx(ge,{name:t.name,token:k(t)}):e.jsx(fe,{setSuccessMember:r})]})]})}m.object({username:m.string(),isAdmin:m.boolean()});function fe({setSuccessMember:a}){const{toast:s}=v(),t=A(),{mutate:r,isPending:n}=xe({onError(d){q(d)&&s({status:"error",emphasis:"subtle",icon:e.jsx(D,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:d.message,rounded:!0})},onSuccess(d){a(d),t.invalidateQueries({queryKey:["users"]})}}),c=o.useId(),l=o.useId(),{register:i,handleSubmit:x,watch:p,setValue:u}=ae();function S(d){r({is_admin:d.isAdmin,name:d.username})}return e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"create-user-form",onSubmit:x(S),className:"space-y-5 p-7",children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:c,className:"text-text-sm",children:"Username"}),e.jsx(O,{...i("username"),id:c,className:"w-full"})]}),e.jsxs("div",{className:"flex gap-5",children:[e.jsx("label",{htmlFor:l,className:"text-text-md",children:"Add user as an Admin"}),e.jsx(I,{onCheckedChange:d=>u("isAdmin",!!d),...i("isAdmin",{value:!1}),id:l})]})]})}),e.jsxs(R,{className:"gap-[10px]",children:[e.jsx(_,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{disabled:!p("username")||n,form:"create-user-form",size:"sm",children:"Generate Token"})]})]})}function ge({token:a,name:s}){return e.jsxs("div",{className:"space-y-5 overflow-hidden p-7 text-center",children:[e.jsx(me,{className:"m-auto mb-5 h-[110px] w-[110px] fill-success-500"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:`The user ${s} was created successfully!`}),e.jsx("p",{className:"text-text-md text-theme-text-secondary",children:"Share the invitation link with the user to complete the registration."})]}),e.jsx(te,{className:"mx-auto",code:a})]})}const je=a=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.9681 6.38231C3.73647 7.92199 3 9.87499 3 12C3 16.9706 7.02944 21 12 21C14.125 21 16.078 20.2635 17.6177 19.0319L4.9681 6.38231ZM6.38231 4.9681L19.0319 17.6177C20.2635 16.078 21 14.125 21 12C21 7.02944 16.9706 3 12 3C9.87499 3 7.92199 3.73647 6.38231 4.9681ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z"}));async function Ce(a){const s=j(C.users.detail(a)),t=await y(s,{method:"DELETE",headers:{"Content-Type":"application/json"}});if(!t.ok){const r=await t.json().then(n=>n.detail).catch(()=>"Failed to delete User");throw new b({status:t.status,statusText:t.statusText,message:r})}return t.json()}function ye(a){return N({mutationFn:async s=>Ce(s),...a})}function be({userId:a,name:s}){const{toast:t}=v(),r=A(),{isPending:n,mutate:c}=ye({onSuccess(){r.invalidateQueries({queryKey:["users"]})},onError:i=>{i instanceof Error&&t({status:"error",emphasis:"subtle",icon:e.jsx(D,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:i.message,rounded:!0})}});function l(){c(a)}return e.jsxs(H,{className:"p-0",children:[e.jsx(z,{className:"py-2 pl-5 pr-3 text-text-lg font-semibold",children:"Delete Member"}),e.jsx("div",{className:"border-y border-theme-border-moderate px-5 py-5",children:e.jsxs(Z,{children:["Deleting ",e.jsx("strong",{children:s})," cannot be undone."]})}),e.jsxs("div",{className:"flex justify-end gap-3 px-5 py-3",children:[e.jsx(B,{asChild:!0,children:e.jsx(h,{intent:"secondary",children:"Cancel"})}),e.jsx(K,{asChild:!0,children:e.jsx(h,{onClick:l,disabled:n,intent:"danger",children:"Delete"})})]})]})}function we({userId:a,name:s}){const[t,r]=o.useState(!1),[n,c]=o.useState(!1),l=o.useRef(null),i=o.useRef(null);function x(){i.current=l.current}function p(u){if(u===!1){c(!1),setTimeout(()=>{r(u)},200);return}r(u)}return e.jsxs(Q,{onOpenChange:c,open:n,children:[e.jsx(V,{ref:l,children:e.jsx(ie,{className:"h-4 w-4 fill-theme-text-tertiary"})}),e.jsx(L,{hidden:t,onCloseAutoFocus:u=>{i.current&&(i.current.focus(),i.current=null,u.preventDefault())},align:"end",sideOffset:7,children:e.jsx(oe,{onSelect:x,onOpenChange:p,triggerChildren:"Remove Member",icon:e.jsx(je,{fill:"red"}),children:e.jsx(be,{name:s,userId:a})})})]})}function ve({isAdmin:a}){return[{id:"name",accessorFn:s=>{var t;return{name:s.name,is_admin:!!((t=s.body)!=null&&t.is_admin)}},cell:({getValue:s})=>{const{name:t,is_admin:r}=s();return e.jsxs("div",{className:"flex",children:[e.jsx(ne,{username:t}),r&&e.jsx("div",{children:e.jsx(w,{className:"ml-2 capitalize",size:"xs",color:"purple",children:"Admin"})})]})},header:"User"},{accessorKey:"status",header:"Status",accessorFn:s=>{var t;return{status:(t=s.body)==null?void 0:t.active}},cell:({getValue:s})=>{const{status:t}=s();return e.jsx(w,{className:"capitalize",color:t?"green":"grey",children:t?"Active":"Inactive"})}},{id:"created",header:"Created",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(re,{dateString:s()})})},...a?[{id:"actions",header:"",accessorFn:s=>({id:s.id,name:G(s)}),meta:{width:"5%"},cell:({getValue:s})=>{const{id:t,name:r}=s();return e.jsx(we,{name:r,userId:t})}}]:[]]}const g=1,De=m.object({page:m.coerce.number().min(g).optional().default(g).catch(g),name:m.string().optional(),operator:m.enum(["and","or"]).optional()});function Ne(){const[a]=le(),{page:s,name:t,operator:r}=De.parse({page:a.get("page")||void 0,name:a.get("name")||void 0,operator:a.get("operator")||void 0});return{page:s,name:t,logical_operator:r}}function Ae(){var l,i;const a=Ne(),{data:s,isError:t}=ue({params:{...a,sort_by:"desc:created"}},{throwOnError:!0}),{data:r,isPending:n,isError:c}=J();return t||c?null:n?e.jsx(f,{className:"h-[350px]"}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx(X,{searchParams:a}),((l=r.body)==null?void 0:l.is_admin)&&e.jsx(pe,{})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:s?e.jsx($,{columns:ve({isAdmin:(i=r.body)==null?void 0:i.is_admin}),data:s.items}):e.jsx(f,{className:"h-[250px] w-full"})}),s?s.total_pages>1&&e.jsx(Y,{searchParams:a,paginate:s}):e.jsx(f,{className:"h-[36px] w-[300px]"})]})]})}function Be(){return e.jsxs(W,{className:"flex flex-col gap-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Members"}),e.jsx(Ae,{})]})}export{Be as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as l,j as s}from"./@radix-DnFH_oo1.js";import{ae as D,af as E,f,ag as k,ah as z,ai as M,i as C,as as P,an as b,j as S,I as o,al as A,am as T,z as a,ar as q,B,S as v,A as L,b as Q,aq as R}from"./index-B9wVwe7u.js";import{c as V}from"./@tanstack-QbMbTrh5.js";import{u as F}from"./index.esm-BE1uqCX5.js";import{t as U}from"./zod-uFd1wBcd.js";import{P as Z}from"./PasswordChecker-DE71J_3F.js";import{u as _}from"./UpdatePasswordSchemas-C6Zb7ASL.js";import{D as K}from"./DisplayDate-DkCy54Bp.js";import"./@react-router-APVeuk-U.js";import"./@reactflow-B6kq9fJZ.js";const O=e=>l.createElement("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 5.5C15.5736 5.5 5.5 15.5736 5.5 28C5.5 40.4264 15.5736 50.5 28 50.5C40.4264 50.5 50.5 40.4264 50.5 28C50.5 15.5736 40.4264 5.5 28 5.5ZM0.5 28C0.5 12.8122 12.8122 0.5 28 0.5C43.1878 0.5 55.5 12.8122 55.5 28C55.5 43.1878 43.1878 55.5 28 55.5C12.8122 55.5 0.5 43.1878 0.5 28ZM41.0178 18.7322C41.9941 19.7085 41.9941 21.2915 41.0178 22.2678L26.0178 37.2678C25.0415 38.2441 23.4585 38.2441 22.4822 37.2678L14.9822 29.7678C14.0059 28.7915 14.0059 27.2085 14.9822 26.2322C15.9585 25.2559 17.5415 25.2559 18.5178 26.2322L24.25 31.9645L37.4822 18.7322C38.4585 17.7559 40.0415 17.7559 41.0178 18.7322Z"}));function H(){const[e,t]=l.useState(!1);return s.jsxs(D,{onOpenChange:()=>{t(!1)},children:[s.jsx(E,{asChild:!0,children:s.jsx(f,{size:"md",className:"shrink-0",intent:"primary",emphasis:"subtle",children:"Change Password"})}),s.jsxs(k,{children:[s.jsx(z,{children:s.jsx(M,{children:" Update Credentials"})}),e?s.jsx(J,{}):s.jsx(G,{setSuccess:t})]})]})}function G({setSuccess:e}){var u;const t=l.useId(),n=l.useId(),d=l.useId(),{toast:x}=C(),{mutate:p,isPending:j}=P({onSuccess(){e(!0)},onError(i){b(i)&&x({status:"error",emphasis:"subtle",icon:s.jsx(S,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:i.message,rounded:!0})}}),{register:c,handleSubmit:m,watch:w,formState:{isValid:N,errors:g}}=F({resolver:U(_),mode:"onChange",criteriaMode:"all"});function y(i){p({old_password:i.oldPassword,password:i.newPassword})}const h=(u=g.newPassword)==null?void 0:u.types;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-5 p-7",children:[s.jsx("form",{id:"update-password-form",onSubmit:m(y),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:t,className:"text-text-sm",children:"Old Password"}),s.jsx(o,{...c("oldPassword"),type:"password",id:t,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:n,className:"text-text-sm",children:"New Password"}),s.jsx(o,{...c("newPassword"),type:"password",id:n,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:d,className:"text-text-sm",children:"Confirm Password"}),s.jsx(o,{...c("confirmPassword"),type:"password",id:d,className:"w-full"})]})]})}),s.jsx(Z,{val:w("newPassword"),errors:h||[]})]}),s.jsxs(A,{className:"gap-[10px]",children:[s.jsx(T,{asChild:!0,children:s.jsx(f,{size:"sm",intent:"secondary",children:"Cancel"})}),s.jsx(f,{disabled:!N||j,form:"update-password-form",size:"sm",children:"Update Password"})]})]})}function J(){return s.jsxs("div",{className:"space-y-5 p-7 text-center",children:[s.jsx(O,{className:"mx-auto h-[110px] w-[110px] fill-success-500"}),s.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:"The password was updated successfully!"})]})}const W=a.object({fullName:a.union([a.string(),a.literal("")]),username:a.union([a.string(),a.literal("")]),email:a.union([a.string().email(),a.literal("")])}).refine(e=>e.fullName!==""||e.username!==""||e.email!=="");function X({user:e}){var h,u,i;const t=V(),{toast:n}=C(),d=l.useId(),x=l.useId(),p=l.useId(),{isPending:j,mutate:c}=P({onError(r){b(r)&&n({status:"error",emphasis:"subtle",icon:s.jsx(S,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:r.message,rounded:!0})},onSuccess:()=>{t.invalidateQueries({queryKey:["current-user"]}),t.invalidateQueries({queryKey:["users"]}),w(),n({status:"success",emphasis:"subtle",rounded:!0,description:"User updated successfully"})}}),{register:m,reset:w,handleSubmit:N,formState:{isValid:g}}=F({resolver:U(W),defaultValues:{email:void 0,fullName:void 0,username:void 0}});function y(r){const I={...r.fullName&&{full_name:r.fullName},...r.username&&{name:r.username},...r.email&&{email:r.email}};c(I)}return s.jsxs("div",{className:"w-full max-w-[600px]",children:[s.jsx("form",{onSubmit:N(y),children:s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:d,className:"text-text-sm",children:"Full Name"}),s.jsx(o,{placeholder:(h=e.body)==null?void 0:h.full_name,...m("fullName"),id:d,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:x,className:"text-text-sm",children:"Username"}),s.jsx(o,{...m("username"),placeholder:e.name,id:x,className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{htmlFor:p,className:"text-text-sm",children:"Email"}),s.jsx(o,{placeholder:((u=e.metadata)==null?void 0:u.email)??void 0,...m("email"),id:p,className:"w-full"})]}),s.jsx("div",{className:"flex justify-end",children:s.jsx(f,{disabled:j||!g,size:"md",intent:"primary",children:"Update"})})]})}),s.jsx(H,{}),s.jsxs("p",{className:"mt-5 text-text-sm text-theme-text-secondary",children:["Created on ",s.jsx(K,{dateString:((i=e.body)==null?void 0:i.created)||""})]})]})}function ns(){const{data:e}=q();return s.jsxs(B,{className:"flex flex-col gap-5 p-5",children:[s.jsx("h1",{className:"text-text-xl font-semibold",children:"Profile"}),s.jsxs("div",{className:"flex justify-between",children:[e?s.jsx(X,{user:e}):s.jsx(v,{className:"h-[350px] w-full"}),e?s.jsx(L,{size:"xxl",className:"ml-5 h-[140px] w-[140px]",type:"rounded",children:s.jsx(Q,{className:"text-display-lg",size:"xxl",children:R(e)[0]})}):s.jsx(v,{className:"h-[140px] w-[140px] rounded-rounded"})]})]})}export{ns as default};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{j as r}from"./@radix-DnFH_oo1.js";import{K as i,z as a}from"./index-B9wVwe7u.js";import{C as c,a as m}from"./sharedSchema-BfZcy7aP.js";function g({type:t,children:e}){return r.jsxs(i,{rounded:!1,className:"inline-flex items-center gap-0.5 text-text-sm",color:"purple",emphasis:"minimal",children:[r.jsx(c,{type:t,className:"h-4 w-4 fill-current"}),r.jsx("span",{children:e})]})}const o=a.enum(["aws","gcp","azure"]),u=a.object({provider:o}),S=a.object({region:a.string().trim().min(1),stackName:m}),s="new-infra-data",n=a.object({provider:o,stackName:a.string().min(1).trim(),location:a.string().min(1).trim(),timestamp:a.string().min(1).trim()});function h(t){localStorage.setItem(s,JSON.stringify(t))}function x(){try{const t=localStorage.getItem(s),e=t?JSON.parse(t):{};return n.safeParse(e)}catch{return p(),n.safeParse({})}}function p(){localStorage.removeItem(s)}export{g as C,S as a,u as b,p as c,o as d,x as p,h as s};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import{q as u}from"./@tanstack-QbMbTrh5.js";import{l as p,m as h,k as v,n as g,F as L,z as j}from"./index-B9wVwe7u.js";import{o as w}from"./url-DwbuKk1b.js";import{f as D,a as E,S as R}from"./stack-detail-query-CU4egfhp.js";import{r as a,j as c,g as T}from"./@radix-DnFH_oo1.js";import{S as F}from"./layout-Dru15_XR.js";import{S as A}from"./rocket-SESCGQXm.js";async function P(e){const C=p(h.stackDeployment.config)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&g(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stack deployment config");throw new L({status:t.status,statusText:t.statusText,message:r})}return t.json()}async function B(e){const C=p(h.stackDeployment.info)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&g(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stack deployment info");throw new L({status:t.status,statusText:t.statusText,message:r})}return t.json()}async function _(e){const C=p(h.stackDeployment.stack)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&g(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching the deployed stack");throw new L({status:t.status,statusText:t.statusText,message:r})}return t.json()}async function b(e){const C=p(h.stacks.all)+(e?`?${w(e)}`:""),t=await v(C,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&g(),!t.ok){const r=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching stacks");throw new L({status:t.status,statusText:t.statusText,message:r})}return t.json()}const f={all:["stacks"],stackDeployment:["stack-deployment"],stackList:e=>u({queryKey:[...f.all,e],queryFn:async()=>b(e)}),stackDetail:e=>u({queryKey:[...f.all,e],queryFn:async()=>D({stackId:e})}),stackDeploymentInfo:e=>u({queryKey:[...f.stackDeployment,"info",e],queryFn:async()=>B(e)}),stackDeploymentStack:e=>u({queryKey:[...f.stackDeployment,"stack",e],queryFn:async()=>_(e)}),stackDeploymentConfig:e=>u({queryKey:[...f.stackDeployment,"config",e],queryFn:async()=>P(e)})},q=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V13.5343C22 14.2041 22 14.7569 21.9691 15.2095C21.9371 15.6788 21.8686 16.1129 21.6955 16.5307C21.2895 17.5108 20.5108 18.2895 19.5307 18.6955C19.1129 18.8686 18.6788 18.9371 18.2095 18.9691C17.7569 19 17.2041 19 16.5343 19H16.5C15.9634 19 15.8569 19.0063 15.7702 19.0268C15.6192 19.0624 15.4784 19.1328 15.3593 19.2322C15.2909 19.2893 15.2219 19.3707 14.9 19.8L13.4231 21.7693C13.3297 21.8938 13.2242 22.0346 13.1226 22.1476C13.0106 22.2721 12.8244 22.4555 12.5437 22.5647C12.194 22.7007 11.806 22.7007 11.4563 22.5647C11.1756 22.4555 10.9894 22.2721 10.8774 22.1476C10.7758 22.0346 10.6703 21.8938 10.577 21.7693L9.1 19.8C8.77806 19.3708 8.70913 19.2893 8.64075 19.2322C8.52156 19.1328 8.38085 19.0624 8.22975 19.0268C8.14307 19.0063 8.03656 19 7.5 19H7.46573C6.79594 19 6.24307 19 5.79046 18.9691C5.32118 18.9371 4.88708 18.8686 4.46927 18.6955C3.48915 18.2895 2.71046 17.5108 2.30448 16.5307C2.13142 16.1129 2.06288 15.6788 2.03087 15.2095C1.99998 14.7569 1.99999 14.2041 2 13.5343L2 7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V13.5C4 14.2126 4.00054 14.697 4.02623 15.0734C4.0513 15.4409 4.09694 15.6319 4.15224 15.7654C4.35523 16.2554 4.74458 16.6448 5.23463 16.8478C5.36813 16.9031 5.55915 16.9487 5.9266 16.9738C6.30304 16.9995 6.78741 17 7.5 17C7.52818 17 7.55611 17 7.58382 16.9999C7.9894 16.9996 8.34611 16.9992 8.68926 17.0803C9.14254 17.1873 9.56467 17.3983 9.92224 17.6967C10.1929 17.9227 10.4067 18.2082 10.6497 18.5329C10.6663 18.5551 10.6831 18.5775 10.7 18.6L12 20.3333L13.3 18.6C13.3169 18.5775 13.3337 18.5551 13.3503 18.5329C13.5933 18.2082 13.8071 17.9227 14.0778 17.6967C14.4353 17.3983 14.8575 17.1873 15.3107 17.0803C15.6539 16.9992 16.0106 16.9996 16.4162 16.9999C16.4439 17 16.4718 17 16.5 17C17.2126 17 17.697 16.9995 18.0734 16.9738C18.4409 16.9487 18.6319 16.9031 18.7654 16.8478C19.2554 16.6448 19.6448 16.2554 19.8478 15.7654C19.9031 15.6319 19.9487 15.4409 19.9738 15.0734C19.9995 14.697 20 14.2126 20 13.5V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V10.5C13 11.0523 12.5523 11.5 12 11.5C11.4477 11.5 11 11.0523 11 10.5V7C11 6.44772 11.4477 6 12 6ZM11 14C11 13.4477 11.4477 13 12 13H12.01C12.5623 13 13.01 13.4477 13.01 14C13.01 14.5523 12.5623 15 12.01 15H12C11.4477 15 11 14.5523 11 14Z"})),O=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H12C11.4477 4 11 3.55229 11 3C11 2.44772 11.4477 2 12 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.71569 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55228 12 9 12.4477 9 13V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 3.29289C9.09763 3.68342 9.09763 4.31658 8.70711 4.70711L4.70711 8.70711C4.31658 9.09763 3.68342 9.09763 3.29289 8.70711L1.29289 6.70711C0.902369 6.31658 0.902369 5.68342 1.29289 5.29289C1.68342 4.90237 2.31658 4.90237 2.70711 5.29289L4 6.58579L7.29289 3.29289C7.68342 2.90237 8.31658 2.90237 8.70711 3.29289Z"})),K=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56808 1C9.5787 1 9.58933 1.00001 9.59997 1.00001L14.4319 1C14.6843 0.999973 14.93 0.999943 15.1382 1.01695C15.3668 1.03563 15.6365 1.07969 15.908 1.21799C16.2843 1.40974 16.5902 1.7157 16.782 2.09202C16.9203 2.36345 16.9644 2.63318 16.983 2.86178C16.9869 2.90871 16.9898 2.95756 16.9921 3.00797C17.3873 3.02072 17.7257 3.05337 18.0353 3.1363C19.4156 3.50617 20.4938 4.58436 20.8637 5.96473C21.0008 6.47638 21.0005 7.06704 21 7.86243C21 7.90762 21 7.95347 21 8.00001V17.2413C21 18.0463 21 18.7106 20.9558 19.2518C20.9099 19.8139 20.8113 20.3306 20.564 20.816C20.1805 21.5686 19.5686 22.1805 18.8159 22.564C18.3306 22.8113 17.8139 22.9099 17.2518 22.9558C16.7106 23 16.0463 23 15.2413 23H8.75865C7.95369 23 7.28934 23 6.74815 22.9558C6.18605 22.9099 5.66935 22.8113 5.18401 22.564C4.43136 22.1805 3.81944 21.5686 3.43595 20.816C3.18866 20.3306 3.09009 19.8139 3.04417 19.2518C2.99995 18.7106 2.99996 18.0463 2.99997 17.2413L2.99997 8.00001C2.99997 7.95347 2.99995 7.90762 2.99993 7.86242C2.99949 7.06704 2.99917 6.47638 3.13627 5.96473C3.50614 4.58436 4.58433 3.50617 5.9647 3.1363C6.27421 3.05337 6.61264 3.02072 7.00782 3.00796C7.01012 2.95756 7.01308 2.90871 7.01692 2.86178C7.0356 2.63318 7.07966 2.36345 7.21796 2.09202C7.40971 1.7157 7.71567 1.40974 8.09199 1.21799C8.36342 1.07969 8.63315 1.03563 8.86174 1.01695C9.0699 0.999943 9.31569 0.999973 9.56808 1ZM7.00865 5.00956C6.74556 5.01867 6.60245 5.03597 6.48234 5.06815C5.79215 5.25309 5.25306 5.79218 5.06812 6.48237C5.00856 6.70465 4.99997 7.00565 4.99997 8.00001V17.2C4.99997 18.0566 5.00075 18.6389 5.03753 19.089C5.07335 19.5274 5.13827 19.7516 5.21796 19.908C5.40971 20.2843 5.71567 20.5903 6.09199 20.782C6.24839 20.8617 6.4726 20.9266 6.91101 20.9625C7.3611 20.9992 7.94339 21 8.79997 21H15.2C16.0566 21 16.6388 20.9992 17.0889 20.9625C17.5274 20.9266 17.7516 20.8617 17.908 20.782C18.2843 20.5903 18.5902 20.2843 18.782 19.908C18.8617 19.7516 18.9266 19.5274 18.9624 19.089C18.9992 18.6389 19 18.0566 19 17.2V8.00001C19 7.00565 18.9914 6.70465 18.9318 6.48237C18.7469 5.79218 18.2078 5.25309 17.5176 5.06815C17.3975 5.03597 17.2544 5.01867 16.9913 5.00956C16.9891 5.05378 16.9864 5.09676 16.983 5.13824C16.9644 5.36683 16.9203 5.63656 16.782 5.90799C16.5902 6.28431 16.2843 6.59027 15.908 6.78202C15.6365 6.92032 15.3668 6.96438 15.1382 6.98306C14.93 7.00007 14.6843 7.00004 14.4319 7.00001L9.59997 7.00001C9.58933 7.00001 9.5787 7.00001 9.56808 7.00001C9.31569 7.00004 9.0699 7.00007 8.86174 6.98306C8.63315 6.96438 8.36342 6.92032 8.09199 6.78202C7.71567 6.59027 7.40971 6.28431 7.21796 5.90799C7.07966 5.63656 7.0356 5.36683 7.01692 5.13824C7.01353 5.09676 7.01082 5.05378 7.00865 5.00956ZM15 3.60001C15 3.30348 14.9992 3.14122 14.9897 3.02464C14.9893 3.02 14.9889 3.0156 14.9885 3.01145C14.9844 3.01107 14.98 3.01069 14.9753 3.01031C14.8588 3.00078 14.6965 3.00001 14.4 3.00001H9.59997C9.30345 3.00001 9.14119 3.00078 9.02461 3.01031C9.01997 3.01069 9.01557 3.01107 9.01142 3.01145C9.01104 3.0156 9.01066 3.02 9.01028 3.02464C9.00075 3.14122 8.99997 3.30348 8.99997 3.60001V4.40001C8.99997 4.69653 9.00075 4.85879 9.01028 4.97537C9.01066 4.98001 9.01104 4.98441 9.01142 4.98856C9.01557 4.98894 9.01997 4.98932 9.02461 4.9897C9.14119 4.99923 9.30345 5.00001 9.59997 5.00001H14.4C14.6965 5.00001 14.8588 4.99923 14.9753 4.9897C14.98 4.98932 14.9844 4.98894 14.9885 4.98856C14.9889 4.98441 14.9893 4.98001 14.9897 4.97537C14.9992 4.85879 15 4.69653 15 4.40001V3.60001Z"})),$=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V16.0586C22 16.082 22.0001 16.1061 22.0002 16.1308C22.0011 16.3946 22.0024 16.7264 21.899 17.0391C21.8097 17.3095 21.6637 17.5576 21.4707 17.767C21.2476 18.0092 20.9569 18.1693 20.7258 18.2966C20.7042 18.3085 20.6831 18.3201 20.6627 18.3314L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.2742 18.2966C3.04307 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.6907 2.33632 6.44253 2.52927 6.23315C2.75244 5.99097 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52436C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM12 3.14907C11.9985 3.1498 11.9969 3.15056 11.9952 3.15136C11.9375 3.1792 11.8602 3.22173 11.7086 3.30592L5.05914 7.00008L12 10.8561L18.9408 7.00006L12.2914 3.30592C12.1398 3.22173 12.0625 3.1792 12.0048 3.15136C12.0031 3.15056 12.0015 3.1498 12 3.14907ZM20 8.69955V16.0586C20 16.2416 19.9996 16.3353 19.9955 16.4031C19.9954 16.4051 19.9953 16.407 19.9951 16.4088C19.9936 16.4098 19.992 16.4108 19.9903 16.4119C19.933 16.4484 19.8513 16.4943 19.6914 16.5831L13 20.3006L13 12.5885L20 8.69955ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.0097 16.4119C4.067 16.4484 4.14866 16.4943 4.30862 16.5831L11 20.3006L11 12.5885Z"})),G=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.09 4.05463C9.96938 4.01302 9.8127 3.99997 9.02229 3.99997H5.2C4.62345 3.99997 4.25117 4.00075 3.96784 4.0239C3.69617 4.04609 3.59546 4.08377 3.54601 4.10896C3.35785 4.20484 3.20487 4.35782 3.109 4.54598C3.0838 4.59542 3.04612 4.69614 3.02393 4.96781C3.00357 5.21695 3.00052 5.53487 3.00007 5.99997H11.382L10.99 5.2161C10.6366 4.50915 10.5548 4.37484 10.4637 4.28555C10.3578 4.18184 10.2301 4.10296 10.09 4.05463ZM13.618 5.99997L12.7789 4.32168C12.7602 4.28429 12.7417 4.24719 12.7234 4.2104C12.4586 3.67916 12.2258 3.21196 11.8631 2.85672C11.5454 2.54557 11.1625 2.30893 10.7421 2.16394C10.2622 1.99839 9.74022 1.99908 9.14666 1.99986C9.10555 1.99992 9.0641 1.99997 9.02229 1.99997L5.16146 1.99997C4.63431 1.99995 4.17955 1.99994 3.80497 2.03054C3.40963 2.06284 3.01641 2.13416 2.63803 2.32695C2.07354 2.61457 1.6146 3.07351 1.32698 3.638C1.13419 4.01638 1.06287 4.4096 1.03057 4.80494C0.999967 5.17952 0.999983 5.63428 1 6.16143L1 16.2413C0.999989 17.0462 0.999978 17.7106 1.0442 18.2518C1.09012 18.8139 1.18868 19.3306 1.43598 19.8159C1.81947 20.5686 2.43139 21.1805 3.18404 21.564C3.66938 21.8113 4.18608 21.9099 4.74818 21.9558C5.28937 22 5.95372 22 6.75868 22H17.2413C18.0463 22 18.7106 22 19.2518 21.9558C19.8139 21.9099 20.3306 21.8113 20.816 21.564C21.5686 21.1805 22.1805 20.5686 22.564 19.8159C22.8113 19.3306 22.9099 18.8139 22.9558 18.2518C23 17.7106 23 17.0463 23 16.2413V11.7586C23 10.9537 23 10.2893 22.9558 9.74815C22.9099 9.18605 22.8113 8.66934 22.564 8.18401C22.1805 7.43136 21.5686 6.81944 20.816 6.43595C20.3306 6.18865 19.8139 6.09009 19.2518 6.04417C18.7106 5.99995 18.0463 5.99996 17.2413 5.99997L13.618 5.99997ZM12.9799 7.99997C12.9938 8.00026 13.0077 8.00026 13.0217 7.99997H17.2C18.0566 7.99997 18.6389 8.00075 19.089 8.03752C19.5274 8.07334 19.7516 8.13827 19.908 8.21796C20.2843 8.40971 20.5903 8.71567 20.782 9.09199C20.8617 9.24839 20.9266 9.47259 20.9625 9.91101C20.9992 10.3611 21 10.9434 21 11.8V16.2C21 17.0566 20.9992 17.6388 20.9625 18.0889C20.9266 18.5273 20.8617 18.7516 20.782 18.908C20.5903 19.2843 20.2843 19.5902 19.908 19.782C19.7516 19.8617 19.5274 19.9266 19.089 19.9624C18.6389 19.9992 18.0566 20 17.2 20H6.8C5.94342 20 5.36113 19.9992 4.91104 19.9624C4.47262 19.9266 4.24842 19.8617 4.09202 19.782C3.7157 19.5902 3.40974 19.2843 3.21799 18.908C3.1383 18.7516 3.07337 18.5273 3.03755 18.0889C3.00078 17.6388 3 17.0566 3 16.2V7.99997H12.9799Z"})),I=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0331 3.55266C16.2491 2.10798 17.4952 1 19 1C20.6569 1 22 2.34315 22 4C22 5.65685 20.6569 7 19 7C18.0222 7 17.1537 6.53221 16.606 5.80823L14.7071 7.70711C14.5196 7.89464 14.2652 8 14 8H11.3028L8.5547 9.83205C8.39043 9.94156 8.19742 10 8 10H6C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8H7.69722L10.4453 6.16795C10.6096 6.05844 10.8026 6 11 6H13.5858L16.0331 3.55266ZM19 3C18.4477 3 18 3.44771 18 4C18 4.55228 18.4477 5 19 5C19.5523 5 20 4.55228 20 4C20 3.44772 19.5523 3 19 3ZM4.62228 2.69442C6.62277 1.19905 9.25414 1.36395 11.3162 2.05132C11.8402 2.22596 12.1233 2.79228 11.9487 3.31623C11.774 3.84017 11.2077 4.12333 10.6838 3.94868C8.90412 3.35547 7.06274 3.36718 5.81971 4.29634C4.46575 5.30843 3 7.24435 3 12C3 12.9382 3.05705 13.7667 3.15904 14.5H4.99576C5.16125 14.5 5.32416 14.4589 5.46986 14.3805L11.7479 11H16.1707C16.5825 9.83481 17.6938 9 19 9C20.6569 9 22 10.3431 22 12C22 13.6569 20.6569 15 19 15C17.6938 15 16.5825 14.1652 16.1707 13H12.2521L6.41806 16.1414C5.98094 16.3768 5.49223 16.5 4.99576 16.5H3.61096C4.1633 18.166 5.01143 19.0995 5.81971 19.7037C7.06274 20.6328 8.90412 20.6445 10.6838 20.0513C11.2077 19.8767 11.774 20.1598 11.9487 20.6838C12.1233 21.2077 11.8402 21.774 11.3162 21.9487C9.25414 22.636 6.62277 22.8009 4.62228 21.3056C2.65716 19.8367 1 17.241 1 12C1 6.75899 2.65716 4.16335 4.62228 2.69442ZM19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11ZM8.79289 16.2929C8.98043 16.1054 9.23478 16 9.5 16H14C14.2652 16 14.5196 16.1054 14.7071 16.2929L16.606 18.1918C17.1537 17.4678 18.0222 17 19 17C20.6569 17 22 18.3431 22 20C22 21.6569 20.6569 23 19 23C17.4952 23 16.2491 21.892 16.0331 20.4473L13.5858 18H9.91421L9.20711 18.7071C8.81658 19.0976 8.18342 19.0976 7.79289 18.7071C7.40237 18.3166 7.40237 17.6834 7.79289 17.2929L8.79289 16.2929ZM19 19C18.4477 19 18 19.4477 18 20C18 20.5523 18.4477 21 19 21C19.5523 21 20 20.5523 20 20C20 19.4477 19.5523 19 19 19Z"})),W=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L12.7846 2.41823L13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315L21.1563 6.52296L21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153L22 12.5001C22 13.0524 21.5523 13.5001 21 13.5001C20.4477 13.5001 20 13.0524 20 12.5001L20 8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.3006L13.5144 20.0148C13.9971 19.7466 14.6059 19.9205 14.8742 20.4033C15.1424 20.8861 14.9684 21.4949 14.4856 21.7631L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.27421 18.2966C3.04308 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.69069 2.33632 6.44253 2.52927 6.23315C2.75244 5.99098 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L3.33733 5.66872L6.99904 3.63444C7.00862 3.62891 7.01828 3.62354 7.02802 3.61834L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52437C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM7.5 5.64404L5.05914 7.00008L12 10.8561L14.4408 9.50006L7.5 5.64404ZM16.5 8.3561L9.55913 4.50008L11.7086 3.30592C11.8602 3.22174 11.9375 3.1792 11.9952 3.15136C11.9969 3.15056 11.9985 3.1498 12 3.14907C12.0015 3.1498 12.0031 3.15056 12.0048 3.15136C12.0625 3.1792 12.1398 3.22173 12.2914 3.30592L18.9408 7.00006L16.5 8.3561ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.00971 16.4119C4.067 16.4484 4.14867 16.4943 4.30862 16.5831L3.82297 17.4573L4.30862 16.5831L11 20.3006L11 12.5885ZM19 14.0001C19.5523 14.0001 20 14.4478 20 15.0001V17.0001H22C22.5523 17.0001 23 17.4478 23 18.0001C23 18.5524 22.5523 19.0001 22 19.0001H20V21.0001C20 21.5524 19.5523 22.0001 19 22.0001C18.4477 22.0001 18 21.5524 18 21.0001V19.0001H16C15.4477 19.0001 15 18.5524 15 18.0001C15 17.4478 15.4477 17.0001 16 17.0001H18V15.0001C18 14.4478 18.4477 14.0001 19 14.0001Z"})),z=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.56811 2C4.57873 2 4.58936 2.00001 4.60001 2.00001H5.40001C5.41065 2.00001 5.42128 2 5.4319 2C5.68429 1.99997 5.93008 1.99994 6.13824 2.01695C6.36683 2.03563 6.63656 2.07969 6.90799 2.21799C7.28431 2.40974 7.59027 2.7157 7.78202 3.09202C7.92032 3.36345 7.96438 3.63318 7.98306 3.86178C7.98669 3.90624 7.98955 3.95241 7.99179 4.00001L16.0082 4.00001C16.0105 3.95241 16.0133 3.90624 16.0169 3.86178C16.0356 3.63318 16.0797 3.36345 16.218 3.09202C16.4097 2.7157 16.7157 2.40974 17.092 2.21799C17.3634 2.07969 17.6332 2.03563 17.8618 2.01695C18.0699 1.99994 18.3157 1.99997 18.5681 2H19.4319C19.6843 1.99997 19.9301 1.99994 20.1382 2.01695C20.3668 2.03563 20.6366 2.07969 20.908 2.21799C21.2843 2.40974 21.5903 2.7157 21.782 3.09202C21.9203 3.36345 21.9644 3.63318 21.9831 3.86178C22.0001 4.06993 22 4.31571 22 4.56809V5.43192C22 5.6843 22.0001 5.93008 21.9831 6.13824C21.9644 6.36683 21.9203 6.63656 21.782 6.90799C21.5903 7.28431 21.2843 7.59027 20.908 7.78202C20.6366 7.92032 20.3668 7.96438 20.1382 7.98306C20.0938 7.98669 20.0476 7.98955 20 7.99179V16.0082C20.0476 16.0105 20.0938 16.0133 20.1382 16.0169C20.3668 16.0356 20.6366 16.0797 20.908 16.218C21.2843 16.4097 21.5903 16.7157 21.782 17.092C21.9203 17.3634 21.9644 17.6332 21.9831 17.8618C22.0001 18.0699 22 18.3157 22 18.5681V19.4319C22 19.6843 22.0001 19.9301 21.9831 20.1382C21.9644 20.3668 21.9203 20.6366 21.782 20.908C21.5903 21.2843 21.2843 21.5903 20.908 21.782C20.6366 21.9203 20.3668 21.9644 20.1382 21.9831C19.9301 22.0001 19.6843 22 19.4319 22H18.5681C18.3157 22 18.0699 22.0001 17.8618 21.9831C17.6332 21.9644 17.3634 21.9203 17.092 21.782C16.7157 21.5903 16.4097 21.2843 16.218 20.908C16.0797 20.6366 16.0356 20.3668 16.0169 20.1382C16.0133 20.0938 16.0105 20.0476 16.0082 20H7.99179C7.98955 20.0476 7.98669 20.0938 7.98306 20.1382C7.96438 20.3668 7.92032 20.6366 7.78202 20.908C7.59027 21.2843 7.28431 21.5903 6.90799 21.782C6.63656 21.9203 6.36683 21.9644 6.13824 21.9831C5.93008 22.0001 5.6843 22 5.43192 22H4.56809C4.31571 22 4.06993 22.0001 3.86178 21.9831C3.63318 21.9644 3.36345 21.9203 3.09202 21.782C2.7157 21.5903 2.40974 21.2843 2.21799 20.908C2.07969 20.6366 2.03563 20.3668 2.01695 20.1382C1.99994 19.9301 1.99997 19.6843 2 19.4319V18.5681C1.99997 18.3157 1.99994 18.0699 2.01695 17.8618C2.03563 17.6332 2.07969 17.3634 2.21799 17.092C2.40974 16.7157 2.7157 16.4097 3.09202 16.218C3.36345 16.0797 3.63318 16.0356 3.86178 16.0169C3.90624 16.0133 3.95241 16.0105 4.00001 16.0082V7.99179C3.95241 7.98955 3.90624 7.98669 3.86178 7.98306C3.63318 7.96438 3.36345 7.92032 3.09202 7.78202C2.7157 7.59027 2.40974 7.28431 2.21799 6.90799C2.07969 6.63656 2.03563 6.36683 2.01695 6.13824C1.99994 5.93008 1.99997 5.68429 2 5.4319C2 5.42128 2.00001 5.41065 2.00001 5.40001V4.60001C2.00001 4.58936 2 4.57873 2 4.56811C1.99997 4.31572 1.99994 4.06993 2.01695 3.86178C2.03563 3.63318 2.07969 3.36345 2.21799 3.09202C2.40974 2.7157 2.7157 2.40974 3.09202 2.21799C3.36345 2.07969 3.63318 2.03563 3.86178 2.01695C4.06993 1.99994 4.31572 1.99997 4.56811 2ZM6.00001 7.99179V16.0082C6.0476 16.0105 6.09377 16.0133 6.13824 16.0169C6.36683 16.0356 6.63656 16.0797 6.90799 16.218C7.28431 16.4097 7.59027 16.7157 7.78202 17.092C7.92032 17.3634 7.96438 17.6332 7.98306 17.8618C7.98669 17.9062 7.98955 17.9524 7.99179 18H16.0082C16.0105 17.9524 16.0133 17.9062 16.0169 17.8618C16.0356 17.6332 16.0797 17.3634 16.218 17.092C16.4097 16.7157 16.7157 16.4097 17.092 16.218C17.3634 16.0797 17.6332 16.0356 17.8618 16.0169C17.9062 16.0133 17.9524 16.0105 18 16.0082V7.99179C17.9524 7.98955 17.9062 7.98669 17.8618 7.98306C17.6332 7.96438 17.3634 7.92032 17.092 7.78202C16.7157 7.59027 16.4097 7.28431 16.218 6.90799C16.0797 6.63656 16.0356 6.36683 16.0169 6.13824C16.0133 6.09377 16.0105 6.0476 16.0082 6.00001L7.99179 6.00001C7.98955 6.0476 7.98669 6.09377 7.98306 6.13824C7.96438 6.36683 7.92032 6.63656 7.78202 6.90799C7.59027 7.28431 7.28431 7.59027 6.90799 7.78202C6.63656 7.92032 6.36683 7.96438 6.13824 7.98306C6.09377 7.98669 6.0476 7.98955 6.00001 7.99179ZM6.00001 4.60001C6.00001 4.30348 5.99923 4.14122 5.9897 4.02464C5.98932 4.02 5.98894 4.0156 5.98856 4.01145C5.98441 4.01107 5.98001 4.01069 5.97537 4.01031C5.85879 4.00078 5.69653 4.00001 5.40001 4.00001H4.60001C4.30348 4.00001 4.14122 4.00078 4.02464 4.01031C4.02 4.01069 4.0156 4.01107 4.01145 4.01145C4.01107 4.0156 4.01069 4.02 4.01031 4.02464C4.00078 4.14122 4.00001 4.30348 4.00001 4.60001V5.40001C4.00001 5.69653 4.00078 5.85879 4.01031 5.97537C4.01069 5.98001 4.01107 5.98441 4.01145 5.98856C4.0156 5.98894 4.02 5.98932 4.02464 5.9897C4.14122 5.99923 4.30348 6.00001 4.60001 6.00001H5.40001C5.69653 6.00001 5.85879 5.99923 5.97537 5.9897C5.98001 5.98932 5.98441 5.98894 5.98856 5.98856C5.98894 5.98441 5.98932 5.98001 5.9897 5.97537C5.99923 5.85879 6.00001 5.69653 6.00001 5.40001V4.60001ZM18 5.40001C18 5.69653 18.0008 5.85879 18.0103 5.97537C18.0107 5.98001 18.0111 5.98441 18.0115 5.98856C18.0156 5.98894 18.02 5.98932 18.0246 5.9897C18.1412 5.99923 18.3035 6.00001 18.6 6.00001H19.4C19.6965 6.00001 19.8588 5.99923 19.9754 5.9897C19.98 5.98932 19.9844 5.98893 19.9886 5.98855C19.9889 5.9844 19.9893 5.98001 19.9897 5.97537C19.9992 5.85879 20 5.69653 20 5.40001V4.60001C20 4.30348 19.9992 4.14122 19.9897 4.02464C19.9893 4.02 19.9889 4.0156 19.9885 4.01145C19.9844 4.01107 19.98 4.01069 19.9754 4.01031C19.8588 4.00078 19.6965 4.00001 19.4 4.00001H18.6C18.3035 4.00001 18.1412 4.00078 18.0246 4.01031C18.02 4.01069 18.0156 4.01107 18.0115 4.01145C18.0111 4.0156 18.0107 4.02 18.0103 4.02464C18.0008 4.14122 18 4.30348 18 4.60001V5.40001ZM18.6 18C18.3035 18 18.1412 18.0008 18.0246 18.0103C18.02 18.0107 18.0156 18.0111 18.0115 18.0115C18.0111 18.0156 18.0107 18.02 18.0103 18.0246C18.0008 18.1412 18 18.3035 18 18.6V19.4C18 19.6965 18.0008 19.8588 18.0103 19.9754C18.0107 19.98 18.0111 19.9844 18.0115 19.9885C18.0156 19.9889 18.02 19.9893 18.0246 19.9897C18.1412 19.9992 18.3035 20 18.6 20H19.4C19.6965 20 19.8588 19.9992 19.9754 19.9897C19.98 19.9893 19.9844 19.9889 19.9886 19.9885C19.9889 19.9844 19.9893 19.98 19.9897 19.9754C19.9992 19.8588 20 19.6965 20 19.4V18.6C20 18.3035 19.9992 18.1412 19.9897 18.0246C19.9893 18.02 19.9889 18.0156 19.9885 18.0115C19.9844 18.0111 19.98 18.0107 19.9754 18.0103C19.8588 18.0008 19.6965 18 19.4 18H18.6ZM6.00001 18.6C6.00001 18.3035 5.99923 18.1412 5.9897 18.0246C5.98932 18.02 5.98894 18.0156 5.98856 18.0115C5.98441 18.0111 5.98001 18.0107 5.97537 18.0103C5.85879 18.0008 5.69653 18 5.40001 18H4.60001C4.30348 18 4.14122 18.0008 4.02464 18.0103C4.02 18.0107 4.0156 18.0111 4.01145 18.0115C4.01107 18.0156 4.01069 18.02 4.01031 18.0246C4.00078 18.1412 4.00001 18.3035 4.00001 18.6V19.4C4.00001 19.6965 4.00078 19.8588 4.01031 19.9754C4.01069 19.98 4.01107 19.9844 4.01145 19.9885C4.0156 19.9889 4.02 19.9893 4.02464 19.9897C4.14122 19.9992 4.30348 20 4.60001 20H5.40001C5.69653 20 5.85879 19.9992 5.97537 19.9897C5.98001 19.9893 5.98441 19.9889 5.98856 19.9885C5.98894 19.9844 5.98932 19.98 5.9897 19.9754C5.99923 19.8588 6.00001 19.6965 6.00001 19.4V18.6Z"}));function u1({type:e,...C}){switch(e){case"orchestrator":return c.jsx(I,{...C});case"artifact_store":return c.jsx(G,{...C});case"container_registry":return c.jsx($,{...C});case"step_operator":return c.jsx(R,{...C});case"model_deployer":return c.jsx(A,{...C});case"feature_store":return c.jsx(E,{...C});case"experiment_tracker":return c.jsx(K,{...C});case"alerter":return c.jsx(q,{...C});case"annotator":return c.jsx(z,{...C});case"data_validator":return c.jsx(O,{...C});case"image_builder":return c.jsx(W,{...C});case"model_registry":return c.jsx(F,{...C})}}var N=function(C){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=void 0,o=void 0,i=void 0,s=[];return function(){var H=Q(t),x=new Date().getTime(),Z=!n||x-n>H;n=x;for(var M=arguments.length,d=Array(M),m=0;m<M;m++)d[m]=arguments[m];if(Z&&r.leading)return r.accumulate?Promise.resolve(C.call(this,[d])).then(function(k){return k[0]}):Promise.resolve(C.call.apply(C,[this].concat(d)));if(o?clearTimeout(i):o=J(),s.push(d),i=setTimeout(l.bind(this),H),r.accumulate){var S=s.length-1;return o.promise.then(function(k){return k[S]})}return o.promise};function l(){var y=o;clearTimeout(i),Promise.resolve(r.accumulate?C.call(this,s):C.apply(this,s[s.length-1])).then(y.resolve,y.reject),s=[],o=null}};function Q(e){return typeof e=="function"?e():e}function J(){var e={};return e.promise=new Promise(function(C,t){e.resolve=C,e.reject=t}),e}const U=T(N);function X(e){var C=null,t=null,r=new Promise(function(n,o){C=n,t=o});return e&&e.then(function(n){C&&C(n)},function(n){t&&t(n)}),{promise:r,resolve:function(n){C&&C(n)},reject:function(n){t&&t(n)},cancel:function(){C=null,t=null}}}function Y(e){var C=null,t=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];C&&C();var o=e.apply(void 0,r),i=X(o),s=i.promise,l=i.cancel;return C=l,s};return t}/*! *****************************************************************************
|
2
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
-
this file except in compliance with the License. You may obtain a copy of the
|
5
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
|
-
|
12
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
13
|
-
and limitations under the License.
|
14
|
-
***************************************************************************** */var V=function(){return V=Object.assign||function(C){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(C[o]=t[o])}return C},V.apply(this,arguments)},e1={key:function(){return null},onlyResolvesLast:!0},C1=function(){function e(C){this.config=C,this.debounceSingleton=null,this.debounceCache={}}return e.prototype._createDebouncedFunction=function(){var C=U(this.config.func,this.config.wait,this.config.options);return this.config.options.onlyResolvesLast&&(C=Y(C)),{func:C}},e.prototype.getDebouncedFunction=function(C){var t,r=(t=this.config.options).key.apply(t,C);return r===null||typeof r>"u"?(this.debounceSingleton||(this.debounceSingleton=this._createDebouncedFunction()),this.debounceSingleton):(this.debounceCache[r]||(this.debounceCache[r]=this._createDebouncedFunction()),this.debounceCache[r])},e}();function t1(e,C,t){var r=V({},e1,t),n=new C1({func:e,wait:C,options:r}),o=function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var l=n.getDebouncedFunction(i).func;return l.apply(void 0,i)};return o}const n1=t1(async e=>(await b({name:e})).total===0,500),f1=j.string().trim().min(1,"Stack name is required").max(32,"Stack name must be less than 32 characters").regex(/^[a-zA-Z0-9-]+$/,"Stack name can only contain alphanumeric characters and hyphens").refine(e=>n1(e),"Stack name is already in use");export{u1 as C,z as S,f1 as a,f as s};
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t}from"./@radix-DnFH_oo1.js";import{k as a,n,F as r,l as o,m as l}from"./index-B9wVwe7u.js";import{a as c}from"./@tanstack-QbMbTrh5.js";const m=C=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5C4.00001 5.00124 4.00018 5.00585 4.00305 5.01529C4.00645 5.02644 4.01483 5.04845 4.03507 5.08143C4.07752 5.15057 4.16408 5.25453 4.32624 5.38232C4.65642 5.64253 5.19616 5.9206 5.95227 6.17264C7.45402 6.67322 9.59229 7 12 7C14.4077 7 16.546 6.67322 18.0477 6.17264C18.8038 5.9206 19.3436 5.64253 19.6738 5.38232C19.8359 5.25453 19.9225 5.15057 19.9649 5.08143C19.9852 5.04845 19.9935 5.02644 19.9969 5.01529C19.9999 5.00571 20 5.00139 20 5.00022C20 5.00016 20 5.00027 20 5.00022C20 4.99949 20.0001 4.99506 19.9969 4.98471C19.9935 4.97356 19.9852 4.95155 19.9649 4.91857C19.9225 4.84943 19.8359 4.74547 19.6738 4.61768C19.3436 4.35747 18.8038 4.0794 18.0477 3.82736C16.546 3.32678 14.4077 3 12 3C9.59229 3 7.45402 3.32678 5.95227 3.82736C5.19616 4.0794 4.65642 4.35747 4.32624 4.61768C4.16408 4.74547 4.07752 4.84943 4.03507 4.91857C4.01483 4.95155 4.00645 4.97356 4.00305 4.98471C3.99998 4.99479 4 4.99911 4 5ZM20 7.5266C19.5988 7.73177 19.1533 7.91229 18.6802 8.07C16.9246 8.6552 14.5629 9 12 9C9.43715 9 7.07541 8.6552 5.31981 8.07C4.84666 7.91229 4.40123 7.73177 4 7.5266V12C4 12.0019 4.00008 12.007 4.0034 12.018C4.00695 12.0298 4.01544 12.0521 4.03558 12.0851C4.07772 12.1543 4.16348 12.258 4.32419 12.3853C4.65159 12.6447 5.18788 12.9223 5.94167 13.174C7.43891 13.6738 9.57676 14 12 14C14.4232 14 16.5611 13.6738 18.0583 13.174C18.8121 12.9223 19.3484 12.6447 19.6758 12.3853C19.8365 12.258 19.9223 12.1543 19.9644 12.0851C19.9846 12.0521 19.993 12.0298 19.9966 12.018C19.9999 12.007 20 12.0019 20 12V7.5266ZM22 5C22 4.14805 21.4811 3.49559 20.9117 3.04685C20.331 2.58923 19.5528 2.22085 18.6802 1.93C16.9246 1.3448 14.5629 1 12 1C9.43715 1 7.07541 1.3448 5.31981 1.93C4.44724 2.22085 3.66896 2.58923 3.08829 3.04685C2.51889 3.49559 2 4.14805 2 5V19C2 19.8494 2.51319 20.502 3.08206 20.9528C3.66091 21.4115 4.43712 21.7802 5.30833 22.071C7.06109 22.6562 9.42324 23 12 23C14.5768 23 16.9389 22.6562 18.6917 22.071C19.5629 21.7802 20.3391 21.4115 20.9179 20.9528C21.4868 20.502 22 19.8494 22 19V5ZM20 14.5318C19.6021 14.7354 19.1606 14.9145 18.6917 15.071C16.9389 15.6562 14.5768 16 12 16C9.42324 16 7.06109 15.6562 5.30833 15.071C4.83938 14.9145 4.39794 14.7354 4 14.5318V19C4 19.0019 4.00008 19.007 4.0034 19.018C4.00695 19.0298 4.01544 19.0521 4.03558 19.0851C4.07772 19.1543 4.16348 19.258 4.32419 19.3853C4.65159 19.6447 5.18788 19.9223 5.94167 20.174C7.43891 20.6738 9.57676 21 12 21C14.4232 21 16.5611 20.6738 18.0583 20.174C18.8121 19.9223 19.3484 19.6447 19.6758 19.3853C19.8365 19.258 19.9223 19.1543 19.9644 19.0851C19.9846 19.0521 19.993 19.0298 19.9966 19.018C19.9999 19.007 20 19.0019 20 19V14.5318Z"})),w=C=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5C3 6.10457 3.89543 7 5 7C6.10457 7 7 6.10457 7 5C7 3.89543 6.10457 3 5 3ZM1 5C1 2.79086 2.79086 1 5 1C7.20914 1 9 2.79086 9 5C9 7.20914 7.20914 9 5 9C2.79086 9 1 7.20914 1 5ZM15.3531 6.06506C14.5699 6.00083 13.4768 6 11.9344 6H11.5C10.9477 6 10.5 5.55228 10.5 5C10.5 4.44772 10.9477 4 11.5 4L11.9846 4C13.4658 3.99999 14.6415 3.99998 15.5166 4.07176C15.9623 4.10831 16.3749 4.16645 16.736 4.26872C17.0962 4.37071 17.4673 4.53362 17.771 4.82093C18.5209 5.53055 18.8532 6.57592 18.6507 7.58832C18.5688 7.99821 18.3599 8.34552 18.1247 8.63678C17.8889 8.92882 17.5856 9.21455 17.2429 9.50177C16.5699 10.0657 15.61 10.7447 14.4007 11.6L10.2952 14.5039C9.0359 15.3946 8.14402 16.0264 7.54167 16.5312C7.24297 16.7815 7.0505 16.9721 6.9314 17.1196C6.83281 17.2417 6.81191 17.3009 6.80978 17.3071C6.74385 17.6425 6.8538 17.9884 7.1013 18.2241C7.10663 18.2279 7.15787 18.2642 7.30887 18.3069C7.49129 18.3586 7.75849 18.4031 8.1469 18.4349C8.93013 18.4992 10.0232 18.5 11.5656 18.5H12.5C13.0523 18.5 13.5 18.9477 13.5 19.5C13.5 20.0523 13.0523 20.5 12.5 20.5H11.5154C10.0343 20.5 8.85853 20.5 7.98341 20.4282C7.53771 20.3917 7.12511 20.3335 6.76395 20.2313C6.40378 20.1293 6.03267 19.9664 5.72904 19.6791C4.97912 18.9694 4.64679 17.9241 4.84925 16.9117C4.93123 16.5018 5.14013 16.1545 5.37529 15.8632C5.61108 15.5712 5.91437 15.2854 6.25714 14.9982C6.93015 14.4343 7.89004 13.7553 9.09927 12.9L13.2048 9.99611C14.4641 9.1054 15.356 8.47355 15.9583 7.96881C16.257 7.71851 16.4495 7.5279 16.5686 7.38039C16.6672 7.25833 16.6881 7.19915 16.6902 7.1929C16.7562 6.85751 16.6462 6.51165 16.3987 6.2759C16.3934 6.27206 16.3421 6.23581 16.1911 6.19305C16.0087 6.1414 15.7415 6.09692 15.3531 6.06506ZM19 17C17.8954 17 17 17.8954 17 19C17 20.1046 17.8954 21 19 21C20.1046 21 21 20.1046 21 19C21 17.8954 20.1046 17 19 17ZM15 19C15 16.7909 16.7909 15 19 15C21.2091 15 23 16.7909 23 19C23 21.2091 21.2091 23 19 23C16.7909 23 15 21.2091 15 19Z"}));function i({stackId:C}){return["stacks",C]}async function u({stackId:C}){const s=o(l.stacks.detail(C)),e=await a(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(e.status===404&&n(),!e.ok)throw new r({message:`Error while fetching stack ${C}`,status:e.status,statusText:e.statusText});return e.json()}function d(C,s){return c({queryKey:i(C),queryFn:()=>u(C),...s})}export{w as S,m as a,u as f,d as u};
|
{zenml_nightly-0.66.0.dev20240923.dist-info → zenml_nightly-0.66.0.dev20240928.dist-info}/LICENSE
RENAMED
File without changes
|
{zenml_nightly-0.66.0.dev20240923.dist-info → zenml_nightly-0.66.0.dev20240928.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|