"use strict";const e=require("../../common/vendor.js"),t={WAIT_START:"即将开始",STARTED:"进行中",END:"已结束"};exports.CouponTemplateValidityTypeEnum={DATE:{type:1,name:"固定日期可用"},TERM:{type:2,name:"领取之后可用"}},exports.PromotionDiscountTypeEnum={PRICE:{type:1,name:"满减"},PERCENT:{type:2,name:"折扣"}},exports.TimeStatusEnum=t,exports.getTimeStatusEnum=(T,n)=>{const o=e.dayjs();return o.isBefore(T)?t.WAIT_START:o.isAfter(n)?t.END:t.STARTED};
