import { a as ge, $ as Te, S as ye, i as ve, s as be, f as q, b as _e, n as Q, d as j, h as H, k as c, p as Fe, q as ke, u as Ce, Q as Me, w as $, j as i, m as O, g as u, Z as ee, e as p, C as oe, D as we, r as Oe, c as K, T as te, l as V, t as L, H as Se, W as xe, v as G, V as ie, x as De, y as ze, z as je, A as He, B as Pe } from "./GeneralLogout-hWNQ3J3o.js";
import "./PlayerAccountSelfExclusion-CY5wEDf5.js";
import { d as ae } from "./PlayerAccountProductRestriction-Cbwqgb-P.js";
import "../stencil/ui-skeleton-CTFP1U_H.js";
function re(o, e) {
  ge(o, e);
}
function Ae(o) {
  Te.set(o);
}
const ne = {
  en: {
    titleTimeout: "Timeout",
    timeoutTextFirst: "{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",
    timeoutTextSecondary: 'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',
    save: "Save",
    CoolOffFor24Hours: "24 hours",
    CoolOffFor72Hours: "72 hours",
    CoolOffFor7Days: "7 days",
    CoolOffFor30Days: "30 days",
    CoolOffFor6Weeks: "6 weeks",
    CoolOffFor2Months: "2 months",
    CoolOffFor3Months: "3 months",
    CoolOffUntilSelectedDate: "Until",
    dateInstructions: "In order to manually input date use the following format:",
    duration: "Duration:",
    confirmationModalTitle: "Confirmation",
    confirmationModalTextPeriodTimeout: "Are you sure you want to cool-off for {period}?",
    confirmationModalTextUntilTimeout: "Are you sure you want to cool-off until {date}?"
  },
  "en-us": {
    titleTimeout: "Timeout",
    timeoutTextFirst: "{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",
    timeoutTextSecondary: 'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',
    save: "Save",
    CoolOffFor24Hours: "24 hours",
    CoolOffFor72Hours: "72 hours",
    CoolOffFor7Days: "7 days",
    CoolOffFor30Days: "30 days",
    CoolOffFor6Weeks: "6 weeks",
    CoolOffFor2Months: "2 months",
    CoolOffFor3Months: "3 months",
    CoolOffUntilSelectedDate: "Until",
    dateInstructions: "In order to manually input date use the following format:",
    duration: "Duration:",
    confirmationModalTitle: "Confirmation",
    confirmationModalTextPeriodTimeout: "Are you sure you want to cool-off for {period}?",
    confirmationModalTextUntilTimeout: "Are you sure you want to cool-off until {date}?"
  },
  "zh-hk": {
    titleTimeout: "Timeout",
    timeoutTextFirst: "{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間，您將無法訪問您的帳戶。",
    timeoutTextSecondary: "請注意，“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題，請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",
    save: "節省",
    CoolOffFor24Hours: "24小時",
    CoolOffFor72Hours: "72小時",
    CoolOffFor7Days: "7天",
    CoolOffFor30Days: "30天",
    CoolOffFor6Weeks: "6週",
    CoolOffFor2Months: "2個月",
    CoolOffFor3Months: "3個月",
    CoolOffUntilSelectedDate: "直到",
    dateInstructions: "如需手動輸入日期，請使用以下格式：",
    duration: "持續時間：",
    confirmationModalTitle: "確認",
    confirmationModalTextPeriodTimeout: "您確定要冷靜 {period} 嗎？",
    confirmationModalTextUntilTimeout: "您確定要冷靜直到 {date} 嗎？"
  },
  fr: {
    titleTimeout: "Délai d'attente",
    timeoutTextFirst: "{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",
    timeoutTextSecondary: `Veuillez noter que l'"installation du temps mort" ne remplace en aucun cas "l'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d'auto exclusion" ou nous contacter dès que possible.`,
    save: "Savez",
    CoolOffFor24Hours: "24 heures",
    CoolOffFor72Hours: "72 heures",
    CoolOffFor7Days: "7 jours",
    CoolOffFor30Days: "30 jours",
    CoolOffFor6Weeks: "6 semaines",
    CoolOffFor2Months: "2 mois",
    CoolOffFor3Months: "3 mois",
    CoolOffUntilSelectedDate: "Jusqu'à",
    dateInstructions: "Pour saisir une date manuellement, utilisez le format suivant :",
    duration: "Durée :",
    confirmationModalTitle: "Confirmation",
    confirmationModalTextPeriodTimeout: "Êtes-vous sûr de vouloir vous refroidir pendant {period} ?",
    confirmationModalTextUntilTimeout: "Êtes-vous sûr de vouloir vous refroidir jusqu'au {date} ?"
  },
  ro: {
    titleTimeout: "Timeout",
    timeoutTextFirst: "{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",
    timeoutTextSecondary: "Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",
    save: "Salvează",
    CoolOffFor24Hours: "24 ore",
    CoolOffFor72Hours: "72 ore",
    CoolOffFor7Days: "7 zile",
    CoolOffFor30Days: "30 zile",
    CoolOffFor6Weeks: "6 săptămâni",
    CoolOffFor2Months: "2 luni",
    CoolOffFor3Months: "3 luni",
    CoolOffUntilSelectedDate: "Până la",
    dateInstructions: "Pentru a introduce manual o dată, utilizați următorul format:",
    duration: "Durată:",
    confirmationModalTitle: "Confirmare",
    confirmationModalTextPeriodTimeout: "Ești sigur că vrei să te răcorești pentru {period}?",
    confirmationModalTextUntilTimeout: "Ești sigur că vrei să te răcorești până la {date}?"
  },
  es: {
    titleTimeout: "Descanso",
    timeoutTextFirst: "{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",
    timeoutTextSecondary: 'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',
    save: "Guardar",
    CoolOffFor24Hours: "24 horas",
    CoolOffFor72Hours: "72 horas",
    CoolOffFor7Days: "7 días",
    CoolOffFor30Days: "30 días",
    CoolOffFor6Weeks: "6 semanas",
    CoolOffFor2Months: "2 meses",
    CoolOffFor3Months: "3 meses",
    CoolOffUntilSelectedDate: "Hasta",
    dateInstructions: "Para ingresar manualmente la fecha, utilice el siguiente formato:",
    duration: "Duración:",
    confirmationModalTitle: "Confirmación",
    confirmationModalTextPeriodTimeout: "¿Estás seguro de que quieres enfriarte por {period}?",
    confirmationModalTextUntilTimeout: "¿Estás seguro de que quieres enfriarte hasta {date}?"
  },
  pt: {
    titleTimeout: "Tempo esgotado",
    timeoutTextFirst: "{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",
    timeoutTextSecondary: 'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',
    save: "Guardar",
    CoolOffFor24Hours: "24 horas",
    CoolOffFor72Hours: "72 horas",
    CoolOffFor7Days: "7 dias",
    CoolOffFor30Days: "30 dias",
    CoolOffFor6Weeks: "6 semanas",
    CoolOffFor2Months: "2 meses",
    CoolOffFor3Months: "3 meses",
    CoolOffUntilSelectedDate: "Até",
    dateInstructions: "Para introduzir manualmente a data, utilize o seguinte formato:",
    duration: "Duração:",
    confirmationModalTitle: "Confirmação",
    confirmationModalTextPeriodTimeout: "Tem a certeza de que deseja se refrescar por {period}?",
    confirmationModalTextUntilTimeout: "Tem a certeza de que deseja se refrescar até {date}?"
  },
  hr: {
    titleTimeout: "Samoisključenje",
    timeoutTextFirst: 'Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Potvrdi".',
    timeoutTextSecondary: "Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja E-mail: {supportemail}",
    save: "Spremi",
    CoolOffFor24Hours: "24 sata",
    CoolOffFor72Hours: "72 sata",
    CoolOffFor7Days: "7 dana",
    CoolOffFor30Days: "30 dana",
    CoolOffFor6Weeks: "6 tjedana",
    CoolOffFor2Months: "2 mjeseca",
    CoolOffFor3Months: "3 mjeseca",
    CoolOffUntilSelectedDate: "Do",
    dateInstructions: "Za ručni unos datuma koristite sljedeći format:",
    duration: "Trajanje:",
    confirmationModalTitle: "Potvrda",
    confirmationModalTextPeriodTimeout: "Jeste li sigurni da se želite rashladiti na {period}?",
    confirmationModalTextUntilTimeout: "Jeste li sigurni da se želite rashladiti do {date}?"
  },
  "pt-br": {
    titleTimeout: "Tempo fora",
    timeoutTextFirst: "{operatorname} oferece uma maneira fácil de pausar o jogo. Você pode solicitar o bloqueio automático da conta por 24 horas. Durante a restrição temporária,no tendrá acceso a su cuenta",
    timeoutTextSecondary: "Observe que o tempo limite não substitui a autoexclusão. Se você acha que tem um problema de dependência de jogo, por favor acesse o link em “Jogo Responsável” e utilize o “Serviço de Autoexclusão” ou entre em contate-nos inmediatamente",
    save: "Manter",
    CoolOffFor24Hours: "24 horas",
    CoolOffFor72Hours: "72 horas",
    CoolOffFor7Days: "7 dias",
    CoolOffFor30Days: "30 dias",
    CoolOffFor6Weeks: "6 semanas",
    CoolOffFor2Months: "2 meses",
    CoolOffFor3Months: "3 meses",
    CoolOffUntilSelectedDate: "Até",
    dateInstructions: "Para inserir manualmente a data, use o seguinte formato:",
    duration: "Duração:",
    confirmationModalTitle: "Confirmação",
    confirmationModalTextPeriodTimeout: "Tem certeza de que deseja se refrescar por {period}?",
    confirmationModalTextUntilTimeout: "Tem certeza de que deseja se refrescar até {date}?"
  },
  "es-mx": {
    titleTimeout: "Tiempo Fuera",
    timeoutTextFirst: "{operatorname} le ofrece una forma fácil de tomar pausa del juego. Puede solicitar bloqueo automático de la cuenta por 24 hrs. Durante la restriccion temporal,no tendrá acceso a su cuenta",
    timeoutTextSecondary: 'Por favor tenga en cuenta que el tiemo-fuera no reemplaza la auto-exclusión. Si usted cree que tiene un problema de adicción al juego," por favor acceda a la liga bajo ""Juego Responsable"" y utilice el ""servicio de Auto-exclusión"" o contáctenos en cuanto antes. "',
    save: "Guardar",
    CoolOffFor24Hours: "24 horas",
    CoolOffFor72Hours: "72 horas",
    CoolOffFor7Days: "7 días",
    CoolOffFor30Days: "30 días",
    CoolOffFor6Weeks: "6 semanas",
    CoolOffFor2Months: "2 meses",
    CoolOffFor3Months: "3 meses",
    CoolOffUntilSelectedDate: "Hasta",
    dateInstructions: "Para ingresar manualmente la fecha, utilice el siguiente formato:",
    duration: "Duración:",
    confirmationModalTitle: "Confirmación",
    confirmationModalTextPeriodTimeout: "¿Está seguro de que desea refrescarse por {period}?",
    confirmationModalTextUntilTimeout: "¿Está seguro de que desea refrescarse hasta {date}?"
  },
  tr: {
    titleTimeout: "Zaman aşımı",
    timeoutTextFirst: "{operatorname} size oyunlara ara vermeniz için kolay bir yol sağlar. Hesabınızın 24 saat süreyle otomatik olarak engellenmesini talep edebilirsiniz. Geçici kısıtlama sırasında Hesabınıza erişemeyeceksiniz.",
    timeoutTextSecondary: "Lütfen 'Mola olanağının' hiçbir durumda 'Kendini ihraç etmenin' yerine geçmediğini unutmayın. Kumar bağımlılığı sorunu yaşadığınızı düşünüyorsanız lütfen Sorumlu Oyun altındaki bağlantıya girin ve 'Kendini men etme hizmetini' kullanın veya en kısa sürede bizimle iletişime geçin.",
    save: "Kaydetmek",
    CoolOffFor24Hours: "24 saat",
    CoolOffFor72Hours: "72 saat",
    CoolOffFor7Days: "7 gün",
    CoolOffFor30Days: "30 gün",
    CoolOffFor6Weeks: "6 hafta",
    CoolOffFor2Months: "2 ay",
    CoolOffFor3Months: "3 ay",
    CoolOffUntilSelectedDate: "Kadar",
    dateInstructions: "Tarihi manuel olarak girmek için şu formatı kullanın:",
    duration: "Süre:",
    confirmationModalTitle: "Onay",
    confirmationModalTextPeriodTimeout: "{period} için kendinizi soğutmak istediğinizden emin misiniz?",
    confirmationModalTextUntilTimeout: "{date} tarihine kadar kendinizi soğutmak istediğinizden emin misiniz?"
  }
};
function qe(o) {
  _e(o, "svelte-u6jylo", `.TimeoutWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.TimeoutDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.TimeoutDateWrapper .TimeoutDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}`);
}
function le(o, e, t) {
  const a = o.slice();
  return a[39] = e[t].value, a;
}
function We(o) {
  let e, t, a, s = (
    /*$_*/
    o[17]("titleTimeout") + ""
  ), r, l, y, g, F = (
    /*$_*/
    o[17]("timeoutTextFirst", {
      values: {
        operatorname: (
          /*operator*/
          o[0]
        ),
        baseurl: (
          /*baseurl*/
          o[6]
        ),
        lang: (
          /*lang*/
          o[1]
        )
      }
    }) + ""
  ), v, b, T = (
    /*$_*/
    o[17]("timeoutTextSecondary", {
      values: {
        supportemail: (
          /*supportemail*/
          o[5]
        ),
        baseurl: (
          /*baseurl*/
          o[6]
        ),
        lang: (
          /*lang*/
          o[1]
        )
      }
    }) + ""
  ), h, f, d, x, W, D, k, S = (
    /*$_*/
    o[17]("save") + ""
  ), z, B, R, I, E, P = (
    /*isMobile*/
    o[18] && Ue(o)
  ), U = oe(
    /*timeoutOptions*/
    o[9]
  ), C = [];
  for (let m = 0; m < U.length; m += 1)
    C[m] = se(le(o, U, m));
  let M = (
    /*isUntilDate*/
    o[11] && ue(o)
  ), A = (
    /*showConfirmationModal*/
    o[19] && Be(o)
  );
  return {
    c() {
      e = c("form"), P && P.c(), t = O(), a = c("h2"), r = L(s), l = O(), y = c("div"), g = c("p"), v = O(), b = c("p"), h = O(), f = c("div"), d = c("select");
      for (let m = 0; m < C.length; m += 1)
        C[m].c();
      x = O(), M && M.c(), W = O(), D = c("div"), k = c("button"), z = L(S), B = O(), A && A.c(), R = Se(), p(a, "class", "TimeoutTitle " + /*isMobile*/
      (o[18] ? "TimeoutTitleNone" : "")), p(y, "class", "TimeoutDescription " + /*isMobile*/
      (o[18] ? "TimeoutDescriptionMobile" : "")), p(d, "class", "TimeoutSelect " + /*isMobile*/
      (o[18] ? "TimeoutSelectMobile" : "")), /*timeoutSelected*/
      o[10] === void 0 && xe(() => (
        /*select_change_handler*/
        o[27].call(d)
      )), p(f, "class", "TimeoutSelectWrapper"), p(k, "class", "TimeoutSave"), p(D, "class", "TimeoutActionButtons " + /*isMobile*/
      (o[18] ? "TimeoutActionButtonsMobile" : "")), p(e, "class", "TimeoutWrapper " + /*isMobile*/
      (o[18] ? "TimeoutWrapperMobile" : ""));
    },
    m(m, w) {
      H(m, e, w), P && P.m(e, null), i(e, t), i(e, a), i(a, r), i(e, l), i(e, y), i(y, g), g.innerHTML = F, i(y, v), i(y, b), b.innerHTML = T, i(e, h), i(e, f), i(f, d);
      for (let _ = 0; _ < C.length; _ += 1)
        C[_] && C[_].m(d, null);
      te(
        d,
        /*timeoutSelected*/
        o[10],
        !0
      ), i(e, x), M && M.m(e, null), i(e, W), i(e, D), i(D, k), i(k, z), H(m, B, w), A && A.m(m, w), H(m, R, w), I || (E = [
        V(
          d,
          "change",
          /*select_change_handler*/
          o[27]
        ),
        V(
          d,
          "change",
          /*selectPeriod*/
          o[22]
        ),
        V(
          k,
          "click",
          /*click_handler_1*/
          o[29]
        )
      ], I = !0);
    },
    p(m, w) {
      if (
        /*isMobile*/
        m[18] && P.p(m, w), w[0] & /*$_*/
        131072 && s !== (s = /*$_*/
        m[17]("titleTimeout") + "") && K(r, s), w[0] & /*$_, operator, baseurl, lang*/
        131139 && F !== (F = /*$_*/
        m[17]("timeoutTextFirst", {
          values: {
            operatorname: (
              /*operator*/
              m[0]
            ),
            baseurl: (
              /*baseurl*/
              m[6]
            ),
            lang: (
              /*lang*/
              m[1]
            )
          }
        }) + "") && (g.innerHTML = F), w[0] & /*$_, supportemail, baseurl, lang*/
        131170 && T !== (T = /*$_*/
        m[17]("timeoutTextSecondary", {
          values: {
            supportemail: (
              /*supportemail*/
              m[5]
            ),
            baseurl: (
              /*baseurl*/
              m[6]
            ),
            lang: (
              /*lang*/
              m[1]
            )
          }
        }) + "") && (b.innerHTML = T), w[0] & /*timeoutOptions, $_*/
        131584
      ) {
        U = oe(
          /*timeoutOptions*/
          m[9]
        );
        let _;
        for (_ = 0; _ < U.length; _ += 1) {
          const N = le(m, U, _);
          C[_] ? C[_].p(N, w) : (C[_] = se(N), C[_].c(), C[_].m(d, null));
        }
        for (; _ < C.length; _ += 1)
          C[_].d(1);
        C.length = U.length;
      }
      w[0] & /*timeoutSelected, timeoutOptions*/
      1536 && te(
        d,
        /*timeoutSelected*/
        m[10]
      ), /*isUntilDate*/
      m[11] ? M ? M.p(m, w) : (M = ue(m), M.c(), M.m(e, W)) : M && (M.d(1), M = null), w[0] & /*$_*/
      131072 && S !== (S = /*$_*/
      m[17]("save") + "") && K(z, S), /*showConfirmationModal*/
      m[19] && A.p(m, w);
    },
    d(m) {
      m && (j(e), j(B), j(R)), P && P.d(), we(C, m), M && M.d(), A && A.d(m), I = !1, Oe(E);
    }
  };
}
function Ee(o) {
  let e, t, a, s, r, l, y, g, F, v, b, T, h, f, d, x;
  function W(S, z) {
    return (
      /*isMobile*/
      S[18] ? Le : Ie
    );
  }
  let k = W(o)(o);
  return {
    c() {
      e = c("div"), k.c(), t = O(), a = c("div"), s = c("ui-skeleton"), r = O(), l = c("div"), y = O(), g = c("ui-skeleton"), F = O(), v = c("div"), b = O(), T = c("div"), h = c("ui-skeleton"), f = O(), d = c("div"), x = c("ui-skeleton"), u(s, "structure", "text"), u(
        s,
        "height",
        /*isMobile*/
        o[18] ? "15px" : "20px"
      ), u(s, "rows", "3"), u(s, "width", "100%"), ee(
        l,
        "height",
        /*isMobile*/
        o[18] ? "10px" : "30px"
      ), u(g, "structure", "text"), u(
        g,
        "height",
        /*isMobile*/
        o[18] ? "15px" : "20px"
      ), u(g, "rows", "3"), u(g, "width", "100%"), ee(
        v,
        "height",
        /*isMobile*/
        o[18] ? "10px" : "30px"
      ), p(a, "class", "TimeoutDescription"), u(h, "structure", "rectangle"), u(
        h,
        "width",
        /*isMobile*/
        o[18] ? "100%" : "50%"
      ), u(
        h,
        "height",
        /*isMobile*/
        o[18] ? "30px" : "44px"
      ), u(h, "margin-bottom", "16px"), p(T, "class", "TimeoutSelectWrapper"), u(x, "structure", "rectangle"), u(x, "width", "100%"), u(
        x,
        "height",
        /*isMobile*/
        o[18] ? "35px" : "50px"
      ), p(d, "class", "TimeoutActionButtons " + /*isMobile*/
      (o[18] ? "TimeoutActionButtonsMobile" : "")), p(e, "class", "TimeoutWrapper " + /*isMobile*/
      (o[18] ? "TimeoutWrapperMobile" : ""));
    },
    m(S, z) {
      H(S, e, z), k.m(e, null), i(e, t), i(e, a), i(a, s), i(a, r), i(a, l), i(a, y), i(a, g), i(a, F), i(a, v), i(e, b), i(e, T), i(T, h), i(e, f), i(e, d), i(d, x);
    },
    p: Q,
    d(S) {
      S && j(e), k.d();
    }
  };
}
function Ue(o) {
  let e, t, a, s, r, l, y, g, F, v, b = (
    /*$_*/
    o[17]("titleTimeout") + ""
  ), T, h, f;
  return {
    c() {
      e = c("div"), t = G("svg"), a = G("defs"), s = G("style"), r = L(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), l = G("g"), y = G("g"), g = G("path"), F = O(), v = c("h2"), T = L(b), p(g, "class", "aaa"), p(g, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), p(g, "transform", "translate(15 15) rotate(180)"), p(y, "transform", "translate(20 158)"), p(l, "transform", "translate(-20 -158)"), p(t, "xmlns", "http://www.w3.org/2000/svg"), p(t, "width", "15"), p(t, "height", "15"), p(t, "viewBox", "0 0 15 15"), p(v, "class", "TimeoutTitleMobile"), p(v, "part", "TimeoutTitleMobile"), p(e, "class", "MenuReturnButton"), p(e, "part", "MenuReturnButton");
    },
    m(d, x) {
      H(d, e, x), i(e, t), i(t, a), i(a, s), i(s, r), i(t, l), i(l, y), i(y, g), i(e, F), i(e, v), i(v, T), h || (f = V(
        e,
        "click",
        /*click_handler*/
        o[26]
      ), h = !0);
    },
    p(d, x) {
      x[0] & /*$_*/
      131072 && b !== (b = /*$_*/
      d[17]("titleTimeout") + "") && K(T, b);
    },
    d(d) {
      d && j(e), h = !1, f();
    }
  };
}
function se(o) {
  let e, t = (
    /*$_*/
    o[17](
      /*value*/
      o[39]
    ) + ""
  ), a, s;
  return {
    c() {
      e = c("option"), a = L(t), e.__value = s = /*value*/
      o[39], ie(e, e.__value);
    },
    m(r, l) {
      H(r, e, l), i(e, a);
    },
    p(r, l) {
      l[0] & /*$_, timeoutOptions*/
      131584 && t !== (t = /*$_*/
      r[17](
        /*value*/
        r[39]
      ) + "") && K(a, t), l[0] & /*timeoutOptions*/
      512 && s !== (s = /*value*/
      r[39]) && (e.__value = s, ie(e, e.__value));
    },
    d(r) {
      r && j(e);
    }
  };
}
function ue(o) {
  let e, t, a = (
    /*$_*/
    o[17]("duration") + ""
  ), s, r, l, y = (
    /*$_*/
    o[17]("dateInstructions") + ""
  ), g, F, v, b, T;
  return {
    c() {
      e = c("div"), t = c("label"), s = L(a), r = O(), l = c("span"), g = L(y), F = O(), v = c("strong"), v.innerHTML = "MM/DD/YYYY<strong></strong>", b = O(), T = c("vaadin-date-picker"), p(t, "for", "TimeoutDate"), p(l, "class", "TimeoutDateInstructions"), u(
        T,
        "min",
        /*minDate*/
        o[13]
      ), u(
        T,
        "max",
        /*maxDate*/
        o[14]
      ), u(
        T,
        "value",
        /*minDate*/
        o[13]
      ), p(e, "class", "TimeoutDateWrapper " + /*isMobile*/
      (o[18] ? "TimeoutDateWrapperMobile" : ""));
    },
    m(h, f) {
      H(h, e, f), i(e, t), i(t, s), i(e, r), i(e, l), i(l, g), i(l, F), i(l, v), i(e, b), i(e, T), o[28](T);
    },
    p(h, f) {
      f[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      h[17]("duration") + "") && K(s, a), f[0] & /*$_*/
      131072 && y !== (y = /*$_*/
      h[17]("dateInstructions") + "") && K(g, y), f[0] & /*minDate*/
      8192 && u(
        T,
        "min",
        /*minDate*/
        h[13]
      ), f[0] & /*maxDate*/
      16384 && u(
        T,
        "max",
        /*maxDate*/
        h[14]
      ), f[0] & /*minDate*/
      8192 && u(
        T,
        "value",
        /*minDate*/
        h[13]
      );
    },
    d(h) {
      h && j(e), o[28](null);
    }
  };
}
function Be(o) {
  let e, t, a, s;
  return {
    c() {
      e = c("player-account-modal"), t = c("player-account-general-confirmation-modal"), u(t, "modalTitle", a = /*$_*/
      o[17]("confirmationModalTitle")), u(
        t,
        "modalText",
        /*confirmationModalText*/
        o[15]
      ), u(t, "hascancelbutton", !1), u(t, "modalconfirmevent", s = {
        type: "SetPlayerAccountTimeout",
        timeoutSelected: (
          /*timeoutSelected*/
          o[10]
        ),
        timeoutExpiryDate: (
          /*timeoutExpiryDate*/
          o[12]
        )
      }), u(
        t,
        "mbsource",
        /*mbsource*/
        o[4]
      ), u(
        t,
        "lang",
        /*lang*/
        o[1]
      ), u(
        e,
        "clientstyling",
        /*clientstyling*/
        o[2]
      ), u(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        o[3]
      ), u(
        e,
        "mbsource",
        /*mbsource*/
        o[4]
      ), u(e, "showmodaleventname", "ShowTimeoutConfirmationModal");
    },
    m(r, l) {
      H(r, e, l), i(e, t);
    },
    p(r, l) {
      l[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      r[17]("confirmationModalTitle")) && u(t, "modalTitle", a), l[0] & /*confirmationModalText*/
      32768 && u(
        t,
        "modalText",
        /*confirmationModalText*/
        r[15]
      ), l[0] & /*timeoutSelected, timeoutExpiryDate, timeoutOptions*/
      5632 && s !== (s = {
        type: "SetPlayerAccountTimeout",
        timeoutSelected: (
          /*timeoutSelected*/
          r[10]
        ),
        timeoutExpiryDate: (
          /*timeoutExpiryDate*/
          r[12]
        )
      }) && u(t, "modalconfirmevent", s), l[0] & /*mbsource*/
      16 && u(
        t,
        "mbsource",
        /*mbsource*/
        r[4]
      ), l[0] & /*lang*/
      2 && u(
        t,
        "lang",
        /*lang*/
        r[1]
      ), l[0] & /*clientstyling*/
      4 && u(
        e,
        "clientstyling",
        /*clientstyling*/
        r[2]
      ), l[0] & /*clientstylingurl*/
      8 && u(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        r[3]
      ), l[0] & /*mbsource*/
      16 && u(
        e,
        "mbsource",
        /*mbsource*/
        r[4]
      );
    },
    d(r) {
      r && j(e);
    }
  };
}
function Ie(o) {
  let e;
  return {
    c() {
      e = c("ui-skeleton"), u(e, "structure", "title"), u(e, "width", "100px"), u(e, "margin-top", "20px"), u(e, "margin-bottom", "20px");
    },
    m(t, a) {
      H(t, e, a);
    },
    d(t) {
      t && j(e);
    }
  };
}
function Le(o) {
  let e;
  return {
    c() {
      e = c("div"), e.innerHTML = '<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>', p(e, "class", "MenuReturnButton");
    },
    m(t, a) {
      H(t, e, a);
    },
    d(t) {
      t && j(e);
    }
  };
}
function Re(o) {
  let e;
  function t(r, l) {
    return (
      /*skeletonLoading*/
      r[16] ? Ee : We
    );
  }
  let a = t(o), s = a(o);
  return {
    c() {
      e = c("div"), s.c();
    },
    m(r, l) {
      H(r, e, l), s.m(e, null), o[30](e);
    },
    p(r, l) {
      a === (a = t(r)) && s ? s.p(r, l) : (s.d(1), s = a(r), s && (s.c(), s.m(e, null)));
    },
    i: Q,
    o: Q,
    d(r) {
      r && j(e), s.d(), o[30](null);
    }
  };
}
function Ye(o, e, t) {
  let a;
  Fe(o, Pe, (n) => t(17, a = n));
  let { operator: s = "Everymatrix" } = e, { lang: r = "en" } = e, { clientstyling: l = "" } = e, { clientstylingurl: y = "" } = e, { mbsource: g } = e, { translationurl: F = "" } = e, { supportemail: v = "" } = e, { endpoint: b = "" } = e, { baseurl: T = "" } = e, { hasconfirmationmodal: h = "false" } = e, f, d, x = window.navigator.userAgent, W = ke(x) !== "PC", D = [
    {
      value: "CoolOffFor24Hours",
      dateSelector: !1
    },
    {
      value: "CoolOffFor7Days",
      dateSelector: !1
    },
    {
      value: "CoolOffFor30Days",
      dateSelector: !1
    },
    {
      value: "CoolOffFor3Months",
      dateSelector: !1
    }
  ], k = D[0].value, S = !1, z = "", B, R, I = "", E = h === "true", P = !0;
  const U = () => {
    fetch(F).then((n) => n.json()).then((n) => {
      Object.keys(n).forEach((Y) => {
        re(Y, n[Y]);
      });
    }).catch((n) => {
      console.log(n);
    });
  };
  Object.keys(ne).forEach((n) => {
    re(n, ne[n]);
  });
  const C = () => {
    const n = new URL("/v1/player/coolOffSettings", b), Y = { method: "GET" };
    fetch(n.href, Y).then((J) => {
      if (!J.ok)
        throw new Error("There was an error while fetching the configuration");
      return J.json();
    }).then((J) => {
      const { periods: X } = J;
      X && t(9, D = X.map((Z) => ({
        value: Z.key,
        text: Z.text,
        dateSelector: Z.dateSelector
      })));
    }).catch((J) => {
      console.log(J);
    }).finally(() => {
      t(16, P = !1), t(10, k = D[0].value);
    });
  }, M = () => {
    if (!E) {
      t(15, I = "");
      return;
    }
    t(15, I = S ? a("confirmationModalTextUntilTimeout", { values: { date: z } }) : a("confirmationModalTextPeriodTimeout", { values: { period: a(k) } }));
  }, A = (n) => {
    n.preventDefault(), E ? window.postMessage({ type: "ShowTimeoutConfirmationModal" }, window.location.href) : window.postMessage(
      {
        type: "SetPlayerAccountTimeout",
        timeoutSelected: k,
        timeoutExpiryDate: z
      },
      window.location.href
    );
  }, m = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: W
      },
      window.location.href
    );
  }, w = () => {
    Ae(r), C();
  }, _ = () => {
    const n = D.find((Y) => Y.value === k);
    t(11, S = !1), n.dateSelector && (t(11, S = !0), t(13, B = ae().format("YYYY-MM-DD")), t(14, R = ae().add(6, "months").format("YYYY-MM-DD")), t(12, z = B)), E && M();
  }, N = (n) => {
    t(12, z = n.target.value);
  }, me = () => {
    d.addEventListener("change", N, !1);
  };
  Ce(() => () => {
    d.removeEventListener("change", N);
  });
  const ce = () => m();
  function fe() {
    k = Me(this), t(10, k), t(9, D);
  }
  function de(n) {
    $[n ? "unshift" : "push"](() => {
      d = n, t(8, d);
    });
  }
  const pe = (n) => A(n);
  function he(n) {
    $[n ? "unshift" : "push"](() => {
      f = n, t(7, f);
    });
  }
  return o.$$set = (n) => {
    "operator" in n && t(0, s = n.operator), "lang" in n && t(1, r = n.lang), "clientstyling" in n && t(2, l = n.clientstyling), "clientstylingurl" in n && t(3, y = n.clientstylingurl), "mbsource" in n && t(4, g = n.mbsource), "translationurl" in n && t(23, F = n.translationurl), "supportemail" in n && t(5, v = n.supportemail), "endpoint" in n && t(24, b = n.endpoint), "baseurl" in n && t(6, T = n.baseurl), "hasconfirmationmodal" in n && t(25, h = n.hasconfirmationmodal);
  }, o.$$.update = () => {
    o.$$.dirty[0] & /*calendar*/
    256 && d && me(), o.$$.dirty[0] & /*lang*/
    2 && r && w(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    132 && l && f && De(f, l), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    136 && y && f && ze(f, y), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
    144 && g && f && je(f, `${g}.Style`), o.$$.dirty[0] & /*translationurl*/
    8388608 && F && U();
  }, E && M(), [
    s,
    r,
    l,
    y,
    g,
    v,
    T,
    f,
    d,
    D,
    k,
    S,
    z,
    B,
    R,
    I,
    P,
    a,
    W,
    E,
    A,
    m,
    _,
    F,
    b,
    h,
    ce,
    fe,
    de,
    pe,
    he
  ];
}
class Je extends ye {
  constructor(e) {
    super(), ve(
      this,
      e,
      Ye,
      Re,
      be,
      {
        operator: 0,
        lang: 1,
        clientstyling: 2,
        clientstylingurl: 3,
        mbsource: 4,
        translationurl: 23,
        supportemail: 5,
        endpoint: 24,
        baseurl: 6,
        hasconfirmationmodal: 25
      },
      qe,
      [-1, -1]
    );
  }
  get operator() {
    return this.$$.ctx[0];
  }
  set operator(e) {
    this.$$set({ operator: e }), q();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), q();
  }
  get clientstyling() {
    return this.$$.ctx[2];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), q();
  }
  get clientstylingurl() {
    return this.$$.ctx[3];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), q();
  }
  get mbsource() {
    return this.$$.ctx[4];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), q();
  }
  get translationurl() {
    return this.$$.ctx[23];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), q();
  }
  get supportemail() {
    return this.$$.ctx[5];
  }
  set supportemail(e) {
    this.$$set({ supportemail: e }), q();
  }
  get endpoint() {
    return this.$$.ctx[24];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), q();
  }
  get baseurl() {
    return this.$$.ctx[6];
  }
  set baseurl(e) {
    this.$$set({ baseurl: e }), q();
  }
  get hasconfirmationmodal() {
    return this.$$.ctx[25];
  }
  set hasconfirmationmodal(e) {
    this.$$set({ hasconfirmationmodal: e }), q();
  }
}
He(Je, { operator: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, supportemail: {}, endpoint: {}, baseurl: {}, hasconfirmationmodal: {} }, [], [], !0);
export {
  Je as default
};
