@everymatrix/player-account-biometrics 1.37.2 → 1.37.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,4 +3,5 @@
3
3
 
4
4
  | Version | Release date | Impacted areas | Changes |
5
5
  | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
+ | 1.37.2 | Mon Aug 12 2024 | player-account-biometrics | feat(EMFE-31071)(player-account-biometrics,player-account-controller): create... |
6
7
  | 1.32.0 | Tue Jun 04 2024 | player-account-biometrics | feat(EMFE-31071)(player-account-biometrics,player-account-controller): create... |
@@ -631,8 +631,8 @@ this.formats=Tr(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
631
631
  // and Intl.DateTimeFormat instances.
632
632
  t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const Hr={},Pr=(t,e,r)=>r?(e in Hr||(Hr[e]={}),t in Hr[e]||(Hr[e][t]=r),r):r,Sr=(t,e)=>{if(null==e)return;if(e in Hr&&t in Hr[e])return Hr[e][t];const r=Qr(e);for(let n=0;n<r.length;n++){const i=Nr(r[n],t);if(i)return Pr(t,e,i)}};let Or;const Lr=$t({});function Cr(t){return t in Or}function Nr(t,e){if(!Cr(t))return null;const r=function(t){return Or[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Ir(t,...e){delete Hr[t],Lr.update((r=>(r[t]=Qt.all([r[t]||{},...e]),r)))}Vt([Lr],(([t])=>Object.keys(t))),Lr.subscribe((t=>Or=t));const Rr={};function Mr(t){return Rr[t]}function Ur(t){return null!=t&&Qr(t).some((t=>{var e;return null==(e=Mr(t))?void 0:e.size}))}function Dr(t,e){const r=Promise.all(e.map((e=>(function(t,e){Rr[t].delete(e),0===Rr[t].size&&delete Rr[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Ir(t,...e)))}const xr={};function Gr(t){if(!Ur(t))return t in xr?xr[t]:Promise.resolve();const e=function(t){return Qr(t).map((t=>{const e=Mr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return xr[t]=Promise.all(e.map((([t,e])=>Dr(t,e)))).then((()=>{if(Ur(t))return Gr(t);delete xr[t]})),xr[t]}const Fr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function kr(){return Fr}const jr=$t(!1);var $r=Object.defineProperty,Vr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Wr=(t,e,r)=>e in t?$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;let Zr;const qr=$t(null);function Jr(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Qr(t,e=kr().fallbackLocale){const r=Jr(t);return e?[...new Set([...r,...Jr(e)])]:r}function tn(){return null!=Zr?Zr:void 0}qr.subscribe((t=>{Zr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const en=(rn=((t,e)=>{for(var r in e||(e={}))Kr.call(e,r)&&Wr(t,r,e[r]);if(zr)for(var r of zr(e))Yr.call(e,r)&&Wr(t,r,e[r]);return t})({},qr),Vr(rn,Xr({set:t=>{if(t&&function(t){if(null==t)return;const e=Qr(t);for(let t=0;t<e.length;t++){const r=e[t];if(Cr(r))return r}}(t)&&Ur(t)){const{loadingDelay:e}=kr();let r;return"undefined"!=typeof window&&null!=tn()&&e?r=window.setTimeout((()=>jr.set(!0)),e):jr.set(!0),Gr(t).then((()=>{qr.set(t)})).finally((()=>{clearTimeout(r),jr.set(!1)}))}return qr.set(t)}})));var rn;const nn=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}};var on=Object.defineProperty,sn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,un=(t,e,r)=>e in t?on(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hn=(t,e)=>{for(var r in e||(e={}))an.call(e,r)&&un(t,r,e[r]);if(sn)for(var r of sn(e))cn.call(e,r)&&un(t,r,e[r]);return t},ln=(t,e)=>{var r={};for(var n in t)an.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&sn)for(var n of sn(t))e.indexOf(n)<0&&cn.call(t,n)&&(r[n]=t[n]);return r};const fn=(t,e)=>{const{formats:r}=kr();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},pn=nn((t=>{var e=t,{locale:r,format:n}=e,i=ln(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=fn("number",n)),new Intl.NumberFormat(r,i)})),mn=nn((t=>{var e=t,{locale:r,format:n}=e,i=ln(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=fn("date",n):0===Object.keys(i).length&&(i=fn("date","short")),new Intl.DateTimeFormat(r,i)})),dn=nn((t=>{var e=t,{locale:r,format:n}=e,i=ln(e,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=fn("time",n):0===Object.keys(i).length&&(i=fn("time","short")),new Intl.DateTimeFormat(r,i)})),bn=nn((
633
633
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
634
- (t,e=tn())=>new Ar(t,e,kr().formats,{ignoreTag:kr().ignoreTag}))),yn=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:c=tn(),default:u}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Sr(t,c);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!=(o=null!=(i=null==(n=(r=kr()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:t,defaultValue:u}))?i:u)?o:t;if(!a)return h;let l=h;try{l=bn(h,c).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},gn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return dn(hn({locale:r},n))})(e).format(t),vn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return mn(hn({locale:r},n))})(e).format(t),En=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return pn(hn({locale:r},n))})(e).format(t),_n=(t,e=tn())=>Sr(t,e),Bn=Vt([en,Lr],(()=>yn));Vt([en],(()=>gn)),Vt([en],(()=>vn)),Vt([en],(()=>En)),Vt([en,Lr],(()=>_n)),window.emWidgets={topic:(t,e=0)=>{if(-1==Ft.indexOf(t)){let r=new Gt(e);kt[t]=r,Ft.push(t)}return kt[t]}};function Tn(t,e){Ir(t,e)}const wn={en:{title:"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":{title:"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:{title:"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:{title:"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:{title:"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:{title:"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:{title:"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:{title:"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":{title:"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":{title:"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"}};
635
- /* src/PlayerAccountBiometrics.svelte generated by Svelte v3.59.2 */function An(e){let r,n,i,o,s,y,g,v,E,_,B,T,w,A,H,P,S,O,L=/*$_*/e[2]("title")+"",C=/*$_*/e[2]("descriptionParagraph1")+"",N=/*$_*/e[2]("descriptionParagraph2")+"",I=/*biometricsenabled*/("true"===e[0]?/*$_*/e[2]("btnDisableBiometrics"):/*$_*/e[2]("btnEnableBiometrics"))+"",R=/*isMobile*/e[3]&&function(t){let e,r,n,i,o,s,y,g,v,E,_,B,T,w=/*$_*/t[2]("title")+"";return{c(){e=h("div"),r=l("svg"),n=l("defs"),i=l("style"),o=f(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),s=l("g"),y=l("g"),g=l("path"),v=p(),E=h("h2"),_=f(w),d(g,"class","aaa"),d(g,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d(g,"transform","translate(15 15) rotate(180)"),d(y,"transform","translate(20 158)"),d(s,"transform","translate(-20 -158)"),d(r,"xmlns","http://www.w3.org/2000/svg"),d(r,"width","15"),d(r,"height","15"),d(r,"viewBox","0 0 15 15"),d(E,"class","BiometricsTitleMobile"),d(E,"part","BiometricsTitleMobile"),d(e,"class","MenuReturnButton"),d(e,"part","MenuReturnButton")},m(u,h){c(u,e,h),a(e,r),a(r,n),a(n,i),a(i,o),a(r,s),a(s,y),a(y,g),a(e,v),a(e,E),a(E,_),B||(T=m(e,"click",/*click_handler*/t[10]),B=!0)},p(t,e){/*$_*/4&e&&w!==(w=/*$_*/t[2]("title")+"")&&b(_,w)},d(t){t&&u(e),B=!1,T()}}}(e);return{c(){r=h("div"),n=h("div"),R&&R.c(),i=p(),o=h("h2"),s=f(L),y=p(),g=h("div"),v=h("p"),E=f(C),_=p(),B=h("p"),T=f(N),w=p(),A=h("div"),H=h("button"),P=f(I),this.c=t,d(o,"class","BiometricsTitle "+(/*isMobile*/e[3]?"BiometricsTitleNone":"")),d(g,"class","BiometricsDescription "+(/*isMobile*/e[3]?"BiometricsDescriptionMobile":"")),d(H,"class","BiometricsToggle"),d(A,"class","BiometricsActionButtons "+(/*isMobile*/e[3]?"BiometricsActionButtonsMobile":"")),d(n,"class","BiometricsWrapper "+(/*isMobile*/e[3]?"BiometricsWrapperMobile":""))},m(t,u){c(t,r,u),a(r,n),R&&R.m(n,null),a(n,i),a(n,o),a(o,s),a(n,y),a(n,g),a(g,v),a(v,E),a(g,_),a(g,B),a(B,T),a(n,w),a(n,A),a(A,H),a(H,P),
636
- /*div3_binding*/e[12](r),S||(O=m(H,"click",/*click_handler_1*/e[11]),S=!0)},p(t,[e]){/*isMobile*/t[3]&&R.p(t,e),/*$_*/4&e&&L!==(L=/*$_*/t[2]("title")+"")&&b(s,L),/*$_*/4&e&&C!==(C=/*$_*/t[2]("descriptionParagraph1")+"")&&b(E,C),/*$_*/4&e&&N!==(N=/*$_*/t[2]("descriptionParagraph2")+"")&&b(T,N),/*biometricsenabled, $_*/5&e&&I!==(I=/*biometricsenabled*/("true"===t[0]?/*$_*/t[2]("btnDisableBiometrics"):/*$_*/t[2]("btnEnableBiometrics"))+"")&&b(P,I)},i:t,o:t,d(t){t&&u(r),R&&R.d()
634
+ (t,e=tn())=>new Ar(t,e,kr().formats,{ignoreTag:kr().ignoreTag}))),yn=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:c=tn(),default:u}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Sr(t,c);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!=(o=null!=(i=null==(n=(r=kr()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:t,defaultValue:u}))?i:u)?o:t;if(!a)return h;let l=h;try{l=bn(h,c).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},gn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return dn(hn({locale:r},n))})(e).format(t),vn=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return mn(hn({locale:r},n))})(e).format(t),En=(t,e)=>((t={})=>{var e=t,{locale:r=tn()}=e,n=ln(e,["locale"]);return pn(hn({locale:r},n))})(e).format(t),_n=(t,e=tn())=>Sr(t,e),Bn=Vt([en,Lr],(()=>yn));Vt([en],(()=>gn)),Vt([en],(()=>vn)),Vt([en],(()=>En)),Vt([en,Lr],(()=>_n)),window.emWidgets={topic:(t,e=0)=>{if(-1==Ft.indexOf(t)){let r=new Gt(e);kt[t]=r,Ft.push(t)}return kt[t]}};function Tn(t,e){Ir(t,e)}const wn={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"}};
635
+ /* src/PlayerAccountBiometrics.svelte generated by Svelte v3.59.2 */function An(e){let r,n,i,o,s,y,g,v,E,_,B,T,w,A,H,P,S,O,L=/*$_*/e[2]("titleBiometrics")+"",C=/*$_*/e[2]("descriptionParagraph1")+"",N=/*$_*/e[2]("descriptionParagraph2")+"",I=/*biometricsenabled*/("true"===e[0]?/*$_*/e[2]("btnDisableBiometrics"):/*$_*/e[2]("btnEnableBiometrics"))+"",R=/*isMobile*/e[3]&&function(t){let e,r,n,i,o,s,y,g,v,E,_,B,T,w=/*$_*/t[2]("titleBiometrics")+"";return{c(){e=h("div"),r=l("svg"),n=l("defs"),i=l("style"),o=f(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),s=l("g"),y=l("g"),g=l("path"),v=p(),E=h("h2"),_=f(w),d(g,"class","aaa"),d(g,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d(g,"transform","translate(15 15) rotate(180)"),d(y,"transform","translate(20 158)"),d(s,"transform","translate(-20 -158)"),d(r,"xmlns","http://www.w3.org/2000/svg"),d(r,"width","15"),d(r,"height","15"),d(r,"viewBox","0 0 15 15"),d(E,"class","BiometricsTitleMobile"),d(E,"part","BiometricsTitleMobile"),d(e,"class","MenuReturnButton"),d(e,"part","MenuReturnButton")},m(u,h){c(u,e,h),a(e,r),a(r,n),a(n,i),a(i,o),a(r,s),a(s,y),a(y,g),a(e,v),a(e,E),a(E,_),B||(T=m(e,"click",/*click_handler*/t[10]),B=!0)},p(t,e){/*$_*/4&e&&w!==(w=/*$_*/t[2]("titleBiometrics")+"")&&b(_,w)},d(t){t&&u(e),B=!1,T()}}}(e);return{c(){r=h("div"),n=h("div"),R&&R.c(),i=p(),o=h("h2"),s=f(L),y=p(),g=h("div"),v=h("p"),E=f(C),_=p(),B=h("p"),T=f(N),w=p(),A=h("div"),H=h("button"),P=f(I),this.c=t,d(o,"class","BiometricsTitle "+(/*isMobile*/e[3]?"BiometricsTitleNone":"")),d(g,"class","BiometricsDescription "+(/*isMobile*/e[3]?"BiometricsDescriptionMobile":"")),d(H,"class","BiometricsToggle"),d(A,"class","BiometricsActionButtons "+(/*isMobile*/e[3]?"BiometricsActionButtonsMobile":"")),d(n,"class","BiometricsWrapper "+(/*isMobile*/e[3]?"BiometricsWrapperMobile":""))},m(t,u){c(t,r,u),a(r,n),R&&R.m(n,null),a(n,i),a(n,o),a(o,s),a(n,y),a(n,g),a(g,v),a(v,E),a(g,_),a(g,B),a(B,T),a(n,w),a(n,A),a(A,H),a(H,P),
636
+ /*div3_binding*/e[12](r),S||(O=m(H,"click",/*click_handler_1*/e[11]),S=!0)},p(t,[e]){/*isMobile*/t[3]&&R.p(t,e),/*$_*/4&e&&L!==(L=/*$_*/t[2]("titleBiometrics")+"")&&b(s,L),/*$_*/4&e&&C!==(C=/*$_*/t[2]("descriptionParagraph1")+"")&&b(E,C),/*$_*/4&e&&N!==(N=/*$_*/t[2]("descriptionParagraph2")+"")&&b(T,N),/*biometricsenabled, $_*/5&e&&I!==(I=/*biometricsenabled*/("true"===t[0]?/*$_*/t[2]("btnDisableBiometrics"):/*$_*/t[2]("btnEnableBiometrics"))+"")&&b(P,I)},i:t,o:t,d(t){t&&u(r),R&&R.d()
637
637
  /*div3_binding*/,e[12](null),S=!1,O()}}}function Hn(t,e,r){let n;var i,o;i=Bn,o=t=>r(2,n=t),t.$$.on_destroy.push(s(i,o));let a,{biometricsenabled:c="false"}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:l=""}=e,{translationurl:f=""}=e,p="PC"!==(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(window.navigator.userAgent);Object.keys(wn).forEach((t=>{Tn(t,wn[t])}));const m=()=>{var t;t=u,en.set(t)},d=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:p},window.location.href)},b=()=>{"true"===c?r(0,c="false"):"false"===c&&r(0,c="true"),window.postMessage({type:"ToggleBiometrics",data:c})};return t.$$set=t=>{"biometricsenabled"in t&&r(0,c=t.biometricsenabled),"lang"in t&&r(6,u=t.lang),"clientstyling"in t&&r(7,h=t.clientstyling),"clientstylingurl"in t&&r(8,l=t.clientstylingurl),"translationurl"in t&&r(9,f=t.translationurl)},t.$$.update=()=>{/*lang*/64&t.$$.dirty&&u&&m(),/*clientstylingurl, customStylingContainer*/258&t.$$.dirty&&l&&a&&(()=>{let t=new URL(l),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*clientstyling, customStylingContainer*/130&t.$$.dirty&&h&&a&&(()=>{let t=document.createElement("style");t.innerHTML=h,a.appendChild(t)})(),/*translationurl*/512&t.$$.dirty&&f&&fetch(f).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Tn(e,t[e])}))})).catch((t=>{console.log(t)}))},[c,a,n,p,d,b,u,h,l,f,()=>d(),()=>b(),function(t){_[t?"unshift":"push"]((()=>{a=t,r(1,a)}))}]}class Pn extends M{constructor(t){super();const e=document.createElement("style");e.textContent=".BiometricsWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BiometricsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emfe-w-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 .BiometricsToggle{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}",this.shadowRoot.appendChild(e),R(this,{target:this.shadowRoot,props:y(this.attributes),customElement:!0},Hn,An,o,{biometricsenabled:0,lang:6,clientstyling:7,clientstylingurl:8,translationurl:9},null),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["biometricsenabled","lang","clientstyling","clientstylingurl","translationurl"]}get biometricsenabled(){return this.$$.ctx[0]}set biometricsenabled(t){this.$$set({biometricsenabled:t}),O()}get lang(){return this.$$.ctx[6]}set lang(t){this.$$set({lang:t}),O()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),O()}}return!customElements.get("player-account-biometrics")&&customElements.define("player-account-biometrics",Pn),Pn}));
638
638
  //# sourceMappingURL=player-account-biometrics.js.map