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