import { a as he, $ as ge, S as Te, i as ve, s as ye, f as U, b as be, n as $, d as P, h as A, k as f, p as _e, q as Fe, u as ke, Q as Ce, w as oe, j as i, m as w, g as u, Z as te, e as d, C as ie, D as Me, r as we, c as I, T as ae, l as Q, t as B, H as Oe, W as xe, v as K, V as re, x as Se, y as De, z as ze, A as je, B as Pe } from "./GeneralLogout-hWNQ3J3o.js";
import "./PlayerAccountSelfExclusion-CY5wEDf5.js";
import { d as ne } from "./PlayerAccountProductRestriction-Cbwqgb-P.js";
import "../stencil/ui-skeleton-CTFP1U_H.js";
function le(o, e) {
  he(o, e);
}
function Ae(o) {
  ge.set(o);
}
const se = {
  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) {
  be(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 ue(o, e, t) {
  const a = o.slice();
  return a[38] = e[t].value, a;
}
function He(o) {
  let e, t, a, s = (
    /*$_*/
    o[16]("titleTimeout") + ""
  ), r, l, g, h, _ = (
    /*$_*/
    o[16]("timeoutTextFirst", {
      values: { operatorname: (
        /*operator*/
        o[0]
      ) }
    }) + ""
  ), v, k, p, c = (
    /*$_*/
    o[16]("timeoutTextSecondary", {
      values: { supportemail: (
        /*supportemail*/
        o[5]
      ) }
    }) + ""
  ), T, S, C, y, j, D, O, z, R = (
    /*$_*/
    o[16]("save") + ""
  ), Y, H, L, N, V, q = (
    /*isMobile*/
    o[17] && Ee(o)
  ), W = ie(
    /*timeoutOptions*/
    o[8]
  ), F = [];
  for (let m = 0; m < W.length; m += 1)
    F[m] = me(ue(o, W, m));
  let x = (
    /*isUntilDate*/
    o[10] && ce(o)
  ), E = (
    /*showConfirmationModal*/
    o[18] && Ue(o)
  );
  return {
    c() {
      e = f("form"), q && q.c(), t = w(), a = f("h2"), r = B(s), l = w(), g = f("div"), h = f("p"), v = B(_), k = w(), p = f("p"), T = B(c), S = w(), C = f("div"), y = f("select");
      for (let m = 0; m < F.length; m += 1)
        F[m].c();
      j = w(), x && x.c(), D = w(), O = f("div"), z = f("button"), Y = B(R), H = w(), E && E.c(), L = Oe(), d(a, "class", "TimeoutTitle " + /*isMobile*/
      (o[17] ? "TimeoutTitleNone" : "")), d(g, "class", "TimeoutDescription " + /*isMobile*/
      (o[17] ? "TimeoutDescriptionMobile" : "")), d(y, "class", "TimeoutSelect " + /*isMobile*/
      (o[17] ? "TimeoutSelectMobile" : "")), /*timeoutSelected*/
      o[9] === void 0 && xe(() => (
        /*select_change_handler*/
        o[26].call(y)
      )), d(C, "class", "TimeoutSelectWrapper"), d(z, "class", "TimeoutSave"), d(O, "class", "TimeoutActionButtons " + /*isMobile*/
      (o[17] ? "TimeoutActionButtonsMobile" : "")), d(e, "class", "TimeoutWrapper " + /*isMobile*/
      (o[17] ? "TimeoutWrapperMobile" : ""));
    },
    m(m, M) {
      A(m, e, M), q && q.m(e, null), i(e, t), i(e, a), i(a, r), i(e, l), i(e, g), i(g, h), i(h, v), i(g, k), i(g, p), i(p, T), i(e, S), i(e, C), i(C, y);
      for (let b = 0; b < F.length; b += 1)
        F[b] && F[b].m(y, null);
      ae(
        y,
        /*timeoutSelected*/
        o[9],
        !0
      ), i(e, j), x && x.m(e, null), i(e, D), i(e, O), i(O, z), i(z, Y), A(m, H, M), E && E.m(m, M), A(m, L, M), N || (V = [
        Q(
          y,
          "change",
          /*select_change_handler*/
          o[26]
        ),
        Q(
          y,
          "change",
          /*selectPeriod*/
          o[21]
        ),
        Q(
          z,
          "click",
          /*click_handler_1*/
          o[28]
        )
      ], N = !0);
    },
    p(m, M) {
      if (
        /*isMobile*/
        m[17] && q.p(m, M), M[0] & /*$_*/
        65536 && s !== (s = /*$_*/
        m[16]("titleTimeout") + "") && I(r, s), M[0] & /*$_, operator*/
        65537 && _ !== (_ = /*$_*/
        m[16]("timeoutTextFirst", {
          values: { operatorname: (
            /*operator*/
            m[0]
          ) }
        }) + "") && I(v, _), M[0] & /*$_, supportemail*/
        65568 && c !== (c = /*$_*/
        m[16]("timeoutTextSecondary", {
          values: { supportemail: (
            /*supportemail*/
            m[5]
          ) }
        }) + "") && I(T, c), M[0] & /*timeoutOptions, $_*/
        65792
      ) {
        W = ie(
          /*timeoutOptions*/
          m[8]
        );
        let b;
        for (b = 0; b < W.length; b += 1) {
          const Z = ue(m, W, b);
          F[b] ? F[b].p(Z, M) : (F[b] = me(Z), F[b].c(), F[b].m(y, null));
        }
        for (; b < F.length; b += 1)
          F[b].d(1);
        F.length = W.length;
      }
      M[0] & /*timeoutSelected, timeoutOptions*/
      768 && ae(
        y,
        /*timeoutSelected*/
        m[9]
      ), /*isUntilDate*/
      m[10] ? x ? x.p(m, M) : (x = ce(m), x.c(), x.m(e, D)) : x && (x.d(1), x = null), M[0] & /*$_*/
      65536 && R !== (R = /*$_*/
      m[16]("save") + "") && I(Y, R), /*showConfirmationModal*/
      m[18] && E.p(m, M);
    },
    d(m) {
      m && (P(e), P(H), P(L)), q && q.d(), Me(F, m), x && x.d(), E && E.d(m), N = !1, we(V);
    }
  };
}
function We(o) {
  let e, t, a, s, r, l, g, h, _, v, k, p, c, T, S, C;
  function y(O, z) {
    return (
      /*isMobile*/
      O[17] ? Ie : Be
    );
  }
  let D = y(o)(o);
  return {
    c() {
      e = f("div"), D.c(), t = w(), a = f("div"), s = f("ui-skeleton"), r = w(), l = f("div"), g = w(), h = f("ui-skeleton"), _ = w(), v = f("div"), k = w(), p = f("div"), c = f("ui-skeleton"), T = w(), S = f("div"), C = f("ui-skeleton"), u(s, "structure", "text"), u(
        s,
        "height",
        /*isMobile*/
        o[17] ? "15px" : "20px"
      ), u(s, "rows", "3"), u(s, "width", "100%"), te(
        l,
        "height",
        /*isMobile*/
        o[17] ? "10px" : "30px"
      ), u(h, "structure", "text"), u(
        h,
        "height",
        /*isMobile*/
        o[17] ? "15px" : "20px"
      ), u(h, "rows", "3"), u(h, "width", "100%"), te(
        v,
        "height",
        /*isMobile*/
        o[17] ? "10px" : "30px"
      ), d(a, "class", "TimeoutDescription"), u(c, "structure", "rectangle"), u(
        c,
        "width",
        /*isMobile*/
        o[17] ? "100%" : "50%"
      ), u(
        c,
        "height",
        /*isMobile*/
        o[17] ? "30px" : "44px"
      ), u(c, "margin-bottom", "16px"), d(p, "class", "TimeoutSelectWrapper"), u(C, "structure", "rectangle"), u(C, "width", "100%"), u(
        C,
        "height",
        /*isMobile*/
        o[17] ? "35px" : "50px"
      ), d(S, "class", "TimeoutActionButtons " + /*isMobile*/
      (o[17] ? "TimeoutActionButtonsMobile" : "")), d(e, "class", "TimeoutWrapper " + /*isMobile*/
      (o[17] ? "TimeoutWrapperMobile" : ""));
    },
    m(O, z) {
      A(O, e, z), D.m(e, null), i(e, t), i(e, a), i(a, s), i(a, r), i(a, l), i(a, g), i(a, h), i(a, _), i(a, v), i(e, k), i(e, p), i(p, c), i(e, T), i(e, S), i(S, C);
    },
    p: $,
    d(O) {
      O && P(e), D.d();
    }
  };
}
function Ee(o) {
  let e, t, a, s, r, l, g, h, _, v, k = (
    /*$_*/
    o[16]("titleTimeout") + ""
  ), p, c, T;
  return {
    c() {
      e = f("div"), t = K("svg"), a = K("defs"), s = K("style"), r = B(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), l = K("g"), g = K("g"), h = K("path"), _ = w(), v = f("h2"), p = B(k), d(h, "class", "aaa"), d(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(h, "transform", "translate(15 15) rotate(180)"), d(g, "transform", "translate(20 158)"), d(l, "transform", "translate(-20 -158)"), d(t, "xmlns", "http://www.w3.org/2000/svg"), d(t, "width", "15"), d(t, "height", "15"), d(t, "viewBox", "0 0 15 15"), d(v, "class", "TimeoutTitleMobile"), d(v, "part", "TimeoutTitleMobile"), d(e, "class", "MenuReturnButton"), d(e, "part", "MenuReturnButton");
    },
    m(S, C) {
      A(S, e, C), i(e, t), i(t, a), i(a, s), i(s, r), i(t, l), i(l, g), i(g, h), i(e, _), i(e, v), i(v, p), c || (T = Q(
        e,
        "click",
        /*click_handler*/
        o[25]
      ), c = !0);
    },
    p(S, C) {
      C[0] & /*$_*/
      65536 && k !== (k = /*$_*/
      S[16]("titleTimeout") + "") && I(p, k);
    },
    d(S) {
      S && P(e), c = !1, T();
    }
  };
}
function me(o) {
  let e, t = (
    /*$_*/
    o[16](
      /*value*/
      o[38]
    ) + ""
  ), a, s;
  return {
    c() {
      e = f("option"), a = B(t), e.__value = s = /*value*/
      o[38], re(e, e.__value);
    },
    m(r, l) {
      A(r, e, l), i(e, a);
    },
    p(r, l) {
      l[0] & /*$_, timeoutOptions*/
      65792 && t !== (t = /*$_*/
      r[16](
        /*value*/
        r[38]
      ) + "") && I(a, t), l[0] & /*timeoutOptions*/
      256 && s !== (s = /*value*/
      r[38]) && (e.__value = s, re(e, e.__value));
    },
    d(r) {
      r && P(e);
    }
  };
}
function ce(o) {
  let e, t, a = (
    /*$_*/
    o[16]("duration") + ""
  ), s, r, l, g = (
    /*$_*/
    o[16]("dateInstructions") + ""
  ), h, _, v, k, p;
  return {
    c() {
      e = f("div"), t = f("label"), s = B(a), r = w(), l = f("span"), h = B(g), _ = w(), v = f("strong"), v.innerHTML = "MM/DD/YYYY<strong></strong>", k = w(), p = f("vaadin-date-picker"), d(t, "for", "TimeoutDate"), d(l, "class", "TimeoutDateInstructions"), u(
        p,
        "min",
        /*minDate*/
        o[12]
      ), u(
        p,
        "max",
        /*maxDate*/
        o[13]
      ), u(
        p,
        "value",
        /*minDate*/
        o[12]
      ), d(e, "class", "TimeoutDateWrapper " + /*isMobile*/
      (o[17] ? "TimeoutDateWrapperMobile" : ""));
    },
    m(c, T) {
      A(c, e, T), i(e, t), i(t, s), i(e, r), i(e, l), i(l, h), i(l, _), i(l, v), i(e, k), i(e, p), o[27](p);
    },
    p(c, T) {
      T[0] & /*$_*/
      65536 && a !== (a = /*$_*/
      c[16]("duration") + "") && I(s, a), T[0] & /*$_*/
      65536 && g !== (g = /*$_*/
      c[16]("dateInstructions") + "") && I(h, g), T[0] & /*minDate*/
      4096 && u(
        p,
        "min",
        /*minDate*/
        c[12]
      ), T[0] & /*maxDate*/
      8192 && u(
        p,
        "max",
        /*maxDate*/
        c[13]
      ), T[0] & /*minDate*/
      4096 && u(
        p,
        "value",
        /*minDate*/
        c[12]
      );
    },
    d(c) {
      c && P(e), o[27](null);
    }
  };
}
function Ue(o) {
  let e, t, a, s;
  return {
    c() {
      e = f("player-account-modal"), t = f("player-account-general-confirmation-modal"), u(t, "modalTitle", a = /*$_*/
      o[16]("confirmationModalTitle")), u(
        t,
        "modalText",
        /*confirmationModalText*/
        o[14]
      ), u(t, "hascancelbutton", !1), u(t, "modalconfirmevent", s = {
        type: "SetPlayerAccountTimeout",
        timeoutSelected: (
          /*timeoutSelected*/
          o[9]
        ),
        timeoutExpiryDate: (
          /*timeoutExpiryDate*/
          o[11]
        )
      }), 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) {
      A(r, e, l), i(e, t);
    },
    p(r, l) {
      l[0] & /*$_*/
      65536 && a !== (a = /*$_*/
      r[16]("confirmationModalTitle")) && u(t, "modalTitle", a), l[0] & /*confirmationModalText*/
      16384 && u(
        t,
        "modalText",
        /*confirmationModalText*/
        r[14]
      ), l[0] & /*timeoutSelected, timeoutExpiryDate, timeoutOptions*/
      2816 && s !== (s = {
        type: "SetPlayerAccountTimeout",
        timeoutSelected: (
          /*timeoutSelected*/
          r[9]
        ),
        timeoutExpiryDate: (
          /*timeoutExpiryDate*/
          r[11]
        )
      }) && 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 && P(e);
    }
  };
}
function Be(o) {
  let e;
  return {
    c() {
      e = f("ui-skeleton"), u(e, "structure", "title"), u(e, "width", "100px"), u(e, "margin-top", "20px"), u(e, "margin-bottom", "20px");
    },
    m(t, a) {
      A(t, e, a);
    },
    d(t) {
      t && P(e);
    }
  };
}
function Ie(o) {
  let e;
  return {
    c() {
      e = f("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>', d(e, "class", "MenuReturnButton");
    },
    m(t, a) {
      A(t, e, a);
    },
    d(t) {
      t && P(e);
    }
  };
}
function Re(o) {
  let e;
  function t(r, l) {
    return (
      /*skeletonLoading*/
      r[15] ? We : He
    );
  }
  let a = t(o), s = a(o);
  return {
    c() {
      e = f("div"), s.c();
    },
    m(r, l) {
      A(r, e, l), s.m(e, null), o[29](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: $,
    o: $,
    d(r) {
      r && P(e), s.d(), o[29](null);
    }
  };
}
function Ye(o, e, t) {
  let a;
  _e(o, Pe, (n) => t(16, a = n));
  let { operator: s = "Everymatrix" } = e, { lang: r = "en" } = e, { clientstyling: l = "" } = e, { clientstylingurl: g = "" } = e, { mbsource: h } = e, { translationurl: _ = "" } = e, { supportemail: v = "" } = e, { endpoint: k = "" } = e, { hasconfirmationmodal: p = "false" } = e, c, T, S = window.navigator.userAgent, C = Fe(S) !== "PC", y = [
    {
      value: "CoolOffFor24Hours",
      dateSelector: !1
    },
    {
      value: "CoolOffFor7Days",
      dateSelector: !1
    },
    {
      value: "CoolOffFor30Days",
      dateSelector: !1
    },
    {
      value: "CoolOffFor3Months",
      dateSelector: !1
    }
  ], j = y[0].value, D = !1, O = "", z, R, Y = "", H = p === "true", L = !0;
  const N = () => {
    fetch(_).then((n) => n.json()).then((n) => {
      Object.keys(n).forEach((J) => {
        le(J, n[J]);
      });
    }).catch((n) => {
      console.log(n);
    });
  };
  Object.keys(se).forEach((n) => {
    le(n, se[n]);
  });
  const V = () => {
    const n = new URL("/v1/player/coolOffSettings", k), J = { method: "GET" };
    fetch(n.href, J).then((G) => {
      if (!G.ok)
        throw new Error("There was an error while fetching the configuration");
      return G.json();
    }).then((G) => {
      const { periods: ee } = G;
      ee && t(8, y = ee.map((X) => ({
        value: X.key,
        text: X.text,
        dateSelector: X.dateSelector
      })));
    }).catch((G) => {
      console.log(G);
    }).finally(() => {
      t(15, L = !1), t(9, j = y[0].value);
    });
  }, q = () => {
    if (!H) {
      t(14, Y = "");
      return;
    }
    t(14, Y = D ? a("confirmationModalTextUntilTimeout", { values: { date: O } }) : a("confirmationModalTextPeriodTimeout", { values: { period: a(j) } }));
  }, W = (n) => {
    n.preventDefault(), H ? window.postMessage({ type: "ShowTimeoutConfirmationModal" }, window.location.href) : window.postMessage(
      {
        type: "SetPlayerAccountTimeout",
        timeoutSelected: j,
        timeoutExpiryDate: O
      },
      window.location.href
    );
  }, F = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: C
      },
      window.location.href
    );
  }, x = () => {
    Ae(r), V();
  }, E = () => {
    const n = y.find((J) => J.value === j);
    t(10, D = !1), n.dateSelector && (t(10, D = !0), t(12, z = ne().format("YYYY-MM-DD")), t(13, R = ne().add(6, "months").format("YYYY-MM-DD")), t(11, O = z)), H && q();
  }, m = (n) => {
    t(11, O = n.target.value);
  }, M = () => {
    T.addEventListener("change", m, !1);
  };
  ke(() => () => {
    T.removeEventListener("change", m);
  });
  const b = () => F();
  function Z() {
    j = Ce(this), t(9, j), t(8, y);
  }
  function fe(n) {
    oe[n ? "unshift" : "push"](() => {
      T = n, t(7, T);
    });
  }
  const de = (n) => W(n);
  function pe(n) {
    oe[n ? "unshift" : "push"](() => {
      c = n, t(6, c);
    });
  }
  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, g = n.clientstylingurl), "mbsource" in n && t(4, h = n.mbsource), "translationurl" in n && t(22, _ = n.translationurl), "supportemail" in n && t(5, v = n.supportemail), "endpoint" in n && t(23, k = n.endpoint), "hasconfirmationmodal" in n && t(24, p = n.hasconfirmationmodal);
  }, o.$$.update = () => {
    o.$$.dirty[0] & /*calendar*/
    128 && T && M(), o.$$.dirty[0] & /*lang*/
    2 && r && x(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    68 && l && c && Se(c, l), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    72 && g && c && De(c, g), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
    80 && h && c && ze(c, `${h}.Style`), o.$$.dirty[0] & /*translationurl*/
    4194304 && _ && N();
  }, H && q(), [
    s,
    r,
    l,
    g,
    h,
    v,
    c,
    T,
    y,
    j,
    D,
    O,
    z,
    R,
    Y,
    L,
    a,
    C,
    H,
    W,
    F,
    E,
    _,
    k,
    p,
    b,
    Z,
    fe,
    de,
    pe
  ];
}
class Le extends Te {
  constructor(e) {
    super(), ve(
      this,
      e,
      Ye,
      Re,
      ye,
      {
        operator: 0,
        lang: 1,
        clientstyling: 2,
        clientstylingurl: 3,
        mbsource: 4,
        translationurl: 22,
        supportemail: 5,
        endpoint: 23,
        hasconfirmationmodal: 24
      },
      qe,
      [-1, -1]
    );
  }
  get operator() {
    return this.$$.ctx[0];
  }
  set operator(e) {
    this.$$set({ operator: e }), U();
  }
  get lang() {
    return this.$$.ctx[1];
  }
  set lang(e) {
    this.$$set({ lang: e }), U();
  }
  get clientstyling() {
    return this.$$.ctx[2];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), U();
  }
  get clientstylingurl() {
    return this.$$.ctx[3];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), U();
  }
  get mbsource() {
    return this.$$.ctx[4];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), U();
  }
  get translationurl() {
    return this.$$.ctx[22];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), U();
  }
  get supportemail() {
    return this.$$.ctx[5];
  }
  set supportemail(e) {
    this.$$set({ supportemail: e }), U();
  }
  get endpoint() {
    return this.$$.ctx[23];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), U();
  }
  get hasconfirmationmodal() {
    return this.$$.ctx[24];
  }
  set hasconfirmationmodal(e) {
    this.$$set({ hasconfirmationmodal: e }), U();
  }
}
je(Le, { operator: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, supportemail: {}, endpoint: {}, hasconfirmationmodal: {} }, [], [], !0);
export {
  Le as default
};
