import { a as O, $ as R, S as L, i as N, s as W, f as M, b as x, n as U, d as z, t as S, q as B, c as C, m as a, e as y, p as k, u as j, r as s, g as q, h as H, o as I, w as K, x as E, j as V, z as Z, A as F, B as G, C as J, D as Q } from "./PlayerAccountController-DQUfjs7n.js";
import "./PlayerProfileInfo-DsQrebpF.js";
function T(t, i) {
  O(t, i);
}
function X(t) {
  R.set(t);
}
const Y = {
  en: {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  "zh-hk": {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  fr: {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  tr: {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  ro: {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  es: {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  pt: {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  hr: {
    titleBiometrics: "Biometrijska autentifikacija",
    descriptionParagraph1: "Koristite biometrijsku prijavu otiskom prsta ili licem za brži i jednostavniji pristup svom računu.",
    descriptionParagraph2: "Ovu značajku možete uključiti i isključiti u bilo kojem trenutku",
    btnEnableBiometrics: "Omogući biometriju",
    btnDisableBiometrics: "Onemogući biometriju"
  },
  "pt-br": {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  "es-mx": {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  },
  "en-us": {
    titleBiometrics: "Biometrics Authentication",
    descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
    descriptionParagraph2: "You can turn this feature on and off at any time",
    btnEnableBiometrics: "Enable biometrics",
    btnDisableBiometrics: "Disable biometrics"
  }
};
function $(t) {
  x(t, "svelte-1fepl4m", ".BiometricsWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{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))}.BiometricsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.BiometricsDescription.BiometricsDescriptionMobile{font-size:12px;line-height:18px}.BiometricsActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}");
}
function tt(t) {
  let i, r, w, m, b, u, p, n, c, f, d = (
    /*$_*/
    t[6]("titleBiometrics") + ""
  ), v, P, D;
  return {
    c() {
      i = y("div"), r = E("svg"), w = E("defs"), m = E("style"), b = j(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), u = E("g"), p = E("g"), n = E("path"), c = k(), f = y("h2"), v = j(d), s(n, "class", "aaa"), s(n, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(n, "transform", "translate(15 15) rotate(180)"), s(p, "transform", "translate(20 158)"), s(u, "transform", "translate(-20 -158)"), s(r, "xmlns", "http://www.w3.org/2000/svg"), s(r, "width", "15"), s(r, "height", "15"), s(r, "viewBox", "0 0 15 15"), s(f, "class", "BiometricsTitleMobile"), s(f, "part", "BiometricsTitleMobile"), s(i, "class", "MenuReturnButton"), s(i, "part", "MenuReturnButton");
    },
    m(g, _) {
      C(g, i, _), a(i, r), a(r, w), a(w, m), a(m, b), a(r, u), a(u, p), a(p, n), a(i, c), a(i, f), a(f, v), P || (D = K(
        i,
        "click",
        /*click_handler*/
        t[9]
      ), P = !0);
    },
    p(g, _) {
      _ & /*$_*/
      64 && d !== (d = /*$_*/
      g[6]("titleBiometrics") + "") && S(v, d);
    },
    d(g) {
      g && z(i), P = !1, D();
    }
  };
}
function it(t) {
  let i, r, w, m, b = (
    /*$_*/
    t[6]("titleBiometrics") + ""
  ), u, p, n, c, f = (
    /*$_*/
    t[6]("descriptionParagraph1") + ""
  ), d, v, P, D = (
    /*$_*/
    t[6]("descriptionParagraph2") + ""
  ), g, _, A, e, l = (
    /*isMobile*/
    t[7] && tt(t)
  );
  return {
    c() {
      i = y("div"), r = y("div"), l && l.c(), w = k(), m = y("h2"), u = j(b), p = k(), n = y("div"), c = y("p"), d = j(f), v = k(), P = y("p"), g = j(D), _ = k(), A = y("div"), e = y("player-account-biometrics-action"), s(m, "class", "BiometricsTitle " + /*isMobile*/
      (t[7] ? "BiometricsTitleNone" : "")), s(n, "class", "BiometricsDescription " + /*isMobile*/
      (t[7] ? "BiometricsDescriptionMobile" : "")), B(
        e,
        "lang",
        /*lang*/
        t[0]
      ), B(
        e,
        "translationurl",
        /*translationurl*/
        t[4]
      ), B(
        e,
        "clientstyling",
        /*clientstyling*/
        t[1]
      ), B(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        t[2]
      ), B(
        e,
        "mbsource",
        /*mbsource*/
        t[3]
      ), s(A, "class", "BiometricsActionButtons " + /*isMobile*/
      (t[7] ? "BiometricsActionButtonsMobile" : "")), s(r, "class", "BiometricsWrapper " + /*isMobile*/
      (t[7] ? "BiometricsWrapperMobile" : ""));
    },
    m(o, h) {
      C(o, i, h), a(i, r), l && l.m(r, null), a(r, w), a(r, m), a(m, u), a(r, p), a(r, n), a(n, c), a(c, d), a(n, v), a(n, P), a(P, g), a(r, _), a(r, A), a(A, e), t[10](i);
    },
    p(o, [h]) {
      /*isMobile*/
      o[7] && l.p(o, h), h & /*$_*/
      64 && b !== (b = /*$_*/
      o[6]("titleBiometrics") + "") && S(u, b), h & /*$_*/
      64 && f !== (f = /*$_*/
      o[6]("descriptionParagraph1") + "") && S(d, f), h & /*$_*/
      64 && D !== (D = /*$_*/
      o[6]("descriptionParagraph2") + "") && S(g, D), h & /*lang*/
      1 && B(
        e,
        "lang",
        /*lang*/
        o[0]
      ), h & /*translationurl*/
      16 && B(
        e,
        "translationurl",
        /*translationurl*/
        o[4]
      ), h & /*clientstyling*/
      2 && B(
        e,
        "clientstyling",
        /*clientstyling*/
        o[1]
      ), h & /*clientstylingurl*/
      4 && B(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        o[2]
      ), h & /*mbsource*/
      8 && B(
        e,
        "mbsource",
        /*mbsource*/
        o[3]
      );
    },
    i: U,
    o: U,
    d(o) {
      o && z(i), l && l.d(), t[10](null);
    }
  };
}
function et(t, i, r) {
  let w;
  q(t, Q, (e) => r(6, w = e));
  let { lang: m = "en" } = i, { clientstyling: b = "" } = i, { clientstylingurl: u = "" } = i, { mbsource: p } = i, { translationurl: n = "" } = i, c, f, d = window.navigator.userAgent, v = H(d) !== "PC";
  const P = () => {
    fetch(n).then((l) => l.json()).then((l) => {
      Object.keys(l).forEach((o) => {
        T(o, l[o]);
      });
    }).catch((l) => {
      console.log(l);
    });
  };
  Object.keys(Y).forEach((e) => {
    T(e, Y[e]);
  });
  const D = () => {
    X(m);
  }, g = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: v
      },
      window.location.href
    );
  };
  I(() => () => {
  });
  const _ = () => g();
  function A(e) {
    V[e ? "unshift" : "push"](() => {
      c = e, r(5, c);
    });
  }
  return t.$$set = (e) => {
    "lang" in e && r(0, m = e.lang), "clientstyling" in e && r(1, b = e.clientstyling), "clientstylingurl" in e && r(2, u = e.clientstylingurl), "mbsource" in e && r(3, p = e.mbsource), "translationurl" in e && r(4, n = e.translationurl);
  }, t.$$.update = () => {
    t.$$.dirty & /*lang*/
    1 && m && D(), t.$$.dirty & /*clientstyling, customStylingContainer*/
    34 && b && c && Z(c, b), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
    36 && u && c && F(c, u), t.$$.dirty & /*mbsource, customStylingContainer*/
    40 && p && c && G(c, `${p}.Style`, f), t.$$.dirty & /*translationurl*/
    16 && n && P();
  }, [
    m,
    b,
    u,
    p,
    n,
    c,
    w,
    v,
    g,
    _,
    A
  ];
}
class rt extends L {
  constructor(i) {
    super(), N(
      this,
      i,
      et,
      it,
      W,
      {
        lang: 0,
        clientstyling: 1,
        clientstylingurl: 2,
        mbsource: 3,
        translationurl: 4
      },
      $
    );
  }
  get lang() {
    return this.$$.ctx[0];
  }
  set lang(i) {
    this.$$set({ lang: i }), M();
  }
  get clientstyling() {
    return this.$$.ctx[1];
  }
  set clientstyling(i) {
    this.$$set({ clientstyling: i }), M();
  }
  get clientstylingurl() {
    return this.$$.ctx[2];
  }
  set clientstylingurl(i) {
    this.$$set({ clientstylingurl: i }), M();
  }
  get mbsource() {
    return this.$$.ctx[3];
  }
  set mbsource(i) {
    this.$$set({ mbsource: i }), M();
  }
  get translationurl() {
    return this.$$.ctx[4];
  }
  set translationurl(i) {
    this.$$set({ translationurl: i }), M();
  }
}
J(rt, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  rt as default
};
