PageSourceSearch

https://erimer974-meteo-mlflow.hf.space/static-files/static/js/3933.778f9e01.chunk.js

js erimer974-meteo-mlflow.hf.space collected 2026-10-04 16:51:31 UTC 43,589 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_mlflow_mlflow=globalThis.webpackChunk_mlflow_mlflow||[]).push([[3933],{248(e,t,s){s.d(t,{t:()=>g});var i=s(15032),n=s(77753),o=s(10587),r=s(51477),l=s(74343),a=s(51605),d=s(63968);const{Paragraph:c}=o.T;var u={name:"zjik7",styles:"display:flex"},m={name:"1ff36h2",styles:"flex-grow:1"};const p=r.memo(e=>{const{theme:t}=(0,o.u)();return(0,d.Y)(o.M,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetagfullviewmodal.tsx_17",title:"Tag: "+e.tagKey,visible:e.isKeyValueTagFullViewModalVisible,onCancel:()=>e.setIsKeyValueTagFullViewModalVisible(!1),children:(0,d.FD)("div",{css:u,children:[(0,d.Y)(c,{css:m,children:(0,d.Y)("pre",{css:(0,i.AH)({backgroundColor:t.colors.backgroundPrimary,marginTop:t.spacing.sm,whiteSpace:"pre-wrap",wordBreak:"break-all"},""),children:e.tagValue})}),(0,d.Y)("div",{css:(0,i.AH)({marginTop:t.spacing.sm},""),children:(0,d.Y)(a.i,{copyText:e.tagValue,showLabel:!1,icon:(0,d.Y)(o.cV,{}),"aria-label":"Copy"})})]})})});function h(e=!0){return e?{overflow:"hidden",textOverflow:"ellipsis",textWrap:"nowrap",whiteSpace:"nowrap"}:{whiteSpace:"nowrap"}}const g=({isClosable:e=!1,onClose:t,tag:s,enableFullViewModal:a=!1,charLimit:c=30,maxWidth:u=300,className:m})=>{const g=(0,l.A)(),[f,v]=(0,r.useState)(!1),{shouldTruncateKey:M,shouldTruncateValue:y}=function(e,t=30){const{key:s,value:i}=e,n=s.length+i.length,o=s.length>i.length,r=o?i.length:s.length;return n<=t?{shouldTruncateKey:!1,shouldTruncateValue:!1}:r>t/2?{shouldTruncateKey:!0,shouldTruncateValue:!0}:{shouldTruncateKey:o,shouldTruncateValue:!o}}(s,c),_=a&&(M||y),Y=g.formatMessage({id:"ZXUtU8",defaultMessage:"Click to see more"});return(0,d.FD)("div",{children:[(0,d.Y)(n.Tag,{componentId:"codegen_mlflow_app_src_common_components_keyvaluetag.tsx_60",closable:e,onClose:t,title:s.key,className:m,children:(0,d.Y)(o.s,{content:_?Y:"",componentId:"mlflow.common.components.key-value-tag.tooltip",children:(0,d.FD)("span",{css:(0,i.AH)({maxWidth:u,display:"inline-flex"},""),onClick:()=>_?v(!0):void 0,children:[(0,d.Y)(o.T.Text,{bold:!0,title:s.key,css:h(M),children:s.key}),s.value&&(0,d.FD)(o.T.Text,{title:s.value,css:h(y),children:[": ",s.value]})]})})}),(0,d.Y)("div",{children:f&&(0,d.Y)(p,{tagKey:s.key,tagValue:s.value,isKeyValueTagFullViewModalVisible:f,setIsKeyValueTagFullViewModalVisible:v})})]})}},6548(e,t,s){s.d(t,{i:()=>o});var i=s(29942),n=s(51477);const o=(e,t)=>{const s=(0,n.useRef)();return s.current&&(0,i.isEqual)(t,s.current.deps)||(s.current={deps:t,value:e()}),s.current.value}},93041(e,t,s){s.d(t,{t:()=>o});var i=s(29942),n=s(51477);const o=(0,i.isFunction)(n.useDeferredValue)?n.useDeferredValue:i.identity},74661(e,t,s){s.d(t,{S:()=>w});var i=s(15032),n=s(51477),o=s(34550),r=s(10587),l=s(77753),a=s(5460),d=s(37798),c=s(32324),u=s(83906),m=s(40197),p=s(8871),h=s(70750),g=s(16680),f=s(74343),v=s(63968);const M="value",y=({form:e,name:t,initialTags:s})=>{const i=(0,f.A)(),n=(0,g.$)({name:t,emptyValue:{key:"",value:""},keyProperty:"key",valueProperty:M,form:e,defaultValues:s});return(0,v.FD)(d.E,{...n,children:[(0,v.FD)(c.q,{children:[(0,v.Y)(u.C,{children:(0,v.Y)(a.A,{id:"h2SXjO",defaultMessage:"Key"})}),(0,v.Y)(u.C,{children:(0,v.Y)(a.A,{id:"6yjymQ",defaultMessage:"Value"})})]}),n.fields.map((e,t)=>(0,v.FD)(c.q,{children:[(0,v.Y)(m.R,{index:t,rules:{validate:{unique:e=>{const s=n.getTagsValues();return(null===s||void 0===s?void 0:s.findIndex(t=>t.key===e))===t||i.formatMessage({id:"sLBHQp",defaultMessage:"Key must be unique"})},required:e=>{var s;const o=n.getTagsValues();return!(null!==o&&void 0!==o&&null!==(s=o.at(t))&&void 0!==s&&s[M]&&!e)||i.formatMessage({id:"J45Atg",defaultMessage:"Key is required if value is present"})}}}}),(0,v.Y)(p.t,{index:t}),(0,v.Y)(h.k,{index:t,componentId:"endpoint-tags-section.remove-button"})]},e.id))]})};var _=s(6548);const Y="key",A="value",I="tags",b={key:"",value:""},w=({componentIdPrefix:e,title:t,visible:s,initialTags:d,isLoading:c=!1,error:u,onSubmit:m,onSuccess:p,onClose:h})=>{const g=(0,_.i)(()=>d,[d]),[f,M]=(0,n.useState)(!1),{theme:w}=(0,r.u)(),D=(0,o.mN)({mode:"onChange"}),T=()=>{M(!1),D.reset({[I]:[b]}),null===h||void 0===h||h()},S=(0,v.Y)(a.A,{id:"AGWpnl",defaultMessage:"Add tags"});return{TagAssignmentModal:(0,v.FD)(r.M,{componentId:"codegen_no_dynamic_mlflow_web_js_src_common_hooks_usetagassignmentmodal_82",title:null!==t&&void 0!==t?t:S,visible:null!==s&&void 0!==s?s:f,destroyOnClose:!0,onCancel:T,footer:(0,v.FD)(v.FK,{children:[(0,v.Y)(r.B,{componentId:"codegen_no_dynamic_mlflow_web_js_src_common_hooks_usetagassignmentmodal_91",onClick:T,disabled:c,
1children:(0,v.Y)(a.A,{id:"awekbG",defaultMessage:"Cancel"})}),(0,v.Y)(r.B,{componentId:"codegen_no_dynamic_mlflow_web_js_src_common_hooks_usetagassignmentmodal_99",type:"primary",onClick:D.handleSubmit(e=>{var t,s;const i=e[I].filter(e=>Boolean(e[Y])),n=null!==(t=i.filter(e=>!(null!==d&&void 0!==d&&d.some(t=>t[Y]===e[Y]&&t[A]===e[A]))))&&void 0!==t?t:[],o=null!==(s=null===d||void 0===d?void 0:d.filter(e=>!i.some(t=>t[Y]===e[Y])))&&void 0!==s?s:[];m(n,o).then(()=>{T(),null===p||void 0===p||p()})}),loading:c,disabled:c,children:(0,v.Y)(a.A,{id:"C6ReUY",defaultMessage:"Save"})})]}),children:[u&&(0,v.Y)(l.Alert,{type:"error",message:u,componentId:"codegen_no_dynamic_mlflow_web_js_src_common_hooks_usetagassignmentmodal_115",closable:!1,css:(0,i.AH)({marginBottom:w.spacing.sm},"")}),(0,v.Y)(y,{name:I,form:D,initialTags:g})]}),showTagAssignmentModal:()=>{M(!0)},hideTagAssignmentModal:T}}},54064(e,t,s){s.r(t),s.d(t,{ModelVersionPage:()=>ve,ModelVersionPageImpl:()=>he,default:()=>Me});var i=s(51477),n=s(34665),o=s(10413),r=s(4981),l=s(37406),a=s(29942),d=s(39521),c=s(45766),u=s(74661);const m=e=>{const{TagAssignmentModal:t}=(0,u.S)({...e});return t};var p=s(27623),h=s(10587),g=s(74343),f=s(5460),v=s(37889),M=s(88021),y=s(87866),_=s(40234),Y=s(63968);var A={name:"1yh8glp",styles:"margin-top:-12px"};const I=e=>{const t=(0,g.A)(),s=(0,d.Zp)(),r=(0,i.useRef)((0,v.yk)()),l=(0,i.useRef)((0,v.yk)()),{modelVersion:u}=e,[m,p]=(0,i.useState)(!1),[I,b]=(0,i.useState)(!1),w=(0,n.wA)(),D=(0,n.d4)(e=>e.entities.modelByName),T=(0,i.useRef)(),S=()=>{p(!1),b(!1)},V=e=>{b(!1),M.A.logErrorAndNotifyUser(e)},C=(0,i.useCallback)(e=>{w((0,o.JK)((0,y.pc)(e),5))},[w]),R=(0,i.useMemo)(()=>(0,a.debounce)(C,300),[C]);(0,i.useEffect)(()=>{w((0,o.JK)())},[w]),(0,i.useEffect)(()=>{m&&w((0,o.JK)())},[w,m]);return(0,Y.FD)("div",{className:"promote-model-btn-wrapper",children:[(0,Y.Y)(h.B,{componentId:"codegen_mlflow_app_src_model-registry_components_promotemodelbutton.tsx_165",className:"promote-model-btn",type:"primary",onClick:()=>{p(!0)},children:(0,Y.Y)(f.A,{id:"Qv7cZx",defaultMessage:"Promote model"})}),(0,Y.Y)(h.M,{title:(0,Y.Y)(f.A,{id:"OWCfFp",defaultMessage:"Promote {sourceModelName} version {sourceModelVersion}",values:{sourceModelName:u.name,sourceModelVersion:u.version}}),width:640,visible:m,onOk:()=>{T.current.validateFields().then(e=>{b(!0);const t=e[_.BE],i="models:/"+u.name+"/"+u.version;if(t===_.QN){const t=e[_.F3];w((0,o.eF)(t,r.current)).then(()=>w((0,o.Ey)(t,i,u.run_id,u.tags,l.current))).then(e=>{S();const{version:i}=e.value.model_version;s(c.fM.getModelVersionPageRoute(t,i))}).catch(V)}else w((0,o.Ey)(t,i,u.run_id,u.tags,l.current)).then(e=>{S();const{version:i}=e.value.model_version;s(c.fM.getModelVersionPageRoute(t,i))}).catch(V)})},okText:t.formatMessage({id:"DCkSC3",defaultMessage:"Promote"}),cancelText:t.formatMessage({id:"0tU5gv",defaultMessage:"Cancel"}),confirmLoading:I,onCancel:()=>{p(!1)},centered:!0,children:(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(h.T.Paragraph,{css:A,children:(0,Y.Y)(f.A,{id:"V5cjvM",defaultMessage:"Copy your MLflow models to another registered model for simple model promotion across environments. For more mature production-grade setups, we recommend setting up automated model training workflows to produce models in controlled environments. <link>Learn more</link>",values:{link:e=>(0,Y.Y)(h.T.Link,{componentId:"codegen_mlflow_app_src_model-registry_components_promotemodelbutton.tsx_140",href:"https://mlflow.org/docs/latest/model-registry.html#promoting-an-mlflow-model-across-environments",openInNewTab:!0,children:e})}})}),(0,Y.Y)(_.xH,{modelByName:D,innerRef:T,onSearchRegisteredModels:R,isCopy:!0})]})})]})};var b=s(9098),w=s(15032),D=s(77753),T=s(90817),S=s(67162),V=s(34550);let C=function(e){return e[e.RequestOrDirect=0]="RequestOrDirect",e[e.Approve=1]="Approve",e[e.Reject=2]="Reject",e[e.Cancel=3]="Cancel",e}({});const R=({visible:e,onCancel:t,toStage:s,allowArchivingExistingVersions:n,transitionDescription:o,onConfirm:r,mode:l=C.RequestOrDirect})=>{const{theme:a}=(0,h.u)(),d=(0,V.mN)({defaultValues:{comment:"",archiveExistingVersions:!1}});return(0,i.useEffect)(()=>{e&&d.reset()},[d,e]),(0,Y.FD)(h.M,{title:l===C.Approve?(0,Y.Y)(f.A,{id:"CjBv5h",defaultMessage:"Approve pending request"}):l===C.Reject?(0,Y.Y)(f.A,{id:"dzoxyA",defaultMessage:"Reject pending request"}):l===C.Cancel?(0,Y.Y)(f.A,{id:"bS/iHC",defaultMessage:"Cancel pending request"}):(0,Y.Y)(f.A,{id:"rxMHgr",defaultMessage:"Stage transition"}),componentId:"mlflow.model_registry.stage_transition_modal_v2",visible:e,onCancel:t,okText:(0,Y.Y)(f.A,{id:"7PCvDy",defaultMessage:"OK"}),cancelText:(0,Y.Y)(f.A,{id:"25VTYi",defaultMessage:"Cancel"}),onOk:r&&d.handleSubmit(r),children:[o,(0,Y.Y)(S.S,{size:"sm"}),(0,Y.Y)(D.FormUI.Label,{htmlFor:"mlflow.model_registry.stage_transition_modal_v2.comment",children:"Comment"}),(0,Y.Y)(D.RHFControlledComponents.TextArea,{name:"comment",id:"mlflow.model_registry.stage_transition_modal_v2.comment",componentId:"mlflow.model_registry.stage_transition_modal_v2.comment",control:d.control,rows:4}),(0,Y.Y)(S.S,{size:"sm"}),n&&s&&(0,Y.Y)(D.RHFControlledComponents.Checkbox,{name:"archiveExistingVersions",componentId:"mlflow.model_registry.stage_transition_modal_v2.archive_existing_versions",control:d.control,children:(0,Y.Y)(h.s,{componentId:"mlflow.model_registry.stage_transition_modal_v2.archive_existing_versions.tooltip",content:(0,T.gL)(s),children:(0,Y.Y)("span",{css:(0,w.AH)({"[role=status]":{marginRight:a.spacing.xs}},""),children:(0,Y.Y)(f.A,{id:"rAJDzz",defaultMessage:"Transition existing {currentStage} model version to {archivedStage}",values:{currentStage:(0,Y.Y)("span",{css:(0,w.AH)({marginLeft:a.spacing.xs},""),children:T.$0[s]}
1),archivedStage:(0,Y.Y)("span",{css:(0,w.AH)({marginLeft:a.spacing.xs},""),children:T.$0[T.e3.ARCHIVED]})}})})})})]})};class k extends i.Component{constructor(...e){super(...e),this.state={confirmModalVisible:!1,confirmingActivity:null,handleConfirm:void 0},this.handleMenuItemClick=e=>{const{onSelect:t}=this.props;this.setState({confirmModalVisible:!0,confirmingActivity:e,handleConfirm:t&&(s=>{if(this.setState({confirmModalVisible:!1}),s){const{archiveExistingVersions:i=!1}=s;return void t(e,i)}})})},this.handleConfirmModalCancel=()=>{this.setState({confirmModalVisible:!1})},this.getNoneCurrentStages=e=>{const t=Object.values(T.e3);return(0,a.remove)(t,t=>t===e),t}}getMenu(){const{currentStage:e}=this.props,t=this.getNoneCurrentStages(e);return(0,Y.Y)(D.Menu,{children:t.map(e=>(0,Y.FD)(D.Menu.Item,{onClick:()=>this.handleMenuItemClick({type:T.$p.APPLIED_TRANSITION,to_stage:e}),children:[(0,Y.Y)(f.A,{id:"UhdPmo",defaultMessage:"Transition to"}),"\xa0\xa0\xa0",(0,Y.Y)(h.bi,{}),"\xa0\xa0\xa0",T.$0[e]]},`transition-to-${e}`))})}renderConfirmModal(){const{confirmModalVisible:e,confirmingActivity:t,handleConfirm:s}=this.state;if(!t)return null;const i=t.type===T.$p.APPLIED_TRANSITION&&T.jI.includes(t.to_stage);return(0,Y.Y)(R,{visible:e,toStage:t.to_stage,onConfirm:s,onCancel:this.handleConfirmModalCancel,transitionDescription:x(t),allowArchivingExistingVersions:i})}render(){const{currentStage:e}=this.props;return(0,Y.FD)("span",{children:[(0,Y.Y)(D.Dropdown,{overlay:this.getMenu(),trigger:["click"],className:"mlflow-stage-transition-dropdown",children:(0,Y.FD)("span",{children:[T.$0[null!==e&&void 0!==e?e:T.e3.NONE],(0,Y.Y)(h.E,{css:(0,w.AH)({cursor:"pointer",marginLeft:-4},"")})]})}),this.renderConfirmModal()]})}}k.defaultProps={currentStage:T.e3.NONE};const x=e=>e?(0,Y.FD)("div",{children:[(0,Y.Y)(f.A,{id:"ZYBoeF",defaultMessage:"Transition to"}),"\xa0\xa0\xa0",(0,Y.Y)(h.bi,{}),"\xa0\xa0\xa0",T.$0[e.to_stage]]}):null;var E=s(92578),N=s(88843),F=s(19740),P=s(26638),L=s(62484),q=s(34717),$=s(52680),O=s(1613);var K=s(14689),H=s(50093),U=s(89511),B=s(17347),j=s(77499);const z=e=>(0,Y.Y)(f.A,{id:"4Jyn2b",defaultMessage:"Add/Edit alias for model version {version}",values:{version:e}});var G={name:"lkh5er",styles:"display:flex;flex-wrap:wrap;align-items:center"};const W=({aliases:e=[],modelEntity:t,version:s,onAliasesModified:r})=>{var l;const a=(0,n.wA)(),{EditAliasesModal:d,showEditAliasesModal:c}=(0,B.t)({aliases:null!==(l=null===t||void 0===t?void 0:t.aliases)&&void 0!==l?l:[],onSuccess:r,onSave:async(e,s,i)=>{var n;return a((0,o.mq)(null!==(n=null===t||void 0===t?void 0:t.name)&&void 0!==n?n:"",e,s,i))},getTitle:z,description:(0,Y.Y)(f.A,{id:"2DNVN4",defaultMessage:"Aliases allow you to assign a mutable, named reference to a particular model version. <link>Learn more</link>",values:{link:e=>(0,Y.Y)("a",{href:T.Tm,rel:"noreferrer",target:"_blank",children:e})}})}),u=(0,i.useCallback)(()=>{c(s)},[c,s]);return(0,Y.FD)(Y.FK,{children:[d,e.length<1?(0,Y.Y)(h.B,{componentId:"codegen_mlflow_app_src_model-registry_components_aliases_modelversionviewaliaseditor.tsx_29",size:"small",type:"link",onClick:u,title:"Add aliases",children:"Add"}):(0,Y.FD)("div",{css:G,children:[e.map(e=>(0,Y.Y)(j.Z,{compact:!0,value:e},e)),(0,Y.Y)(h.B,{componentId:"codegen_mlflow_app_src_model-registry_components_aliases_modelversionviewaliaseditor.tsx_37",size:"small",icon:(0,Y.Y)(h.fJ,{}),onClick:u,title:"Edit aliases"})]})]})};var Q=s(8449);var J={name:"s5xdrg",styles:"display:flex;align-items:center"},Z={name:"gc6sdx",styles:"padding-left:4px"},X={name:"vw6wts",styles:"margin-top:8px;display:flex;justify-content:flex-end"};class ee extends i.Component{constructor(...e){super(...e),this.state={isDeleteModalVisible:!1,isDeleteModalConfirmLoading:!1,showDescriptionEditor:!1,isTagsRequestPending:!1,isTagAssignmentModalVisible:!1,isSavingTags:!1,tagSavingError:void 0},this.formRef=i.createRef(),this.sharedTaggingUIEnabled=(0,U.V0)(),this.handleDeleteConfirm=()=>{const{modelName:e="",modelVersion:t,navigate:s}=this.props,{version:i}=t;this.showConfirmLoading(),this.props.deleteModelVersionApi(e,i).then(()=>{s(c.fM.getModelPageRoute(e))}).catch(e=>{this.hideConfirmLoading(),M.A.logErrorAndNotifyUser(e)})},this.showDeleteModal=()=>{this.setState({isDeleteModalVisible:!0})},this.hideDeleteModal=()=>{this.setState({isDeleteModalVisible:!1})},this.showConfirmLoading=()=>{this.setState({isDeleteModalConfirmLoading:!0})},this.hideConfirmLoading=()=>{this.setState({isDeleteModalConfirmLoading:!1})},this.handleCancelEditDescription=()=>{this.setState({showDescriptionEditor:!1})},this.handleSubmitEditDescription=e=>this.props.handleEditDescription(e).then(()=>{this.setState({showDescriptionEditor:!1})}),this.startEditingDescription=e=>{e.stopPropagation(),this.setState({showDescriptionEditor:!0})},this.getTags=()=>
1(0,a.sortBy)(M.A.getVisibleTagValues(this.props.tags).map(([e,t])=>({key:e,name:e,value:t})),"name"),this.handleCloseTagAssignmentModal=()=>{this.setState({isTagAssignmentModalVisible:!1,tagSavingError:void 0})},this.handleEditTags=()=>{this.setState({isTagAssignmentModalVisible:!0,tagSavingError:void 0})},this.handleSaveTags=(e,t)=>{this.setState({isSavingTags:!0});const{modelName:s}=this.props,{version:i}=this.props.modelVersion,n=e.map(({key:e,value:t})=>this.props.setModelVersionTagApi(s,i,e,t)),o=t.map(({key:e})=>this.props.deleteModelVersionTagApi(s,i,e));return Promise.all([...n,...o]).then(()=>{this.setState({isSavingTags:!1})}).catch(e=>{const t=e instanceof Q.s?e.getMessageField():e.message;this.setState({isSavingTags:!1,tagSavingError:t})})},this.handleAddTag=e=>{const t=this.formRef.current,{modelName:s}=this.props,{version:i}=this.props.modelVersion;this.setState({isTagsRequestPending:!0}),this.props.setModelVersionTagApi(s,i,e.name,e.value).then(()=>{this.setState({isTagsRequestPending:!1}),t.resetFields()}).catch(e=>{this.setState({isTagsRequestPending:!1});const t=e instanceof Q.s?e.getMessageField():e.message;M.A.displayGlobalErrorNotification(this.props.intl.formatMessage({id:"IWuVOI",defaultMessage:"Failed to add tag. Error: {userVisibleError}"},{userVisibleError:t}))})},this.handleSaveEdit=({name:e,value:t})=>{const{modelName:s}=this.props,{version:i}=this.props.modelVersion;return this.props.setModelVersionTagApi(s,i,e,t).catch(e=>{const t=e instanceof Q.s?e.getMessageField():e.message;M.A.displayGlobalErrorNotification(this.props.intl.formatMessage({id:"HNLDYl",defaultMessage:"Failed to set tag. Error: {userVisibleError}"},{userVisibleError:t}))})},this.handleDeleteTag=({name:e})=>{const{modelName:t}=this.props,{version:s}=this.props.modelVersion;return this.props.deleteModelVersionTagApi(t,s,e).catch(e=>{const t=e instanceof Q.s?e.getMessageField():e.message;M.A.displayGlobalErrorNotification(this.props.intl.formatMessage({id:"Ay+ZP/",defaultMessage:"Failed to delete tag. Error: {userVisibleError}"},{userVisibleError:t}))})},this.renderAliasEditor=()=>{var e,t;const s=this.props.modelVersion.version,i=(null===(e=this.props.modelEntity)||void 0===e||null===(t=e.aliases)||void 0===t?void 0:t.filter(({version:e})=>e===s).map(({alias:e})=>e))||[];return(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"HzGYm5",defaultMessage:"Aliases"}),children:(0,Y.Y)(W,{aliases:i,version:this.props.modelVersion.version,modelEntity:this.props.modelEntity,onAliasesModified:this.props.onAliasesModified})},"description-key-aliases")}}componentDidMount(){const e=`${this.props.modelName} v${this.props.modelVersion.version} - MLflow Model`;M.A.updatePageTitle(e)}shouldHideDeleteOption(){return!1}renderStageDropdown(e){const{handleStageTransitionDropdownSelect:t}=this.props;return(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"IHyeUr",defaultMessage:"Stage"}),children:e.status===T.IP.READY?(0,Y.Y)(k,{currentStage:e.current_stage,permissionLevel:e.permission_level,onSelect:t}):T.$0[e.current_stage]},"description-key-stage")}renderDisabledStage(e){const t=(0,Y.Y)(f.A,{id:"gIc8Lp",defaultMessage:"Stages have been deprecated in the new Model Registry UI. Learn how to migrate models <link>here</link>.",values:{link:e=>(0,Y.Y)(h.T.Link,{componentId:"codegen_mlflow_app_src_model-registry_components_modelversionview.tsx_301",href:N.pG,openInNewTab:!0,children:e})}});return(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"paQ2Wc",defaultMessage:"Stage (deprecated)"}),children:(0,Y.FD)("div",{css:J,children:[T.QQ[e.current_stage],(0,Y.Y)(h.s,{componentId:"codegen_mlflow_app_src_model-registry_components_modelversionview_tsx_394",content:t,side:"bottom",children:(0,Y.Y)(h.I,{css:Z})})]})},"description-key-stage-disabled")}renderRegisteredTimestampDescription(e){return(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"+1i81u",defaultMessage:"Registered At"}),children:M.A.formatTimestamp(e,this.props.intl)},"description-key-register")}renderCreatorDescription(e){return e&&(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"5Mzn2b",defaultMessage:"Creator"}),children:e},"description-key-creator")}renderLastModifiedDescription(e){return(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"o7dzKo",defaultMessage:"Last Modified"}),children:M.A.formatTimestamp(e,this.props.intl)},"description-key-modified")}renderSourceRunDescription(){var e;return null!==(e=this.props.modelVersion)&&void 0!==e&&e.run_id?(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"+LLlvi",defaultMessage:"Source Run"}),className:"linked-run",children:this.resolveRunLink()},"description-key-source-run"):null}renderCopiedFromLink(){const{source:e}=this.props.modelVersion;if(!e||!/^models:\/[^/]+\/[^/]+$/.test(e))return null;const t=e.split("/"),s=t[1],i=t[2],n=(0,Y.FD)(Y.FK,{children:[(0,Y.Y)(d.N_,{componentId:"mlflow.model_registry.version_view.copied_from_link","data-testid":"copied-from-link",to:c.fM.getModelVersionPageRoute(s,i),children:s}),"\xa0",(0,Y.Y)(f.A,{id:"1RxxTj",defaultMessage:"(Version {sourceModelVersion})",values:{sourceModelVersion:i}})]});return(0,Y.Y)(E.K.Item,{label:this.props.intl.formatMessage({id:"oZReP2",defaultMessage:"Copied from"}),children:n},"description-key-copied-from")}
1getDescriptions(e){const{usingNextModelsUI:t}=this.props;return[this.renderRegisteredTimestampDescription(e.creation_timestamp),this.renderCreatorDescription(e.user_id),this.renderLastModifiedDescription(e.last_updated_timestamp),this.renderSourceRunDescription(),this.renderCopiedFromLink(),t?this.renderAliasEditor():this.renderStageDropdown(e),t?this.renderDisabledStage(e):null].filter(e=>null!==e)}renderMetadata(e){return(0,Y.Y)(E.K,{columns:5,className:"metadata-list",children:this.getDescriptions(e)})}renderStatusAlert(){const{status:e,status_message:t}=this.props.modelVersion;if(e!==T.IP.READY){const s=T.zA[e],i=e===T.IP.FAILED_REGISTRATION?"error":"info";return(0,Y.Y)(D.Alert,{type:i,className:`mlflow-status-alert mlflow-status-alert-${i}`,message:t||s,icon:T.UA[e],banner:!0})}return null}renderDescriptionEditIcon(){return(0,Y.FD)(h.B,{componentId:"codegen_mlflow_app_src_model-registry_components_modelversionview.tsx_516","data-testid":"descriptionEditButton",type:"link",onClick:this.startEditingDescription,children:[(0,Y.Y)(f.A,{id:"Ik96R6",defaultMessage:"Edit"})," "]})}resolveRunLink(){const{modelVersion:e,runInfo:t}=this.props;if(e.run_link)return(0,Y.Y)("a",{target:"_blank",href:e.run_link,children:this.resolveRunName()});if(t){var s;let e=null;const i=null===(s=this.props.modelVersion)||void 0===s?void 0:s.source;return i&&(e=function(e,t){var s;return null===(s=e.match(new RegExp(`/${t}/artifacts/(.+)`)))||void 0===s?void 0:s[1]}(i,t.runUuid)),(0,Y.Y)(d.N_,{componentId:"mlflow.model_registry.version_view.source_run_link",to:F.Ay.getRunPageRoute(t.experimentId,t.runUuid,e),children:this.resolveRunName()})}return null}resolveRunName(){const{modelVersion:e,runInfo:t,runDisplayName:s}=this.props;return e.run_link?e.run_link.substr(0,37)+"...":t?s||t.runUuid:null}renderPomoteModelButton(){const{modelVersion:e,usingNextModelsUI:t,navigate:s}=this.props;return t?(0,Y.Y)(I,{modelVersion:e}):null}renderTags(){return this.sharedTaggingUIEnabled?(0,Y.Y)(E.K,{columns:1,"data-testid":"model-view-tags",children:(0,Y.Y)(E.K.Item,{label:"Tags",children:(0,Y.Y)(p.L,{tags:this.getTags(),onEdit:this.handleEditTags})})}):null}getPageHeader(e,t){const s=[{id:"delete",itemName:(0,Y.Y)(f.A,{id:"4+RPaz",defaultMessage:"Delete"}),onClick:this.showDeleteModal,disabled:T.jI.includes(this.props.modelVersion.current_stage)}];return(0,Y.FD)($.z,{title:e,breadcrumbs:t,children:[!this.shouldHideDeleteOption()&&(0,Y.Y)($.o,{menu:s}),this.renderPomoteModelButton()]})}render(){const{modelName:e="",modelVersion:t,tags:s,schema:i}=this.props,{description:n}=t,{isDeleteModalVisible:o,isDeleteModalConfirmLoading:r,showDescriptionEditor:l,isTagsRequestPending:a}=this.state,u=(0,Y.Y)(f.A,{id:"F16DNA",defaultMessage:"Version {versionNum}",values:{versionNum:t.version}}),p=[(0,Y.Y)(d.N_,{componentId:"mlflow.model_registry.version_view.breadcrumb_registered_models_link",to:c.fM.modelListPageRoute,children:(0,Y.Y)(f.A,{id:"pl1bdY",defaultMessage:"Registered Models"})}),(0,Y.Y)(d.N_,{componentId:"mlflow.model_registry.version_view.breadcrumb_model_link","data-testid":"breadcrumbRegisteredModel",to:c.fM.getModelPageRoute(e),children:e})];return(0,Y.FD)("div",{children:[(0,Y.Y)(m,{isLoading:this.state.isSavingTags,error:this.state.tagSavingError,visible:this.state.isTagAssignmentModalVisible,initialTags:this.getTags(),componentIdPrefix:"model-version-view",onSubmit:this.handleSaveTags,onClose:this.handleCloseTagAssignmentModal}),this.getPageHeader(u,p),this.renderStatusAlert(),this.renderMetadata(t),this.renderTags(),(0,U.WX)()&&(0,Y.Y)("div",{css:X,children:(0,Y.Y)(H.C,{})}),(0,Y.Y)(P.i,{title:(0,Y.FD)("span",{children:[(0,Y.Y)(f.A,{id:"z9UqPZ",defaultMessage:"Description"})," ",l?null:this.renderDescriptionEditIcon()]}),forceOpen:l,defaultCollapsed:!n,"data-testid":"model-version-description-section",children:(0,Y.Y)(L.VY,{defaultMarkdown:n,onSubmit:this.handleSubmitEditDescription,onCancel:this.handleCancelEditDescription,showEditor:l})}),!this.sharedTaggingUIEnabled&&(0,Y.Y)("div",{"data-testid":"tags-section",children:(0,Y.Y)(P.i,{title:(0,Y.Y)(f.A,{id:"TlFUsN",defaultMessage:"Tags"}
1),defaultCollapsed:0===M.A.getVisibleTagValues(s).length,"data-testid":"model-version-tags-section",children:(0,Y.Y)(q.h,{innerRef:this.formRef,handleAddTag:this.handleAddTag,handleDeleteTag:this.handleDeleteTag,handleSaveEdit:this.handleSaveEdit,tags:s,isRequestPending:a})})}),(0,Y.Y)(P.i,{title:(0,Y.Y)(f.A,{id:"gUdmaJ",defaultMessage:"Schema"}),"data-testid":"model-version-schema-section",children:(0,Y.Y)(b.i,{schema:i})}),(0,Y.Y)(h.M,{title:this.props.intl.formatMessage({id:"98Ub01",defaultMessage:"Delete Model Version"}),visible:o,confirmLoading:r,onOk:this.handleDeleteConfirm,okText:this.props.intl.formatMessage({id:"ICtiKS",defaultMessage:"Delete"}),okType:"danger",onCancel:this.hideDeleteModal,cancelText:this.props.intl.formatMessage({id:"zMhOr3",defaultMessage:"Cancel"}),children:(0,Y.Y)("span",{children:(0,Y.Y)(f.A,{id:"88l+j9",defaultMessage:"Are you sure you want to delete model version {versionNum}? This cannot be undone.",values:{versionNum:t.version}})})})]})}}const te={setModelVersionTagApi:o.Id,deleteModelVersionTagApi:o.nZ},se=(0,n.Ng)((e,t)=>{const{modelName:s}=t,{version:i}=t.modelVersion;return{tags:(0,l.hs)(s,i,e)}},te)((0,K.p)((0,O.Ay)(ee)));var ie=s(54081),ne=s(46680),oe=s(86037),re=s(51768),le=s(63733),ae=s(10401),de=s(49888),ce=s(23634),ue=s(5993),me=s(19159);const pe=({modelName:e,version:t})=>((0,me.qd)("modelName",e),(0,me.qd)("modelVersion",t),null);class he extends i.Component{constructor(...e){super(...e),this.listTransitionRequestId=void 0,this.pollIntervalId=void 0,this.initGetModelVersionDetailsRequestId=(0,v.yk)(),this.getRunRequestId=(0,v.yk)(),this.updateModelVersionRequestId=(0,v.yk)(),this.transitionModelVersionStageRequestId=(0,v.yk)(),this.getModelVersionDetailsRequestId=(0,v.yk)(),this.initGetMlModelFileRequestId=(0,v.yk)(),this.state={criticalInitialRequestIds:[this.initGetModelVersionDetailsRequestId,this.initGetMlModelFileRequestId]},this.pollingRelatedRequestIds=[this.getModelVersionDetailsRequestId,this.getRunRequestId],this.hasPendingPollingRequest=()=>this.pollingRelatedRequestIds.every(e=>{const t=this.props.apis[e];return Boolean(t&&t.active)}),this.loadData=e=>{const t=[this.getModelVersionDetailAndRunInfo(e)];return Promise.all(t)},this.pollData=()=>{const{modelName:e,version:t,navigate:s}=this.props;return!this.hasPendingPollingRequest()&&M.A.isBrowserTabVisible()?this.loadData().catch(i=>{"RESOURCE_DOES_NOT_EXIST"===i.getErrorCode()&&(M.A.logErrorAndNotifyUser(i),this.props.deleteModelVersionApi(e,t,void 0,!0),s(c.fM.getModelPageRoute(e)))}):Promise.resolve()},this.handleStageTransitionDropdownSelect=(e,t)=>{const{modelName:s,version:i}=this.props,n=e.to_stage;e.type===T.$p.APPLIED_TRANSITION&&this.props.transitionModelVersionStageApi(s,i.toString(),n,t,this.transitionModelVersionStageRequestId).then(this.loadData).catch(M.A.logErrorAndNotifyUser)},this.handleEditDescription=e=>{const{modelName:t,version:s}=this.props;return this.props.updateModelVersionApi(t,s,e,this.updateModelVersionRequestId).then(this.loadData).catch(()=>{})},this.loadModelDataWithAliases=()=>{this.props.getRegisteredModelApi(this.props.modelName)}}getModelVersionDetailAndRunInfo(e){const{modelName:t,version:s}=this.props;return this.props.getModelVersionApi(t,s,!0===e?this.initGetModelVersionDetailsRequestId:this.getModelVersionDetailsRequestId).then(({value:e})=>{var t;e&&!e[(0,le.zL)("model_version")].run_link&&null!==(t=e[(0,le.zL)("model_version")])&&void 0!==t&&t.run_id&&this.props.getRunApi(e[(0,le.zL)("model_version")].run_id,this.getRunRequestId)})}getModelVersionMlModelFile(){const{modelName:e,version:t}=this.props;this.props.getModelVersionArtifactApi(e,t).then(s=>this.props.parseMlModelFile(e,t,s.value,this.initGetMlModelFileRequestId)).catch(()=>{this.setState(e=>({criticalInitialRequestIds:(0,a.without)(e.criticalInitialRequestIds,this.initGetMlModelFileRequestId)}))})}componentDidMount(){this.loadData(!0).catch(()=>{}),this.loadModelDataWithAliases(),this.pollIntervalId=setInterval(this.pollData,T.Gs),this.getModelVersionMlModelFile()}componentDidUpdate(e){this.props.version===e.version&&this.props.modelName===e.modelName||(this.loadData(!0).catch(()=>{}),this.getModelVersionMlModelFile())}componentWillUnmount(){clearInterval(this.pollIntervalId)}render(){const{modelName:e,version:t,modelVersion:s,runInfo:i,runDisplayName:n,navigate:o,schema:r,modelEntity:l}=this.props;return(0,Y.FD)(ae.L,{children:[(0,Y.Y)(pe,{modelName:e,version:t}),(0,Y.Y)(ne.Ay,{requestIds:this.state.criticalInitialRequestIds,children:(a,d,u)=>{if(d){clearInterval(this.pollIntervalId);const s=M.A.getResourceConflictError(u,this.state.criticalInitialRequestIds);if(s)return(0,Y.Y)(oe.E,{statusCode:409,subMessage:s.error.getMessageField(),fallbackHomePageReactRoute:c.fM.modelListPageRoute});if(M.A.shouldRender404(u,this.state.criticalInitialRequestIds))return(0,Y.Y)(oe.E,{statusCode:404,subMessage:`Model ${e} v${t} does not exist`,fallbackHomePageReactRoute:c.fM.modelListPageRoute});const i=u.filter(e=>{var t;return this.state.criticalInitialRequestIds.includes(e.id)&&(null===(t=e.error)||void 0===t?void 0:t.getErrorCode())===N.tG.PERMISSION_DENIED});var m;if(i&&i[0])return(0,Y.Y)(oe.E,{statusCode:403,subMessage:this.props.intl.formatMessage({id:"bQSJKh",defaultMessage:'Permission denied for {modelName} version {version}. Error: "{errorMsg}"'},{modelName:e,version:t,errorMsg:null===(m=i[0].error)||void 0===m?void 0:m.getMessageField()}),fallbackHomePageReactRoute:c.fM.modelListPageRoute});(0,ne.dD)(u)}else{if(a)return(0,Y.Y)(re.y,{});if(s)return(0,Y.Y)(se,{modelName:e,modelVersion:s,modelEntity:l,runInfo:i,runDisplayName:n,handleEditDescription:this.handleEditDescription,deleteModelVersionApi:this.props.deleteModelVersionApi,navigate:o,handleStageTransitionDropdownSelect:this.handleStageTransitionDropdownSelect,schema:r,onAliasesModified:this.loadModelDataWithAliases})}return null}})]})}}const ge={getModelVersionApi:o.s5,getRegisteredModelApi:o.SY,updateModelVersionApi:o.DL,transitionModelVersionStageApi:o.tP,getModelVersionArtifactApi:o.ax,parseMlModelFile:o.qI,deleteModelVersionApi:o.TQ,getRunApi:r.aO},fe=(0,de.h)((0,n.Ng)((e,t)=>{const s=decodeURIComponent(t.params.modelName),{version:i}=t.params,n=(0,l.Af)(e,s,i),o=(0,l.SE)(e,s,i);let r=null;n&&!n.run_link&&(r=(0,ie.K4)(n&&n.run_id,e));const a=r&&(0,ie.X3)(r.runUuid,e)&&r&&M.A.getRunDisplayName(r,r.runUuid),d=e.entities.modelByName[s],{apis:c}=e;return{modelName:s,version:i,modelVersion:n,schema:o,runInfo:r,runDisplayName:a,apis:c,modelEntity:d}},ge)((0,O.Ay)(he))),ve=(0,ce.X)(ue.A.mlflowServices.MODEL_REGISTRY,fe),Me=ve},40234(e,t,s){s.d(t,{QN:()=>u,F3:()=>p,xH:()=>h,BE:()=>m});var i=s(51477),n=s(10587),o=s(77753),r=s(5460),l=s(63968);const{Option:a,OptGroup:d}=n.aI,c="Create New Model",u=`$$$__${c}__$$$`,m="selectedModel",p="modelName";class h extends i.Component{constructor(...e){super(...e),this.state={selectedModel:null},this.handleModelSelectChange=e=>{this.setState({selectedModel:e})},this.modelNameValidator=(e,t,s)=>{const{modelByName:i}=this.props;s(i[t]?`Model "${t}" already exists.`:void 0)},this.handleFilterOption=(e,t)=>-1!==(t&&t.value||"").toLowerCase().indexOf(e.toLowerCase())}renderExplanatoryText(){const{isCopy:e}=this.props,{selectedModel:t}=this.state;if(!t||t===u)return null;const s=e?(0,l.Y)(r.A,{id:"hxMEqi",defaultMessage:"The model version will be copied to {selectedModel} as a new version.",values:{selectedModel:t}}):(0,l.Y)(r.A,{id:"zjXq2X",defaultMessage:"The model will be registered as a new version of {selectedModel}.",values:{selectedModel:t}});return(0,l.Y)("p",{className:"modal-explanatory-text",children:s})}renderModel(e){return(0,l.Y)(a,{value:e.name,children:e.name},e.name)}render(){const{modelByName:e,innerRef:t,isCopy:s}=this.props,{selectedModel:i}=this.state,r=i===u;return(0,l.FD)(n.eL,{ref:t,layout:"vertical",className:"mlflow-register-model-form",children:[(0,l.Y)(n.eL.Item,{label:s?(0,l.Y)("b",{children:"Copy to model"}):"Model",name:m,rules:[{required:!0,message:"Please select a model or create a new one."}],children:(0,l.FD)(n.aI,{dropdownClassName:"mlflow-model-select-dropdown",onChange:this.handleModelSelectChange,placeholder:"Select a model",filterOption:this.handleFilterOption,onSearch:this.props.onSearchRegisteredModels,showSearch:!0,children:[(0,l.FD)(a,{value:u,className:"mlflow-create-new-model-option",children:[(0,l.Y)("i",{className:"fa fa-plus fa-fw",style:{fontSize:13}})," ",c]}),(0,l.Y)(d,{label:"Models",children:Object.values(e).map(e=>this.renderModel(e))})]})}),r?(0,l.Y)(n.eL.Item,{label:"Model Name",name:p,rules:[{required:!0,message:"Please input a name for the new model."},{validator:this.modelNameValidator}],children:(0,l.Y)(o.Input,{componentId:"codegen_mlflow_app_src_model-registry_components_registermodelform.tsx_132",placeholder:"Input a model name"})}):null,this.renderExplanatoryText()]})}}},9098(e,t,s){s.d(t,{i:()=>T});var i=s(15032),n=s(51477),o=s(77753),r=s(10587),l=s(67162),a=s(88843),d=s(74343),c=s(5460),u=s(29942),m=s(93041),p=s(63968);const{Text:h}=r.T;function g(e,t){const{type:s}=e,i=" ".repeat(2*t);if("object"===s){return`${i}{\n${Object.keys(e.properties).map(s=>{const i=e.properties[s],n=i.required?"":" (optional)",o=g(i,t+1),r=2*(t+1);return`${" ".repeat(r)}${s}: ${o.slice(r)+n}`}).join(",\n")}\n${i}}`}if("array"===s){const s=2*t;return`${i}Array(${g(e.items,t).slice(s)})`}return`${i}${s}`}var f={name:"hhyoc3",styles:"margin-left:32px"};function v({spec:e}){let t=!0;void 0!==e.required?({required:t}=e):void 0!==e.optional&&e.optional&&(t=!1);const s=t?(0,p.Y)(h,{bold:!0,children:"(required)"}):(0,p.Y)(h,{color:"secondary",children:"(optional)"}),i="name"in e?e.name:"-";return(0,p.FD)(h,{css:f,children:[i," ",s]})}function M({spec:e}){const{theme:t}=(0,r.u)(),s="tensor"===e.type?`Tensor (dtype: ${(n=e)["tensor-spec"].dtype}, shape: [${n["tensor-spec"].shape}])`:g(e,0);var n;return(0,p.Y)("pre",{css:(0,i.AH)({whiteSpace:"pre-wrap",padding:t.spacing.sm,marginTop:t.spacing.sm,marginBottom:t.spacing.sm},""),children:s})}var y={name:"1q1lx84",styles:"flex:2;align-items:center"},_={name:"qejc9x",styles:"flex:3;align-items:center"};const Y=({schemaData:e})=>{const t=(0,u.isEmpty)(e),s=(0,d.A)(),i=Boolean(e&&e.length>
1100),[h,g]=(0,n.useState)(""),f=(0,m.t)(h),Y=(0,n.useMemo)(()=>{if(!i)return e;const t=f.toLowerCase();return null===e||void 0===e?void 0:e.filter(e=>"name"in e&&null!==e.name&&String(e.name).toLowerCase().includes(t)).slice(0,100)},[e,f,i]);return t?(0,p.Y)(o.TableRow,{children:(0,p.Y)(o.TableCell,{children:(0,p.Y)(c.A,{id:"Wd8Tga",defaultMessage:"No schema. See <link>MLflow docs</link> for how to include input and output schema with your model.",values:{link:e=>(0,p.Y)("a",{href:a.zR,target:"_blank",rel:"noreferrer",children:e})}})})}):(0,p.FD)(p.FK,{children:[i&&(0,p.FD)(p.FK,{children:[(0,p.Y)(l.S,{}),(0,p.Y)(r.T.Hint,{children:(0,p.Y)(c.A,{id:"UYSMKb",defaultMessage:"Schema is too large to display all rows. Please search for a column name to filter the results. Currently showing {currentResults} results from {allResults} total rows.",values:{currentResults:null===Y||void 0===Y?void 0:Y.length,allResults:null===e||void 0===e?void 0:e.length}})}),(0,p.Y)(l.S,{}),(0,p.Y)(o.Input,{placeholder:s.formatMessage({id:"6BqLF2",defaultMessage:"Search for a field"}),componentId:"mlflow.schema_table.search_input",value:h,onChange:e=>g(e.target.value)}),(0,p.Y)(l.S,{})]}),null===Y||void 0===Y?void 0:Y.map((e,t)=>(0,p.FD)(o.TableRow,{children:[(0,p.Y)(o.TableCell,{css:y,children:(0,p.Y)(v,{spec:e})}),(0,p.Y)(o.TableCell,{css:_,children:(0,p.Y)(M,{spec:e})})]},t))]})};var A={name:"ddxhyk",styles:"max-width:800px"},I={name:"1189xqs",styles:"flex:2"},b={name:"15hibo9",styles:"flex:3"},w={name:"e0dnmk",styles:"cursor:pointer"},D={name:"e0dnmk",styles:"cursor:pointer"};const T=({schema:e,defaultExpandAllRows:t})=>{const{theme:s}
1=(0,r.u)(),[l,a]=(0,n.useState)(t),[d,u]=(0,n.useState)(t);return(0,p.FD)(o.Table,{css:A,children:[(0,p.FD)(o.TableRow,{isHeader:!0,children:[(0,p.Y)(o.TableHeader,{componentId:"mlflow.schema_table.header.name",css:I,children:(0,p.Y)(h,{bold:!0,css:(0,i.AH)({paddingLeft:s.spacing.lg+s.spacing.xs},""),children:(0,p.Y)(c.A,{id:"Nj6Ez5",defaultMessage:"Name"})})}),(0,p.Y)(o.TableHeader,{componentId:"mlflow.schema_table.header.type",css:b,children:(0,p.Y)(h,{bold:!0,children:(0,p.Y)(c.A,{id:"2f2qeb",defaultMessage:"Type"})})})]}),(0,p.FD)(p.FK,{children:[(0,p.Y)(o.TableRow,{onClick:()=>a(!l),css:w,children:(0,p.Y)(o.TableCell,{children:(0,p.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:s.spacing.xs},""),children:[(0,p.Y)("div",{css:(0,i.AH)({width:s.spacing.lg,height:s.spacing.lg,display:"flex",alignItems:"center",justifyContent:"center",svg:{color:s.colors.textSecondary}},""),children:l?(0,p.Y)(r.a$,{}):(0,p.Y)(r.b0,{})}),(0,p.Y)(c.A,{id:"sxlGRc",defaultMessage:"Inputs ({numInputs})",values:{numInputs:e.inputs.length}})]})})}),l&&(0,p.Y)(Y,{schemaData:e.inputs}),(0,p.Y)(o.TableRow,{onClick:()=>u(!d),css:D,children:(0,p.Y)(o.TableCell,{children:(0,p.FD)("div",{css:(0,i.AH)({display:"flex",alignItems:"center",gap:s.spacing.xs},""),children:[(0,p.Y)("div",{css:(0,i.AH)({width:s.spacing.lg,height:s.spacing.lg,display:"flex",alignItems:"center",justifyContent:"center",svg:{color:s.colors.textSecondary}},""),children:d?(0,p.Y)(r.a$,{}):(0,p.Y)(r.b0,{})}),(0,p.Y)(c.A,{id:"llVQ2r",defaultMessage:"Outputs ({numOutputs})",values:{numOutputs:e.outputs.length}})]})})}),d&&(0,p.Y)(Y,{schemaData:e.outputs})]})]})}},87866(e,t,s){s.d(t,{_C:()=>l,pc:()=>o,so:()=>r});var i=s(90817),n=s(10413);function o(e){return e?`${i.Qs} ilike ${(0,n.GP)(e,!0)}`:""}function r({query:e=""}={}){const t=[],s=e.includes("tags.")?e:o(e);return s&&t.push(s),t.join(" AND ")}function l(e){return"searchInput"in e?e.searchInput:"nameSearchInput"in e&&"tagSearchInput"in e?o(e.nameSearchInput)+" AND "+e.tagSearchInput:"tagSearchInput"in e?e.tagSearchInput:"nameSearchInput"in e?e.nameSearchInput:""}},24484(e,t,s){s.d(t,{w:()=>l});var i=s(51477),n=s(77753),o=s(63968);var r={name:"82a6rk",styles:"flex:1"};const l=(0,i.forwardRef)(({errorMessage:e,...t},s)=>(0,o.FD)("div",{css:r,children:[(0,o.Y)(n.Input,{validationState:e?"error":"info",...t,ref:s}),e&&(0,o.Y)(n.FormUI.Message,{message:e,type:"error"})]}))},40197(e,t,s){s.d(t,{R:()=>l});s(51477);var i=s(34550),n=s(24484),o=s(40779),r=s(63968);function l({index:e,rules:t,render:s}){const{name:l,keyProperty:a,getTagsValues:d,emptyValue:c,appendIfPossible:u}=(0,o.Y7)();return(0,r.Y)(i.xI,{name:`${l}.${e}.${a}`,rules:t,render:({field:e,fieldState:t,formState:i})=>{var o;const l=e.onChange;return e.onChange=function(e){var t;l(e);const s=d();null!==s&&void 0!==s&&null!==(t=s.at(-1))&&void 0!==t&&t[a]&&u(c,{shouldFocus:!1})},s?s({field:e,fieldState:t,formState:i}):(0,r.Y)(n.w,{componentId:"TagAssignmentKey.Default.Input",errorMessage:null===(o=t.error)||void 0===o?void 0:o.message,...e})}})}},83906(e,t,s){s.d(t,{C:()=>o});var i=s(10587),n=s(63968);function o({children:e}){return(0,n.Y)(i.T.Text,{bold:!0,children:e})}},70750(e,t,s){s.d(t,{k:()=>r});var i=s(69588),n=s(40779),o=s(63968);function r({index:e,...t}){const{removeOrUpdate:s}=(0,n.Y7)();return(0,o.Y)(i.u,{onClick:()=>s(e),...t})}},37798(e,t,s){s.d(t,{E:()=>d});var i=s(24890),n=s.n(i),o=s(34550),r=s(31095),l=s(40779),a=s(63968);function d({children:e,...t}){const s=(0,o.xW)(),i=(0,a.Y)(l.Os,{...t,children:(0,a.Y)(r.V,{children:e})});return s?i:(n()(t.form,"Nest your component on a FormProvider or pass a form prop"),(0,a.Y)(o.Op,{...t.form,children:i}))}},32324(e,t,s){s.d(t,{q:()=>d});var i=s(15032),n=s(24890),o=s.n(n),r=s(51477),l=s(10587),a=s(63968);function d({children:e}){const{theme:t}=(0,l.u)(),s=r.Children.toArray(e);o()(s.length<=3,"TagAssignmentRow must have 3 children or less");const n=Array(3).fill(null).map((e,i)=>{var n;return null!==(n=s[i])&&void 0!==n?n:(0,a.Y)("span",{style:{width:t.general.heightSm}},i)});return(0,a.Y)("div",{css:(0,i.AH)({display:"grid",gridTemplateColumns:"1fr 1fr min-content",gap:t.spacing.sm},""),children:n})}},69588(e,t,s){s.d(t,{u:()=>
1o});var i=s(10587),n=s(63968);function o(e){return(0,n.Y)(i.B,{icon:(0,n.Y)(i.hF,{}),...e})}},31095(e,t,s){s.d(t,{V:()=>r});var i=s(15032),n=s(10587),o=s(63968);function r({children:e}){const{theme:t}=(0,n.u)();return(0,o.Y)("div",{css:(0,i.AH)({display:"flex",flexDirection:"column",gap:t.spacing.sm},""),children:e})}},8871(e,t,s){s.d(t,{t:()=>l});var i=s(34550),n=s(24484),o=s(40779),r=s(63968);function l({rules:e,index:t,render:s}){const{name:l,valueProperty:a}=(0,o.Y7)();return(0,r.Y)(i.xI,{rules:e,name:`${l}.${t}.${a}`,render:({field:e,fieldState:t,formState:i})=>{var o;return s?s({field:e,fieldState:t,formState:i}):(0,r.Y)(n.w,{componentId:"TagAssignmentValue.Default.Input",errorMessage:null===(o=t.error)||void 0===o?void 0:o.message,...e})}})}},40779(e,t,s){s.d(t,{Os:()=>a,Y7:()=>d});var i=s(24890),n=s.n(i),o=s(51477),r=s(63968);const l=(0,o.createContext)(null);function a({children:e,...t}){return(0,r.Y)(l.Provider,{value:t,children:e})}function d(){const e=(0,o.useContext)(l);return n()(e,"useTagAssignmentContext must be used within a TagAssignmentRoot"),e}},16680(e,t,s){s.d(t,{$:()=>d});var i=s(24890),n=s.n(i),o=s(51477),r=s(34550),l=s(74343);function a(e,t){if(void 0!==e)return 0===e&&n()(!1,"maxLength must be greater than 0"),{maxLength:{value:e,message:t.formatMessage({id:"JW0GbU",defaultMessage:"You can set a maximum of {maxLength} values"},{maxLength:e})}}}function d({name:e,maxLength:t,emptyValue:s,defaultValues:i,loading:d,form:c,keyProperty:u,valueProperty:m}){const[p]=(0,o.useState)(s),h=(0,r.xW)(),g=Boolean(h)&&!c,f=g?h:c;n()(f,"Nest your component on a FormProvider or pass a form prop"),n()(!(i&&g),"Define defaultValues at form context level");const{setValue:v}=f,M=function({name:e,maxLength:t,emptyValue:s,form:i,keyProperty:d}){const c=(0,l.A)(),u=(0,r.xW)(),m=Boolean(u)&&!i?u:i;n()(m,"Nest your component on a FormProvider or pass a form prop");const[p]=(0,o.useState)(s),{append:h,update:g,remove:f,...v}=(0,r.jz)({name:e,control:m.control,rules:a(t,c)}),{getValues:M}=m,y=(0,o.useCallback)(()=>M(e),[M,e]),_=(0,o.useCallback)((e,s)=>{const i=y();t&&i&&i.length>=t||h(e,s)},[y,t,h]),Y=(0,o.useCallback)(e=>{const t=y();if(t&&e===t.length-1)return g(e,p);const s=null===t||void 0===t?void 0:t.at(-1);if(null!==s&&void 0!==s&&s[d])return f(e),void h(p,{shouldFocus:!1});f(e)},[p,y,d,h,f,g]);return{form:m,...v,originalAppend:h,update:g,originalRemove:f,appendIfPossible:_,removeOrUpdate:Y,getTagsValues:y}}({name:e,maxLength:t,emptyValue:s,form:f,keyProperty:u}),y=M.getTagsValues;return(0,o.useEffect)(()=>{if(!d){if(i){const s=[...i];return(!t||t&&s.length<t)&&s.push(p),void v(e,s)}if(g){var s;const i=null!==(s=y())&&void 0!==s?s:[];return(!t||t&&i.length<t)&&i.push(p),void v(e,i)}v(e,[p])}},[i,v,d,t,e,p,g,y]),{...M,form:f,maxLength:t,emptyValue:s,name:e,keyProperty:u,valueProperty:m}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.