zenml-nightly 0.82.0.dev20250513__py3-none-any.whl → 0.82.1.dev20250517__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/config/build_configuration.py +9 -0
- zenml/config/docker_settings.py +97 -16
- zenml/constants.py +1 -0
- zenml/integrations/kubernetes/flavors/kubernetes_orchestrator_flavor.py +12 -1
- zenml/integrations/kubernetes/orchestrators/kube_utils.py +24 -1
- zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py +3 -0
- zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py +21 -5
- zenml/integrations/kubernetes/orchestrators/manifest_utils.py +13 -0
- zenml/orchestrators/step_launcher.py +4 -0
- zenml/orchestrators/step_run_utils.py +30 -1
- zenml/pipelines/build_utils.py +8 -0
- zenml/utils/pipeline_docker_image_builder.py +133 -7
- zenml/utils/tag_utils.py +3 -3
- zenml/zen_server/dashboard/assets/{404-D4aYbspS.js → 404-_AtuLtaX.js} +1 -1
- zenml/zen_server/dashboard/assets/{AlertDialogDropdownItem-CRZjthRL.js → AlertDialogDropdownItem-BG7-Ki1L.js} +1 -1
- zenml/zen_server/dashboard/assets/{CodeSnippet-Di-loaZu.js → CodeSnippet-CvI6D0wx.js} +1 -1
- zenml/zen_server/dashboard/assets/{CollapsibleCard-Dr5zb5T5.js → CollapsibleCard-D20FtrzC.js} +1 -1
- zenml/zen_server/dashboard/assets/{Commands-CD9Y7FOE.js → Commands-DGbAvMDk.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentBadge-BgGnzcLu.js → ComponentBadge-DKw7Gndh.js} +1 -1
- zenml/zen_server/dashboard/assets/{ComponentIcon-B_7Y_oV-.js → ComponentIcon-ils7uNAk.js} +1 -1
- zenml/zen_server/dashboard/assets/{CsvVizualization-CDrjL6bW.js → CsvVizualization-DVN541XF.js} +1 -1
- zenml/zen_server/dashboard/assets/{DeleteAlertDialog-9RTDnEx3.js → DeleteAlertDialog-DVvXt-S6.js} +1 -1
- zenml/zen_server/dashboard/assets/{DialogItem-0fWTH7ki.js → DialogItem-BHWf3sIB.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-vBjUYjb-.js → Error-BWaXP0VK.js} +1 -1
- zenml/zen_server/dashboard/assets/{ExecutionStatus-B-ysY113.js → ExecutionStatus-XrvT2r65.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-Dt3q7NGd.js → Helpbox-iE1xLmiZ.js} +1 -1
- zenml/zen_server/dashboard/assets/{Infobox-Bai0JtFs.js → Infobox-D9k5TFH4.js} +1 -1
- zenml/zen_server/dashboard/assets/{InlineAvatar-Cpj0lVRQ.js → InlineAvatar-Cfz4WSLK.js} +1 -1
- zenml/zen_server/dashboard/assets/{NestedCollapsible-DbhKdWx-.js → NestedCollapsible-Dor-bi98.js} +1 -1
- zenml/zen_server/dashboard/assets/{Partials-BNBtCjuT.js → Partials-DQJFw1yW.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProBadge-3vtouJQf.js → ProBadge-Cp4hb1YT.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProCta-BoTLdAdV.js → ProCta-EYoV9CvK.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderIcon-kkODO9tx.js → ProviderIcon-DLo7t1lo.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderRadio-26EB5tY-.js → ProviderRadio-BVDA-fAr.js} +1 -1
- zenml/zen_server/dashboard/assets/{RunSelector-j0C_TPVp.js → RunSelector-BLuBYNJt.js} +1 -1
- zenml/zen_server/dashboard/assets/{RunsBody-DexNouV4.js → RunsBody-W4WHf-sq.js} +1 -1
- zenml/zen_server/dashboard/assets/{SearchField-DMCywawn.js → SearchField-D-h6jXyg.js} +1 -1
- zenml/zen_server/dashboard/assets/{SecretTooltip-LLGP7AIC.js → SecretTooltip-CePCL8kd.js} +1 -1
- zenml/zen_server/dashboard/assets/{SetPassword-CBHW-Su8.js → SetPassword-DR-EiLI5.js} +1 -1
- zenml/zen_server/dashboard/assets/{StackList-S-9I1R4n.js → StackList-CgmN5H-i.js} +1 -1
- zenml/zen_server/dashboard/assets/{Tabs-C2ufJX4t.js → Tabs-DxQ8PDOD.js} +1 -1
- zenml/zen_server/dashboard/assets/{Tick-ay3Bgtro.js → Tick-CEsT3HPR.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-p3RX0P-Q.js → UpdatePasswordSchemas-DbFEaezI.js} +1 -1
- zenml/zen_server/dashboard/assets/{UsageReason-C8sD2bOU.js → UsageReason-DjI5qMje.js} +1 -1
- zenml/zen_server/dashboard/assets/{Wizard-DIllc07n.js → Wizard-CMI6Ksgz.js} +1 -1
- zenml/zen_server/dashboard/assets/{WizardFooter-dNDpuero.js → WizardFooter-CFBHFZas.js} +1 -1
- zenml/zen_server/dashboard/assets/{all-pipeline-runs-query-BUT1PiTp.js → all-pipeline-runs-query-BGASHYtF.js} +1 -1
- zenml/zen_server/dashboard/assets/{configuration-form-DBZSb0FV.js → configuration-form-BtI2Y4eX.js} +1 -1
- zenml/zen_server/dashboard/assets/{create-stack-BXLyjE58.js → create-stack-BJ6x5rzj.js} +1 -1
- zenml/zen_server/dashboard/assets/{delete-run-DzcYxUnd.js → delete-run-DlSLEl5T.js} +1 -1
- zenml/zen_server/dashboard/assets/{flavor-select-BTEwByv6.js → flavor-select-BnPxvQDN.js} +1 -1
- zenml/zen_server/dashboard/assets/{form-schemas-BJN_25Ua.js → form-schemas-CbvoEUHr.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-wYtmKLnQ.js → index-CFESYpe4.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-D9-ukAem.js → index-CmLcvK2z.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-8uhUi12k.js → index-CrhdX_qG.js} +1 -1
- zenml/zen_server/dashboard/assets/index-CzX3ZYlI.css +1 -0
- zenml/zen_server/dashboard/assets/{index-BygJE88j.js → index-D2iSHVZq.js} +7 -7
- zenml/zen_server/dashboard/assets/{login-mutation-DywLqguW.js → login-mutation-CXc-Klim.js} +1 -1
- zenml/zen_server/dashboard/assets/{not-found-BOoklIG4.js → not-found-olRU3fnu.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-ByXQN8A-.js → page-7keIM1V3.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-4nVakAEl.js → page-B31neFwG.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-xa1EAPcI.js → page-B3zo4KYS.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DfTsntQI.js → page-BN3MHq1a.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BIYqUwTI.js → page-BNgVExjN.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-kzSGEVUs.js → page-BPtvu74G.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-uDGvpa5g.js → page-BTIuG0ki.js} +1 -1
- zenml/zen_server/dashboard/assets/{page--hSXKqyG.js → page-BcQzleH6.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-B3DscprQ.js → page-C05Jw4M2.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BE8jdyaM.js → page-C28a7K8h.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-B1Uq1S1Q.js → page-C9WLk0X-.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-RV8wpZ_4.js → page-CINMx64X.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-8AzB83Py.js → page-CSwZxZMQ.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-D2TtSfnb.js → page-CYrJbk7P.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-EXvws1ss.js → page-Ce0cqLo3.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-2BsNK_sZ.js → page-CgNsEkw-.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-cOEvFs_l.js → page-Ct2FUYuR.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DmteSSj6.js → page-D8G2B3Bu.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DL8a4_lg.js +3 -0
- zenml/zen_server/dashboard/assets/{page-Ccnk_5ji.js → page-DMhYn1cF.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CPLlVRXx.js → page-Dd_Yq-Uf.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-K9yjbnd4.js → page-DfSvqT8g.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-B7Aj2XbV.js → page-Dt6ANUTx.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DHnkTzqs.js → page-DtvTleaT.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-uN0n_DE2.js → page-DwfGTiVs.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Ci_n_x3a.js → page-JgomSTDc.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DkY7AIhj.js → page-L84ig6HB.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-bUVHi7DE.js → page-Mabsn4QJ.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DP2Ed-2m.js → page-P04L5cm9.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-D-ry_oLs.js → page-PfhAnvq4.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-CI4a9CXs.js → page-WdRrlNt_.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-D_5R6E7b.js → page-ZfTtFicG.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-Dt3wHeWX.js → page-cqJDDDeK.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-B0r9dBEU.js → page-k-Wxh9L_.js} +1 -1
- zenml/zen_server/dashboard/assets/page-y-zV4n0c.js +1 -0
- zenml/zen_server/dashboard/assets/{persist-SSTTV5q0.js → persist-D87V82eO.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-CEeDYHW5.js → persist-UUym702q.js} +1 -1
- zenml/zen_server/dashboard/assets/{service-BRoAA1Kq.js → service-BQ9KIhls.js} +1 -1
- zenml/zen_server/dashboard/assets/{sharedSchema-BACERDat.js → sharedSchema-Bse2agAf.js} +1 -1
- zenml/zen_server/dashboard/assets/{stack-detail-query-ihiJr6nq.js → stack-detail-query-BAcZJrN3.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-CK6COmw9.js → update-server-settings-mutation-DwMM1LJz.js} +1 -1
- zenml/zen_server/dashboard/index.html +3 -3
- zenml/zen_server/feature_gate/endpoint_utils.py +9 -12
- zenml/zen_server/feature_gate/feature_gate_interface.py +4 -6
- zenml/zen_server/feature_gate/zenml_cloud_feature_gate.py +8 -9
- zenml/zen_server/rbac/endpoint_utils.py +1 -1
- zenml/zen_server/rbac/rbac_sql_zen_store.py +2 -2
- zenml/zen_server/routers/run_templates_endpoints.py +10 -1
- zenml/zen_server/template_execution/utils.py +12 -1
- zenml/zen_stores/migrations/versions/0.82.1_release.py +23 -0
- zenml/zen_stores/sql_zen_store.py +3 -6
- {zenml_nightly-0.82.0.dev20250513.dist-info → zenml_nightly-0.82.1.dev20250517.dist-info}/METADATA +2 -2
- {zenml_nightly-0.82.0.dev20250513.dist-info → zenml_nightly-0.82.1.dev20250517.dist-info}/RECORD +116 -115
- zenml/zen_server/dashboard/assets/index-DmTFrHJm.css +0 -1
- zenml/zen_server/dashboard/assets/page-BTzhAVEn.js +0 -1
- zenml/zen_server/dashboard/assets/page-CSQOpvvK.js +0 -3
- {zenml_nightly-0.82.0.dev20250513.dist-info → zenml_nightly-0.82.1.dev20250517.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.82.0.dev20250513.dist-info → zenml_nightly-0.82.1.dev20250517.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.82.0.dev20250513.dist-info → zenml_nightly-0.82.1.dev20250517.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{j as e,r as t}from"./@radix-C7hRs6Kx.js";import{u as Q,d as S,I as k,p as H,U as D}from"./form-schemas-BJN_25Ua.js";import{h as A,A as U,a as T,b as R,I as E,C as u,ae as w,m as F,aN as J}from"./index-BygJE88j.js";import{t as j}from"./zod-C0xYeTvL.js";import{u as L,C as Z}from"./index.esm-D7jFlf5N.js";import{S as O,b as V,a as K}from"./gcp-CHNvgEss.js";import{S as z}from"./kubernetes-D6OUjwSK.js";import{S as P}from"./rocket-Cf-B-XOR.js";const Y="/assets/adam-e-y0WnB_.webp",q="/assets/alex-DcCuDHPg.webp",W="/assets/baris-C0ZrZ10g.webp",X="/assets/hamza-NKKOZz1I.webp",G="/assets/stefan-B08Ftbba.webp";function M1(){const{setSurveyStep:s}=Q();function o(){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:()=>o(),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 _=[{name:"Adam",image:Y},{name:"Hamza",image:X},{name:"Alex",image:q},{name:"Stefan",image:G},{name:"Baris",image:W}];function $(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:_.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 j1({email:s,fullName:o,submitHandler:l}){const i=t.useId(),r=t.useId(),d=t.useId(),{register:m,handleSubmit:x,control:h,watch:a,formState:{isValid:p}}=L({resolver:j(S),defaultValues:{fullName:o||"",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:i,className:"text-text-sm",children:"Name"}),e.jsx(E,{...m("fullName"),id:i,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(E,{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:c,value:C}})=>e.jsx(u,{checked:C,onCheckedChange:n=>c(!!n),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 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(V,{className:"h-5 w-5 shrink-0"})},{name:"Azure",icon:e.jsx(K,{className:"h-5 w-5 shrink-0"})},{name:"Native Kubernetes",icon:e.jsx(z,{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 o=t.useRef(null),{register:l,setValue:i,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=L({resolver:j(k),defaultValues:{providers:[]},shouldUnregister:!0}),h=r("other");return t.useEffect(()=>{var a;h&&((a=o.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((c,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(c.name),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!r("providers").includes(c.name)}),children:[e.jsx(u,{onCheckedChange:n=>{a(n?[...p,c.name]:p.filter(B=>B!==c.name))},value:c.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:[c.icon,c.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=>i("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),o.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"})),M=t.forwardRef(({children:s,className:o,id:l,...i},r)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:l,...i,ref:r,className:F("peer sr-only",o),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})]}));M.displayName="UseRadioButton";function Z1({submitHandler:s,user:o}){var d,m;const{handleSubmit:l,register:i,formState:{isValid:r}}=L({defaultValues:{primaryUse:(m=(d=o==null?void 0:o.metadata)==null?void 0:d.user_metadata)==null?void 0:m.primary_use},resolver:j(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(M,{id:"use-personal",...i("primaryUse"),value:"personal",children:[e.jsx(a1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Personal"})]}),e.jsxs(M,{...i("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(M,{...i("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",o1="/assets/flyte-Cj-xy_8I.svg",n1="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",i1="/assets/metaflow-weOkWNyT.svg",c1="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(P,{className:f})}],h1=[{name:"Metaflow",icon:i1},{name:"Flyte",icon:o1},{name:"Prefect",icon:c1},{name:"Kedro",icon:n1},{name:"Airflow",icon:l1}];function y1({submitHandler:s}){const o=t.useRef(null),{register:l,setValue:i,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=L({resolver:j(D),defaultValues:{usageReason:""},shouldUnregister:!0}),h=r("otherTool");return t.useEffect(()=>{var a;h&&((a=o.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:c})=>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:[c,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:n})=>e.jsx("li",{className:"",children:e.jsx(Z,{defaultValue:[],control:m,name:"comparison_tools",render:({field:{onChange:B,value:g,...v}})=>{var y,b;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(n),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!((b=r("comparison_tools"))!=null&&b.includes(n))}),children:[e.jsx(u,{...v,checked:g==null?void 0:g.includes(n),onCheckedChange:N=>{B(N?[...g??[],n]:g==null?void 0:g.filter(I=>I!==n))},value:n,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:`${n} icon`}),n]})]})}})},n)),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=>i("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),o.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{j1 as A,L1 as I,Z1 as P,M1 as S,y1 as U};
|
1
|
+
import{j as e,r as t}from"./@radix-C7hRs6Kx.js";import{u as Q,d as S,I as k,p as H,U as D}from"./form-schemas-CbvoEUHr.js";import{h as A,A as U,a as T,b as R,I as E,C as u,ae as w,m as F,aN as J}from"./index-D2iSHVZq.js";import{t as j}from"./zod-C0xYeTvL.js";import{u as L,C as Z}from"./index.esm-D7jFlf5N.js";import{S as O,b as V,a as K}from"./gcp-CHNvgEss.js";import{S as z}from"./kubernetes-D6OUjwSK.js";import{S as P}from"./rocket-Cf-B-XOR.js";const Y="/assets/adam-e-y0WnB_.webp",q="/assets/alex-DcCuDHPg.webp",W="/assets/baris-C0ZrZ10g.webp",X="/assets/hamza-NKKOZz1I.webp",G="/assets/stefan-B08Ftbba.webp";function M1(){const{setSurveyStep:s}=Q();function o(){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:()=>o(),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 _=[{name:"Adam",image:Y},{name:"Hamza",image:X},{name:"Alex",image:q},{name:"Stefan",image:G},{name:"Baris",image:W}];function $(){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center -space-x-[7px]",children:_.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 j1({email:s,fullName:o,submitHandler:l}){const i=t.useId(),r=t.useId(),d=t.useId(),{register:m,handleSubmit:x,control:h,watch:a,formState:{isValid:p}}=L({resolver:j(S),defaultValues:{fullName:o||"",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:i,className:"text-text-sm",children:"Name"}),e.jsx(E,{...m("fullName"),id:i,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(E,{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:c,value:C}})=>e.jsx(u,{checked:C,onCheckedChange:n=>c(!!n),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 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(V,{className:"h-5 w-5 shrink-0"})},{name:"Azure",icon:e.jsx(K,{className:"h-5 w-5 shrink-0"})},{name:"Native Kubernetes",icon:e.jsx(z,{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 o=t.useRef(null),{register:l,setValue:i,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=L({resolver:j(k),defaultValues:{providers:[]},shouldUnregister:!0}),h=r("other");return t.useEffect(()=>{var a;h&&((a=o.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((c,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(c.name),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!r("providers").includes(c.name)}),children:[e.jsx(u,{onCheckedChange:n=>{a(n?[...p,c.name]:p.filter(B=>B!==c.name))},value:c.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:[c.icon,c.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=>i("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),o.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"})),M=t.forwardRef(({children:s,className:o,id:l,...i},r)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:l,...i,ref:r,className:F("peer sr-only",o),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})]}));M.displayName="UseRadioButton";function Z1({submitHandler:s,user:o}){var d,m;const{handleSubmit:l,register:i,formState:{isValid:r}}=L({defaultValues:{primaryUse:(m=(d=o==null?void 0:o.metadata)==null?void 0:d.user_metadata)==null?void 0:m.primary_use},resolver:j(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(M,{id:"use-personal",...i("primaryUse"),value:"personal",children:[e.jsx(a1,{className:"h-7 w-7 fill-primary-400"}),e.jsx("span",{children:"Personal"})]}),e.jsxs(M,{...i("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(M,{...i("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",o1="/assets/flyte-Cj-xy_8I.svg",n1="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",i1="/assets/metaflow-weOkWNyT.svg",c1="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(P,{className:f})}],h1=[{name:"Metaflow",icon:i1},{name:"Flyte",icon:o1},{name:"Prefect",icon:c1},{name:"Kedro",icon:n1},{name:"Airflow",icon:l1}];function y1({submitHandler:s}){const o=t.useRef(null),{register:l,setValue:i,watch:r,handleSubmit:d,control:m,formState:{isValid:x}}=L({resolver:j(D),defaultValues:{usageReason:""},shouldUnregister:!0}),h=r("otherTool");return t.useEffect(()=>{var a;h&&((a=o.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:c})=>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:[c,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:n})=>e.jsx("li",{className:"",children:e.jsx(Z,{defaultValue:[],control:m,name:"comparison_tools",render:({field:{onChange:B,value:g,...v}})=>{var y,b;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(n),"border-theme-border-minimal bg-theme-surface-primary hover:border-theme-border-bold hover:shadow-sm":!((b=r("comparison_tools"))!=null&&b.includes(n))}),children:[e.jsx(u,{...v,checked:g==null?void 0:g.includes(n),onCheckedChange:N=>{B(N?[...g??[],n]:g==null?void 0:g.filter(I=>I!==n))},value:n,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:`${n} icon`}),n]})]})}})},n)),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=>i("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),o.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{j1 as A,L1 as I,Z1 as P,M1 as S,y1 as U};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as r}from"./@radix-C7hRs6Kx.js";import{B as a,m as o}from"./index-
|
1
|
+
import{j as r}from"./@radix-C7hRs6Kx.js";import{B as a,m as o}from"./index-D2iSHVZq.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-C7hRs6Kx.js";import{F as s}from"./Wizard-
|
1
|
+
import{j as r}from"./@radix-C7hRs6Kx.js";import{F as s}from"./Wizard-CMI6Ksgz.js";import{a}from"./ProviderRadio-BVDA-fAr.js";function n({children:o,displayCancel:t=!0}){return r.jsxs(s,{children:[t&&r.jsx(a,{}),o]})}export{n as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{o as n,p as r,q as a,j as u,s as o,F as i}from"./index-
|
1
|
+
import{o as n,p as r,q as a,j as u,s as o,F as i}from"./index-D2iSHVZq.js";import{a as c}from"./@tanstack-CSxjHCME.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};
|
zenml/zen_server/dashboard/assets/{configuration-form-DBZSb0FV.js → configuration-form-BtI2Y4eX.js}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
import{j as e,r as k}from"./@radix-C7hRs6Kx.js";import{j as I,o as q,F as Q,p as L,ai as X,ak as G,al as W,am as H,S as B,aX as ee,aY as se,ae as re,aZ as te,a_ as ae,a$ as ne,I as $,b0 as oe,b1 as ie,b2 as A,b3 as N,m as le,b4 as ce,B as me,Z as de,h as v,W as ue,z as C,l as pe,f as xe,ah as he,X as fe}from"./index-BygJE88j.js";import{b as M,h as je,a as O,c as ge}from"./@tanstack-CSxjHCME.js";import{s as ye,g as Ne,a as ve,D as Ce,b as be,f as we}from"./index-D9-ukAem.js";import{w as Se}from"./index-wYtmKLnQ.js";import{t as Fe}from"./zod-C0xYeTvL.js";import{b as Pe,C as ze,u as _e,F as Te}from"./index.esm-D7jFlf5N.js";import{b as Ee,C as ke}from"./ComponentIcon-B_7Y_oV-.js";import{S as Ae}from"./check-DK77doTf.js";import{S as Oe}from"./plus-COjQg3AG.js";import{C as De}from"./CodeSnippet-Di-loaZu.js";import{S as Ie}from"./file-text-BdxZdjP_.js";import{S as qe}from"./terminal-square-DMtel8mb.js";async function Qe({payload:s,workspaceId:t}){const a=q(L.workspaces.components(t)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Le(s){return M({...s,mutationFn:async({workspaceId:t,payload:a})=>Qe({workspaceId:t,payload:a})})}function Be({open:s,setOpen:t}){return e.jsx(X,{open:s,onOpenChange:t,children:e.jsxs(G,{className:"max-w-[600px]",children:[e.jsx(W,{children:e.jsx(H,{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 $e({connectorResourceType:s}){var h;const t=Pe(),[a,n]=k.useState(!1),[u,i]=k.useState(!1),p=je(ye.serviceConnectorListInfinite({resource_type:s,sort_by:"desc:created"}));if(p.isPending)return e.jsx(B,{className:"h-[60px] w-full"});if(p.isError)return e.jsx("div",{children:"Error"});const c=(h=p.data)==null?void 0:h.pages.flatMap(m=>m.items);return e.jsxs(e.Fragment,{children:[e.jsx(ze,{control:t.control,name:"connector",render:({field:m})=>e.jsxs(ee,{modal:!0,open:a,onOpenChange:n,children:[e.jsx(se,{asChild:!0,children:e.jsx("button",{className:re("w-full flex-1 truncate rounded-md border border-primary-400 bg-theme-surface-secondary px-2",{"h-7":!m.value,"py-2 pl-2 pr-3 text-left":m.value}),children:m.value?(()=>{const r=c.find(d=>d.id===m.value);return r?e.jsx(D,{connector:r}):"Select Connector"})():"Select Connector"})}),e.jsx(te,{className:"p-0",style:{width:"var(--radix-popover-trigger-width)"},align:"start",children:e.jsxs(ae,{filter:(r,d)=>r.toLowerCase().includes(d.toLowerCase())||r.includes("doNotFilter-")?1:0,children:[c.length>0&&e.jsx(ne,{placeholder:"Search connectors...",children:e.jsx($,{className:"w-full",inputSize:"sm"})}),e.jsx(oe,{className:"space-y-1 p-2",children:e.jsxs("div",{className:"space-y-1",children:[c.length>0?e.jsxs(e.Fragment,{children:[e.jsx(ie,{children:"No results"}),e.jsx(A,{className:"max-h-[300px] overflow-y-auto",children:c.map(r=>e.jsxs(N,{value:`${r.id}:${r.name}`,onSelect:d=>{const[f]=d.split(":");t.setValue("connector",m.value===f?"":f),n(!1)},children:[e.jsx(D,{connector:r}),e.jsx(Ae,{className:le("fill-brand-500 ml-auto size-4 shrink-0",m.value===r.id?"opacity-100":"opacity-0")})]},r.id))})]}):e.jsx("div",{className:"p-2 text-center text-theme-text-secondary",children:"No connectors found"}),e.jsx(ce,{className:"-mx-1"}),e.jsxs(A,{children:[p.hasNextPage&&e.jsx(N,{value:"doNotFilter-fetch-more",className:"flex items-center font-semibold",onSelect:()=>{p.fetchNextPage()},children:"Load more"}),e.jsxs(N,{value:"doNotFilter-create-new",className:"flex items-center gap-2 font-semibold",onSelect:()=>{n(!1),i(!0)},children:[e.jsx(Oe,{className:"size-3 shrink-0 fill-neutral-400"}),"Create new Service Connector"]})]})]})})]})})]})}),e.jsx(Be,{open:u,setOpen:i})]})}function D({connector:s}){var t,a;return e.jsxs("div",{className:"flex items-center gap-2",children:[typeof((t=s.body)==null?void 0:t.connector_type)=="object"&&((a=s.body)==null?void 0:a.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 Me({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(Ee,{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($e,{connectorResourceType:s})]})}function Re({sdkDocsUrl:s,name:t,logoUrl:a,type:n}){return e.jsxs(me,{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:a?e.jsx("img",{width:60,height:60,className:"aspect-square object-contain",src:de(a),alt:`Logo of ${t}`}):e.jsx(ke,{className:"aspect-square h-[60px] w-[60px] fill-primary-400 object-contain",type:n})}),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(v,{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(v,{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(qe,{className:"size-5 shrink-0 fill-primary-600"}),"Navigate our examples"]})})}),e.jsx("li",{children:e.jsx(v,{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(ue,{className:"size-5 shrink-0 fill-primary-600"}),"Read our blog"]})})})]})]})]})}const Ue=C.object({componentName:C.string().min(1,"Component name is required"),connector:C.string()});async function Ve({componentId:s,payload:t}){const a=q(L.components.detail(s)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify(t)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Ze(s){return M({...s,mutationFn:async({payload:t,componentId:a})=>Ve({payload:t,componentId:a})})}function is({flavorId:s,formId:t,successHandler:a,FooterComponent:n,useMaxHeight:u=!1,component:i,isCreate:p=!0}){var r,d,f,g;const c=O(we.flavorDetail(s)),h=pe(),m=O(Se.workspaceDetail("default"));return c.isPending||h.isPending||m.isPending?e.jsx("div",{className:"px-8 py-5",children:e.jsx(B,{className:"h-[250px] w-full"})}):c.isError||h.isError||m.isError?e.jsx("p",{className:"px-8 py-5",children:"Failed to fetch flavor"}):e.jsx(Ke,{isCreate:p,component:i,useMaxHeight:u,infoTile:e.jsx(Re,{type:((r=c.data.body)==null?void 0:r.type)||"orchestrator",name:c.data.name,sdkDocsUrl:((d=c.data.metadata)==null?void 0:d.sdk_docs_url)??void 0,logoUrl:((f=c.data.body)==null?void 0:f.logo_url)??void 0}),FooterComponent:n,successHandler:a,workspaceId:m.data.id,flavor:c.data,userId:h.data.id,formId:t,schema:(g=c.data.metadata)==null?void 0:g.config_schema})}function Ke({formId:s,schema:t,flavor:a,userId:n,workspaceId:u,successHandler:i,infoTile:p,FooterComponent:c,useMaxHeight:h,isCreate:m,component:r}){var S,F,P,z,_;const{toast:d}=xe(),f=fe.all,g=ge(),b=Le({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),R=Ze({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),U=t.properties||{},y=t.required||[],V=t.$defs;function Z({componentName:o,...l}){if(Object.keys(l).forEach(x=>{(l[x]===""||l[x]===null||l[x]===void 0||Array.isArray(l[x])&&l[x].length===0||typeof l[x]=="object"&&!Array.isArray(l[x])&&Object.keys(l[x]).length===0)&&delete l[x]}),!a.body)return;const{connector:T,...E}=l;if(m)b.mutate({workspaceId:u,payload:{name:o,configuration:E,flavor:a.name,type:a.body.type,user:n,connector:T||null,workspace:u}});else{if(!r)return;R.mutate({componentId:r.id,payload:{name:o,configuration:E,connector:T||null}})}}const K=Ue.merge(Ne(t)),Y=ve(t,(S=r==null?void 0:r.metadata)==null?void 0:S.configuration),j=_e({resolver:Fe(K),defaultValues:{componentName:(r==null?void 0:r.name)??"",connector:((P=(F=r==null?void 0:r.metadata)==null?void 0:F.connector)==null?void 0:P.id)??"",...Y}}),{handleSubmit:J}=j,w=Object.entries(U).sort(([o],[l])=>y.includes(o)&&!y.includes(l)?-1:!y.includes(o)&&y.includes(l)?1:0);return e.jsx(Te,{...j,children:e.jsxs("form",{onSubmit:o=>(o.stopPropagation(),J(Z)(o)),id:s,children:[e.jsx(he,{viewportClassName:h?"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:[(_=a.metadata)!=null&&_.connector_resource_type?e.jsx(Me,{connectorResourceType:a.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(([o,l])=>e.jsx(Ce,{definitions:V,isOptional:be(o,y),name:o,schema:l},o))]}):null]}),e.jsx("div",{className:"w-full xl:w-1/3",children:p})]})]})}),e.jsx(c,{formId:s,isPending:b.isPending})]})})}export{is as C};
|
1
|
+
import{j as e,r as k}from"./@radix-C7hRs6Kx.js";import{j as I,o as q,F as Q,p as L,ai as X,ak as G,al as W,am as H,S as B,aX as ee,aY as se,ae as re,aZ as te,a_ as ae,a$ as ne,I as $,b0 as oe,b1 as ie,b2 as A,b3 as N,m as le,b4 as ce,B as me,Z as de,h as v,W as ue,z as C,l as pe,f as xe,ah as he,X as fe}from"./index-D2iSHVZq.js";import{b as M,h as je,a as O,c as ge}from"./@tanstack-CSxjHCME.js";import{s as ye,g as Ne,a as ve,D as Ce,b as be,f as we}from"./index-CmLcvK2z.js";import{w as Se}from"./index-CFESYpe4.js";import{t as Fe}from"./zod-C0xYeTvL.js";import{b as Pe,C as ze,u as _e,F as Te}from"./index.esm-D7jFlf5N.js";import{b as Ee,C as ke}from"./ComponentIcon-ils7uNAk.js";import{S as Ae}from"./check-DK77doTf.js";import{S as Oe}from"./plus-COjQg3AG.js";import{C as De}from"./CodeSnippet-CvI6D0wx.js";import{S as Ie}from"./file-text-BdxZdjP_.js";import{S as qe}from"./terminal-square-DMtel8mb.js";async function Qe({payload:s,workspaceId:t}){const a=q(L.workspaces.components(t)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Le(s){return M({...s,mutationFn:async({workspaceId:t,payload:a})=>Qe({workspaceId:t,payload:a})})}function Be({open:s,setOpen:t}){return e.jsx(X,{open:s,onOpenChange:t,children:e.jsxs(G,{className:"max-w-[600px]",children:[e.jsx(W,{children:e.jsx(H,{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 $e({connectorResourceType:s}){var h;const t=Pe(),[a,n]=k.useState(!1),[u,i]=k.useState(!1),p=je(ye.serviceConnectorListInfinite({resource_type:s,sort_by:"desc:created"}));if(p.isPending)return e.jsx(B,{className:"h-[60px] w-full"});if(p.isError)return e.jsx("div",{children:"Error"});const c=(h=p.data)==null?void 0:h.pages.flatMap(m=>m.items);return e.jsxs(e.Fragment,{children:[e.jsx(ze,{control:t.control,name:"connector",render:({field:m})=>e.jsxs(ee,{modal:!0,open:a,onOpenChange:n,children:[e.jsx(se,{asChild:!0,children:e.jsx("button",{className:re("w-full flex-1 truncate rounded-md border border-primary-400 bg-theme-surface-secondary px-2",{"h-7":!m.value,"py-2 pl-2 pr-3 text-left":m.value}),children:m.value?(()=>{const r=c.find(d=>d.id===m.value);return r?e.jsx(D,{connector:r}):"Select Connector"})():"Select Connector"})}),e.jsx(te,{className:"p-0",style:{width:"var(--radix-popover-trigger-width)"},align:"start",children:e.jsxs(ae,{filter:(r,d)=>r.toLowerCase().includes(d.toLowerCase())||r.includes("doNotFilter-")?1:0,children:[c.length>0&&e.jsx(ne,{placeholder:"Search connectors...",children:e.jsx($,{className:"w-full",inputSize:"sm"})}),e.jsx(oe,{className:"space-y-1 p-2",children:e.jsxs("div",{className:"space-y-1",children:[c.length>0?e.jsxs(e.Fragment,{children:[e.jsx(ie,{children:"No results"}),e.jsx(A,{className:"max-h-[300px] overflow-y-auto",children:c.map(r=>e.jsxs(N,{value:`${r.id}:${r.name}`,onSelect:d=>{const[f]=d.split(":");t.setValue("connector",m.value===f?"":f),n(!1)},children:[e.jsx(D,{connector:r}),e.jsx(Ae,{className:le("fill-brand-500 ml-auto size-4 shrink-0",m.value===r.id?"opacity-100":"opacity-0")})]},r.id))})]}):e.jsx("div",{className:"p-2 text-center text-theme-text-secondary",children:"No connectors found"}),e.jsx(ce,{className:"-mx-1"}),e.jsxs(A,{children:[p.hasNextPage&&e.jsx(N,{value:"doNotFilter-fetch-more",className:"flex items-center font-semibold",onSelect:()=>{p.fetchNextPage()},children:"Load more"}),e.jsxs(N,{value:"doNotFilter-create-new",className:"flex items-center gap-2 font-semibold",onSelect:()=>{n(!1),i(!0)},children:[e.jsx(Oe,{className:"size-3 shrink-0 fill-neutral-400"}),"Create new Service Connector"]})]})]})})]})})]})}),e.jsx(Be,{open:u,setOpen:i})]})}function D({connector:s}){var t,a;return e.jsxs("div",{className:"flex items-center gap-2",children:[typeof((t=s.body)==null?void 0:t.connector_type)=="object"&&((a=s.body)==null?void 0:a.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 Me({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(Ee,{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($e,{connectorResourceType:s})]})}function Re({sdkDocsUrl:s,name:t,logoUrl:a,type:n}){return e.jsxs(me,{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:a?e.jsx("img",{width:60,height:60,className:"aspect-square object-contain",src:de(a),alt:`Logo of ${t}`}):e.jsx(ke,{className:"aspect-square h-[60px] w-[60px] fill-primary-400 object-contain",type:n})}),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(v,{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(v,{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(qe,{className:"size-5 shrink-0 fill-primary-600"}),"Navigate our examples"]})})}),e.jsx("li",{children:e.jsx(v,{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(ue,{className:"size-5 shrink-0 fill-primary-600"}),"Read our blog"]})})})]})]})]})}const Ue=C.object({componentName:C.string().min(1,"Component name is required"),connector:C.string()});async function Ve({componentId:s,payload:t}){const a=q(L.components.detail(s)),n=await I(a,{headers:{"Content-Type":"application/json"},method:"PUT",body:JSON.stringify(t)});if(!n.ok){const u=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>"Error while creating new stack");throw new Q({status:n.status,statusText:n.statusText,message:u})}return n.json()}function Ze(s){return M({...s,mutationFn:async({payload:t,componentId:a})=>Ve({payload:t,componentId:a})})}function is({flavorId:s,formId:t,successHandler:a,FooterComponent:n,useMaxHeight:u=!1,component:i,isCreate:p=!0}){var r,d,f,g;const c=O(we.flavorDetail(s)),h=pe(),m=O(Se.workspaceDetail("default"));return c.isPending||h.isPending||m.isPending?e.jsx("div",{className:"px-8 py-5",children:e.jsx(B,{className:"h-[250px] w-full"})}):c.isError||h.isError||m.isError?e.jsx("p",{className:"px-8 py-5",children:"Failed to fetch flavor"}):e.jsx(Ke,{isCreate:p,component:i,useMaxHeight:u,infoTile:e.jsx(Re,{type:((r=c.data.body)==null?void 0:r.type)||"orchestrator",name:c.data.name,sdkDocsUrl:((d=c.data.metadata)==null?void 0:d.sdk_docs_url)??void 0,logoUrl:((f=c.data.body)==null?void 0:f.logo_url)??void 0}),FooterComponent:n,successHandler:a,workspaceId:m.data.id,flavor:c.data,userId:h.data.id,formId:t,schema:(g=c.data.metadata)==null?void 0:g.config_schema})}function Ke({formId:s,schema:t,flavor:a,userId:n,workspaceId:u,successHandler:i,infoTile:p,FooterComponent:c,useMaxHeight:h,isCreate:m,component:r}){var S,F,P,z,_;const{toast:d}=xe(),f=fe.all,g=ge(),b=Le({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),R=Ze({onSuccess:({id:o})=>{g.invalidateQueries({queryKey:f}),i==null||i(o)},onError:o=>{d({emphasis:"subtle",status:"error",rounded:!0,description:o.message})}}),U=t.properties||{},y=t.required||[],V=t.$defs;function Z({componentName:o,...l}){if(Object.keys(l).forEach(x=>{(l[x]===""||l[x]===null||l[x]===void 0||Array.isArray(l[x])&&l[x].length===0||typeof l[x]=="object"&&!Array.isArray(l[x])&&Object.keys(l[x]).length===0)&&delete l[x]}),!a.body)return;const{connector:T,...E}=l;if(m)b.mutate({workspaceId:u,payload:{name:o,configuration:E,flavor:a.name,type:a.body.type,user:n,connector:T||null,workspace:u}});else{if(!r)return;R.mutate({componentId:r.id,payload:{name:o,configuration:E,connector:T||null}})}}const K=Ue.merge(Ne(t)),Y=ve(t,(S=r==null?void 0:r.metadata)==null?void 0:S.configuration),j=_e({resolver:Fe(K),defaultValues:{componentName:(r==null?void 0:r.name)??"",connector:((P=(F=r==null?void 0:r.metadata)==null?void 0:F.connector)==null?void 0:P.id)??"",...Y}}),{handleSubmit:J}=j,w=Object.entries(U).sort(([o],[l])=>y.includes(o)&&!y.includes(l)?-1:!y.includes(o)&&y.includes(l)?1:0);return e.jsx(Te,{...j,children:e.jsxs("form",{onSubmit:o=>(o.stopPropagation(),J(Z)(o)),id:s,children:[e.jsx(he,{viewportClassName:h?"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:[(_=a.metadata)!=null&&_.connector_resource_type?e.jsx(Me,{connectorResourceType:a.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(([o,l])=>e.jsx(Ce,{definitions:V,isOptional:be(o,y),name:o,schema:l},o))]}):null]}),e.jsx("div",{className:"w-full xl:w-1/3",children:p})]})]})}),e.jsx(c,{formId:s,isPending:b.isPending})]})})}export{is as C};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,j as n}from"./@radix-C7hRs6Kx.js";import{m as i,o as u,F as d,p as m}from"./index-
|
1
|
+
import{r as o,j as n}from"./@radix-C7hRs6Kx.js";import{m as i,o as u,F as d,p as m}from"./index-D2iSHVZq.js";import{b as p}from"./@tanstack-CSxjHCME.js";const l=o.forwardRef(({className:e,...t},r)=>n.jsx("label",{ref:r,...t,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:t,...r},a)=>n.jsx("input",{type:"radio",ref:a,...r,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 x(e){return new Promise(t=>setTimeout(t,e))}async function h({workspaceId:e,payload:t}){const r=u(m.workspaces.stacks(e)),a=await fetch(r,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok){const c=await a.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while creating new stack");throw new d({status:a.status,statusText:a.statusText,message:c})}return a.json()}function g(e){return p({...e,mutationFn:async({workspaceId:t,payload:r})=>h({workspaceId:t,payload:r})})}export{l as R,f as a,x as s,g as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{o,F as r,p as i}from"./index-
|
1
|
+
import{o,F as r,p as i}from"./index-D2iSHVZq.js";import{b as u}from"./@tanstack-CSxjHCME.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 p(e){return u({mutationFn:c,...e})}export{p as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{j as s}from"./@radix-C7hRs6Kx.js";import{S as l,h as c,Z as m,ac as d}from"./index-
|
1
|
+
import{j as s}from"./@radix-C7hRs6Kx.js";import{S as l,h as c,Z as m,ac as d}from"./index-D2iSHVZq.js";import{f as p}from"./index-CmLcvK2z.js";import{h as u}from"./@tanstack-CSxjHCME.js";import{C as x}from"./ComponentIcon-ils7uNAk.js";function y({type:i,setSelectedFlavor:e}){const a=u(p.flavorListInfinite({type:i}));if(a.isPending)return s.jsx(g,{});if(a.isError)return s.jsx("p",{children:"Failed to fetch Flavor List"});const{data:t}=a;return s.jsx("ul",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 2xl:grid-cols-4",children:t.pages.map(n=>n.items.map(r=>{var o;return s.jsx("li",{className:"",children:s.jsx(f,{type:i,onClick:()=>e(r),id:r.id,name:r.name,logoUrl:((o=r.body)==null?void 0:o.logo_url)??void 0})},r.id)}))})}function f({name:i,logoUrl:e,onClick:a,type:t}){return s.jsxs(c,{onClick:a,intent:"secondary",emphasis:"subtle",className:"h-auto w-full gap-2 px-5 py-3",children:[e?s.jsx("img",{alt:`Logo of ${i}`,width:36,height:36,className:"aspect-square object-contain",src:m(e)}):s.jsx(x,{className:"aspect-square h-[36px] w-[36px] fill-primary-400 object-contain",type:t}),s.jsx("span",{className:"min-w-0 truncate",children:d(i)})]})}function g(){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((i,e)=>s.jsx(l,{className:"h-[70px] w-full"},e))})}export{y as S};
|
@@ -1 +1 @@
|
|
1
|
-
import{r as n,j as s}from"./@radix-C7hRs6Kx.js";import{S as u}from"./check-circle-mvyzYvIW.js";import{ba as p,B as h,h as d,r as x,z as r}from"./index-
|
1
|
+
import{r as n,j as s}from"./@radix-C7hRs6Kx.js";import{S as u}from"./check-circle-mvyzYvIW.js";import{ba as p,B as h,h as d,r as x,z as r}from"./index-D2iSHVZq.js";import{d as f,L as g}from"./@react-router-CNP6g_RL.js";import{a as S}from"./UpdatePasswordSchemas-DbFEaezI.js";const c=n.createContext(null);function R({children:e,initialStep:t=1}){const[a,o]=n.useState(t);return s.jsx(c.Provider,{value:{surveyStep:a,setSurveyStep:o},children:e})}function y(){const e=n.useContext(c);if(e===null)throw new Error("useSurveyContext must be used within an SurveyProvider");return e}function _({stepAmount:e}){const{surveyStep:t}=y();return t>e?null:s.jsx("ol",{className:"flex flex-wrap justify-center gap-1 pb-5","aria-label":"progress",children:Array.from({length:e},(a,o)=>s.jsx("li",{"aria-current":t===o+1?"step":void 0,className:`h-0.5 w-[90px] rounded-rounded ${t===o+1?"bg-primary-100":t>o?"bg-primary-300":"bg-neutral-200"}`},o))})}const v=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289L19.7071 11.2929C20.0976 11.6834 20.0976 12.3166 19.7071 12.7071L12.7071 19.7071C12.3166 20.0976 11.6834 20.0976 11.2929 19.7071C10.9024 19.3166 10.9024 18.6834 11.2929 18.2929L16.5858 13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H16.5858L11.2929 5.70711C10.9024 5.31658 10.9024 4.68342 11.2929 4.29289Z"}));function U({username:e,subHeader:t,displayBody:a=!0}){const[o]=f(),i=o.get("redirect"),m=i&&`${window.location.origin}${i}`,l=p.safeParse(m);return s.jsxs(h,{className:"flex max-w-[540px] flex-col items-center justify-center space-y-7 px-7 py-9",children:[s.jsx(u,{className:"h-[120px] w-[120px] fill-theme-text-success"}),s.jsxs("div",{className:"space-y-3 text-center",children:[s.jsxs("p",{className:"text-display-xs font-semibold",children:["Congratulations!",s.jsx("br",{}),t]}),a&&s.jsxs("p",{className:"text-theme-text-secondary",children:["You can log in to the dashboard with your username"," ",s.jsx("span",{className:"font-semibold text-theme-text-primary",children:e})," and your password to start exploring!"]}),s.jsx(d,{className:"inline-flex",size:"md",intent:"primary",asChild:!0,children:s.jsxs(g,{to:l.success?l.data:x.home,children:[s.jsx("span",{children:"Go to Dashboard"}),s.jsx(v,{className:"h-5 w-5 fill-white"})]})})]})]})}const F=r.object({fullName:r.string().min(1),email:r.union([r.string().email(),r.literal("")]),getUpdates:r.boolean()}).refine(e=>e.getUpdates?e.email!=="":!0),L=r.object({primaryUse:r.string().min(1)}),B=r.object({providers:r.string().array(),other:r.boolean(),otherVal:r.string().optional()}).refine(e=>e.other?e.otherVal!=="":e.providers.length>0),E=r.object({serverName:r.string().optional()});function w(e=!1){return S.extend({username:r.string()}).refine(t=>t.newPassword===t.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"}).refine(t=>e?t.username.length>0:!0)}w();const T=r.object({usageReason:r.union([r.enum(["exploring","planning_poc","comparing_tools","implementing_production_environment"]),r.literal("")]),comparison_tools:r.string().array().optional(),otherTool:r.boolean().optional(),otherToolVal:r.string().optional()}).refine(e=>{var t;return e.usageReason.length===0?!1:e.otherTool?e.otherToolVal!=="":e.usageReason==="comparing_tools"?((t=e.comparison_tools)==null?void 0:t.length)??!1:!0});export{B as I,_ as S,T as U,U as a,R as b,E as c,F as d,w as g,L as p,y as u};
|
@@ -1 +1 @@
|
|
1
|
-
import{q as o}from"./@tanstack-CSxjHCME.js";import{o as n,s as i,F as c,p as u}from"./index-
|
1
|
+
import{q as o}from"./@tanstack-CSxjHCME.js";import{o as n,s as i,F as c,p as u}from"./index-D2iSHVZq.js";async function l({workspaceId:e}){const a=n(u.workspaces.detail(e)),t=await fetch(a,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(t.status===404&&i(),!t.ok){const r=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>`Error while fetching workspace ${e}`);throw new c({status:t.status,statusText:t.statusText,message:r})}return t.json()}const p={all:["workspaces"],workspaceDetail:e=>o({queryKey:[...p.all,e],queryFn:async()=>l({workspaceId:e})})};export{p as w};
|
@@ -1 +1 @@
|
|
1
|
-
import{i as q,q as T}from"./@tanstack-CSxjHCME.js";import{o as g,p as N,q as R,j as S,s as v,F as b,z as c,h as E,ao as k,az as I,aA as P,aB as _,aC as J,ah as K,aD as V,ac as B,I as C,b5 as G}from"./index-BygJE88j.js";import{j as a}from"./@radix-C7hRs6Kx.js";import{S as L}from"./plus-COjQg3AG.js";import{S as Q}from"./trash-BWSZ7NRK.js";import{b as f,a as Z,C as x}from"./index.esm-D7jFlf5N.js";import{c as H,i as M}from"./type-guards-CaeD8wHO.js";async function O(e){const r=g(N.flavors.all)+(e?`?${R(e)}`:""),t=await S(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const o=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching flavors");throw new b({status:t.status,statusText:t.statusText,message:o})}return t.json()}async function U(e){const r=g(N.flavors.detail(e)),t=await S(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const o=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>`Error while fetching flavor ${e}`);throw new b({status:t.status,statusText:t.statusText,message:o})}return t.json()}const F={all:["flavors"],flavorList:e=>T({queryKey:[...F.all,e],queryFn:async()=>O(e)}),flavorDetail:e=>T({queryKey:[...F.all,e],queryFn:async()=>U(e)}),flavorListInfinite:e=>q({queryKey:[...F.all,e,"infinite"],queryFn:({pageParam:r})=>O({...e,page:r}),getNextPageParam:r=>r.index<r.total_pages?r.index+1:null,initialPageParam:1})};function Se(e){const r=Object.keys(e).reduce((t,o)=>(t[o]=c.string().trim().min(1),t),{});return c.object(r)}function ve(e){if(!e.properties)return c.object({});const r=e.required||[],t=e.properties,o=Object.keys(t).reduce((n,s)=>{const i=t[s];if(!i)return n;const l=Y(s,r);return n[s]=$(i,e.$defs,l),n},{});return c.object(o)}function $(e,r,t,o=!1){let n=w(e,r);if(n.anyOf){const i=n.anyOf.find(l=>l.type!==null);i&&(n=w(i,r))}switch(n.allOf&&(n=w(n.allOf[0],r)),n.type){case"string":return t?c.string().trim():c.string().trim().min(1,"Required");case"boolean":return t?c.union([c.literal(""),c.boolean()]):c.boolean();case"array":{if(o)return t?c.union([c.literal(""),p]):p;const i=c.array($(n.items||{},r,!1,!1));return t?i:i.min(1)}case"object":return t?c.union([c.literal(""),p]):p;case"integer":return t?c.union([c.literal(""),c.preprocess(i=>Number(i),c.number().int())]):c.preprocess(i=>Number(i),c.number().int());default:return t?c.union([c.literal(""),c.string()]):c.string().min(1,"Required")}}function Y(e,r){return!r.includes(e)}const p=c.string().refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:"Invalid JSON"}).transform(e=>e===""?e:JSON.parse(e));function w(e,r){if(!e.$ref||!r)return e;const t=e.$ref.split("/").pop();return!t||!r[t]?e:r[t]}function d({label:e,isOptional:r}){return a.jsxs(a.Fragment,{children:[e,!r&&a.jsx("span",{className:"text-theme-text-error","aria-label":"required",children:"*"})]})}function W({name:e,label:r,isOptional:t,schema:o,definitions:n}){const s=f(),{fields:i,append:l,remove:u}=Z({name:e,control:s.control});return a.jsxs("div",{className:"space-y-3",children:[!!r&&a.jsx("label",{className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx("ul",{className:"space-y-5",children:i.map((h,m)=>a.jsxs("li",{className:"flex w-full items-center gap-4 [&>div]:w-full",children:[a.jsx(fe,{isNested:!0,name:`${e}.${m}`,schema:o,isOptional:t,definitions:n}),a.jsxs(E,{className:"h-7 w-7",emphasis:"subtle",size:"sm",type:"button",onClick:()=>u(m),children:[a.jsx(Q,{className:"h-5 w-5 fill-primary-900"}),a.jsx("span",{className:"sr-only",children:"remove"})]})]},h.id))}),a.jsxs(E,{className:"h-7 w-7",emphasis:"subtle",type:"button",onClick:()=>l(""),children:[a.jsx(L,{className:"h-5 w-5 fill-primary-900"}),a.jsx("p",{className:"sr-only",children:"Add Item"})]})]})}function X({name:e,isOptional:r,label:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[!!t&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:t,isOptional:r})}),a.jsx(x,{control:o.control,name:e,render:({field:{onChange:i,value:l,...u}})=>a.jsx(k,{id:e,checked:l,onCheckedChange:h=>i(h),...u})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function ee({name:e,label:r,isOptional:t,enumValues:o}){var i;const n=f(),s=n.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!r&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx(x,{control:n.control,name:e,render:({field:{onChange:l,ref:u,...h}})=>a.jsxs(I,{...h,onValueChange:l,children:[a.jsx(P,{"data-error":s?"true":"false",className:"h-7 max-w-full truncate border border-neutral-300 px-2 text-left text-text-sm data-[error=true]:border-error-500",children:a.jsx(_,{placeholder:"Select Option"})}),a.jsx(J,{children:a.jsx(K,{viewportClassName:"max-h-[300px]",children:o.map(m=>a.jsx(V,{className:"space-x-2",value:m,children:m},m))})})]})}),s&&a.jsx("p",{className:"text-text-sm text-error-500",children:(i=s.message)==null?void 0:i.toString()})]})}function re(e){return e.type==="string"}function te(e){return e.type==="string"&&e.enum!==void 0}function se(e){return e.type==="string"&&!!e.sensitive}function z(e){return e.type==="boolean"}function D(e){return e.type==="object"}function y(e){return e.type==="array"}function ne(e){return e.type==="integer"}function ae(e){var r;return((r=e.enum)==null?void 0:r.map(t=>t.toString()))||[]}function j(e,r){if(!e.$ref||!r)return e;const t=e.$ref.replace("#/$defs/",""),o=r[t];return o||console.error(`Could not resolve $ref: ${e.$ref}`),o}function oe(e,r){return e.title?e.title:B(r)}function be(e,r){const t=Object.entries(e.properties||{}).reduce((o,[n,s])=>{let i="";return s.default?z(s)?i=s.default:D(s)?i=JSON.stringify(s.default):y(s)?i=s.default:i=s.default.toString():y(s)&&(i=[]),{...o,[n]:i}},{});return r&&Object.entries(r).forEach(([o,n])=>{t[o]=H(n)?n.map(s=>JSON.stringify(s)):M(n)?JSON.stringify(n):n}),t}function ie({name:e,isOptional:r,label:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!t&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:t,isOptional:r})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx(C,{inputSize:"md",className:"w-full data-[error=true]:border-error-500",id:e,...i,type:"number","data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function ce({name:e,label:r,isOptional:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!r&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx("textarea",{rows:4,placeholder:"Please paste your JSON",className:G({inputSize:"md",className:"h-auto w-full resize-none font-mono data-[error=true]:border-error-500"}),id:e,...i,"data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function le({name:e,isOptional:r,label:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!t&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:t,isOptional:r})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx(C,{inputSize:"md",className:"w-full data-[error=true]:border-error-500",id:e,...i,"data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function ue({name:e,label:r,isOptional:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!r&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx(C,{placeholder:"Use {{<SECRET_NAME>.<SECRET_KEY>}} to reference a secret",inputSize:"md",className:"w-full placeholder:font-mono data-[error=true]:border-error-500",id:e,...i,type:"text","data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function fe({schema:e,name:r,isOptional:t,definitions:o,isNested:n}){let s=j(e,o);n&&s.items&&(s=j(s.items,o)),n&&s.prefixItems&&(s=j(s.prefixItems[0],o));const i=n?"":oe(s,r);if(s.anyOf){const l=s.anyOf.find(u=>u.type!==null);if(l){const u=j(l,o);s={...s,...u}}}if(s.allOf){const l=j(s.allOf[0],o);s={...s,...l}}if(te(s))return a.jsx(ee,{name:r,label:i,schema:e,isOptional:t,enumValues:ae(s)});if(se(s))return a.jsx(ue,{name:r,label:i,schema:s,isOptional:t});if(ne(s))return a.jsx(ie,{name:r,label:i,schema:s,isOptional:t});if(re(s))return a.jsx(le,{name:r,label:i,schema:s,isOptional:t});if(z(s))return a.jsx(X,{name:r,label:i,schema:s,isOptional:t});if(D(s)||y(s)&&n)return a.jsx(ce,{name:r,label:i,schema:s,isOptional:t});if(y(s))return a.jsx(W,{definitions:o,name:r,label:i,schema:s,isOptional:t})}async function de(e){const r=g(N.serviceConnectors.types.detail(e)),t=await S(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const o=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching service connector type");throw new b({status:t.status,statusText:t.statusText,message:o})}return t.json()}async function me(e){const r=R(e).toString(),t=g(N.serviceConnectors.list+(r?`?${r}`:"")),o=await S(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(o.status===404&&v(),!o.ok){const n=await o.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching service connector list");throw new b({status:o.status,statusText:o.statusText,message:n})}return o.json()}const A={connectorTypes:["service_connector_types"],connectors:["service_connectors"],serviceConnectorTypeDetail:e=>T({queryKey:[...A.connectorTypes,e],queryFn:async()=>de(e)}),serviceConnectorListInfinite:(e={})=>q({queryKey:[...A.connectors,e,"infinite"],queryFn:({pageParam:r})=>me({...e,page:r}),getNextPageParam:r=>r.index<r.total_pages?r.index+1:null,initialPageParam:1})};export{fe as D,be as a,Y as b,F as f,ve as g,A as s,Se as z};
|
1
|
+
import{i as q,q as T}from"./@tanstack-CSxjHCME.js";import{o as g,p as N,q as R,j as S,s as v,F as b,z as c,h as E,ao as k,az as I,aA as P,aB as _,aC as J,ah as K,aD as V,ac as B,I as C,b5 as G}from"./index-D2iSHVZq.js";import{j as a}from"./@radix-C7hRs6Kx.js";import{S as L}from"./plus-COjQg3AG.js";import{S as Q}from"./trash-BWSZ7NRK.js";import{b as f,a as Z,C as x}from"./index.esm-D7jFlf5N.js";import{c as H,i as M}from"./type-guards-CaeD8wHO.js";async function O(e){const r=g(N.flavors.all)+(e?`?${R(e)}`:""),t=await S(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const o=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching flavors");throw new b({status:t.status,statusText:t.statusText,message:o})}return t.json()}async function U(e){const r=g(N.flavors.detail(e)),t=await S(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const o=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>`Error while fetching flavor ${e}`);throw new b({status:t.status,statusText:t.statusText,message:o})}return t.json()}const F={all:["flavors"],flavorList:e=>T({queryKey:[...F.all,e],queryFn:async()=>O(e)}),flavorDetail:e=>T({queryKey:[...F.all,e],queryFn:async()=>U(e)}),flavorListInfinite:e=>q({queryKey:[...F.all,e,"infinite"],queryFn:({pageParam:r})=>O({...e,page:r}),getNextPageParam:r=>r.index<r.total_pages?r.index+1:null,initialPageParam:1})};function Se(e){const r=Object.keys(e).reduce((t,o)=>(t[o]=c.string().trim().min(1),t),{});return c.object(r)}function ve(e){if(!e.properties)return c.object({});const r=e.required||[],t=e.properties,o=Object.keys(t).reduce((n,s)=>{const i=t[s];if(!i)return n;const l=Y(s,r);return n[s]=$(i,e.$defs,l),n},{});return c.object(o)}function $(e,r,t,o=!1){let n=w(e,r);if(n.anyOf){const i=n.anyOf.find(l=>l.type!==null);i&&(n=w(i,r))}switch(n.allOf&&(n=w(n.allOf[0],r)),n.type){case"string":return t?c.string().trim():c.string().trim().min(1,"Required");case"boolean":return t?c.union([c.literal(""),c.boolean()]):c.boolean();case"array":{if(o)return t?c.union([c.literal(""),p]):p;const i=c.array($(n.items||{},r,!1,!1));return t?i:i.min(1)}case"object":return t?c.union([c.literal(""),p]):p;case"integer":return t?c.union([c.literal(""),c.preprocess(i=>Number(i),c.number().int())]):c.preprocess(i=>Number(i),c.number().int());default:return t?c.union([c.literal(""),c.string()]):c.string().min(1,"Required")}}function Y(e,r){return!r.includes(e)}const p=c.string().refine(e=>{try{return JSON.parse(e),!0}catch{return!1}},{message:"Invalid JSON"}).transform(e=>e===""?e:JSON.parse(e));function w(e,r){if(!e.$ref||!r)return e;const t=e.$ref.split("/").pop();return!t||!r[t]?e:r[t]}function d({label:e,isOptional:r}){return a.jsxs(a.Fragment,{children:[e,!r&&a.jsx("span",{className:"text-theme-text-error","aria-label":"required",children:"*"})]})}function W({name:e,label:r,isOptional:t,schema:o,definitions:n}){const s=f(),{fields:i,append:l,remove:u}=Z({name:e,control:s.control});return a.jsxs("div",{className:"space-y-3",children:[!!r&&a.jsx("label",{className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx("ul",{className:"space-y-5",children:i.map((h,m)=>a.jsxs("li",{className:"flex w-full items-center gap-4 [&>div]:w-full",children:[a.jsx(fe,{isNested:!0,name:`${e}.${m}`,schema:o,isOptional:t,definitions:n}),a.jsxs(E,{className:"h-7 w-7",emphasis:"subtle",size:"sm",type:"button",onClick:()=>u(m),children:[a.jsx(Q,{className:"h-5 w-5 fill-primary-900"}),a.jsx("span",{className:"sr-only",children:"remove"})]})]},h.id))}),a.jsxs(E,{className:"h-7 w-7",emphasis:"subtle",type:"button",onClick:()=>l(""),children:[a.jsx(L,{className:"h-5 w-5 fill-primary-900"}),a.jsx("p",{className:"sr-only",children:"Add Item"})]})]})}function X({name:e,isOptional:r,label:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[!!t&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:t,isOptional:r})}),a.jsx(x,{control:o.control,name:e,render:({field:{onChange:i,value:l,...u}})=>a.jsx(k,{id:e,checked:l,onCheckedChange:h=>i(h),...u})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function ee({name:e,label:r,isOptional:t,enumValues:o}){var i;const n=f(),s=n.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!r&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx(x,{control:n.control,name:e,render:({field:{onChange:l,ref:u,...h}})=>a.jsxs(I,{...h,onValueChange:l,children:[a.jsx(P,{"data-error":s?"true":"false",className:"h-7 max-w-full truncate border border-neutral-300 px-2 text-left text-text-sm data-[error=true]:border-error-500",children:a.jsx(_,{placeholder:"Select Option"})}),a.jsx(J,{children:a.jsx(K,{viewportClassName:"max-h-[300px]",children:o.map(m=>a.jsx(V,{className:"space-x-2",value:m,children:m},m))})})]})}),s&&a.jsx("p",{className:"text-text-sm text-error-500",children:(i=s.message)==null?void 0:i.toString()})]})}function re(e){return e.type==="string"}function te(e){return e.type==="string"&&e.enum!==void 0}function se(e){return e.type==="string"&&!!e.sensitive}function z(e){return e.type==="boolean"}function D(e){return e.type==="object"}function y(e){return e.type==="array"}function ne(e){return e.type==="integer"}function ae(e){var r;return((r=e.enum)==null?void 0:r.map(t=>t.toString()))||[]}function j(e,r){if(!e.$ref||!r)return e;const t=e.$ref.replace("#/$defs/",""),o=r[t];return o||console.error(`Could not resolve $ref: ${e.$ref}`),o}function oe(e,r){return e.title?e.title:B(r)}function be(e,r){const t=Object.entries(e.properties||{}).reduce((o,[n,s])=>{let i="";return s.default?z(s)?i=s.default:D(s)?i=JSON.stringify(s.default):y(s)?i=s.default:i=s.default.toString():y(s)&&(i=[]),{...o,[n]:i}},{});return r&&Object.entries(r).forEach(([o,n])=>{t[o]=H(n)?n.map(s=>JSON.stringify(s)):M(n)?JSON.stringify(n):n}),t}function ie({name:e,isOptional:r,label:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!t&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:t,isOptional:r})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx(C,{inputSize:"md",className:"w-full data-[error=true]:border-error-500",id:e,...i,type:"number","data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function ce({name:e,label:r,isOptional:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!r&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx("textarea",{rows:4,placeholder:"Please paste your JSON",className:G({inputSize:"md",className:"h-auto w-full resize-none font-mono data-[error=true]:border-error-500"}),id:e,...i,"data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function le({name:e,isOptional:r,label:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!t&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:t,isOptional:r})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx(C,{inputSize:"md",className:"w-full data-[error=true]:border-error-500",id:e,...i,"data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function ue({name:e,label:r,isOptional:t}){var s;const o=f(),n=o.formState.errors[e];return a.jsxs("div",{className:"space-y-0.5",children:[!!r&&a.jsx("label",{htmlFor:e,className:"text-text-sm",children:a.jsx(d,{label:r,isOptional:t})}),a.jsx(x,{control:o.control,name:e,render:({field:i})=>a.jsx(C,{placeholder:"Use {{<SECRET_NAME>.<SECRET_KEY>}} to reference a secret",inputSize:"md",className:"w-full placeholder:font-mono data-[error=true]:border-error-500",id:e,...i,type:"text","data-error":n?"true":"false"})}),n&&a.jsx("p",{className:"text-text-sm text-error-500",children:(s=n.message)==null?void 0:s.toString()})]})}function fe({schema:e,name:r,isOptional:t,definitions:o,isNested:n}){let s=j(e,o);n&&s.items&&(s=j(s.items,o)),n&&s.prefixItems&&(s=j(s.prefixItems[0],o));const i=n?"":oe(s,r);if(s.anyOf){const l=s.anyOf.find(u=>u.type!==null);if(l){const u=j(l,o);s={...s,...u}}}if(s.allOf){const l=j(s.allOf[0],o);s={...s,...l}}if(te(s))return a.jsx(ee,{name:r,label:i,schema:e,isOptional:t,enumValues:ae(s)});if(se(s))return a.jsx(ue,{name:r,label:i,schema:s,isOptional:t});if(ne(s))return a.jsx(ie,{name:r,label:i,schema:s,isOptional:t});if(re(s))return a.jsx(le,{name:r,label:i,schema:s,isOptional:t});if(z(s))return a.jsx(X,{name:r,label:i,schema:s,isOptional:t});if(D(s)||y(s)&&n)return a.jsx(ce,{name:r,label:i,schema:s,isOptional:t});if(y(s))return a.jsx(W,{definitions:o,name:r,label:i,schema:s,isOptional:t})}async function de(e){const r=g(N.serviceConnectors.types.detail(e)),t=await S(r,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&v(),!t.ok){const o=await t.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Error while fetching service connector type");throw new b({status:t.status,statusText:t.statusText,message:o})}return t.json()}async function me(e){const r=R(e).toString(),t=g(N.serviceConnectors.list+(r?`?${r}`:"")),o=await S(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(o.status===404&&v(),!o.ok){const n=await o.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching service connector list");throw new b({status:o.status,statusText:o.statusText,message:n})}return o.json()}const A={connectorTypes:["service_connector_types"],connectors:["service_connectors"],serviceConnectorTypeDetail:e=>T({queryKey:[...A.connectorTypes,e],queryFn:async()=>de(e)}),serviceConnectorListInfinite:(e={})=>q({queryKey:[...A.connectors,e,"infinite"],queryFn:({pageParam:r})=>me({...e,page:r}),getNextPageParam:r=>r.index<r.total_pages?r.index+1:null,initialPageParam:1})};export{fe as D,be as a,Y as b,F as f,ve as g,A as s,Se as z};
|
@@ -1 +1 @@
|
|
1
|
-
import{q as o}from"./@tanstack-CSxjHCME.js";import{o as c,p as i,q as l,j as y,s as u,F as f}from"./index-
|
1
|
+
import{q as o}from"./@tanstack-CSxjHCME.js";import{o as c,p as i,q as l,j as y,s as u,F as f}from"./index-D2iSHVZq.js";import{f as h}from"./stack-detail-query-BAcZJrN3.js";async function p(e){const n=c(i.stackDeployment.config)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stack deployment config");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function k(e){const n=c(i.stackDeployment.info)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stack deployment info");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function m(e){const n=c(i.stackDeployment.stack)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching the deployed stack");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}async function w(e){const n=c(i.stacks.all)+(e?`?${l(e)}`:""),t=await y(n,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status===404&&u(),!t.ok){const a=await t.json().then(s=>Array.isArray(s.detail)?s.detail[1]:s.detail).catch(()=>"Error while fetching stacks");throw new f({status:t.status,statusText:t.statusText,message:a})}return t.json()}const r={all:["stacks"],stackDeployment:["stack-deployment"],stackList:e=>o({queryKey:[...r.all,e],queryFn:async()=>w(e)}),stackDetail:e=>o({queryKey:[...r.all,e],queryFn:async()=>h({stackId:e})}),stackDeploymentInfo:e=>o({queryKey:[...r.stackDeployment,"info",e],queryFn:async()=>k(e)}),stackDeploymentStack:e=>o({queryKey:[...r.stackDeployment,"stack",e],queryFn:async()=>m(e)}),stackDeploymentConfig:e=>o({queryKey:[...r.stackDeployment,"config",e],queryFn:async()=>p(e)})};export{w as f,r as s};
|