import{T as t}from"./TrendLogChart.9cfe949b.js";import{d as e,a as l,Y as a,a4 as i,a5 as o,c as r,a6 as n}from"./index.3938ccd1.js";const s=e({__name:"TrendLogModal",props:{visible:{type:Boolean,default:!1},itemData:{default:null}},emits:["update:visible"],setup(e,{emit:s}){const d=e,u=s,m=l({get:()=>d.visible,set:t=>u("update:visible",t)}),p=l((()=>{var t,e,l,a,i,o,r;const n=null==(e=null==(t=d.itemData)?void 0:t.t3Entry)?void 0:e.label,s=null==(a=null==(l=d.itemData)?void 0:l.t3Entry)?void 0:a.pid,u=null==(o=null==(i=d.itemData)?void 0:i.t3Entry)?void 0:o.id;if(n)return n;if(null!=s&&u){const t="string"==typeof u?u.split("_").pop():null;if(t)return`${s}_${t}`}return(null==(r=d.itemData)?void 0:r.title)||"Trend Log Chart"})),v=()=>{m.value=!1};return(e,l)=>{const s=n("a-modal"),d=n("a-config-provider");return a(),i(d,{theme:{token:{colorPrimary:"#0064c8",colorBgBase:"#ffffff",colorText:"#000000",colorBorder:"#d9d9d9"}}},{default:o((()=>[r(s,{visible:m.value,"onUpdate:visible":l[0]||(l[0]=t=>m.value=t),title:null,width:1400,footer:null,style:{"border-radius":"0px",top:"5px"},wrapClassName:"t3-timeseries-modal",onCancel:v,centered:""},{default:o((()=>[r(t,{itemData:e.itemData,title:p.value},null,8,["itemData","title"])])),_:1},8,["visible"])])),_:1})}}});export{s as _};
