@everymatrix/player-account-menu-nd 1.90.27 → 1.90.29

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountMenuNd-CiKxAaPa.cjs"),C=(n,e={})=>{const l=new CustomEvent("track-custom-event",{detail:{type:n,data:e},bubbles:!0,composed:!0});document.dispatchEvent(l)};function v(n,e){t.addMessages(n,e)}function T(n){t.$locale.set(n)}const x={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"},hr:{logoutButton:"Odjava"},"pt-br":{logoutButton:"Fechar Sessão"},"es-mx":{logoutButton:"Cerrar sesión"},"en-us":{logoutButton:"Logout"}};function O(n){t.append_styles(n,"svelte-xtnqa3","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}")}function j(n){let e,l,a,o=n[2]("logoutButton")+"",s,r,d;return{c(){e=t.element("div"),l=t.element("button"),a=t.element("span"),s=t.text(o),t.attr(e,"class","GeneralLogout")},m(u,g){t.insert(u,e,g),t.append(e,l),t.append(l,a),t.append(a,s),r||(d=t.listen(l,"click",n[14]),r=!0)},p(u,g){g&4&&o!==(o=u[2]("logoutButton")+"")&&t.set_data(s,o)},d(u){u&&t.detach(e),r=!1,d()}}}function H(n){let e,l,a,o,s,r,d,u,g,m,y,f=!n[3]&&G(n);return{c(){e=t.element("p"),l=t.element("span"),a=t.svg_element("svg"),o=t.svg_element("defs"),s=t.svg_element("style"),r=t.text(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"),d=t.svg_element("path"),u=t.svg_element("path"),g=t.space(),f&&f.c(),t.attr(d,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(d,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),t.attr(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),t.attr(a,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),t.attr(a,"data-name","Layer 1"),t.attr(a,"xmlns","http://www.w3.org/2000/svg"),t.attr(a,"viewBox","0 0 150 150"),t.set_style(l,"width",n[3]?n[4].matches?"20px":"24px":"20px"),t.attr(e,"class","PlayerAccountMenuItemBox "+(n[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(n[4].matches&&n[3]?"PlayerAccountMenuItemBoxTablet":""))},m(h,c){t.insert(h,e,c),t.append(e,l),t.append(l,a),t.append(a,o),t.append(o,s),t.append(s,r),t.append(a,d),t.append(a,u),t.append(e,g),f&&f.m(e,null),m||(y=t.listen(e,"click",n[13]),m=!0)},p(h,c){h[3]||f.p(h,c)},d(h){h&&t.detach(e),f&&f.d(),m=!1,y()}}}function G(n){let e,l=n[2]("logoutButton")+"",a;return{c(){e=t.element("span"),a=t.text(l),t.attr(e,"class","PlayerLogoutText")},m(o,s){t.insert(o,e,s),t.append(e,a)},p(o,s){s&4&&l!==(l=o[2]("logoutButton")+"")&&t.set_data(a,l)},d(o){o&&t.detach(e)}}}function N(n){let e;function l(s,r){return s[0]==="PlayerAccountMenu"?H:j}let a=l(n),o=a(n);return{c(){e=t.element("div"),o.c()},m(s,r){t.insert(s,e,r),o.m(e,null),n[15](e)},p(s,[r]){a===(a=l(s))&&o?o.p(s,r):(o.d(1),o=a(s),o&&(o.c(),o.m(e,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(e),o.d(),n[15](null)}}}function R(n,e,l){let a;t.component_subscribe(n,t.$format,i=>l(2,a=i));let{endpoint:o=""}=e,{session:s=""}=e,{buttonlocation:r=""}=e,{lang:d=""}=e,{mbsource:u}=e,{clientstyling:g=""}=e,{clientstylingurl:m=""}=e,{translationurl:y=""}=e,f="",h=!1,c,B,M=window.navigator.userAgent,A=t.getDevice(M)!=="PC";const F=window.matchMedia("(min-width: 768px)"),L=()=>{fetch(y).then(b=>b.json()).then(b=>{Object.keys(b).forEach(_=>{v(_,b[_])})}).catch(b=>{console.log(b)})};Object.keys(x).forEach(i=>{v(i,x[i])});const p=()=>{let i=new Headers;i.append("Content-type","application/json"),i.append("X-SessionID",s);let b={method:"DELETE",headers:i};fetch(`${o}/v1/player/session/player`,b).then(_=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),C("logged_out",{})})},k=()=>(o||(f="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(f)),s||(f="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(f)),h),P=()=>{T(d)};t.onMount(()=>()=>{});const S=()=>p(),E=()=>p();function I(i){t.binding_callbacks[i?"unshift":"push"](()=>{c=i,l(1,c)})}return n.$$set=i=>{"endpoint"in i&&l(6,o=i.endpoint),"session"in i&&l(7,s=i.session),"buttonlocation"in i&&l(0,r=i.buttonlocation),"lang"in i&&l(8,d=i.lang),"mbsource"in i&&l(9,u=i.mbsource),"clientstyling"in i&&l(10,g=i.clientstyling),"clientstylingurl"in i&&l(11,m=i.clientstylingurl),"translationurl"in i&&l(12,y=i.translationurl)},n.$$.update=()=>{n.$$.dirty&193&&o&&s&&r&&k(),n.$$.dirty&256&&d&&P(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(c,g),n.$$.dirty&2050&&m&&c&&t.setClientStylingURL(c,m),n.$$.dirty&514&&u&&c&&t.setStreamStyling(c,`${u}.Style`,B),n.$$.dirty&4096&&y&&L()},[r,c,a,A,F,p,o,s,d,u,g,m,y,S,E,I]}class w extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,N,t.safe_not_equal,{endpoint:6,session:7,buttonlocation:0,lang:8,mbsource:9,clientstyling:10,clientstylingurl:11,translationurl:12},O)}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),t.flush()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(w,{endpoint:{},session:{},buttonlocation:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountMenuNd-C1VjCPrV.cjs"),C=(n,e={})=>{const l=new CustomEvent("track-custom-event",{detail:{type:n,data:e},bubbles:!0,composed:!0});document.dispatchEvent(l)};function v(n,e){t.addMessages(n,e)}function T(n){t.$locale.set(n)}const x={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"},hr:{logoutButton:"Odjava"},"pt-br":{logoutButton:"Fechar Sessão"},"es-mx":{logoutButton:"Cerrar sesión"},"en-us":{logoutButton:"Logout"}};function O(n){t.append_styles(n,"svelte-xtnqa3","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}")}function j(n){let e,l,a,o=n[2]("logoutButton")+"",s,r,d;return{c(){e=t.element("div"),l=t.element("button"),a=t.element("span"),s=t.text(o),t.attr(e,"class","GeneralLogout")},m(u,g){t.insert(u,e,g),t.append(e,l),t.append(l,a),t.append(a,s),r||(d=t.listen(l,"click",n[14]),r=!0)},p(u,g){g&4&&o!==(o=u[2]("logoutButton")+"")&&t.set_data(s,o)},d(u){u&&t.detach(e),r=!1,d()}}}function H(n){let e,l,a,o,s,r,d,u,g,m,y,f=!n[3]&&G(n);return{c(){e=t.element("p"),l=t.element("span"),a=t.svg_element("svg"),o=t.svg_element("defs"),s=t.svg_element("style"),r=t.text(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"),d=t.svg_element("path"),u=t.svg_element("path"),g=t.space(),f&&f.c(),t.attr(d,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(d,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),t.attr(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),t.attr(a,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),t.attr(a,"data-name","Layer 1"),t.attr(a,"xmlns","http://www.w3.org/2000/svg"),t.attr(a,"viewBox","0 0 150 150"),t.set_style(l,"width",n[3]?n[4].matches?"20px":"24px":"20px"),t.attr(e,"class","PlayerAccountMenuItemBox "+(n[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(n[4].matches&&n[3]?"PlayerAccountMenuItemBoxTablet":""))},m(h,c){t.insert(h,e,c),t.append(e,l),t.append(l,a),t.append(a,o),t.append(o,s),t.append(s,r),t.append(a,d),t.append(a,u),t.append(e,g),f&&f.m(e,null),m||(y=t.listen(e,"click",n[13]),m=!0)},p(h,c){h[3]||f.p(h,c)},d(h){h&&t.detach(e),f&&f.d(),m=!1,y()}}}function G(n){let e,l=n[2]("logoutButton")+"",a;return{c(){e=t.element("span"),a=t.text(l),t.attr(e,"class","PlayerLogoutText")},m(o,s){t.insert(o,e,s),t.append(e,a)},p(o,s){s&4&&l!==(l=o[2]("logoutButton")+"")&&t.set_data(a,l)},d(o){o&&t.detach(e)}}}function N(n){let e;function l(s,r){return s[0]==="PlayerAccountMenu"?H:j}let a=l(n),o=a(n);return{c(){e=t.element("div"),o.c()},m(s,r){t.insert(s,e,r),o.m(e,null),n[15](e)},p(s,[r]){a===(a=l(s))&&o?o.p(s,r):(o.d(1),o=a(s),o&&(o.c(),o.m(e,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(e),o.d(),n[15](null)}}}function R(n,e,l){let a;t.component_subscribe(n,t.$format,i=>l(2,a=i));let{endpoint:o=""}=e,{session:s=""}=e,{buttonlocation:r=""}=e,{lang:d=""}=e,{mbsource:u}=e,{clientstyling:g=""}=e,{clientstylingurl:m=""}=e,{translationurl:y=""}=e,f="",h=!1,c,B,M=window.navigator.userAgent,A=t.getDevice(M)!=="PC";const F=window.matchMedia("(min-width: 768px)"),L=()=>{fetch(y).then(b=>b.json()).then(b=>{Object.keys(b).forEach(_=>{v(_,b[_])})}).catch(b=>{console.log(b)})};Object.keys(x).forEach(i=>{v(i,x[i])});const p=()=>{let i=new Headers;i.append("Content-type","application/json"),i.append("X-SessionID",s);let b={method:"DELETE",headers:i};fetch(`${o}/v1/player/session/player`,b).then(_=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),C("logged_out",{})})},k=()=>(o||(f="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(f)),s||(f="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(f)),h),P=()=>{T(d)};t.onMount(()=>()=>{});const S=()=>p(),E=()=>p();function I(i){t.binding_callbacks[i?"unshift":"push"](()=>{c=i,l(1,c)})}return n.$$set=i=>{"endpoint"in i&&l(6,o=i.endpoint),"session"in i&&l(7,s=i.session),"buttonlocation"in i&&l(0,r=i.buttonlocation),"lang"in i&&l(8,d=i.lang),"mbsource"in i&&l(9,u=i.mbsource),"clientstyling"in i&&l(10,g=i.clientstyling),"clientstylingurl"in i&&l(11,m=i.clientstylingurl),"translationurl"in i&&l(12,y=i.translationurl)},n.$$.update=()=>{n.$$.dirty&193&&o&&s&&r&&k(),n.$$.dirty&256&&d&&P(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(c,g),n.$$.dirty&2050&&m&&c&&t.setClientStylingURL(c,m),n.$$.dirty&514&&u&&c&&t.setStreamStyling(c,`${u}.Style`,B),n.$$.dirty&4096&&y&&L()},[r,c,a,A,F,p,o,s,d,u,g,m,y,S,E,I]}class w extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,N,t.safe_not_equal,{endpoint:6,session:7,buttonlocation:0,lang:8,mbsource:9,clientstyling:10,clientstylingurl:11,translationurl:12},O)}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),t.flush()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(w,{endpoint:{},session:{},buttonlocation:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=w;
@@ -1,4 +1,4 @@
1
- import { a as q, $ as D, S as V, i as Z, s as Q, f as p, b as X, n as F, d as v, c as B, e as w, g as Y, h as J, o as K, j as W, k as f, l as E, m as x, t as k, p as $, q as b, r as tt, u as I, v as L, w as et, x as nt, y as ot, z as st } from "./PlayerAccountMenuNd-B7kyC-Tl.js";
1
+ import { a as q, $ as D, S as V, i as Z, s as Q, f as p, b as X, n as F, d as v, c as B, e as w, g as Y, h as J, o as K, j as W, k as f, l as E, m as x, t as k, p as $, q as b, r as tt, u as I, v as L, w as et, x as nt, y as ot, z as st } from "./PlayerAccountMenuNd-BVSaC3o4.js";
2
2
  const lt = (e, t = {}) => {
3
3
  const o = new CustomEvent("track-custom-event", {
4
4
  detail: {
@@ -1,4 +1,4 @@
1
- import { a as q, $ as D, S as V, i as Z, f as p, s as Q, c as X, b as Y, n as F, d as v, e as B, g as w, h as J, j as K, o as W, k as $, l as f, m as E, p as x, t as k, q as tt, r as b, u as et, v as I, w as nt, x as L, y as ot, z as st } from "./PlayerAccountMenuNd-qFildxiL.js";
1
+ import { a as q, $ as D, S as V, i as Z, f as p, s as Q, c as X, b as Y, n as F, d as v, e as B, g as w, h as J, j as K, o as W, k as $, l as f, m as E, p as x, t as k, q as tt, r as b, u as et, v as I, w as nt, x as L, y as ot, z as st } from "./PlayerAccountMenuNd-DQA5Wu1L.js";
2
2
  const lt = (e, t = {}) => {
3
3
  const o = new CustomEvent("track-custom-event", {
4
4
  detail: {