import { $ as ot, E as Gt, a as Nt, S as Ot, i as Vt, s as qt, f as K, b as Kt, n as Re, d as B, h as A, k as c, p as Jt, q as Ut, u as Zt, G as Qt, w as Ue, C as H, D as $, j as l, m as v, e as s, r as Xt, c as J, g as le, l as De, t as V, v as E, H as tt, x as Yt, y as $t, z as er, A as tr, B as rr } from "./GeneralLogout-CCZ-t51N.js";
import { d as et } from "./PlayerAccountProductRestriction-DWjdmOFI.js";
import { C as ar } from "./PlayerAccountSelfExclusion-CXSti58w.js";
import "../stencil/ui-skeleton-BQnxp85t.js";
function ir({ withLocale: r, translations: e }) {
  ot.subscribe((t) => {
    t == null && (Gt.set(e), ot.set(r));
  });
}
function nt(r, e) {
  Nt(r, e);
}
function or(r) {
  ot.set(r);
}
const st = {
  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 nr(r) {
  Kt(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 lt(r, e, t) {
  const a = r.slice();
  return a[99] = e[t], a;
}
function ht(r, e, t) {
  const a = r.slice();
  return a[102] = e[t], a[103] = e, a[104] = t, a;
}
function pt(r, e, t) {
  const a = r.slice();
  return a[105] = e[t], a;
}
function dt(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a[109] = t, a;
}
function ct(r, e, t) {
  const a = r.slice();
  return a[105] = e[t], a;
}
function yt(r, e, t) {
  const a = r.slice();
  return a[112] = e[t], a;
}
function ut(r, e, t) {
  const a = r.slice();
  return a[115] = e[t], a;
}
function bt(r, e, t) {
  const a = r.slice();
  return a[112] = e[t], a;
}
function gt(r, e, t) {
  const a = r.slice();
  return a[112] = e[t], a;
}
function ft(r, e, t) {
  const a = r.slice();
  return a[122] = e[t], a[104] = t, a;
}
function sr(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function lr(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function hr(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function pr(r, e, t) {
  const a = r.slice();
  return a[90] = e[t], a;
}
function dr(r) {
  let e, t, a, o, n, i, p = (
    /*$_*/
    r[19]("headerTitle") + ""
  ), f, W, S, R, T, D, C, F, x = (
    /*$_*/
    r[19]("dateFrom") + ""
  ), G, I, M, j, L, re, u = (
    /*$_*/
    r[19]("dateTo") + ""
  ), b, d, w, We, he, ee = (
    /*$_*/
    r[19]("dateFilter") + ""
  ), xe, ae, Ee, ce, ie, ye, Q, U, X, ue, pe, Z, be, te, Ge, Me, Ne, Ce, je, Oe, He, Ze, _e, we, oe, P, Qe, ze, ne, ge, Ve, qe, Ke, Y, Le, Je, ve, Be, Ae, Xe, fe = (
    /*isMobile*/
    r[20] && yr(r)
  ), ke = H(
    /*transactionTypes*/
    r[15]
  ), N = [];
  for (let y = 0; y < ke.length; y += 1)
    N[y] = mt(ft(r, ke, y));
  let Se = H(
    /*tableColumns*/
    r[21][
      /*activeType*/
      r[7]
    ]
  ), O = [];
  for (let y = 0; y < Se.length; y += 1)
    O[y] = _t(gt(r, Se, y));
  function Ye(y, z) {
    return (
      /*isError*/
      y[12] ? ur : br
    );
  }
  let Fe = Ye(r), se = Fe(r), Te = H(
    /*pageSizeOptions*/
    r[29]
  ), q = [];
  for (let y = 0; y < Te.length; y += 1)
    q[y] = Wt(lt(r, Te, y));
  return {
    c() {
      e = c("div"), t = c("div"), a = c("div"), fe && fe.c(), o = v(), n = c("div"), i = c("p"), f = V(p), W = v(), S = c("div");
      for (let y = 0; y < N.length; y += 1)
        N[y].c();
      R = v(), T = c("div"), D = c("div"), C = c("div"), F = c("label"), G = V(x), I = v(), M = c("vaadin-date-picker"), j = v(), L = c("div"), re = c("label"), b = V(u), d = v(), w = c("vaadin-date-picker"), We = v(), he = c("button"), xe = V(ee), Ee = v(), ce = c("table"), ie = c("div"), ye = c("thead");
      for (let y = 0; y < O.length; y += 1)
        O[y].c();
      Q = v(), U = c("tbody"), se.c(), ue = v(), pe = c("div"), Z = c("div"), be = c("button"), te = E("svg"), Ge = E("path"), Ne = v(), Ce = c("div"), je = c("p"), Oe = V(
        /*pageNumber*/
        r[9]
      ), Ze = v(), _e = c("button"), we = E("svg"), oe = E("path"), Qe = v(), ze = c("div"), ne = c("button"), ge = c("div"), Ve = c("p"), qe = V(
        /*pageSize*/
        r[8]
      ), Ke = v(), Y = E("svg"), Le = E("path"), Je = v(), ve = c("div");
      for (let y = 0; y < q.length; y += 1)
        q[y].c();
      s(n, "class", "headerText " + /*isMobile*/
      (r[20] ? "headerTextNone" : "")), s(S, "class", "headerController"), s(a, "class", "historyHeader"), s(F, "for", "historyCalendarStartDate"), le(
        M,
        "max",
        /*formattedMaxDate*/
        r[4]
      ), le(
        M,
        "value",
        /*historyCalendarStartDate*/
        r[5]
      ), le(M, "placeholder", "From"), le(M, "class", "VaadinDatePicker"), s(C, "class", "historyCalendarStartDate"), s(re, "for", "historyCalendarEndDate"), le(
        w,
        "max",
        /*formattedMaxDate*/
        r[4]
      ), le(
        w,
        "value",
        /*historyCalendarEndDate*/
        r[6]
      ), le(w, "placeholder", "To"), le(w, "class", "VaadinDatePicker"), s(L, "class", "historyCalendarEndDate"), s(D, "class", "historyCalendarContainer"), s(he, "class", ae = "historyCalendarFilter " + (/*buttonStatus*/
      r[18].filterButton ? "" : "disable")), s(T, "class", "historyFilter"), s(ye, "class", "tableHead"), s(U, "class", "tableContent"), s(ie, "class", X = `tableWrapper ${/*activeType*/
      r[7].replace("$", "")} ${/*isMobile*/
      r[20] ? "tableWrapperMobile" : ""}`), s(ce, "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(be, "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", P = "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(ge, "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(pe, "class", "historyPaginationContainer"), s(t, "class", "historyWrapper " + /*isMobile*/
      (r[20] ? "historyMobileWrapper" : "")), s(e, "class", "historyContainer");
    },
    m(y, z) {
      A(y, e, z), l(e, t), l(t, a), fe && fe.m(a, null), l(a, o), l(a, n), l(n, i), l(i, f), l(a, W), l(a, S);
      for (let g = 0; g < N.length; g += 1)
        N[g] && N[g].m(S, null);
      l(t, R), l(t, T), l(T, D), l(D, C), l(C, F), l(F, G), l(C, I), l(C, M), r[57](M), l(D, j), l(D, L), l(L, re), l(re, b), l(L, d), l(L, w), r[58](w), l(T, We), l(T, he), l(he, xe), l(t, Ee), l(t, ce), l(ce, ie), l(ie, ye);
      for (let g = 0; g < O.length; g += 1)
        O[g] && O[g].m(ye, null);
      l(ie, Q), l(ie, U), se.m(U, null), r[62](ce), l(t, ue), l(t, pe), l(pe, Z), l(Z, be), l(be, te), l(te, Ge), l(Z, Ne), l(Z, Ce), l(Ce, je), l(je, Oe), l(Z, Ze), l(Z, _e), l(_e, we), l(we, oe), l(pe, Qe), l(pe, ze), l(ze, ne), l(ne, ge), l(ge, Ve), l(Ve, qe), l(ge, Ke), l(ge, Y), l(Y, Le), l(ne, Je), l(ne, ve);
      for (let g = 0; g < q.length; g += 1)
        q[g] && q[g].m(ve, null);
      Ae || (Xe = [
        De(
          he,
          "click",
          /*click_handler_2*/
          r[59]
        ),
        De(
          be,
          "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(y, z) {
      if (
        /*isMobile*/
        y[20] && fe.p(y, z), z[0] & /*$_*/
        524288 && p !== (p = /*$_*/
        y[19]("headerTitle") + "") && J(f, p), z[0] & /*transactionTypes, changeActiveHistory, $_*/
        1074298880
      ) {
        ke = H(
          /*transactionTypes*/
          y[15]
        );
        let g;
        for (g = 0; g < ke.length; g += 1) {
          const de = ft(y, ke, g);
          N[g] ? N[g].p(de, z) : (N[g] = mt(de), N[g].c(), N[g].m(S, null));
        }
        for (; g < N.length; g += 1)
          N[g].d(1);
        N.length = ke.length;
      }
      if (z[0] & /*$_*/
      524288 && x !== (x = /*$_*/
      y[19]("dateFrom") + "") && J(G, x), z[0] & /*formattedMaxDate*/
      16 && le(
        M,
        "max",
        /*formattedMaxDate*/
        y[4]
      ), z[0] & /*historyCalendarStartDate*/
      32 && le(
        M,
        "value",
        /*historyCalendarStartDate*/
        y[5]
      ), z[0] & /*$_*/
      524288 && u !== (u = /*$_*/
      y[19]("dateTo") + "") && J(b, u), z[0] & /*formattedMaxDate*/
      16 && le(
        w,
        "max",
        /*formattedMaxDate*/
        y[4]
      ), z[0] & /*historyCalendarEndDate*/
      64 && le(
        w,
        "value",
        /*historyCalendarEndDate*/
        y[6]
      ), z[0] & /*$_*/
      524288 && ee !== (ee = /*$_*/
      y[19]("dateFilter") + "") && J(xe, ee), z[0] & /*buttonStatus*/
      262144 && ae !== (ae = "historyCalendarFilter " + (/*buttonStatus*/
      y[18].filterButton ? "" : "disable")) && s(he, "class", ae), z[0] & /*$_, tableColumns, activeType, hideColumns*/
      136839296) {
        Se = H(
          /*tableColumns*/
          y[21][
            /*activeType*/
            y[7]
          ]
        );
        let g;
        for (g = 0; g < Se.length; g += 1) {
          const de = gt(y, Se, g);
          O[g] ? O[g].p(de, z) : (O[g] = _t(de), O[g].c(), O[g].m(ye, null));
        }
        for (; g < O.length; g += 1)
          O[g].d(1);
        O.length = Se.length;
      }
      if (Fe === (Fe = Ye(y)) && se ? se.p(y, z) : (se.d(1), se = Fe(y), se && (se.c(), se.m(U, null))), z[0] & /*activeType*/
      128 && X !== (X = `tableWrapper ${/*activeType*/
      y[7].replace("$", "")} ${/*isMobile*/
      y[20] ? "tableWrapperMobile" : ""}`) && s(ie, "class", X), z[0] & /*buttonStatus*/
      262144 && Me !== (Me = "arrowLeft " + (/*buttonStatus*/
      y[18].previousPage ? "" : "disable")) && s(be, "class", Me), z[0] & /*pageNumber*/
      512 && J(
        Oe,
        /*pageNumber*/
        y[9]
      ), z[0] & /*buttonStatus*/
      262144 && He !== (He = "indexDisplay " + (!/*buttonStatus*/
      y[18].previousPage && !/*buttonStatus*/
      y[18].nextPage ? "disable" : "")) && s(Ce, "class", He), z[0] & /*buttonStatus*/
      262144 && P !== (P = "arrowRight " + (/*buttonStatus*/
      y[18].nextPage ? "" : "disable")) && s(_e, "class", P), z[0] & /*pageSize*/
      256 && J(
        qe,
        /*pageSize*/
        y[8]
      ), z[0] & /*pageSizeOptions*/
      536870912 | z[1] & /*changePageSize*/
      4) {
        Te = H(
          /*pageSizeOptions*/
          y[29]
        );
        let g;
        for (g = 0; g < Te.length; g += 1) {
          const de = lt(y, Te, g);
          q[g] ? q[g].p(de, z) : (q[g] = Wt(de), q[g].c(), q[g].m(ve, null));
        }
        for (; g < q.length; g += 1)
          q[g].d(1);
        q.length = Te.length;
      }
      z[0] & /*isPaginationToggled, buttonStatus*/
      264192 && Be !== (Be = "pageSizeSelector " + /*isPaginationToggled*/
      (y[11] ? "active" : "") + " " + (/*buttonStatus*/
      y[18].pageSize ? "" : "disable")) && s(ne, "class", Be);
    },
    d(y) {
      y && B(e), fe && fe.d(), $(N, y), r[57](null), r[58](null), $(O, y), se.d(), r[62](null), $(q, y), Ae = !1, Xt(Xe);
    }
  };
}
function cr(r) {
  let e, t, a, o, n, i, p, f, W, S, R, T, D, C;
  function F(b, d) {
    return (
      /*isMobile*/
      b[20] ? Sr : kr
    );
  }
  let G = F(r)(r), I = H({ length: 3 }), M = [];
  for (let b = 0; b < I.length; b += 1)
    M[b] = Tr(pr(r, I, b));
  let j = H({ length: 6 }), L = [];
  for (let b = 0; b < j.length; b += 1)
    L[b] = Pr(hr(r, j, b));
  let re = H({ length: 5 }), u = [];
  for (let b = 0; b < re.length; b += 1)
    u[b] = Wr(sr(r, re, b));
  return {
    c() {
      e = c("div"), t = c("div"), a = c("div"), G.c(), o = v(), n = c("div");
      for (let b = 0; b < M.length; b += 1)
        M[b].c();
      i = v(), p = c("div"), p.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>', f = v(), W = c("table"), S = c("thead");
      for (let b = 0; b < L.length; b += 1)
        L[b].c();
      R = v(), T = c("tbody");
      for (let b = 0; b < u.length; b += 1)
        u[b].c();
      D = v(), C = c("div"), C.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(p, "class", "historyFilter skeleton"), s(S, "class", "tableHead"), s(T, "class", "tableContent"), s(W, "class", "historyTable skeleton"), s(C, "class", "historyPaginationContainer skeleton"), s(t, "class", "historyWrapper " + /*isMobile*/
      (r[20] ? "historyMobileWrapper" : "")), s(e, "class", "historyContainer");
    },
    m(b, d) {
      A(b, e, d), l(e, t), l(t, a), G.m(a, null), l(a, o), l(a, n);
      for (let w = 0; w < M.length; w += 1)
        M[w] && M[w].m(n, null);
      l(t, i), l(t, p), l(t, f), l(t, W), l(W, S);
      for (let w = 0; w < L.length; w += 1)
        L[w] && L[w].m(S, null);
      l(W, R), l(W, T);
      for (let w = 0; w < u.length; w += 1)
        u[w] && u[w].m(T, null);
      l(t, D), l(t, C);
    },
    p: Re,
    d(b) {
      b && B(e), G.d(), $(M, b), $(L, b), $(u, b);
    }
  };
}
function yr(r) {
  let e, t, a, o, n, i, p, f, W, S, R = (
    /*$_*/
    r[19]("headerTitle") + ""
  ), T, D, C;
  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"), p = E("g"), f = E("path"), W = v(), S = c("h2"), T = V(R), s(f, "class", "pathstyle"), s(f, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(f, "transform", "translate(15 15) rotate(180)"), s(p, "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(S, "class", "historyReturnText"), s(e, "class", "historyReturnButton");
    },
    m(F, x) {
      A(F, e, x), l(e, t), l(t, a), l(a, o), l(o, n), l(t, i), l(i, p), l(p, f), l(e, W), l(e, S), l(S, T), D || (C = De(
        e,
        "click",
        /*click_handler*/
        r[55]
      ), D = !0);
    },
    p(F, x) {
      x[0] & /*$_*/
      524288 && R !== (R = /*$_*/
      F[19]("headerTitle") + "") && J(T, R);
    },
    d(F) {
      F && B(e), D = !1, C();
    }
  };
}
function mt(r) {
  let e, t, a, o, n = (
    /*$_*/
    r[19](
      /*el*/
      r[122].type
    ) + ""
  ), i, p, f, W, S;
  function R() {
    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 = v(), o = c("p"), i = V(n), p = v(), s(t, "class", "toggleCheckbox"), s(o, "class", "label"), s(e, "class", f = "toggleContent " + /*el*/
      (r[122].checked ? "checked" : ""));
    },
    m(T, D) {
      A(T, e, D), l(e, t), l(e, a), l(e, o), l(o, i), l(e, p), W || (S = De(e, "click", R), W = !0);
    },
    p(T, D) {
      r = T, D[0] & /*$_, transactionTypes*/
      557056 && n !== (n = /*$_*/
      r[19](
        /*el*/
        r[122].type
      ) + "") && J(i, n), D[0] & /*transactionTypes*/
      32768 && f !== (f = "toggleContent " + /*el*/
      (r[122].checked ? "checked" : "")) && s(e, "class", f);
    },
    d(T) {
      T && B(e), W = !1, S();
    }
  };
}
function Ct(r) {
  let e, t = (
    /*$_*/
    (r[19](
      /*column*/
      r[112]
    ) || /*column*/
    r[112]) + ""
  ), a, o;
  return {
    c() {
      e = c("span"), a = V(t), o = v();
    },
    m(n, i) {
      A(n, e, i), l(e, a), l(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 _t(r) {
  let e = !/*hideColumns*/
  r[27].includes(
    /*column*/
    r[112].replace(/\s/g, "").toLowerCase()
  ), t, a = e && Ct(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 = Ct(o), a.c(), a.m(t.parentNode, t)) : a && (a.d(1), a = null);
    },
    d(o) {
      o && B(t), a && a.d(o);
    }
  };
}
function ur(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), l(e, t);
    },
    p(a, o) {
      o[0] & /*errorMessage*/
      8 && J(
        t,
        /*errorMessage*/
        a[3]
      );
    },
    d(a) {
      a && B(e);
    }
  };
}
function br(r) {
  let e, t = H(
    /*historyData*/
    r[16][
      /*activeType*/
      r[7]
    ]
  ), a = [];
  for (let o = 0; o < t.length; o += 1)
    a[o] = Dt(ht(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 p = ht(o, t, i);
          a[i] ? a[i].p(p, n) : (a[i] = Dt(p), 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 gr(r) {
  let e, t = (
    /*row*/
    (r[102][
      /*column*/
      r[112]
    ] || "-") + ""
  ), a, o, n;
  return {
    c() {
      e = c("span"), a = V(t), o = v(), s(e, "data-label", n = /*mobileLabels*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "")
      ] || /*column*/
      r[112]);
    },
    m(i, p) {
      A(i, e, p), l(e, a), l(e, o);
    },
    p(i, p) {
      p[0] & /*historyData, activeType*/
      65664 && t !== (t = /*row*/
      (i[102][
        /*column*/
        i[112]
      ] || "-") + "") && J(a, t), p[0] & /*activeType*/
      128 && n !== (n = /*mobileLabels*/
      i[23][
        /*activeType*/
        i[7]
      ]?.[
        /*column*/
        i[112].replace(/\s/g, "")
      ] || /*column*/
      i[112]) && s(e, "data-label", n);
    },
    d(i) {
      i && B(e);
    }
  };
}
function fr(r) {
  let e, t = (
    /*row*/
    (r[102][
      /*column*/
      r[112]
    ].submenu[0] || "-") + ""
  ), a, o, n;
  return {
    c() {
      e = c("span"), a = V(t), o = v(), s(e, "data-label", n = /*mobileLabels*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "")
      ] || /*column*/
      r[112]);
    },
    m(i, p) {
      A(i, e, p), l(e, a), l(e, o);
    },
    p(i, p) {
      p[0] & /*historyData, activeType*/
      65664 && t !== (t = /*row*/
      (i[102][
        /*column*/
        i[112]
      ].submenu[0] || "-") + "") && J(a, t), p[0] & /*activeType*/
      128 && n !== (n = /*mobileLabels*/
      i[23][
        /*activeType*/
        i[7]
      ]?.[
        /*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, p = (
    /*row*/
    r[102][
      /*column*/
      r[112]
    ].label + ""
  ), f, W, S, R, T;
  function D() {
    return (
      /*click_handler_3*/
      r[60](
        /*index*/
        r[104]
      )
    );
  }
  return {
    c() {
      e = c("button"), t = E("svg"), a = E("path"), n = v(), i = c("span"), f = V(p), W = v(), 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", S = /*mobileLabels*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "")
      ] || /*column*/
      r[112]);
    },
    m(C, F) {
      A(C, e, F), l(e, t), l(t, a), l(e, n), l(e, i), l(i, f), l(e, W), R || (T = De(e, "click", D), R = !0);
    },
    p(C, F) {
      r = C, F[0] & /*activeSubmenus*/
      131072 && o !== (o = "iconToggleSubMenu " + /*activeSubmenus*/
      (r[17][
        /*index*/
        r[104]
      ] ? "active" : "")) && s(t, "class", o), F[0] & /*historyData, activeType*/
      65664 && p !== (p = /*row*/
      r[102][
        /*column*/
        r[112]
      ].label + "") && J(f, p), F[0] & /*activeType*/
      128 && S !== (S = /*mobileLabels*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "")
      ] || /*column*/
      r[112]) && s(e, "data-label", S);
    },
    d(C) {
      C && B(e), R = !1, T();
    }
  };
}
function Cr(r) {
  let e, t, a, o, n;
  return {
    c() {
      e = c("span"), t = E("svg"), a = E("path"), o = v(), 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*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "")
      ] || /*column*/
      r[112]);
    },
    m(i, p) {
      A(i, e, p), l(e, t), l(t, a), l(e, o);
    },
    p(i, p) {
      p[0] & /*activeType*/
      128 && n !== (n = /*mobileLabels*/
      i[23][
        /*activeType*/
        i[7]
      ]?.[
        /*column*/
        i[112].replace(/\s/g, "")
      ] || /*column*/
      i[112]) && s(e, "data-label", n);
    },
    d(i) {
      i && B(e);
    }
  };
}
function _r(r) {
  let e, t, a, o, n, i;
  return {
    c() {
      e = c("span"), t = E("svg"), a = E("path"), o = E("path"), n = v(), 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*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "").toLowerCase()
      ] || /*column*/
      r[112]);
    },
    m(p, f) {
      A(p, e, f), l(e, t), l(t, a), l(t, o), l(e, n);
    },
    p(p, f) {
      f[0] & /*activeType*/
      128 && i !== (i = /*mobileLabels*/
      p[23][
        /*activeType*/
        p[7]
      ]?.[
        /*column*/
        p[112].replace(/\s/g, "").toLowerCase()
      ] || /*column*/
      p[112]) && s(e, "data-label", i);
    },
    d(p) {
      p && B(e);
    }
  };
}
function wt(r) {
  let e, t;
  function a(i, p) {
    if (p[0] & /*activeType*/
    128 && (e = null), /*row*/
    i[102][
      /*column*/
      i[112]
    ] === !0)
      return _r;
    if (
      /*row*/
      i[102][
        /*column*/
        i[112]
      ] === !1
    )
      return Cr;
    if (
      /*row*/
      i[102][
        /*column*/
        i[112]
      ]?.label && /*row*/
      i[102][
        /*column*/
        i[112]
      ]?.submenu.length > 1
    )
      return mr;
    if (
      /*row*/
      i[102][
        /*column*/
        i[112]
      ]?.submenu
    )
      return fr;
    if (e == null && (e = !/*hideValues*/
    i[28].includes(
      /*column*/
      i[112].toLowerCase()
    )), e)
      return gr;
  }
  let o = a(r, [-1, -1, -1, -1]), n = o && o(r);
  return {
    c() {
      n && n.c(), t = tt();
    },
    m(i, p) {
      n && n.m(i, p), A(i, t, p);
    },
    p(i, p) {
      o === (o = a(i, p)) && n ? n.p(i, p) : (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 wr(r) {
  let e, t, a, o, n;
  return {
    c() {
      e = c("div"), t = c("span"), a = V("-"), n = v(), s(t, "data-label", o = /*mobileLabels*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "").toLowerCase()
      ] || /*column*/
      r[112]), s(t, "class", "label"), s(e, "class", "tableData");
    },
    m(i, p) {
      A(i, e, p), l(e, t), l(t, a), l(e, n);
    },
    p(i, p) {
      p[0] & /*activeType*/
      128 && o !== (o = /*mobileLabels*/
      i[23][
        /*activeType*/
        i[7]
      ]?.[
        /*column*/
        i[112].replace(/\s/g, "").toLowerCase()
      ] || /*column*/
      i[112]) && s(t, "data-label", o);
    },
    d(i) {
      i && B(e);
    }
  };
}
function vr(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] = vt(ut(r, a, n));
  return {
    c() {
      e = c("div");
      for (let n = 0; n < o.length; n += 1)
        o[n].c();
      t = v(), s(e, "class", "tableData");
    },
    m(n, i) {
      A(n, e, i);
      for (let p = 0; p < o.length; p += 1)
        o[p] && o[p].m(e, null);
      l(e, t);
    },
    p(n, i) {
      if (i[0] & /*mobileLabels, activeType, tableBody, historyData*/
      12648576) {
        a = H(
          /*row*/
          n[102][
            /*column*/
            n[112]
          ].submenu
        );
        let p;
        for (p = 0; p < a.length; p += 1) {
          const f = ut(n, a, p);
          o[p] ? o[p].p(f, i) : (o[p] = vt(f), o[p].c(), o[p].m(e, t));
        }
        for (; p < o.length; p += 1)
          o[p].d(1);
        o.length = a.length;
      }
    },
    d(n) {
      n && B(e), $(o, n);
    }
  };
}
function vt(r) {
  let e, t = (
    /*submenu*/
    (r[115] || "-") + ""
  ), a, o;
  return {
    c() {
      e = c("span"), a = V(t), s(e, "data-label", o = /*mobileLabels*/
      r[23][
        /*activeType*/
        r[7]
      ]?.[
        /*column*/
        r[112].replace(/\s/g, "").toLowerCase()
      ] || /*column*/
      r[112]), s(e, "class", "label");
    },
    m(n, i) {
      A(n, e, i), l(e, a);
    },
    p(n, i) {
      i[0] & /*historyData, activeType*/
      65664 && t !== (t = /*submenu*/
      (n[115] || "-") + "") && J(a, t), i[0] & /*activeType*/
      128 && o !== (o = /*mobileLabels*/
      n[23][
        /*activeType*/
        n[7]
      ]?.[
        /*column*/
        n[112].replace(/\s/g, "").toLowerCase()
      ] || /*column*/
      n[112]) && s(e, "data-label", o);
    },
    d(n) {
      n && B(e);
    }
  };
}
function kt(r) {
  let e;
  function t(n, i) {
    return (
      /*row*/
      n[102][
        /*column*/
        n[112]
      ]?.submenu ? vr : wr
    );
  }
  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 St(r) {
  let e, t, a = (
    /*row*/
    (r[102][
      /*columnKey*/
      r[105]
    ]?.submenu?.[
      /*rowIndex*/
      r[109]
    ] || "-") + ""
  ), o;
  return {
    c() {
      e = c("div"), t = c("span"), o = V(a), s(
        t,
        "data-label",
        /*mobileLabels*/
        r[23].sports?.[
          /*columnKey*/
          r[105]
        ]
      ), s(t, "class", "label"), s(e, "class", "tableData");
    },
    m(n, i) {
      A(n, e, i), l(e, t), l(t, o);
    },
    p(n, i) {
      i[0] & /*historyData, activeType*/
      65664 && a !== (a = /*row*/
      (n[102][
        /*columnKey*/
        n[105]
      ]?.submenu?.[
        /*rowIndex*/
        n[109]
      ] || "-") + "") && J(o, a);
    },
    d(n) {
      n && B(e);
    }
  };
}
function Tt(r) {
  let e, t = H(
    /*mobileRepeatingKeys*/
    r[24]
  ), a = [];
  for (let o = 0; o < t.length; o += 1)
    a[o] = St(ct(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 p = ct(o, t, i);
          a[i] ? a[i].p(p, n) : (a[i] = St(p), 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 Pt(r) {
  let e, t, a, o = (
    /*row*/
    (r[102][
      /*columnKey*/
      r[105]
    ]?.submenu?.[0] || "-") + ""
  ), n, i;
  return {
    c() {
      e = c("div"), t = c("div"), a = c("span"), n = V(o), i = v(), s(
        a,
        "data-label",
        /*mobileLabels*/
        r[23].sports?.[
          /*columnKey*/
          r[105]
        ]
      ), s(a, "class", "label"), s(t, "class", "tableData"), s(e, "class", "submenuRow");
    },
    m(p, f) {
      A(p, e, f), l(e, t), l(t, a), l(a, n), l(e, i);
    },
    p(p, f) {
      f[0] & /*historyData, activeType*/
      65664 && o !== (o = /*row*/
      (p[102][
        /*columnKey*/
        p[105]
      ]?.submenu?.[0] || "-") + "") && J(n, o);
    },
    d(p) {
      p && B(e);
    }
  };
}
function Dt(r) {
  let e, t, a, o, n, i, p, f, W, S, R = (
    /*index*/
    r[104]
  ), T, D = H(
    /*tableBody*/
    r[22][
      /*activeType*/
      r[7]
    ]
  ), C = [];
  for (let u = 0; u < D.length; u += 1)
    C[u] = wt(bt(r, D, u));
  let F = H(
    /*tableBody*/
    r[22][
      /*activeType*/
      r[7]
    ]
  ), x = [];
  for (let u = 0; u < F.length; u += 1)
    x[u] = kt(yt(r, F, u));
  let G = H(
    /*getSubmenuRowsCount*/
    r[36](
      /*row*/
      r[102],
      /*mobileSportsKeys*/
      r[25]
    )
  ), I = [];
  for (let u = 0; u < G.length; u += 1)
    I[u] = Tt(dt(r, G, u));
  let M = H(
    /*mobileSportsRemainingKeys*/
    r[26]
  ), j = [];
  for (let u = 0; u < M.length; u += 1)
    j[u] = Pt(pt(r, M, u));
  const L = () => (
    /*div4_binding*/
    r[61](o, R)
  ), re = () => (
    /*div4_binding*/
    r[61](null, R)
  );
  return {
    c() {
      e = c("div"), t = c("div");
      for (let u = 0; u < C.length; u += 1)
        C[u].c();
      a = v(), o = c("div"), n = c("div");
      for (let u = 0; u < x.length; u += 1)
        x[u].c();
      i = v(), p = c("div");
      for (let u = 0; u < I.length; u += 1)
        I[u].c();
      f = v(), W = c("div");
      for (let u = 0; u < j.length; u += 1)
        j[u].c();
      T = v(), s(t, "class", "tableData"), s(n, "class", "desktopSubmenu"), s(W, "class", "remainingRows"), s(p, "class", "allSubmenuRows"), s(o, "class", S = "tableSubMenu " + /*activeSubmenus*/
      (r[17][
        /*index*/
        r[104]
      ] ? "active" : "")), s(e, "class", "tableRow");
    },
    m(u, b) {
      A(u, e, b), l(e, t);
      for (let d = 0; d < C.length; d += 1)
        C[d] && C[d].m(t, null);
      l(e, a), l(e, o), l(o, n);
      for (let d = 0; d < x.length; d += 1)
        x[d] && x[d].m(n, null);
      l(o, i), l(o, p);
      for (let d = 0; d < I.length; d += 1)
        I[d] && I[d].m(p, null);
      l(p, f), l(p, W);
      for (let d = 0; d < j.length; d += 1)
        j[d] && j[d].m(W, null);
      L(), l(e, T);
    },
    p(u, b) {
      if (r = u, b[0] & /*mobileLabels, activeType, tableBody, historyData, activeSubmenus, hideValues*/
      281215104 | b[1] & /*toggleSubmenu*/
      16) {
        D = H(
          /*tableBody*/
          r[22][
            /*activeType*/
            r[7]
          ]
        );
        let d;
        for (d = 0; d < D.length; d += 1) {
          const w = bt(r, D, d);
          C[d] ? C[d].p(w, b) : (C[d] = wt(w), C[d].c(), C[d].m(t, null));
        }
        for (; d < C.length; d += 1)
          C[d].d(1);
        C.length = D.length;
      }
      if (b[0] & /*historyData, activeType, tableBody, mobileLabels*/
      12648576) {
        F = H(
          /*tableBody*/
          r[22][
            /*activeType*/
            r[7]
          ]
        );
        let d;
        for (d = 0; d < F.length; d += 1) {
          const w = yt(r, F, d);
          x[d] ? x[d].p(w, b) : (x[d] = kt(w), x[d].c(), x[d].m(n, null));
        }
        for (; d < x.length; d += 1)
          x[d].d(1);
        x.length = F.length;
      }
      if (b[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 w = dt(r, G, d);
          I[d] ? I[d].p(w, b) : (I[d] = Tt(w), I[d].c(), I[d].m(p, f));
        }
        for (; d < I.length; d += 1)
          I[d].d(1);
        I.length = G.length;
      }
      if (b[0] & /*mobileLabels, mobileSportsRemainingKeys, historyData, activeType*/
      75563136) {
        M = H(
          /*mobileSportsRemainingKeys*/
          r[26]
        );
        let d;
        for (d = 0; d < M.length; d += 1) {
          const w = pt(r, M, d);
          j[d] ? j[d].p(w, b) : (j[d] = Pt(w), j[d].c(), j[d].m(W, null));
        }
        for (; d < j.length; d += 1)
          j[d].d(1);
        j.length = M.length;
      }
      b[0] & /*activeSubmenus*/
      131072 && S !== (S = "tableSubMenu " + /*activeSubmenus*/
      (r[17][
        /*index*/
        r[104]
      ] ? "active" : "")) && s(o, "class", S), R !== /*index*/
      r[104] && (re(), R = /*index*/
      r[104], L());
    },
    d(u) {
      u && B(e), $(C, u), $(x, u), $(I, u), $(j, u), re();
    }
  };
}
function Wt(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 = v(), s(e, "class", "dropDownRow");
    },
    m(p, f) {
      A(p, e, f), l(e, t), l(e, a), o || (n = De(e, "click", i), o = !0);
    },
    p(p, f) {
      r = p;
    },
    d(p) {
      p && B(e), o = !1, n();
    }
  };
}
function kr(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 Sr(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 Tr(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 Pr(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 Dr(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 Wr(r) {
  let e, t, a, o = H({ length: 6 }), n = [];
  for (let i = 0; i < o.length; i += 1)
    n[i] = Dr(lr(r, o, i));
  return {
    c() {
      e = c("div"), t = c("div");
      for (let i = 0; i < n.length; i += 1)
        n[i].c();
      a = v(), s(t, "class", "tableData"), s(e, "class", "tableRow");
    },
    m(i, p) {
      A(i, e, p), l(e, t);
      for (let f = 0; f < n.length; f += 1)
        n[f] && n[f].m(t, null);
      l(e, a);
    },
    p: Re,
    d(i) {
      i && B(e), $(n, i);
    }
  };
}
function xr(r) {
  let e;
  function t(n, i) {
    return (
      /*isLoading*/
      n[10] ? cr : dr
    );
  }
  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 Mr(r, e, t) {
  let a;
  Jt(r, rr, (h) => t(19, a = h)), et.extend(ar);
  let { endpoint: o = "" } = e, { playerid: n = "" } = e, { session: i = "" } = e, { lang: p = "en" } = e, { clientstyling: f = "" } = e, { clientstylingurl: W = "" } = e, { translationurl: S = "" } = e, { mbsource: R } = e, { historytypes: T = "Casino, Sports, Payments" } = e, { hidecolumns: D = "" } = e, { hidevalues: C = "" } = e, { pagesizeoptions: F = "10, 20, 30, 50, 100" } = e, { playercurrency: x = "" } = e, { defaultpagesize: G = "5" } = e, { formatamount: I = "{currency}{amount}.{2decimals}" } = e, { customcurrencysymbols: M } = e, { dateformat: j = "DD/MM/YYYY" } = e;
  ir({ withLocale: "en", translations: {} });
  let L = j.toUpperCase(), re = window.navigator.userAgent, u = "", b = "", d = "", w = "", We = "", he = "", ee = "", xe = Number(G), ae = 1, Ee = Ut(re) !== "PC", ce = !0, ie = !1, ye = !1, Q, U, X, ue, pe = [];
  const Z = [], be = { 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((h) => !Ce.includes(h)), He = ["stake", "won", "winnings", "bet_Part.price", "paymentAmount"], Ze = ["bet_Part.price"], _e = D.replace(/\s/g, "").split(","), we = C.replace(/\s/g, "").split(","), oe = {}, P = {
    filterButton: !0,
    nextPage: !0,
    previousPage: !0,
    pageSize: !0
  }, Qe = F.split(", ");
  let ze = {}, ne = /* @__PURE__ */ new Date(), ge = new Date(ne);
  ge.setMonth(ne.getMonth() - 1), d = ne.toISOString().split("T")[0], he = d, w = ge.toISOString().split("T")[0], We = w;
  const Ve = () => {
    fetch(S).then((m) => m.json()).then((m) => {
      Object.keys(m).forEach((_) => {
        nt(_, m[_]);
      });
    }).catch((m) => {
      console.log(m);
    });
  };
  Object.keys(st).forEach((h) => {
    nt(h, st[h]);
  });
  const qe = () => {
    T.split(", ").forEach((h, m) => {
      const _ = { type: h, checked: m === 0 };
      _.checked && t(7, ee = _.type.toLocaleLowerCase()), Z.push(_);
    });
  }, Ke = (h) => {
    Z.forEach((m, _) => {
      t(15, Z[_].checked = h === _, Z), Z[_].checked && t(7, ee = m.type.toLocaleLowerCase());
    }), Y();
  }, Y = () => {
    if (!P.filterButton)
      return;
    t(10, ce = !0), t(12, ye = !1), t(18, P.filterButton = !1, P), t(18, P.nextPage = !1, P), t(18, P.previousPage = !1, P), t(18, P.pageSize = !1, P);
    let h = new URL(`${o}/v1/player/${n}/fsb/transactions/${ee}`);
    h.searchParams.append("offset", (ae - 1).toString() || "0"), h.searchParams.append("limit", xe.toString() || "5"), h.searchParams.append("startDate", We), h.searchParams.append("endDate", he);
    let m = {
      method: "GET",
      headers: {
        "X-SessionId": i,
        "Content-Type": "application/json",
        Accept: "application/json"
      }
    };
    fetch(h.href, m).then((_) => se(_)).then((_) => {
      if (_.transactions.length === 0)
        return t(3, b = a("checkPeriod")), Promise.reject(b);
      _.pagination.next && t(18, P.nextPage = !0, P), _.pagination.previous && t(18, P.previousPage = !0, P), t(18, P.pageSize = !0, P), t(16, te[ee] = [], te), t(11, ie = !1), Se(), Xe(_);
    }).catch((_) => {
      t(12, ye = !0), t(18, P.nextPage = !1, P), t(18, P.previousPage = !1, P), t(18, P.pageSize = !1, P), window.postMessage(
        {
          type: "WidgetNotification",
          data: { type: "error", message: _ }
        },
        window.location.href
      );
    }).finally(() => {
      t(10, ce = !1), t(18, P.filterButton = !0, P);
    });
  }, Le = (h) => {
    t(5, We = h.target.value);
  }, Je = (h) => {
    t(6, he = h.target.value);
  }, ve = () => {
    P.pageSize && t(11, ie = !ie);
  }, Be = (h) => {
    t(8, xe = h), t(9, ae = 1), Y();
  }, Ae = (h, m) => {
    if (m === "next") {
      if (!P.nextPage)
        return;
      t(9, ae = h + 1), Y();
    } else {
      if (!P.previousPage)
        return;
      t(9, ae = h - 1), Y();
    }
  }, Xe = (h) => {
    h.transactions.forEach((m, _) => {
      t(16, te[ee][_] = {}, te), Me[ee].forEach((k) => {
        if (!we.includes(k.toLocaleLowerCase())) {
          if (I && x && He.includes(k))
            if (k.includes(".")) {
              let me = k.split(".");
              m[me[0]].forEach((Pe) => {
                Pe[me[1]] = N(Pe, me[1]);
              });
            } else
              m[k] = N(m, k);
          if (new Date(m[k]).getTime() && typeof m[k] != "number" && ke(m, k), k.includes(".")) {
            let me = k.split(".")[0], Pe = k.split(".")[1];
            m[k] = { label: "Multiple", submenu: [] }, m[me].forEach((Ie) => {
              Ie[Pe] && m[k].submenu.push(Ie[Pe]);
            });
          }
          if (k in m)
            return t(16, te[ee][_][k] = m[k], te);
        }
      });
    });
  }, fe = () => {
    if (!M)
      return;
    let h = {};
    M.split(",").forEach((m) => {
      let _ = m.split(":");
      h[_[0].trim()] = _[1].trim();
    }), Object.entries(h).forEach(([m, _]) => be[m] = _);
  }, ke = (h, m) => {
    h[m] = et(h[m]).format(L);
  }, N = (h, m) => {
    let _ = Ze.some(($e) => $e.includes(m)), k = typeof h[m] == "string" ? parseInt(h[m]) : h[m], me = Object.keys(h).find(($e) => $e.includes("currency") || $e.includes("Currency")), Pe = h[me] || x, Ie = I;
    const rt = Ie.match(/\{(\d+)decimals\}/), jt = rt ? parseInt(rt[1], 10) : 2, Ht = rt ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
    k = k.toFixed(jt);
    const [Lt, at] = I.includes(".") ? [",", "."] : [".", ","];
    let [it, Et] = k.split(".");
    return it = it.replace(/\B(?=(\d{3})+(?!\d))/g, Lt), k = `${it}${at}${Et}`, Ie = Ie.replace("{currency}", _ ? "" : be[Pe] || Pe).replace("{amount}", k.split(at)[0]).replace(
      Ht,
      k.split(at)[1]
    ), Ie;
  }, Se = () => {
    Object.keys(oe).forEach((h) => t(17, oe[h] = !1, oe));
  }, O = async (h) => {
    t(17, oe[h] = !oe[h], oe), await Qt();
    const m = pe[h];
    if (ue && m && oe[h]) {
      const k = m.offsetTop + m.offsetHeight - ue.clientHeight;
      ue.scrollTo({ top: k, behavior: "smooth" });
    }
  }, Ye = (h, m) => {
    let _ = 0;
    return m.forEach((k) => {
      h[k]?.submenu && Array.isArray(h[k].submenu) && (_ = Math.max(_, h[k].submenu.length));
    }), Array.from({ length: _ }, (k, me) => me);
  }, Fe = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: Ee
      },
      window.location.href
    );
  }, se = async (h) => h.status === 404 ? (t(3, b = a("checkPeriod")), Promise.reject(b)) : h.status >= 300 ? (ze = await h.json(), u = ze.thirdPartyResponse?.errorCode, t(3, b = a(u || "generalError")), Promise.reject(b)) : h.json(), Te = () => {
    Q.addEventListener("change", Le, !1), U.addEventListener("change", Je, !1);
    const h = (_) => et(new Date(_.year, _.month, _.day)).format(L), m = (_) => {
      const k = et(_, L);
      return {
        year: k.year(),
        month: k.month(),
        day: k.date()
      };
    };
    t(
      0,
      Q.i18n = {
        ...Q.i18n,
        formatDate: h,
        parseDate: m
      },
      Q
    ), t(
      1,
      U.i18n = {
        ...Q.i18n,
        formatDate: h,
        parseDate: m
      },
      U
    );
  };
  Zt(() => () => {
    Q && Q.removeEventListener("change", Le), U && U.removeEventListener("change", Je);
  });
  const q = () => Fe(), y = (h) => Ke(h);
  function z(h) {
    Ue[h ? "unshift" : "push"](() => {
      Q = h, t(0, Q);
    });
  }
  function g(h) {
    Ue[h ? "unshift" : "push"](() => {
      U = h, t(1, U);
    });
  }
  const de = () => Y(), xt = (h) => O(h);
  function Mt(h, m) {
    Ue[h ? "unshift" : "push"](() => {
      pe[m] = h, t(14, pe);
    });
  }
  function zt(h) {
    Ue[h ? "unshift" : "push"](() => {
      ue = h, t(13, ue);
    });
  }
  const Bt = () => Ae(ae, "previous"), At = () => Ae(ae, "next"), Ft = (h) => Be(h), It = () => ve();
  function Rt(h) {
    Ue[h ? "unshift" : "push"](() => {
      X = h, t(2, X);
    });
  }
  return r.$$set = (h) => {
    "endpoint" in h && t(38, o = h.endpoint), "playerid" in h && t(39, n = h.playerid), "session" in h && t(40, i = h.session), "lang" in h && t(41, p = h.lang), "clientstyling" in h && t(42, f = h.clientstyling), "clientstylingurl" in h && t(43, W = h.clientstylingurl), "translationurl" in h && t(44, S = h.translationurl), "mbsource" in h && t(45, R = h.mbsource), "historytypes" in h && t(46, T = h.historytypes), "hidecolumns" in h && t(47, D = h.hidecolumns), "hidevalues" in h && t(48, C = h.hidevalues), "pagesizeoptions" in h && t(49, F = h.pagesizeoptions), "playercurrency" in h && t(50, x = h.playercurrency), "defaultpagesize" in h && t(51, G = h.defaultpagesize), "formatamount" in h && t(52, I = h.formatamount), "customcurrencysymbols" in h && t(53, M = h.customcurrencysymbols), "dateformat" in h && t(54, j = h.dateformat);
  }, r.$$.update = () => {
    r.$$.dirty[1] & /*lang*/
    1024 && p && or(p), r.$$.dirty[1] & /*historytypes*/
    32768 && T && qe(), r.$$.dirty[1] & /*endpoint, playerid, session*/
    896 && o && n && i && Y(), r.$$.dirty[1] & /*customcurrencysymbols*/
    4194304 && M && fe(), r.$$.dirty[0] & /*startCalendar, endCalendar*/
    3 && Q && U && Te(), r.$$.dirty[0] & /*customStylingContainer*/
    4 | r.$$.dirty[1] & /*clientstyling*/
    2048 && f && X && Yt(X, f), r.$$.dirty[0] & /*customStylingContainer*/
    4 | r.$$.dirty[1] & /*clientstylingurl*/
    4096 && W && X && $t(X, W), r.$$.dirty[0] & /*customStylingContainer*/
    4 | r.$$.dirty[1] & /*mbsource*/
    16384 && R && X && er(X, `${R}.Style`), r.$$.dirty[1] & /*translationurl*/
    8192 && S && Ve();
  }, [
    Q,
    U,
    X,
    b,
    d,
    We,
    he,
    ee,
    xe,
    ae,
    ce,
    ie,
    ye,
    ue,
    pe,
    Z,
    te,
    oe,
    P,
    a,
    Ee,
    Ge,
    Me,
    Ne,
    Ce,
    je,
    Oe,
    _e,
    we,
    Qe,
    Ke,
    Y,
    ve,
    Be,
    Ae,
    O,
    Ye,
    Fe,
    o,
    n,
    i,
    p,
    f,
    W,
    S,
    R,
    T,
    D,
    C,
    F,
    x,
    G,
    I,
    M,
    j,
    q,
    y,
    z,
    g,
    de,
    xt,
    Mt,
    zt,
    Bt,
    At,
    Ft,
    It,
    Rt
  ];
}
class zr extends Ot {
  constructor(e) {
    super(), Vt(
      this,
      e,
      Mr,
      xr,
      qt,
      {
        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
      },
      nr,
      [-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();
  }
}
tr(zr, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, historytypes: {}, hidecolumns: {}, hidevalues: {}, pagesizeoptions: {}, playercurrency: {}, defaultpagesize: {}, formatamount: {}, customcurrencysymbols: {}, dateformat: {} }, [], [], !0);
export {
  zr as default
};
