var Kt = Object.defineProperty, Jt = Object.defineProperties;
var Ut = Object.getOwnPropertyDescriptors;
var ht = Object.getOwnPropertySymbols;
var Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable;
var pt = (r, e, t) => e in r ? Kt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ot = (r, e) => {
  for (var t in e || (e = {}))
    Zt.call(e, t) && pt(r, t, e[t]);
  if (ht)
    for (var t of ht(e))
      Qt.call(e, t) && pt(r, t, e[t]);
  return r;
}, nt = (r, e) => Jt(r, Ut(e));
var st = (r, e, t) => new Promise((a, o) => {
  var n = (y) => {
    try {
      l(t.next(y));
    } catch (m) {
      o(m);
    }
  }, i = (y) => {
    try {
      l(t.throw(y));
    } catch (m) {
      o(m);
    }
  }, l = (y) => y.done ? a(y.value) : Promise.resolve(y.value).then(n, i);
  l((t = t.apply(r, e)).next());
});
import { $ as lt, E as Xt, a as Yt, S as $t, i as er, s as tr, f as K, b as rr, n as Re, d as B, h as A, k as c, p as ar, q as ir, u as or, G as nr, w as Ue, C as H, D as $, j as h, m as S, e as s, r as sr, c as J, g as he, l as De, t as V, v as E, H as tt, x as lr, y as hr, z as pr, A as dr, B as cr } from "./GeneralLogout-B7wytw3i.js";
import { d as et } from "./PlayerAccountProductRestriction-D5TZl8TF.js";
import { C as yr } from "./PlayerAccountSelfExclusion-CySbO2r9.js";
import "../stencil/ui-skeleton-CTFP1U_H.js";
function ur({ withLocale: r, translations: e }) {
  lt.subscribe((t) => {
    t == null && (Xt.set(e), lt.set(r));
  });
}
function dt(r, e) {
  Yt(r, e);
}
function br(r) {
  lt.set(r);
}
const ct = {
  en: {
    headerTitle: "Historical Transactions",
    Casino: "Casino",
    Sports: "Sports",
    Payments: "Payments",
    dateFrom: "Period From",
    dateTo: "Period To",
    dateFilter: "Filter",
    InvalidSession: "The session you are using is invalid, please check..",
    checkPeriod: "Please select other period in order to see data.",
    Type: "Type",
    Status: "Status",
    Amount: "Amount",
    Currency: "Currency",
    Date: "Date",
    "Game Name": "Game Name",
    Date: "Transaction ID",
    "Bet Amount": "Bet Amount",
    "Win Amount": "Win Amount",
    "Transaction ID": "Transaction ID",
    Stake: "Stake",
    Description: "Description",
    "Bet Part": "Bet Part",
    "Bet Type": "Bet Type",
    "Free Bet": "Free Bet",
    "Win Type": "Win Type",
    "Play Type": "Play Type",
    "Bet Adjustment": "Bet Adjustment",
    "Bet ID": "Bet ID",
    Price: "Price",
    Selection: "Selection",
    Market: "Market",
    Sport: "Sport",
    Date: "Date",
    Sport: "Sport",
    Sport: "Sport",
    Multiple: "Multiple",
    Winnings: "Winnings"
  },
  "zh-hk": {
    headerTitle: "历史交易",
    Casino: "赌场",
    Sports: "体育",
    Payments: "付款",
    dateFrom: "开始日期",
    dateTo: "结束日期",
    dateFilter: "筛选",
    InvalidSession: "您使用的会话无效，请检查。",
    checkPeriod: "请选择其他时间段以查看数据。",
    Type: "类型",
    Status: "状态",
    Amount: "金额",
    Currency: "货币",
    Date: "日期",
    "Game Name": "游戏名称",
    "Transaction ID": "交易ID",
    "Bet Amount": "投注金额",
    "Win Amount": "赢取金额",
    Stake: "赌注",
    Description: "描述",
    "Bet Part": "投注部分",
    "Bet Type": "投注类型",
    "Free Bet": "免费投注",
    "Win Type": "赢取类型",
    "Play Type": "播放類型",
    "Bet Adjustment": "投注调整",
    "Bet ID": "投注ID",
    Price: "价格",
    Selection: "选择",
    Market: "市场",
    Sport: "体育",
    Multiple: "多重",
    Winnings: "獲勝"
  },
  fr: {
    headerTitle: "Transactions Historiques",
    Casino: "Casino",
    Sports: "Sports",
    Payments: "Paiements",
    dateFrom: "Période De",
    dateTo: "Période À",
    dateFilter: "Filtrer",
    InvalidSession: "La session que vous utilisez est invalide, veuillez vérifier.",
    checkPeriod: "Veuillez sélectionner une autre période pour voir les données.",
    Type: "Type",
    Status: "Statut",
    Amount: "Montant",
    Currency: "Devise",
    Date: "Date",
    "Game Name": "Nom du Jeu",
    "Transaction ID": "ID de Transaction",
    "Bet Amount": "Montant du Pari",
    "Win Amount": "Montant Gagné",
    Stake: "Mise",
    Description: "Description",
    "Bet Part": "Partie du Pari",
    "Bet Type": "Type de Pari",
    "Free Bet": "Pari Gratuit",
    "Win Type": "Type de Gain",
    "Play Type": "Type de lecture",
    "Bet Adjustment": "Ajustement du Pari",
    "Bet ID": "ID du Pari",
    Price: "Prix",
    Selection: "Sélection",
    Market: "Marché",
    Sport: "Sport",
    Multiple: "Multiple",
    Winnings: "Gains"
  },
  ro: {
    headerTitle: "Tranzacții Istorice",
    Casino: "Cazinou",
    Sports: "Sporturi",
    Payments: "Plăți",
    dateFrom: "Perioada De",
    dateTo: "Perioada Până",
    dateFilter: "Filtru",
    InvalidSession: "Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",
    checkPeriod: "Vă rugăm să selectați o altă perioadă pentru a vedea datele.",
    Type: "Tip",
    Status: "Stare",
    Amount: "Sumă",
    Currency: "Monedă",
    Date: "Data",
    "Game Name": "Numele Jocului",
    "Transaction ID": "ID-ul Tranzacției",
    "Bet Amount": "Suma Pariei",
    "Win Amount": "Suma Câștigată",
    Stake: "Miză",
    Description: "Descriere",
    "Bet Part": "Partea Pariei",
    "Bet Type": "Tipul Pariei",
    "Free Bet": "Pariu Gratuit",
    "Win Type": "Tipul Câștigului",
    "Play Type": "Tip de redare",
    "Bet Adjustment": "Ajustarea Pariei",
    "Bet ID": "ID-ul Pariei",
    Price: "Preț",
    Selection: "Selecție",
    Market: "Piață",
    Sport: "Sport",
    Multiple: "Multiplu",
    Winnings: "Câștiguri"
  },
  es: {
    headerTitle: "Transacciones Históricas",
    Casino: "Casino",
    Sports: "Deportes",
    Payments: "Pagos",
    dateFrom: "Período Desde",
    dateTo: "Período Hasta",
    dateFilter: "Filtrar",
    InvalidSession: "La sesión que está utilizando es inválida, por favor verifique.",
    checkPeriod: "Por favor seleccione otro período para ver los datos.",
    Type: "Tipo",
    Status: "Estado",
    Amount: "Cantidad",
    Currency: "Moneda",
    Date: "Fecha",
    "Game Name": "Nombre del Juego",
    "Transaction ID": "ID de Transacción",
    "Bet Amount": "Cantidad Apostada",
    "Win Amount": "Cantidad Ganada",
    Stake: "Apuesta",
    Description: "Descripción",
    "Bet Part": "Parte de la Apuesta",
    "Bet Type": "Tipo de Apuesta",
    "Free Bet": "Apuesta Gratis",
    "Win Type": "Tipo de Ganancia",
    "Play Type": "Tipo de reproducción",
    "Bet Adjustment": "Ajuste de Apuesta",
    "Bet ID": "ID de Apuesta",
    Price: "Precio",
    Selection: "Selección",
    Market: "Mercado",
    Sport: "Deporte",
    Multiple: "Múltiple",
    Winnings: "Ganancias"
  },
  pt: {
    headerTitle: "Transações Históricas",
    Casino: "Cassino",
    Sports: "Esportes",
    Payments: "Pagamentos",
    dateFrom: "Período De",
    dateTo: "Período Até",
    dateFilter: "Filtrar",
    InvalidSession: "A sessão que você está usando é inválida, por favor verifique.",
    checkPeriod: "Por favor selecione outro período para ver os dados.",
    Type: "Tipo",
    Status: "Status",
    Amount: "Quantia",
    Currency: "Moeda",
    Date: "Data",
    "Game Name": "Nome do Jogo",
    "Transaction ID": "ID da Transação",
    "Bet Amount": "Quantia Apostada",
    "Win Amount": "Quantia Ganha",
    Stake: "Aposta",
    Description: "Descrição",
    "Bet Part": "Parte da Aposta",
    "Bet Type": "Tipo de Aposta",
    "Free Bet": "Aposta Grátis",
    "Win Type": "Tipo de Ganho",
    "Play Type": "Tipo de reprodução",
    "Bet Adjustment": "Ajuste de Aposta",
    "Bet ID": "ID da Aposta",
    Price: "Preço",
    Selection: "Seleção",
    Market: "Mercado",
    Sport: "Esporte",
    Multiple: "Múltiplo",
    Winnings: "Ganhos"
  },
  hr: {
    headerTitle: "Povijesne Transakcije",
    Casino: "Casino",
    Sports: "Sportovi",
    Payments: "Plaćanja",
    dateFrom: "Razdoblje Od",
    dateTo: "Razdoblje Do",
    dateFilter: "Filtriraj",
    InvalidSession: "Sesija koju koristite je nevažeća, molimo provjerite.",
    checkPeriod: "Molimo odaberite drugo razdoblje za pregled podataka.",
    Type: "Vrsta",
    Status: "Status",
    Amount: "Iznos",
    Currency: "Valuta",
    Date: "Datum",
    "Game Name": "Naziv Igre",
    "Transaction ID": "ID Transakcije",
    "Bet Amount": "Iznos Oklade",
    "Win Amount": "Iznos Dobitka",
    Stake: "Ulog",
    Description: "Opis",
    "Bet Part": "Dio Oklade",
    "Bet Type": "Vrsta Oklade",
    "Free Bet": "Besplatna Oklada",
    "Win Type": "Vrsta Dobitka",
    "Play Type": "Vrsta reprodukcije",
    "Bet Adjustment": "Prilagodba Oklade",
    "Bet ID": "ID Oklade",
    Price: "Cijena",
    Selection: "Izbor",
    Market: "Tržište",
    Sport: "Sport",
    Multiple: "Višestruko",
    Winnings: "Dobitci"
  },
  "pt-br": {
    headerTitle: "Transações Históricas",
    Casino: "Cassino",
    Sports: "Esportes",
    Payments: "Pagamentos",
    dateFrom: "Período De",
    dateTo: "Período Até",
    dateFilter: "Filtrar",
    InvalidSession: "A sessão que você está usando é inválida, por favor verifique.",
    checkPeriod: "Por favor selecione outro período para ver os dados.",
    Type: "Tipo",
    Status: "Status",
    Amount: "Quantia",
    Currency: "Moeda",
    Date: "Data",
    "Game Name": "Nome do Jogo",
    "Transaction ID": "ID da Transação",
    "Bet Amount": "Quantia Apostada",
    "Win Amount": "Quantia Ganha",
    Stake: "Aposta",
    Description: "Descrição",
    "Bet Part": "Parte da Aposta",
    "Bet Type": "Tipo de Aposta",
    "Free Bet": "Aposta Grátis",
    "Win Type": "Tipo de Ganho",
    "Play Type": "Tipo de reprodução",
    "Bet Adjustment": "Ajuste de Aposta",
    "Bet ID": "ID da Aposta",
    Price: "Preço",
    Selection: "Seleção",
    Market: "Mercado",
    Sport: "Esporte",
    Multiple: "Múltiplo",
    Winnings: "Ganhos"
  },
  "es-mx": {
    headerTitle: "Transacciones Históricas",
    Casino: "Casino",
    Sports: "Deportes",
    Payments: "Pagos",
    dateFrom: "Período Desde",
    dateTo: "Período Hasta",
    dateFilter: "Filtrar",
    InvalidSession: "La sesión que está utilizando es inválida, por favor verifique.",
    checkPeriod: "Por favor seleccione otro período para ver los datos.",
    Type: "Tipo",
    Status: "Estado",
    Amount: "Cantidad",
    Currency: "Moneda",
    Date: "Fecha",
    "Game Name": "Nombre del Juego",
    "Transaction ID": "ID de Transacción",
    "Bet Amount": "Cantidad Apostada",
    "Win Amount": "Cantidad Ganada",
    Stake: "Apuesta",
    Description: "Descripción",
    "Bet Part": "Parte de la Apuesta",
    "Bet Type": "Tipo de Apuesta",
    "Free Bet": "Apuesta Gratis",
    "Win Type": "Tipo de Ganancia",
    "Play Type": "Tipo de reproducción",
    "Bet Adjustment": "Ajuste de Apuesta",
    "Bet ID": "ID de Apuesta",
    Price: "Precio",
    Selection: "Selección",
    Market: "Mercado",
    Sport: "Deporte",
    Multiple: "Múltiple",
    Winnings: "Ganancias"
  },
  tr: {
    headerTitle: "Geçmiş İşlemler",
    Casino: "Casino",
    Sports: "Sporlar",
    Payments: "Ödemeler",
    dateFrom: "Dönemden",
    dateTo: "Döneme",
    dateFilter: "Filtre",
    InvalidSession: "Kullandığınız oturum geçersiz, lütfen kontrol edin.",
    checkPeriod: "Verileri görmek için lütfen başka bir dönem seçin.",
    Type: "Tür",
    Status: "Durum",
    Amount: "Miktar",
    Currency: "Para Birimi",
    Date: "Tarih",
    "Game Name": "Oyun Adı",
    "Transaction ID": "İşlem ID",
    "Bet Amount": "Bahis Miktarı",
    "Win Amount": "Kazanç Miktarı",
    Stake: "Bahis",
    Description: "Açıklama",
    "Bet Part": "Bahis Bölümü",
    "Bet Type": "Bahis Türü",
    "Free Bet": "Ücretsiz Bahis",
    "Win Type": "Kazanç Türü",
    "Play Type": "Oynatma Türü",
    "Bet Adjustment": "Bahis Ayarı",
    "Bet ID": "Bahis ID",
    Price: "Fiyat",
    Selection: "Seçim",
    Market: "Pazar",
    Sport: "Spor",
    Multiple: "Çoklu",
    Winnings: "Kazanan"
  },
  "en-us": {
    headerTitle: "Historical Transactions",
    Casino: "Casino",
    Sports: "Sports",
    Payments: "Payments",
    dateFrom: "Period From",
    dateTo: "Period To",
    dateFilter: "Filter",
    InvalidSession: "The session you are using is invalid, please check..",
    checkPeriod: "Please select other period in order to see data.",
    Type: "Type",
    Status: "Status",
    Amount: "Amount",
    Currency: "Currency",
    Date: "Date",
    "Game Name": "Game Name",
    Date: "Transaction ID",
    "Bet Amount": "Bet Amount",
    "Win Amount": "Win Amount",
    "Transaction ID": "Transaction ID",
    Stake: "Stake",
    Description: "Description",
    "Bet Part": "Bet Part",
    "Bet Type": "Bet Type",
    "Free Bet": "Free Bet",
    "Win Type": "Win Type",
    "Play Type": "Play Type",
    "Bet Adjustment": "Bet Adjustment",
    "Bet ID": "Bet ID",
    Price: "Price",
    Selection: "Selection",
    Market: "Market",
    Sport: "Sport",
    Date: "Date",
    Sport: "Sport",
    Sport: "Sport",
    Multiple: "Multiple",
    Winnings: "Winnings"
  }
};
function gr(r) {
  rr(r, "svelte-xdr5hv", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.headerTextNone{display:none}.historyContainer{container-type:inline-size}.historyContainer .desktopSubmenu{display:flex}.historyContainer .allSubmenuRows{display:none}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22b04e);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:10px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:5px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, black 20%), var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-primary, #22b04e) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0e5924);color:var(--emw--button-text-color, #ffffff);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22b04e);background-color:var(--emw--color-white, #ffffff);overflow:auto;scrollbar-width:thin}.historyContainer .historyWrapper .historyTable::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableWrapper.sports{width:100%;display:flex}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableHead span{min-width:102px}.historyContainer .historyWrapper .historyTable .tableWrapper.sports .tableContent .tableRow .tableData span{min-width:101px}.historyContainer .historyWrapper .historyTable .tableHead{display:flex}.historyContainer .historyWrapper .historyTable .tableHead span{display:flex;justify-content:center;align-items:center;min-width:100px;flex:1 1 20%;padding:12px 0;text-align:center;color:var(--emw--button-text-color, #ffffff);background:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent::-webkit-scrollbar{width:6px;height:6px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:10px 5px;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #ffffff);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #ffffff);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;min-width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0;overflow-wrap:break-word}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22b04e);border-right:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #ffffff);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #ffffff);border:1px solid var(--emw--color-primary, #22b04e);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22b04e)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #ffffff)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}.historyContainer .historyMobileWrapper.historyWrapper{padding:20px 15px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton{display:inline-flex;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyMobileWrapper.historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyMobileWrapper.historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyMobileWrapper.historyWrapper .historyTable{overflow:auto}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyMobileWrapper.historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyMobileWrapper.historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}@container (max-width: 425px){.historyContainer .historyWrapper{display:flex;flex-direction:column}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{padding:5px 0;font-size:13px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 520px){.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:flex-start}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{flex-direction:column;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{min-width:190px;width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate vaadin-date-picker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate vaadin-date-picker{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{min-width:190px;width:100%}}@container (max-width: 784px){.historyContainer .historyWrapper .historyTable{min-width:190px}.historyContainer .historyWrapper .historyTable .tableWrapper{display:flex}.historyContainer .historyWrapper .historyTable .tableHead{display:none}.historyContainer .historyWrapper .historyTable .tableRow{display:flex;flex-direction:column;border:1px solid #ddd;margin-bottom:16px;border-radius:8px;overflow:hidden;background:#fff;text-align:center}.historyContainer .historyWrapper .historyTable .tableData{display:flex;flex-direction:column;padding:16px}.historyContainer .historyWrapper .historyTable .tableData span{width:100%}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label]{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #eee}.historyContainer .historyWrapper .historyTable .tableData span[data-label]::before,.historyContainer .historyWrapper .historyTable .tableData button[data-label]::before{content:attr(data-label);font-weight:600;color:#555;margin-right:16px;flex:1;text-align:left}.historyContainer .historyWrapper .historyTable .tableData button[data-label]{padding:2px 0}.historyContainer .historyWrapper .historyTable .tableData span[data-label]:last-child{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableData span[data-label],.historyContainer .historyWrapper .historyTable .tableData button[data-label] span{flex:2;text-align:right;font-weight:normal;color:#222}.historyContainer .historyWrapper .historyTable .tableContent{overflow-y:visible;padding:10px 5px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{text-align:right}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:none;margin-top:15px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{display:block;padding:0 18px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;padding:1px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label{display:flex;justify-content:space-between;padding:3px 0;font-size:14px;border-bottom:1px solid #eee;flex:2;text-align:right;font-weight:normal;color:rgba(0, 0, 0, 0.7);padding:2px 0}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .label::before{content:attr(data-label);font-weight:600;display:inline-block;width:100px;flex:1;text-align:left;margin-right:8px}.historyContainer .historyWrapper .historyTable .tableContent .submenuRow{margin-top:10px}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow{margin:0}.historyContainer .historyWrapper .historyTable .tableContent .remainingRows .submenuRow:last-of-type .tableData span{border-bottom:none}.historyContainer .historyWrapper .historyTable .tableContent .submenuRowTitle{font-size:14px}.historyContainer .remainingRows{margin-top:15px}.historyContainer .desktopSubmenu{display:none}.historyContainer .allSubmenuRows{display:flex;flex-direction:column}}@container (min-width: 785px){.historyContainer .historyWrapper .historyTable .tableWrapper.sports{display:block}}');
}
function yt(r, e, t) {
  const a = r.slice();
  return a[99] = e[t], a;
}
function ut(r, e, t) {
  const a = r.slice();
  return a[102] = e[t], a[103] = e, a[104] = t, a;
}
function bt(r, e, t) {
  const a = r.slice();
  return a[105] = e[t], a;
}
function gt(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a[109] = t, a;
}
function ft(r, e, t) {
  const a = r.slice();
  return a[105] = e[t], a;
}
function mt(r, e, t) {
  const a = r.slice();
  return a[112] = e[t], a;
}
function Ct(r, e, t) {
  const a = r.slice();
  return a[115] = e[t], a;
}
function _t(r, e, t) {
  const a = r.slice();
  return a[112] = e[t], a;
}
function wt(r, e, t) {
  const a = r.slice();
  return a[112] = e[t], a;
}
function vt(r, e, t) {
  const a = r.slice();
  return a[122] = e[t], a[104] = t, a;
}
function fr(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function mr(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function Cr(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function _r(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function wr(r) {
  let e, t, a, o, n, i, l = (
    /*$_*/
    r[19]("headerTitle") + ""
  ), y, m, _, F, T, x, w, I, D = (
    /*$_*/
    r[19]("dateFrom") + ""
  ), G, R, M, j, L, re, b = (
    /*$_*/
    r[19]("dateTo") + ""
  ), g, d, k, We, pe, ee = (
    /*$_*/
    r[19]("dateFilter") + ""
  ), xe, ae, Ee, ye, ie, ue, Q, U, X, be, de, Z, ge, te, Ge, Me, Ne, Ce, je, Oe, He, Ze, _e, we, oe, W, Qe, ze, ne, fe, Ve, qe, Ke, Y, Le, Je, ve, Be, Ae, Xe, me = (
    /*isMobile*/
    r[20] && kr(r)
  ), ke = H(
    /*transactionTypes*/
    r[15]
  ), N = [];
  for (let u = 0; u < ke.length; u += 1)
    N[u] = kt(vt(r, ke, u));
  let Se = H(
    /*tableColumns*/
    r[21][
      /*activeType*/
      r[7]
    ]
  ), O = [];
  for (let u = 0; u < Se.length; u += 1)
    O[u] = Tt(wt(r, Se, u));
  function Ye(u, z) {
    return (
      /*isError*/
      u[12] ? Sr : Tr
    );
  }
  let Fe = Ye(r), se = Fe(r), Te = H(
    /*pageSizeOptions*/
    r[29]
  ), q = [];
  for (let u = 0; u < Te.length; u += 1)
    q[u] = At(yt(r, Te, u));
  return {
    c() {
      e = c("div"), t = c("div"), a = c("div"), me && me.c(), o = S(), n = c("div"), i = c("p"), y = V(l), m = S(), _ = c("div");
      for (let u = 0; u < N.length; u += 1)
        N[u].c();
      F = S(), T = c("div"), x = c("div"), w = c("div"), I = c("label"), G = V(D), R = S(), M = c("vaadin-date-picker"), j = S(), L = c("div"), re = c("label"), g = V(b), d = S(), k = c("vaadin-date-picker"), We = S(), pe = c("button"), xe = V(ee), Ee = S(), ye = c("table"), ie = c("div"), ue = c("thead");
      for (let u = 0; u < O.length; u += 1)
        O[u].c();
      Q = S(), U = c("tbody"), se.c(), be = S(), de = c("div"), Z = c("div"), ge = c("button"), te = E("svg"), Ge = E("path"), Ne = S(), Ce = c("div"), je = c("p"), Oe = V(
        /*pageNumber*/
        r[9]
      ), Ze = S(), _e = c("button"), we = E("svg"), oe = E("path"), Qe = S(), ze = c("div"), ne = c("button"), fe = c("div"), Ve = c("p"), qe = V(
        /*pageSize*/
        r[8]
      ), Ke = S(), Y = E("svg"), Le = E("path"), Je = S(), ve = c("div");
      for (let u = 0; u < q.length; u += 1)
        q[u].c();
      s(n, "class", "headerText " + /*isMobile*/
      (r[20] ? "headerTextNone" : "")), s(_, "class", "headerController"), s(a, "class", "historyHeader"), s(I, "for", "historyCalendarStartDate"), he(
        M,
        "max",
        /*formattedMaxDate*/
        r[4]
      ), he(
        M,
        "value",
        /*historyCalendarStartDate*/
        r[5]
      ), he(M, "placeholder", "From"), he(M, "class", "VaadinDatePicker"), s(w, "class", "historyCalendarStartDate"), s(re, "for", "historyCalendarEndDate"), he(
        k,
        "max",
        /*formattedMaxDate*/
        r[4]
      ), he(
        k,
        "value",
        /*historyCalendarEndDate*/
        r[6]
      ), he(k, "placeholder", "To"), he(k, "class", "VaadinDatePicker"), s(L, "class", "historyCalendarEndDate"), s(x, "class", "historyCalendarContainer"), s(pe, "class", ae = "historyCalendarFilter " + (/*buttonStatus*/
      r[18].filterButton ? "" : "disable")), s(T, "class", "historyFilter"), s(ue, "class", "tableHead"), s(U, "class", "tableContent"), s(ie, "class", X = `tableWrapper ${/*activeType*/
      r[7].replace("$", "")} ${/*isMobile*/
      r[20] ? "tableWrapperMobile" : ""}`), s(ye, "class", "historyTable"), s(Ge, "d", "M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"), s(te, "viewBox", "1 4 17 17"), s(te, "xmlns", "http://www.w3.org/2000/svg"), s(ge, "class", Me = "arrowLeft " + (/*buttonStatus*/
      r[18].previousPage ? "" : "disable")), s(Ce, "class", He = "indexDisplay " + (!/*buttonStatus*/
      r[18].previousPage && !/*buttonStatus*/
      r[18].nextPage ? "disable" : "")), s(oe, "d", "M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"), s(we, "viewBox", "6 4 17 17"), s(we, "xmlns", "http://www.w3.org/2000/svg"), s(_e, "class", W = "arrowRight " + (/*buttonStatus*/
      r[18].nextPage ? "" : "disable")), s(Z, "class", "historyPageIndex"), s(Le, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), s(Y, "xmlns", "http://www.w3.org/2000/svg"), s(Y, "viewBox", "6 5 20 20"), s(Y, "class", "icon"), s(fe, "class", "currentPageSize"), s(ve, "class", "pageSizeDropDown"), s(ne, "class", Be = "pageSizeSelector " + /*isPaginationToggled*/
      (r[11] ? "active" : "") + " " + (/*buttonStatus*/
      r[18].pageSize ? "" : "disable")), s(ze, "class", "historyPageSize"), s(de, "class", "historyPaginationContainer"), s(t, "class", "historyWrapper " + /*isMobile*/
      (r[20] ? "historyMobileWrapper" : "")), s(e, "class", "historyContainer");
    },
    m(u, z) {
      A(u, e, z), h(e, t), h(t, a), me && me.m(a, null), h(a, o), h(a, n), h(n, i), h(i, y), h(a, m), h(a, _);
      for (let f = 0; f < N.length; f += 1)
        N[f] && N[f].m(_, null);
      h(t, F), h(t, T), h(T, x), h(x, w), h(w, I), h(I, G), h(w, R), h(w, M), r[57](M), h(x, j), h(x, L), h(L, re), h(re, g), h(L, d), h(L, k), r[58](k), h(T, We), h(T, pe), h(pe, xe), h(t, Ee), h(t, ye), h(ye, ie), h(ie, ue);
      for (let f = 0; f < O.length; f += 1)
        O[f] && O[f].m(ue, null);
      h(ie, Q), h(ie, U), se.m(U, null), r[62](ye), h(t, be), h(t, de), h(de, Z), h(Z, ge), h(ge, te), h(te, Ge), h(Z, Ne), h(Z, Ce), h(Ce, je), h(je, Oe), h(Z, Ze), h(Z, _e), h(_e, we), h(we, oe), h(de, Qe), h(de, ze), h(ze, ne), h(ne, fe), h(fe, Ve), h(Ve, qe), h(fe, Ke), h(fe, Y), h(Y, Le), h(ne, Je), h(ne, ve);
      for (let f = 0; f < q.length; f += 1)
        q[f] && q[f].m(ve, null);
      Ae || (Xe = [
        De(
          pe,
          "click",
          /*click_handler_2*/
          r[59]
        ),
        De(
          ge,
          "click",
          /*click_handler_4*/
          r[63]
        ),
        De(
          _e,
          "click",
          /*click_handler_5*/
          r[64]
        ),
        De(
          ne,
          "click",
          /*click_handler_7*/
          r[66]
        )
      ], Ae = !0);
    },
    p(u, z) {
      if (
        /*isMobile*/
        u[20] && me.p(u, z), z[0] & /*$_*/
        524288 && l !== (l = /*$_*/
        u[19]("headerTitle") + "") && J(y, l), z[0] & /*transactionTypes, changeActiveHistory, $_*/
        1074298880
      ) {
        ke = H(
          /*transactionTypes*/
          u[15]
        );
        let f;
        for (f = 0; f < ke.length; f += 1) {
          const ce = vt(u, ke, f);
          N[f] ? N[f].p(ce, z) : (N[f] = kt(ce), N[f].c(), N[f].m(_, null));
        }
        for (; f < N.length; f += 1)
          N[f].d(1);
        N.length = ke.length;
      }
      if (z[0] & /*$_*/
      524288 && D !== (D = /*$_*/
      u[19]("dateFrom") + "") && J(G, D), z[0] & /*formattedMaxDate*/
      16 && he(
        M,
        "max",
        /*formattedMaxDate*/
        u[4]
      ), z[0] & /*historyCalendarStartDate*/
      32 && he(
        M,
        "value",
        /*historyCalendarStartDate*/
        u[5]
      ), z[0] & /*$_*/
      524288 && b !== (b = /*$_*/
      u[19]("dateTo") + "") && J(g, b), z[0] & /*formattedMaxDate*/
      16 && he(
        k,
        "max",
        /*formattedMaxDate*/
        u[4]
      ), z[0] & /*historyCalendarEndDate*/
      64 && he(
        k,
        "value",
        /*historyCalendarEndDate*/
        u[6]
      ), z[0] & /*$_*/
      524288 && ee !== (ee = /*$_*/
      u[19]("dateFilter") + "") && J(xe, ee), z[0] & /*buttonStatus*/
      262144 && ae !== (ae = "historyCalendarFilter " + (/*buttonStatus*/
      u[18].filterButton ? "" : "disable")) && s(pe, "class", ae), z[0] & /*$_, tableColumns, activeType, hideColumns*/
      136839296) {
        Se = H(
          /*tableColumns*/
          u[21][
            /*activeType*/
            u[7]
          ]
        );
        let f;
        for (f = 0; f < Se.length; f += 1) {
          const ce = wt(u, Se, f);
          O[f] ? O[f].p(ce, z) : (O[f] = Tt(ce), O[f].c(), O[f].m(ue, null));
        }
        for (; f < O.length; f += 1)
          O[f].d(1);
        O.length = Se.length;
      }
      if (Fe === (Fe = Ye(u)) && se ? se.p(u, z) : (se.d(1), se = Fe(u), se && (se.c(), se.m(U, null))), z[0] & /*activeType*/
      128 && X !== (X = `tableWrapper ${/*activeType*/
      u[7].replace("$", "")} ${/*isMobile*/
      u[20] ? "tableWrapperMobile" : ""}`) && s(ie, "class", X), z[0] & /*buttonStatus*/
      262144 && Me !== (Me = "arrowLeft " + (/*buttonStatus*/
      u[18].previousPage ? "" : "disable")) && s(ge, "class", Me), z[0] & /*pageNumber*/
      512 && J(
        Oe,
        /*pageNumber*/
        u[9]
      ), z[0] & /*buttonStatus*/
      262144 && He !== (He = "indexDisplay " + (!/*buttonStatus*/
      u[18].previousPage && !/*buttonStatus*/
      u[18].nextPage ? "disable" : "")) && s(Ce, "class", He), z[0] & /*buttonStatus*/
      262144 && W !== (W = "arrowRight " + (/*buttonStatus*/
      u[18].nextPage ? "" : "disable")) && s(_e, "class", W), z[0] & /*pageSize*/
      256 && J(
        qe,
        /*pageSize*/
        u[8]
      ), z[0] & /*pageSizeOptions*/
      536870912 | z[1] & /*changePageSize*/
      4) {
        Te = H(
          /*pageSizeOptions*/
          u[29]
        );
        let f;
        for (f = 0; f < Te.length; f += 1) {
          const ce = yt(u, Te, f);
          q[f] ? q[f].p(ce, z) : (q[f] = At(ce), q[f].c(), q[f].m(ve, null));
        }
        for (; f < q.length; f += 1)
          q[f].d(1);
        q.length = Te.length;
      }
      z[0] & /*isPaginationToggled, buttonStatus*/
      264192 && Be !== (Be = "pageSizeSelector " + /*isPaginationToggled*/
      (u[11] ? "active" : "") + " " + (/*buttonStatus*/
      u[18].pageSize ? "" : "disable")) && s(ne, "class", Be);
    },
    d(u) {
      u && B(e), me && me.d(), $(N, u), r[57](null), r[58](null), $(O, u), se.d(), r[62](null), $(q, u), Ae = !1, sr(Xe);
    }
  };
}
function vr(r) {
  let e, t, a, o, n, i, l, y, m, _, F, T, x, w;
  function I(g, d) {
    return (
      /*isMobile*/
      g[20] ? Fr : Ar
    );
  }
  let G = I(r)(r), R = H({ length: 3 }), M = [];
  for (let g = 0; g < R.length; g += 1)
    M[g] = Ir(_r(r, R, g));
  let j = H({ length: 6 }), L = [];
  for (let g = 0; g < j.length; g += 1)
    L[g] = Rr(Cr(r, j, g));
  let re = H({ length: 5 }), b = [];
  for (let g = 0; g < re.length; g += 1)
    b[g] = Hr(fr(r, re, g));
  return {
    c() {
      e = c("div"), t = c("div"), a = c("div"), G.c(), o = S(), n = c("div");
      for (let g = 0; g < M.length; g += 1)
        M[g].c();
      i = S(), l = c("div"), l.innerHTML = '<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>', y = S(), m = c("table"), _ = c("thead");
      for (let g = 0; g < L.length; g += 1)
        L[g].c();
      F = S(), T = c("tbody");
      for (let g = 0; g < b.length; g += 1)
        b[g].c();
      x = S(), w = c("div"), w.innerHTML = '<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>', s(n, "class", "headerController skeleton"), s(a, "class", "historyHeader"), s(l, "class", "historyFilter skeleton"), s(_, "class", "tableHead"), s(T, "class", "tableContent"), s(m, "class", "historyTable skeleton"), s(w, "class", "historyPaginationContainer skeleton"), s(t, "class", "historyWrapper " + /*isMobile*/
      (r[20] ? "historyMobileWrapper" : "")), s(e, "class", "historyContainer");
    },
    m(g, d) {
      A(g, e, d), h(e, t), h(t, a), G.m(a, null), h(a, o), h(a, n);
      for (let k = 0; k < M.length; k += 1)
        M[k] && M[k].m(n, null);
      h(t, i), h(t, l), h(t, y), h(t, m), h(m, _);
      for (let k = 0; k < L.length; k += 1)
        L[k] && L[k].m(_, null);
      h(m, F), h(m, T);
      for (let k = 0; k < b.length; k += 1)
        b[k] && b[k].m(T, null);
      h(t, x), h(t, w);
    },
    p: Re,
    d(g) {
      g && B(e), G.d(), $(M, g), $(L, g), $(b, g);
    }
  };
}
function kr(r) {
  let e, t, a, o, n, i, l, y, m, _, F = (
    /*$_*/
    r[19]("headerTitle") + ""
  ), T, x, w;
  return {
    c() {
      e = c("button"), t = E("svg"), a = E("defs"), o = E("style"), n = V(`.pathstyle {
                    fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
                  }
                `), i = E("g"), l = E("g"), y = E("path"), m = S(), _ = c("h2"), T = V(F), s(y, "class", "pathstyle"), s(y, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(y, "transform", "translate(15 15) rotate(180)"), s(l, "transform", "translate(20 158)"), s(i, "transform", "translate(-20 -158)"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(t, "width", "15"), s(t, "height", "15"), s(t, "viewBox", "0 0 15 15"), s(_, "class", "historyReturnText"), s(e, "class", "historyReturnButton");
    },
    m(I, D) {
      A(I, e, D), h(e, t), h(t, a), h(a, o), h(o, n), h(t, i), h(i, l), h(l, y), h(e, m), h(e, _), h(_, T), x || (w = De(
        e,
        "click",
        /*click_handler*/
        r[55]
      ), x = !0);
    },
    p(I, D) {
      D[0] & /*$_*/
      524288 && F !== (F = /*$_*/
      I[19]("headerTitle") + "") && J(T, F);
    },
    d(I) {
      I && B(e), x = !1, w();
    }
  };
}
function kt(r) {
  let e, t, a, o, n = (
    /*$_*/
    r[19](
      /*el*/
      r[122].type
    ) + ""
  ), i, l, y, m, _;
  function F() {
    return (
      /*click_handler_1*/
      r[56](
        /*index*/
        r[104]
      )
    );
  }
  return {
    c() {
      e = c("button"), t = c("div"), t.innerHTML = '<input type="checkbox"/> <span class="circle"></span>', a = S(), o = c("p"), i = V(n), l = S(), s(t, "class", "toggleCheckbox"), s(o, "class", "label"), s(e, "class", y = "toggleContent " + /*el*/
      (r[122].checked ? "checked" : ""));
    },
    m(T, x) {
      A(T, e, x), h(e, t), h(e, a), h(e, o), h(o, i), h(e, l), m || (_ = De(e, "click", F), m = !0);
    },
    p(T, x) {
      r = T, x[0] & /*$_, transactionTypes*/
      557056 && n !== (n = /*$_*/
      r[19](
        /*el*/
        r[122].type
      ) + "") && J(i, n), x[0] & /*transactionTypes*/
      32768 && y !== (y = "toggleContent " + /*el*/
      (r[122].checked ? "checked" : "")) && s(e, "class", y);
    },
    d(T) {
      T && B(e), m = !1, _();
    }
  };
}
function St(r) {
  let e, t = (
    /*$_*/
    (r[19](
      /*column*/
      r[112]
    ) || /*column*/
    r[112]) + ""
  ), a, o;
  return {
    c() {
      e = c("span"), a = V(t), o = S();
    },
    m(n, i) {
      A(n, e, i), h(e, a), h(e, o);
    },
    p(n, i) {
      i[0] & /*$_, activeType*/
      524416 && t !== (t = /*$_*/
      (n[19](
        /*column*/
        n[112]
      ) || /*column*/
      n[112]) + "") && J(a, t);
    },
    d(n) {
      n && B(e);
    }
  };
}
function Tt(r) {
  let e = !/*hideColumns*/
  r[27].includes(
    /*column*/
    r[112].replace(/\s/g, "").toLowerCase()
  ), t, a = e && St(r);
  return {
    c() {
      a && a.c(), t = tt();
    },
    m(o, n) {
      a && a.m(o, n), A(o, t, n);
    },
    p(o, n) {
      n[0] & /*activeType*/
      128 && (e = !/*hideColumns*/
      o[27].includes(
        /*column*/
        o[112].replace(/\s/g, "").toLowerCase()
      )), e ? a ? a.p(o, n) : (a = St(o), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null);
    },
    d(o) {
      o && B(t), a && a.d(o);
    }
  };
}
function Sr(r) {
  let e, t;
  return {
    c() {
      e = c("div"), t = V(
        /*errorMessage*/
        r[3]
      ), s(e, "class", "tableRow");
    },
    m(a, o) {
      A(a, e, o), h(e, t);
    },
    p(a, o) {
      o[0] & /*errorMessage*/
      8 && J(
        t,
        /*errorMessage*/
        a[3]
      );
    },
    d(a) {
      a && B(e);
    }
  };
}
function Tr(r) {
  let e, t = H(
    /*historyData*/
    r[16][
      /*activeType*/
      r[7]
    ]
  ), a = [];
  for (let o = 0; o < t.length; o += 1)
    a[o] = Bt(ut(r, t, o));
  return {
    c() {
      for (let o = 0; o < a.length; o += 1)
        a[o].c();
      e = tt();
    },
    m(o, n) {
      for (let i = 0; i < a.length; i += 1)
        a[i] && a[i].m(o, n);
      A(o, e, n);
    },
    p(o, n) {
      if (n[0] & /*activeSubmenus, submenuRefs, mobileSportsRemainingKeys, mobileLabels, historyData, activeType, mobileSportsKeys, mobileRepeatingKeys, tableBody, hideValues*/
      398672e3 | n[1] & /*getSubmenuRowsCount, toggleSubmenu*/
      48) {
        t = H(
          /*historyData*/
          o[16][
            /*activeType*/
            o[7]
          ]
        );
        let i;
        for (i = 0; i < t.length; i += 1) {
          const l = ut(o, t, i);
          a[i] ? a[i].p(l, n) : (a[i] = Bt(l), a[i].c(), a[i].m(e.parentNode, e));
        }
        for (; i < a.length; i += 1)
          a[i].d(1);
        a.length = t.length;
      }
    },
    d(o) {
      o && B(e), $(a, o);
    }
  };
}
function Pr(r) {
  let e, t = (
    /*row*/
    (r[102][
      /*column*/
      r[112]
    ] || "-") + ""
  ), a, o, n;
  return {
    c() {
      var i;
      e = c("span"), a = V(t), o = S(), s(e, "data-label", n = /*mobileLabels*/
      ((i = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : i[
        /*column*/
        r[112].replace(/\s/g, "")
      ]) || /*column*/
      r[112]);
    },
    m(i, l) {
      A(i, e, l), h(e, a), h(e, o);
    },
    p(i, l) {
      var y;
      l[0] & /*historyData, activeType*/
      65664 && t !== (t = /*row*/
      (i[102][
        /*column*/
        i[112]
      ] || "-") + "") && J(a, t), l[0] & /*activeType*/
      128 && n !== (n = /*mobileLabels*/
      ((y = i[23][
        /*activeType*/
        i[7]
      ]) == null ? void 0 : y[
        /*column*/
        i[112].replace(/\s/g, "")
      ]) || /*column*/
      i[112]) && s(e, "data-label", n);
    },
    d(i) {
      i && B(e);
    }
  };
}
function Dr(r) {
  let e, t = (
    /*row*/
    (r[102][
      /*column*/
      r[112]
    ].submenu[0] || "-") + ""
  ), a, o, n;
  return {
    c() {
      var i;
      e = c("span"), a = V(t), o = S(), s(e, "data-label", n = /*mobileLabels*/
      ((i = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : i[
        /*column*/
        r[112].replace(/\s/g, "")
      ]) || /*column*/
      r[112]);
    },
    m(i, l) {
      A(i, e, l), h(e, a), h(e, o);
    },
    p(i, l) {
      var y;
      l[0] & /*historyData, activeType*/
      65664 && t !== (t = /*row*/
      (i[102][
        /*column*/
        i[112]
      ].submenu[0] || "-") + "") && J(a, t), l[0] & /*activeType*/
      128 && n !== (n = /*mobileLabels*/
      ((y = i[23][
        /*activeType*/
        i[7]
      ]) == null ? void 0 : y[
        /*column*/
        i[112].replace(/\s/g, "")
      ]) || /*column*/
      i[112]) && s(e, "data-label", n);
    },
    d(i) {
      i && B(e);
    }
  };
}
function Wr(r) {
  let e, t, a, o, n, i, l = (
    /*row*/
    r[102][
      /*column*/
      r[112]
    ].label + ""
  ), y, m, _, F, T;
  function x() {
    return (
      /*click_handler_3*/
      r[60](
        /*index*/
        r[104]
      )
    );
  }
  return {
    c() {
      var w;
      e = c("button"), t = E("svg"), a = E("path"), n = S(), i = c("span"), y = V(l), m = S(), s(a, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(t, "viewBox", "6 5 20 20"), s(t, "class", o = "iconToggleSubMenu " + /*activeSubmenus*/
      (r[17][
        /*index*/
        r[104]
      ] ? "active" : "")), s(e, "class", "toggleSubMenu"), s(e, "data-label", _ = /*mobileLabels*/
      ((w = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : w[
        /*column*/
        r[112].replace(/\s/g, "")
      ]) || /*column*/
      r[112]);
    },
    m(w, I) {
      A(w, e, I), h(e, t), h(t, a), h(e, n), h(e, i), h(i, y), h(e, m), F || (T = De(e, "click", x), F = !0);
    },
    p(w, I) {
      var D;
      r = w, I[0] & /*activeSubmenus*/
      131072 && o !== (o = "iconToggleSubMenu " + /*activeSubmenus*/
      (r[17][
        /*index*/
        r[104]
      ] ? "active" : "")) && s(t, "class", o), I[0] & /*historyData, activeType*/
      65664 && l !== (l = /*row*/
      r[102][
        /*column*/
        r[112]
      ].label + "") && J(y, l), I[0] & /*activeType*/
      128 && _ !== (_ = /*mobileLabels*/
      ((D = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : D[
        /*column*/
        r[112].replace(/\s/g, "")
      ]) || /*column*/
      r[112]) && s(e, "data-label", _);
    },
    d(w) {
      w && B(e), F = !1, T();
    }
  };
}
function xr(r) {
  let e, t, a, o, n;
  return {
    c() {
      var i;
      e = c("span"), t = E("svg"), a = E("path"), o = S(), s(a, "d", "M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z"), s(a, "stroke", "#000000"), s(a, "stroke-width", "2"), s(a, "stroke-linecap", "round"), s(a, "stroke-linejoin", "round"), s(t, "viewBox", "-3 -4 30 30"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(e, "class", "decline"), s(e, "data-label", n = /*mobileLabels*/
      ((i = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : i[
        /*column*/
        r[112].replace(/\s/g, "")
      ]) || /*column*/
      r[112]);
    },
    m(i, l) {
      A(i, e, l), h(e, t), h(t, a), h(e, o);
    },
    p(i, l) {
      var y;
      l[0] & /*activeType*/
      128 && n !== (n = /*mobileLabels*/
      ((y = i[23][
        /*activeType*/
        i[7]
      ]) == null ? void 0 : y[
        /*column*/
        i[112].replace(/\s/g, "")
      ]) || /*column*/
      i[112]) && s(e, "data-label", n);
    },
    d(i) {
      i && B(e);
    }
  };
}
function Mr(r) {
  let e, t, a, o, n, i;
  return {
    c() {
      var l;
      e = c("span"), t = E("svg"), a = E("path"), o = E("path"), n = S(), s(a, "fill-rule", "evenodd"), s(a, "clip-rule", "evenodd"), s(a, "d", "M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z"), s(a, "stroke", "#000000"), s(a, "stroke-width", "1.5"), s(a, "stroke-linecap", "round"), s(a, "stroke-linejoin", "round"), s(o, "d", "M9 12.0002L11.333 14.3332L16 9.66724"), s(o, "stroke-width", "1.5"), s(o, "stroke-linecap", "round"), s(o, "stroke-linejoin", "round"), s(t, "viewBox", "0 0 24 24"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(e, "class", "approved"), s(e, "data-label", i = /*mobileLabels*/
      ((l = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : l[
        /*column*/
        r[112].replace(/\s/g, "").toLowerCase()
      ]) || /*column*/
      r[112]);
    },
    m(l, y) {
      A(l, e, y), h(e, t), h(t, a), h(t, o), h(e, n);
    },
    p(l, y) {
      var m;
      y[0] & /*activeType*/
      128 && i !== (i = /*mobileLabels*/
      ((m = l[23][
        /*activeType*/
        l[7]
      ]) == null ? void 0 : m[
        /*column*/
        l[112].replace(/\s/g, "").toLowerCase()
      ]) || /*column*/
      l[112]) && s(e, "data-label", i);
    },
    d(l) {
      l && B(e);
    }
  };
}
function Pt(r) {
  let e, t;
  function a(i, l) {
    var y, m, _;
    if (l[0] & /*activeType*/
    128 && (e = null), /*row*/
    i[102][
      /*column*/
      i[112]
    ] === !0)
      return Mr;
    if (
      /*row*/
      i[102][
        /*column*/
        i[112]
      ] === !1
    )
      return xr;
    if (
      /*row*/
      (y = i[102][
        /*column*/
        i[112]
      ]) != null && y.label && /*row*/
      ((m = i[102][
        /*column*/
        i[112]
      ]) == null ? void 0 : m.submenu.length) > 1
    )
      return Wr;
    if (
      /*row*/
      (_ = i[102][
        /*column*/
        i[112]
      ]) != null && _.submenu
    )
      return Dr;
    if (e == null && (e = !/*hideValues*/
    i[28].includes(
      /*column*/
      i[112].toLowerCase()
    )), e)
      return Pr;
  }
  let o = a(r, [-1, -1, -1, -1]), n = o && o(r);
  return {
    c() {
      n && n.c(), t = tt();
    },
    m(i, l) {
      n && n.m(i, l), A(i, t, l);
    },
    p(i, l) {
      o === (o = a(i, l)) && n ? n.p(i, l) : (n && n.d(1), n = o && o(i), n && (n.c(), n.m(t.parentNode, t)));
    },
    d(i) {
      i && B(t), n && n.d(i);
    }
  };
}
function zr(r) {
  let e, t, a, o, n;
  return {
    c() {
      var i;
      e = c("div"), t = c("span"), a = V("-"), n = S(), s(t, "data-label", o = /*mobileLabels*/
      ((i = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : i[
        /*column*/
        r[112].replace(/\s/g, "").toLowerCase()
      ]) || /*column*/
      r[112]), s(t, "class", "label"), s(e, "class", "tableData");
    },
    m(i, l) {
      A(i, e, l), h(e, t), h(t, a), h(e, n);
    },
    p(i, l) {
      var y;
      l[0] & /*activeType*/
      128 && o !== (o = /*mobileLabels*/
      ((y = i[23][
        /*activeType*/
        i[7]
      ]) == null ? void 0 : y[
        /*column*/
        i[112].replace(/\s/g, "").toLowerCase()
      ]) || /*column*/
      i[112]) && s(t, "data-label", o);
    },
    d(i) {
      i && B(e);
    }
  };
}
function Br(r) {
  let e, t, a = H(
    /*row*/
    r[102][
      /*column*/
      r[112]
    ].submenu
  ), o = [];
  for (let n = 0; n < a.length; n += 1)
    o[n] = Dt(Ct(r, a, n));
  return {
    c() {
      e = c("div");
      for (let n = 0; n < o.length; n += 1)
        o[n].c();
      t = S(), s(e, "class", "tableData");
    },
    m(n, i) {
      A(n, e, i);
      for (let l = 0; l < o.length; l += 1)
        o[l] && o[l].m(e, null);
      h(e, t);
    },
    p(n, i) {
      if (i[0] & /*mobileLabels, activeType, tableBody, historyData*/
      12648576) {
        a = H(
          /*row*/
          n[102][
            /*column*/
            n[112]
          ].submenu
        );
        let l;
        for (l = 0; l < a.length; l += 1) {
          const y = Ct(n, a, l);
          o[l] ? o[l].p(y, i) : (o[l] = Dt(y), o[l].c(), o[l].m(e, t));
        }
        for (; l < o.length; l += 1)
          o[l].d(1);
        o.length = a.length;
      }
    },
    d(n) {
      n && B(e), $(o, n);
    }
  };
}
function Dt(r) {
  let e, t = (
    /*submenu*/
    (r[115] || "-") + ""
  ), a, o;
  return {
    c() {
      var n;
      e = c("span"), a = V(t), s(e, "data-label", o = /*mobileLabels*/
      ((n = r[23][
        /*activeType*/
        r[7]
      ]) == null ? void 0 : n[
        /*column*/
        r[112].replace(/\s/g, "").toLowerCase()
      ]) || /*column*/
      r[112]), s(e, "class", "label");
    },
    m(n, i) {
      A(n, e, i), h(e, a);
    },
    p(n, i) {
      var l;
      i[0] & /*historyData, activeType*/
      65664 && t !== (t = /*submenu*/
      (n[115] || "-") + "") && J(a, t), i[0] & /*activeType*/
      128 && o !== (o = /*mobileLabels*/
      ((l = n[23][
        /*activeType*/
        n[7]
      ]) == null ? void 0 : l[
        /*column*/
        n[112].replace(/\s/g, "").toLowerCase()
      ]) || /*column*/
      n[112]) && s(e, "data-label", o);
    },
    d(n) {
      n && B(e);
    }
  };
}
function Wt(r) {
  let e;
  function t(n, i) {
    var l;
    return (
      /*row*/
      (l = n[102][
        /*column*/
        n[112]
      ]) != null && l.submenu ? Br : zr
    );
  }
  let a = t(r), o = a(r);
  return {
    c() {
      o.c(), e = tt();
    },
    m(n, i) {
      o.m(n, i), A(n, e, i);
    },
    p(n, i) {
      a === (a = t(n)) && o ? o.p(n, i) : (o.d(1), o = a(n), o && (o.c(), o.m(e.parentNode, e)));
    },
    d(n) {
      n && B(e), o.d(n);
    }
  };
}
function xt(r) {
  var n, i;
  let e, t, a = (
    /*row*/
    (((i = (n = r[102][
      /*columnKey*/
      r[105]
    ]) == null ? void 0 : n.submenu) == null ? void 0 : i[
      /*rowIndex*/
      r[109]
    ]) || "-") + ""
  ), o;
  return {
    c() {
      var l;
      e = c("div"), t = c("span"), o = V(a), s(
        t,
        "data-label",
        /*mobileLabels*/
        (l = r[23].sports) == null ? void 0 : l[
          /*columnKey*/
          r[105]
        ]
      ), s(t, "class", "label"), s(e, "class", "tableData");
    },
    m(l, y) {
      A(l, e, y), h(e, t), h(t, o);
    },
    p(l, y) {
      var m, _;
      y[0] & /*historyData, activeType*/
      65664 && a !== (a = /*row*/
      (((_ = (m = l[102][
        /*columnKey*/
        l[105]
      ]) == null ? void 0 : m.submenu) == null ? void 0 : _[
        /*rowIndex*/
        l[109]
      ]) || "-") + "") && J(o, a);
    },
    d(l) {
      l && B(e);
    }
  };
}
function Mt(r) {
  let e, t = H(
    /*mobileRepeatingKeys*/
    r[24]
  ), a = [];
  for (let o = 0; o < t.length; o += 1)
    a[o] = xt(ft(r, t, o));
  return {
    c() {
      e = c("div");
      for (let o = 0; o < a.length; o += 1)
        a[o].c();
      s(e, "class", "submenuRow");
    },
    m(o, n) {
      A(o, e, n);
      for (let i = 0; i < a.length; i += 1)
        a[i] && a[i].m(e, null);
    },
    p(o, n) {
      if (n[0] & /*mobileLabels, mobileRepeatingKeys, historyData, activeType*/
      25231488) {
        t = H(
          /*mobileRepeatingKeys*/
          o[24]
        );
        let i;
        for (i = 0; i < t.length; i += 1) {
          const l = ft(o, t, i);
          a[i] ? a[i].p(l, n) : (a[i] = xt(l), a[i].c(), a[i].m(e, null));
        }
        for (; i < a.length; i += 1)
          a[i].d(1);
        a.length = t.length;
      }
    },
    d(o) {
      o && B(e), $(a, o);
    }
  };
}
function zt(r) {
  var l, y;
  let e, t, a, o = (
    /*row*/
    (((y = (l = r[102][
      /*columnKey*/
      r[105]
    ]) == null ? void 0 : l.submenu) == null ? void 0 : y[0]) || "-") + ""
  ), n, i;
  return {
    c() {
      var m;
      e = c("div"), t = c("div"), a = c("span"), n = V(o), i = S(), s(
        a,
        "data-label",
        /*mobileLabels*/
        (m = r[23].sports) == null ? void 0 : m[
          /*columnKey*/
          r[105]
        ]
      ), s(a, "class", "label"), s(t, "class", "tableData"), s(e, "class", "submenuRow");
    },
    m(m, _) {
      A(m, e, _), h(e, t), h(t, a), h(a, n), h(e, i);
    },
    p(m, _) {
      var F, T;
      _[0] & /*historyData, activeType*/
      65664 && o !== (o = /*row*/
      (((T = (F = m[102][
        /*columnKey*/
        m[105]
      ]) == null ? void 0 : F.submenu) == null ? void 0 : T[0]) || "-") + "") && J(n, o);
    },
    d(m) {
      m && B(e);
    }
  };
}
function Bt(r) {
  let e, t, a, o, n, i, l, y, m, _, F = (
    /*index*/
    r[104]
  ), T, x = H(
    /*tableBody*/
    r[22][
      /*activeType*/
      r[7]
    ]
  ), w = [];
  for (let b = 0; b < x.length; b += 1)
    w[b] = Pt(_t(r, x, b));
  let I = H(
    /*tableBody*/
    r[22][
      /*activeType*/
      r[7]
    ]
  ), D = [];
  for (let b = 0; b < I.length; b += 1)
    D[b] = Wt(mt(r, I, b));
  let G = H(
    /*getSubmenuRowsCount*/
    r[36](
      /*row*/
      r[102],
      /*mobileSportsKeys*/
      r[25]
    )
  ), R = [];
  for (let b = 0; b < G.length; b += 1)
    R[b] = Mt(gt(r, G, b));
  let M = H(
    /*mobileSportsRemainingKeys*/
    r[26]
  ), j = [];
  for (let b = 0; b < M.length; b += 1)
    j[b] = zt(bt(r, M, b));
  const L = () => (
    /*div4_binding*/
    r[61](o, F)
  ), re = () => (
    /*div4_binding*/
    r[61](null, F)
  );
  return {
    c() {
      e = c("div"), t = c("div");
      for (let b = 0; b < w.length; b += 1)
        w[b].c();
      a = S(), o = c("div"), n = c("div");
      for (let b = 0; b < D.length; b += 1)
        D[b].c();
      i = S(), l = c("div");
      for (let b = 0; b < R.length; b += 1)
        R[b].c();
      y = S(), m = c("div");
      for (let b = 0; b < j.length; b += 1)
        j[b].c();
      T = S(), s(t, "class", "tableData"), s(n, "class", "desktopSubmenu"), s(m, "class", "remainingRows"), s(l, "class", "allSubmenuRows"), s(o, "class", _ = "tableSubMenu " + /*activeSubmenus*/
      (r[17][
        /*index*/
        r[104]
      ] ? "active" : "")), s(e, "class", "tableRow");
    },
    m(b, g) {
      A(b, e, g), h(e, t);
      for (let d = 0; d < w.length; d += 1)
        w[d] && w[d].m(t, null);
      h(e, a), h(e, o), h(o, n);
      for (let d = 0; d < D.length; d += 1)
        D[d] && D[d].m(n, null);
      h(o, i), h(o, l);
      for (let d = 0; d < R.length; d += 1)
        R[d] && R[d].m(l, null);
      h(l, y), h(l, m);
      for (let d = 0; d < j.length; d += 1)
        j[d] && j[d].m(m, null);
      L(), h(e, T);
    },
    p(b, g) {
      if (r = b, g[0] & /*mobileLabels, activeType, tableBody, historyData, activeSubmenus, hideValues*/
      281215104 | g[1] & /*toggleSubmenu*/
      16) {
        x = H(
          /*tableBody*/
          r[22][
            /*activeType*/
            r[7]
          ]
        );
        let d;
        for (d = 0; d < x.length; d += 1) {
          const k = _t(r, x, d);
          w[d] ? w[d].p(k, g) : (w[d] = Pt(k), w[d].c(), w[d].m(t, null));
        }
        for (; d < w.length; d += 1)
          w[d].d(1);
        w.length = x.length;
      }
      if (g[0] & /*historyData, activeType, tableBody, mobileLabels*/
      12648576) {
        I = H(
          /*tableBody*/
          r[22][
            /*activeType*/
            r[7]
          ]
        );
        let d;
        for (d = 0; d < I.length; d += 1) {
          const k = mt(r, I, d);
          D[d] ? D[d].p(k, g) : (D[d] = Wt(k), D[d].c(), D[d].m(n, null));
        }
        for (; d < D.length; d += 1)
          D[d].d(1);
        D.length = I.length;
      }
      if (g[0] & /*mobileRepeatingKeys, mobileLabels, historyData, activeType*/
      25231488) {
        G = H(
          /*getSubmenuRowsCount*/
          r[36](
            /*row*/
            r[102],
            /*mobileSportsKeys*/
            r[25]
          )
        );
        let d;
        for (d = 0; d < G.length; d += 1) {
          const k = gt(r, G, d);
          R[d] ? R[d].p(k, g) : (R[d] = Mt(k), R[d].c(), R[d].m(l, y));
        }
        for (; d < R.length; d += 1)
          R[d].d(1);
        R.length = G.length;
      }
      if (g[0] & /*mobileLabels, mobileSportsRemainingKeys, historyData, activeType*/
      75563136) {
        M = H(
          /*mobileSportsRemainingKeys*/
          r[26]
        );
        let d;
        for (d = 0; d < M.length; d += 1) {
          const k = bt(r, M, d);
          j[d] ? j[d].p(k, g) : (j[d] = zt(k), j[d].c(), j[d].m(m, null));
        }
        for (; d < j.length; d += 1)
          j[d].d(1);
        j.length = M.length;
      }
      g[0] & /*activeSubmenus*/
      131072 && _ !== (_ = "tableSubMenu " + /*activeSubmenus*/
      (r[17][
        /*index*/
        r[104]
      ] ? "active" : "")) && s(o, "class", _), F !== /*index*/
      r[104] && (re(), F = /*index*/
      r[104], L());
    },
    d(b) {
      b && B(e), $(w, b), $(D, b), $(R, b), $(j, b), re();
    }
  };
}
function At(r) {
  let e, t, a, o, n;
  function i() {
    return (
      /*click_handler_6*/
      r[65](
        /*size*/
        r[99]
      )
    );
  }
  return {
    c() {
      e = c("button"), t = c("p"), t.textContent = `${/*size*/
      r[99]}`, a = S(), s(e, "class", "dropDownRow");
    },
    m(l, y) {
      A(l, e, y), h(e, t), h(e, a), o || (n = De(e, "click", i), o = !0);
    },
    p(l, y) {
      r = l;
    },
    d(l) {
      l && B(e), o = !1, n();
    }
  };
}
function Ar(r) {
  let e;
  return {
    c() {
      e = c("div"), e.innerHTML = '<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>', s(e, "class", "headerText skeleton");
    },
    m(t, a) {
      A(t, e, a);
    },
    d(t) {
      t && B(e);
    }
  };
}
function Fr(r) {
  let e;
  return {
    c() {
      e = c("button"), e.innerHTML = '<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>', s(e, "class", "historyReturnButton skeleton");
    },
    m(t, a) {
      A(t, e, a);
    },
    d(t) {
      t && B(e);
    }
  };
}
function Ir(r) {
  let e;
  return {
    c() {
      e = c("div"), e.innerHTML = '<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ', s(e, "class", "toggleContent");
    },
    m(t, a) {
      A(t, e, a);
    },
    p: Re,
    d(t) {
      t && B(e);
    }
  };
}
function Rr(r) {
  let e;
  return {
    c() {
      e = c("div"), e.innerHTML = '<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> ';
    },
    m(t, a) {
      A(t, e, a);
    },
    p: Re,
    d(t) {
      t && B(e);
    }
  };
}
function jr(r) {
  let e;
  return {
    c() {
      e = c("div"), e.innerHTML = '<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> ';
    },
    m(t, a) {
      A(t, e, a);
    },
    p: Re,
    d(t) {
      t && B(e);
    }
  };
}
function Hr(r) {
  let e, t, a, o = H({ length: 6 }), n = [];
  for (let i = 0; i < o.length; i += 1)
    n[i] = jr(mr(r, o, i));
  return {
    c() {
      e = c("div"), t = c("div");
      for (let i = 0; i < n.length; i += 1)
        n[i].c();
      a = S(), s(t, "class", "tableData"), s(e, "class", "tableRow");
    },
    m(i, l) {
      A(i, e, l), h(e, t);
      for (let y = 0; y < n.length; y += 1)
        n[y] && n[y].m(t, null);
      h(e, a);
    },
    p: Re,
    d(i) {
      i && B(e), $(n, i);
    }
  };
}
function Lr(r) {
  let e;
  function t(n, i) {
    return (
      /*isLoading*/
      n[10] ? vr : wr
    );
  }
  let a = t(r), o = a(r);
  return {
    c() {
      e = c("div"), o.c();
    },
    m(n, i) {
      A(n, e, i), o.m(e, null), r[67](e);
    },
    p(n, i) {
      a === (a = t(n)) && o ? o.p(n, i) : (o.d(1), o = a(n), o && (o.c(), o.m(e, null)));
    },
    i: Re,
    o: Re,
    d(n) {
      n && B(e), o.d(), r[67](null);
    }
  };
}
function Er(r, e, t) {
  let a;
  ar(r, cr, (p) => t(19, a = p)), et.extend(yr);
  let { endpoint: o = "" } = e, { playerid: n = "" } = e, { session: i = "" } = e, { lang: l = "en" } = e, { clientstyling: y = "" } = e, { clientstylingurl: m = "" } = e, { translationurl: _ = "" } = e, { mbsource: F } = e, { historytypes: T = "Casino, Sports, Payments" } = e, { hidecolumns: x = "" } = e, { hidevalues: w = "" } = e, { pagesizeoptions: I = "10, 20, 30, 50, 100" } = e, { playercurrency: D = "" } = e, { defaultpagesize: G = "5" } = e, { formatamount: R = "{currency}{amount}.{2decimals}" } = e, { customcurrencysymbols: M } = e, { dateformat: j = "DD/MM/YYYY" } = e;
  ur({ withLocale: "en", translations: {} });
  let L = j.toUpperCase(), re = window.navigator.userAgent, b = "", g = "", d = "", k = "", We = "", pe = "", ee = "", xe = Number(G), ae = 1, Ee = ir(re) !== "PC", ye = !0, ie = !1, ue = !1, Q, U, X, be, de = [];
  const Z = [], ge = { EUR: "€", RON: " lei", USD: "$" }, te = { payments: [], casino: [], sports: [] }, Ge = {
    payments: ["Type", "Status", "Amount", "Date", "Transaction ID"],
    casino: [
      "Game Name",
      "Date",
      "Bet Amount",
      "Win Amount",
      "Transaction ID",
      "Play Type",
      "Method"
    ],
    sports: [
      "Stake",
      "Price",
      "Selection",
      "Market",
      "Sport",
      "Date",
      "Description",
      "Bet Type",
      "Free Bet",
      "Win Type",
      "Winnings",
      "Bet Adjustment",
      "Bet ID"
    ]
  }, Me = {
    payments: [
      "paymentType",
      "paymentState",
      "paymentAmount",
      "paymentCreatedOn",
      "withdrawalId"
    ],
    casino: ["game_type_name", "game_finished_on", "stake", "won", "game_id", "play_type"],
    sports: [
      "stake",
      "bet_Part.price",
      "bet_Part.selection_name",
      "bet_Part.market_name",
      "bet_Part.category",
      "bet_settled_on",
      "bet_description",
      "bet_Type",
      "is_Freebet",
      "win_Type",
      "winnings",
      "-",
      "bet_id"
    ]
  }, Ne = {
    payments: {
      paymentType: a("Type"),
      paymentState: a("Status"),
      paymentAmount: a("Amount"),
      paymentCreatedOn: a("Date"),
      withdrawalId: a("Transaction ID")
    },
    casino: {
      game_type_name: a("Game Name"),
      game_finished_on: a("Date"),
      stake: a("Bet Amount"),
      won: a("Win Amount"),
      game_id: a("Transaction ID"),
      play_type: a("Play Type")
    },
    sports: {
      stake: a("Stake"),
      "bet_Part.price": a("Price"),
      "bet_Part.selection_name": a("Selection"),
      "bet_Part.market_name": a("Market"),
      "bet_Part.category": a("Sport"),
      bet_settled_on: a("Date"),
      bet_description: a("Description"),
      bet_Type: a("Bet Type"),
      is_Freebet: a("Free Bet"),
      win_Type: a("Win Type"),
      winnings: a("Winnings"),
      "-": a("Bet Adjustment"),
      bet_id: a("Bet ID")
    }
  }, Ce = [
    "stake",
    "bet_Part.price",
    "bet_Part.selection_name",
    "bet_Part.market_name",
    "bet_Part.category"
  ], je = Object.keys(Ne.sports), Oe = je.filter((p) => !Ce.includes(p)), He = ["stake", "won", "winnings", "bet_Part.price", "paymentAmount"], Ze = ["bet_Part.price"], _e = x.replace(/\s/g, "").split(","), we = w.replace(/\s/g, "").split(","), oe = {}, W = {
    filterButton: !0,
    nextPage: !0,
    previousPage: !0,
    pageSize: !0
  }, Qe = I.split(", ");
  let ze = {}, ne = /* @__PURE__ */ new Date(), fe = new Date(ne);
  fe.setMonth(ne.getMonth() - 1), d = ne.toISOString().split("T")[0], pe = d, k = fe.toISOString().split("T")[0], We = k;
  const Ve = () => {
    fetch(_).then((C) => C.json()).then((C) => {
      Object.keys(C).forEach((v) => {
        dt(v, C[v]);
      });
    }).catch((C) => {
      console.log(C);
    });
  };
  Object.keys(ct).forEach((p) => {
    dt(p, ct[p]);
  });
  const qe = () => {
    T.split(", ").forEach((p, C) => {
      const v = { type: p, checked: C === 0 };
      v.checked && t(7, ee = v.type.toLocaleLowerCase()), Z.push(v);
    });
  }, Ke = (p) => {
    Z.forEach((C, v) => {
      t(15, Z[v].checked = p === v, Z), Z[v].checked && t(7, ee = C.type.toLocaleLowerCase());
    }), Y();
  }, Y = () => {
    if (!W.filterButton)
      return;
    t(10, ye = !0), t(12, ue = !1), t(18, W.filterButton = !1, W), t(18, W.nextPage = !1, W), t(18, W.previousPage = !1, W), t(18, W.pageSize = !1, W);
    let p = new URL(`${o}/v1/player/${n}/fsb/transactions/${ee}`);
    p.searchParams.append("offset", (ae - 1).toString() || "0"), p.searchParams.append("limit", xe.toString() || "5"), p.searchParams.append("startDate", We), p.searchParams.append("endDate", pe);
    let C = {
      method: "GET",
      headers: {
        "X-SessionId": i,
        "Content-Type": "application/json",
        Accept: "application/json"
      }
    };
    fetch(p.href, C).then((v) => se(v)).then((v) => {
      if (v.transactions.length === 0)
        return t(3, g = a("checkPeriod")), Promise.reject(g);
      v.pagination.next && t(18, W.nextPage = !0, W), v.pagination.previous && t(18, W.previousPage = !0, W), t(18, W.pageSize = !0, W), t(16, te[ee] = [], te), t(11, ie = !1), Se(), Xe(v);
    }).catch((v) => {
      t(12, ue = !0), t(18, W.nextPage = !1, W), t(18, W.previousPage = !1, W), t(18, W.pageSize = !1, W), window.postMessage(
        {
          type: "WidgetNotification",
          data: { type: "error", message: v }
        },
        window.location.href
      );
    }).finally(() => {
      t(10, ye = !1), t(18, W.filterButton = !0, W);
    });
  }, Le = (p) => {
    t(5, We = p.target.value);
  }, Je = (p) => {
    t(6, pe = p.target.value);
  }, ve = () => {
    W.pageSize && t(11, ie = !ie);
  }, Be = (p) => {
    t(8, xe = p), t(9, ae = 1), Y();
  }, Ae = (p, C) => {
    if (C === "next") {
      if (!W.nextPage)
        return;
      t(9, ae = p + 1), Y();
    } else {
      if (!W.previousPage)
        return;
      t(9, ae = p - 1), Y();
    }
  }, Xe = (p) => {
    p.transactions.forEach((C, v) => {
      t(16, te[ee][v] = {}, te), Me[ee].forEach((P) => {
        if (!we.includes(P.toLocaleLowerCase())) {
          if (R && D && He.includes(P))
            if (P.includes(".")) {
              let le = P.split(".");
              C[le[0]].forEach((Pe) => {
                Pe[le[1]] = N(Pe, le[1]);
              });
            } else
              C[P] = N(C, P);
          if (new Date(C[P]).getTime() && typeof C[P] != "number" && ke(C, P), P.includes(".")) {
            let le = P.split(".")[0], Pe = P.split(".")[1];
            C[P] = { label: "Multiple", submenu: [] }, C[le].forEach((Ie) => {
              Ie[Pe] && C[P].submenu.push(Ie[Pe]);
            });
          }
          if (P in C)
            return t(16, te[ee][v][P] = C[P], te);
        }
      });
    });
  }, me = () => {
    if (!M)
      return;
    let p = {};
    M.split(",").forEach((C) => {
      let v = C.split(":");
      p[v[0].trim()] = v[1].trim();
    }), Object.entries(p).forEach(([C, v]) => ge[C] = v);
  }, ke = (p, C) => {
    p[C] = et(p[C]).format(L);
  }, N = (p, C) => {
    let v = Ze.some(($e) => $e.includes(C)), P = typeof p[C] == "string" ? parseInt(p[C]) : p[C], le = Object.keys(p).find(($e) => $e.includes("currency") || $e.includes("Currency")), Pe = p[le] || D, Ie = R;
    const rt = Ie.match(/\{(\d+)decimals\}/), Nt = rt ? parseInt(rt[1], 10) : 2, Ot = rt ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
    P = P.toFixed(Nt);
    const [Vt, at] = R.includes(".") ? [",", "."] : [".", ","];
    let [it, qt] = P.split(".");
    return it = it.replace(/\B(?=(\d{3})+(?!\d))/g, Vt), P = `${it}${at}${qt}`, Ie = Ie.replace("{currency}", v ? "" : ge[Pe] || Pe).replace("{amount}", P.split(at)[0]).replace(
      Ot,
      P.split(at)[1]
    ), Ie;
  }, Se = () => {
    Object.keys(oe).forEach((p) => t(17, oe[p] = !1, oe));
  }, O = (p) => st(this, null, function* () {
    t(17, oe[p] = !oe[p], oe), yield nr();
    const C = de[p];
    if (be && C && oe[p]) {
      const P = C.offsetTop + C.offsetHeight - be.clientHeight;
      be.scrollTo({ top: P, behavior: "smooth" });
    }
  }), Ye = (p, C) => {
    let v = 0;
    return C.forEach((P) => {
      var le;
      (le = p[P]) != null && le.submenu && Array.isArray(p[P].submenu) && (v = Math.max(v, p[P].submenu.length));
    }), Array.from({ length: v }, (P, le) => le);
  }, Fe = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: Ee
      },
      window.location.href
    );
  }, se = (p) => st(this, null, function* () {
    var C;
    return p.status === 404 ? (t(3, g = a("checkPeriod")), Promise.reject(g)) : p.status >= 300 ? (ze = yield p.json(), b = (C = ze.thirdPartyResponse) == null ? void 0 : C.errorCode, t(3, g = a(b || "generalError")), Promise.reject(g)) : p.json();
  }), Te = () => {
    Q.addEventListener("change", Le, !1), U.addEventListener("change", Je, !1);
    const p = (v) => et(new Date(v.year, v.month, v.day)).format(L), C = (v) => {
      const P = et(v, L);
      return {
        year: P.year(),
        month: P.month(),
        day: P.date()
      };
    };
    t(
      0,
      Q.i18n = nt(ot({}, Q.i18n), {
        formatDate: p,
        parseDate: C
      }),
      Q
    ), t(
      1,
      U.i18n = nt(ot({}, Q.i18n), {
        formatDate: p,
        parseDate: C
      }),
      U
    );
  };
  or(() => () => {
    Q && Q.removeEventListener("change", Le), U && U.removeEventListener("change", Je);
  });
  const q = () => Fe(), u = (p) => Ke(p);
  function z(p) {
    Ue[p ? "unshift" : "push"](() => {
      Q = p, t(0, Q);
    });
  }
  function f(p) {
    Ue[p ? "unshift" : "push"](() => {
      U = p, t(1, U);
    });
  }
  const ce = () => Y(), Ft = (p) => O(p);
  function It(p, C) {
    Ue[p ? "unshift" : "push"](() => {
      de[C] = p, t(14, de);
    });
  }
  function Rt(p) {
    Ue[p ? "unshift" : "push"](() => {
      be = p, t(13, be);
    });
  }
  const jt = () => Ae(ae, "previous"), Ht = () => Ae(ae, "next"), Lt = (p) => Be(p), Et = () => ve();
  function Gt(p) {
    Ue[p ? "unshift" : "push"](() => {
      X = p, t(2, X);
    });
  }
  return r.$$set = (p) => {
    "endpoint" in p && t(38, o = p.endpoint), "playerid" in p && t(39, n = p.playerid), "session" in p && t(40, i = p.session), "lang" in p && t(41, l = p.lang), "clientstyling" in p && t(42, y = p.clientstyling), "clientstylingurl" in p && t(43, m = p.clientstylingurl), "translationurl" in p && t(44, _ = p.translationurl), "mbsource" in p && t(45, F = p.mbsource), "historytypes" in p && t(46, T = p.historytypes), "hidecolumns" in p && t(47, x = p.hidecolumns), "hidevalues" in p && t(48, w = p.hidevalues), "pagesizeoptions" in p && t(49, I = p.pagesizeoptions), "playercurrency" in p && t(50, D = p.playercurrency), "defaultpagesize" in p && t(51, G = p.defaultpagesize), "formatamount" in p && t(52, R = p.formatamount), "customcurrencysymbols" in p && t(53, M = p.customcurrencysymbols), "dateformat" in p && t(54, j = p.dateformat);
  }, r.$$.update = () => {
    r.$$.dirty[1] & /*lang*/
    1024 && l && br(l), r.$$.dirty[1] & /*historytypes*/
    32768 && T && qe(), r.$$.dirty[1] & /*endpoint, playerid, session*/
    896 && o && n && i && Y(), r.$$.dirty[1] & /*customcurrencysymbols*/
    4194304 && M && me(), r.$$.dirty[0] & /*startCalendar, endCalendar*/
    3 && Q && U && Te(), r.$$.dirty[0] & /*customStylingContainer*/
    4 | r.$$.dirty[1] & /*clientstyling*/
    2048 && y && X && lr(X, y), r.$$.dirty[0] & /*customStylingContainer*/
    4 | r.$$.dirty[1] & /*clientstylingurl*/
    4096 && m && X && hr(X, m), r.$$.dirty[0] & /*customStylingContainer*/
    4 | r.$$.dirty[1] & /*mbsource*/
    16384 && F && X && pr(X, `${F}.Style`), r.$$.dirty[1] & /*translationurl*/
    8192 && _ && Ve();
  }, [
    Q,
    U,
    X,
    g,
    d,
    We,
    pe,
    ee,
    xe,
    ae,
    ye,
    ie,
    ue,
    be,
    de,
    Z,
    te,
    oe,
    W,
    a,
    Ee,
    Ge,
    Me,
    Ne,
    Ce,
    je,
    Oe,
    _e,
    we,
    Qe,
    Ke,
    Y,
    ve,
    Be,
    Ae,
    O,
    Ye,
    Fe,
    o,
    n,
    i,
    l,
    y,
    m,
    _,
    F,
    T,
    x,
    w,
    I,
    D,
    G,
    R,
    M,
    j,
    q,
    u,
    z,
    f,
    ce,
    Ft,
    It,
    Rt,
    jt,
    Ht,
    Lt,
    Et,
    Gt
  ];
}
class Gr extends $t {
  constructor(e) {
    super(), er(
      this,
      e,
      Er,
      Lr,
      tr,
      {
        endpoint: 38,
        playerid: 39,
        session: 40,
        lang: 41,
        clientstyling: 42,
        clientstylingurl: 43,
        translationurl: 44,
        mbsource: 45,
        historytypes: 46,
        hidecolumns: 47,
        hidevalues: 48,
        pagesizeoptions: 49,
        playercurrency: 50,
        defaultpagesize: 51,
        formatamount: 52,
        customcurrencysymbols: 53,
        dateformat: 54
      },
      gr,
      [-1, -1, -1, -1]
    );
  }
  get endpoint() {
    return this.$$.ctx[38];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), K();
  }
  get playerid() {
    return this.$$.ctx[39];
  }
  set playerid(e) {
    this.$$set({ playerid: e }), K();
  }
  get session() {
    return this.$$.ctx[40];
  }
  set session(e) {
    this.$$set({ session: e }), K();
  }
  get lang() {
    return this.$$.ctx[41];
  }
  set lang(e) {
    this.$$set({ lang: e }), K();
  }
  get clientstyling() {
    return this.$$.ctx[42];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), K();
  }
  get clientstylingurl() {
    return this.$$.ctx[43];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), K();
  }
  get translationurl() {
    return this.$$.ctx[44];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), K();
  }
  get mbsource() {
    return this.$$.ctx[45];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), K();
  }
  get historytypes() {
    return this.$$.ctx[46];
  }
  set historytypes(e) {
    this.$$set({ historytypes: e }), K();
  }
  get hidecolumns() {
    return this.$$.ctx[47];
  }
  set hidecolumns(e) {
    this.$$set({ hidecolumns: e }), K();
  }
  get hidevalues() {
    return this.$$.ctx[48];
  }
  set hidevalues(e) {
    this.$$set({ hidevalues: e }), K();
  }
  get pagesizeoptions() {
    return this.$$.ctx[49];
  }
  set pagesizeoptions(e) {
    this.$$set({ pagesizeoptions: e }), K();
  }
  get playercurrency() {
    return this.$$.ctx[50];
  }
  set playercurrency(e) {
    this.$$set({ playercurrency: e }), K();
  }
  get defaultpagesize() {
    return this.$$.ctx[51];
  }
  set defaultpagesize(e) {
    this.$$set({ defaultpagesize: e }), K();
  }
  get formatamount() {
    return this.$$.ctx[52];
  }
  set formatamount(e) {
    this.$$set({ formatamount: e }), K();
  }
  get customcurrencysymbols() {
    return this.$$.ctx[53];
  }
  set customcurrencysymbols(e) {
    this.$$set({ customcurrencysymbols: e }), K();
  }
  get dateformat() {
    return this.$$.ctx[54];
  }
  set dateformat(e) {
    this.$$set({ dateformat: e }), K();
  }
}
dr(Gr, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, historytypes: {}, hidecolumns: {}, hidevalues: {}, pagesizeoptions: {}, playercurrency: {}, defaultpagesize: {}, formatamount: {}, customcurrencysymbols: {}, dateformat: {} }, [], [], !0);
export {
  Gr as default
};
