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