const e=new Map;e.set("running","success");e.set("partialError","warning");e.set("failed","error");e.set("stopped","default");e.set("processing","#cccccc");e.set("enabled","processing");e.set("disabled","error");const r=new RegExp(/^\d+$/),s={int8:1,int16:2,int32:4,int64:8,ieee754_float:4,ieee754_double:8,hex:1},t={name:[{required:!0,message:"请输入点位名称"},{max:64,message:"最多可输入64个字符"}],function:[{required:!0,message:"请选择功能码"}],pointKey:[{required:!0,message:"请输入地址"},{pattern:r,message:"请输入0-999999999之间的正整数"}],quantity:[{required:!0,message:"请输入寄存器数量"},{pattern:r,message:"请输入1-255之间的正整数"}],provider:[{required:!0,message:"请选择数据类型"}],scaleFactor:[{required:!0,message:"请输入缩放因子"}],accessModes:[{required:!0,message:"请选择访问类型"}],writeByteCount:[{required:!0,message:"请选择是否写入数据区长度"}],byteCount:[{required:!0,message:"请输入自定义数据区长度(byte)"}],interval:[{required:!0,message:"请输入采集频率"},{pattern:r,message:"请输入0或者正整数"}],description:[{max:200,message:"最多可输入200个字符"}]},a={name:[{required:!0,message:"请输入点位名称"},{max:64,message:"最多可输入64个字符"}],type:[{required:!0,message:"请选择数据类型"}],accessModes:[{required:!0,message:"请选择访问类型"}],interval:[{required:!0,message:"请输入采集频率"},{pattern:r,message:"请输入0或者正整数"}],description:[{max:200,message:"最多可输入200个字符"}]},i={channelId:[{required:!0,message:"请选择所属通道",trigger:"blur"}],name:[{required:!0,message:"请输入采集器名称",trigger:"blur"},{max:64,message:"最多可输入64个字符"}],unitId:[{required:!0,message:"请输入从机地址",trigger:"blur"},{pattern:r,message:"请输入0-255之间的正整数"}],type:[{required:!0,message:"请选择处理方式",trigger:"blur"}],endian:[{required:!0,message:"请选择双字高低位切换",trigger:"blur"}],endianIn:[{required:!0,message:"请选择单字高低位切换",trigger:"blur"}]},d=[{title:"名称",dataIndex:"name",key:"name",width:140,fixed:"left"},{title:"nodeId",dataIndex:"id",key:"id",width:200,ellipsis:!0},{title:"访问类型",dataIndex:"accessModes",key:"accessModes",width:260},{title:"采集频率",key:"interval",dataIndex:"interval",width:200},{title:"只推送变化的数据",key:"features",dataIndex:"features",width:140},{title:"操作",key:"action",dataIndex:"action",fixed:"right",width:50}];export{d as F,i as L,t as M,a as O,e as a,s as c,r};
