import u from"moment";import{OBJECTIVE_PERIOD_LIST as n}from"../constants.js";var l=function(l,t,r){var a,o=u().unix();return l===n[1].value?a=u().subtract(12,"hours").unix():l===n[2].value?a=u().subtract(24,"hours").unix():l===n[3].value?a=u().subtract(7,"days").unix():l===n[4].value?a=u().subtract(1,"month").unix():l===n[5].value?(a=null!=t?t:null,o=null!=r?r:null):(a=null,o=null),[a,o]};export{l as getTimestampByPeriod};
//# sourceMappingURL=getTimestampByPeriod.js.map
