import { c as N, b as O, S as W, D as C, R as L, v as M, f as x, K as U, r as z, Z as S, Y as B, F as R, e as a, s as y, a1 as k, a4 as j, g as s, k as H, a as K, y as V, N as Z, J as q, a3 as A, h as F, V as I, W as J, X, n as G } from "./PlayerAccountControllerNd-NUeaPDxp.js";
import "../lazy/player-account-biometrics-action-DUlZ35A4.js";
function T(t, i) {
  N(t, i);
}
function Q(t) {
  O.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, f, n, c, g, d = (
    /*$_*/
    t[6]("titleBiometrics") + ""
  ), v, P, D;
  return {
    c() {
      i = y("div"), r = A("svg"), w = A("defs"), m = A("style"), b = j(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), u = A("g"), f = A("g"), n = A("path"), c = k(), g = 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(f, "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(g, "class", "BiometricsTitleMobile"), s(g, "part", "BiometricsTitleMobile"), s(i, "class", "MenuReturnButton"), s(i, "part", "MenuReturnButton");
    },
    m(p, _) {
      R(p, i, _), a(i, r), a(r, w), a(w, m), a(m, b), a(r, u), a(u, f), a(f, n), a(i, c), a(i, g), a(g, v), P || (D = q(
        i,
        "click",
        /*click_handler*/
        t[9]
      ), P = !0);
    },
    p(p, _) {
      _ & /*$_*/
      64 && d !== (d = /*$_*/
      p[6]("titleBiometrics") + "") && S(v, d);
    },
    d(p) {
      p && z(i), P = !1, D();
    }
  };
}
function it(t) {
  let i, r, w, m, b = (
    /*$_*/
    t[6]("titleBiometrics") + ""
  ), u, f, n, c, g = (
    /*$_*/
    t[6]("descriptionParagraph1") + ""
  ), d, v, P, D = (
    /*$_*/
    t[6]("descriptionParagraph2") + ""
  ), p, _, E, 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), f = k(), n = y("div"), c = y("p"), d = j(g), v = k(), P = y("p"), p = j(D), _ = k(), E = 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(E, "class", "BiometricsActionButtons " + /*isMobile*/
      (t[7] ? "BiometricsActionButtonsMobile" : "")), s(r, "class", "BiometricsWrapper " + /*isMobile*/
      (t[7] ? "BiometricsWrapperMobile" : ""));
    },
    m(o, h) {
      R(o, i, h), a(i, r), l && l.m(r, null), a(r, w), a(r, m), a(m, u), a(r, f), a(r, n), a(n, c), a(c, d), a(n, v), a(n, P), a(P, p), a(r, _), a(r, E), a(E, 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 && g !== (g = /*$_*/
      o[6]("descriptionParagraph1") + "") && S(d, g), h & /*$_*/
      64 && D !== (D = /*$_*/
      o[6]("descriptionParagraph2") + "") && S(p, 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;
  H(t, K, (e) => r(6, w = e));
  let { lang: m = "en" } = i, { clientstyling: b = "" } = i, { clientstylingurl: u = "" } = i, { mbsource: f } = i, { translationurl: n = "" } = i, c, g, d = window.navigator.userAgent, v = V(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 = () => {
    Q(m);
  }, p = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: v
      },
      window.location.href
    );
  };
  Z(() => () => {
  });
  const _ = () => p();
  function E(e) {
    F[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, f = 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 && I(c, b), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
    36 && u && c && J(c, u), t.$$.dirty & /*mbsource, customStylingContainer*/
    40 && f && c && X(c, `${f}.Style`, g), t.$$.dirty & /*translationurl*/
    16 && n && P();
  }, [
    m,
    b,
    u,
    f,
    n,
    c,
    w,
    v,
    p,
    _,
    E
  ];
}
class rt extends W {
  constructor(i) {
    super(), C(
      this,
      i,
      et,
      it,
      L,
      {
        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();
  }
}
G(rt, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  rt as default
};
