import"./useForm-8o5KRzWo.js";import{m as c}from"./index-CYriLmQo.js";import{h as u,i as d}from"./componentMap-7D1QIeNI.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JSelectUser-nVFm3ao2.js";import"./JSelectDept-DorRVguN.js";import"./JCodeEditor-_KZ8XnNK.js";import"./JAddInput-CXT54-j9.js";import"./JPopup-KP1kIsae.js";import{C as n}from"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";const m={validator({},o){if(!o)return Promise.resolve();const e=o.split(" ").filter(r=>!!r);if(e.length>7)return Promise.reject("Cron表达式最多7项！");let i=o;if(e.length===7){const r=e[6];if(r!=="*"&&r!=="?"){let t=[];if(r.indexOf("-")>=0?t=r.split("-"):r.indexOf("/")?t=r.split("/"):t=[r],t.some(s=>isNaN(Number(s))))return Promise.reject("Cron表达式参数[年]错误："+r)}i=e.slice(0,6).join(" ")}try{return n.parseExpression(i).next(),Promise.resolve()}catch(r){return Promise.reject("Cron表达式错误："+r)}}},k=m.validator;export{k as J};
