function e(e,t){let n={pending:[`active`,`blocked`,`done`,`cancelled`],active:[`pending`,`blocked`,`done`,`cancelled`],blocked:[`pending`,`active`,`done`,`cancelled`],done:[`pending`,`active`],cancelled:[`pending`]}[e];return n?n.includes(t)?[]:[{rule:`valid-status-transition`,field:`status`,message:`Cannot transition from '${e}' to '${t}'. Valid: ${n.join(`, `)}`,severity:`error`}]:[{rule:`valid-status-transition`,field:`status`,message:`Unknown current status: '${e}'`,severity:`error`}]}export{e as validateStatusTransition};