2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 13584
|
|
|
|
|
// Function ID: 13585
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useOutboundPromotionRedemptionEndDate
|
2026-09-10 05:38:07 +00:00
|
|
|
// Dependencies: [19, 4166, 4255, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 13584 (useOutboundPromotionRedemptionEndDate)
|
|
|
|
|
import DateUtils from "DateUtils" /* 4255 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import hooks from "module_4166" /* 4166 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
let closure_4 = hooks.duration(30, "days");
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useOutboundPromotionRedemptionEndDate(arg0, arg1) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [arg0, arg1];
|
2026-09-10 05:38:07 +00:00
|
|
|
return noop.useMemo(() => {
|
|
|
|
|
let tmp = dependencyMap;
|
|
|
|
|
DateUtils;
|
|
|
|
|
if (closure_1) {
|
|
|
|
|
let outboundRedemptionEndDate = closure_0;
|
|
|
|
|
if (null != closure_0.outboundRedemptionEndDate) {
|
|
|
|
|
tmp = hooks;
|
2026-07-29 08:29:29 +00:00
|
|
|
outboundRedemptionEndDate = outboundRedemptionEndDate.outboundRedemptionEndDate;
|
|
|
|
|
let addResult = tmp(outboundRedemptionEndDate);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
addResult = hooks(outboundRedemptionEndDate.endDate).add(closure_4);
|
|
|
|
|
const obj = hooks(outboundRedemptionEndDate.endDate);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
return tmp3(hooks(closure_0.endDate), "LL");
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}, items);
|
|
|
|
|
};
|