import{aw as A,j as e,D as I,b$ as o,p as B,bn as y,aL as J,a0 as Y,f as c,U as de,a1 as ue,fs as xe,$ as t,cN as O,c5 as he,cH as me,r as C,cI as U,cJ as S,c as _,bV as N,a3 as H,a5 as P,fE as je,b9 as q,q as M,ef as pe,L as K,cC as ge,bP as Z,b1 as $,cM as E,bQ as ee,bU as re,v as se,u as ne,fF as fe,k as be,f1 as Ee,fG as G,fH as Ce,cD as ve,bd as De,bs as Le,b3 as Te,fI as X,ax as we,dP as Ne,fJ as ke,fK as Se,fB as Ie,b as w}from"./index-ljTaFLaB.js";import{A as Re,a as D}from"./Anchor-Cg_B9iW8.js";import{C as L}from"./CardBoundary-DBcdRJt6.js";import{M as Pe}from"./ModelSchema-gRf3pT7Y.js";import{u as te}from"./useProjectId-BtNL8kct.js";import{d as Me}from"./index-Df7phmI_.js";import{s as p}from"./styles-DB_mwe0S.js";import{u as _e,a as Ae}from"./index-DvhtGQkZ.js";import{I as Ve,K as ie,a as oe,b as ae,N as ce,h as Oe,g as $e,c as Ge}from"./utils-BHUDm_qF.js";import{P as Fe}from"./Panel-mILL570q.js";import{u as Be,a as ye,D as le}from"./useDeploymentKibanaLink-2t-v6TU9.js";import{S as He}from"./StatusBadge-xCL_JeaM.js";import{G as Ke}from"./GrafanaDashboard-djxrjugw.js";import{K as Ue}from"./KubernetesProjectView-Dg2B5_rl.js";import{K as qe}from"./KeywordsEditor-CcQ8k1sd.js";import"./Deprecated-D_iwBiXP.js";import"./CardLabels-I3v9WM7f.js";const We=({deployment:r})=>{const{isLoading:s,project:n}=A(),a=()=>{const i=["Serving tool","API protocol","Inference logging","Kafka topic","Request batching"];return B(y(()=>r.batchingConfiguration.batchingEnabled,J(Y,["Maximum batch size","Maximum latency (ms)","Timeout (s)"])))(i)},h=()=>{var x,b,m,f;const i=[e.jsx(o.Cell,{children:e.jsx(c,{children:r.servingTool})},"ac.servingTool"),e.jsx(o.Cell,{children:e.jsx(c,{children:de(r.apiProtocol,ue(xe))})},"ac.apiProtocol"),e.jsx(o.Cell,{children:e.jsx(c,{color:(x=r.inferenceLogging)!=null&&x.toLowerCase()?"black":"gray",children:((b=r.inferenceLogging)==null?void 0:b.toLowerCase())??"disabled"})},"ac.inferenceLogging"),e.jsx(o.Cell,{children:e.jsx(c,{sx:{userSelect:"all"},color:(m=r.kafkaTopicDTO)!=null&&m.name?"black":"gray",children:((f=r.kafkaTopicDTO)==null?void 0:f.name)??"disabled"})},"ac.kafkaTopic"),e.jsx(o.Cell,{children:e.jsx(c,{color:r.batchingConfiguration.batchingEnabled?"black":"gray",children:r.batchingConfiguration.batchingEnabled?"enabled":"disabled"})},"ac.batchingEnabled")],u=[e.jsx(o.Cell,{children:e.jsx(c,{children:r.batchingConfiguration.maxBatchSize})},"ac.maxBatchSize"),e.jsx(o.Cell,{children:e.jsx(c,{children:r.batchingConfiguration.maxLatency})},"ac.maxLatency"),e.jsx(o.Cell,{children:e.jsx(c,{children:r.batchingConfiguration.timeout})},"ac.timeout")];return B(y(()=>r.batchingConfiguration.batchingEnabled,J(Y,u)))(i)};return s||!n?e.jsx(I,{}):e.jsx(o,{bordered:!1,padded:!1,hoverable:!1,middleColumn:r.batchingConfiguration.batchingEnabled?7:4,legend:a(),children:e.jsx(o.Row,{children:h()})})},Qe=({deployment:r})=>{const{isLoading:s,project:n}=A();return s||!n?e.jsx(I,{}):e.jsxs(t,{flexDirection:"column",sx:{gap:"20px"},p:"20px",children:[e.jsxs(t,{sx:{gap:"20px"},children:[e.jsx(O,{copyButton:!0,title:"Get deployment",language:"python",content:Je({projectName:n==null?void 0:n.projectName,deploymentName:r.name})}),e.jsx(O,{copyButton:!0,title:"Start or stop deployment",language:"python",content:Ye({projectName:n==null?void 0:n.projectName,deploymentName:r.name})})]}),e.jsx(O,{copyButton:!0,title:"Make predictions with input example",language:"python",content:Xe({projectName:n==null?void 0:n.projectName,deploymentName:r.name})})]})},Je=r=>`import hopsworks

# connect with Hopsworks.
# NOTE: to connect from an external environment, see ${he("/user_guides/projects/api_key/create_api_key")} 
project = hopsworks.login()

# get Hopsworks Model Serving
ms = project.get_model_serving()

# get deployment object
deployment = ms.get_deployment("${r.deploymentName}")
`,Ye=r=>`# print deployment info
deployment.describe()

# start or stop the deployment
deployment.start()  # .stop()

# check deployment status
state = deployment.get_state()
state.describe()
  `,Xe=r=>`# get Hopsworks Model Registry
mr = project.get_model_registry()
  
# get model
model = mr.get_model(deployment.model_name, deployment.model_version)

# make predictions
predictions = deployment.predict({"instances": [model.input_example]})
print(predictions)
`,ze=({deployment:r})=>{const{project:s,isLoading:n}=A(),{data:a,isLoading:h}=me("kube_knative_domain_name"),{currentData:i,isLoading:u}=_e(),x=C.useMemo(()=>i==null?void 0:i.find(m=>m.type===Ve.LOAD_BALANCER),[i]),b=C.useMemo(()=>r.servingTool===U.KSERVE?r.modelServer===S.VLLM?r.predictor?oe:ie:ae:ce,[r]);return n||h||u||!s?e.jsx(I,{}):e.jsxs(t,{flexDirection:"column",p:20,sx:p.defaultGap,children:[e.jsxs(t,{flexDirection:"column",children:[e.jsx(_,{mb:"0px",bold:!0,gray:!0,children:"Hopsworks REST API"}),e.jsx("hr",{style:{borderBottom:"none",borderLeft:"none",borderRight:"none",borderTop:"1px solid lightgray",width:"100%"}})]}),b.map(({label:m,value:f})=>e.jsxs(t,{flexDirection:"column",children:[e.jsx(N,{mb:"3px",gray:!0,children:m}),e.jsx(c,{primary:!0,fontFamily:"IBM Plex Mono",sx:{userSelect:"all"},children:Oe(r,m)})]},f)),x&&e.jsxs(e.Fragment,{children:[e.jsxs(t,{flexDirection:"column",mt:"10px",children:[e.jsx(_,{mb:"0px",bold:!0,gray:!0,children:"Istio Ingress"}),e.jsx("hr",{style:{borderBottom:"none",borderLeft:"none",borderRight:"none",borderTop:"1px solid lightgray",width:"100%"}})]}),b.map(({label:m,value:f})=>e.jsxs(t,{flexDirection:"column",children:[e.jsx(N,{mb:"3px",gray:!0,children:m}),e.jsx(c,{primary:!0,fontFamily:"IBM Plex Mono",sx:{userSelect:"all"},children:$e(r,m,x)})]},f)),e.jsxs(t,{flexDirection:"column",children:[e.jsx(N,{mb:"3px",gray:!0,children:"Host header"}),e.jsx(c,{fontFamily:"IBM Plex Mono",sx:{userSelect:"all"},children:Ge(s.projectName,r.name,a)})]},"HostHeader")]})]})},Ze=r=>r.status===void 0?P.neutral:r.status?r.type===je.READY?P.valid:P.neutral:P.error,er=({deployment:r})=>r.condition?e.jsx(t,{flexDirection:"column",children:e.jsx(H,{mb:"2px",content:r.condition.reason,type:Ze(r.condition)})}):null,{DATE_TIME_FULL:rr}=ee.DATE_TIME,sr=({deployment:r})=>{var v,l;const s=q(),n=Be(),a=ye(),i=(()=>{let d;switch(r.status){case E.RUNNING:case E.IDLE:d="green";break;case E.STOPPING:case E.STOPPED:d="black";break;case E.CREATING:case E.CREATED:case E.STARTING:d="white";break;default:d=void 0}return E.RUNNING===r.status?{text:r.status,variant:"green"}:{text:r.status,variant:d}})(),u=C.useCallback(()=>{s(M.project.settings.fileBrowserWithPath,{"*":`Models/${r.modelName}/${r.modelVersion}/Artifacts/${r.artifactVersion}`})},[r,s]),x=C.useCallback(()=>{window.open(n(r.name),"_blank")},[n,r.name]),b=C.useCallback(()=>{window.open(a(r.name),"_blank")},[a,r.name]),[m,f]=r.creator.split(" "),T=()=>{s(M.project.deployments.edit,{dId:r.id})},k=()=>{var d;s(M.project.settings.pythonWithEnvironment,{version:(d=r.environmentDTO)==null?void 0:d.name})},g=d=>{var j;return d.modelServer===S.TENSORFLOW_SERVING?"tensorflow/serving":d.modelServer===S.PYTHON?"kserve/sklearnserver":d.modelServer===S.VLLM?"vllm/vllm-openai":(j=d.environmentDTO)==null?void 0:j.name};return e.jsxs(e.Fragment,{children:[e.jsx(Fe,{type:pe.deployment,data:r,title:r.name,onClickEdit:T,idColor:"labels.blueShade1",status:i}),e.jsxs(t,{mt:"10px",flexDirection:"column",sx:{gap:"20px"},children:[e.jsxs(t,{justifyContent:"space-between",children:[e.jsxs(t,{sx:{gap:"30px"},children:[e.jsx(K,{children:e.jsx(ge,{firstName:m,lastName:f})}),e.jsx(nr,{ml:"-5px",label:"Created at",date:new Date(r.created)}),e.jsxs(t,{flexDirection:"column",sx:{gap:"4px"},children:[e.jsx(N,{gray:!0,children:"Model server"}),e.jsx(c,{color:"black",children:r.modelServer})]}),!!r.environmentDTO&&!!r.predictor&&e.jsxs(t,{flexDirection:"column",sx:{gap:"4px"},children:[e.jsx(N,{gray:!0,children:"Predictor environment"}),e.jsx(z,{onClick:k,children:`${(v=r.environmentDTO)==null?void 0:v.name} ->`})]}),!r.predictor&&e.jsxs(t,{flexDirection:"column",sx:{gap:"4px"},children:[e.jsx(N,{gray:!0,children:"Predictor environment"}),e.jsx(c,{color:"black",children:g(r)})]}),!!r.environmentDTO&&!!r.transformer&&e.jsxs(t,{flexDirection:"column",sx:{gap:"4px"},children:[e.jsx(N,{gray:!0,children:"Transformer environment"}),e.jsx(z,{onClick:k,children:`${(l=r.environmentDTO)==null?void 0:l.name} ->`})]}),r.deployed&&e.jsxs(t,{flexDirection:"column",sx:{gap:"4px"},children:[e.jsx(N,{gray:!0,children:"Deployed at"}),e.jsx(c,{color:"black",children:Z(new Date(r.deployed),rr)})]})]}),e.jsxs(t,{sx:{gap:"20px"},children:[e.jsx(He,{ml:"10px",mt:"6px",status:r.status}),e.jsx(le,{deployment:r})]})]}),r.description&&e.jsx(t,{children:e.jsx(_,{children:r.description})}),e.jsx(er,{deployment:r}),e.jsxs(t,{justifyContent:"space-between",children:[e.jsxs(t,{sx:{gap:"8px"},children:[e.jsx($,{onClick:b,variant:"secondary",children:"See Metrics ↗"}),e.jsx($,{onClick:x,variant:"secondary",children:"See Logs ↗"})]}),r.artifactVersion!=null&&e.jsx($,{onClick:u,intent:"secondary",children:"Browse artifact files ->"})]})]})]})},nr=({label:r,date:s,primary:n,...a})=>{const{DATE_TIME_FULL:h}=ee.DATE_TIME;return e.jsxs(t,{flexDirection:"column",...a,children:[e.jsx(N,{mb:"3px",gray:!0,children:r}),e.jsx(c,{primary:n,children:Z(s,h)})]})},z=({shouldFallback:r,children:s,onClick:n})=>r?e.jsx(c,{color:"gray",children:"not provided"}):e.jsx(c,{primary:!0,sx:{...re,textDecoration:"underline",cursor:"pointer",maxWidth:"300px"},onClick:n,children:s}),tr=({deployment:r})=>{const{project:s,isLoading:n}=A(),a="grafana/d-solo/kserve/deployment-metrics",h=[{name:"configuration",value:`${r.name}-.*`},{name:"revision",value:"All"},{name:"namespace",value:s==null?void 0:s.namespace}],i=[{title:"End to end Latencies",linkParams:{urlPath:a,variables:h,panelId:20}},{title:"Number of requests per second by Response Code Class",linkParams:{urlPath:a,variables:h,panelId:18}}];return n||!s?e.jsx(I,{}):r.status===E.CREATING||r.status===E.CREATED?e.jsx(t,{p:"20px",py:"40px",alignItems:"center",flexDirection:"column",sx:p.defaultGap,children:e.jsx(se,{color:"grey",fontWeight:"100",children:"Metrics will be shown when the deployment is started"})}):e.jsx(Ke,{panels:i})},F=(r,s)=>{const n=r[s];return["Models",r.modelName,r.modelVersion,"Artifacts",r.artifactVersion,`${s.toLowerCase()}-${n}`].join("/")},ir=({model:r,deployment:s})=>{const{id:n}=ne(),a=q(),h=()=>{a(M.project.models.overview,{mId:r.name})},i=()=>{a(M.project.models.versionView,{mId:r.name,vId:r.version})},u=fe(),x=()=>{const g=F(s,"predictor");u(Number(n),g,G.DATASET)},b=()=>{const g=F(s,"transformer");u(Number(n),g,G.DATASET)},m=()=>{const g=F(s,"configFile");u(Number(n),g,G.DATASET)},f=g=>g!=null?g===0?"MODEL-ONLY":g:"-",T=!!s.configFile||s.modelServer===S.VLLM,k=B(y(be(T),Ee("Server config file")))(["Model","Version","Artifact version","Predictor script","Transformer script"]);return e.jsx(o,{bordered:!1,padded:!1,hoverable:!1,middleColumn:T?5:4,legend:k,children:e.jsxs(o.Row,{children:[e.jsx(o.Cell,{children:e.jsx(V,{onClick:h,children:`${r.name} ->`})}),e.jsx(o.Cell,{children:e.jsx(V,{onClick:i,children:`${r.version} ->`})}),e.jsx(o.Cell,{children:e.jsx(c,{children:f(s==null?void 0:s.artifactVersion)})}),e.jsx(o.Cell,{children:e.jsx(V,{shouldFallback:!s.predictor,onClick:x,children:`${s.predictor} ↓`})}),e.jsx(o.Cell,{children:e.jsx(V,{shouldFallback:!s.transformer,onClick:b,children:`${s.transformer} ↓`})}),T&&e.jsx(o.Cell,{children:e.jsx(V,{shouldFallback:!s.configFile,onClick:m,children:`${s.configFile} ↓`})})]})})},V=({shouldFallback:r,children:s,onClick:n})=>r?e.jsx(c,{color:"gray",children:"not provided"}):e.jsx(c,{primary:!0,sx:{...re,textDecoration:"underline",cursor:"pointer",maxWidth:"300px"},onClick:n,children:s}),or=({deployment:r})=>{const{isLoading:s,project:n}=A();return s||!n?e.jsx(I,{}):e.jsxs(e.Fragment,{children:[e.jsx(o,{bordered:!1,padded:!1,hoverable:!1,middleColumn:3,legend:["Predictor instances","CPUs","Memory (MB)","GPUs"],children:e.jsxs(o.Row,{children:[e.jsxs(o.Cell,{children:[e.jsx(c,{minWidth:"135px",children:`${r.availableInstances} running out of ${r.requestedInstances}`}),r.requestedInstances===0&&e.jsx(_,{mt:"4px",bold:!0,gray:!0,children:"scale-to-zero"})]}),e.jsx(o.Cell,{children:e.jsx(c,{children:`${r.predictorResources.requests.cores??"-"} -> ${r.predictorResources.limits.cores??"-"}`})}),e.jsx(o.Cell,{children:e.jsx(c,{children:`${r.predictorResources.requests.memory??"-"} -> ${r.predictorResources.limits.memory??"-"}`})}),e.jsx(o.Cell,{children:e.jsx(c,{children:`${r.predictorResources.requests.gpus??"-"} -> ${r.predictorResources.limits.gpus??"-"}`})})]})}),r.transformer&&e.jsxs(e.Fragment,{children:[e.jsx("hr",{style:{borderBottom:"none",borderLeft:"none",borderRight:"none",borderTop:"1px solid lightgray",width:"100%",marginTop:"10px",marginBottom:"10px"}}),e.jsx(o,{bordered:!1,padded:!1,hoverable:!1,middleColumn:3,legend:["Transformer instances","CPUs","Memory (MB)","GPUs"],children:e.jsxs(o.Row,{children:[e.jsxs(o.Cell,{children:[e.jsx(c,{minWidth:"135px",children:r.transformer&&r.requestedTransformerInstances!==void 0?`${r.availableTransformerInstances} running out of ${r.requestedTransformerInstances}`:"-"}),r.transformer&&r.requestedTransformerInstances===0&&e.jsx(_,{mt:"4px",bold:!0,gray:!0,children:"scale-to-zero"})]}),e.jsx(o.Cell,{children:e.jsx(c,{children:`${r.transformerResources.requests.cores??"-"} -> ${r.transformerResources.limits.cores??"-"}`})}),e.jsx(o.Cell,{children:e.jsx(c,{children:`${r.transformerResources.requests.memory??"-"} -> ${r.transformerResources.limits.memory??"-"}`})}),e.jsx(o.Cell,{children:e.jsx(c,{children:`${r.transformerResources.requests.gpus??"-"} -> ${r.transformerResources.limits.gpus??"-"}`})})]})})]})]})},ar=({deployment:r})=>{const s=te(),n=q(),{data:a,isLoading:h}=Ce({projectId:s,model:r.modelName,status:"Running"},{refetchOnMountOrArgChange:!0});if(h||!a)return e.jsx(I,{});const i=x=>()=>{n(M.project.deployments.overview,{dId:x})},u=a.all.filter(x=>x.id!==r.id);return h||u.length===0?null:e.jsxs(t,{flexDirection:"column",sx:{gap:"8px"},children:[e.jsx(ve,{sx:p.divider}),e.jsx(c,{color:"gray",children:"Deploying the same model"}),e.jsx(t,{width:"100%",children:u.map(x=>e.jsx($,{intent:"secondary",height:"31px",onClick:i(x.id),children:`${x.name} ->`},x.id))})]})},cr=({deployment:r,model:s})=>{const n=C.useMemo(()=>r.servingTool===U.KSERVE?r.modelServer===S.VLLM?r.predictor?oe:ie:ae:ce,[r]),[a,h]=C.useState(n[0].value),[i,u]=C.useState({input:"",output:"",error:""}),x=C.useMemo(()=>{var d,j,R,W,Q;if(((d=s.inputExample)==null?void 0:d.preview)===void 0||!((R=(j=s.inputExample)==null?void 0:j.preview)!=null&&R.content))return"";const l=JSON.parse((Q=(W=s.inputExample)==null?void 0:W.preview)==null?void 0:Q.content);return r.modelServer===S.TENSORFLOW_SERVING?JSON.stringify({signature_name:"serving_default",instances:l}):r.modelServer===S.VLLM?JSON.stringify(l):JSON.stringify({instances:l})},[r,s]);C.useEffect(()=>{u({input:x,output:"",error:""})},[x]);const[b,{isLoading:m}]=Ae(),f=l=>{Array.isArray(l)||h(l)},T=l=>{m||u({...i,input:l})},k=l=>{let d="";try{d=X(l.replaceAll(`
`,""))}catch(j){console.warn(j),d=l}u({...i,input:d})},g=(l,d)=>{let j="";if(l)try{j=X(JSON.stringify(l))}catch(R){console.warn(R),j=(l==null?void 0:l.toString())||""}u(R=>({...R,output:j,error:d}))},v=async()=>{if(!i.input)return;k(i.input);let l=null,d="";try{l=await b({host:"",deployment:r,verb:a,content:i.input}).unwrap()}catch(j){console.warn(j),d=(j==null?void 0:j.response.data.usrMsg)||"An error occurred"}g(l,d)};return r.status!==E.RUNNING&&r.status!==E.IDLE?e.jsxs(t,{p:"20px",py:"40px",alignItems:"center",flexDirection:"column",sx:p.defaultGap,children:[e.jsx(se,{color:"grey",fontWeight:"100",children:"Deployment needs to be running to be tested"}),e.jsx(le,{title:"Run deployment",deployment:r})]}):e.jsxs(t,{flexDirection:"column",sx:p.defaultGap,p:"20px",children:[e.jsxs(t,{flexDirection:"row",children:[e.jsx(De,{label:"verb",labelPosition:"inline",placeholder:"pick a verb",value:a,isDisabled:m,options:n,onChange:f,mr:"20px",width:"auto"}),e.jsx(Le,{type:"submit",intent:"primary",isLoading:m,onClick:v,children:"Run test"})]}),i.error&&e.jsxs(K,{children:[e.jsx(H,{content:i.error,type:P.error}),e.jsx(H,{mt:"2px",content:"For more details, please check the deployment logs",type:P.neutral})]}),e.jsx(t,{sx:p.codeInput,flexDirection:"column",children:e.jsx(Te,{mode:"json",label:"Request data",readOnly:!1,value:i.input,onChange:T})}),i.output&&e.jsxs(K,{children:[e.jsx(_,{bold:!0,mb:"6px",children:"Response"}),e.jsx(O,{width:"100%",height:"auto !important",css:{maxHeight:"300px",minHeight:"50px"},language:"json",wrapLongLines:!0,copyButton:!0,downloadButton:!0,showLineNumbers:!0,title:"Content",content:i.output})]})]})},lr=({deployment:r})=>{const{schedulingConfig:s}=r;return e.jsx(Ue,{schedulingConfig:s})},dr=({deployment:r})=>{var g;const{id:s,project:n,isLoading:a}=A(),{data:h,isLoading:i}=we(),u=(g=n==null?void 0:n.projectTeam)==null?void 0:g.find(({user:v})=>v.username===(h==null?void 0:h.username)),x=(u==null?void 0:u.teamRole)===Ne.DATA_OWNER,b=C.useMemo(()=>{var v;return((v=r.remoteAccessDTOs)==null?void 0:v.map(l=>l.remoteUserGroupName))||[]},[r]),{currentData:m=[]}=ke(String(s)),[f,{isLoading:T}]=Se(),k=C.useCallback(v=>f({projectId:s,deploymentId:r.id,remoteUserGroups:v}),[f,s,r]);return a||i||!n?e.jsx(I,{}):e.jsx(qe,{isDisabled:!x||a||i,onSave:k,value:b,options:m,isSaving:T,itemName:"external user groups",isCaseSensitive:!0})},Sr=()=>{const{dId:r}=ne(),s=te(),{data:n}=Ie({projectId:s,id:r},{pollingInterval:5e3,refetchOnFocus:!0}),{currentData:a}=Me({projectId:s,modelName:(n==null?void 0:n.modelName)??"",modelVersion:(n==null?void 0:n.modelVersion)??0},{skip:!(n!=null&&n.modelName)||!(n!=null&&n.modelVersion)});return!a||!n?e.jsx(I,{}):e.jsx(ur,{deployment:n,model:a})},ur=({deployment:r,model:s})=>{var n,a;return e.jsxs(t,{flexDirection:"column",pb:"20px",sx:p.defaultGap,children:[e.jsx(sr,{deployment:r}),e.jsx(ar,{deployment:r}),e.jsxs(Re,{children:[e.jsx(D,{name:"models",children:e.jsx(L,{children:e.jsx(t,{sx:p.overflowX,children:e.jsx(w,{title:"Model artifact",maxHeight:"400px",width:"100%",children:e.jsx(ir,{deployment:r,model:s})})})})}),r.servingTool===U.KSERVE&&e.jsx(D,{name:"metrics",children:e.jsx(L,{children:e.jsx(w,{title:"Metrics",contentProps:p.card,children:e.jsx(tr,{deployment:r})})})}),e.jsx(D,{name:"test-deployment",children:e.jsx(L,{children:e.jsx(w,{title:"Test deployment",contentProps:p.card,children:e.jsx(cr,{deployment:r,model:s})})})}),e.jsx(D,{name:"endpoints",children:e.jsx(L,{children:e.jsx(w,{title:"Endpoints",contentProps:p.card,children:e.jsx(ze,{deployment:r})})})}),e.jsx(D,{name:"schema",children:e.jsx(L,{children:e.jsx(w,{title:"Deployment schema",contentProps:p.card,children:e.jsx(Pe,{schema:(a=(n=s.modelSchema)==null?void 0:n.preview)==null?void 0:a.content})})})}),e.jsx(D,{name:"snippets",children:e.jsx(L,{children:e.jsx(w,{title:"Code snippets",contentProps:p.card,children:e.jsx(Qe,{deployment:r})})})}),e.jsx(D,{name:"configuration",children:e.jsx(L,{children:e.jsx(t,{sx:p.overflowX,children:e.jsx(w,{title:"Configuration",width:"100%",children:e.jsx(We,{deployment:r})})})})}),e.jsx(D,{name:"resource-allocation",children:e.jsx(L,{children:e.jsx(t,{sx:p.overflowX,children:e.jsx(w,{title:"Resource allocation",width:"100%",children:e.jsx(or,{deployment:r})})})})}),e.jsx(D,{name:"kube-schedule-config",children:e.jsx(L,{children:e.jsx(t,{sx:p.overflowX,children:e.jsx(lr,{deployment:r})})})}),e.jsx(D,{name:"external-access",children:e.jsx(L,{children:e.jsx(t,{sx:p.overflowX,children:e.jsx(w,{title:"External access",width:"100%",children:e.jsx(dr,{deployment:r})})})})})]})]})};export{Sr as Overview,Sr as default};
