import"./useForm-DfoT2G6J.js";import{m as c}from"./index-Cy4uayzW.js";import{h as u,i as d}from"./componentMap-0iK4HQBq.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JSelectUser-B98pRPrS.js";import"./JSelectDept-D-TUaHvK.js";import"./JCodeEditor-U9QIstNN.js";import"./JAddInput-DP4caUmw.js";import"./JPopup-CVHkQZFq.js";import{C as n}from"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.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)}}},J=m.validator;export{J};
