import { S as ie, b as ne, s as ae, f as U, c as le, n as J, e as W, l as N, w as oe, v as re, K as V, L as ce, g as X, D as he, t as de, k as ue, x as B, m as l, o as v, p as j, y as I, q as t, z as fe, V as me, F as ve, W as pe, J as G, A as ge, N as b, E as we } from "./CashierConfirmModal-untxGhsx.js";
import { f as K } from "./CashierModal-BrwIBn9a.js";
import { a as ye, $ as Te, i as _e, b as be } from "./CashierError-7GtTdX3g.js";
import { d as xe } from "./CashierMethodDetails-B_BhZEkY.js";
_e({
  fallbackLocale: "en"
});
function Q(a, e) {
  ye(a, e);
}
function ke(a) {
  Te.set(a);
}
const Z = {
  en: {
    transactionHistoryTitle: "Transaction History",
    transactionIdTitle: "ID",
    transactionDateTitle: "Date",
    transactionTypeTitle: "Type",
    transactionStatusTitle: "Status",
    copyTransactionId: "Transaction Id copied to clipboard",
    transactionStatus: {
      Authorized: "Authorized",
      Success: "Success",
      Failed: "Failed",
      Rejected: "Rejected",
      Pending: "Pending"
    },
    transactionType: {
      Deposit: "Deposit",
      Withdraw: "Withdraw"
    }
  },
  tr: {
    transactionHistoryTitle: "İşlem Geçmişi",
    transactionIdTitle: "İşlem ID'si",
    transactionDateTitle: "Tarih",
    transactionTypeTitle: "Tip",
    transactionStatusTitle: "Durum",
    copyTransactionId: "İşlem ID’si kopyalandı",
    transactionStatus: {
      Authorized: "Onaylandı",
      Success: "Başarılı",
      Failed: "Başarısız",
      Rejected: "Reddedildi",
      Pending: "Beklemede"
    },
    transactionType: {
      Deposit: "Para Yatır",
      Withdraw: "Çekim"
    }
  }
};
function Ce(a, e) {
  if (a) {
    const s = document.createElement("style");
    s.innerHTML = e, a.appendChild(s);
  }
}
function Se(a, e) {
  const s = new URL(e);
  fetch(s.href).then((i) => i.text()).then((i) => {
    const o = document.createElement("style");
    o.innerHTML = i, a && a.appendChild(o);
  }).catch((i) => {
    console.error("There was an error while trying to load client styling from URL", i);
  });
}
function He(a) {
  le(a, "svelte-1hhe323", ".svelte-1hhe323.svelte-1hhe323,.svelte-1hhe323.svelte-1hhe323::before,.svelte-1hhe323.svelte-1hhe323::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1hhe323.svelte-1hhe323{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistory.svelte-1hhe323.svelte-1hhe323{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1hhe323 table.svelte-1hhe323{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1hhe323 table.svelte-1hhe323:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1hhe323 thead tr.svelte-1hhe323{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1hhe323 tbody tr.svelte-1hhe323{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1hhe323 tr.svelte-1hhe323{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1hhe323 .CopyTooltip.svelte-1hhe323{width:100%}.CashierTransactionHistory.svelte-1hhe323 .CashierTransactionId.svelte-1hhe323{max-width:135px}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1hhe323 .CashierTransactionHistoryWrapper.svelte-1hhe323{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1hhe323 table.svelte-1hhe323{table-layout:fixed}.CashierTransactionHistory.svelte-1hhe323 table td.svelte-1hhe323{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1hhe323.svelte-1hhe323{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1hhe323.svelte-1hhe323{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1hhe323.svelte-1hhe323{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1hhe323.svelte-1hhe323:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1hhe323.svelte-1hhe323{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1hhe323.svelte-1hhe323{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1hhe323.svelte-1hhe323{width:100%}.CashierTransactionHistoryIcon.svelte-1hhe323.svelte-1hhe323{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
}
function $(a, e, s) {
  const i = a.slice();
  return i[24] = e[s], i[26] = s, i;
}
function ee(a) {
  let e, s, i, o = (
    /*$_*/
    a[5]("transactionHistoryTitle") + ""
  ), c, d, u, w, x, k, p, H, L = (
    /*$_*/
    a[5]("transactionIdTitle") + ""
  ), D, y, C, _ = (
    /*$_*/
    a[5]("transactionDateTitle") + ""
  ), A, z, R, M = (
    /*$_*/
    a[5]("transactionTypeTitle") + ""
  ), E, Y, P, S = (
    /*$_*/
    a[5]("transactionStatusTitle") + ""
  ), g, n, r, h = (
    /*copied*/
    a[3] && te(a)
  ), O = V(
    /*txnHistory*/
    a[2]
  ), m = [];
  for (let f = 0; f < O.length; f += 1)
    m[f] = se($(a, O, f));
  return {
    c() {
      e = v("div"), h && h.c(), s = j(), i = v("h3"), c = I(o), d = j(), u = v("div"), w = v("div"), x = v("table"), k = v("thead"), p = v("tr"), H = v("td"), D = I(L), y = j(), C = v("td"), A = I(_), z = j(), R = v("td"), E = I(M), Y = j(), P = v("td"), g = I(S), n = j(), r = v("tbody");
      for (let f = 0; f < m.length; f += 1)
        m[f].c();
      t(i, "class", "CashierTransactionHistoryTitle svelte-1hhe323"), t(H, "class", "svelte-1hhe323"), t(C, "class", "svelte-1hhe323"), t(R, "class", "svelte-1hhe323"), t(P, "class", "svelte-1hhe323"), t(p, "class", "svelte-1hhe323"), t(k, "class", "svelte-1hhe323"), t(r, "class", "svelte-1hhe323"), t(x, "class", "svelte-1hhe323"), t(w, "class", "CashierTransactionHistoryContent svelte-1hhe323"), t(u, "class", "CashierTransactionHistoryWrapper svelte-1hhe323"), t(e, "class", "CashierTransactionHistory svelte-1hhe323");
    },
    m(f, F) {
      N(f, e, F), h && h.m(e, null), l(e, s), l(e, i), l(i, c), l(e, d), l(e, u), l(u, w), l(w, x), l(x, k), l(k, p), l(p, H), l(H, D), l(p, y), l(p, C), l(C, A), l(p, z), l(p, R), l(R, E), l(p, Y), l(p, P), l(P, g), l(x, n), l(x, r);
      for (let T = 0; T < m.length; T += 1)
        m[T] && m[T].m(r, null);
      a[16](e);
    },
    p(f, F) {
      if (/*copied*/
      f[3] ? h ? (h.p(f, F), F & /*copied*/
      8 && X(h, 1)) : (h = te(f), h.c(), X(h, 1), h.m(e, s)) : h && (he(), de(h, 1, 1, () => {
        h = null;
      }), ue()), F & /*$_*/
      32 && o !== (o = /*$_*/
      f[5]("transactionHistoryTitle") + "") && B(c, o), F & /*$_*/
      32 && L !== (L = /*$_*/
      f[5]("transactionIdTitle") + "") && B(D, L), F & /*$_*/
      32 && _ !== (_ = /*$_*/
      f[5]("transactionDateTitle") + "") && B(A, _), F & /*$_*/
      32 && M !== (M = /*$_*/
      f[5]("transactionTypeTitle") + "") && B(E, M), F & /*$_*/
      32 && S !== (S = /*$_*/
      f[5]("transactionStatusTitle") + "") && B(g, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
      124) {
        O = V(
          /*txnHistory*/
          f[2]
        );
        let T;
        for (T = 0; T < O.length; T += 1) {
          const q = $(f, O, T);
          m[T] ? m[T].p(q, F) : (m[T] = se(q), m[T].c(), m[T].m(r, null));
        }
        for (; T < m.length; T += 1)
          m[T].d(1);
        m.length = O.length;
      }
    },
    d(f) {
      f && W(e), h && h.d(), ce(m, f), a[16](null);
    }
  };
}
function te(a) {
  let e, s = (
    /*$_*/
    a[5]("copyTransactionId") + ""
  ), i, o, c, d;
  return {
    c() {
      e = v("div"), i = I(s), t(e, "class", "CopyTooltip svelte-1hhe323");
    },
    m(u, w) {
      N(u, e, w), l(e, i), d = !0;
    },
    p(u, w) {
      a = u, (!d || w & /*$_*/
      32) && s !== (s = /*$_*/
      a[5]("copyTransactionId") + "") && B(i, s);
    },
    i(u) {
      d || (u && ve(() => {
        d && (c && c.end(1), o = pe(e, K, { duration: 100 }), o.start());
      }), d = !0);
    },
    o(u) {
      o && o.invalidate(), u && (c = me(e, K, { duration: (
        /*tooltipduration*/
        a[0]
      ) })), d = !1;
    },
    d(u) {
      u && W(e), u && c && c.end();
    }
  };
}
function De(a) {
  let e, s, i;
  return {
    c() {
      e = b("svg"), s = b("circle"), i = b("path"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#25bf00"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "d", "M8 12L11 15L16 9"), t(i, "stroke", "#25bf00"), t(i, "stroke-width", "2"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
    },
    m(o, c) {
      N(o, e, c), l(e, s), l(e, i);
    },
    d(o) {
      o && W(e);
    }
  };
}
function ze(a) {
  let e, s, i, o;
  return {
    c() {
      e = b("svg"), s = b("circle"), i = b("text"), o = I("R"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#dd6617d4"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "x", "50%"), t(i, "y", "54%"), t(i, "text-anchor", "middle"), t(i, "dominant-baseline", "middle"), t(i, "font-size", "14"), t(i, "font-weight", "bold"), t(i, "fill", "#dd6617d4"), t(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
    },
    m(c, d) {
      N(c, e, d), l(e, s), l(e, i), l(i, o);
    },
    d(c) {
      c && W(e);
    }
  };
}
function Ie(a) {
  let e, s, i;
  return {
    c() {
      e = b("svg"), s = b("circle"), i = b("path"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#f0a85f"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "d", "M12 7V12L15 14"), t(i, "stroke", "#f0a85f"), t(i, "stroke-width", "2"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
    },
    m(o, c) {
      N(o, e, c), l(e, s), l(e, i);
    },
    d(o) {
      o && W(e);
    }
  };
}
function Ae(a) {
  let e, s, i;
  return {
    c() {
      e = b("svg"), s = b("circle"), i = b("path"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#e76049"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "d", "M9 9L15 15M15 9L9 15"), t(i, "stroke", "#e76049"), t(i, "stroke-width", "2"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
    },
    m(o, c) {
      N(o, e, c), l(e, s), l(e, i);
    },
    d(o) {
      o && W(e);
    }
  };
}
function Fe(a) {
  let e, s, i, o;
  return {
    c() {
      e = b("svg"), s = b("circle"), i = b("text"), o = I("A"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#32b398"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "x", "50%"), t(i, "y", "54%"), t(i, "text-anchor", "middle"), t(i, "dominant-baseline", "middle"), t(i, "font-size", "14"), t(i, "font-weight", "bold"), t(i, "fill", "#32b398"), t(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
    },
    m(c, d) {
      N(c, e, d), l(e, s), l(e, i), l(i, o);
    },
    d(c) {
      c && W(e);
    }
  };
}
function se(a) {
  let e, s, i = (
    /*transaction*/
    a[24].Code + ""
  ), o, c, d, u = (
    /*transaction*/
    a[24].Date + ""
  ), w, x, k, p = (
    /*$_*/
    a[5](`transactionType.${/*transaction*/
    a[24].Type}`) + ""
  ), H, L, D, y, C, _, A, z = (
    /*$_*/
    a[5](`transactionStatus.${/*transaction*/
    a[24].Status}`) + ""
  ), R, M, E, Y;
  function P(n, r) {
    if (
      /*transaction*/
      n[24].Status === /*TransactionMainStatus*/
      n[4].Authorized
    )
      return Fe;
    if (
      /*transaction*/
      n[24].Status === /*TransactionMainStatus*/
      n[4].Failed
    )
      return Ae;
    if (
      /*transaction*/
      n[24].Status === /*TransactionMainStatus*/
      n[4].Pending
    )
      return Ie;
    if (
      /*transaction*/
      n[24].Status === /*TransactionMainStatus*/
      n[4].Rejected
    )
      return ze;
    if (
      /*transaction*/
      n[24].Status === /*TransactionMainStatus*/
      n[4].Success
    )
      return De;
  }
  let S = P(a), g = S && S(a);
  return {
    c() {
      e = v("tr"), s = v("td"), o = I(i), c = j(), d = v("td"), w = I(u), x = j(), k = v("td"), H = I(p), L = j(), D = v("td"), y = v("div"), C = v("span"), g && g.c(), _ = j(), A = v("span"), R = I(z), M = j(), t(s, "class", "CashierTransactionId svelte-1hhe323"), G(
        s,
        "copied",
        /*copied*/
        a[3]
      ), t(d, "class", "svelte-1hhe323"), t(k, "class", "svelte-1hhe323"), t(C, "class", "CashierTransactionHistoryIcon svelte-1hhe323"), t(A, "class", "CashierTransactionHistoryStatusText svelte-1hhe323"), t(y, "class", "CashierTransactionHistoryStatus svelte-1hhe323"), t(D, "class", "svelte-1hhe323"), t(e, "class", "svelte-1hhe323");
    },
    m(n, r) {
      N(n, e, r), l(e, s), l(s, o), l(e, c), l(e, d), l(d, w), l(e, x), l(e, k), l(k, H), l(e, L), l(e, D), l(D, y), l(y, C), g && g.m(C, null), l(y, _), l(y, A), l(A, R), l(e, M), E || (Y = ge(
        s,
        "mousedown",
        /*mousedown_handler*/
        a[15]
      ), E = !0);
    },
    p(n, r) {
      r & /*txnHistory*/
      4 && i !== (i = /*transaction*/
      n[24].Code + "") && B(o, i), r & /*copied*/
      8 && G(
        s,
        "copied",
        /*copied*/
        n[3]
      ), r & /*txnHistory*/
      4 && u !== (u = /*transaction*/
      n[24].Date + "") && B(w, u), r & /*$_, txnHistory*/
      36 && p !== (p = /*$_*/
      n[5](`transactionType.${/*transaction*/
      n[24].Type}`) + "") && B(H, p), S !== (S = P(n)) && (g && g.d(1), g = S && S(n), g && (g.c(), g.m(C, null))), r & /*$_, txnHistory*/
      36 && z !== (z = /*$_*/
      n[5](`transactionStatus.${/*transaction*/
      n[24].Status}`) + "") && B(R, z);
    },
    d(n) {
      n && W(e), g && g.d(), E = !1, Y();
    }
  };
}
function je(a) {
  let e, s = (
    /*txnHistory*/
    a[2].length && ee(a)
  );
  return {
    c() {
      s && s.c(), e = oe();
    },
    m(i, o) {
      s && s.m(i, o), N(i, e, o);
    },
    p(i, [o]) {
      /*txnHistory*/
      i[2].length ? s ? s.p(i, o) : (s = ee(i), s.c(), s.m(e.parentNode, e)) : s && (s.d(1), s = null);
    },
    i: J,
    o: J,
    d(i) {
      i && W(e), s && s.d(i);
    }
  };
}
const Le = "DD.MM.YYYY";
function Re(a, e, s) {
  let i;
  re(a, be, (n) => s(5, i = n));
  let { endpoint: o } = e, { session: c } = e, { lang: d = "en" } = e, { customerid: u } = e, { clientstyling: w = "" } = e, { clientstylingurl: x = "" } = e, { translationurl: k } = e, { tooltipduration: p = 1e3 } = e, { txncount: H = 3 } = e, L = [], D = !1, y, C;
  var _;
  (function(n) {
    n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
  })(_ || (_ = {}));
  const A = [
    "Authorized",
    "Success",
    "Failed",
    "Rejected",
    "PendingApprovalStage1",
    "PendingApprovalStage2",
    "PendingApprovalStage3",
    "PendingNotification",
    "PendingOfflineNotification",
    "PendingConfirmation"
  ];
  var z;
  (function(n) {
    n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
  })(z || (z = {}));
  const R = () => {
    let n = k;
    if (n)
      return fetch(n).then((r) => r.json()).then((r) => {
        Object.keys(r).forEach((h) => {
          Q(h, r[h]);
        });
      }).catch((r) => {
        console.log(r);
      });
  };
  Object.keys(Z).forEach((n) => {
    Q(n, Z[n]);
  });
  const M = () => {
    ke(d);
  }, E = () => {
    const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
    r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
    const h = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
      method: "POST",
      mode: "cors",
      headers: r,
      body: JSON.stringify({
        language: d,
        customerId: u,
        count: H,
        page: 0,
        fromDate: h,
        toDate: null,
        statuses: {
          [_.Deposit]: A,
          [_.Withdraw]: A,
          [_.Refund]: ["Unknown"],
          [_.TaxDeduction]: ["Unknown"],
          [_.Unknown]: ["Unknown"]
        },
        calculateProfit: !1
      })
    };
    fetch(n, O).then((m) => m.json()).then((m) => {
      s(2, L = Y(m?.items || []));
    }).catch((m) => console.log(m));
  }, Y = (n) => n.map((r) => {
    let h = r.generalFields.status;
    return r.generalFields.status.toLowerCase().includes("pending") && (h = z.Pending), {
      Code: r.generalFields.code,
      Date: xe(r.generalFields.created).format(Le),
      Status: h,
      Type: r.generalFields.type
    };
  }) || [], P = (n) => {
    const r = n.currentTarget;
    n.target === r && navigator.clipboard.writeText(r.innerText).then(() => {
      s(3, D = !0), clearTimeout(C), C = setTimeout(
        () => {
          s(3, D = !1);
        },
        2e3
      );
    }).catch((h) => {
      console.error("Could not copy text: ", h);
    });
  }, S = (n) => P(n);
  function g(n) {
    fe[n ? "unshift" : "push"](() => {
      y = n, s(1, y);
    });
  }
  return a.$$set = (n) => {
    "endpoint" in n && s(7, o = n.endpoint), "session" in n && s(8, c = n.session), "lang" in n && s(9, d = n.lang), "customerid" in n && s(10, u = n.customerid), "clientstyling" in n && s(11, w = n.clientstyling), "clientstylingurl" in n && s(12, x = n.clientstylingurl), "translationurl" in n && s(13, k = n.translationurl), "tooltipduration" in n && s(0, p = n.tooltipduration), "txncount" in n && s(14, H = n.txncount);
  }, a.$$.update = () => {
    a.$$.dirty & /*lang*/
    512 && d && M(), a.$$.dirty & /*clientstyling, customStylingContainer*/
    2050 && w && y && Ce(y, w), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
    4098 && x && y && Se(y, x), a.$$.dirty & /*endpoint, session, customerid, lang*/
    1920 && o && c && u && d && E(), a.$$.dirty & /*translationurl*/
    8192 && k && R();
  }, [
    p,
    y,
    L,
    D,
    z,
    i,
    P,
    o,
    c,
    d,
    u,
    w,
    x,
    k,
    H,
    S,
    g
  ];
}
class Pe extends ie {
  constructor(e) {
    super(), ne(
      this,
      e,
      Re,
      je,
      ae,
      {
        endpoint: 7,
        session: 8,
        lang: 9,
        customerid: 10,
        clientstyling: 11,
        clientstylingurl: 12,
        translationurl: 13,
        tooltipduration: 0,
        txncount: 14
      },
      He
    );
  }
  get endpoint() {
    return this.$$.ctx[7];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), U();
  }
  get session() {
    return this.$$.ctx[8];
  }
  set session(e) {
    this.$$set({ session: e }), U();
  }
  get lang() {
    return this.$$.ctx[9];
  }
  set lang(e) {
    this.$$set({ lang: e }), U();
  }
  get customerid() {
    return this.$$.ctx[10];
  }
  set customerid(e) {
    this.$$set({ customerid: e }), U();
  }
  get clientstyling() {
    return this.$$.ctx[11];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), U();
  }
  get clientstylingurl() {
    return this.$$.ctx[12];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), U();
  }
  get translationurl() {
    return this.$$.ctx[13];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), U();
  }
  get tooltipduration() {
    return this.$$.ctx[0];
  }
  set tooltipduration(e) {
    this.$$set({ tooltipduration: e }), U();
  }
  get txncount() {
    return this.$$.ctx[14];
  }
  set txncount(e) {
    this.$$set({ txncount: e }), U();
  }
}
we(Pe, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
export {
  Pe as default
};
