"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getCtaKey = void 0;
var _locale = require("@mirai/locale");
var _Payment = require("../../../../Payment/Payment.constants");
var _FormAddon = require("../FormAddon.l10n");
const {
  TPV
} = _Payment.METHOD;
const {
  ACTION_BOOK,
  ACTION_PROCEED_TO_PAYMENT
} = _FormAddon.L10N;
const getCtaKey = (date, method) => method === TPV ? date && (0, _locale.dateDiff)((0, _locale.UTC)(new Date()), date).days > 0 ? ACTION_BOOK : ACTION_PROCEED_TO_PAYMENT : ACTION_BOOK;
exports.getCtaKey = getCtaKey;
//# sourceMappingURL=getCtaKey.js.map