zenml-nightly 0.83.0.dev20250623__py3-none-any.whl → 0.83.1.dev20250624__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/zen_server/dashboard/assets/{404-DmJUgorp.js → 404-B5eko6XL.js} +1 -1
- zenml/zen_server/dashboard/assets/{@reactflow-8OCk19Fi.js → @reactflow-B_iCtR7X.js} +1 -1
- zenml/zen_server/dashboard/assets/{AlertDialogDropdownItem-CZW4QyWn.js → AlertDialogDropdownItem-DsOmO1FH.js} +1 -1
- zenml/zen_server/dashboard/assets/{ButtonGroup-DFWWFGUE.js → ButtonGroup-4sPZDv70.js} +1 -1
- zenml/zen_server/dashboard/assets/{CodeSnippet-D2HkkAGr.js → CodeSnippet-Ctplhzdc.js} +1 -1
- zenml/zen_server/dashboard/assets/{CollapsibleCard-CnS09ljw.js → CollapsibleCard-CBKenz9f.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentBadge-CDgdd0Ks.js → ComponentBadge-Cnecw3qz.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentIcon-CbbOc7lb.js → ComponentIcon-CMiVW-O6.js} +1 -1
- zenml/zen_server/dashboard/assets/{DeleteAlertDialog-VIOMDLmx.js → DeleteAlertDialog-DEI0YDzP.js} +1 -1
- zenml/zen_server/dashboard/assets/{DialogItem-ClFCqxEp.js → DialogItem-CRCDpYU6.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-CQzjbDcN.js → Error-BG6f_WRd.js} +1 -1
- zenml/zen_server/dashboard/assets/{ExecutionStatus-CWreILP0.js → ExecutionStatus-BuhNAE9w.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-CiKxG5_X.js → Helpbox-DtUG2Bf_.js} +1 -1
- zenml/zen_server/dashboard/assets/{Infobox-CGxFvqzi.js → Infobox-CSBRrM6r.js} +1 -1
- zenml/zen_server/dashboard/assets/{LeftSideMenu-DCsKdIjC.js → LeftSideMenu-DPsCCK3z.js} +1 -1
- zenml/zen_server/dashboard/assets/{NestedCollapsible-3M4llYtH.js → NestedCollapsible-CMuDIJlp.js} +1 -1
- zenml/zen_server/dashboard/assets/{NumberBox-C0mQktmV.js → NumberBox-DtCv7jh3.js} +1 -1
- zenml/zen_server/dashboard/assets/Pagination-CWnEpSpN.js +1 -0
- zenml/zen_server/dashboard/assets/{Partials-DSjkttlz.js → Partials-CfHD6OH5.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProCta-Dm5cWKpS.js → ProCta-CNyp04C8.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderIcon-DPwMR6nF.js → ProviderIcon-DHejyg7C.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderRadio-DEDNRgAb.js → ProviderRadio-tGtie8Gc.js} +1 -1
- zenml/zen_server/dashboard/assets/RunsBody-mYwMcWWj.js +1 -0
- zenml/zen_server/dashboard/assets/SearchField-BtUi6cYl.js +1 -0
- zenml/zen_server/dashboard/assets/{SecretTooltip-CZTRnaCV.js → SecretTooltip-B5u1UsQ9.js} +1 -1
- zenml/zen_server/dashboard/assets/{SetPassword-BjNGDC5e.js → SetPassword-BmbgL_ed.js} +1 -1
- zenml/zen_server/dashboard/assets/{SheetHeader-CASpN2Lz.js → SheetHeader-DkH7aG9K.js} +1 -1
- zenml/zen_server/dashboard/assets/StackComponentList-Bi8BKqCu.js +1 -0
- zenml/zen_server/dashboard/assets/StackList-Cvxapo0p.js +1 -0
- zenml/zen_server/dashboard/assets/{StackName-ojLC6xdl.js → StackName-CFSZL8ec.js} +1 -1
- zenml/zen_server/dashboard/assets/Tabs-D4dv48ry.js +1 -0
- zenml/zen_server/dashboard/assets/{Tick-BPrWnNlN.js → Tick-Qquvr4P3.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-CNfKDo2Q.js → UpdatePasswordSchemas-D_DCETSO.js} +1 -1
- zenml/zen_server/dashboard/assets/{UsageReason-Cb-mpV8M.js → UsageReason-DhiUV1bu.js} +1 -1
- zenml/zen_server/dashboard/assets/{Wizard-Dg8Pmn5A.js → Wizard-BHvY75u_.js} +1 -1
- zenml/zen_server/dashboard/assets/{WizardFooter-BcNDIvlQ.js → WizardFooter-FQm8y-jP.js} +1 -1
- zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-DCdax7I5.js → all-pipeline-runs-query-DpKw9WL9.js} +1 -1
- zenml/zen_server/dashboard/assets/{bulk-delete-C_kpIB9A.js → bulk-delete-CzYA--cC.js} +1 -1
- zenml/zen_server/dashboard/assets/{configuration-form-B2hmKGnF.js → configuration-form-DSoMMiPE.js} +1 -1
- zenml/zen_server/dashboard/assets/{constants-1EZZxtay.js → constants-DTfsIqHy.js} +1 -1
- zenml/zen_server/dashboard/assets/{create-stack-TKmMtrkQ.js → create-stack-BpZrmKDu.js} +1 -1
- zenml/zen_server/dashboard/assets/{delete-run-CCR9md_s.js → delete-run-BkyDsKQc.js} +1 -1
- zenml/zen_server/dashboard/assets/elk-worker.min-BdOC9sib.js +6263 -0
- zenml/zen_server/dashboard/assets/expand-full-BPiXpch2.js +1 -0
- zenml/zen_server/dashboard/assets/{form-DFJkaFDX.js → form-BgtamtJm.js} +1 -1
- zenml/zen_server/dashboard/assets/{form-schemas-CrznJVzA.js → form-schemas-dyDkAxXP.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-BjUu1mP4.js → index-BBt0LDtR.js} +1 -1
- zenml/zen_server/dashboard/assets/index-BfNISy0X.css +1 -0
- zenml/zen_server/dashboard/assets/{index-BFqbGSck.js → index-BgEfQ3_G.js} +4 -4
- zenml/zen_server/dashboard/assets/{index-U992soPJ.js → index-eoDB_1XX.js} +1 -1
- zenml/zen_server/dashboard/assets/{layout-Do9YI4QX.js → layout-o1x87a3q.js} +1 -1
- zenml/zen_server/dashboard/assets/{login-mutation-D3tFP6Wm.js → login-mutation-C1hvP_cX.js} +1 -1
- zenml/zen_server/dashboard/assets/page-4xUZpMN0.js +31 -0
- zenml/zen_server/dashboard/assets/page-4zc4xPv2.js +2 -0
- zenml/zen_server/dashboard/assets/page-B0104V6C.js +1 -0
- zenml/zen_server/dashboard/assets/page-BNJsjvof.js +1 -0
- zenml/zen_server/dashboard/assets/{page-sJjNT9xA.js → page-BPQ66vR-.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CAJ8B0vb.js → page-BQgSZ2nH.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BXl2ZX6J.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CtiuMP_r.js → page-BxeZrG_t.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Cal6XQ4U.js → page-C2A-2Cj_.js} +1 -1
- zenml/zen_server/dashboard/assets/page-C2i-C7jv.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DJIGaUQ9.js → page-C3JfJxuR.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-ChGcZI_6.js → page-CESEqC2L.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DCcuPZ8P.js → page-CF8cTZ7l.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CKjsimVu.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DNjKHjnH.js → page-COLzBwff.js} +1 -1
- zenml/zen_server/dashboard/assets/page-COifg5fa.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CnbIYE80.js → page-CQeJuA8T.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DKK6ulgy.js → page-CcjWEjre.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-9RjCitFH.js → page-CefGLeWy.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DUKbOhaD.js → page-CfxpV3j4.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-D9Hfx6GV.js → page-ClcUzawe.js} +1 -1
- zenml/zen_server/dashboard/assets/page-Ct_LB3zo.js +1 -0
- zenml/zen_server/dashboard/assets/page-D-ZWUMYY.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CUaMMoPG.js → page-D-tJ_Y0a.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CdZCmszX.js → page-DHrvih9u.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DUK0Nd_1.js → page-DMhaHZDw.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CAUYrfui.js → page-DOCOmmKn.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-akLcPcKw.js → page-DcQmxKLp.js} +1 -1
- zenml/zen_server/dashboard/assets/page-Dh4GRWw5.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DwVPpCFg.js → page-DiHZK-1w.js} +1 -1
- zenml/zen_server/dashboard/assets/page-Dn7ZNapg.js +1 -0
- zenml/zen_server/dashboard/assets/page-Dy4vSQY7.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CN7lkvXr.js → page-QrvWQwZb.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BrT0_zSJ.js → page-RF3Fup0q.js} +1 -1
- zenml/zen_server/dashboard/assets/page-WuvCrN47.js +1 -0
- zenml/zen_server/dashboard/assets/{page-Be3R2uYn.js → page-_WnHBI1F.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-C210HcBA.js → page-ghjVNgVE.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BCrKmYIZ.js → page-iDsDiDXw.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-ClvmVesa.js → page-rVhXI5ZO.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DEohTSz6.js → page-uxjMX8Iq.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-Dec_w7aB.js → persist-BsdEtCkd.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-DWMWVP-y.js → persist-CFPbMcJX.js} +1 -1
- zenml/zen_server/dashboard/assets/{resource-tyes-list-o2LXiMay.js → resource-tyes-list-79FqS3LY.js} +1 -1
- zenml/zen_server/dashboard/assets/{resource-type-tooltip-DwHrJstL.js → resource-type-tooltip-BL9ZTRKi.js} +1 -1
- zenml/zen_server/dashboard/assets/{service-connectors-DSEMwJ5A.js → service-connectors-Q8h7-_rG.js} +1 -1
- zenml/zen_server/dashboard/assets/{service-jxtvgks0.js → service-k-9Vsb30.js} +1 -1
- zenml/zen_server/dashboard/assets/{sharedSchema-BXzg0EZz.js → sharedSchema-C_HkejsG.js} +1 -1
- zenml/zen_server/dashboard/assets/{stack-detail-query-Cm0fsgo-.js → stack-detail-query-CNmVZ0Bo.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-current-user-mutation-D5MjcQ6F.js → update-current-user-mutation-Ca-Lmwuj.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-CmnxdxiK.js → update-server-settings-mutation-Bwe3gUt4.js} +1 -1
- zenml/zen_server/dashboard/index.html +4 -4
- zenml/zen_stores/migrations/versions/0.83.1_release.py +23 -0
- {zenml_nightly-0.83.0.dev20250623.dist-info → zenml_nightly-0.83.1.dev20250624.dist-info}/METADATA +5 -9
- {zenml_nightly-0.83.0.dev20250623.dist-info → zenml_nightly-0.83.1.dev20250624.dist-info}/RECORD +110 -106
- zenml/zen_server/dashboard/assets/RunsBody-BRBn1e2O.js +0 -1
- zenml/zen_server/dashboard/assets/SearchField-DY6-UbRT.js +0 -1
- zenml/zen_server/dashboard/assets/StackComponentList-Be1pQt9m.js +0 -1
- zenml/zen_server/dashboard/assets/StackList-BdiR5DvR.js +0 -1
- zenml/zen_server/dashboard/assets/Tabs-DNSKblCM.js +0 -1
- zenml/zen_server/dashboard/assets/index-DuhuqTCI.css +0 -1
- zenml/zen_server/dashboard/assets/page-B0PsXWiT.js +0 -1
- zenml/zen_server/dashboard/assets/page-BcRI3-aR.js +0 -29
- zenml/zen_server/dashboard/assets/page-BgknnddT.js +0 -1
- zenml/zen_server/dashboard/assets/page-Bs3W2FDi.js +0 -1
- zenml/zen_server/dashboard/assets/page-C6KaiZ_W.js +0 -1
- zenml/zen_server/dashboard/assets/page-CHxVhF3x.js +0 -1
- zenml/zen_server/dashboard/assets/page-CktmtZ8Z.js +0 -1
- zenml/zen_server/dashboard/assets/page-CoXzjeEY.js +0 -1
- zenml/zen_server/dashboard/assets/page-D9iuB88h.js +0 -1
- zenml/zen_server/dashboard/assets/page-DYOucPtA.js +0 -1
- zenml/zen_server/dashboard/assets/page-DpqRelAy.js +0 -1
- zenml/zen_server/dashboard/assets/page-XURWnYZP.js +0 -1
- zenml/zen_server/dashboard/assets/page-abw-2oeW.js +0 -1
- zenml/zen_server/dashboard/assets/page-n9ejQ2V3.js +0 -2
- {zenml_nightly-0.83.0.dev20250623.dist-info → zenml_nightly-0.83.1.dev20250624.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.83.0.dev20250623.dist-info → zenml_nightly-0.83.1.dev20250624.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.83.0.dev20250623.dist-info → zenml_nightly-0.83.1.dev20250624.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as x}from"./@radix-Cdvw4jJ8.js";import{S as B}from"./plus-Cl0_rCVF.js";import{S as g}from"./refresh-BcTM09NW.js";import{P as y}from"./Pagination-CWnEpSpN.js";import{S as N}from"./SearchField-BtUi6cYl.js";import{f as I,i as H,F as M,j as $,J as T,r as h,T as q,q as O,s as Q,t as G,v as p,B as d,x as v,g as m,aj as K,ak as U,G as P,a8 as J,a9 as V,aa as W,bd as X,A,D as Y,l as Z,m as ee,p as se,an as w,b2 as te,C as S,L as k,ai as ae,w as ne,z as u,k as re}from"./index-BgEfQ3_G.js";import{c as le,b as F}from"./@tanstack-5gTMR7G2.js";import{L as j,c as ie,f as oe}from"./@react-router-DeDfXbUF.js";import{D as C}from"./DisplayDate-8RESqe5H.js";import{S as ce}from"./expand-full-BPiXpch2.js";import{S as de}from"./SheetHeader-DkH7aG9K.js";import{S as me}from"./Tabs-D4dv48ry.js";import{u as xe}from"./all-pipeline-runs-query-DpKw9WL9.js";import{S as he}from"./terminal-XFL_4QN-.js";import{g as pe,E as ue}from"./ExecutionStatus-BuhNAE9w.js";import{s as je}from"./index-BBt0LDtR.js";import{C as fe}from"./ComponentBadge-Cnecw3qz.js";import{S as E}from"./trash-DP6Tpp_E.js";import{D as ge,a as ye}from"./DeleteAlertDialog-DEI0YDzP.js";import{I as Ne}from"./Infobox-CSBRrM6r.js";import{c as ve,u as Ce}from"./bulk-delete-CzYA--cC.js";async function be({componentId:s}){const t=H($.components.detail(s)),a=await I(t,{method:"DELETE"});if(!a.ok){const n=await a.json().then(r=>Array.isArray(r.detail)?r.detail[1]:r.detail).catch(()=>`Error while deleting component ${s}`);throw new M({status:a.status,statusText:a.statusText,message:n})}return a.json()}function we(s){return le({...s,mutationFn:async({componentId:t})=>be({componentId:t})})}const{ContextProvider:ts,useContext:b}=ve();function R(){const{setRowSelection:s}=b(),{mutateAsync:t}=we();async function a(n){await t({componentId:n})}return Ce({deleteFn:a,queryKeyToInvalidate:T.all,setRowSelection:s})}const Se=[{id:"name",header:"Run",accessorFn:s=>{var t;return{id:s.id,name:s.name,status:(t=s.body)==null?void 0:t.status}},cell:({getValue:s})=>{const{name:t,status:a,id:n}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(he,{className:`h-5 w-5 ${pe(a)}`}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(j,{to:h.projects.runs.detail(n),className:"flex items-center gap-1",children:e.jsx("span",{className:"text-text-md font-semibold text-theme-text-primary",children:t})}),e.jsx(q,{children:e.jsxs(O,{children:[e.jsx(Q,{className:"hover:text-theme-text-brand hover:underline",children:e.jsx(ue,{status:a})}),e.jsx(G,{className:"z-20 capitalize",children:a})]})}),e.jsx(p,{copyText:t})]}),e.jsxs(j,{to:h.projects.runs.detail(n),className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:n.split("-")[0]}),e.jsx(p,{copyText:n})]})]})]})}},{id:"created-at",header:"Created at",accessorFn:s=>{var t;return{date:(t=s.body)==null?void 0:t.created}},cell:({getValue:s})=>{const{date:t}=s();return e.jsx("div",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:t})})}}];function ke({componentId:s}){const[t,a]=x.useState(void 0),[n,r]=x.useState(1),o={name:t,page:n},{data:i,refetch:c}=xe({params:{...o,stack_component:s,sort_by:"desc:updated"}});return e.jsx("section",{children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(N,{inMemoryHandler:l=>{r(1),l||a(void 0),a(`contains:${l}`)},searchParams:{}})}),e.jsx("div",{className:"flex items-center justify-between gap-2",children:e.jsxs(d,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>c(),children:[e.jsx(g,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:i?e.jsx(v,{columns:Se,data:i.items}):e.jsx(m,{className:"h-[500px] w-full"})}),i?i.total_pages>1&&e.jsx(y,{inMemoryHandler:r,searchParams:{},paginate:i}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}function De(){return[{id:"name",header:"Stack",accessorFn:s=>s.name,cell:({row:s})=>{const{name:t,id:a}=s.original;return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(K,{type:"square",size:"md",children:e.jsx(U,{size:"md",children:t[0]})}),e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-text-md font-semibold",children:t})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:a.split("-")[0]}),e.jsx(p,{copyText:a})]})]})]})}},{id:"author",header:"Author",accessorFn:s=>{var t;return{author:(t=s.resources)==null?void 0:t.user}},cell:({getValue:s})=>{const{author:t}=s();return t?e.jsx(P,{username:t.name||"default"}):null}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:s()})})}]}function Te({componentId:s}){const[t,a]=x.useState(void 0),[n,r]=x.useState(1),o={name:t,page:n},{refetch:i,data:c}=F(je.stackList({...o,component_id:s,sort_by:"desc:updated"}));return e.jsx("section",{children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(N,{inMemoryHandler:l=>{r(1),l||a(void 0),a(`contains:${l}`)},searchParams:{}})}),e.jsx("div",{className:"flex items-center justify-between gap-2",children:e.jsxs(d,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>i(),children:[e.jsx(g,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]})})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:c?e.jsx(v,{columns:De(),data:c.items}):e.jsx(m,{className:"h-[500px] w-full"})}),c?c.total_pages>1&&e.jsx(y,{inMemoryHandler:r,searchParams:{},paginate:c}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}function D({children:s,onOpenChange:t,componentId:a}){return e.jsxs(J,{onOpenChange:t,children:[e.jsx(V,{asChild:!0,children:s}),e.jsxs(W,{className:"w-[1000px] overflow-y-auto",children:[e.jsx(de,{className:"gap-0.5",children:e.jsx(d,{className:"flex aspect-square items-center justify-center p-0",intent:"secondary",asChild:!0,emphasis:"minimal",children:e.jsxs(j,{to:h.components.detail(a),children:[e.jsx(ce,{className:"h-5 w-5 shrink-0 fill-neutral-500"}),e.jsx("span",{className:"sr-only",children:"Expand component detail to page"})]})})}),e.jsxs("div",{className:"@container",children:[e.jsx(X,{isPanel:!0,componentId:a}),e.jsx(me,{isPanel:!0,runsTabContent:e.jsx(ke,{componentId:a}),stacksTabContent:e.jsx(Te,{componentId:a}),componentId:a})]})]})]})}function _({deleteHandler:s}){return e.jsx(ge,{title:"Delete Components",handleDelete:s,children:e.jsxs(ye,{children:[e.jsx("p",{children:"Are you sure?"}),e.jsx("p",{children:"This action cannot be undone."}),e.jsx(Ne,{className:"mt-4 text-theme-text-primary",children:"If a component is still part of a stack, it will not be deleted."})]})})}function Pe({deleteHandler:s,open:t,setOpen:a}){return e.jsx(A,{open:t,onOpenChange:a,children:e.jsx(_,{deleteHandler:s})})}function Ae({id:s}){const[t,a]=x.useState(!1),n=ie(),{bulkDelete:r}=R();async function o(){await r([s]),a(!1)}return e.jsxs(e.Fragment,{children:[e.jsx(Pe,{deleteHandler:o,open:t,setOpen:a}),e.jsxs(Y,{children:[e.jsx(Z,{asChild:!0,children:e.jsx(d,{intent:"secondary",emphasis:"minimal",className:"flex aspect-square items-center justify-center p-0",children:e.jsx(ee,{className:"h-4 w-4 shrink-0 fill-theme-text-tertiary"})})}),e.jsxs(se,{align:"end",sideOffset:7,children:[e.jsxs(w,{onSelect:()=>n(h.components.edit(s)),className:"cursor-pointer space-x-2",children:[e.jsx(te,{className:"h-3 w-3 fill-neutral-400"}),e.jsx("p",{children:"Edit"})]}),e.jsxs(w,{onClick:()=>a(!0),className:"cursor-pointer space-x-2",children:[e.jsx(E,{className:"h-3 w-3 fill-neutral-400"}),e.jsx("p",{children:"Delete"})]})]})]})]})}function Fe(){return[{id:"select",meta:{width:"1%"},header:({table:s})=>e.jsx(S,{id:"check-all",checked:s.getIsAllRowsSelected(),onCheckedChange:t=>s.toggleAllRowsSelected(t==="indeterminate"?!0:t)}),cell:({row:s})=>e.jsx(S,{id:`check-${s.id}`,checked:s.getIsSelected(),onCheckedChange:s.getToggleSelectedHandler()})},{id:"name",header:"Component",accessorKey:"name",cell:({row:s})=>{var n;const t=s.original.id,a=s.original.name;return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx("img",{width:32,height:32,src:k(((n=s.original.body)==null?void 0:n.logo_url)||""),alt:"Flavor Icon"}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(D,{componentId:t,children:e.jsx("button",{children:e.jsx("h2",{className:"text-text-md font-semibold",children:a})})}),e.jsx(p,{copyText:a})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(D,{componentId:t,children:e.jsx("button",{className:"text-text-xs text-theme-text-secondary",children:t.split("-")[0]})}),e.jsx(p,{copyText:t})]})]})]})}},{id:"type",header:"Component Type",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.type},cell:({row:s})=>{var a;const t=((a=s.original.body)==null?void 0:a.type)||"orchestrator";return e.jsx(fe,{type:t,children:ae(t)})}},{id:"flavor",header:"Flavor",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.flavor_name},cell:({row:s})=>{var a,n;const t=(a=s.original.body)==null?void 0:a.flavor_name;return e.jsxs(ne,{rounded:!1,className:"w-fit gap-1 text-theme-text-primary",color:"grey",emphasis:"minimal",children:[e.jsx("img",{width:20,height:20,src:k(((n=s.original.body)==null?void 0:n.logo_url)||""),alt:"Flavor Icon of Component"}),e.jsx("p",{children:t})]})}},{id:"author",header:"Author",accessorFn:s=>{var t,a;return(a=(t=s.resources)==null?void 0:t.user)==null?void 0:a.name},cell:({row:s})=>{var a,n;const t=(n=(a=s.original.resources)==null?void 0:a.user)==null?void 0:n.name;return t?e.jsx(P,{username:t}):null}},{id:"created",header:"Created at",accessorFn:s=>{var t;return(t=s.body)==null?void 0:t.created},cell:({row:s})=>{var t;return e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(C,{dateString:((t=s.original.body)==null?void 0:t.created)||""})})}},{id:"admin_actions",header:"",cell:({row:s})=>e.jsx(Ae,{id:s.original.id})}]}const f=1,Ee=u.object({page:u.coerce.number().min(f).optional().default(f).catch(f),name:u.string().optional(),operator:u.enum(["and","or"]).optional()});function Re(){const[s]=oe(),{page:t,name:a,operator:n}=Ee.parse({page:s.get("page")||void 0,name:s.get("name")||void 0});return{page:t,name:a,logical_operator:n}}function _e(){const{bulkDelete:s}=R(),{selectedRowCount:t,selectedRowIDs:a}=b();async function n(){await s(a)}const r=t>1?"s":"",o=`${t} Component${r} selected`;return e.jsxs("div",{className:"flex items-center divide-x divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsx("div",{className:"bg-primary-25 px-2 py-1 font-semibold text-theme-text-brand",children:o}),e.jsxs(A,{children:[e.jsx(re,{asChild:!0,children:e.jsxs(d,{className:"rounded-sharp border-y-0 bg-white",size:"md",emphasis:"subtle",intent:"secondary",children:[e.jsx(E,{className:"h-5 w-5 shrink-0 gap-1 fill-neutral-400"}),"Delete"]})}),e.jsx(_,{deleteHandler:n})]})]})}function as({fixedQueryParams:s,displayCreateComponent:t=!0}){const a=Re(),{rowSelection:n,setRowSelection:r,selectedRowCount:o}=b(),i=F({...T.componentList({...a,...s,sort_by:"desc:updated"}),throwOnError:!0}),c=Fe();if(i.isError)return null;const{data:l,refetch:z}=i;return e.jsx("section",{children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx("div",{className:"flex items-center gap-2",children:o>=1?e.jsx(_e,{}):e.jsx(N,{searchParams:a})}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(d,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>z(),children:[e.jsx(g,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),t&&e.jsx(d,{size:"md",asChild:!0,children:e.jsxs(j,{to:h.components.create,children:[e.jsx(B,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Component"})]})})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:l?e.jsx(v,{getRowId:L=>L.id,rowSelection:n,onRowSelectionChange:r,columns:c,data:l.items}):e.jsx(m,{className:"h-[500px] w-full"})}),l?l.total_pages>1&&e.jsx(y,{searchParams:a,paginate:l}):e.jsx(m,{className:"h-[36px] w-[300px]"})]})]})})}export{ts as C,as as S};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as l,j as e}from"./@radix-Cdvw4jJ8.js";import{S as I}from"./plus-Cl0_rCVF.js";import{S as z}from"./refresh-BcTM09NW.js";import{P as O}from"./Pagination-CWnEpSpN.js";import{S as F}from"./SearchField-BtUi6cYl.js";import{s as g}from"./index-BBt0LDtR.js";import{z as h,au as R,av as L,aw as U,as as M,at as _,B as m,bi as B,a8 as q,a9 as H,aa as $,g as p,aj as D,ak as A,v as j,b as Q,L as G,r as f,ai as W,i as K,F as J,j as V,a as X,S as Y,aC as Z,aD as ee,aE as se,aF as te,D as S,l as ae,m as ne,p as re,b2 as ie,G as le,x as ce}from"./index-BgEfQ3_G.js";import{b as v,c as oe,h as de}from"./@tanstack-5gTMR7G2.js";import{f as xe,L as N,c as me}from"./@react-router-DeDfXbUF.js";import{D as ue}from"./DisplayDate-8RESqe5H.js";import{C as w}from"./CodeSnippet-Ctplhzdc.js";import{C as he}from"./CollapsibleCard-CBKenz9f.js";import{S as pe}from"./SheetHeader-DkH7aG9K.js";import{e as k}from"./components-Br2ezRib.js";import{N as C}from"./NumberBox-DtCv7jh3.js";import{C as je}from"./ComponentBadge-Cnecw3qz.js";import{I as fe}from"./Infobox-CSBRrM6r.js";import{S as ge}from"./trash-DP6Tpp_E.js";import{D as ye}from"./DialogItem-CRCDpYU6.js";import{A as Ne}from"./AlertDialogDropdownItem-DsOmO1FH.js";const y=1,we=h.object({page:h.coerce.number().min(y).optional().default(y).catch(y),name:h.string().optional(),operator:h.enum(["and","or"]).optional()});function ve(){const[t]=xe(),{page:s,name:a,operator:n}=we.parse({page:t.get("page")||void 0,name:t.get("name")||void 0});return{page:s,name:a,logical_operator:n}}const T=l.createContext(null);function be({children:t}){const[s,a]=l.useState([]);return e.jsx(T.Provider,{value:{integrations:s,setIntegrations:a},children:t})}function E(){const t=l.useContext(T);if(t===null)throw new Error("useIntegrationsContext must be used within an AuthProvider");return t}const b=l.forwardRef(({closeModal:t,name:s,...a},n)=>e.jsxs(R,{...a,ref:n,children:[e.jsx(L,{children:e.jsx(U,{children:"Update Stack"})}),e.jsxs("div",{className:"space-y-5 p-7",children:[e.jsx(Se,{action:"update"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Update a stack"}),e.jsx(w,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack update ${s} -o NEW_ORCHESTRATOR_NAME`})]})]})]}));b.displayName="UpdateStackDialog";function Se({action:t}){function s(){switch(t){case"delete":return"delete";case"update":return"update";case"describe":return"get details of"}}return e.jsx(fe,{children:e.jsx("div",{className:"flex w-full flex-wrap justify-between gap-2",children:e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-text-sm font-semibold",children:"We are working on the new Stacks experience."}),e.jsxs("p",{className:"truncate text-text-sm",children:["Meanwhile you can use the CLI to ",s()," your stack."]})]})})})}function ke({name:t}){const[s,a]=l.useState(!1);return e.jsxs(M,{open:s,onOpenChange:a,children:[e.jsx(_,{asChild:!0,children:e.jsx(m,{type:"button",size:"sm",intent:"primary",emphasis:"subtle",children:e.jsx(B,{})})}),e.jsx(b,{name:t,className:"lg:min-w-[600px]"})]})}function Ce({children:t,stackId:s,stackName:a}){return e.jsxs(q,{children:[e.jsx(H,{children:t}),e.jsx($,{className:"w-[1000px] overflow-y-auto",children:e.jsxs(be,{children:[e.jsx(pe,{}),e.jsx(De,{stackId:s}),e.jsx(Ee,{name:a}),e.jsx(Ae,{stackId:s})]})})]})}function De({stackId:t}){const s=v({...g.stackDetail(t)});return s.isError?null:s.isPending?e.jsx("div",{className:"p-5",children:e.jsx(p,{className:"h-6 w-full"})}):e.jsxs("div",{className:"flex items-center justify-between border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(D,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:s.data.name[0]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:s.data.id}),e.jsx(j,{copyText:s.data.id})]}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("h2",{className:"text-display-xs font-semibold",children:s.data.name})})]})]}),e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(ke,{name:s.data.name})})]})}function Ae({stackId:t}){var r;const{setIntegrations:s}=E(),a=v({...g.stackDetail(t)});if(l.useEffect(()=>{var d;if(!a.data)return;const c=k((d=a.data.metadata)==null?void 0:d.components).map(o=>{var x;return(x=o.body)==null?void 0:x.integration}).filter(o=>!!o&&o!=="built-in"&&o!=="custom");c.length>=1&&s(o=>Array.from(new Set([...o,...c])))},[a.data]),a.isError)return null;if(a.isPending)return e.jsx("div",{className:"p-5",children:e.jsx(p,{className:"h-[300px] w-full"})});const n=k((r=a.data.metadata)==null?void 0:r.components);return e.jsx("ul",{className:"space-y-5 p-5",children:n.map(i=>e.jsx("li",{children:e.jsx(Te,{component:i})},i.id))})}function Te({component:t}){var s,a,n,r;return e.jsxs(Q,{className:"flex items-center justify-between p-5",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("img",{width:32,height:32,alt:`${(s=t.body)==null?void 0:s.flavor_name} logo`,src:G(((a=t.body)==null?void 0:a.logo_url)||"")}),e.jsxs("div",{children:[e.jsx(N,{to:f.components.detail(t.id),className:"text-text-xl",children:t.name}),e.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:t.id.split("-")[0]}),e.jsx(j,{copyText:t.id})]})]})]}),e.jsx(N,{to:f.components.overview,children:e.jsx(je,{type:((n=t.body)==null?void 0:n.type)||"orchestrator",children:W(((r=t.body)==null?void 0:r.type)||"")})})]})}function Ee({name:t}){const{integrations:s}=E();return e.jsx("section",{className:"px-5 pt-5",children:e.jsx(he,{title:e.jsx("span",{className:"text-text-lg",children:"Set this stack"}),initialOpen:!0,children:e.jsxs("ul",{className:"space-y-5",children:[e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{children:"1"}),e.jsx("p",{className:"font-semibold",children:"Set your stack"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Set the stack as active on your client"}),e.jsx(w,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml stack set ${t}`})]})]}),s.length>=1&&e.jsxs("li",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{children:"2"}),e.jsx("p",{className:"font-semibold",children:"Install the integrations"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Install the required integrations to run pipelines in your stack"}),e.jsx(w,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:`zenml integration install ${s.join(" ")}`})]})]})]})})})}async function Pe({stackId:t},s){const a=K(V.stacks.detail(t)),n=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!n.ok){const r=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>`Error while deleting stack ${t}`);throw new J({status:n.status,statusText:n.statusText,message:r})}return n.json()}function Ie(t){return oe({...t,mutationFn:async({stackId:s})=>Pe({stackId:s})})}function ze(t){const{toast:s}=X(),a=de(),n=me(),r=Ie({onSuccess:async()=>{a.invalidateQueries({queryKey:g.all}),n(f.stacks.overview)},onError:c=>{s({status:"error",emphasis:"subtle",icon:e.jsx(Y,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:c.message,rounded:!0})}});function i(){r.mutate({stackId:t})}return{handleDelete:i,deleteStack:r}}const P=l.forwardRef(({closeModal:t,name:s,stackId:a,...n},r)=>{const{handleDelete:i,deleteStack:c}=ze(a);return e.jsxs(Z,{...n,className:"p-0",ref:r,children:[e.jsxs(ee,{className:"m-0 py-2 pl-5 pr-3 text-text-lg font-semibold",children:["Delete ",s]}),e.jsx("div",{className:"border-y border-theme-border-moderate px-5 py-5",children:e.jsxs(se,{children:["Are you sure you want to delete this stack? ",e.jsx("br",{}),"This action cannot be undone."]})}),e.jsxs("div",{className:"flex justify-end gap-3 px-5 py-3",children:[e.jsx(te,{onClick:()=>t==null?void 0:t(),asChild:!0,children:e.jsx(m,{intent:"secondary",children:"Cancel"})}),e.jsxs(m,{disabled:c.isPending,type:"button",onClick:()=>i(),intent:"danger",children:[c.isPending&&e.jsx("div",{role:"alert","aria-busy":"true",className:"full h-[20px] w-[20px] animate-spin rounded-rounded border-2 border-theme-text-negative border-b-theme-text-error"}),"Delete"]})]})]})});P.displayName="DeleteStackDialog";function Oe({name:t,id:s}){const[a,n]=l.useState(!1),[r,i]=l.useState(!1),c=l.useRef(null),d=l.useRef(null);function o(){d.current=c.current}function x(u){n(u),u===!1&&i(!1)}return e.jsx(S,{open:r,onOpenChange:i,children:e.jsxs(S,{children:[e.jsx(ae,{className:"z-10",ref:c,children:e.jsx(ne,{className:"h-5 w-5 fill-theme-text-secondary"})}),e.jsxs(re,{hidden:a,onCloseAutoFocus:u=>{d.current&&(d.current.focus(),d.current=null,u.preventDefault())},className:"z-10",align:"end",sideOffset:1,children:[e.jsx(ye,{onSelect:o,onOpenChange:x,icon:e.jsx(ie,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Update",children:e.jsx(b,{name:t,className:"lg:min-w-[600px]",closeModal:()=>x(!1)})}),e.jsx(Ne,{onSelect:o,onOpenChange:x,icon:e.jsx(ge,{className:"h-3 w-3 !fill-neutral-400"}),triggerChildren:"Delete",children:e.jsx(P,{stackId:s,name:t,className:"lg:min-w-[600px]",closeModal:()=>x(!1)})})]})]})})}function Fe(){const t=[{id:"name",header:"Stack",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{name:a,id:n}=s();return e.jsxs("div",{className:"group/copybutton flex items-center gap-2",children:[e.jsx(D,{type:"square",size:"md",children:e.jsx(A,{size:"md",children:a[0]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ce,{stackName:a,stackId:n,children:e.jsx("h2",{className:"text-text-md font-semibold",children:a})}),e.jsx(j,{copyText:a})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-xs text-theme-text-secondary",children:n.split("-")[0]}),e.jsx(j,{copyText:n})]})]})]})}},{id:"created",header:"Created at",accessorFn:s=>{var a;return(a=s.body)==null?void 0:a.created},cell:({getValue:s})=>e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.jsx(ue,{dateString:s()})})},{id:"author",header:"Author",accessorFn:s=>{var a,n;return{author:(n=(a=s.resources)==null?void 0:a.user)==null?void 0:n.name}},cell:({getValue:s})=>{const{author:a}=s();return a?e.jsx(le,{username:a}):null}},{id:"actions",header:"",accessorFn:s=>({name:s.name,id:s.id}),cell:({getValue:s})=>{const{id:a,name:n}=s();return e.jsx(Oe,{name:n,id:a})}}];return l.useMemo(()=>t,[])}function ts({fixedQueryParams:t={}}){const s=ve(),a=Fe(),{refetch:n,data:r}=v({...g.stackList({...s,sort_by:"desc:updated",...t}),throwOnError:!0});return e.jsx("section",{children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-4",children:[e.jsx(F,{searchParams:s}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs(m,{intent:"primary",emphasis:"subtle",size:"md",onClick:()=>n(),children:[e.jsx(z,{className:"h-5 w-5 fill-theme-text-brand"}),"Refresh"]}),e.jsx(m,{size:"md",asChild:!0,children:e.jsxs(N,{to:f.stacks.create.index,children:[e.jsx(I,{className:"h-5 w-5 shrink-0 fill-white"}),e.jsx("span",{children:"New Stack"})]})})]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-5",children:[e.jsx("div",{className:"w-full",children:r?e.jsx(ce,{columns:a,data:r.items}):e.jsx(p,{className:"h-[500px] w-full"})}),r?r.total_pages>1&&e.jsx(O,{searchParams:s,paginate:r}):e.jsx(p,{className:"h-[36px] w-[300px]"})]})]})})}export{ts as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e}from"./@radix-Cdvw4jJ8.js";import{B as r,r as c,al as n,I as o}from"./index-
|
1
|
+
import{j as e}from"./@radix-Cdvw4jJ8.js";import{B as r,r as c,al as n,I as o}from"./index-BgEfQ3_G.js";import{c as m}from"./persist-BsdEtCkd.js";import{c as i}from"./@react-router-DeDfXbUF.js";import{a as l}from"./index.esm-DhJo3mA6.js";function N(){const a=i();function s(){m(),a(c.stacks.create.index)}return e.jsx(r,{onClick:()=>s(),intent:"secondary",size:"md",children:"Cancel"})}function h(a){switch(a){case"aws":return"AWS";case"azure":return"Azure";case"gcp":return"GCP";default:return"Provider"}}function j(){var t;const{register:a,formState:{errors:s}}=l();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(n,{className:"h-5 w-5 fill-primary-400"}),"Select a name for your Stack"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please select a name for your stack, that is not used already."})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(o,{className:`${s.stackName?"border-red-500":""}`,placeholder:"zenml-remote-stack",...a("stackName")}),s.stackName&&e.jsx("p",{className:"text-text-xs text-red-500",children:(t=s.stackName.message)==null?void 0:t.toString()})]})})]})}export{N as C,j as S,h as g};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{j as e,r as N}from"./@radix-Cdvw4jJ8.js";import{r as T,w as C,be as S,g as y,ac as w,ad as k,ae as P,af as L,L as D,G as E,z as j,a4 as I,a5 as O,a6 as g,bf as R,al as U,a7 as x}from"./index-BgEfQ3_G.js";import{S as z}from"./terminal-XFL_4QN-.js";import{S as A}from"./chevron-down-jbbQh82s.js";import{S as B}from"./transform-CeZdrxDZ.js";import{L as F,f as K,c as M}from"./@react-router-DeDfXbUF.js";import{D as v}from"./DisplayDate-8RESqe5H.js";import{K as l,N as V}from"./NestedCollapsible-CMuDIJlp.js";function _({connectorName:s,connectorId:a}){return e.jsx(F,{to:T.settings.connectors.detail.configuration(a),children:e.jsxs(C,{color:"yellow",rounded:!1,className:"w-fit gap-0.5",emphasis:"subtle",children:[e.jsx(B,{width:20,height:20,className:"shrink-0 fill-warning-900"}),e.jsx("span",{children:s})]})})}function $({componentId:s}){return e.jsxs("section",{className:"grid grid-cols-1 gap-5 @5xl:grid-cols-2",children:[e.jsx("div",{children:e.jsx(G,{componentId:s})}),e.jsx("div",{children:e.jsx(H,{componentId:s})})]})}function G({componentId:s}){var c,m,p,f,h,b;const[a,r]=N.useState(!0),o=S(s);if(o.isError)return null;if(o.isPending)return e.jsx(y,{className:"h-[150px] w-full"});const t=o.data,n=(c=t.resources)==null?void 0:c.user,d=(m=t.body)==null?void 0:m.created,u=(p=t.body)==null?void 0:p.updated,i=(f=t.metadata)==null?void 0:f.connector;return e.jsxs(w,{open:a,onOpenChange:r,children:[e.jsx(k,{className:"flex items-center gap-[10px]",children:e.jsxs(P,{className:"flex w-full items-center",children:[e.jsx(A,{className:` ${a?"":"-rotate-90"} mr-2 h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Basic Parameters"]})}),e.jsx(L,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:e.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[e.jsx(l,{label:"Component Name",value:t.name}),e.jsx(l,{label:"Flavor",value:e.jsxs(C,{rounded:!1,className:"w-fit gap-0.5 text-theme-text-primary",color:"grey",emphasis:"minimal",children:[e.jsx("img",{width:20,height:20,src:D(((h=t.body)==null?void 0:h.logo_url)||""),alt:"Flavor Icon of Component"}),e.jsx("p",{className:"truncate",children:(b=t.body)==null?void 0:b.flavor_name})]})}),e.jsx(l,{label:"Author",value:n!=null&&n.name?e.jsx(E,{username:n.name}):"Not available"}),e.jsx(l,{label:"Service Connector",value:i?e.jsx(_,{connectorName:i.name,connectorId:i.id}):"Not available"}),e.jsx(l,{label:"Updated",value:u?e.jsx(v,{dateString:u}):"Not available"}),e.jsx(l,{label:"Created",value:d?e.jsx(v,{dateString:d}):"Not available"})]})})]})}function H({componentId:s}){var r;const a=S(s);return a.isError?null:a.isPending?e.jsx(y,{className:"h-[150px] w-full"}):e.jsx(V,{isInitialOpen:!0,intent:"primary",title:"Configuration",data:(r=a.data.metadata)==null?void 0:r.configuration})}const Q=j.object({tab:j.enum(["configuration","stacks","runs"]).optional().default("configuration").catch("configuration")});function q(){const[s]=K(),{tab:a}=Q.parse({tab:s.get("tab")||void 0});return a}function te({componentId:s,isPanel:a,stacksTabContent:r,runsTabContent:o}){const[t,n]=N.useState("configuration"),d=q(),u=M();function i(c){if(a){n(c);return}const m=new URLSearchParams;m.set("tab",c),u(`?${m.toString()}`)}return e.jsx("div",{className:"p-5",children:e.jsxs(I,{value:a?t:d,onValueChange:i,children:[e.jsxs(O,{children:[e.jsxs(g,{className:"flex items-center gap-2 text-text-md",value:"configuration",children:[e.jsx(R,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Configuration"})]}),e.jsxs(g,{className:"flex items-center gap-2 text-text-md",value:"stacks",children:[e.jsx(U,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Stacks"})]}),e.jsxs(g,{className:"flex items-center gap-2 text-text-md",value:"runs",children:[e.jsx(z,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),e.jsx("span",{children:"Runs"})]})]}),e.jsx(x,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:e.jsx($,{componentId:s})}),e.jsx(x,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"stacks",children:r}),e.jsx(x,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"runs",children:o})]})})}export{te as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as s}from"./@radix-Cdvw4jJ8.js";import{bo as c,h as i}from"./index-
|
1
|
+
import{j as s}from"./@radix-Cdvw4jJ8.js";import{bo as c,h as i}from"./index-BgEfQ3_G.js";import{S as e}from"./check-B9QMTa3f.js";function n({tickClasses:r,...o}){return s.jsx(c,{...o,children:s.jsx(e,{className:i("h-4 w-4 fill-success-300",r)})})}export{n as T};
|
@@ -1 +1 @@
|
|
1
|
-
import{z as s}from"./index-
|
1
|
+
import{z as s}from"./index-BgEfQ3_G.js";const e=s.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[!@#$%^&*(),.?":{}|<>\/]/,"Password must contain at least one special character"),o=s.object({oldPassword:s.string().optional(),newPassword:e,confirmPassword:s.string().min(1)}),t=o.refine(a=>a.newPassword===a.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"});export{o as a,t as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as e,r as t}from"./@radix-Cdvw4jJ8.js";import{u as Q,d as S,I as k,p as H,U as D}from"./form-schemas-CrznJVzA.js";import{B as A,aj as U,aJ as T,ak as R,I as b,C as u,am as w,h as F,bf as J,bm as V}from"./index-BFqbGSck.js";import{t as M}from"./zod-XdS2h1ws.js";import{u as j,C as Z}from"./index.esm-DhJo3mA6.js";import{S as O,a as K,b as z}from"./gcp-B1I3Qvcx.js";const P="/assets/adam-e-y0WnB_.webp",Y="/assets/alex-DcCuDHPg.webp",q="/assets/baris-C0ZrZ10g.webp",W="/assets/hamza-NKKOZz1I.webp",X="/assets/stefan-B08Ftbba.webp";function B1(){const{setSurveyStep:s}=Q();function C(){window.open("https://zenml.io/slack","_blank"),s(l=>l+1)}return e.jsxs("div",{className:"max-w-[540px] space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Join The ZenML Slack Community"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Connect to our growing community and meet fellow ZenML enthusiasts, get support, and share your insights. Let's grow together!"})]}),e.jsx(_,{}),e.jsx(A,{onClick:()=>C(),className:"h-auto min-h-8 w-full justify-center py-1",intent:"primary",emphasis:"bold",size:"lg",children:"Join the ZenML Community and Continue"}),e.jsx(A,{intent:"secondary",emphasis:"minimal",onClick:()=>s(l=>l+1),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})}const G=[{name:"Adam",image:P},{name:"Hamza",image:W},{name:"Alex",image:Y},{name:"Stefan",image:X},{name:"Baris",image:q}];function _(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:G.map(s=>e.jsxs(U,{size:"lg",type:"rounded",children:[e.jsx(T,{alt:`Portrait of ${s.name}`,src:s.image}),e.jsx(R,{size:"lg",children:s.name[0]})]},s.name))}),e.jsx("p",{className:"text-center text-text-xs text-theme-text-tertiary",children:"Adam Probst, Hamza Tahir, and +1,800 others have already joined"})]})}function f1({email:s,fullName:C,submitHandler:l}){const n=t.useId(),r=t.useId(),d=t.useId(),{register:m,handleSubmit:x,control:h,watch:a,formState:{isValid:p}}=j({resolver:M(S),defaultValues:{fullName:C||"",getUpdates:!0,email:s||""}});return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Add your account details"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please, fill in your details to get started with ZenML."})]}),e.jsxs("form",{onSubmit:x(l),className:"space-y-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:n,className:"text-text-sm",children:"Name"}),e.jsx(b,{...m("fullName"),id:n,className:"w-full"})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:r,className:"text-text-sm",children:["Email ",!a("getUpdates")&&e.jsx(e.Fragment,{children:"(optional)"})]}),e.jsx(b,{placeholder:"example@company.inc",...m("email"),type:"email",id:r,className:"w-full"})]})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(Z,{control:h,name:"getUpdates",render:({field:{onChange:i,value:c}})=>e.jsx(u,{checked:c,onCheckedChange:o=>i(!!o),id:d})}),e.jsx("label",{htmlFor:d,className:"text-text-sm",children:"I want to receive news and recommendations about how to use ZenML"})]}),e.jsx(A,{disabled:!p,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})}),e.jsxs("p",{className:"text-center text-theme-text-secondary",children:["By continuing you agree to the"," ",e.jsx("a",{className:"link text-theme-text-brand",href:"https://www.zenml.io/privacy-policy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]})]})]})}const $=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{d:"M20.2524 6.30383C20.1382 5.93755 19.864 5.63994 19.5213 5.4568L12.5537 2.11446C12.3709 2.02289 12.1653 2 11.9826 2C11.7998 2 11.5942 2 11.4115 2.04579L4.4438 5.41102C4.10113 5.57126 3.84984 5.86887 3.75846 6.25805L2.02226 13.7898C1.95372 14.1789 2.0451 14.5681 2.27355 14.8886L7.09379 20.8636C7.36793 21.1383 7.75629 21.3215 8.14465 21.3444H15.8433C16.2545 21.3901 16.6429 21.207 16.8942 20.8636L21.7144 14.8886C21.9429 14.5681 22.0343 14.1789 21.9886 13.7898L20.2524 6.30383Z",fill:"#326DE6"}),t.createElement("path",{d:"M19.1559 13.4921C19.133 13.4921 19.133 13.4921 19.1559 13.4921C19.133 13.4464 19.0645 13.4464 19.0416 13.4464C18.9503 13.4235 18.8589 13.4235 18.7675 13.4235C18.7218 13.4235 18.6761 13.4235 18.6304 13.4006H18.6076C18.3563 13.3777 18.0822 13.3319 17.8309 13.2632C17.7623 13.2403 17.6938 13.1716 17.671 13.103C17.671 13.0801 17.6481 13.0801 17.6481 13.0801L17.4654 13.0343C17.5567 12.3704 17.5111 11.6836 17.374 11.0197C17.2141 10.3558 16.9399 9.71485 16.5744 9.14253L16.7115 9.00517V8.98228C16.7115 8.9136 16.7343 8.82203 16.78 8.77624C16.9856 8.61599 17.1912 8.45575 17.4197 8.34128C17.4654 8.31839 17.5111 8.2955 17.5567 8.2726C17.6481 8.22682 17.7167 8.18103 17.808 8.13525C17.8309 8.11235 17.8537 8.11235 17.8766 8.08946C17.8994 8.06657 17.8994 8.06657 17.8994 8.06657C18.105 7.90632 18.1507 7.63161 17.9908 7.42557C17.9223 7.334 17.7852 7.26532 17.671 7.26532C17.5567 7.26532 17.4425 7.31111 17.3511 7.37979L17.3283 7.40268C17.3054 7.42557 17.2826 7.44847 17.2598 7.44847C17.1912 7.51714 17.1227 7.58582 17.077 7.6545C17.0542 7.70029 17.0085 7.72318 16.9856 7.74607C16.8029 7.92921 16.6201 8.11235 16.4145 8.24971C16.3688 8.2726 16.3231 8.2955 16.2774 8.2955C16.2546 8.2955 16.2089 8.2955 16.1861 8.2726L16.0033 8.40996C15.8205 8.22682 15.6149 8.04368 15.4322 7.86054C14.5869 7.19665 13.5361 6.78458 12.4624 6.67011L12.4395 6.48697L12.4167 6.46408C12.3481 6.41829 12.3253 6.34962 12.3024 6.28094C12.3024 6.02912 12.3024 5.7773 12.3481 5.50258V5.47969C12.3481 5.43391 12.371 5.38812 12.371 5.34234C12.3938 5.25076 12.3938 5.15919 12.4167 5.06762V4.93027C12.4395 4.70134 12.2568 4.47241 12.0283 4.47241C11.8912 4.47241 11.7542 4.5182 11.6628 4.60977C11.5714 4.70134 11.5257 4.8158 11.5257 4.93027V5.04473C11.5257 5.1363 11.5486 5.22787 11.5714 5.31944C11.5943 5.36523 11.5943 5.41101 11.5943 5.4568V5.47969C11.6399 5.73151 11.6399 5.98333 11.6399 6.25804C11.6171 6.32672 11.5943 6.3954 11.5257 6.44119L11.5029 6.46408L11.48 6.64722C11.2287 6.67011 10.9774 6.7159 10.7033 6.76168C9.62961 6.99061 8.64728 7.56293 7.89341 8.36417L7.75634 8.2726H7.73349C7.71065 8.2726 7.68781 8.2955 7.64212 8.2955C7.59643 8.2955 7.52789 8.2726 7.50505 8.24971C7.29944 8.08946 7.11669 7.90632 6.93393 7.72318C6.91108 7.67739 6.86539 7.6545 6.84255 7.63161C6.77401 7.56293 6.72833 7.49425 6.65979 7.42557C6.63695 7.40268 6.6141 7.40268 6.59126 7.37979C6.56841 7.3569 6.56841 7.35689 6.56841 7.35689C6.47703 7.28822 6.36281 7.24243 6.24859 7.24243C6.11152 7.24243 5.99729 7.28822 5.90591 7.40268C5.76885 7.60872 5.81454 7.88343 5.99729 8.04368C6.02014 8.04368 6.02014 8.06657 6.02014 8.06657C6.02014 8.06657 6.06583 8.11236 6.08867 8.11236C6.15721 8.15814 6.24859 8.20393 6.33996 8.24971C6.38565 8.2726 6.43134 8.2955 6.47703 8.31839C6.70548 8.45575 6.91108 8.5931 7.11669 8.75335C7.16238 8.79914 7.20807 8.89071 7.18522 8.95939V8.98228L7.32229 9.11963C7.29944 9.16542 7.2766 9.18831 7.25375 9.2341C6.54557 10.3558 6.27143 11.6836 6.47703 12.9885L6.29427 13.0343C6.29427 13.0572 6.27143 13.0572 6.27143 13.0572C6.24859 13.1259 6.18005 13.1716 6.11152 13.2174C5.86022 13.2861 5.60893 13.3319 5.3348 13.3548H5.31195C5.26626 13.3548 5.22057 13.3548 5.17488 13.3777C5.0835 13.3777 4.99212 13.4006 4.90074 13.4006C4.8779 13.4006 4.85506 13.4235 4.80937 13.4235C4.78652 13.4235 4.78652 13.4235 4.76368 13.4464C4.51238 13.4921 4.35247 13.7211 4.39816 13.9729C4.44385 14.1789 4.64945 14.3163 4.85506 14.2934C4.90074 14.2934 4.92359 14.2934 4.96928 14.2705C4.99212 14.2705 4.99212 14.2705 4.99212 14.2476C4.99212 14.2247 5.03781 14.2247 5.0835 14.2247C5.17488 14.2018 5.26626 14.156 5.3348 14.1331C5.38048 14.1102 5.42617 14.0874 5.47186 14.0874H5.49471C5.72316 13.9958 5.97445 13.9271 6.22574 13.8813H6.24859C6.31712 13.8813 6.38565 13.9042 6.43134 13.95C6.45419 13.95 6.45419 13.9729 6.45419 13.9729L6.65979 13.95C7.00246 15.0031 7.64212 15.9417 8.53306 16.6284C8.73866 16.7887 8.92142 16.9261 9.14987 17.0405L9.05849 17.2237C9.05849 17.2466 9.08134 17.2466 9.08134 17.2466C9.12703 17.3152 9.12703 17.4068 9.10418 17.4755C9.0128 17.7044 8.87573 17.9333 8.73866 18.1394V18.1623C8.71582 18.208 8.69297 18.2309 8.64729 18.2767C8.6016 18.3225 8.55591 18.4141 8.48737 18.5057C8.46453 18.5285 8.46453 18.5514 8.44168 18.5743C8.44168 18.5743 8.44168 18.5972 8.41884 18.5972C8.30461 18.8261 8.39599 19.1009 8.6016 19.2153C8.64728 19.2382 8.71582 19.2611 8.78435 19.2611C8.96711 19.2611 9.12703 19.1466 9.2184 18.9864C9.2184 18.9864 9.2184 18.9635 9.24125 18.9635C9.24125 18.9406 9.26409 18.9177 9.28694 18.8948C9.30978 18.8033 9.35547 18.7346 9.37832 18.643L9.42401 18.5057C9.49254 18.2538 9.60676 18.0249 9.72099 17.796C9.76668 17.7273 9.83521 17.6815 9.90375 17.6586C9.92659 17.6586 9.92659 17.6586 9.92659 17.6357L10.018 17.4526C10.6576 17.7044 11.3201 17.8189 12.0055 17.8189C12.4167 17.8189 12.8279 17.7731 13.2391 17.6815C13.4904 17.6357 13.7417 17.5442 13.9701 17.4755L14.0615 17.6357C14.0843 17.6357 14.0843 17.6357 14.0843 17.6586C14.1529 17.6815 14.2214 17.7273 14.2671 17.796C14.3813 18.0249 14.4727 18.2538 14.5641 18.4828V18.5057L14.6098 18.643C14.6326 18.7346 14.6555 18.8261 14.7011 18.8948C14.724 18.9177 14.724 18.9406 14.7468 18.9635C14.7468 18.9635 14.7468 18.9864 14.7697 18.9864C14.8611 19.1466 15.021 19.2611 15.2037 19.2611C15.2723 19.2611 15.318 19.2382 15.3865 19.2153C15.4779 19.1695 15.5692 19.078 15.5921 18.9635C15.6149 18.849 15.6149 18.7117 15.5692 18.5972C15.5692 18.5743 15.5464 18.5743 15.5464 18.5743C15.5464 18.5514 15.5236 18.5285 15.5007 18.5057C15.455 18.4141 15.4093 18.3454 15.3408 18.2767C15.318 18.2309 15.2951 18.208 15.2494 18.1623V18.1394C15.0895 17.9333 14.9753 17.7044 14.8839 17.4755C14.8611 17.4068 14.8611 17.3152 14.9067 17.2466C14.9067 17.2237 14.9296 17.2237 14.9296 17.2237L14.8611 17.0405C16.049 16.3308 16.9171 15.232 17.3511 13.9271L17.5339 13.95C17.5567 13.95 17.5567 13.9271 17.5567 13.9271C17.6024 13.8813 17.671 13.8584 17.7395 13.8584H17.7623C18.0136 13.9042 18.2649 13.9729 18.4934 14.0645H18.5162C18.5619 14.0874 18.6076 14.1102 18.6533 14.1102C18.7447 14.156 18.8132 14.1789 18.9046 14.2018C18.9274 14.2018 18.9503 14.2247 18.996 14.2247C19.0188 14.2247 19.0188 14.2247 19.0416 14.2476C19.0873 14.2705 19.1102 14.2705 19.1559 14.2705C19.3615 14.2705 19.5442 14.1331 19.6128 13.95C19.5442 13.7211 19.3843 13.5379 19.1559 13.4921ZM12.5766 12.7825L11.9598 13.0801L11.343 12.7825L11.1602 12.1186L11.5943 11.5692H12.3024L12.7365 12.1186L12.5766 12.7825ZM16.3003 11.2944C16.4145 11.7752 16.4373 12.2559 16.3917 12.7367L14.2214 12.1186C14.0158 12.0728 13.9016 11.8668 13.9473 11.6607C13.9701 11.592 13.993 11.5463 14.0386 11.5005L15.752 9.94377C16.0033 10.3558 16.1861 10.8137 16.3003 11.2944ZM15.0667 9.09674L13.2162 10.4245C13.0563 10.5161 12.8279 10.4932 12.7137 10.3329C12.668 10.2872 12.6451 10.2414 12.6451 10.1727L12.508 7.86054C13.4675 7.975 14.3813 8.40996 15.0667 9.09674ZM10.9318 7.92921L11.3887 7.83764L11.2516 10.1269C11.2516 10.3329 11.0688 10.4932 10.8632 10.4932C10.7947 10.4932 10.749 10.4703 10.6805 10.4474L8.83004 9.09674C9.40116 8.52442 10.1322 8.11235 10.9318 7.92921ZM8.1447 9.94377L9.83521 11.4547C9.99513 11.592 10.018 11.821 9.8809 11.9812C9.83521 12.0499 9.78952 12.0728 9.69814 12.0957L7.50505 12.7367C7.41367 11.7752 7.64212 10.7908 8.1447 9.94377ZM7.75634 13.8126L10.018 13.4235C10.2007 13.4235 10.3835 13.5379 10.4063 13.7211C10.4292 13.7898 10.4292 13.8813 10.3835 13.95L9.51539 16.0561C8.71582 15.5296 8.07617 14.7284 7.75634 13.8126ZM12.9421 16.6513C12.6223 16.72 12.2796 16.7658 11.9369 16.7658C11.4572 16.7658 10.9546 16.6742 10.4977 16.5369L11.6171 14.4994C11.7313 14.3621 11.9141 14.3163 12.074 14.4079C12.1425 14.4536 12.1882 14.4994 12.2568 14.5681L13.3533 16.5598C13.2391 16.5827 13.102 16.6056 12.9421 16.6513ZM15.7292 14.6597C15.3865 15.2091 14.9067 15.6898 14.3585 16.0332L13.4675 13.9042C13.4218 13.7211 13.4904 13.5379 13.6731 13.4464C13.7417 13.4235 13.8102 13.4006 13.8787 13.4006L16.1632 13.7898C16.049 14.1102 15.9119 14.4079 15.7292 14.6597Z",fill:"white"})),e1=s=>t.createElement("svg",{viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{d:"M21.9999 8.18613C21.7761 7.72384 21.5171 7.2777 21.2166 6.85693L18.006 8.02537C18.3794 8.40751 18.6931 8.83704 18.9496 9.29639L21.9999 8.18613ZM7.80775 11.7372L4.59619 12.9056C4.63724 13.4206 4.72618 13.9294 4.85077 14.4278L7.90158 13.317C7.80236 12.801 7.76717 12.2693 7.80775 11.7372Z",fill:"#C22133"}),t.createElement("path",{d:"M14.9352 7.27651C15.6032 7.58829 16.1818 8.01343 16.67 8.51188L19.8806 7.34348C18.9912 6.09541 17.7798 5.05258 16.2957 4.36011C11.7056 2.21972 6.22948 4.21253 4.0896 8.80215C3.39666 10.2873 3.13911 11.8647 3.2603 13.3923L6.4714 12.2238C6.52464 11.528 6.69423 10.8307 7.0055 10.1622C8.3963 7.18027 11.9533 5.8863 14.9352 7.27651ZM18.3597 13.1438C18.3084 13.8392 18.1329 14.5365 17.8207 15.2055C16.4304 18.1879 12.8729 19.4819 9.89149 18.0916C9.22247 17.7793 8.6395 17.3576 8.15325 16.8582L4.94904 18.0242C5.83647 19.2722 7.04643 20.3155 8.53149 21.0085C13.1216 23.1484 18.5967 21.1556 20.7371 16.5655C21.4305 15.0814 21.6861 13.5039 21.5639 11.9778L18.3597 13.1438Z",fill:"#DB212E"}),t.createElement("path",{d:"M19.1492 9.22388L16.0983 10.3341C16.6652 11.3496 16.933 12.5185 16.845 13.6943L20.0493 12.5288C19.9575 11.3807 19.6523 10.2599 19.1492 9.22388ZM5.05081 14.3546L2 15.4658C2.28133 16.5824 2.76785 17.637 3.43475 18.5757L6.63849 17.4093C5.81607 16.5648 5.26923 15.4961 5.05081 14.3546Z",fill:"#EB2126"}),t.createElement("path",{d:"M21.535 7.34025C21.4338 7.17606 21.3288 7.01429 21.2169 6.85693L18.0063 8.02537C18.1475 8.17002 18.2775 8.32346 18.4016 8.48082L21.535 7.34025ZM7.79556 12.382C7.78742 12.167 7.79149 11.9518 7.80775 11.7374L4.59619 12.9058C4.61281 13.1115 4.63869 13.3158 4.66949 13.5196L7.79556 12.382Z",fill:"#AD213B"}),t.createElement("path",{d:"M21.5637 11.9778L18.3594 13.1438C18.3257 13.6051 18.2358 14.0674 18.0887 14.5218L21.5764 13.2503C21.6015 12.8263 21.5972 12.4012 21.5637 11.9778ZM4.94922 18.0246C5.19771 18.374 5.47059 18.7053 5.76581 19.0162L9.25396 17.7441C8.84641 17.489 8.47795 17.1915 8.15296 16.8582L4.94922 18.0246Z",fill:"#BA2133"})),s1=[{name:"GCP",icon:e.jsx(O,{className:"h-5 w-5 shrink-0"})},{name:"AWS",icon:e.jsx(K,{className:"h-5 w-5 shrink-0"})},{name:"Azure",icon:e.jsx(z,{className:"h-5 w-5 shrink-0"})},{name:"Native Kubernetes",icon:e.jsx($,{className:"h-5 w-5 shrink-0"})},{name:"Openshift",icon:e.jsx(e1,{className:"h-5 w-5 shrink-0"})}];function L1({submitHandler:s}){const C=t.useRef(null),{register:l,setValue:n,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=j({resolver:M(k),defaultValues:{providers:[]},shouldUnregister:!0}),h=r("other");return t.useEffect(()=>{var a;h&&((a=C.current)==null||a.focus())},[h]),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"What is your current infrastructure?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select all the applicable options"})]}),e.jsxs("form",{onSubmit:d(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid w-full grid-cols-1 gap-[20px] md:grid-cols-2 lg:min-w-[700px]",children:[e.jsx(Z,{control:m,name:"providers",render:({field:{onChange:a,value:p}})=>e.jsx(e.Fragment,{children:s1.map((i,c)=>e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":r("providers").includes(i.name),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!r("providers").includes(i.name)}),children:[e.jsx(u,{onCheckedChange:o=>{a(o?[...p,i.name]:p.filter(B=>B!==i.name))},value:i.name,className:"h-3 w-3"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[i.icon,i.name]})]},c))})}),e.jsxs("div",{className:w("flex items-center rounded-md border bg-theme-surface-primary p-3 transition duration-150",{"border-primary-400":!!r("other"),"border-theme-border-minimal hover:border-theme-border-bold":!r("other")}),children:[e.jsx(u,{onCheckedChange:a=>n("other",!!a),...l("other",{value:!1}),className:"mr-2 h-3 w-3",id:"other"}),h?e.jsx("input",{...l("otherVal"),ref:a=>{l("otherVal").ref(a),C.current=a},placeholder:"Specify...",className:"w-full border-none p-0 pr-2 placeholder:text-theme-text-tertiary focus:outline-none focus:ring-0"}):e.jsx("label",{className:"w-full text-theme-text-secondary hover:cursor-pointer",htmlFor:"other",children:"Other"})]})]}),e.jsx(A,{disabled:!x,type:"submit",className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})}),e.jsx(A,{intent:"secondary",emphasis:"minimal",onClick:()=>s({providers:["local"],other:!1}),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})]})}const t1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16146 2H9.83854C10.3657 1.99998 10.8205 1.99997 11.195 2.03057C11.5904 2.06287 11.9836 2.13419 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C13.8658 4.01641 13.9371 4.40963 13.9694 4.80497C14 5.17955 14 5.63432 14 6.16148V10L17.8385 10C18.3657 9.99998 18.8205 9.99997 19.195 10.0306C19.5904 10.0629 19.9836 10.1342 20.362 10.327C20.9265 10.6146 21.3854 11.0735 21.673 11.638C21.8658 12.0164 21.9371 12.4096 21.9694 12.805C22 13.1795 22 13.6343 22 14.1614V20C22.5523 20 23 20.4477 23 21C23 21.5523 22.5523 22 22 22H2C1.44772 22 1 21.5523 1 21C1 20.4477 1.44772 20 2 20V6.16146C1.99998 5.63431 1.99997 5.17955 2.03057 4.80497C2.06287 4.40963 2.13419 4.01641 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.01641 2.13419 4.40963 2.06287 4.80497 2.03057C5.17954 1.99997 5.63431 1.99998 6.16146 2ZM4 20H12V6.2C12 5.62345 11.9992 5.25118 11.9761 4.96784C11.9539 4.69617 11.9162 4.59546 11.891 4.54601C11.7951 4.35785 11.6422 4.20487 11.454 4.109C11.4045 4.0838 11.3038 4.04612 11.0322 4.02393C10.7488 4.00078 10.3766 4 9.8 4H6.2C5.62345 4 5.25117 4.00078 4.96784 4.02393C4.69617 4.04612 4.59545 4.0838 4.54601 4.109C4.35785 4.20487 4.20487 4.35785 4.10899 4.54601C4.0838 4.59546 4.04612 4.69617 4.02393 4.96784C4.00078 5.25117 4 5.62345 4 6.2V20ZM14 12V20H20V14.2C20 13.6234 19.9992 13.2512 19.9761 12.9678C19.9539 12.6962 19.9162 12.5955 19.891 12.546C19.7951 12.3578 19.6422 12.2049 19.454 12.109C19.4045 12.0838 19.3038 12.0461 19.0322 12.0239C18.7488 12.0008 18.3766 12 17.8 12H14ZM5.5 7C5.5 6.44772 5.94772 6 6.5 6H9.5C10.0523 6 10.5 6.44772 10.5 7C10.5 7.55229 10.0523 8 9.5 8H6.5C5.94772 8 5.5 7.55229 5.5 7ZM5.5 11C5.5 10.4477 5.94772 10 6.5 10H9.5C10.0523 10 10.5 10.4477 10.5 11C10.5 11.5523 10.0523 12 9.5 12H6.5C5.94772 12 5.5 11.5523 5.5 11ZM5.5 15C5.5 14.4477 5.94772 14 6.5 14H9.5C10.0523 14 10.5 14.4477 10.5 15C10.5 15.5523 10.0523 16 9.5 16H6.5C5.94772 16 5.5 15.5523 5.5 15Z"})),r1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8026 4.52039L11.8026 4.52039L11.8026 4.52039ZM12 4.61798L19.7639 8.49994L19.5721 8.59583C19.5596 8.6018 19.5471 8.60803 19.5348 8.6145L17 9.88191L12.4472 7.60552C11.9532 7.35853 11.3526 7.55875 11.1056 8.05273C10.8586 8.54671 11.0588 9.14738 11.5528 9.39437L14.7639 10.9999L12 12.3819L4.4652 8.61451C4.4529 8.60803 4.44044 8.6018 4.42784 8.59583L4.23607 8.49994L12 4.61798ZM3 10.118L1.55279 9.39437C1.214 9.22498 1 8.87872 1 8.49994C1 8.12117 1.214 7.77491 1.55279 7.60552L11.195 2.7844C11.2024 2.7807 11.211 2.77633 11.2206 2.77143C11.3139 2.72382 11.507 2.62529 11.7234 2.58468C11.9062 2.55039 12.0938 2.55039 12.2766 2.58468C12.493 2.62529 12.6861 2.72382 12.7794 2.77143C12.789 2.77633 12.7976 2.7807 12.805 2.7844L22.4472 7.60552C22.786 7.77491 23 8.12117 23 8.49994C23 8.87872 22.786 9.22498 22.4472 9.39437L21 10.118V16.3066C21 16.332 21.0001 16.3582 21.0002 16.3851C21.0013 16.6707 21.0027 17.0296 20.884 17.3629C20.7814 17.6508 20.6142 17.9113 20.3952 18.1245C20.1417 18.3713 19.8149 18.5196 19.5548 18.6376C19.5303 18.6487 19.5065 18.6595 19.4833 18.6701L13.0833 21.6035C13.0667 21.6111 13.0496 21.619 13.0321 21.6271C12.8423 21.7147 12.6034 21.8251 12.3421 21.8704C12.1157 21.9097 11.8843 21.9097 11.6579 21.8704C11.3966 21.8251 11.1577 21.7147 10.9679 21.6271C10.9504 21.619 10.9333 21.6111 10.9167 21.6035L4.5167 18.6701L4.93335 17.7611L4.51669 18.6701C4.49354 18.6595 4.46967 18.6487 4.44522 18.6376C4.1851 18.5196 3.85826 18.3713 3.60476 18.1245C3.3858 17.9113 3.21862 17.6508 3.11604 17.3629C2.99727 17.0296 2.99867 16.6707 2.99979 16.3851C2.9999 16.3582 3 16.332 3 16.3066V10.118ZM5 11.118V16.3066C5 16.505 5.00047 16.6074 5.00521 16.6814C5.00536 16.6837 5.0055 16.6859 5.00565 16.688C5.00747 16.6889 5.00938 16.69 5.01138 16.6911C5.07675 16.7262 5.16965 16.7693 5.35001 16.852L11.75 19.7853C11.8813 19.8455 11.9473 19.8754 11.9962 19.895C11.9975 19.8955 11.9988 19.896 12 19.8965C12.0012 19.896 12.0025 19.8955 12.0038 19.895C12.0527 19.8754 12.1187 19.8455 12.25 19.7853L18.65 16.852C18.8304 16.7693 18.9233 16.7262 18.9886 16.6911C18.9906 16.69 18.9925 16.6889 18.9944 16.688C18.9945 16.6859 18.9946 16.6837 18.9948 16.6814C18.9995 16.6074 19 16.505 19 16.3066V11.118L18 11.618V14.4999C18 15.0522 17.5523 15.4999 17 15.4999C16.4477 15.4999 16 15.0522 16 14.4999V12.618L12.805 14.2155C12.7976 14.2192 12.789 14.2236 12.7794 14.2285C12.6861 14.2761 12.493 14.3746 12.2766 14.4152C12.0938 14.4495 11.9062 14.4495 11.7234 14.4152C11.507 14.3746 11.3139 14.2761 11.2206 14.2285C11.211 14.2236 11.2024 14.2192 11.195 14.2155L5 11.118ZM11.8026 12.4795C11.8024 12.4796 11.8024 12.4796 11.8026 12.4795L11.8026 12.4795ZM12.1974 12.4795C12.1976 12.4796 12.1976 12.4796 12.1974 12.4795L12.1974 12.4795ZM12.1974 4.52039L12.1974 4.52039L12.1974 4.52039Z"})),a1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.067 4 8.50002 5.567 8.50002 7.5C8.50002 9.433 10.067 11 12 11C13.933 11 15.5 9.433 15.5 7.5C15.5 5.567 13.933 4 12 4ZM6.50002 7.5C6.50002 4.46243 8.96246 2 12 2C15.0376 2 17.5 4.46243 17.5 7.5C17.5 10.5376 15.0376 13 12 13C8.96246 13 6.50002 10.5376 6.50002 7.5ZM9.32629 14.5C9.38335 14.5 9.44125 14.5 9.50003 14.5H14.5C14.5588 14.5 14.6167 14.5 14.6738 14.5C15.901 14.4995 16.739 14.4992 17.4514 14.7153C19.0495 15.2 20.3 16.4506 20.7847 18.0486C21.0008 18.761 21.0005 19.599 21.0001 20.8263C21 20.8833 21 20.9412 21 21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21C19 19.5317 18.9892 19.0192 18.8708 18.6291C18.58 17.6703 17.8297 16.92 16.8709 16.6292C16.4808 16.5108 15.9683 16.5 14.5 16.5H9.50003C8.03171 16.5 7.51923 16.5108 7.12917 16.6292C6.17036 16.92 5.42005 17.6703 5.1292 18.6291C5.01088 19.0192 5.00002 19.5317 5.00002 21C5.00002 21.5523 4.55231 22 4.00002 22C3.44774 22 3.00002 21.5523 3.00002 21C3.00002 20.9412 3 20.8833 2.99998 20.8263C2.99953 19.599 2.99922 18.761 3.21532 18.0486C3.70007 16.4506 4.95059 15.2 6.54859 14.7153C7.261 14.4992 8.09902 14.4995 9.32629 14.5Z"})),L=t.forwardRef(({children:s,className:C,id:l,...n},r)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:l,...n,ref:r,className:F("peer sr-only",C),type:"radio"}),e.jsx("label",{htmlFor:l,className:"flex h-full w-full flex-col items-center justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary transition-all duration-150 hover:cursor-pointer hover:border-theme-border-bold hover:shadow-sm peer-checked:border-primary-400 peer-checked:bg-primary-25 peer-checked:shadow-sm peer-focus-visible:border-primary-100",children:s})]}));L.displayName="UseRadioButton";function M1({submitHandler:s,user:C}){var d,m;const{handleSubmit:l,register:n,formState:{isValid:r}}=j({defaultValues:{primaryUse:(m=(d=C==null?void 0:C.metadata)==null?void 0:d.user_metadata)==null?void 0:m.primary_use},resolver:M(H)});return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"What will be your primary use for ZenML?"})}),e.jsxs("form",{onSubmit:l(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-[20px] md:grid-cols-3",children:[e.jsxs(L,{id:"use-personal",...n("primaryUse"),value:"personal",children:[e.jsx(a1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Personal"})]}),e.jsxs(L,{...n("primaryUse"),id:"use-work",value:"work",children:[e.jsx(t1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Work"})]}),e.jsxs(L,{...n("primaryUse"),id:"use-student",value:"student",children:[e.jsx(r1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Student"})]})]}),e.jsx(A,{disabled:!r,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}const l1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.82253%2022.4201L12.3982%2012.6043C12.4582%2012.5428%2012.4697%2012.4478%2012.4196%2012.3779C11.8371%2011.5648%2010.7629%2011.4239%2010.3647%2010.8777C9.18504%209.25951%208.88573%208.34364%208.37885%208.40044C8.34344%208.40442%208.31187%208.42347%208.28699%208.44897L4.82777%2011.9949C2.83774%2014.0348%202.55236%2018.5262%202.50002%2022.2871C2.49766%2022.457%202.70384%2022.5417%202.82253%2022.4201Z'%20fill='%23017CEE'%20/%3e%3cpath%20d='M22.4202%2022.1774L12.6044%2012.6017C12.543%2012.5418%2012.4479%2012.5302%2012.3781%2012.5803C11.565%2013.1628%2011.424%2014.237%2010.8778%2014.6353C9.25964%2015.8148%208.34376%2016.1142%208.40057%2016.6211C8.40454%2016.6565%208.42359%2016.6881%208.4491%2016.7129L11.9951%2020.1721C14.035%2022.1622%2018.5264%2022.4475%2022.2872%2022.4998C22.4571%2022.5023%2022.5418%2022.2961%2022.4202%2022.1774Z'%20fill='%2300AD46'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9954%2020.1722C10.8811%2019.0852%2010.3641%2016.9347%2012.5003%2012.5C9.02851%2014.0515%207.81187%2016.0911%208.41038%2016.675L11.9954%2020.1722Z'%20fill='%2304D659'%20/%3e%3cpath%20d='M22.1775%202.57985L12.6019%2012.3956C12.5419%2012.4571%2012.5304%2012.5521%2012.5804%2012.622C13.1629%2013.4351%2014.2372%2013.576%2014.6353%2014.1223C15.815%2015.7404%2016.1143%2016.6562%2016.6211%2016.5995C16.6565%2016.5955%2016.6881%2016.5764%2016.713%2016.5509L20.1722%2013.005C22.1623%2010.965%2022.4477%206.4737%2022.5%202.71283C22.5023%202.54288%2022.2962%202.45819%2022.1775%202.57985Z'%20fill='%2300C7D4'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.1726%2013.005C19.0855%2014.1192%2016.935%2014.6363%2012.5002%2012.5C14.0518%2015.9718%2016.0913%2017.1885%2016.6752%2016.5899L20.1726%2013.005Z'%20fill='%2311E1EE'%20/%3e%3cpath%20d='M2.57973%202.82253L12.3955%2012.3982C12.457%2012.4581%2012.552%2012.4697%2012.6219%2012.4196C13.4349%2011.8371%2013.5759%2010.7629%2014.1221%2010.3647C15.7403%209.18504%2016.6562%208.88574%2016.5993%208.37885C16.5954%208.34344%2016.5763%208.31187%2016.5509%208.28699L13.0049%204.82777C10.9649%202.83774%206.47358%202.55236%202.71271%202.50002C2.54276%202.49765%202.45807%202.70384%202.57973%202.82253Z'%20fill='%23E43921'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.0052%204.82764C14.1195%205.91469%2014.6365%208.06516%2012.5002%2012.4999C15.972%2010.9484%2017.1888%208.90882%2016.5902%208.32495L13.0052%204.82764Z'%20fill='%23FF7557'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.828%2011.9953C5.91505%2010.881%208.06553%2010.364%2012.5003%2012.5002C10.9487%209.02839%208.90919%207.81175%208.32532%208.41025L4.828%2011.9953Z'%20fill='%230CB6FF'%20/%3e%3cpath%20d='M12.507%2012.9272C12.7434%2012.9242%2012.9328%2012.7302%2012.9298%2012.4937C12.9269%2012.2573%2012.7328%2012.0679%2012.4964%2012.0709C12.2599%2012.0738%2012.0706%2012.2679%2012.0735%2012.5043C12.0765%2012.7408%2012.2705%2012.9301%2012.507%2012.9272Z'%20fill='%234A4848'%20/%3e%3c/svg%3e",C1="/assets/flyte-Cj-xy_8I.svg",o1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='2.5'%20y='2.5'%20width='20'%20height='20'%20fill='url(%23pattern0_6205_839)'%20/%3e%3cdefs%3e%3cpattern%20id='pattern0_6205_839'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_6205_839'%20transform='scale(0.005)'%20/%3e%3c/pattern%3e%3cimage%20id='image0_6205_839'%20width='200'%20height='200'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAaxSURBVHgB7d1JjuNWEEVRZu7JA6/O5dUVCt6SUWk9pb6sjhSb30RzL0BAgsYHJEQyYprITF//TH/pmIjovjOOX9PX+QAJ0f/d4QCJqT4mGtoZwu/px8sfP6cfH39Mf080LIAMbBFHCSRDA8igVuEogWRYABnQJhwlkAwJIJ3bhaMEku4BpGOHcJRA0jWAdKoKjhJIugWQDlXFUQJJlwDSuCY4SiBpHkAa1hRHCSRNA0ijuuAogaRZAGlQVxwlkDQJIJUbgqMEkuoBpGJDcZRAUjWAVMoEjhJIqgWQCpnCUQJJlQByMJM4SiA5HEAOZBpHCSSHAsjOXOAogWR3ANmRKxwlkOwKIBtziaMEks0BZEOucZRAsimArCwEjhJIVgeQFYXCUQLJqgDyppA4SiB5G0AWCo2jBJLFADJTChwlkMwGkBelwlECycsA8lBKHCWQPAWQm1LjKIHkLoBcAsdNILkGkAkcLwPJufRAwLEQSHIDAceKkiNJCwQcG0qMJCUQcOwoKZJ0QMBxoIRIUgEBR4WSIUkDBBwVS4QkBRBwNCgJkvBAwNGwBEhCAwFHh4IjCQsEHB0LjCQkEHAMKCiScEDAMbCASEIBAYeBgiEJAwQchgqEJAQQcBgsCBL3QMBhuABIXAMBh4OcI3ELBByOcozEJRBwOMwpEndAwOE4h0hcAQFHgJwhcQMEHIFyhMQFEHAEzAkS80DAETgHSEwDAUeCjCMxCwQciTKMxCQQcCTMKBJzQMCROINITAEBB1lDYgYIOOiaISQmgICDnjKCZDgQcNBsBpAMBQIOettgJMOAgINWNxDJECDgoM0NQtIdCDhodwOQdAUCDjpcZyTdgICDqtURSRcg4KDqdULSHAg4qFkdkDQFAg5qXmMkzYCAg7rVEEkTIOCg7jVCUh0IOGhYDZBUBQIOGl5lJNWAgIPMVBFJFSDgIHNVQnIYCDjIbBWQHAICDjLfQSS7gYCD3HQAyS4g4CB37USyGQg4yG07kGwCAg5y30Ykq4GAg8K0AckqIOCgcK1E8hYIOChsK5AsAgEHhe8Nklkg4KA0LSB5CQQclK4ZJE9AwEFpe4HkDgg4KH0PSK5AwEF06QbJGQg4iB66IPkAB9FMJySf07+2d6UTDetk4/sS6+fpDPJ5OpMQ0Xe/T5dXf54us8p3kBBduuDQx/u/eUFC2bvBoZ5vFIKEsvaAQ71+1AQklK0XONT8w4ogoSzN4FDLj7uDhKK3gEO9f2EKJBS1NzjUulduQULRWoFDrR/aABKK0kocatvYH5CQ9zbgUNsHx4GEvLYRh9o3ehQk5K0dONT+4dUgIS/txKGOrT8ACVnvAA51fIEOSMhqB3GoOivYQELWqoBD1VviCRKyUiUcqu4aaJDQ6CriUNXfRwcJDasyDtVkYANIqHsNcKhmE01AQt1qhEM1HfkDEmpeQxyq+UwskFCzGuNQXYbGgYSq1wGH6jZVESRUrU44VNexoyChw3XEobrP5QUJ7a4zDjVkcDVIaHMDcKhhk91BQqsbhEMNXX0AEnrbQBxq+G4QkNBsg3EoE8tzQEJPGcChzGyXAgldM4JDmVq/BhKyhEOZ208IksQZw6FMLvAEScIM4lBmN9yCJFFGcSjTK6BBkiDDOJT5HekgCZxxHMo8EAWSgDnAoVwAUSAJlBMcyg0QBZIAOcKhXAFRIHGcMxzKHRAFEoc5xKFcAlEgcZRTHMotEAUSBznGoVwDUSAxnHMcyj0QBRKDBcChQgBRIDFUEBwqDBAFEgMFwqFCAVEgGVgwHCocEAWSAQXEoUICUSDpWFAcKiwQBZIOBcahQgNRIGlYcBwqPBAFkgYlwKFSAFEgqVgSHCoNEAWSCiXCoVIBUSA5UDIcKh0QBZIdJcShUgJRINlQUhwqLRAFkhUlxqFSA1EgWSg5DpUeiALJi8BxDiCXQHITOK4B5CaQTOB4CCAPpUYCjqcA8qKUSMDxMoDMlAoJOGYDyEIpkIBjMYC8KTQScLwNICsKiQQcqwLIykIhAcfqALKhEEjAsSmAbMw1EnBsDiA7cokEHLsCyM5cIQHH7gByIBdIwHEogBzMNBJwHA4gFTKJBBxVAkilTCEBR7UAUjETSMBRNYBUbigScFQPIA0aggQcTQJIo7oiAUezANKwLkjA0TSANK4pEnA0DyAdaoIEHF0CSKeqIgFHtwDSsSpIwNE1gHTuEBJwdA8gA9qFBBxDAsigNiEBx7AAMrBVSMAxNIAMbhEJOIi+kXz9mr7ujp/AILp2hwQcRM+dkYDDVP8Bu8MD8WVDwpYAAAAASUVORK5CYII='%20/%3e%3c/defs%3e%3c/svg%3e",n1="/assets/metaflow-weOkWNyT.svg",i1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='2.5'%20y='2.5'%20width='20'%20height='20'%20fill='url(%23pattern0_6205_1180)'%20/%3e%3cdefs%3e%3cpattern%20id='pattern0_6205_1180'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_6205_1180'%20transform='scale(0.00416667)'%20/%3e%3c/pattern%3e%3cimage%20id='image0_6205_1180'%20width='240'%20height='240'%20xlink:href='data:image/png;base64,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'%20/%3e%3c/defs%3e%3c/svg%3e",c1=s=>t.createElement("svg",{viewBox:"0 0 24 25",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 1.5C15.4138 1.5 15.7848 1.75483 15.9333 2.14102L17.112 5.20544C17.4124 5.98648 17.5068 6.21155 17.6359 6.39315C17.7655 6.57535 17.9246 6.73455 18.1069 6.86411C18.2884 6.99323 18.5135 7.08763 19.2946 7.38803L22.359 8.56665C22.7452 8.71519 23 9.08623 23 9.5C23 9.91377 22.7452 10.2848 22.359 10.4333L19.2946 11.612C18.5135 11.9124 18.2884 12.0068 18.1069 12.1359C17.9246 12.2654 17.7655 12.4246 17.6359 12.6069C17.5068 12.7884 17.4124 13.0135 17.112 13.7946L15.9333 16.859C15.7848 17.2452 15.4138 17.5 15 17.5C14.5862 17.5 14.2152 17.2452 14.0667 16.859L12.888 13.7946C12.5876 13.0135 12.4932 12.7884 12.3641 12.6069C12.2345 12.4246 12.0754 12.2654 11.8931 12.1359C11.7116 12.0068 11.4865 11.9124 10.7054 11.612L7.64102 10.4333C7.25483 10.2848 7 9.91377 7 9.5C7 9.08623 7.25483 8.71519 7.64102 8.56665L10.7054 7.38803C11.4865 7.08763 11.7116 6.99323 11.8931 6.86411C12.0754 6.73455 12.2345 6.57535 12.3641 6.39315C12.4932 6.21155 12.5876 5.98648 12.888 5.20544L14.0667 2.14102C14.2152 1.75483 14.5862 1.5 15 1.5ZM15 5.28568L14.7547 5.9234C14.7415 5.95787 14.7284 5.99189 14.7155 6.02548C14.4719 6.65974 14.2879 7.13886 13.9941 7.55214C13.7349 7.91655 13.4166 8.23494 13.0521 8.49406C12.6389 8.78793 12.1597 8.97192 11.5255 9.2155C11.4919 9.2284 11.4579 9.24147 11.4234 9.25472L10.7857 9.5L11.4234 9.74528C11.4579 9.75854 11.4919 9.7716 11.5255 9.7845C12.1597 10.0281 12.6389 10.2121 13.0521 10.5059C13.4166 10.7651 13.7349 11.0834 13.9941 11.4479C14.2879 11.8611 14.4719 12.3403 14.7155 12.9745C14.7284 13.0081 14.7415 13.0421 14.7547 13.0766L15 13.7143L15.2453 13.0766C15.2585 13.0421 15.2716 13.0081 15.2845 12.9745C15.5281 12.3403 15.7121 11.8611 16.0059 11.4479C16.2651 11.0834 16.5834 10.7651 16.9479 10.5059C17.3611 10.2121 17.8403 10.0281 18.4745 9.7845C18.5081 9.7716 18.5421 9.75854 18.5766 9.74528L19.2143 9.5L18.5766 9.25472C18.5421 9.24146 18.5081 9.2284 18.4745 9.2155C17.8403 8.97192 17.3611 8.78793 16.9479 8.49406C16.5834 8.23494 16.2651 7.91655 16.0059 7.55214C15.7121 7.13886 15.5281 6.65974 15.2845 6.02548C15.2716 5.99189 15.2585 5.95787 15.2453 5.9234L15 5.28568ZM6.5 12.5C6.87877 12.5 7.22503 12.714 7.39443 13.0528L8.17889 14.6217C8.46137 15.1867 8.54745 15.3493 8.65204 15.4849C8.75695 15.621 8.87896 15.7431 9.01506 15.848C9.15075 15.9525 9.31333 16.0386 9.8783 16.3211L11.4472 17.1056C11.786 17.275 12 17.6212 12 18C12 18.3788 11.786 18.725 11.4472 18.8944L9.8783 19.6789C9.31333 19.9614 9.15075 20.0475 9.01506 20.152C8.87896 20.257 8.75695 20.379 8.65204 20.5151C8.54745 20.6507 8.46137 20.8133 8.17889 21.3783L7.39443 22.9472C7.22504 23.286 6.87877 23.5 6.5 23.5C6.12123 23.5 5.77497 23.286 5.60557 22.9472L4.82111 21.3783C4.53863 20.8133 4.45255 20.6507 4.34796 20.5151C4.24305 20.379 4.12104 20.257 3.98494 20.152C3.84925 20.0475 3.68667 19.9614 3.1217 19.6789L1.55279 18.8944C1.214 18.725 1 18.3788 1 18C1 17.6212 1.214 17.275 1.55279 17.1056L3.1217 16.3211C3.68667 16.0386 3.84925 15.9526 3.98494 15.848C4.12104 15.7431 4.24305 15.621 4.34796 15.4849C4.45255 15.3493 4.53863 15.1867 4.82111 14.6217L5.60557 13.0528C5.77496 12.714 6.12123 12.5 6.5 12.5ZM6.5 15.736C6.30478 16.1251 6.14371 16.4313 5.93198 16.706C5.72217 16.9781 5.47815 17.2222 5.20595 17.432C4.93128 17.6437 4.62509 17.8048 4.23604 18C4.62509 18.1952 4.93128 18.3563 5.20595 18.568C5.47814 18.7778 5.72217 19.0219 5.93198 19.294C6.14371 19.5687 6.30478 19.8749 6.5 20.264C6.69522 19.8749 6.85629 19.5687 7.06802 19.294C7.27784 19.0219 7.52186 18.7778 7.79405 18.568C8.06872 18.3563 8.37491 18.1952 8.76396 18C8.37491 17.8048 8.06872 17.6437 7.79405 17.432C7.52185 17.2222 7.27783 16.9781 7.06802 16.706C6.85629 16.4313 6.69522 16.1251 6.5 15.736Z"})),d1=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:"M15.2929 2.29289C15.6834 1.90237 16.3166 1.90237 16.7071 2.29289L20.7071 6.29289C21.0976 6.68342 21.0976 7.31658 20.7071 7.70711L16.7071 11.7071C16.3166 12.0976 15.6834 12.0976 15.2929 11.7071C14.9024 11.3166 14.9024 10.6834 15.2929 10.2929L17.5858 8H4C3.44772 8 3 7.55228 3 7C3 6.44772 3.44772 6 4 6H17.5858L15.2929 3.70711C14.9024 3.31658 14.9024 2.68342 15.2929 2.29289ZM8.70711 12.2929C9.09763 12.6834 9.09763 13.3166 8.70711 13.7071L6.41421 16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H6.41421L8.70711 20.2929C9.09763 20.6834 9.09763 21.3166 8.70711 21.7071C8.31658 22.0976 7.68342 22.0976 7.29289 21.7071L3.29289 17.7071C2.90237 17.3166 2.90237 16.6834 3.29289 16.2929L7.29289 12.2929C7.68342 11.9024 8.31658 11.9024 8.70711 12.2929Z"})),f="h-5 w-5 shrink-0 fill-primary-400",m1=[{label:"I'm new to MLOps and exploring",key:"exploring",icon:e.jsx(c1,{className:f})},{label:"I'm planning or conducting a Proof of Concept",key:"planning_poc",icon:e.jsx(J,{className:f})},{label:"I'm comparing ZenML to other MLOps tools",key:"comparing_tools",icon:e.jsx(d1,{className:f})},{label:"I'm implementing ZenML in a production environment",key:"implementing_production_environment",icon:e.jsx(V,{className:f})}],h1=[{name:"Metaflow",icon:n1},{name:"Flyte",icon:C1},{name:"Prefect",icon:i1},{name:"Kedro",icon:o1},{name:"Airflow",icon:l1}];function j1({submitHandler:s}){const C=t.useRef(null),{register:l,setValue:n,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=j({resolver:M(D),defaultValues:{usageReason:""},shouldUnregister:!0}),h=r("otherTool");return t.useEffect(()=>{var a;h&&((a=C.current)==null||a.focus())},[h]),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"What best describes your current situation with ZenML?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select only one of the options"})]}),e.jsxs("form",{onSubmit:d(s),className:"w-full space-y-5 lg:w-[700px]",children:[e.jsx("ul",{className:"space-y-2",children:m1.map(({key:a,label:p,icon:i})=>e.jsxs("li",{className:"space-y-2",children:[e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":r("usageReason")===a,"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":r("usageReason")!==a}),children:[e.jsx("input",{type:"radio",...l("usageReason"),value:a,name:"usageReason",className:"h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[i,p]})]}),r("usageReason")==="comparing_tools"&&a==="comparing_tools"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Select all the tools that apply:"}),e.jsxs("ul",{className:"grid w-full grid-cols-1 gap-2 xl:grid-cols-3",children:[h1.map(({icon:c,name:o})=>e.jsx("li",{className:"",children:e.jsx(Z,{defaultValue:[],control:m,name:"comparison_tools",render:({field:{onChange:B,value:g,...v}})=>{var y,E;return e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":(y=r("comparison_tools"))==null?void 0:y.includes(o),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!((E=r("comparison_tools"))!=null&&E.includes(o))}),children:[e.jsx(u,{...v,checked:g==null?void 0:g.includes(o),onCheckedChange:N=>{B(N?[...g??[],o]:g==null?void 0:g.filter(I=>I!==o))},value:o,className:"h-3 w-3"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[e.jsx("img",{className:"h-5 w-5 shrink-0",src:c,alt:`${o} icon`}),o]})]})}})},o)),e.jsx("li",{children:e.jsxs("div",{className:w("flex h-full items-center rounded-md border bg-theme-surface-primary p-3 transition duration-150",{"border-primary-400":!!r("otherTool"),"border-theme-border-minimal hover:border-theme-border-bold":!r("otherTool")}),children:[e.jsx(u,{onCheckedChange:c=>n("otherTool",!!c),...l("otherTool",{value:!1}),className:"mr-2 h-3 w-3",id:"other"}),h?e.jsx("input",{...l("otherToolVal"),ref:c=>{l("otherToolVal").ref(c),C.current=c},placeholder:"Specify...",className:"box-border w-full border-none p-0 pr-1 placeholder:text-theme-text-tertiary focus:outline-none focus:ring-0"}):e.jsx("label",{className:"w-full text-theme-text-secondary hover:cursor-pointer",htmlFor:"other",children:"Other"})]})})]})]})]},a))}),e.jsx(A,{disabled:!x,type:"submit",className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{f1 as A,L1 as I,M1 as P,B1 as S,j1 as U};
|
1
|
+
import{j as e,r as t}from"./@radix-Cdvw4jJ8.js";import{u as Q,d as S,I as k,p as H,U as D}from"./form-schemas-dyDkAxXP.js";import{B as A,aj as U,aJ as T,ak as R,I as b,C as u,am as w,h as F,bf as J,bm as V}from"./index-BgEfQ3_G.js";import{t as M}from"./zod-XdS2h1ws.js";import{u as j,C as Z}from"./index.esm-DhJo3mA6.js";import{S as O,a as K,b as z}from"./gcp-B1I3Qvcx.js";const P="/assets/adam-e-y0WnB_.webp",Y="/assets/alex-DcCuDHPg.webp",q="/assets/baris-C0ZrZ10g.webp",W="/assets/hamza-NKKOZz1I.webp",X="/assets/stefan-B08Ftbba.webp";function B1(){const{setSurveyStep:s}=Q();function C(){window.open("https://zenml.io/slack","_blank"),s(l=>l+1)}return e.jsxs("div",{className:"max-w-[540px] space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Join The ZenML Slack Community"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Connect to our growing community and meet fellow ZenML enthusiasts, get support, and share your insights. Let's grow together!"})]}),e.jsx(_,{}),e.jsx(A,{onClick:()=>C(),className:"h-auto min-h-8 w-full justify-center py-1",intent:"primary",emphasis:"bold",size:"lg",children:"Join the ZenML Community and Continue"}),e.jsx(A,{intent:"secondary",emphasis:"minimal",onClick:()=>s(l=>l+1),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})}const G=[{name:"Adam",image:P},{name:"Hamza",image:W},{name:"Alex",image:Y},{name:"Stefan",image:X},{name:"Baris",image:q}];function _(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:G.map(s=>e.jsxs(U,{size:"lg",type:"rounded",children:[e.jsx(T,{alt:`Portrait of ${s.name}`,src:s.image}),e.jsx(R,{size:"lg",children:s.name[0]})]},s.name))}),e.jsx("p",{className:"text-center text-text-xs text-theme-text-tertiary",children:"Adam Probst, Hamza Tahir, and +1,800 others have already joined"})]})}function f1({email:s,fullName:C,submitHandler:l}){const n=t.useId(),r=t.useId(),d=t.useId(),{register:m,handleSubmit:x,control:h,watch:a,formState:{isValid:p}}=j({resolver:M(S),defaultValues:{fullName:C||"",getUpdates:!0,email:s||""}});return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Add your account details"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please, fill in your details to get started with ZenML."})]}),e.jsxs("form",{onSubmit:x(l),className:"space-y-5",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{htmlFor:n,className:"text-text-sm",children:"Name"}),e.jsx(b,{...m("fullName"),id:n,className:"w-full"})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{htmlFor:r,className:"text-text-sm",children:["Email ",!a("getUpdates")&&e.jsx(e.Fragment,{children:"(optional)"})]}),e.jsx(b,{placeholder:"example@company.inc",...m("email"),type:"email",id:r,className:"w-full"})]})]}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(Z,{control:h,name:"getUpdates",render:({field:{onChange:i,value:c}})=>e.jsx(u,{checked:c,onCheckedChange:o=>i(!!o),id:d})}),e.jsx("label",{htmlFor:d,className:"text-text-sm",children:"I want to receive news and recommendations about how to use ZenML"})]}),e.jsx(A,{disabled:!p,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})}),e.jsxs("p",{className:"text-center text-theme-text-secondary",children:["By continuing you agree to the"," ",e.jsx("a",{className:"link text-theme-text-brand",href:"https://www.zenml.io/privacy-policy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"})]})]})]})}const $=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{d:"M20.2524 6.30383C20.1382 5.93755 19.864 5.63994 19.5213 5.4568L12.5537 2.11446C12.3709 2.02289 12.1653 2 11.9826 2C11.7998 2 11.5942 2 11.4115 2.04579L4.4438 5.41102C4.10113 5.57126 3.84984 5.86887 3.75846 6.25805L2.02226 13.7898C1.95372 14.1789 2.0451 14.5681 2.27355 14.8886L7.09379 20.8636C7.36793 21.1383 7.75629 21.3215 8.14465 21.3444H15.8433C16.2545 21.3901 16.6429 21.207 16.8942 20.8636L21.7144 14.8886C21.9429 14.5681 22.0343 14.1789 21.9886 13.7898L20.2524 6.30383Z",fill:"#326DE6"}),t.createElement("path",{d:"M19.1559 13.4921C19.133 13.4921 19.133 13.4921 19.1559 13.4921C19.133 13.4464 19.0645 13.4464 19.0416 13.4464C18.9503 13.4235 18.8589 13.4235 18.7675 13.4235C18.7218 13.4235 18.6761 13.4235 18.6304 13.4006H18.6076C18.3563 13.3777 18.0822 13.3319 17.8309 13.2632C17.7623 13.2403 17.6938 13.1716 17.671 13.103C17.671 13.0801 17.6481 13.0801 17.6481 13.0801L17.4654 13.0343C17.5567 12.3704 17.5111 11.6836 17.374 11.0197C17.2141 10.3558 16.9399 9.71485 16.5744 9.14253L16.7115 9.00517V8.98228C16.7115 8.9136 16.7343 8.82203 16.78 8.77624C16.9856 8.61599 17.1912 8.45575 17.4197 8.34128C17.4654 8.31839 17.5111 8.2955 17.5567 8.2726C17.6481 8.22682 17.7167 8.18103 17.808 8.13525C17.8309 8.11235 17.8537 8.11235 17.8766 8.08946C17.8994 8.06657 17.8994 8.06657 17.8994 8.06657C18.105 7.90632 18.1507 7.63161 17.9908 7.42557C17.9223 7.334 17.7852 7.26532 17.671 7.26532C17.5567 7.26532 17.4425 7.31111 17.3511 7.37979L17.3283 7.40268C17.3054 7.42557 17.2826 7.44847 17.2598 7.44847C17.1912 7.51714 17.1227 7.58582 17.077 7.6545C17.0542 7.70029 17.0085 7.72318 16.9856 7.74607C16.8029 7.92921 16.6201 8.11235 16.4145 8.24971C16.3688 8.2726 16.3231 8.2955 16.2774 8.2955C16.2546 8.2955 16.2089 8.2955 16.1861 8.2726L16.0033 8.40996C15.8205 8.22682 15.6149 8.04368 15.4322 7.86054C14.5869 7.19665 13.5361 6.78458 12.4624 6.67011L12.4395 6.48697L12.4167 6.46408C12.3481 6.41829 12.3253 6.34962 12.3024 6.28094C12.3024 6.02912 12.3024 5.7773 12.3481 5.50258V5.47969C12.3481 5.43391 12.371 5.38812 12.371 5.34234C12.3938 5.25076 12.3938 5.15919 12.4167 5.06762V4.93027C12.4395 4.70134 12.2568 4.47241 12.0283 4.47241C11.8912 4.47241 11.7542 4.5182 11.6628 4.60977C11.5714 4.70134 11.5257 4.8158 11.5257 4.93027V5.04473C11.5257 5.1363 11.5486 5.22787 11.5714 5.31944C11.5943 5.36523 11.5943 5.41101 11.5943 5.4568V5.47969C11.6399 5.73151 11.6399 5.98333 11.6399 6.25804C11.6171 6.32672 11.5943 6.3954 11.5257 6.44119L11.5029 6.46408L11.48 6.64722C11.2287 6.67011 10.9774 6.7159 10.7033 6.76168C9.62961 6.99061 8.64728 7.56293 7.89341 8.36417L7.75634 8.2726H7.73349C7.71065 8.2726 7.68781 8.2955 7.64212 8.2955C7.59643 8.2955 7.52789 8.2726 7.50505 8.24971C7.29944 8.08946 7.11669 7.90632 6.93393 7.72318C6.91108 7.67739 6.86539 7.6545 6.84255 7.63161C6.77401 7.56293 6.72833 7.49425 6.65979 7.42557C6.63695 7.40268 6.6141 7.40268 6.59126 7.37979C6.56841 7.3569 6.56841 7.35689 6.56841 7.35689C6.47703 7.28822 6.36281 7.24243 6.24859 7.24243C6.11152 7.24243 5.99729 7.28822 5.90591 7.40268C5.76885 7.60872 5.81454 7.88343 5.99729 8.04368C6.02014 8.04368 6.02014 8.06657 6.02014 8.06657C6.02014 8.06657 6.06583 8.11236 6.08867 8.11236C6.15721 8.15814 6.24859 8.20393 6.33996 8.24971C6.38565 8.2726 6.43134 8.2955 6.47703 8.31839C6.70548 8.45575 6.91108 8.5931 7.11669 8.75335C7.16238 8.79914 7.20807 8.89071 7.18522 8.95939V8.98228L7.32229 9.11963C7.29944 9.16542 7.2766 9.18831 7.25375 9.2341C6.54557 10.3558 6.27143 11.6836 6.47703 12.9885L6.29427 13.0343C6.29427 13.0572 6.27143 13.0572 6.27143 13.0572C6.24859 13.1259 6.18005 13.1716 6.11152 13.2174C5.86022 13.2861 5.60893 13.3319 5.3348 13.3548H5.31195C5.26626 13.3548 5.22057 13.3548 5.17488 13.3777C5.0835 13.3777 4.99212 13.4006 4.90074 13.4006C4.8779 13.4006 4.85506 13.4235 4.80937 13.4235C4.78652 13.4235 4.78652 13.4235 4.76368 13.4464C4.51238 13.4921 4.35247 13.7211 4.39816 13.9729C4.44385 14.1789 4.64945 14.3163 4.85506 14.2934C4.90074 14.2934 4.92359 14.2934 4.96928 14.2705C4.99212 14.2705 4.99212 14.2705 4.99212 14.2476C4.99212 14.2247 5.03781 14.2247 5.0835 14.2247C5.17488 14.2018 5.26626 14.156 5.3348 14.1331C5.38048 14.1102 5.42617 14.0874 5.47186 14.0874H5.49471C5.72316 13.9958 5.97445 13.9271 6.22574 13.8813H6.24859C6.31712 13.8813 6.38565 13.9042 6.43134 13.95C6.45419 13.95 6.45419 13.9729 6.45419 13.9729L6.65979 13.95C7.00246 15.0031 7.64212 15.9417 8.53306 16.6284C8.73866 16.7887 8.92142 16.9261 9.14987 17.0405L9.05849 17.2237C9.05849 17.2466 9.08134 17.2466 9.08134 17.2466C9.12703 17.3152 9.12703 17.4068 9.10418 17.4755C9.0128 17.7044 8.87573 17.9333 8.73866 18.1394V18.1623C8.71582 18.208 8.69297 18.2309 8.64729 18.2767C8.6016 18.3225 8.55591 18.4141 8.48737 18.5057C8.46453 18.5285 8.46453 18.5514 8.44168 18.5743C8.44168 18.5743 8.44168 18.5972 8.41884 18.5972C8.30461 18.8261 8.39599 19.1009 8.6016 19.2153C8.64728 19.2382 8.71582 19.2611 8.78435 19.2611C8.96711 19.2611 9.12703 19.1466 9.2184 18.9864C9.2184 18.9864 9.2184 18.9635 9.24125 18.9635C9.24125 18.9406 9.26409 18.9177 9.28694 18.8948C9.30978 18.8033 9.35547 18.7346 9.37832 18.643L9.42401 18.5057C9.49254 18.2538 9.60676 18.0249 9.72099 17.796C9.76668 17.7273 9.83521 17.6815 9.90375 17.6586C9.92659 17.6586 9.92659 17.6586 9.92659 17.6357L10.018 17.4526C10.6576 17.7044 11.3201 17.8189 12.0055 17.8189C12.4167 17.8189 12.8279 17.7731 13.2391 17.6815C13.4904 17.6357 13.7417 17.5442 13.9701 17.4755L14.0615 17.6357C14.0843 17.6357 14.0843 17.6357 14.0843 17.6586C14.1529 17.6815 14.2214 17.7273 14.2671 17.796C14.3813 18.0249 14.4727 18.2538 14.5641 18.4828V18.5057L14.6098 18.643C14.6326 18.7346 14.6555 18.8261 14.7011 18.8948C14.724 18.9177 14.724 18.9406 14.7468 18.9635C14.7468 18.9635 14.7468 18.9864 14.7697 18.9864C14.8611 19.1466 15.021 19.2611 15.2037 19.2611C15.2723 19.2611 15.318 19.2382 15.3865 19.2153C15.4779 19.1695 15.5692 19.078 15.5921 18.9635C15.6149 18.849 15.6149 18.7117 15.5692 18.5972C15.5692 18.5743 15.5464 18.5743 15.5464 18.5743C15.5464 18.5514 15.5236 18.5285 15.5007 18.5057C15.455 18.4141 15.4093 18.3454 15.3408 18.2767C15.318 18.2309 15.2951 18.208 15.2494 18.1623V18.1394C15.0895 17.9333 14.9753 17.7044 14.8839 17.4755C14.8611 17.4068 14.8611 17.3152 14.9067 17.2466C14.9067 17.2237 14.9296 17.2237 14.9296 17.2237L14.8611 17.0405C16.049 16.3308 16.9171 15.232 17.3511 13.9271L17.5339 13.95C17.5567 13.95 17.5567 13.9271 17.5567 13.9271C17.6024 13.8813 17.671 13.8584 17.7395 13.8584H17.7623C18.0136 13.9042 18.2649 13.9729 18.4934 14.0645H18.5162C18.5619 14.0874 18.6076 14.1102 18.6533 14.1102C18.7447 14.156 18.8132 14.1789 18.9046 14.2018C18.9274 14.2018 18.9503 14.2247 18.996 14.2247C19.0188 14.2247 19.0188 14.2247 19.0416 14.2476C19.0873 14.2705 19.1102 14.2705 19.1559 14.2705C19.3615 14.2705 19.5442 14.1331 19.6128 13.95C19.5442 13.7211 19.3843 13.5379 19.1559 13.4921ZM12.5766 12.7825L11.9598 13.0801L11.343 12.7825L11.1602 12.1186L11.5943 11.5692H12.3024L12.7365 12.1186L12.5766 12.7825ZM16.3003 11.2944C16.4145 11.7752 16.4373 12.2559 16.3917 12.7367L14.2214 12.1186C14.0158 12.0728 13.9016 11.8668 13.9473 11.6607C13.9701 11.592 13.993 11.5463 14.0386 11.5005L15.752 9.94377C16.0033 10.3558 16.1861 10.8137 16.3003 11.2944ZM15.0667 9.09674L13.2162 10.4245C13.0563 10.5161 12.8279 10.4932 12.7137 10.3329C12.668 10.2872 12.6451 10.2414 12.6451 10.1727L12.508 7.86054C13.4675 7.975 14.3813 8.40996 15.0667 9.09674ZM10.9318 7.92921L11.3887 7.83764L11.2516 10.1269C11.2516 10.3329 11.0688 10.4932 10.8632 10.4932C10.7947 10.4932 10.749 10.4703 10.6805 10.4474L8.83004 9.09674C9.40116 8.52442 10.1322 8.11235 10.9318 7.92921ZM8.1447 9.94377L9.83521 11.4547C9.99513 11.592 10.018 11.821 9.8809 11.9812C9.83521 12.0499 9.78952 12.0728 9.69814 12.0957L7.50505 12.7367C7.41367 11.7752 7.64212 10.7908 8.1447 9.94377ZM7.75634 13.8126L10.018 13.4235C10.2007 13.4235 10.3835 13.5379 10.4063 13.7211C10.4292 13.7898 10.4292 13.8813 10.3835 13.95L9.51539 16.0561C8.71582 15.5296 8.07617 14.7284 7.75634 13.8126ZM12.9421 16.6513C12.6223 16.72 12.2796 16.7658 11.9369 16.7658C11.4572 16.7658 10.9546 16.6742 10.4977 16.5369L11.6171 14.4994C11.7313 14.3621 11.9141 14.3163 12.074 14.4079C12.1425 14.4536 12.1882 14.4994 12.2568 14.5681L13.3533 16.5598C13.2391 16.5827 13.102 16.6056 12.9421 16.6513ZM15.7292 14.6597C15.3865 15.2091 14.9067 15.6898 14.3585 16.0332L13.4675 13.9042C13.4218 13.7211 13.4904 13.5379 13.6731 13.4464C13.7417 13.4235 13.8102 13.4006 13.8787 13.4006L16.1632 13.7898C16.049 14.1102 15.9119 14.4079 15.7292 14.6597Z",fill:"white"})),e1=s=>t.createElement("svg",{viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{d:"M21.9999 8.18613C21.7761 7.72384 21.5171 7.2777 21.2166 6.85693L18.006 8.02537C18.3794 8.40751 18.6931 8.83704 18.9496 9.29639L21.9999 8.18613ZM7.80775 11.7372L4.59619 12.9056C4.63724 13.4206 4.72618 13.9294 4.85077 14.4278L7.90158 13.317C7.80236 12.801 7.76717 12.2693 7.80775 11.7372Z",fill:"#C22133"}),t.createElement("path",{d:"M14.9352 7.27651C15.6032 7.58829 16.1818 8.01343 16.67 8.51188L19.8806 7.34348C18.9912 6.09541 17.7798 5.05258 16.2957 4.36011C11.7056 2.21972 6.22948 4.21253 4.0896 8.80215C3.39666 10.2873 3.13911 11.8647 3.2603 13.3923L6.4714 12.2238C6.52464 11.528 6.69423 10.8307 7.0055 10.1622C8.3963 7.18027 11.9533 5.8863 14.9352 7.27651ZM18.3597 13.1438C18.3084 13.8392 18.1329 14.5365 17.8207 15.2055C16.4304 18.1879 12.8729 19.4819 9.89149 18.0916C9.22247 17.7793 8.6395 17.3576 8.15325 16.8582L4.94904 18.0242C5.83647 19.2722 7.04643 20.3155 8.53149 21.0085C13.1216 23.1484 18.5967 21.1556 20.7371 16.5655C21.4305 15.0814 21.6861 13.5039 21.5639 11.9778L18.3597 13.1438Z",fill:"#DB212E"}),t.createElement("path",{d:"M19.1492 9.22388L16.0983 10.3341C16.6652 11.3496 16.933 12.5185 16.845 13.6943L20.0493 12.5288C19.9575 11.3807 19.6523 10.2599 19.1492 9.22388ZM5.05081 14.3546L2 15.4658C2.28133 16.5824 2.76785 17.637 3.43475 18.5757L6.63849 17.4093C5.81607 16.5648 5.26923 15.4961 5.05081 14.3546Z",fill:"#EB2126"}),t.createElement("path",{d:"M21.535 7.34025C21.4338 7.17606 21.3288 7.01429 21.2169 6.85693L18.0063 8.02537C18.1475 8.17002 18.2775 8.32346 18.4016 8.48082L21.535 7.34025ZM7.79556 12.382C7.78742 12.167 7.79149 11.9518 7.80775 11.7374L4.59619 12.9058C4.61281 13.1115 4.63869 13.3158 4.66949 13.5196L7.79556 12.382Z",fill:"#AD213B"}),t.createElement("path",{d:"M21.5637 11.9778L18.3594 13.1438C18.3257 13.6051 18.2358 14.0674 18.0887 14.5218L21.5764 13.2503C21.6015 12.8263 21.5972 12.4012 21.5637 11.9778ZM4.94922 18.0246C5.19771 18.374 5.47059 18.7053 5.76581 19.0162L9.25396 17.7441C8.84641 17.489 8.47795 17.1915 8.15296 16.8582L4.94922 18.0246Z",fill:"#BA2133"})),s1=[{name:"GCP",icon:e.jsx(O,{className:"h-5 w-5 shrink-0"})},{name:"AWS",icon:e.jsx(K,{className:"h-5 w-5 shrink-0"})},{name:"Azure",icon:e.jsx(z,{className:"h-5 w-5 shrink-0"})},{name:"Native Kubernetes",icon:e.jsx($,{className:"h-5 w-5 shrink-0"})},{name:"Openshift",icon:e.jsx(e1,{className:"h-5 w-5 shrink-0"})}];function L1({submitHandler:s}){const C=t.useRef(null),{register:l,setValue:n,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=j({resolver:M(k),defaultValues:{providers:[]},shouldUnregister:!0}),h=r("other");return t.useEffect(()=>{var a;h&&((a=C.current)==null||a.focus())},[h]),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"What is your current infrastructure?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select all the applicable options"})]}),e.jsxs("form",{onSubmit:d(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid w-full grid-cols-1 gap-[20px] md:grid-cols-2 lg:min-w-[700px]",children:[e.jsx(Z,{control:m,name:"providers",render:({field:{onChange:a,value:p}})=>e.jsx(e.Fragment,{children:s1.map((i,c)=>e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":r("providers").includes(i.name),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!r("providers").includes(i.name)}),children:[e.jsx(u,{onCheckedChange:o=>{a(o?[...p,i.name]:p.filter(B=>B!==i.name))},value:i.name,className:"h-3 w-3"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[i.icon,i.name]})]},c))})}),e.jsxs("div",{className:w("flex items-center rounded-md border bg-theme-surface-primary p-3 transition duration-150",{"border-primary-400":!!r("other"),"border-theme-border-minimal hover:border-theme-border-bold":!r("other")}),children:[e.jsx(u,{onCheckedChange:a=>n("other",!!a),...l("other",{value:!1}),className:"mr-2 h-3 w-3",id:"other"}),h?e.jsx("input",{...l("otherVal"),ref:a=>{l("otherVal").ref(a),C.current=a},placeholder:"Specify...",className:"w-full border-none p-0 pr-2 placeholder:text-theme-text-tertiary focus:outline-none focus:ring-0"}):e.jsx("label",{className:"w-full text-theme-text-secondary hover:cursor-pointer",htmlFor:"other",children:"Other"})]})]}),e.jsx(A,{disabled:!x,type:"submit",className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})}),e.jsx(A,{intent:"secondary",emphasis:"minimal",onClick:()=>s({providers:["local"],other:!1}),className:"mx-auto justify-center text-neutral-500",size:"sm",children:"Skip this step"})]})]})}const t1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16146 2H9.83854C10.3657 1.99998 10.8205 1.99997 11.195 2.03057C11.5904 2.06287 11.9836 2.13419 12.362 2.32698C12.9265 2.6146 13.3854 3.07354 13.673 3.63803C13.8658 4.01641 13.9371 4.40963 13.9694 4.80497C14 5.17955 14 5.63432 14 6.16148V10L17.8385 10C18.3657 9.99998 18.8205 9.99997 19.195 10.0306C19.5904 10.0629 19.9836 10.1342 20.362 10.327C20.9265 10.6146 21.3854 11.0735 21.673 11.638C21.8658 12.0164 21.9371 12.4096 21.9694 12.805C22 13.1795 22 13.6343 22 14.1614V20C22.5523 20 23 20.4477 23 21C23 21.5523 22.5523 22 22 22H2C1.44772 22 1 21.5523 1 21C1 20.4477 1.44772 20 2 20V6.16146C1.99998 5.63431 1.99997 5.17955 2.03057 4.80497C2.06287 4.40963 2.13419 4.01641 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.01641 2.13419 4.40963 2.06287 4.80497 2.03057C5.17954 1.99997 5.63431 1.99998 6.16146 2ZM4 20H12V6.2C12 5.62345 11.9992 5.25118 11.9761 4.96784C11.9539 4.69617 11.9162 4.59546 11.891 4.54601C11.7951 4.35785 11.6422 4.20487 11.454 4.109C11.4045 4.0838 11.3038 4.04612 11.0322 4.02393C10.7488 4.00078 10.3766 4 9.8 4H6.2C5.62345 4 5.25117 4.00078 4.96784 4.02393C4.69617 4.04612 4.59545 4.0838 4.54601 4.109C4.35785 4.20487 4.20487 4.35785 4.10899 4.54601C4.0838 4.59546 4.04612 4.69617 4.02393 4.96784C4.00078 5.25117 4 5.62345 4 6.2V20ZM14 12V20H20V14.2C20 13.6234 19.9992 13.2512 19.9761 12.9678C19.9539 12.6962 19.9162 12.5955 19.891 12.546C19.7951 12.3578 19.6422 12.2049 19.454 12.109C19.4045 12.0838 19.3038 12.0461 19.0322 12.0239C18.7488 12.0008 18.3766 12 17.8 12H14ZM5.5 7C5.5 6.44772 5.94772 6 6.5 6H9.5C10.0523 6 10.5 6.44772 10.5 7C10.5 7.55229 10.0523 8 9.5 8H6.5C5.94772 8 5.5 7.55229 5.5 7ZM5.5 11C5.5 10.4477 5.94772 10 6.5 10H9.5C10.0523 10 10.5 10.4477 10.5 11C10.5 11.5523 10.0523 12 9.5 12H6.5C5.94772 12 5.5 11.5523 5.5 11ZM5.5 15C5.5 14.4477 5.94772 14 6.5 14H9.5C10.0523 14 10.5 14.4477 10.5 15C10.5 15.5523 10.0523 16 9.5 16H6.5C5.94772 16 5.5 15.5523 5.5 15Z"})),r1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8026 4.52039L11.8026 4.52039L11.8026 4.52039ZM12 4.61798L19.7639 8.49994L19.5721 8.59583C19.5596 8.6018 19.5471 8.60803 19.5348 8.6145L17 9.88191L12.4472 7.60552C11.9532 7.35853 11.3526 7.55875 11.1056 8.05273C10.8586 8.54671 11.0588 9.14738 11.5528 9.39437L14.7639 10.9999L12 12.3819L4.4652 8.61451C4.4529 8.60803 4.44044 8.6018 4.42784 8.59583L4.23607 8.49994L12 4.61798ZM3 10.118L1.55279 9.39437C1.214 9.22498 1 8.87872 1 8.49994C1 8.12117 1.214 7.77491 1.55279 7.60552L11.195 2.7844C11.2024 2.7807 11.211 2.77633 11.2206 2.77143C11.3139 2.72382 11.507 2.62529 11.7234 2.58468C11.9062 2.55039 12.0938 2.55039 12.2766 2.58468C12.493 2.62529 12.6861 2.72382 12.7794 2.77143C12.789 2.77633 12.7976 2.7807 12.805 2.7844L22.4472 7.60552C22.786 7.77491 23 8.12117 23 8.49994C23 8.87872 22.786 9.22498 22.4472 9.39437L21 10.118V16.3066C21 16.332 21.0001 16.3582 21.0002 16.3851C21.0013 16.6707 21.0027 17.0296 20.884 17.3629C20.7814 17.6508 20.6142 17.9113 20.3952 18.1245C20.1417 18.3713 19.8149 18.5196 19.5548 18.6376C19.5303 18.6487 19.5065 18.6595 19.4833 18.6701L13.0833 21.6035C13.0667 21.6111 13.0496 21.619 13.0321 21.6271C12.8423 21.7147 12.6034 21.8251 12.3421 21.8704C12.1157 21.9097 11.8843 21.9097 11.6579 21.8704C11.3966 21.8251 11.1577 21.7147 10.9679 21.6271C10.9504 21.619 10.9333 21.6111 10.9167 21.6035L4.5167 18.6701L4.93335 17.7611L4.51669 18.6701C4.49354 18.6595 4.46967 18.6487 4.44522 18.6376C4.1851 18.5196 3.85826 18.3713 3.60476 18.1245C3.3858 17.9113 3.21862 17.6508 3.11604 17.3629C2.99727 17.0296 2.99867 16.6707 2.99979 16.3851C2.9999 16.3582 3 16.332 3 16.3066V10.118ZM5 11.118V16.3066C5 16.505 5.00047 16.6074 5.00521 16.6814C5.00536 16.6837 5.0055 16.6859 5.00565 16.688C5.00747 16.6889 5.00938 16.69 5.01138 16.6911C5.07675 16.7262 5.16965 16.7693 5.35001 16.852L11.75 19.7853C11.8813 19.8455 11.9473 19.8754 11.9962 19.895C11.9975 19.8955 11.9988 19.896 12 19.8965C12.0012 19.896 12.0025 19.8955 12.0038 19.895C12.0527 19.8754 12.1187 19.8455 12.25 19.7853L18.65 16.852C18.8304 16.7693 18.9233 16.7262 18.9886 16.6911C18.9906 16.69 18.9925 16.6889 18.9944 16.688C18.9945 16.6859 18.9946 16.6837 18.9948 16.6814C18.9995 16.6074 19 16.505 19 16.3066V11.118L18 11.618V14.4999C18 15.0522 17.5523 15.4999 17 15.4999C16.4477 15.4999 16 15.0522 16 14.4999V12.618L12.805 14.2155C12.7976 14.2192 12.789 14.2236 12.7794 14.2285C12.6861 14.2761 12.493 14.3746 12.2766 14.4152C12.0938 14.4495 11.9062 14.4495 11.7234 14.4152C11.507 14.3746 11.3139 14.2761 11.2206 14.2285C11.211 14.2236 11.2024 14.2192 11.195 14.2155L5 11.118ZM11.8026 12.4795C11.8024 12.4796 11.8024 12.4796 11.8026 12.4795L11.8026 12.4795ZM12.1974 12.4795C12.1976 12.4796 12.1976 12.4796 12.1974 12.4795L12.1974 12.4795ZM12.1974 4.52039L12.1974 4.52039L12.1974 4.52039Z"})),a1=s=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C10.067 4 8.50002 5.567 8.50002 7.5C8.50002 9.433 10.067 11 12 11C13.933 11 15.5 9.433 15.5 7.5C15.5 5.567 13.933 4 12 4ZM6.50002 7.5C6.50002 4.46243 8.96246 2 12 2C15.0376 2 17.5 4.46243 17.5 7.5C17.5 10.5376 15.0376 13 12 13C8.96246 13 6.50002 10.5376 6.50002 7.5ZM9.32629 14.5C9.38335 14.5 9.44125 14.5 9.50003 14.5H14.5C14.5588 14.5 14.6167 14.5 14.6738 14.5C15.901 14.4995 16.739 14.4992 17.4514 14.7153C19.0495 15.2 20.3 16.4506 20.7847 18.0486C21.0008 18.761 21.0005 19.599 21.0001 20.8263C21 20.8833 21 20.9412 21 21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21C19 19.5317 18.9892 19.0192 18.8708 18.6291C18.58 17.6703 17.8297 16.92 16.8709 16.6292C16.4808 16.5108 15.9683 16.5 14.5 16.5H9.50003C8.03171 16.5 7.51923 16.5108 7.12917 16.6292C6.17036 16.92 5.42005 17.6703 5.1292 18.6291C5.01088 19.0192 5.00002 19.5317 5.00002 21C5.00002 21.5523 4.55231 22 4.00002 22C3.44774 22 3.00002 21.5523 3.00002 21C3.00002 20.9412 3 20.8833 2.99998 20.8263C2.99953 19.599 2.99922 18.761 3.21532 18.0486C3.70007 16.4506 4.95059 15.2 6.54859 14.7153C7.261 14.4992 8.09902 14.4995 9.32629 14.5Z"})),L=t.forwardRef(({children:s,className:C,id:l,...n},r)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:l,...n,ref:r,className:F("peer sr-only",C),type:"radio"}),e.jsx("label",{htmlFor:l,className:"flex h-full w-full flex-col items-center justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary transition-all duration-150 hover:cursor-pointer hover:border-theme-border-bold hover:shadow-sm peer-checked:border-primary-400 peer-checked:bg-primary-25 peer-checked:shadow-sm peer-focus-visible:border-primary-100",children:s})]}));L.displayName="UseRadioButton";function M1({submitHandler:s,user:C}){var d,m;const{handleSubmit:l,register:n,formState:{isValid:r}}=j({defaultValues:{primaryUse:(m=(d=C==null?void 0:C.metadata)==null?void 0:d.user_metadata)==null?void 0:m.primary_use},resolver:M(H)});return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"What will be your primary use for ZenML?"})}),e.jsxs("form",{onSubmit:l(s),className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-[20px] md:grid-cols-3",children:[e.jsxs(L,{id:"use-personal",...n("primaryUse"),value:"personal",children:[e.jsx(a1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Personal"})]}),e.jsxs(L,{...n("primaryUse"),id:"use-work",value:"work",children:[e.jsx(t1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Work"})]}),e.jsxs(L,{...n("primaryUse"),id:"use-student",value:"student",children:[e.jsx(r1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Student"})]})]}),e.jsx(A,{disabled:!r,className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}const l1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.82253%2022.4201L12.3982%2012.6043C12.4582%2012.5428%2012.4697%2012.4478%2012.4196%2012.3779C11.8371%2011.5648%2010.7629%2011.4239%2010.3647%2010.8777C9.18504%209.25951%208.88573%208.34364%208.37885%208.40044C8.34344%208.40442%208.31187%208.42347%208.28699%208.44897L4.82777%2011.9949C2.83774%2014.0348%202.55236%2018.5262%202.50002%2022.2871C2.49766%2022.457%202.70384%2022.5417%202.82253%2022.4201Z'%20fill='%23017CEE'%20/%3e%3cpath%20d='M22.4202%2022.1774L12.6044%2012.6017C12.543%2012.5418%2012.4479%2012.5302%2012.3781%2012.5803C11.565%2013.1628%2011.424%2014.237%2010.8778%2014.6353C9.25964%2015.8148%208.34376%2016.1142%208.40057%2016.6211C8.40454%2016.6565%208.42359%2016.6881%208.4491%2016.7129L11.9951%2020.1721C14.035%2022.1622%2018.5264%2022.4475%2022.2872%2022.4998C22.4571%2022.5023%2022.5418%2022.2961%2022.4202%2022.1774Z'%20fill='%2300AD46'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9954%2020.1722C10.8811%2019.0852%2010.3641%2016.9347%2012.5003%2012.5C9.02851%2014.0515%207.81187%2016.0911%208.41038%2016.675L11.9954%2020.1722Z'%20fill='%2304D659'%20/%3e%3cpath%20d='M22.1775%202.57985L12.6019%2012.3956C12.5419%2012.4571%2012.5304%2012.5521%2012.5804%2012.622C13.1629%2013.4351%2014.2372%2013.576%2014.6353%2014.1223C15.815%2015.7404%2016.1143%2016.6562%2016.6211%2016.5995C16.6565%2016.5955%2016.6881%2016.5764%2016.713%2016.5509L20.1722%2013.005C22.1623%2010.965%2022.4477%206.4737%2022.5%202.71283C22.5023%202.54288%2022.2962%202.45819%2022.1775%202.57985Z'%20fill='%2300C7D4'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.1726%2013.005C19.0855%2014.1192%2016.935%2014.6363%2012.5002%2012.5C14.0518%2015.9718%2016.0913%2017.1885%2016.6752%2016.5899L20.1726%2013.005Z'%20fill='%2311E1EE'%20/%3e%3cpath%20d='M2.57973%202.82253L12.3955%2012.3982C12.457%2012.4581%2012.552%2012.4697%2012.6219%2012.4196C13.4349%2011.8371%2013.5759%2010.7629%2014.1221%2010.3647C15.7403%209.18504%2016.6562%208.88574%2016.5993%208.37885C16.5954%208.34344%2016.5763%208.31187%2016.5509%208.28699L13.0049%204.82777C10.9649%202.83774%206.47358%202.55236%202.71271%202.50002C2.54276%202.49765%202.45807%202.70384%202.57973%202.82253Z'%20fill='%23E43921'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.0052%204.82764C14.1195%205.91469%2014.6365%208.06516%2012.5002%2012.4999C15.972%2010.9484%2017.1888%208.90882%2016.5902%208.32495L13.0052%204.82764Z'%20fill='%23FF7557'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.828%2011.9953C5.91505%2010.881%208.06553%2010.364%2012.5003%2012.5002C10.9487%209.02839%208.90919%207.81175%208.32532%208.41025L4.828%2011.9953Z'%20fill='%230CB6FF'%20/%3e%3cpath%20d='M12.507%2012.9272C12.7434%2012.9242%2012.9328%2012.7302%2012.9298%2012.4937C12.9269%2012.2573%2012.7328%2012.0679%2012.4964%2012.0709C12.2599%2012.0738%2012.0706%2012.2679%2012.0735%2012.5043C12.0765%2012.7408%2012.2705%2012.9301%2012.507%2012.9272Z'%20fill='%234A4848'%20/%3e%3c/svg%3e",C1="/assets/flyte-Cj-xy_8I.svg",o1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='2.5'%20y='2.5'%20width='20'%20height='20'%20fill='url(%23pattern0_6205_839)'%20/%3e%3cdefs%3e%3cpattern%20id='pattern0_6205_839'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_6205_839'%20transform='scale(0.005)'%20/%3e%3c/pattern%3e%3cimage%20id='image0_6205_839'%20width='200'%20height='200'%20xlink:href='data:image/png;base64,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'%20/%3e%3c/defs%3e%3c/svg%3e",n1="/assets/metaflow-weOkWNyT.svg",i1="data:image/svg+xml,%3csvg%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20x='2.5'%20y='2.5'%20width='20'%20height='20'%20fill='url(%23pattern0_6205_1180)'%20/%3e%3cdefs%3e%3cpattern%20id='pattern0_6205_1180'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_6205_1180'%20transform='scale(0.00416667)'%20/%3e%3c/pattern%3e%3cimage%20id='image0_6205_1180'%20width='240'%20height='240'%20xlink:href='data:image/png;base64,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'%20/%3e%3c/defs%3e%3c/svg%3e",c1=s=>t.createElement("svg",{viewBox:"0 0 24 25",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 1.5C15.4138 1.5 15.7848 1.75483 15.9333 2.14102L17.112 5.20544C17.4124 5.98648 17.5068 6.21155 17.6359 6.39315C17.7655 6.57535 17.9246 6.73455 18.1069 6.86411C18.2884 6.99323 18.5135 7.08763 19.2946 7.38803L22.359 8.56665C22.7452 8.71519 23 9.08623 23 9.5C23 9.91377 22.7452 10.2848 22.359 10.4333L19.2946 11.612C18.5135 11.9124 18.2884 12.0068 18.1069 12.1359C17.9246 12.2654 17.7655 12.4246 17.6359 12.6069C17.5068 12.7884 17.4124 13.0135 17.112 13.7946L15.9333 16.859C15.7848 17.2452 15.4138 17.5 15 17.5C14.5862 17.5 14.2152 17.2452 14.0667 16.859L12.888 13.7946C12.5876 13.0135 12.4932 12.7884 12.3641 12.6069C12.2345 12.4246 12.0754 12.2654 11.8931 12.1359C11.7116 12.0068 11.4865 11.9124 10.7054 11.612L7.64102 10.4333C7.25483 10.2848 7 9.91377 7 9.5C7 9.08623 7.25483 8.71519 7.64102 8.56665L10.7054 7.38803C11.4865 7.08763 11.7116 6.99323 11.8931 6.86411C12.0754 6.73455 12.2345 6.57535 12.3641 6.39315C12.4932 6.21155 12.5876 5.98648 12.888 5.20544L14.0667 2.14102C14.2152 1.75483 14.5862 1.5 15 1.5ZM15 5.28568L14.7547 5.9234C14.7415 5.95787 14.7284 5.99189 14.7155 6.02548C14.4719 6.65974 14.2879 7.13886 13.9941 7.55214C13.7349 7.91655 13.4166 8.23494 13.0521 8.49406C12.6389 8.78793 12.1597 8.97192 11.5255 9.2155C11.4919 9.2284 11.4579 9.24147 11.4234 9.25472L10.7857 9.5L11.4234 9.74528C11.4579 9.75854 11.4919 9.7716 11.5255 9.7845C12.1597 10.0281 12.6389 10.2121 13.0521 10.5059C13.4166 10.7651 13.7349 11.0834 13.9941 11.4479C14.2879 11.8611 14.4719 12.3403 14.7155 12.9745C14.7284 13.0081 14.7415 13.0421 14.7547 13.0766L15 13.7143L15.2453 13.0766C15.2585 13.0421 15.2716 13.0081 15.2845 12.9745C15.5281 12.3403 15.7121 11.8611 16.0059 11.4479C16.2651 11.0834 16.5834 10.7651 16.9479 10.5059C17.3611 10.2121 17.8403 10.0281 18.4745 9.7845C18.5081 9.7716 18.5421 9.75854 18.5766 9.74528L19.2143 9.5L18.5766 9.25472C18.5421 9.24146 18.5081 9.2284 18.4745 9.2155C17.8403 8.97192 17.3611 8.78793 16.9479 8.49406C16.5834 8.23494 16.2651 7.91655 16.0059 7.55214C15.7121 7.13886 15.5281 6.65974 15.2845 6.02548C15.2716 5.99189 15.2585 5.95787 15.2453 5.9234L15 5.28568ZM6.5 12.5C6.87877 12.5 7.22503 12.714 7.39443 13.0528L8.17889 14.6217C8.46137 15.1867 8.54745 15.3493 8.65204 15.4849C8.75695 15.621 8.87896 15.7431 9.01506 15.848C9.15075 15.9525 9.31333 16.0386 9.8783 16.3211L11.4472 17.1056C11.786 17.275 12 17.6212 12 18C12 18.3788 11.786 18.725 11.4472 18.8944L9.8783 19.6789C9.31333 19.9614 9.15075 20.0475 9.01506 20.152C8.87896 20.257 8.75695 20.379 8.65204 20.5151C8.54745 20.6507 8.46137 20.8133 8.17889 21.3783L7.39443 22.9472C7.22504 23.286 6.87877 23.5 6.5 23.5C6.12123 23.5 5.77497 23.286 5.60557 22.9472L4.82111 21.3783C4.53863 20.8133 4.45255 20.6507 4.34796 20.5151C4.24305 20.379 4.12104 20.257 3.98494 20.152C3.84925 20.0475 3.68667 19.9614 3.1217 19.6789L1.55279 18.8944C1.214 18.725 1 18.3788 1 18C1 17.6212 1.214 17.275 1.55279 17.1056L3.1217 16.3211C3.68667 16.0386 3.84925 15.9526 3.98494 15.848C4.12104 15.7431 4.24305 15.621 4.34796 15.4849C4.45255 15.3493 4.53863 15.1867 4.82111 14.6217L5.60557 13.0528C5.77496 12.714 6.12123 12.5 6.5 12.5ZM6.5 15.736C6.30478 16.1251 6.14371 16.4313 5.93198 16.706C5.72217 16.9781 5.47815 17.2222 5.20595 17.432C4.93128 17.6437 4.62509 17.8048 4.23604 18C4.62509 18.1952 4.93128 18.3563 5.20595 18.568C5.47814 18.7778 5.72217 19.0219 5.93198 19.294C6.14371 19.5687 6.30478 19.8749 6.5 20.264C6.69522 19.8749 6.85629 19.5687 7.06802 19.294C7.27784 19.0219 7.52186 18.7778 7.79405 18.568C8.06872 18.3563 8.37491 18.1952 8.76396 18C8.37491 17.8048 8.06872 17.6437 7.79405 17.432C7.52185 17.2222 7.27783 16.9781 7.06802 16.706C6.85629 16.4313 6.69522 16.1251 6.5 15.736Z"})),d1=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:"M15.2929 2.29289C15.6834 1.90237 16.3166 1.90237 16.7071 2.29289L20.7071 6.29289C21.0976 6.68342 21.0976 7.31658 20.7071 7.70711L16.7071 11.7071C16.3166 12.0976 15.6834 12.0976 15.2929 11.7071C14.9024 11.3166 14.9024 10.6834 15.2929 10.2929L17.5858 8H4C3.44772 8 3 7.55228 3 7C3 6.44772 3.44772 6 4 6H17.5858L15.2929 3.70711C14.9024 3.31658 14.9024 2.68342 15.2929 2.29289ZM8.70711 12.2929C9.09763 12.6834 9.09763 13.3166 8.70711 13.7071L6.41421 16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H6.41421L8.70711 20.2929C9.09763 20.6834 9.09763 21.3166 8.70711 21.7071C8.31658 22.0976 7.68342 22.0976 7.29289 21.7071L3.29289 17.7071C2.90237 17.3166 2.90237 16.6834 3.29289 16.2929L7.29289 12.2929C7.68342 11.9024 8.31658 11.9024 8.70711 12.2929Z"})),f="h-5 w-5 shrink-0 fill-primary-400",m1=[{label:"I'm new to MLOps and exploring",key:"exploring",icon:e.jsx(c1,{className:f})},{label:"I'm planning or conducting a Proof of Concept",key:"planning_poc",icon:e.jsx(J,{className:f})},{label:"I'm comparing ZenML to other MLOps tools",key:"comparing_tools",icon:e.jsx(d1,{className:f})},{label:"I'm implementing ZenML in a production environment",key:"implementing_production_environment",icon:e.jsx(V,{className:f})}],h1=[{name:"Metaflow",icon:n1},{name:"Flyte",icon:C1},{name:"Prefect",icon:i1},{name:"Kedro",icon:o1},{name:"Airflow",icon:l1}];function j1({submitHandler:s}){const C=t.useRef(null),{register:l,setValue:n,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=j({resolver:M(D),defaultValues:{usageReason:""},shouldUnregister:!0}),h=r("otherTool");return t.useEffect(()=>{var a;h&&((a=C.current)==null||a.focus())},[h]),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"What best describes your current situation with ZenML?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select only one of the options"})]}),e.jsxs("form",{onSubmit:d(s),className:"w-full space-y-5 lg:w-[700px]",children:[e.jsx("ul",{className:"space-y-2",children:m1.map(({key:a,label:p,icon:i})=>e.jsxs("li",{className:"space-y-2",children:[e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":r("usageReason")===a,"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":r("usageReason")!==a}),children:[e.jsx("input",{type:"radio",...l("usageReason"),value:a,name:"usageReason",className:"h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[i,p]})]}),r("usageReason")==="comparing_tools"&&a==="comparing_tools"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Select all the tools that apply:"}),e.jsxs("ul",{className:"grid w-full grid-cols-1 gap-2 xl:grid-cols-3",children:[h1.map(({icon:c,name:o})=>e.jsx("li",{className:"",children:e.jsx(Z,{defaultValue:[],control:m,name:"comparison_tools",render:({field:{onChange:B,value:g,...v}})=>{var y,E;return e.jsxs("label",{className:w("flex items-center gap-1 rounded-md border pl-3 transition-all duration-150",{"border-primary-400 bg-primary-25 shadow-sm":(y=r("comparison_tools"))==null?void 0:y.includes(o),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!((E=r("comparison_tools"))!=null&&E.includes(o))}),children:[e.jsx(u,{...v,checked:g==null?void 0:g.includes(o),onCheckedChange:N=>{B(N?[...g??[],o]:g==null?void 0:g.filter(I=>I!==o))},value:o,className:"h-3 w-3"}),e.jsxs("div",{className:"flex w-full items-center gap-1 py-3 pr-3 text-theme-text-secondary hover:cursor-pointer",children:[e.jsx("img",{className:"h-5 w-5 shrink-0",src:c,alt:`${o} icon`}),o]})]})}})},o)),e.jsx("li",{children:e.jsxs("div",{className:w("flex h-full items-center rounded-md border bg-theme-surface-primary p-3 transition duration-150",{"border-primary-400":!!r("otherTool"),"border-theme-border-minimal hover:border-theme-border-bold":!r("otherTool")}),children:[e.jsx(u,{onCheckedChange:c=>n("otherTool",!!c),...l("otherTool",{value:!1}),className:"mr-2 h-3 w-3",id:"other"}),h?e.jsx("input",{...l("otherToolVal"),ref:c=>{l("otherToolVal").ref(c),C.current=c},placeholder:"Specify...",className:"box-border w-full border-none p-0 pr-1 placeholder:text-theme-text-tertiary focus:outline-none focus:ring-0"}):e.jsx("label",{className:"w-full text-theme-text-secondary hover:cursor-pointer",htmlFor:"other",children:"Other"})]})})]})]})]},a))}),e.jsx(A,{disabled:!x,type:"submit",className:"w-full text-center",size:"md",children:e.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{f1 as A,L1 as I,M1 as P,B1 as S,j1 as U};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as r}from"./@radix-Cdvw4jJ8.js";import{b as a,h as o}from"./index-
|
1
|
+
import{j as r}from"./@radix-Cdvw4jJ8.js";import{b as a,h as o}from"./index-BgEfQ3_G.js";function m({children:e}){return r.jsx(a,{className:"w-full",children:e})}function i({children:e,className:s,...t}){return r.jsx("div",{className:o("border-b border-theme-border-moderate px-5 py-3 text-display-xs font-semibold",s),...t,children:e})}function p({children:e,className:s,...t}){return r.jsx("div",{...t,className:o("p-5",s),children:e})}function x({children:e}){return r.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-theme-border-moderate p-5",children:e})}export{p as B,x as F,i as H,m as W};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as r}from"./@radix-Cdvw4jJ8.js";import{F as s}from"./Wizard-
|
1
|
+
import{j as r}from"./@radix-Cdvw4jJ8.js";import{F as s}from"./Wizard-BHvY75u_.js";import{C as e}from"./StackName-CFSZL8ec.js";function n({children:o,displayCancel:t=!0}){return r.jsxs(s,{children:[t&&r.jsx(e,{}),o]})}export{n as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{i as n,j as r,o as a,f as u,n as o,F as i}from"./index-
|
1
|
+
import{i as n,j as r,o as a,f as u,n as o,F as i}from"./index-BgEfQ3_G.js";import{b as c}from"./@tanstack-5gTMR7G2.js";function l({params:e}){return["runs",e]}async function p({params:e}){const s=n(r.runs.all+"?"+a(e)),t=await u(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&o(),!t.ok)throw new i({message:"Error while fetching pipeline runs",status:t.status,statusText:t.statusText});return t.json()}function y(e,s){return c({queryKey:l(e),queryFn:()=>p(e),...s})}export{y as u};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import{r as m,c as x,j as a}from"./@radix-Cdvw4jJ8.js";import{h}from"./@tanstack-5gTMR7G2.js";import{a as j}from"./index-
|
1
|
+
import{r as m,c as x,j as a}from"./@radix-Cdvw4jJ8.js";import{h}from"./@tanstack-5gTMR7G2.js";import{a as j}from"./index-BgEfQ3_G.js";function g(){const t=m.createContext(null);function s(){const r=x.useContext(t);if(!r)throw new Error("DataTableConsumerContext must be used within its Provider");return r}function i({children:r}){const[n,d]=m.useState({}),o=C(n),c=o.length;return a.jsx(t.Provider,{value:{rowSelection:n,setRowSelection:d,selectedRowIDs:o,selectedRowCount:c},children:r})}return{Context:t,ContextProvider:i,useContext:s}}function C(t){return Object.entries(t).filter(([s,i])=>i).map(([s])=>s)}function D({deleteFn:t,queryKeyToInvalidate:s,setRowSelection:i}){const r=h(),{toast:n}=j();async function d(o){if(o.length)try{const l=(await Promise.allSettled(o.map(e=>t(e)))).map((e,u)=>({id:o[u],status:e.status,error:e.status==="rejected"?e.reason:null})).filter(e=>e.status==="rejected"),p=Object.fromEntries(l.map(e=>[e.id,!0]));if(i(p),l.length===0)n({description:"All items deleted successfully.",status:"success",emphasis:"subtle",rounded:!0});else{const e=l.length;console.error(`Failed to delete items:
|
2
2
|
`,l.map(({id:u,error:f})=>`${u}: ${f}`).join(`
|
3
3
|
`)),n({status:"error",emphasis:"subtle",description:a.jsxs("p",{children:["Failed to delete ",e," item",e>1?"s":"",":",l.map(({id:u})=>a.jsxs(a.Fragment,{children:[a.jsx("br",{}),a.jsx("span",{children:u})]},u))]}),rounded:!0})}await r.invalidateQueries({queryKey:s})}catch(c){console.error("Bulk delete operation failed:",c),n({status:"error",emphasis:"subtle",description:"Bulk delete operation failed unexpectedly",rounded:!0})}}return{bulkDelete:d}}export{g as c,D as u};
|
zenml/zen_server/dashboard/assets/{configuration-form-B2hmKGnF.js → configuration-form-DSoMMiPE.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{j as e,r as k}from"./@radix-Cdvw4jJ8.js";import{f as I,i as L,F as Q,j as B,as as X,au as H,av as ee,aw as se,aO as re,g as R,W as te,X as ae,am as ne,Y as oe,Z as ie,_ as le,I as $,$ as ce,a0 as me,a1 as q,a2 as N,h as de,bq as ue,b as pe,L as xe,B as C,H as he,z as v,e as fe,a as je,ar as ge,J as ye}from"./index-BFqbGSck.js";import{c as M,j as Ne,b as Ce,h as ve}from"./@tanstack-5gTMR7G2.js";import{f as be}from"./index-U992soPJ.js";import{g as we,a as Se,D as Fe,b as _e}from"./form-DFJkaFDX.js";import{t as ze}from"./zod-XdS2h1ws.js";import{a as Pe,C as Te,u as Ee,F as Oe}from"./index.esm-DhJo3mA6.js";import{S as Ae}from"./transform-CeZdrxDZ.js";import{S as ke}from"./check-B9QMTa3f.js";import{S as qe}from"./plus-Cl0_rCVF.js";import{C as De}from"./CodeSnippet-D2HkkAGr.js";import{S as Ie}from"./file-text-Cd8wVfq5.js";import{S as Le}from"./terminal-square-XFL_4QN-.js";import{C as Qe}from"./ComponentIcon-CbbOc7lb.js";async function Be({payload:s}){const r=L(B.components.all),t=await I(r,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)});if(!t.ok){const o=await t.json().then(l=>Array.isArray(l.detail)?l.detail[1]:l.detail).catch(()=>"Error while creating new stack");throw new Q({status:t.status,statusText:t.statusText,message:o})}return t.json()}function Re(s){return M({...s,mutationFn:async({payload:r})=>Be({payload:r})})}function $e({open:s,setOpen:r}){return e.jsx(X,{open:s,onOpenChange:r,children:e.jsxs(H,{className:"max-w-[600px]",children:[e.jsx(ee,{children:e.jsx(se,{children:"Create Service Connector"})}),e.jsx("div",{className:"min-w-0 p-5",children:e.jsxs("div",{className:"min-w-0 max-w-full space-y-1",children:[e.jsx("p",{children:"Create a new service connector"}),e.jsx(De,{wrap:!0,code:"zenml service-connector register <NAME> --type=<TYPE> --interactive"})]})})]})})}function Me({connectorResourceType:s}){var h;const r=Pe(),[t,o]=k.useState(!1),[l,p]=k.useState(!1),x=Ne(re.serviceConnectorListInfinite({resource_type:s,sort_by:"desc:created"}));if(x.isPending)return e.jsx(R,{className:"h-[60px] w-full"});if(x.isError)return e.jsx("div",{children:"Error"});const m=(h=x.data)==null?void 0:h.pages.flatMap(a=>a.items);return e.jsxs(e.Fragment,{children:[e.jsx(Te,{control:r.control,name:"connector",render:({field:a})=>e.jsxs(te,{modal:!0,open:t,onOpenChange:o,children:[e.jsx(ae,{asChild:!0,children:e.jsx("button",{className:ne("w-full flex-1 truncate rounded-md border border-primary-400 bg-theme-surface-secondary px-2",{"h-7":!a.value,"py-2 pl-2 pr-3 text-left":a.value}),children:a.value?(()=>{const i=m.find(d=>d.id===a.value);return i?e.jsx(D,{connector:i}):"Select Connector"})():"Select Connector"})}),e.jsx(oe,{className:"p-0",style:{width:"var(--radix-popover-trigger-width)"},align:"start",children:e.jsxs(ie,{filter:(i,d)=>i.toLowerCase().includes(d.toLowerCase())||i.includes("doNotFilter-")?1:0,children:[m.length>0&&e.jsx(le,{placeholder:"Search connectors...",children:e.jsx($,{className:"w-full",inputSize:"sm"})}),e.jsx(ce,{className:"space-y-1 p-2",children:e.jsxs("div",{className:"space-y-1",children:[m.length>0?e.jsxs(e.Fragment,{children:[e.jsx(me,{children:"No results"}),e.jsx(q,{className:"max-h-[300px] overflow-y-auto",children:m.map(i=>e.jsxs(N,{value:`${i.id}:${i.name}`,onSelect:d=>{const[f]=d.split(":");r.setValue("connector",a.value===f?"":f),o(!1)},children:[e.jsx(D,{connector:i}),e.jsx(ke,{className:de("fill-brand-500 ml-auto size-4 shrink-0",a.value===i.id?"opacity-100":"opacity-0")})]},i.id))})]}):e.jsx("div",{className:"p-2 text-center text-theme-text-secondary",children:"No connectors found"}),e.jsx(ue,{className:"-mx-1"}),e.jsxs(q,{children:[x.hasNextPage&&e.jsx(N,{value:"doNotFilter-fetch-more",className:"flex items-center font-semibold",onSelect:()=>{x.fetchNextPage()},children:"Load more"}),e.jsxs(N,{value:"doNotFilter-create-new",className:"flex items-center gap-2 font-semibold",onSelect:()=>{o(!1),p(!0)},children:[e.jsx(qe,{className:"size-3 shrink-0 fill-neutral-400"}),"Create new Service Connector"]})]})]})})]})})]})}),e.jsx($e,{open:l,setOpen:p})]})}function D({connector:s}){var r,t;return e.jsxs("div",{className:"flex items-center gap-2",children:[typeof((r=s.body)==null?void 0:r.connector_type)=="object"&&((t=s.body)==null?void 0:t.connector_type.logo_url)&&e.jsx("img",{src:s.body.connector_type.logo_url,alt:s.name,className:"size-5 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s.name}),e.jsx("div",{className:"text-theme-text-secondary",children:s.id.split("-")[0]})]})]})}function Ue({connectorResourceType:s}){return e.jsxs("section",{className:"w-full max-w-full space-y-3 overflow-x-hidden rounded-md border border-warning-50 bg-[#FFF6EA] p-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"size-5 shrink-0 fill-warning-400"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Connect to resource"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You can select a Service Connector to connect ZenML to external resources"})]}),e.jsx(Me,{connectorResourceType:s})]})}function Ve({sdkDocsUrl:s,name:r,logoUrl:t,type:o}){return e.jsxs(pe,{className:"space-y-5 overflow-hidden pb-5",children:[e.jsx("div",{className:"flex h-[120px] w-full items-center justify-center bg-teal-25",children:t?e.jsx("img",{width:60,height:60,className:"aspect-square object-contain",src:xe(t),alt:`Logo of ${r}`}):e.jsx(Qe,{className:"aspect-square h-[60px] w-[60px] fill-primary-400 object-contain",type:o})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"px-5",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Need Help?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow our extensive documentation to get started."})]}),e.jsxs("ul",{className:"space-y-0.5 px-5",children:[!!s&&e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:s,children:[e.jsx(Ie,{className:"size-5 shrink-0 fill-primary-600"}),"Api Reference"]})})}),e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://github.com/zenml-io/zenml/tree/main/examples",children:[e.jsx(Le,{className:"size-5 shrink-0 fill-primary-600"}),"Navigate our examples"]})})}),e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://www.zenml.io/blog",children:[e.jsx(he,{className:"size-5 shrink-0 fill-primary-600"}),"Read our blog"]})})})]})]})]})}const Je=v.object({componentName:v.string().min(1,"Component name is required"),connector:v.string()});async function Ke({componentId:s,payload:r}){const t=L(B.components.detail(s)),o=await I(t,{headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify(r)});if(!o.ok){const l=await o.json().then(p=>Array.isArray(p.detail)?p.detail[1]:p.detail).catch(()=>"Error while creating new stack");throw new Q({status:o.status,statusText:o.statusText,message:l})}return o.json()}function Ye(s){return M({...s,mutationFn:async({payload:r,componentId:t})=>Ke({payload:r,componentId:t})})}function ms({flavorId:s,formId:r,successHandler:t,FooterComponent:o,useMaxHeight:l=!1,component:p,isCreate:x=!0}){var a,i,d,f;const m=Ce(be.flavorDetail(s)),h=fe();return m.isPending||h.isPending?e.jsx("div",{className:"px-8 py-5",children:e.jsx(R,{className:"h-[250px] w-full"})}):m.isError||h.isError?e.jsx("p",{className:"px-8 py-5",children:"Failed to fetch flavor"}):e.jsx(Ze,{isCreate:x,component:p,useMaxHeight:l,infoTile:e.jsx(Ve,{type:((a=m.data.body)==null?void 0:a.type)||"orchestrator",name:m.data.name,sdkDocsUrl:((i=m.data.metadata)==null?void 0:i.sdk_docs_url)??void 0,logoUrl:((d=m.data.body)==null?void 0:d.logo_url)??void 0}),FooterComponent:o,successHandler:t,flavor:m.data,userId:h.data.id,formId:r,schema:(f=m.data.metadata)==null?void 0:f.config_schema})}function Ze({formId:s,schema:r,flavor:t,userId:o,successHandler:l,infoTile:p,FooterComponent:x,useMaxHeight:m,isCreate:h,component:a}){var S,F,_,z,P;const{toast:i}=je(),d=ye.all,f=ve(),b=Re({onSuccess:({id:n})=>{f.invalidateQueries({queryKey:d}),l==null||l(n)},onError:n=>{i({emphasis:"subtle",status:"error",rounded:!0,description:n.message})}}),U=Ye({onSuccess:({id:n})=>{f.invalidateQueries({queryKey:d}),l==null||l(n)},onError:n=>{i({emphasis:"subtle",status:"error",rounded:!0,description:n.message})}}),V=r.properties||{},g=r.required||[],J=r.$defs;function K({componentName:n,...c}){var E,O,A;if(Object.keys(c).forEach(u=>{(c[u]===""||c[u]===null||c[u]===void 0||Array.isArray(c[u])&&c[u].length===0||typeof c[u]=="object"&&!Array.isArray(c[u])&&Object.keys(c[u]).length===0)&&delete c[u]}),!t.body)return;const{connector:y,...T}=c;if(h)b.mutate({payload:{name:n,configuration:T,flavor:t.name,type:t.body.type,user:o,connector:y||null}});else{if(!a)return;const u=((O=(E=a.metadata)==null?void 0:E.connector)==null?void 0:O.id)!==y,W=(A=a.metadata)==null?void 0:A.connector_resource_id;U.mutate({componentId:a.id,payload:{...!u&&{connector_resource_id:W},name:n,configuration:T,connector:y||null}})}}const Y=Je.merge(we(r)),Z=Se(r,(S=a==null?void 0:a.metadata)==null?void 0:S.configuration),j=Ee({resolver:ze(Y),defaultValues:{componentName:(a==null?void 0:a.name)??"",connector:((_=(F=a==null?void 0:a.metadata)==null?void 0:F.connector)==null?void 0:_.id)??"",...Z}}),{handleSubmit:G}=j,w=Object.entries(V).sort(([n],[c])=>g.includes(n)&&!g.includes(c)?-1:!g.includes(n)&&g.includes(c)?1:0);return e.jsx(Oe,{...j,children:e.jsxs("form",{onSubmit:n=>(n.stopPropagation(),G(K)(n)),id:s,children:[e.jsx(ge,{viewportClassName:m?"max-h-[70vh]":"",children:e.jsxs("div",{className:"space-y-4 p-8",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{className:"text-text-lg font-semibold",children:"Component Name"}),e.jsx($,{...j.register("componentName"),"data-error":j.formState.errors.componentName?"true":"false",className:"w-full data-[error=true]:border-error-500",inputSize:"lg"}),j.formState.errors.componentName&&e.jsx("p",{className:"text-text-sm text-error-500",children:(z=j.formState.errors.componentName.message)==null?void 0:z.toString()})]}),e.jsxs("div",{className:"flex flex-col-reverse gap-5 xl:flex-row",children:[e.jsxs("div",{className:"flex-1 space-y-5",children:[(P=t.metadata)!=null&&P.connector_resource_type?e.jsx(Ue,{connectorResourceType:t.metadata.connector_resource_type}):null,w.length>0?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Attributes"}),w.map(([n,c])=>e.jsx(Fe,{definitions:J,isOptional:_e(n,g),name:n,schema:c},n))]}):null]}),e.jsx("div",{className:"w-full xl:w-1/3",children:p})]})]})}),e.jsx(x,{formId:s,isPending:b.isPending})]})})}export{ms as C};
|
1
|
+
import{j as e,r as k}from"./@radix-Cdvw4jJ8.js";import{f as I,i as L,F as Q,j as B,as as X,au as H,av as ee,aw as se,aO as re,g as R,W as te,X as ae,am as ne,Y as oe,Z as ie,_ as le,I as $,$ as ce,a0 as me,a1 as q,a2 as N,h as de,bq as ue,b as pe,L as xe,B as C,H as he,z as v,e as fe,a as je,ar as ge,J as ye}from"./index-BgEfQ3_G.js";import{c as M,j as Ne,b as Ce,h as ve}from"./@tanstack-5gTMR7G2.js";import{f as be}from"./index-eoDB_1XX.js";import{g as we,a as Se,D as Fe,b as _e}from"./form-BgtamtJm.js";import{t as ze}from"./zod-XdS2h1ws.js";import{a as Pe,C as Te,u as Ee,F as Oe}from"./index.esm-DhJo3mA6.js";import{S as Ae}from"./transform-CeZdrxDZ.js";import{S as ke}from"./check-B9QMTa3f.js";import{S as qe}from"./plus-Cl0_rCVF.js";import{C as De}from"./CodeSnippet-Ctplhzdc.js";import{S as Ie}from"./file-text-Cd8wVfq5.js";import{S as Le}from"./terminal-square-XFL_4QN-.js";import{C as Qe}from"./ComponentIcon-CMiVW-O6.js";async function Be({payload:s}){const r=L(B.components.all),t=await I(r,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)});if(!t.ok){const o=await t.json().then(l=>Array.isArray(l.detail)?l.detail[1]:l.detail).catch(()=>"Error while creating new stack");throw new Q({status:t.status,statusText:t.statusText,message:o})}return t.json()}function Re(s){return M({...s,mutationFn:async({payload:r})=>Be({payload:r})})}function $e({open:s,setOpen:r}){return e.jsx(X,{open:s,onOpenChange:r,children:e.jsxs(H,{className:"max-w-[600px]",children:[e.jsx(ee,{children:e.jsx(se,{children:"Create Service Connector"})}),e.jsx("div",{className:"min-w-0 p-5",children:e.jsxs("div",{className:"min-w-0 max-w-full space-y-1",children:[e.jsx("p",{children:"Create a new service connector"}),e.jsx(De,{wrap:!0,code:"zenml service-connector register <NAME> --type=<TYPE> --interactive"})]})})]})})}function Me({connectorResourceType:s}){var h;const r=Pe(),[t,o]=k.useState(!1),[l,p]=k.useState(!1),x=Ne(re.serviceConnectorListInfinite({resource_type:s,sort_by:"desc:created"}));if(x.isPending)return e.jsx(R,{className:"h-[60px] w-full"});if(x.isError)return e.jsx("div",{children:"Error"});const m=(h=x.data)==null?void 0:h.pages.flatMap(a=>a.items);return e.jsxs(e.Fragment,{children:[e.jsx(Te,{control:r.control,name:"connector",render:({field:a})=>e.jsxs(te,{modal:!0,open:t,onOpenChange:o,children:[e.jsx(ae,{asChild:!0,children:e.jsx("button",{className:ne("w-full flex-1 truncate rounded-md border border-primary-400 bg-theme-surface-secondary px-2",{"h-7":!a.value,"py-2 pl-2 pr-3 text-left":a.value}),children:a.value?(()=>{const i=m.find(d=>d.id===a.value);return i?e.jsx(D,{connector:i}):"Select Connector"})():"Select Connector"})}),e.jsx(oe,{className:"p-0",style:{width:"var(--radix-popover-trigger-width)"},align:"start",children:e.jsxs(ie,{filter:(i,d)=>i.toLowerCase().includes(d.toLowerCase())||i.includes("doNotFilter-")?1:0,children:[m.length>0&&e.jsx(le,{placeholder:"Search connectors...",children:e.jsx($,{className:"w-full",inputSize:"sm"})}),e.jsx(ce,{className:"space-y-1 p-2",children:e.jsxs("div",{className:"space-y-1",children:[m.length>0?e.jsxs(e.Fragment,{children:[e.jsx(me,{children:"No results"}),e.jsx(q,{className:"max-h-[300px] overflow-y-auto",children:m.map(i=>e.jsxs(N,{value:`${i.id}:${i.name}`,onSelect:d=>{const[f]=d.split(":");r.setValue("connector",a.value===f?"":f),o(!1)},children:[e.jsx(D,{connector:i}),e.jsx(ke,{className:de("fill-brand-500 ml-auto size-4 shrink-0",a.value===i.id?"opacity-100":"opacity-0")})]},i.id))})]}):e.jsx("div",{className:"p-2 text-center text-theme-text-secondary",children:"No connectors found"}),e.jsx(ue,{className:"-mx-1"}),e.jsxs(q,{children:[x.hasNextPage&&e.jsx(N,{value:"doNotFilter-fetch-more",className:"flex items-center font-semibold",onSelect:()=>{x.fetchNextPage()},children:"Load more"}),e.jsxs(N,{value:"doNotFilter-create-new",className:"flex items-center gap-2 font-semibold",onSelect:()=>{o(!1),p(!0)},children:[e.jsx(qe,{className:"size-3 shrink-0 fill-neutral-400"}),"Create new Service Connector"]})]})]})})]})})]})}),e.jsx($e,{open:l,setOpen:p})]})}function D({connector:s}){var r,t;return e.jsxs("div",{className:"flex items-center gap-2",children:[typeof((r=s.body)==null?void 0:r.connector_type)=="object"&&((t=s.body)==null?void 0:t.connector_type.logo_url)&&e.jsx("img",{src:s.body.connector_type.logo_url,alt:s.name,className:"size-5 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s.name}),e.jsx("div",{className:"text-theme-text-secondary",children:s.id.split("-")[0]})]})]})}function Ue({connectorResourceType:s}){return e.jsxs("section",{className:"w-full max-w-full space-y-3 overflow-x-hidden rounded-md border border-warning-50 bg-[#FFF6EA] p-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"size-5 shrink-0 fill-warning-400"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Connect to resource"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You can select a Service Connector to connect ZenML to external resources"})]}),e.jsx(Me,{connectorResourceType:s})]})}function Ve({sdkDocsUrl:s,name:r,logoUrl:t,type:o}){return e.jsxs(pe,{className:"space-y-5 overflow-hidden pb-5",children:[e.jsx("div",{className:"flex h-[120px] w-full items-center justify-center bg-teal-25",children:t?e.jsx("img",{width:60,height:60,className:"aspect-square object-contain",src:xe(t),alt:`Logo of ${r}`}):e.jsx(Qe,{className:"aspect-square h-[60px] w-[60px] fill-primary-400 object-contain",type:o})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"px-5",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Need Help?"}),e.jsx("p",{className:"text-theme-text-secondary",children:"Follow our extensive documentation to get started."})]}),e.jsxs("ul",{className:"space-y-0.5 px-5",children:[!!s&&e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:s,children:[e.jsx(Ie,{className:"size-5 shrink-0 fill-primary-600"}),"Api Reference"]})})}),e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://github.com/zenml-io/zenml/tree/main/examples",children:[e.jsx(Le,{className:"size-5 shrink-0 fill-primary-600"}),"Navigate our examples"]})})}),e.jsx("li",{children:e.jsx(C,{asChild:!0,emphasis:"minimal",intent:"primary",size:"md",children:e.jsxs("a",{className:"flex items-center gap-1",target:"_blank",rel:"noopener noreferrer",href:"https://www.zenml.io/blog",children:[e.jsx(he,{className:"size-5 shrink-0 fill-primary-600"}),"Read our blog"]})})})]})]})]})}const Je=v.object({componentName:v.string().min(1,"Component name is required"),connector:v.string()});async function Ke({componentId:s,payload:r}){const t=L(B.components.detail(s)),o=await I(t,{headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify(r)});if(!o.ok){const l=await o.json().then(p=>Array.isArray(p.detail)?p.detail[1]:p.detail).catch(()=>"Error while creating new stack");throw new Q({status:o.status,statusText:o.statusText,message:l})}return o.json()}function Ye(s){return M({...s,mutationFn:async({payload:r,componentId:t})=>Ke({payload:r,componentId:t})})}function ms({flavorId:s,formId:r,successHandler:t,FooterComponent:o,useMaxHeight:l=!1,component:p,isCreate:x=!0}){var a,i,d,f;const m=Ce(be.flavorDetail(s)),h=fe();return m.isPending||h.isPending?e.jsx("div",{className:"px-8 py-5",children:e.jsx(R,{className:"h-[250px] w-full"})}):m.isError||h.isError?e.jsx("p",{className:"px-8 py-5",children:"Failed to fetch flavor"}):e.jsx(Ze,{isCreate:x,component:p,useMaxHeight:l,infoTile:e.jsx(Ve,{type:((a=m.data.body)==null?void 0:a.type)||"orchestrator",name:m.data.name,sdkDocsUrl:((i=m.data.metadata)==null?void 0:i.sdk_docs_url)??void 0,logoUrl:((d=m.data.body)==null?void 0:d.logo_url)??void 0}),FooterComponent:o,successHandler:t,flavor:m.data,userId:h.data.id,formId:r,schema:(f=m.data.metadata)==null?void 0:f.config_schema})}function Ze({formId:s,schema:r,flavor:t,userId:o,successHandler:l,infoTile:p,FooterComponent:x,useMaxHeight:m,isCreate:h,component:a}){var S,F,_,z,P;const{toast:i}=je(),d=ye.all,f=ve(),b=Re({onSuccess:({id:n})=>{f.invalidateQueries({queryKey:d}),l==null||l(n)},onError:n=>{i({emphasis:"subtle",status:"error",rounded:!0,description:n.message})}}),U=Ye({onSuccess:({id:n})=>{f.invalidateQueries({queryKey:d}),l==null||l(n)},onError:n=>{i({emphasis:"subtle",status:"error",rounded:!0,description:n.message})}}),V=r.properties||{},g=r.required||[],J=r.$defs;function K({componentName:n,...c}){var E,O,A;if(Object.keys(c).forEach(u=>{(c[u]===""||c[u]===null||c[u]===void 0||Array.isArray(c[u])&&c[u].length===0||typeof c[u]=="object"&&!Array.isArray(c[u])&&Object.keys(c[u]).length===0)&&delete c[u]}),!t.body)return;const{connector:y,...T}=c;if(h)b.mutate({payload:{name:n,configuration:T,flavor:t.name,type:t.body.type,user:o,connector:y||null}});else{if(!a)return;const u=((O=(E=a.metadata)==null?void 0:E.connector)==null?void 0:O.id)!==y,W=(A=a.metadata)==null?void 0:A.connector_resource_id;U.mutate({componentId:a.id,payload:{...!u&&{connector_resource_id:W},name:n,configuration:T,connector:y||null}})}}const Y=Je.merge(we(r)),Z=Se(r,(S=a==null?void 0:a.metadata)==null?void 0:S.configuration),j=Ee({resolver:ze(Y),defaultValues:{componentName:(a==null?void 0:a.name)??"",connector:((_=(F=a==null?void 0:a.metadata)==null?void 0:F.connector)==null?void 0:_.id)??"",...Z}}),{handleSubmit:G}=j,w=Object.entries(V).sort(([n],[c])=>g.includes(n)&&!g.includes(c)?-1:!g.includes(n)&&g.includes(c)?1:0);return e.jsx(Oe,{...j,children:e.jsxs("form",{onSubmit:n=>(n.stopPropagation(),G(K)(n)),id:s,children:[e.jsx(ge,{viewportClassName:m?"max-h-[70vh]":"",children:e.jsxs("div",{className:"space-y-4 p-8",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("label",{className:"text-text-lg font-semibold",children:"Component Name"}),e.jsx($,{...j.register("componentName"),"data-error":j.formState.errors.componentName?"true":"false",className:"w-full data-[error=true]:border-error-500",inputSize:"lg"}),j.formState.errors.componentName&&e.jsx("p",{className:"text-text-sm text-error-500",children:(z=j.formState.errors.componentName.message)==null?void 0:z.toString()})]}),e.jsxs("div",{className:"flex flex-col-reverse gap-5 xl:flex-row",children:[e.jsxs("div",{className:"flex-1 space-y-5",children:[(P=t.metadata)!=null&&P.connector_resource_type?e.jsx(Ue,{connectorResourceType:t.metadata.connector_resource_type}):null,w.length>0?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Attributes"}),w.map(([n,c])=>e.jsx(Fe,{definitions:J,isOptional:_e(n,g),name:n,schema:c},n))]}):null]}),e.jsx("div",{className:"w-full xl:w-1/3",children:p})]})]})}),e.jsx(x,{formId:s,isPending:b.isPending})]})})}export{ms as C};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as s}from"./@radix-Cdvw4jJ8.js";import{g as l,B as c,L as m,ai as d}from"./index-
|
1
|
+
import{j as s}from"./@radix-Cdvw4jJ8.js";import{g as l,B as c,L as m,ai as d}from"./index-BgEfQ3_G.js";import{f as p}from"./index-eoDB_1XX.js";import{j as u}from"./@tanstack-5gTMR7G2.js";import{C as g}from"./ComponentIcon-CMiVW-O6.js";function N({type:e,setSelectedFlavor:r}){const t=u(p.flavorListInfinite({type:e}));if(t.isPending)return s.jsx(f,{});if(t.isError)return s.jsx("p",{children:"Failed to fetch Flavor List"});const{data:i}=t;return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:i.pages.map(n=>n.items.map(a=>{var o;return s.jsx("li",{className:"",children:s.jsx(x,{type:e,onClick:()=>r(a),id:a.id,name:a.name,logoUrl:((o=a.body)==null?void 0:o.logo_url)??void 0})},a.id)}))})}function x({name:e,logoUrl:r,onClick:t,type:i}){return s.jsxs(c,{onClick:t,intent:"secondary",emphasis:"subtle",className:"h-auto w-full gap-2 px-5 py-3",children:[r?s.jsx("img",{alt:`Logo of ${e}`,width:36,height:36,className:"aspect-square object-contain",src:m(r)}):s.jsx(g,{className:"aspect-square h-[36px] w-[36px] fill-primary-400 object-contain",type:i}),s.jsx("span",{className:"min-w-0 truncate",children:d(e)})]})}function f(){return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:Array.from({length:4}).map((e,r)=>s.jsx(l,{className:"h-[70px] w-full"},r))})}const k=["orchestrator","artifact_store","container_registry","step_operator","model_deployer","feature_store","experiment_tracker","alerter","annotator","data_validator","image_builder","model_registry"];export{N as S,k as s};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,j as n}from"./@radix-Cdvw4jJ8.js";import{h as i,i as c,F as u,j as d}from"./index-
|
1
|
+
import{r as o,j as n}from"./@radix-Cdvw4jJ8.js";import{h as i,i as c,F as u,j as d}from"./index-BgEfQ3_G.js";import{c as m}from"./@tanstack-5gTMR7G2.js";const l=o.forwardRef(({className:e,...r},t)=>n.jsx("label",{ref:t,...r,className:i("flex w-full items-center gap-2 space-x-2 rounded-md border border-theme-border-moderate p-4 font-semibold transition-shadow duration-150 hover:cursor-pointer hover:shadow-sm data-[state=selected]:border-theme-surface-strong",e)}));l.displayName="RadioItemLabel";const f=o.forwardRef(({className:e,type:r,...t},a)=>n.jsx("input",{type:"radio",ref:a,...t,className:i("h-3 w-3 border !border-theme-border-bold text-theme-surface-primary focus:ring-2 focus:ring-theme-surface-strong",e)}));f.displayName="RadioItem";function y(e){return new Promise(r=>setTimeout(r,e))}async function p({payload:e}){const r=c(d.stacks.all),t=await fetch(r,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while creating new stack");throw new u({status:t.status,statusText:t.statusText,message:a})}return t.json()}function x(e){return m({...e,mutationFn:async({payload:r})=>p({payload:r})})}export{l as R,f as a,y as s,x as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{i as o,F as r,j as i}from"./index-
|
1
|
+
import{i as o,F as r,j as i}from"./index-BgEfQ3_G.js";import{c as u}from"./@tanstack-5gTMR7G2.js";async function c({runId:e}){const a=o(i.runs.detail(e)),t=await fetch(a,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json"}});if(!t.ok){const s=await t.json().then(n=>n.detail).catch(()=>`Failed to delete run ${e}`);throw new r({status:t.status,statusText:t.statusText,message:s})}return t.json()}function d(e){return u({mutationFn:c,...e})}export{d as u};
|