import { ac as Ka, a as oe, ad as T, S as ga, x as ca, T as N, ae as Xa, af as qa, D as A, t as Na, p as E, A as Q, e as C, q as x, g as Ie, f as De } from "./index-162fd1aa.mjs";
import { c as j } from "./reactSlick-cb4a2d39.mjs";
import i from "react";
import { Link as ge } from "react-router-dom";
var ce = 6e4, er = function(a) {
  var r = new Date(a.getTime()), t = r.getTimezoneOffset();
  r.setSeconds(0, 0);
  var n = r.getTime() % ce;
  return t * ce + n;
};
function ar(e) {
  return e instanceof Date;
}
var q = ar, B = er, rr = q, G = 36e5, K = 6e4, tr = 2, nr = /[T ]/, Mr = /:/, ir = /^(\d{2})$/, sr = [
  /^([+-]\d{2})$/,
  /^([+-]\d{3})$/,
  /^([+-]\d{4})$/
], ur = /^(\d{4})/, or = [
  /^([+-]\d{4})/,
  /^([+-]\d{5})/,
  /^([+-]\d{6})/
], Ir = /^-(\d{2})$/, Dr = /^-?(\d{3})$/, gr = /^-?(\d{2})-?(\d{2})$/, cr = /^-?W(\d{2})$/, Nr = /^-?W(\d{2})-?(\d{1})$/, dr = /^(\d{2}([.,]\d*)?)$/, lr = /^(\d{2}):?(\d{2}([.,]\d*)?)$/, zr = /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/, jr = /([Z+-].*)$/, vr = /^(Z)$/, yr = /^([+-])(\d{2})$/, Tr = /^([+-])(\d{2}):?(\d{2})$/;
function fr(e, a) {
  if (rr(e))
    return new Date(e.getTime());
  if (typeof e != "string")
    return new Date(e);
  var r = a || {}, t = r.additionalDigits;
  t == null ? t = tr : t = Number(t);
  var n = mr(e), M = Or(n.date, t), u = M.year, o = M.restDateString, D = Sr(o, u);
  if (D) {
    var g = D.getTime(), I = 0, d;
    if (n.time && (I = Ar(n.time)), n.timezone)
      d = Er(n.timezone) * K;
    else {
      var c = g + I, v = new Date(c);
      d = B(v);
      var l = new Date(c);
      l.setDate(v.getDate() + 1);
      var y = B(l) - B(v);
      y > 0 && (d += y);
    }
    return new Date(g + I + d);
  } else
    return new Date(e);
}
function mr(e) {
  var a = {}, r = e.split(nr), t;
  if (Mr.test(r[0]) ? (a.date = null, t = r[0]) : (a.date = r[0], t = r[1]), t) {
    var n = jr.exec(t);
    n ? (a.time = t.replace(n[1], ""), a.timezone = n[1]) : a.time = t;
  }
  return a;
}
function Or(e, a) {
  var r = sr[a], t = or[a], n;
  if (n = ur.exec(e) || t.exec(e), n) {
    var M = n[1];
    return {
      year: parseInt(M, 10),
      restDateString: e.slice(M.length)
    };
  }
  if (n = ir.exec(e) || r.exec(e), n) {
    var u = n[1];
    return {
      year: parseInt(u, 10) * 100,
      restDateString: e.slice(u.length)
    };
  }
  return {
    year: null
  };
}
function Sr(e, a) {
  if (a === null)
    return null;
  var r, t, n, M;
  if (e.length === 0)
    return t = new Date(0), t.setUTCFullYear(a), t;
  if (r = Ir.exec(e), r)
    return t = new Date(0), n = parseInt(r[1], 10) - 1, t.setUTCFullYear(a, n), t;
  if (r = Dr.exec(e), r) {
    t = new Date(0);
    var u = parseInt(r[1], 10);
    return t.setUTCFullYear(a, 0, u), t;
  }
  if (r = gr.exec(e), r) {
    t = new Date(0), n = parseInt(r[1], 10) - 1;
    var o = parseInt(r[2], 10);
    return t.setUTCFullYear(a, n, o), t;
  }
  if (r = cr.exec(e), r)
    return M = parseInt(r[1], 10) - 1, Ne(a, M);
  if (r = Nr.exec(e), r) {
    M = parseInt(r[1], 10) - 1;
    var D = parseInt(r[2], 10) - 1;
    return Ne(a, M, D);
  }
  return null;
}
function Ar(e) {
  var a, r, t;
  if (a = dr.exec(e), a)
    return r = parseFloat(a[1].replace(",", ".")), r % 24 * G;
  if (a = lr.exec(e), a)
    return r = parseInt(a[1], 10), t = parseFloat(a[2].replace(",", ".")), r % 24 * G + t * K;
  if (a = zr.exec(e), a) {
    r = parseInt(a[1], 10), t = parseInt(a[2], 10);
    var n = parseFloat(a[3].replace(",", "."));
    return r % 24 * G + t * K + n * 1e3;
  }
  return null;
}
function Er(e) {
  var a, r;
  return a = vr.exec(e), a ? 0 : (a = yr.exec(e), a ? (r = parseInt(a[2], 10) * 60, a[1] === "+" ? -r : r) : (a = Tr.exec(e), a ? (r = parseInt(a[2], 10) * 60 + parseInt(a[3], 10), a[1] === "+" ? -r : r) : 0));
}
function Ne(e, a, r) {
  a = a || 0, r = r || 0;
  var t = new Date(0);
  t.setUTCFullYear(e, 0, 4);
  var n = t.getUTCDay() || 7, M = a * 7 + r + 1 - n;
  return t.setUTCDate(t.getUTCDate() + M), t;
}
var s = fr, Lr = s;
function xr(e, a) {
  var r = Lr(e), t = Number(a);
  return r.setDate(r.getDate() + t), r;
}
var p = xr, pr = s;
function wr(e, a) {
  var r = pr(e).getTime(), t = Number(a);
  return new Date(r + t);
}
var w = wr, Yr = w, hr = 36e5;
function kr(e, a) {
  var r = Number(a);
  return Yr(e, r * hr);
}
var da = kr, Qr = s;
function Cr(e, a) {
  var r = a && Number(a.weekStartsOn) || 0, t = Qr(e), n = t.getDay(), M = (n < r ? 7 : 0) + n - r;
  return t.setDate(t.getDate() - M), t.setHours(0, 0, 0, 0), t;
}
var W = Cr, _r = W;
function Ur(e) {
  return _r(e, { weekStartsOn: 1 });
}
var f = Ur, br = s, de = f;
function Pr(e) {
  var a = br(e), r = a.getFullYear(), t = new Date(0);
  t.setFullYear(r + 1, 0, 4), t.setHours(0, 0, 0, 0);
  var n = de(t), M = new Date(0);
  M.setFullYear(r, 0, 4), M.setHours(0, 0, 0, 0);
  var u = de(M);
  return a.getTime() >= n.getTime() ? r + 1 : a.getTime() >= u.getTime() ? r : r - 1;
}
var m = Pr, Wr = m, $r = f;
function Hr(e) {
  var a = Wr(e), r = new Date(0);
  r.setFullYear(a, 0, 4), r.setHours(0, 0, 0, 0);
  var t = $r(r);
  return t;
}
var Y = Hr, Zr = s;
function Br(e) {
  var a = Zr(e);
  return a.setHours(0, 0, 0, 0), a;
}
var O = Br, le = O, ze = 6e4, Gr = 864e5;
function Rr(e, a) {
  var r = le(e), t = le(a), n = r.getTime() - r.getTimezoneOffset() * ze, M = t.getTime() - t.getTimezoneOffset() * ze;
  return Math.round((n - M) / Gr);
}
var $ = Rr, Fr = s, je = Y, Vr = $;
function Jr(e, a) {
  var r = Fr(e), t = Number(a), n = Vr(r, je(r)), M = new Date(0);
  return M.setFullYear(t, 0, 4), M.setHours(0, 0, 0, 0), r = je(M), r.setDate(r.getDate() + n), r;
}
var la = Jr, Kr = m, Xr = la;
function qr(e, a) {
  var r = Number(a);
  return Xr(e, Kr(e) + r);
}
var za = qr, et = w, at = 6e4;
function rt(e, a) {
  var r = Number(a);
  return et(e, r * at);
}
var ja = rt, tt = s;
function nt(e) {
  var a = tt(e), r = a.getFullYear(), t = a.getMonth(), n = new Date(0);
  return n.setFullYear(r, t + 1, 0), n.setHours(0, 0, 0, 0), n.getDate();
}
var ee = nt, Mt = s, it = ee;
function st(e, a) {
  var r = Mt(e), t = Number(a), n = r.getMonth() + t, M = new Date(0);
  M.setFullYear(r.getFullYear(), n, 1), M.setHours(0, 0, 0, 0);
  var u = it(M);
  return r.setMonth(n, Math.min(u, r.getDate())), r;
}
var H = st, ut = H;
function ot(e, a) {
  var r = Number(a), t = r * 3;
  return ut(e, t);
}
var va = ot, It = w;
function Dt(e, a) {
  var r = Number(a);
  return It(e, r * 1e3);
}
var ya = Dt, gt = p;
function ct(e, a) {
  var r = Number(a), t = r * 7;
  return gt(e, t);
}
var ae = ct, Nt = H;
function dt(e, a) {
  var r = Number(a);
  return Nt(e, r * 12);
}
var Ta = dt, _ = s;
function lt(e, a, r, t) {
  var n = _(e).getTime(), M = _(a).getTime(), u = _(r).getTime(), o = _(t).getTime();
  if (n > M || u > o)
    throw new Error("The start of the range cannot be after the end of the range");
  return n < o && u < M;
}
var zt = lt, ve = s;
function jt(e, a) {
  if (!(a instanceof Array))
    throw new TypeError(toString.call(a) + " is not an instance of Array");
  var r = ve(e), t = r.getTime(), n, M;
  return a.forEach(function(u, o) {
    var D = ve(u), g = Math.abs(t - D.getTime());
    (n === void 0 || g < M) && (n = o, M = g);
  }), n;
}
var vt = jt, ye = s;
function yt(e, a) {
  if (!(a instanceof Array))
    throw new TypeError(toString.call(a) + " is not an instance of Array");
  var r = ye(e), t = r.getTime(), n, M;
  return a.forEach(function(u) {
    var o = ye(u), D = Math.abs(t - o.getTime());
    (n === void 0 || D < M) && (n = o, M = D);
  }), n;
}
var Tt = yt, Te = s;
function ft(e, a) {
  var r = Te(e), t = r.getTime(), n = Te(a), M = n.getTime();
  return t < M ? -1 : t > M ? 1 : 0;
}
var h = ft, fe = s;
function mt(e, a) {
  var r = fe(e), t = r.getTime(), n = fe(a), M = n.getTime();
  return t > M ? -1 : t < M ? 1 : 0;
}
var re = mt, me = f, Oe = 6e4, Ot = 6048e5;
function St(e, a) {
  var r = me(e), t = me(a), n = r.getTime() - r.getTimezoneOffset() * Oe, M = t.getTime() - t.getTimezoneOffset() * Oe;
  return Math.round((n - M) / Ot);
}
var At = St, Se = m;
function Et(e, a) {
  return Se(e) - Se(a);
}
var fa = Et, Ae = s;
function Lt(e, a) {
  var r = Ae(e), t = Ae(a), n = r.getFullYear() - t.getFullYear(), M = r.getMonth() - t.getMonth();
  return n * 12 + M;
}
var ma = Lt, xt = s;
function pt(e) {
  var a = xt(e), r = Math.floor(a.getMonth() / 3) + 1;
  return r;
}
var Oa = pt, Ee = Oa, Le = s;
function wt(e, a) {
  var r = Le(e), t = Le(a), n = r.getFullYear() - t.getFullYear(), M = Ee(r) - Ee(t);
  return n * 4 + M;
}
var Yt = wt, xe = W, pe = 6e4, ht = 6048e5;
function kt(e, a, r) {
  var t = xe(e, r), n = xe(a, r), M = t.getTime() - t.getTimezoneOffset() * pe, u = n.getTime() - n.getTimezoneOffset() * pe;
  return Math.round((M - u) / ht);
}
var Qt = kt, we = s;
function Ct(e, a) {
  var r = we(e), t = we(a);
  return r.getFullYear() - t.getFullYear();
}
var Sa = Ct, Ye = s, _t = $, he = h;
function Ut(e, a) {
  var r = Ye(e), t = Ye(a), n = he(r, t), M = Math.abs(_t(r, t));
  r.setDate(r.getDate() - n * M);
  var u = he(r, t) === -n;
  return n * (M - u);
}
var Aa = Ut, ke = s;
function bt(e, a) {
  var r = ke(e), t = ke(a);
  return r.getTime() - t.getTime();
}
var Z = bt, Pt = Z, Wt = 36e5;
function $t(e, a) {
  var r = Pt(e, a) / Wt;
  return r > 0 ? Math.floor(r) : Math.ceil(r);
}
var Ht = $t, Zt = za;
function Bt(e, a) {
  var r = Number(a);
  return Zt(e, -r);
}
var Ea = Bt, Qe = s, Gt = fa, Ce = h, Rt = Ea;
function Ft(e, a) {
  var r = Qe(e), t = Qe(a), n = Ce(r, t), M = Math.abs(Gt(r, t));
  r = Rt(r, n * M);
  var u = Ce(r, t) === -n;
  return n * (M - u);
}
var Vt = Ft, Jt = Z, Kt = 6e4;
function Xt(e, a) {
  var r = Jt(e, a) / Kt;
  return r > 0 ? Math.floor(r) : Math.ceil(r);
}
var qt = Xt, _e = s, en = ma, Ue = h;
function an(e, a) {
  var r = _e(e), t = _e(a), n = Ue(r, t), M = Math.abs(en(r, t));
  r.setMonth(r.getMonth() - n * M);
  var u = Ue(r, t) === -n;
  return n * (M - u);
}
var te = an, rn = te;
function tn(e, a) {
  var r = rn(e, a) / 3;
  return r > 0 ? Math.floor(r) : Math.ceil(r);
}
var nn = tn, Mn = Z;
function sn(e, a) {
  var r = Mn(e, a) / 1e3;
  return r > 0 ? Math.floor(r) : Math.ceil(r);
}
var ne = sn, un = Aa;
function on(e, a) {
  var r = un(e, a) / 7;
  return r > 0 ? Math.floor(r) : Math.ceil(r);
}
var In = on, be = s, Dn = Sa, Pe = h;
function gn(e, a) {
  var r = be(e), t = be(a), n = Pe(r, t), M = Math.abs(Dn(r, t));
  r.setFullYear(r.getFullYear() - n * M);
  var u = Pe(r, t) === -n;
  return n * (M - u);
}
var cn = gn;
function Nn() {
  var e = {
    lessThanXSeconds: {
      one: "less than a second",
      other: "less than {{count}} seconds"
    },
    xSeconds: {
      one: "1 second",
      other: "{{count}} seconds"
    },
    halfAMinute: "half a minute",
    lessThanXMinutes: {
      one: "less than a minute",
      other: "less than {{count}} minutes"
    },
    xMinutes: {
      one: "1 minute",
      other: "{{count}} minutes"
    },
    aboutXHours: {
      one: "about 1 hour",
      other: "about {{count}} hours"
    },
    xHours: {
      one: "1 hour",
      other: "{{count}} hours"
    },
    xDays: {
      one: "1 day",
      other: "{{count}} days"
    },
    aboutXMonths: {
      one: "about 1 month",
      other: "about {{count}} months"
    },
    xMonths: {
      one: "1 month",
      other: "{{count}} months"
    },
    aboutXYears: {
      one: "about 1 year",
      other: "about {{count}} years"
    },
    xYears: {
      one: "1 year",
      other: "{{count}} years"
    },
    overXYears: {
      one: "over 1 year",
      other: "over {{count}} years"
    },
    almostXYears: {
      one: "almost 1 year",
      other: "almost {{count}} years"
    }
  };
  function a(r, t, n) {
    n = n || {};
    var M;
    return typeof e[r] == "string" ? M = e[r] : t === 1 ? M = e[r].one : M = e[r].other.replace("{{count}}", t), n.addSuffix ? n.comparison > 0 ? "in " + M : M + " ago" : M;
  }
  return {
    localize: a
  };
}
var dn = Nn, ln = [
  "M",
  "MM",
  "Q",
  "D",
  "DD",
  "DDD",
  "DDDD",
  "d",
  "E",
  "W",
  "WW",
  "YY",
  "YYYY",
  "GG",
  "GGGG",
  "H",
  "HH",
  "h",
  "hh",
  "m",
  "mm",
  "s",
  "ss",
  "S",
  "SS",
  "SSS",
  "Z",
  "ZZ",
  "X",
  "x"
];
function zn(e) {
  var a = [];
  for (var r in e)
    e.hasOwnProperty(r) && a.push(r);
  var t = ln.concat(a).sort().reverse(), n = new RegExp(
    "(\\[[^\\[]*\\])|(\\\\)?(" + t.join("|") + "|.)",
    "g"
  );
  return n;
}
var jn = zn, vn = jn;
function yn() {
  var e = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], a = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], r = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], t = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], n = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], M = ["AM", "PM"], u = ["am", "pm"], o = ["a.m.", "p.m."], D = {
    MMM: function(I) {
      return e[I.getMonth()];
    },
    MMMM: function(I) {
      return a[I.getMonth()];
    },
    dd: function(I) {
      return r[I.getDay()];
    },
    ddd: function(I) {
      return t[I.getDay()];
    },
    dddd: function(I) {
      return n[I.getDay()];
    },
    A: function(I) {
      return I.getHours() / 12 >= 1 ? M[1] : M[0];
    },
    a: function(I) {
      return I.getHours() / 12 >= 1 ? u[1] : u[0];
    },
    aa: function(I) {
      return I.getHours() / 12 >= 1 ? o[1] : o[0];
    }
  }, g = ["M", "D", "DDD", "d", "Q", "W"];
  return g.forEach(function(I) {
    D[I + "o"] = function(d, c) {
      return Tn(c[I](d));
    };
  }), {
    formatters: D,
    formattingTokensRegExp: vn(D)
  };
}
function Tn(e) {
  var a = e % 100;
  if (a > 20 || a < 10)
    switch (a % 10) {
      case 1:
        return e + "st";
      case 2:
        return e + "nd";
      case 3:
        return e + "rd";
    }
  return e + "th";
}
var fn = yn, mn = dn, On = fn, Me = {
  distanceInWords: mn(),
  format: On()
}, Sn = re, U = s, An = ne, En = te, Ln = Me, We = 1440, xn = 2520, R = 43200, pn = 86400;
function wn(e, a, r) {
  var t = r || {}, n = Sn(e, a), M = t.locale, u = Ln.distanceInWords.localize;
  M && M.distanceInWords && M.distanceInWords.localize && (u = M.distanceInWords.localize);
  var o = {
    addSuffix: Boolean(t.addSuffix),
    comparison: n
  }, D, g;
  n > 0 ? (D = U(e), g = U(a)) : (D = U(a), g = U(e));
  var I = An(g, D), d = g.getTimezoneOffset() - D.getTimezoneOffset(), c = Math.round(I / 60) - d, v;
  if (c < 2)
    return t.includeSeconds ? I < 5 ? u("lessThanXSeconds", 5, o) : I < 10 ? u("lessThanXSeconds", 10, o) : I < 20 ? u("lessThanXSeconds", 20, o) : I < 40 ? u("halfAMinute", null, o) : I < 60 ? u("lessThanXMinutes", 1, o) : u("xMinutes", 1, o) : c === 0 ? u("lessThanXMinutes", 1, o) : u("xMinutes", c, o);
  if (c < 45)
    return u("xMinutes", c, o);
  if (c < 90)
    return u("aboutXHours", 1, o);
  if (c < We) {
    var l = Math.round(c / 60);
    return u("aboutXHours", l, o);
  } else {
    if (c < xn)
      return u("xDays", 1, o);
    if (c < R) {
      var y = Math.round(c / We);
      return u("xDays", y, o);
    } else if (c < pn)
      return v = Math.round(c / R), u("aboutXMonths", v, o);
  }
  if (v = En(g, D), v < 12) {
    var k = Math.round(c / R);
    return u("xMonths", k, o);
  } else {
    var L = v % 12, S = Math.floor(v / 12);
    return L < 3 ? u("aboutXYears", S, o) : L < 9 ? u("overXYears", S, o) : u("almostXYears", S + 1, o);
  }
}
var La = wn, Yn = re, b = s, hn = ne, kn = Me, $e = 1440, He = 43200, Ze = 525600;
function Qn(e, a, r) {
  var t = r || {}, n = Yn(e, a), M = t.locale, u = kn.distanceInWords.localize;
  M && M.distanceInWords && M.distanceInWords.localize && (u = M.distanceInWords.localize);
  var o = {
    addSuffix: Boolean(t.addSuffix),
    comparison: n
  }, D, g;
  n > 0 ? (D = b(e), g = b(a)) : (D = b(a), g = b(e));
  var I, d = Math[t.partialMethod ? String(t.partialMethod) : "floor"], c = hn(g, D), v = g.getTimezoneOffset() - D.getTimezoneOffset(), l = d(c / 60) - v, y, k, L, S;
  if (t.unit ? I = String(t.unit) : l < 1 ? I = "s" : l < 60 ? I = "m" : l < $e ? I = "h" : l < He ? I = "d" : l < Ze ? I = "M" : I = "Y", I === "s")
    return u("xSeconds", c, o);
  if (I === "m")
    return u("xMinutes", l, o);
  if (I === "h")
    return y = d(l / 60), u("xHours", y, o);
  if (I === "d")
    return k = d(l / $e), u("xDays", k, o);
  if (I === "M")
    return L = d(l / He), u("xMonths", L, o);
  if (I === "Y")
    return S = d(l / Ze), u("xYears", S, o);
  throw new Error("Unknown unit: " + I);
}
var Cn = Qn, _n = La;
function Un(e, a) {
  return _n(Date.now(), e, a);
}
var bn = Un, F = s;
function Pn(e, a, r) {
  var t = F(e), n = F(a), M = r !== void 0 ? r : 1, u = n.getTime();
  if (t.getTime() > u)
    throw new Error("The first date cannot be after the second date");
  var o = [], D = t;
  for (D.setHours(0, 0, 0, 0); D.getTime() <= u; )
    o.push(F(D)), D.setDate(D.getDate() + M);
  return o;
}
var Wn = Pn, $n = s;
function Hn(e) {
  var a = $n(e);
  return a.setHours(23, 59, 59, 999), a;
}
var ie = Hn, Zn = s;
function Bn(e) {
  var a = Zn(e);
  return a.setMinutes(59, 59, 999), a;
}
var Gn = Bn, Rn = s;
function Fn(e, a) {
  var r = a && Number(a.weekStartsOn) || 0, t = Rn(e), n = t.getDay(), M = (n < r ? -7 : 0) + 6 - (n - r);
  return t.setDate(t.getDate() + M), t.setHours(23, 59, 59, 999), t;
}
var xa = Fn, Vn = xa;
function Jn(e) {
  return Vn(e, { weekStartsOn: 1 });
}
var Kn = Jn, Xn = m, qn = f;
function eM(e) {
  var a = Xn(e), r = new Date(0);
  r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
  var t = qn(r);
  return t.setMilliseconds(t.getMilliseconds() - 1), t;
}
var aM = eM, rM = s;
function tM(e) {
  var a = rM(e);
  return a.setSeconds(59, 999), a;
}
var nM = tM, MM = s;
function iM(e) {
  var a = MM(e), r = a.getMonth();
  return a.setFullYear(a.getFullYear(), r + 1, 0), a.setHours(23, 59, 59, 999), a;
}
var pa = iM, sM = s;
function uM(e) {
  var a = sM(e), r = a.getMonth(), t = r - r % 3 + 3;
  return a.setMonth(t, 0), a.setHours(23, 59, 59, 999), a;
}
var oM = uM, IM = s;
function DM(e) {
  var a = IM(e);
  return a.setMilliseconds(999), a;
}
var gM = DM, cM = ie;
function NM() {
  return cM(new Date());
}
var dM = NM;
function lM() {
  var e = new Date(), a = e.getFullYear(), r = e.getMonth(), t = e.getDate(), n = new Date(0);
  return n.setFullYear(a, r, t + 1), n.setHours(23, 59, 59, 999), n;
}
var zM = lM, jM = s;
function vM(e) {
  var a = jM(e), r = a.getFullYear();
  return a.setFullYear(r + 1, 0, 0), a.setHours(23, 59, 59, 999), a;
}
var yM = vM;
function TM() {
  var e = new Date(), a = e.getFullYear(), r = e.getMonth(), t = e.getDate(), n = new Date(0);
  return n.setFullYear(a, r, t - 1), n.setHours(23, 59, 59, 999), n;
}
var fM = TM, mM = s;
function OM(e) {
  var a = mM(e), r = new Date(0);
  return r.setFullYear(a.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
}
var wa = OM, SM = s, AM = wa, EM = $;
function LM(e) {
  var a = SM(e), r = EM(a, AM(a)), t = r + 1;
  return t;
}
var Ya = LM, xM = s, pM = f, wM = Y, YM = 6048e5;
function hM(e) {
  var a = xM(e), r = pM(a).getTime() - wM(a).getTime();
  return Math.round(r / YM) + 1;
}
var se = hM, kM = q;
function QM(e) {
  if (kM(e))
    return !isNaN(e);
  throw new TypeError(toString.call(e) + " is not an instance of Date");
}
var ha = QM, Be = Ya, Ge = se, Re = m, CM = s, _M = ha, Fe = Me;
function UM(e, a, r) {
  var t = a ? String(a) : "YYYY-MM-DDTHH:mm:ss.SSSZ", n = r || {}, M = n.locale, u = Fe.format.formatters, o = Fe.format.formattingTokensRegExp;
  M && M.format && M.format.formatters && (u = M.format.formatters, M.format.formattingTokensRegExp && (o = M.format.formattingTokensRegExp));
  var D = CM(e);
  if (!_M(D))
    return "Invalid Date";
  var g = bM(t, u, o);
  return g(D);
}
var X = {
  M: function(e) {
    return e.getMonth() + 1;
  },
  MM: function(e) {
    return z(e.getMonth() + 1, 2);
  },
  Q: function(e) {
    return Math.ceil((e.getMonth() + 1) / 3);
  },
  D: function(e) {
    return e.getDate();
  },
  DD: function(e) {
    return z(e.getDate(), 2);
  },
  DDD: function(e) {
    return Be(e);
  },
  DDDD: function(e) {
    return z(Be(e), 3);
  },
  d: function(e) {
    return e.getDay();
  },
  E: function(e) {
    return e.getDay() || 7;
  },
  W: function(e) {
    return Ge(e);
  },
  WW: function(e) {
    return z(Ge(e), 2);
  },
  YY: function(e) {
    return z(e.getFullYear(), 4).substr(2);
  },
  YYYY: function(e) {
    return z(e.getFullYear(), 4);
  },
  GG: function(e) {
    return String(Re(e)).substr(2);
  },
  GGGG: function(e) {
    return Re(e);
  },
  H: function(e) {
    return e.getHours();
  },
  HH: function(e) {
    return z(e.getHours(), 2);
  },
  h: function(e) {
    var a = e.getHours();
    return a === 0 ? 12 : a > 12 ? a % 12 : a;
  },
  hh: function(e) {
    return z(X.h(e), 2);
  },
  m: function(e) {
    return e.getMinutes();
  },
  mm: function(e) {
    return z(e.getMinutes(), 2);
  },
  s: function(e) {
    return e.getSeconds();
  },
  ss: function(e) {
    return z(e.getSeconds(), 2);
  },
  S: function(e) {
    return Math.floor(e.getMilliseconds() / 100);
  },
  SS: function(e) {
    return z(Math.floor(e.getMilliseconds() / 10), 2);
  },
  SSS: function(e) {
    return z(e.getMilliseconds(), 3);
  },
  Z: function(e) {
    return Ve(e.getTimezoneOffset(), ":");
  },
  ZZ: function(e) {
    return Ve(e.getTimezoneOffset());
  },
  X: function(e) {
    return Math.floor(e.getTime() / 1e3);
  },
  x: function(e) {
    return e.getTime();
  }
};
function bM(e, a, r) {
  var t = e.match(r), n = t.length, M, u;
  for (M = 0; M < n; M++)
    u = a[t[M]] || X[t[M]], u ? t[M] = u : t[M] = PM(t[M]);
  return function(o) {
    for (var D = "", g = 0; g < n; g++)
      t[g] instanceof Function ? D += t[g](o, X) : D += t[g];
    return D;
  };
}
function PM(e) {
  return e.match(/\[[\s\S]/) ? e.replace(/^\[|]$/g, "") : e.replace(/\\/g, "");
}
function Ve(e, a) {
  a = a || "";
  var r = e > 0 ? "-" : "+", t = Math.abs(e), n = Math.floor(t / 60), M = t % 60;
  return r + z(n, 2) + a + z(M, 2);
}
function z(e, a) {
  for (var r = Math.abs(e).toString(); r.length < a; )
    r = "0" + r;
  return r;
}
var WM = UM, $M = s;
function HM(e) {
  var a = $M(e), r = a.getDate();
  return r;
}
var ZM = HM, BM = s;
function GM(e) {
  var a = BM(e), r = a.getDay();
  return r;
}
var RM = GM, FM = s;
function VM(e) {
  var a = FM(e), r = a.getFullYear();
  return r % 400 === 0 || r % 4 === 0 && r % 100 !== 0;
}
var ka = VM, JM = ka;
function KM(e) {
  return JM(e) ? 366 : 365;
}
var XM = KM, qM = s;
function ei(e) {
  var a = qM(e), r = a.getHours();
  return r;
}
var ai = ei, ri = s;
function ti(e) {
  var a = ri(e), r = a.getDay();
  return r === 0 && (r = 7), r;
}
var Qa = ti, Je = Y, ni = ae, Mi = 6048e5;
function ii(e) {
  var a = Je(e), r = Je(ni(a, 60)), t = r.valueOf() - a.valueOf();
  return Math.round(t / Mi);
}
var si = ii, ui = s;
function oi(e) {
  var a = ui(e), r = a.getMilliseconds();
  return r;
}
var Ii = oi, Di = s;
function gi(e) {
  var a = Di(e), r = a.getMinutes();
  return r;
}
var ci = gi, Ni = s;
function di(e) {
  var a = Ni(e), r = a.getMonth();
  return r;
}
var li = di, P = s, zi = 24 * 60 * 60 * 1e3;
function ji(e, a, r, t) {
  var n = P(e).getTime(), M = P(a).getTime(), u = P(r).getTime(), o = P(t).getTime();
  if (n > M || u > o)
    throw new Error("The start of the range cannot be after the end of the range");
  var D = n < o && u < M;
  if (!D)
    return 0;
  var g = u < n ? n : u, I = o > M ? M : o, d = I - g;
  return Math.ceil(d / zi);
}
var vi = ji, yi = s;
function Ti(e) {
  var a = yi(e), r = a.getSeconds();
  return r;
}
var fi = Ti, mi = s;
function Oi(e) {
  var a = mi(e), r = a.getTime();
  return r;
}
var Si = Oi, Ai = s;
function Ei(e) {
  var a = Ai(e), r = a.getFullYear();
  return r;
}
var Li = Ei, Ke = s;
function xi(e, a) {
  var r = Ke(e), t = Ke(a);
  return r.getTime() > t.getTime();
}
var pi = xi, Xe = s;
function wi(e, a) {
  var r = Xe(e), t = Xe(a);
  return r.getTime() < t.getTime();
}
var Yi = wi, qe = s;
function hi(e, a) {
  var r = qe(e), t = qe(a);
  return r.getTime() === t.getTime();
}
var ki = hi, Qi = s;
function Ci(e) {
  return Qi(e).getDate() === 1;
}
var _i = Ci, Ui = s;
function bi(e) {
  return Ui(e).getDay() === 5;
}
var Pi = bi, Wi = s;
function $i(e) {
  return Wi(e).getTime() > new Date().getTime();
}
var Hi = $i, Zi = s, Bi = ie, Gi = pa;
function Ri(e) {
  var a = Zi(e);
  return Bi(a).getTime() === Gi(a).getTime();
}
var Fi = Ri, Vi = s;
function Ji(e) {
  return Vi(e).getDay() === 1;
}
var Ki = Ji, Xi = s;
function qi(e) {
  return Xi(e).getTime() < new Date().getTime();
}
var es = qi, ea = O;
function as(e, a) {
  var r = ea(e), t = ea(a);
  return r.getTime() === t.getTime();
}
var rs = as, ts = s;
function ns(e) {
  var a = ts(e);
  return a.setMinutes(0, 0, 0), a;
}
var Ca = ns, aa = Ca;
function Ms(e, a) {
  var r = aa(e), t = aa(a);
  return r.getTime() === t.getTime();
}
var _a = Ms, ra = W;
function is(e, a, r) {
  var t = ra(e, r), n = ra(a, r);
  return t.getTime() === n.getTime();
}
var ue = is, ss = ue;
function us(e, a) {
  return ss(e, a, { weekStartsOn: 1 });
}
var Ua = us, ta = Y;
function os(e, a) {
  var r = ta(e), t = ta(a);
  return r.getTime() === t.getTime();
}
var ba = os, Is = s;
function Ds(e) {
  var a = Is(e);
  return a.setSeconds(0, 0), a;
}
var Pa = Ds, na = Pa;
function gs(e, a) {
  var r = na(e), t = na(a);
  return r.getTime() === t.getTime();
}
var Wa = gs, Ma = s;
function cs(e, a) {
  var r = Ma(e), t = Ma(a);
  return r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth();
}
var $a = cs, Ns = s;
function ds(e) {
  var a = Ns(e), r = a.getMonth(), t = r - r % 3;
  return a.setMonth(t, 1), a.setHours(0, 0, 0, 0), a;
}
var Ha = ds, ia = Ha;
function ls(e, a) {
  var r = ia(e), t = ia(a);
  return r.getTime() === t.getTime();
}
var Za = ls, zs = s;
function js(e) {
  var a = zs(e);
  return a.setMilliseconds(0), a;
}
var Ba = js, sa = Ba;
function vs(e, a) {
  var r = sa(e), t = sa(a);
  return r.getTime() === t.getTime();
}
var Ga = vs, ua = s;
function ys(e, a) {
  var r = ua(e), t = ua(a);
  return r.getFullYear() === t.getFullYear();
}
var Ra = ys, Ts = s;
function fs(e) {
  return Ts(e).getDay() === 6;
}
var ms = fs, Os = s;
function Ss(e) {
  return Os(e).getDay() === 0;
}
var As = Ss, Es = _a;
function Ls(e) {
  return Es(new Date(), e);
}
var xs = Ls, ps = Ua;
function ws(e) {
  return ps(new Date(), e);
}
var Ys = ws, hs = ba;
function ks(e) {
  return hs(new Date(), e);
}
var Qs = ks, Cs = Wa;
function _s(e) {
  return Cs(new Date(), e);
}
var Us = _s, bs = $a;
function Ps(e) {
  return bs(new Date(), e);
}
var Ws = Ps, $s = Za;
function Hs(e) {
  return $s(new Date(), e);
}
var Zs = Hs, Bs = Ga;
function Gs(e) {
  return Bs(new Date(), e);
}
var Rs = Gs, Fs = ue;
function Vs(e, a) {
  return Fs(new Date(), e, a);
}
var Js = Vs, Ks = Ra;
function Xs(e) {
  return Ks(new Date(), e);
}
var qs = Xs, eu = s;
function au(e) {
  return eu(e).getDay() === 4;
}
var ru = au, oa = O;
function tu(e) {
  return oa(e).getTime() === oa(new Date()).getTime();
}
var nu = tu, Ia = O;
function Mu(e) {
  var a = new Date();
  return a.setDate(a.getDate() + 1), Ia(e).getTime() === Ia(a).getTime();
}
var iu = Mu, su = s;
function uu(e) {
  return su(e).getDay() === 2;
}
var ou = uu, Iu = s;
function Du(e) {
  return Iu(e).getDay() === 3;
}
var gu = Du, cu = s;
function Nu(e) {
  var a = cu(e), r = a.getDay();
  return r === 0 || r === 6;
}
var du = Nu, V = s;
function lu(e, a, r) {
  var t = V(e).getTime(), n = V(a).getTime(), M = V(r).getTime();
  if (n > M)
    throw new Error("The start of the range cannot be after the end of the range");
  return t >= n && t <= M;
}
var zu = lu, Da = O;
function ju(e) {
  var a = new Date();
  return a.setDate(a.getDate() - 1), Da(e).getTime() === Da(a).getTime();
}
var vu = ju, yu = s;
function Tu(e, a) {
  var r = a && Number(a.weekStartsOn) || 0, t = yu(e), n = t.getDay(), M = (n < r ? -7 : 0) + 6 - (n - r);
  return t.setHours(0, 0, 0, 0), t.setDate(t.getDate() + M), t;
}
var Fa = Tu, fu = Fa;
function mu(e) {
  return fu(e, { weekStartsOn: 1 });
}
var Ou = mu, Su = m, Au = f;
function Eu(e) {
  var a = Su(e), r = new Date(0);
  r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
  var t = Au(r);
  return t.setDate(t.getDate() - 1), t;
}
var Lu = Eu, xu = s;
function pu(e) {
  var a = xu(e), r = a.getMonth();
  return a.setFullYear(a.getFullYear(), r + 1, 0), a.setHours(0, 0, 0, 0), a;
}
var wu = pu, Yu = s;
function hu(e) {
  var a = Yu(e), r = a.getMonth(), t = r - r % 3 + 3;
  return a.setMonth(t, 0), a.setHours(0, 0, 0, 0), a;
}
var ku = hu, Qu = s;
function Cu(e) {
  var a = Qu(e), r = a.getFullYear();
  return a.setFullYear(r + 1, 0, 0), a.setHours(0, 0, 0, 0), a;
}
var _u = Cu, Uu = s;
function bu() {
  var e = Array.prototype.slice.call(arguments), a = e.map(function(t) {
    return Uu(t);
  }), r = Math.max.apply(null, a);
  return new Date(r);
}
var Pu = bu, Wu = s;
function $u() {
  var e = Array.prototype.slice.call(arguments), a = e.map(function(t) {
    return Wu(t);
  }), r = Math.min.apply(null, a);
  return new Date(r);
}
var Hu = $u, Zu = s;
function Bu(e, a) {
  var r = Zu(e), t = Number(a);
  return r.setDate(t), r;
}
var Gu = Bu, Ru = s, Fu = p;
function Vu(e, a, r) {
  var t = r && Number(r.weekStartsOn) || 0, n = Ru(e), M = Number(a), u = n.getDay(), o = M % 7, D = (o + 7) % 7, g = (D < t ? 7 : 0) + M - u;
  return Fu(n, g);
}
var Ju = Vu, Ku = s;
function Xu(e, a) {
  var r = Ku(e), t = Number(a);
  return r.setMonth(0), r.setDate(t), r;
}
var qu = Xu, eo = s;
function ao(e, a) {
  var r = eo(e), t = Number(a);
  return r.setHours(t), r;
}
var ro = ao, to = s, no = p, Mo = Qa;
function io(e, a) {
  var r = to(e), t = Number(a), n = Mo(r), M = t - n;
  return no(r, M);
}
var so = io, uo = s, oo = se;
function Io(e, a) {
  var r = uo(e), t = Number(a), n = oo(r) - t;
  return r.setDate(r.getDate() - n * 7), r;
}
var Do = Io, go = s;
function co(e, a) {
  var r = go(e), t = Number(a);
  return r.setMilliseconds(t), r;
}
var No = co, lo = s;
function zo(e, a) {
  var r = lo(e), t = Number(a);
  return r.setMinutes(t), r;
}
var jo = zo, vo = s, yo = ee;
function To(e, a) {
  var r = vo(e), t = Number(a), n = r.getFullYear(), M = r.getDate(), u = new Date(0);
  u.setFullYear(n, t, 15), u.setHours(0, 0, 0, 0);
  var o = yo(u);
  return r.setMonth(t, Math.min(M, o)), r;
}
var Va = To, fo = s, mo = Va;
function Oo(e, a) {
  var r = fo(e), t = Number(a), n = Math.floor(r.getMonth() / 3) + 1, M = t - n;
  return mo(r, r.getMonth() + M * 3);
}
var So = Oo, Ao = s;
function Eo(e, a) {
  var r = Ao(e), t = Number(a);
  return r.setSeconds(t), r;
}
var Lo = Eo, xo = s;
function po(e, a) {
  var r = xo(e), t = Number(a);
  return r.setFullYear(t), r;
}
var wo = po, Yo = s;
function ho(e) {
  var a = Yo(e);
  return a.setDate(1), a.setHours(0, 0, 0, 0), a;
}
var ko = ho, Qo = O;
function Co() {
  return Qo(new Date());
}
var _o = Co;
function Uo() {
  var e = new Date(), a = e.getFullYear(), r = e.getMonth(), t = e.getDate(), n = new Date(0);
  return n.setFullYear(a, r, t + 1), n.setHours(0, 0, 0, 0), n;
}
var bo = Uo;
function Po() {
  var e = new Date(), a = e.getFullYear(), r = e.getMonth(), t = e.getDate(), n = new Date(0);
  return n.setFullYear(a, r, t - 1), n.setHours(0, 0, 0, 0), n;
}
var Wo = Po, $o = p;
function Ho(e, a) {
  var r = Number(a);
  return $o(e, -r);
}
var Zo = Ho, Bo = da;
function Go(e, a) {
  var r = Number(a);
  return Bo(e, -r);
}
var Ro = Go, Fo = w;
function Vo(e, a) {
  var r = Number(a);
  return Fo(e, -r);
}
var Jo = Vo, Ko = ja;
function Xo(e, a) {
  var r = Number(a);
  return Ko(e, -r);
}
var qo = Xo, eI = H;
function aI(e, a) {
  var r = Number(a);
  return eI(e, -r);
}
var rI = aI, tI = va;
function nI(e, a) {
  var r = Number(a);
  return tI(e, -r);
}
var MI = nI, iI = ya;
function sI(e, a) {
  var r = Number(a);
  return iI(e, -r);
}
var uI = sI, oI = ae;
function II(e, a) {
  var r = Number(a);
  return oI(e, -r);
}
var DI = II, gI = Ta;
function cI(e, a) {
  var r = Number(a);
  return gI(e, -r);
}
var NI = cI, mI = {
  addDays: p,
  addHours: da,
  addISOYears: za,
  addMilliseconds: w,
  addMinutes: ja,
  addMonths: H,
  addQuarters: va,
  addSeconds: ya,
  addWeeks: ae,
  addYears: Ta,
  areRangesOverlapping: zt,
  closestIndexTo: vt,
  closestTo: Tt,
  compareAsc: h,
  compareDesc: re,
  differenceInCalendarDays: $,
  differenceInCalendarISOWeeks: At,
  differenceInCalendarISOYears: fa,
  differenceInCalendarMonths: ma,
  differenceInCalendarQuarters: Yt,
  differenceInCalendarWeeks: Qt,
  differenceInCalendarYears: Sa,
  differenceInDays: Aa,
  differenceInHours: Ht,
  differenceInISOYears: Vt,
  differenceInMilliseconds: Z,
  differenceInMinutes: qt,
  differenceInMonths: te,
  differenceInQuarters: nn,
  differenceInSeconds: ne,
  differenceInWeeks: In,
  differenceInYears: cn,
  distanceInWords: La,
  distanceInWordsStrict: Cn,
  distanceInWordsToNow: bn,
  eachDay: Wn,
  endOfDay: ie,
  endOfHour: Gn,
  endOfISOWeek: Kn,
  endOfISOYear: aM,
  endOfMinute: nM,
  endOfMonth: pa,
  endOfQuarter: oM,
  endOfSecond: gM,
  endOfToday: dM,
  endOfTomorrow: zM,
  endOfWeek: xa,
  endOfYear: yM,
  endOfYesterday: fM,
  format: WM,
  getDate: ZM,
  getDay: RM,
  getDayOfYear: Ya,
  getDaysInMonth: ee,
  getDaysInYear: XM,
  getHours: ai,
  getISODay: Qa,
  getISOWeek: se,
  getISOWeeksInYear: si,
  getISOYear: m,
  getMilliseconds: Ii,
  getMinutes: ci,
  getMonth: li,
  getOverlappingDaysInRanges: vi,
  getQuarter: Oa,
  getSeconds: fi,
  getTime: Si,
  getYear: Li,
  isAfter: pi,
  isBefore: Yi,
  isDate: q,
  isEqual: ki,
  isFirstDayOfMonth: _i,
  isFriday: Pi,
  isFuture: Hi,
  isLastDayOfMonth: Fi,
  isLeapYear: ka,
  isMonday: Ki,
  isPast: es,
  isSameDay: rs,
  isSameHour: _a,
  isSameISOWeek: Ua,
  isSameISOYear: ba,
  isSameMinute: Wa,
  isSameMonth: $a,
  isSameQuarter: Za,
  isSameSecond: Ga,
  isSameWeek: ue,
  isSameYear: Ra,
  isSaturday: ms,
  isSunday: As,
  isThisHour: xs,
  isThisISOWeek: Ys,
  isThisISOYear: Qs,
  isThisMinute: Us,
  isThisMonth: Ws,
  isThisQuarter: Zs,
  isThisSecond: Rs,
  isThisWeek: Js,
  isThisYear: qs,
  isThursday: ru,
  isToday: nu,
  isTomorrow: iu,
  isTuesday: ou,
  isValid: ha,
  isWednesday: gu,
  isWeekend: du,
  isWithinRange: zu,
  isYesterday: vu,
  lastDayOfISOWeek: Ou,
  lastDayOfISOYear: Lu,
  lastDayOfMonth: wu,
  lastDayOfQuarter: ku,
  lastDayOfWeek: Fa,
  lastDayOfYear: _u,
  max: Pu,
  min: Hu,
  parse: s,
  setDate: Gu,
  setDay: Ju,
  setDayOfYear: qu,
  setHours: ro,
  setISODay: so,
  setISOWeek: Do,
  setISOYear: la,
  setMilliseconds: No,
  setMinutes: jo,
  setMonth: Va,
  setQuarter: So,
  setSeconds: Lo,
  setYear: wo,
  startOfDay: O,
  startOfHour: Ca,
  startOfISOWeek: f,
  startOfISOYear: Y,
  startOfMinute: Pa,
  startOfMonth: ko,
  startOfQuarter: Ha,
  startOfSecond: Ba,
  startOfToday: _o,
  startOfTomorrow: bo,
  startOfWeek: W,
  startOfYear: wa,
  startOfYesterday: Wo,
  subDays: Zo,
  subHours: Ro,
  subISOYears: Ea,
  subMilliseconds: Jo,
  subMinutes: qo,
  subMonths: rI,
  subQuarters: MI,
  subSeconds: uI,
  subWeeks: DI,
  subYears: NI
};
class dI {
  static handleOrderCreationImplication(a) {
    if (a.itemSnapshot)
      switch (a.currency.currencyType) {
        case Ka.enum.VIRTUAL:
          oe.getAppState().refreshWallet();
          break;
      }
  }
  static handleOrderFulfillmentImplication(a) {
    if (a.itemSnapshot)
      switch (a.itemSnapshot.itemType) {
        case T.enum.COINS:
          oe.getAppState().refreshWallet();
          break;
      }
  }
}
dI.AVOID_REDIRECT_TO_FILE_PROTOCOL = null;
const Ja = "data:image/svg+xml;base64, ", lI = "data:image/svg+xml;base64, ", zI = "data:image/svg+xml;base64, ", jI = "data:image/svg+xml;base64, ";
class J extends i.Component {
  render() {
    const { className: a, isLoading: r, onClick: t } = this.props;
    return /* @__PURE__ */ i.createElement("button", { onClick: t, className: j("btn btnClose btn-ghost uppercase", a), disabled: r }, r && /* @__PURE__ */ i.createElement(ga, { className: ca.inline }), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.close" }, "CLOSE"));
  }
}
class OI extends i.Component {
  constructor(a) {
    super(a), this.handleClose = () => {
      const { onCloseDialog: r } = this.props;
      r && r();
    }, this.state = {
      isLoading: !1
    };
  }
  async componentDidMount() {
    if (!this.props.isPreviewMode)
      try {
        this.setState({ isLoading: !0 }), await Xa.loadGameInfo();
      } finally {
        this.setState({ isLoading: !1 });
      }
  }
  render() {
    const { isLoading: a } = this.state, { orderInfo: r, isPreviewMode: t, isOnlyShowCloseButton: n } = this.props, M = `${r.currency.currencySymbol} ${qa.calculateIntegerPrice(
      r.totalPrice || 0,
      r.currency
    )}`, u = r.itemSnapshot, o = u && u.itemType;
    return /* @__PURE__ */ i.createElement(
      A,
      {
        title: Na("PaymentStatusDialog.paymentSuccess.title"),
        isOpen: !0,
        className: j("paymentStatusDialog", this.props.className, {
          orderCode: o === T.enum.CODE
        }),
        isPreviewMode: t
      },
      /* @__PURE__ */ i.createElement(E, { className: j("dialogBody", { nonCode: o !== T.enum.CODE }) }, /* @__PURE__ */ i.createElement("img", { src: jI, alt: "Payment Success" }), o === T.enum.CODE ? /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.content.thanks" }, /* @__PURE__ */ i.createElement("p", { className: "code heading above" }, "Thank you! Your payment of ", /* @__PURE__ */ i.createElement("span", { className: "price" }, { price: M }), " was"), /* @__PURE__ */ i.createElement("p", { className: "code heading bottom" }, "successful.")), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.code.description" }, /* @__PURE__ */ i.createElement("p", { className: "description" }, "Your product key has been sent to your email. You can also see"), /* @__PURE__ */ i.createElement("p", { className: "description code bottom" }, "the key by clicking the See My Keys button below, or going to")), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.code.goToMyPurchasedItem" }, /* @__PURE__ */ i.createElement("p", { className: "goToPurchasedItemContainer" }, /* @__PURE__ */ i.createElement("span", null, "My Account"), /* @__PURE__ */ i.createElement(Q, { className: j("arrow", C.right) }), /* @__PURE__ */ i.createElement("span", null, "Purchased Items"), /* @__PURE__ */ i.createElement(Q, { className: j("arrow", C.right) }), /* @__PURE__ */ i.createElement("span", null, "Product Keys")))) : o === T.enum.OPTIONBOX ? /* @__PURE__ */ i.createElement("div", { className: "optionboxPayment" }, /* @__PURE__ */ i.createElement("p", { className: "headingPayment" }, /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.content.optionbox.thanks" }, "Thank you! Your payment of ", /* @__PURE__ */ i.createElement("span", { className: "text-[color:rgb(var(--od-rgba-text))]" }, { price: M }), " was successful.")), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.optionbox.description" }, /* @__PURE__ */ i.createElement("p", { className: "paymentDescription mt-5" }, "Please click the button below to open the option box and select the item you want to claim."), /* @__PURE__ */ i.createElement("p", { className: "paymentDescription mt-7" }, "You also can open the option box later at:")), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.optionbox.goToMyPurchasedItem" }, /* @__PURE__ */ i.createElement("p", { className: "goToOptionBoxPage" }, /* @__PURE__ */ i.createElement("span", null, "My Account"), /* @__PURE__ */ i.createElement(Q, { className: j("arrow", C.right) }), /* @__PURE__ */ i.createElement("span", null, "Purchased Items"), /* @__PURE__ */ i.createElement(Q, { className: j("arrow", C.right) }), /* @__PURE__ */ i.createElement("span", null, "Option Box")))) : /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.content" }, /* @__PURE__ */ i.createElement("p", { className: "description above" }, "Thank you!"), /* @__PURE__ */ i.createElement("p", { className: "description" }, "Your payment of ", /* @__PURE__ */ i.createElement("span", { className: "price" }, { price: M }), " was successful."))),
      /* @__PURE__ */ i.createElement(x, { className: "dialogFooter" }, o === T.enum.CODE ? /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(J, { isLoading: a, onClick: this.handleClose }), !n && /* @__PURE__ */ i.createElement(ge, { to: Ie.PurchasedKeys.makePath() }, /* @__PURE__ */ i.createElement(De, { className: "btn btn-primary btnSeeKeys" }, /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.button.seeMyKeys" }, "See My Keys")))) : o === T.enum.OPTIONBOX ? /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(J, { isLoading: a, onClick: this.handleClose }), !n && /* @__PURE__ */ i.createElement(ge, { to: Ie.PurchasedOptionbox.makePath() }, /* @__PURE__ */ i.createElement(De, { className: "btn btn-primary btnSeeKeys" }, /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentSuccess.button.optionbox" }, "See My Optionbox")))) : /* @__PURE__ */ i.createElement(J, { className: "nonCode", isLoading: a, onClick: this.handleClose }))
    );
  }
}
class SI extends i.Component {
  constructor() {
    super(...arguments), this.defaultProps = { isOpen: !0 };
  }
  render() {
    const { isOpen: a } = this.props;
    return /* @__PURE__ */ i.createElement(A, { title: "Processing Payment", isOpen: a || this.defaultProps.isOpen, className: j("paymentStatusDialog") }, /* @__PURE__ */ i.createElement(E, { className: "dialogBody processedCountdown" }, /* @__PURE__ */ i.createElement(ga, { className: j(ca.blue, "spinner") }), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.StatusProcessedTimeout.content" }, /* @__PURE__ */ i.createElement("p", null, "Your payment is now being processed. Please wait for a few seconds..."))));
  }
}
class AI extends i.Component {
  constructor() {
    super(...arguments), this.defaultProps = { isOpen: !0 };
  }
  render() {
    const { onClose: a, isOpen: r } = this.props;
    return /* @__PURE__ */ i.createElement(
      A,
      {
        title: "Processing Payment",
        isOpen: r || this.defaultProps.isOpen,
        className: j("paymentStatusDialog needMoreTime")
      },
      /* @__PURE__ */ i.createElement(E, { className: "dialogBody needMoreTime" }, /* @__PURE__ */ i.createElement("img", { src: lI, alt: "order pending" }), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentProcessed.content" }, /* @__PURE__ */ i.createElement("p", { className: "description above" }, "Your payment is still being processed, which may take up to 15 minutes. You will be notified via email"), /* @__PURE__ */ i.createElement("p", { className: "description " }, "when your payment has been processed. For assistance, please contact support."))),
      a && /* @__PURE__ */ i.createElement(x, { className: "dialogFooter" }, /* @__PURE__ */ i.createElement("button", { className: "btn btnClose failed", onClick: a }, /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentFailed.close" }, "CLOSE")))
    );
  }
}
class EI extends i.Component {
  render() {
    return /* @__PURE__ */ i.createElement(
      A,
      {
        title: Na("PaymentStatusDialog.paymentFailed.title"),
        isOpen: !0,
        className: j("paymentStatusDialog", this.props.className)
      },
      /* @__PURE__ */ i.createElement(E, { className: "dialogBody failed" }, /* @__PURE__ */ i.createElement("img", { src: zI, alt: "Payment Failed" }), /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentFailed.content" }, /* @__PURE__ */ i.createElement("p", { className: "description above" }, "Your payment has failed."), /* @__PURE__ */ i.createElement("p", { className: "description" }, "Please contact support for assistance."))),
      /* @__PURE__ */ i.createElement(x, { className: "dialogFooter" }, /* @__PURE__ */ i.createElement("button", { onClick: this.props.onCloseDialog, className: "btn btnClose failed" }, /* @__PURE__ */ i.createElement(N, { i18nKey: "PaymentStatusDialog.paymentFailed.close" }, "CLOSE")))
    );
  }
}
class LI extends i.Component {
  render() {
    return /* @__PURE__ */ i.createElement(
      A,
      {
        title: /* @__PURE__ */ i.createElement(N, { i18nKey: "OrderPage.cancellationnotice.title" }, "Order Cancelled"),
        isOpen: !0,
        className: j("paymentStatusDialog", this.props.className)
      },
      /* @__PURE__ */ i.createElement(E, { className: "dialogBody" }, /* @__PURE__ */ i.createElement("img", { src: Ja, alt: "Order cancelled" }), /* @__PURE__ */ i.createElement("p", { className: "description above" }, /* @__PURE__ */ i.createElement(N, { i18nKey: "OrderPage.cancellationNotice.message" }, "Your order has been successfully canceled. Head back to the store to explore other awesome games."))),
      /* @__PURE__ */ i.createElement(x, { className: "dialogFooter" }, /* @__PURE__ */ i.createElement("button", { className: "btn btnClose cancelled", onClick: this.props.onCloseDialog }, /* @__PURE__ */ i.createElement(N, { i18nKey: "OrderPage.cancellationNotice.closeButton" }, "Close")))
    );
  }
}
class xI extends i.Component {
  render() {
    return /* @__PURE__ */ i.createElement(
      A,
      {
        title: /* @__PURE__ */ i.createElement(N, { i18nKey: "OrderPage.expiryDialog.title" }, "Order Expired"),
        isOpen: !0,
        className: j("paymentStatusDialog", this.props.className)
      },
      /* @__PURE__ */ i.createElement(E, { className: "dialogBody" }, /* @__PURE__ */ i.createElement("img", { src: Ja, alt: "Order expired" }), /* @__PURE__ */ i.createElement("p", { className: "description above" }, /* @__PURE__ */ i.createElement(N, { i18nKey: "OrderPage.expiryDialog.message" }, "Your order has expired. Please return to the store to place a new order."))),
      /* @__PURE__ */ i.createElement(x, { className: "dialogFooter" }, /* @__PURE__ */ i.createElement("button", { className: "btn btnClose expired", onClick: this.props.onCloseDialog }, /* @__PURE__ */ i.createElement(N, { i18nKey: "OrderPage.expiryDialog.closeButton" }, "Close")))
    );
  }
}
export {
  dI as O,
  OI as P,
  AI as a,
  SI as b,
  EI as c,
  mI as d,
  xI as e,
  LI as f
};
