"use strict";(self.webpackChunk_mlflow_mlflow=self.webpackChunk_mlflow_mlflow||[]).push([[2168],{20338:function(e,n,i){i.d(n,{$:function(){return h}});var t=i(68248),s=i(27757),r=i(65641),l=i(79444),o=i(43544),d=i(37626),a=i(14429),c=i(43979),m=i(73408);const p=({viewState:e,experimentId:n,endpointName:i,timeRange:t})=>"logs"===e?(0,m.Y)(r.v,{experimentId:n||"",endpointName:i||"",timeRange:t}):null,u=({experimentIds:e,isLoadingExperiment:n})=>{const{theme:i}=(0,s.u)(),r=e[0],[l]=(0,d._)(),o=(0,a.Pz)();return(0,m.FD)("div",{css:(0,t.AH)({display:"flex",flexDirection:"column",gap:i.spacing.sm,height:"100%",overflowY:"hidden"},""),children:[(0,m.Y)(c.J,{viewState:l}),(0,m.Y)(p,{viewState:l,experimentId:r,timeRange:o})]})},g=({experimentIds:e,isLoadingExperiment:n})=>(0,m.Y)(o.y,{children:(0,m.Y)(l.k,{children:(0,m.Y)(u,{experimentIds:e,isLoadingExperiment:n})})});var f=i(54741);const h=({experimentIds:e})=>{const{theme:n}=(0,s.u)();return(0,m.Y)("div",{css:(0,t.AH)({minHeight:225,display:"flex",flexDirection:"column",gap:n.spacing.sm,flex:1,overflow:"hidden"},""),children:(0,m.Y)(x,{experimentIds:e})})},x=({experimentIds:e})=>{const{loading:n}=(0,f.L)({experimentId:e[0]});return(0,m.Y)(g,{experimentIds:e,isLoadingExperiment:n})}},37626:function(e,n,i){i.d(n,{_:function(){return l}});var t=i(46709),s=i(91105);const r="viewState",l=()=>{var e;const[n,i]=(0,s.ok)(),l=null!==(e=n.get(r))&&void 0!==e?e:"logs",o=(0,t.useCallback)((e,n=!1)=>{i(n=>void 0===e?(n.delete(r),n):(n.set(r,e),n),{replace:n})},[i]);return[l,o]}},43544:function(e,n,i){i.d(n,{y:function(){return c}});var t=i(89949),s=i(82716),r=i(27757),l=i(40724),o=i(73408);var d={name:"1vfb318",styles:"flex:1;display:flex;align-items:center;justify-content:center"};const a=({error:e})=>{var n;return(0,o.Y)(s.PageWrapper,{css:d,children:(0,o.Y)(s.Empty,{"data-testid":"fallback",title:(0,o.Y)(l.A,{id:"FbAMd+",defaultMessage:"Error"}),description:null!==(n=null===e||void 0===e?void 0:e.message)&&void 0!==n?n:(0,o.Y)(l.A,{id:"CbzDeZ",defaultMessage:"An error occurred while rendering this component."}),image:(0,o.Y)(r.k,{})})})},c=({children:e})=>(0,o.Y)(t.tH,{fallback:(0,o.Y)(a,{}),children:e})},43979:function(e,n,i){i.d(n,{J:function(){return c}});var t=i(68248),s=i(82716),r=i(27757),l=i(12998),o=i(84411),d=i(42747),a=i(73408);const c=({viewState:e,sessionId:n,className:i})=>{const{theme:c}=(0,r.u)();return(0,a.FD)("div",{css:(0,t.AH)({display:"flex",alignItems:"center",width:"100%",borderBottom:`1px solid ${c.colors.borderDecorative}`,paddingBottom:`${c.spacing.sm}px`},""),className:i,children:[!("single-chat-session"===e)&&(0,a.Y)(o.$,{}),"single-chat-session"===e&&(0,a.FD)("div",{css:(0,t.AH)({display:"flex",alignItems:"center",gap:c.spacing.sm},""),children:[(0,a.Y)(s.Tag,{color:"default",componentId:"mlflow.chat-sessions.session-header-label",css:(0,t.AH)({padding:c.spacing.xs+2,margin:0},""),children:(0,a.FD)("span",{css:(0,t.AH)({display:"flex",alignItems:"center",gap:c.spacing.sm},""),children:[(0,a.Y)(s.SpeechBubbleIcon,{}),(0,a.Y)(r.T.Text,{ellipsis:!0,bold:!0,children:(0,a.Y)(d.sA,{id:"EAf6xM",defaultMessage:"Session"})})]})}),(0,a.Y)(r.T.Title,{level:3,withoutMargins:!0,children:n}),n&&(0,a.Y)(l.ad,{copyText:n,componentId:"mlflow.chat-sessions.copy-session-id",buttonProps:{icon:void 0}})]})]})}},82168:function(e,n,i){i.r(n);var t=i(46709),s=i(59930),r=i.n(s),l=i(91105),o=i(20338),d=i(73408);n.default=()=>{const{experimentId:e}=(0,l.g)();r()(e,"Experiment ID must be defined");const n=(0,t.useMemo)(()=>[e],[e]);return(0,d.Y)(o.$,{experimentIds:n})}}}]);