import{ab as e,r as t}from"./index-C1tQD-C0.js";import{e as o}from"./equals-cwY-6C0z.js";const r=e("running",(()=>{const e=t(void 0),r=t({cg1:{grids:[],group:"",hasSomeGridInReacting:!1,hasSomeGridReactedCompleted:!1,isInstalled:!1,version:"",projBriefInfo:{projId:0,projName:"",projShortName:"",color:""},inReacting:!1}}),a=t({grids:[],group:"",hasSomeGridInReacting:!1,hasSomeGridReactedCompleted:!1,isInstalled:!1,version:"",projBriefInfo:{projId:0,projName:"",projShortName:"",color:""},inReacting:!1}),s=t(void 0),i=t(void 0);return{subTanks:e,setSubTanks:t=>{e.value=t},optScanModuleState:s,setOptScanModuleState:e=>{s.value=e},tubeHolderState:i,setTubeHolderState:e=>{o(i.value,e)||(i.value=e)},preReactoinGroupMap:r,setPreReactoinGroupMap:e=>{const t=e.group;r.value[t]=e},preReactoinGroup:a,setPreReactoinGroup:e=>{a.value=e}}}));function a(e,t="YYYY-MM-DD HH:mm:ss"){if(!e)return"";let o;if(e instanceof Date)o=e;else{let t=Number(e);if(isNaN(t))return"";10===String(Math.floor(t)).length&&(t*=1e3),o=new Date(t)}if(isNaN(o.getTime()))return"";const r={YYYY:o.getFullYear().toString(),MM:("0"+(o.getMonth()+1)).slice(-2),DD:("0"+o.getDate()).slice(-2),HH:("0"+o.getHours()).slice(-2),mm:("0"+o.getMinutes()).slice(-2),ss:("0"+o.getSeconds()).slice(-2)};return t.replace(/YYYY|MM|DD|HH|mm|ss/g,(e=>r[e]))}export{a as f,r as u};
