@everymatrix/user-actions 1.90.27 → 1.90.28
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/dist/cjs/{index-04ccb420.js → index-66cfb45f.js} +460 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/user-actions.cjs.js +2 -2
- package/dist/cjs/user-actions_2.cjs.entry.js +636 -0
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/user-actions/user-actions.js +299 -3
- package/dist/esm/{index-2b2bb7fc.js → index-ec24e8d4.js} +460 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/user-actions.js +3 -3
- package/dist/esm/user-actions_2.entry.js +631 -0
- package/dist/types/components/user-actions/user-actions.d.ts +45 -1
- package/dist/types/components.d.ts +78 -0
- package/dist/user-actions/index-ec24e8d4.js +2 -0
- package/dist/user-actions/user-actions.esm.js +1 -1
- package/dist/user-actions/user-actions_2.entry.js +1 -0
- package/package.json +1 -1
- package/dist/cjs/user-actions.cjs.entry.js +0 -91
- package/dist/esm/user-actions.entry.js +0 -87
- package/dist/user-actions/index-2b2bb7fc.js +0 -2
- package/dist/user-actions/user-actions.entry.js +0 -1
|
@@ -1,11 +1,55 @@
|
|
|
1
|
+
import "../../../../../../dist/packages/stencil/user-funds-acknowledgment/dist/types/index";
|
|
1
2
|
export declare class UserActions {
|
|
3
|
+
mbSource: string;
|
|
2
4
|
endpoint: string;
|
|
3
5
|
userid: string;
|
|
6
|
+
operatorid: string;
|
|
7
|
+
playercurrency: string;
|
|
8
|
+
/**
|
|
9
|
+
* The userid required for for the call
|
|
10
|
+
*/
|
|
11
|
+
hasfundsacknowledgment: string;
|
|
12
|
+
/**
|
|
13
|
+
* The sessionid
|
|
14
|
+
*/
|
|
15
|
+
session: string;
|
|
16
|
+
/**
|
|
17
|
+
* Language
|
|
18
|
+
*/
|
|
19
|
+
language: string;
|
|
20
|
+
/**
|
|
21
|
+
* Client custom styling via inline style
|
|
22
|
+
*/
|
|
23
|
+
clientStyling: string;
|
|
24
|
+
/**
|
|
25
|
+
* Client custom styling via url
|
|
26
|
+
*/
|
|
27
|
+
clientStylingUrl: string;
|
|
28
|
+
/**
|
|
29
|
+
* Translation url
|
|
30
|
+
*/
|
|
31
|
+
translationUrl: string;
|
|
32
|
+
/**
|
|
33
|
+
* These props are used only by Intl.NumberFormat and have no effect if customdisplayformat is passed, as it will be used instead
|
|
34
|
+
*/
|
|
35
|
+
currencylocale: string;
|
|
36
|
+
currencydisplay: string;
|
|
37
|
+
maximumfractiondigits: string;
|
|
38
|
+
minimumfractiondigits: string;
|
|
39
|
+
/**
|
|
40
|
+
* Example value: '{amount|,.2} {currency}'. The {} blocks are replaced by their respective values.
|
|
41
|
+
* Everything else in the string is left as it is. The "amount" block also accepts arguments that must be placed after "|".
|
|
42
|
+
* First char is the Thousands Separator, second is the Decimal Separator, third is Decimal Precision.
|
|
43
|
+
* An empty value (' ') indicates that the default values should be used for that specific arg.
|
|
44
|
+
*/
|
|
45
|
+
customdisplayformat: string;
|
|
46
|
+
alwaysshowdecimals: string;
|
|
4
47
|
private actionStack;
|
|
48
|
+
private customerFundsProtectionActive;
|
|
5
49
|
handleEvent(e: any): void;
|
|
6
50
|
fetchUserActions(): Promise<void>;
|
|
7
51
|
private emitCurrentActionEvent;
|
|
8
52
|
shiftActionStack: () => void;
|
|
9
53
|
componentWillLoad(): Promise<void>;
|
|
10
|
-
render():
|
|
54
|
+
render(): any;
|
|
11
55
|
}
|
|
@@ -7,7 +7,46 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface UserActions {
|
|
10
|
+
"alwaysshowdecimals": string;
|
|
11
|
+
/**
|
|
12
|
+
* Client custom styling via inline style
|
|
13
|
+
*/
|
|
14
|
+
"clientStyling": string;
|
|
15
|
+
/**
|
|
16
|
+
* Client custom styling via url
|
|
17
|
+
*/
|
|
18
|
+
"clientStylingUrl": string;
|
|
19
|
+
"currencydisplay": string;
|
|
20
|
+
/**
|
|
21
|
+
* These props are used only by Intl.NumberFormat and have no effect if customdisplayformat is passed, as it will be used instead
|
|
22
|
+
*/
|
|
23
|
+
"currencylocale": string;
|
|
24
|
+
/**
|
|
25
|
+
* Example value: '{amount|,.2} {currency}'. The {} blocks are replaced by their respective values. Everything else in the string is left as it is. The "amount" block also accepts arguments that must be placed after "|". First char is the Thousands Separator, second is the Decimal Separator, third is Decimal Precision. An empty value (' ') indicates that the default values should be used for that specific arg.
|
|
26
|
+
*/
|
|
27
|
+
"customdisplayformat": string;
|
|
10
28
|
"endpoint": string;
|
|
29
|
+
/**
|
|
30
|
+
* The userid required for for the call
|
|
31
|
+
*/
|
|
32
|
+
"hasfundsacknowledgment": string;
|
|
33
|
+
/**
|
|
34
|
+
* Language
|
|
35
|
+
*/
|
|
36
|
+
"language": string;
|
|
37
|
+
"maximumfractiondigits": string;
|
|
38
|
+
"mbSource": string;
|
|
39
|
+
"minimumfractiondigits": string;
|
|
40
|
+
"operatorid": string;
|
|
41
|
+
"playercurrency": string;
|
|
42
|
+
/**
|
|
43
|
+
* The sessionid
|
|
44
|
+
*/
|
|
45
|
+
"session": string;
|
|
46
|
+
/**
|
|
47
|
+
* Translation url
|
|
48
|
+
*/
|
|
49
|
+
"translationUrl": string;
|
|
11
50
|
"userid": string;
|
|
12
51
|
}
|
|
13
52
|
}
|
|
@@ -24,7 +63,46 @@ declare global {
|
|
|
24
63
|
}
|
|
25
64
|
declare namespace LocalJSX {
|
|
26
65
|
interface UserActions {
|
|
66
|
+
"alwaysshowdecimals"?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Client custom styling via inline style
|
|
69
|
+
*/
|
|
70
|
+
"clientStyling"?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Client custom styling via url
|
|
73
|
+
*/
|
|
74
|
+
"clientStylingUrl"?: string;
|
|
75
|
+
"currencydisplay"?: string;
|
|
76
|
+
/**
|
|
77
|
+
* These props are used only by Intl.NumberFormat and have no effect if customdisplayformat is passed, as it will be used instead
|
|
78
|
+
*/
|
|
79
|
+
"currencylocale"?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Example value: '{amount|,.2} {currency}'. The {} blocks are replaced by their respective values. Everything else in the string is left as it is. The "amount" block also accepts arguments that must be placed after "|". First char is the Thousands Separator, second is the Decimal Separator, third is Decimal Precision. An empty value (' ') indicates that the default values should be used for that specific arg.
|
|
82
|
+
*/
|
|
83
|
+
"customdisplayformat"?: string;
|
|
27
84
|
"endpoint": string;
|
|
85
|
+
/**
|
|
86
|
+
* The userid required for for the call
|
|
87
|
+
*/
|
|
88
|
+
"hasfundsacknowledgment"?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Language
|
|
91
|
+
*/
|
|
92
|
+
"language"?: string;
|
|
93
|
+
"maximumfractiondigits"?: string;
|
|
94
|
+
"mbSource"?: string;
|
|
95
|
+
"minimumfractiondigits"?: string;
|
|
96
|
+
"operatorid"?: string;
|
|
97
|
+
"playercurrency"?: string;
|
|
98
|
+
/**
|
|
99
|
+
* The sessionid
|
|
100
|
+
*/
|
|
101
|
+
"session"?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Translation url
|
|
104
|
+
*/
|
|
105
|
+
"translationUrl"?: string;
|
|
28
106
|
"userid": string;
|
|
29
107
|
}
|
|
30
108
|
interface IntrinsicElements {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?b($):f.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{v(m),v(y),(d=m.length>0)&&f.raf($)},b=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},N=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(H);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},D=/\s/,F=e=>e?e.split(D):[],H="Capture",q=RegExp(H+"$"),G=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=!1,B=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(z||(z="svg"===l.m),o=l.v=a.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),z&&"foreignObject"===l.m&&(z=!1),G(null,l,z),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=B(e,l,r),s&&o.appendChild(s);"svg"===l.m?z=!1:"foreignObject"===o.tagName&&(z=!0)}return o["s-hn"]=x,o},I=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=B(null,n,o),r&&(l[o].v=r,Y(i,r,t)))},J=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;X(t),e&&e.remove()}}},K=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Q=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(z="svg"===r||"foreignObject"!==r&&z,("slot"!==r||_)&&G(e,t,z),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(K(h,m,o))Q(h,m,o),h=t[++i],m=l[++c];else if(K(p,y,o))Q(p,y,o),p=t[--f],y=l[--d];else if(K(h,y,o))Q(h,y,o),Y(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(K(p,m,o))Q(p,m,o),Y(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=B(t&&t[c],n,u):(Q(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=B(t&&t[c],n,c),m=l[++c]),s&&Y(h.v.parentNode,s,h.v)}i>f?I(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&J(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),I(l,null,t,s,0,s.length-1)):null!==o&&J(o,0,o.length-1),z&&"svg"===r&&(z=!1)):e.i!==i&&(l.data=i)},X=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(X)},Y=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ee=(e,t)=>{if(e.l|=16,!(4&e.l))return Z(e,e.j),g((()=>te(e,t)));e.l|=512},te=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ce(n,e,t))),e.k=void 0),l=ce(n,"componentWillLoad")),ne(l,(()=>oe(e,n,t)))},ne=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.C)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);se(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},se=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],_=!!(1&o.l),Q(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ue(t),ce(n,"componentDidLoad"),e.L(t),l||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>ee(e,!1))),e.l&=-517},ie=()=>{ue(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"user-actions"}});return e.dispatchEvent(t),t})(u)))},ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ue=e=>e.classList.add("hydrated"),ae=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ee(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},fe=e=>{ce(e,"disconnectedCallback")},he=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],R:l[2],N:l[3]};4&c.l&&(S=!0),c.R=l[2],c.N=l[3],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.U=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,pe(this,e,c.N)),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)pe(e,t,l.N),(null==t?void 0:t.t)||(null==t?void 0:t.U)&&t.U.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.W){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.W;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.D}" was not found`);l.isProxied||(n.T=l.watchers,ae(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ee(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.F&&(e.F.map((e=>e())),e.F=void 0),(null==e?void 0:e.t)?fe(e.t):(null==e?void 0:e.U)&&e.U.then((()=>fe(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(ie,30)))},pe=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=me(e,n),r=de(t,o),i=ye(n);f.ael(s,l,r,i),(t.F=t.F||[]).push((()=>f.rel(s,l,r,i)))}))},de=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},me=(e,t)=>8&t?u:e,ye=e=>({passive:!!(1&e),capture:!!(2&e)}),we=e=>f.C=e;export{he as b,R as h,h as p,l as r,we as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as n,b as e}from"./index-ec24e8d4.js";export{s as setNonce}from"./index-ec24e8d4.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),n(t)})().then((async n=>(await t(),e([["user-actions_2",[[1,"user-actions",{mbSource:[513,"mb-source"],endpoint:[1],userid:[1],operatorid:[1],playercurrency:[513],hasfundsacknowledgment:[1],session:[513],language:[1537],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],currencylocale:[513],currencydisplay:[513],maximumfractiondigits:[513],minimumfractiondigits:[513],customdisplayformat:[513],alwaysshowdecimals:[513],actionStack:[32],customerFundsProtectionActive:[32]},[[8,"message","handleEvent"]]],[1,"user-funds-acknowledgment",{session:[513],operatorid:[513],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],endpoint:[513],language:[1537],translationUrl:[513,"translation-url"],currencylocale:[513],currencydisplay:[513],maximumfractiondigits:[513],minimumfractiondigits:[513],customdisplayformat:[513],alwaysshowdecimals:[513],playercurrency:[513],isLoading:[32],isConsentChecked:[32],totalCashAmount:[32],errorMessage:[32],consentsSubmitted:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],n))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./index-ec24e8d4.js";const n={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"},"financial-limit-notification":{emit:"openLimitNotificationModal",listen:"closeLimitNotificationModal"},"account-review-notification":{emit:"openAccountReviewModal",listen:"closeAccountReviewModal"},"accept-tax-consent":{emit:"openStakeModal",listen:"closeStakeModal"}},i=class{constructor(t){e(this,t),this.emitCurrentActionEvent=()=>{window.postMessage({type:n[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)},this.mbSource=void 0,this.endpoint=void 0,this.userid=void 0,this.operatorid=void 0,this.playercurrency="EUR",this.hasfundsacknowledgment="false",this.session="",this.language="en",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.currencylocale="en",this.currencydisplay="symbol",this.maximumfractiondigits="2",this.minimumfractiondigits="0",this.customdisplayformat="",this.alwaysshowdecimals="true",this.actionStack=[],this.customerFundsProtectionActive=!1}handleEvent(e){var t,i;(null===(i=n[null===(t=this.actionStack[0])||void 0===t?void 0:t.action])||void 0===i?void 0:i.listen)===e.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const e=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(e.href).then((e=>e.json())).then((e=>{var t,i;this.actionStack=e.actions.filter((e=>n[e.action])),this.actionStack.length>0&&this.emitCurrentActionEvent(),this.customerFundsProtectionActive=null!==(i=null===(t=e.actions)||void 0===t?void 0:t.some((e=>"customer-funds-protection"===e.action)))&&void 0!==i&&i,this.customerFundsProtectionActive&&window.postMessage({type:"ProtectionFundsActive"},window.location.href)}))}componentWillLoad(){return this.fetchUserActions()}render(){return this.customerFundsProtectionActive&&"false"!==this.hasfundsacknowledgment?t("user-funds-acknowledgment",{endpoint:this.endpoint,session:this.session,operatorid:this.operatorid,language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,currencylocale:this.currencylocale,currencydisplay:this.currencydisplay,maximumfractiondigits:this.maximumfractiondigits,minimumfractiondigits:this.minimumfractiondigits,playercurrency:this.playercurrency}):void 0}};i.style=":host{display:block}";const o="__WIDGET_GLOBAL_STYLE_CACHE__";function s(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function r(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then((e=>e.text())).then((t=>{const n=document.createElement("style");n.innerHTML=t,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function a(e,t,n,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return n=function(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(n.innerHTML=t,e.appendChild(n))}))}(e,t),n;window[o]||(window[o]={}),n=function(e,t){return window.emMessageBus.subscribe(t,(n=>{if(!e)return;const i=e.getRootNode(),s=window[o];let r=s[t]&&s[t].sheet;r?s[t].refCount=s[t].refCount+1:(r=new CSSStyleSheet,r.replaceSync(n),s[t]={sheet:r,refCount:1});const a=i.adoptedStyleSheets||[];a.includes(r)||(i.adoptedStyleSheets=[...a,r])}))}(e,t);const s=n.unsubscribe.bind(n);return n.unsubscribe=()=>{if(window[o][t]){const e=window[o][t];e.refCount>1?e.refCount=e.refCount-1:delete window[o][t]}s()},n}const c={en:{protectionTitle:"Protection of Customer Funds",protectionContent:'<p>We hold customer funds separate from company funds.<sup class="note"><a href="https://www.gamblingcommission.gov.uk/guidance/customer-funds-segregation-disclosure-to-customers-and-reporting/example-statements-that-might-be-used-in-terms-and-conditions-for-each-of#ref-2" target="_blank">12</a></sup> These funds ar <b>not protected</b> in the event of insolvency: <b>not protected segregation.</b></p><p>For more information, please see the <a href="https://www.gamblingcommission.gov.uk/guidance/customer-funds-segregation-disclosure-to-customers-and-reporting/the-customer-funds-insolvency-ratings-system" target="_blank">customer funds insolvency ratings system</a>.</p>',balanceArea:"Your current balance:",protectionCheckboxLabel:"I understand that my funds are <b>not protected</b> if the operator becomes insolvent.",userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Confirm",serverNotResponding:"Server might not be responding",apiCallError:"Request failed with status "},"en-us":{protectionTitle:"Terms and Conditions",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Email marketing",privacyPolicyTitle:"Privacy Policy",userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Submit",rejectButtonText:"Reject",rejectText:"Rejecting new consents will result in the inability to continue the login process and you will be logged out.",consentUpdateSuccess:"Consent update successful!",serverNotResponding:"Server might not be responding"},ro:{protectionTitle:"Termeni și Condiții",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Marketing prin Email",privacyPolicyTitle:"Politica de Confidențialitate",userNoticeText:"Înainte de a continua, trebuie să vă dați consimțământul pentru următoarele",submitButtonText:"Trimite",rejectButtonText:"Respinge",rejectText:"Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat.",consentUpdateSuccess:"Actualizare consimțământ reușită!",serverNotResponding:"Serverul s-ar putea să nu răspundă"},hr:{protectionTitle:"Opći uvjeti i odredbe",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"E-mail makretinški sadržaj",privacyPolicyTitle:"Politika Privatnosti",userNoticeText:"Prije nego što možete nastaviti, morate pristati na sljedeće",submitButtonText:"Pošalji",rejectButtonText:"Odbij",rejectText:"Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni.",consentUpdateSuccess:"Ažuriranje pristanka uspješno!",serverNotResponding:"Poslužitelj možda ne odgovara"},fr:{protectionTitle:"Termes et Conditions",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Marketing par Email",privacyPolicyTitle:"Politique de Confidentialité",userNoticeText:"Avant de continuer, vous devez consentir aux éléments suivants",submitButtonText:"Soumettre",rejectButtonText:"Rejeter",rejectText:"Le rejet des nouveaux consentements entraînera l'impossibilité de continuer le processus de connexion et vous serez déconnecté.",consentUpdateSuccess:"Mise à jour du consentement réussie!",serverNotResponding:"Le serveur ne répond peut-être pas"},cs:{protectionTitle:"Podmínky a ujednání",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Emailový marketing",privacyPolicyTitle:"Zásady ochrany osobních údajů",userNoticeText:"Než budete moci pokračovat, musíte souhlasit s následujícím",submitButtonText:"Odeslat",rejectButtonText:"Odmítnout",rejectText:"Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni.",consentUpdateSuccess:"Aktualizace souhlasu proběhla úspěšně!",serverNotResponding:"Server možná neodpovídá"},de:{protectionTitle:"Allgemeine Geschäftsbedingungen",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"E-Mail-Marketing",privacyPolicyTitle:"Datenschutzrichtlinie",userNoticeText:"Bevor Sie fortfahren können, müssen Sie den folgenden Punkten zustimmen",submitButtonText:"Absenden",rejectButtonText:"Ablehnen",rejectText:"Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden.",consentUpdateSuccess:"Zustimmung erfolgreich aktualisiert!",serverNotResponding:"Der Server antwortet möglicherweise nicht"},es:{protectionTitle:"Términos y Condiciones",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Marketing por Email",privacyPolicyTitle:"Política de Privacidad",userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.",consentUpdateSuccess:"¡Actualización del consentimiento exitosa!",serverNotResponding:"El servidor podría no estar respondiendo"},pt:{protectionTitle:"Termos e Condições",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Marketing por Email",privacyPolicyTitle:"Política de Privacidade",userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.",consentUpdateSuccess:"Atualização de consentimento bem-sucedida!",serverNotResponding:"O servidor pode não estar respondendo"},"es-mx":{protectionTitle:"Términos y Condiciones",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Marketing por Email",privacyPolicyTitle:"Política de Privacidad",userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión.",consentUpdateSuccess:"¡Actualización del consentimiento exitosa!",serverNotResponding:"El servidor podría no estar respondiendo"},"pt-br":{protectionTitle:"Termos e Condições",protectionContent:"We hold customer funds separate from company funds.",balanceArea:"Marketing por Email",privacyPolicyTitle:"Política de Privacidade",userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado.",consentUpdateSuccess:"Atualização de consentimento bem-sucedida!",serverNotResponding:"O servidor pode não estar respondendo"}},l=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{c[t]||(c[t]={});for(let n in e[t])c[t][n]=e[t][n]})),t(!0)}))})),d=(e,t,n)=>{let i=c[void 0!==t&&t in c?t:"en"][e];if(void 0!==n)for(const[e,t]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");i=i.replace(n,t)}return i},u=class{constructor(t){e(this,t),this.abortController=null,this.TIMEOUT_MS=1e4,this.formatBalance=e=>{if(this.customdisplayformat)return this.formatFromCustom(e);const t=this.currencylocale||this.language,n={style:"currency",currency:this.playercurrency,useGrouping:!0,currencyDisplay:this.currencydisplay,maximumFractionDigits:""===this.maximumfractiondigits||isNaN(Number(this.maximumfractiondigits))?2:Number(this.maximumfractiondigits),minimumFractionDigits:""===this.minimumfractiondigits||isNaN(Number(this.minimumfractiondigits))?0:Number(this.minimumfractiondigits)};return new Intl.NumberFormat(t,n).format(e)},this.formatFromCustom=e=>{const t=[];let n="";for(const i of this.customdisplayformat)switch(i){default:n+=i;break;case"{":n&&t.push(n),n="";break;case"}":const[o,s]=n.split("|");if(n="","currency"===o.toLowerCase())n=this.playercurrency;else if("amount"===o.toLowerCase()){let t=",",i=".",o=2;s&&(" "!==s[0]&&(t=s[0])," "!==s[1]&&(i=s[1])," "!==s[2]&&!isNaN(Number(s[2]))&&(o=Number(s[2])));let[r,a]=String(Math.floor(e*10**o)/10**o).split(".");n+=r[0];for(let e=1;e<r.length;++e)n+=(r.length-e)%3==0?t+r[e]:r[e];let c=a||"";const l="true"===this.alwaysshowdecimals,d=Number(this.maximumfractiondigits);if(l)c=c.padEnd(d||2,"0").substring(0,d);else if(!c)break;n+=i+c}n&&t.push(n),n=""}return t.push(n),t.join("")},this.handleSubmit=()=>{var e;this.consentsSubmitted=!0,null===(e=this.abortController)||void 0===e||e.abort(),this.abortController=new AbortController;const t=setTimeout((()=>{var e;null===(e=this.abortController)||void 0===e||e.abort("Request timed out")}),this.TIMEOUT_MS),n=`${this.endpoint}/api/pam/v1/actions/customer-funds-protection`,i=new Headers;return i.append("Content-Type","application/json"),i.append("X-SessionId",`${this.session}`),i.append("X-Tenant-ID",`${this.operatorid}`),fetch(n,{method:"POST",headers:i,body:JSON.stringify({accepted:!0}),signal:this.abortController.signal}).then((e=>{if(!e.ok)throw this.errorMessage=`${d("apiCallError",this.language)} ${e.status}`,new Error(`Request failed with status ${e.status}`);return 202===e.status?(this.errorMessage="",localStorage.removeItem("totalCashAmount"),void window.postMessage({type:"ProtectionFundsAccepted"},window.location.href)):e.json()})).catch((e=>{var t;"AbortError"!==e.name?(console.error("Customer funds protection request failed:",e.message),this.errorMessage=d("serverNotResponding",this.language)):"Request timed out"===(null===(t=this.abortController)||void 0===t?void 0:t.signal.reason)&&(this.errorMessage=d("serverNotResponding",this.language))})).finally((()=>{clearTimeout(t),this.abortController=null}))},this.session=void 0,this.operatorid=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.endpoint=void 0,this.language="en",this.translationUrl="",this.currencylocale="en",this.currencydisplay="symbol",this.maximumfractiondigits="2",this.minimumfractiondigits="0",this.customdisplayformat="",this.alwaysshowdecimals="true",this.playercurrency="EUR",this.isLoading=!1,this.isConsentChecked=!1,this.totalCashAmount=0,this.errorMessage="",this.consentsSubmitted=!1}handleNewTranslations(){l(this.translationUrl)}handleClientStylingChange(e,t){e!=t&&s(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&r(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(e,t){e!=t&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}async componentWillLoad(){this.translationUrl.length>2&&await l(this.translationUrl),this.totalCashAmount=parseFloat(localStorage.getItem("totalCashAmount"))||0}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&s(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&r(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){var e;null===(e=this.abortController)||void 0===e||e.abort("Component unmounted"),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}userLegislationConsentHandler(){this.checkboxInput&&(this.isConsentChecked=this.checkboxInput.checked),this.isConsentChecked&&(this.consentsSubmitted=!1,this.errorMessage="")}consentsArea(){return t("div",{class:"UserProtectionFundsCheckboxArea"},t("label",{class:"UserProtectionFundsCheckboxContent",htmlFor:"userProtectionFunds"},t("input",{ref:e=>this.checkboxInput=e,id:"userProtectionFunds",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),t("span",{innerHTML:`${d("protectionCheckboxLabel",this.language)}`})))}render(){return t("div",{key:"e6361dbe3338fd1bbf9b54eb41b3fddf0f8829c7",class:"QueryReferenceContainer",ref:e=>this.stylingContainer=e},this.isLoading?t("div",null,t("slot",{name:"spinner"}),t("svg",{class:"spinner",viewBox:"0 0 50 50"},t("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"}))):t("div",{class:"UserProtectionFundsContainer"},t("div",{class:"UserProtectionFundsTitle"},t("h2",null,d("protectionTitle",this.language))),t("div",{class:"UserProtectionFundsWrapper"},t("p",{innerHTML:`${d("protectionContent",this.language)}`})),t("div",{class:"UserProtectionFundsBalance"},t("p",null,d("balanceArea",this.language)," ",t("span",null,this.formatBalance(this.totalCashAmount)))),t("div",{class:"UserProtectionFundsButtonsWrapper"},t("div",null,this.consentsArea()),t("div",null,t("button",{class:"UserProtectionFundsSubmitButton",disabled:!this.isConsentChecked||""!=this.errorMessage||this.consentsSubmitted,onClick:this.handleSubmit},d("submitButtonText",this.language))),t("div",{class:"UserProtectionError"},""!=this.errorMessage&&this.errorMessage))))}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};u.style=":host{display:block}.QueryReferenceContainer{height:100%;width:100%}.UserProtectionFundsTitle{font-size:1.2rem;font-weight:200;text-align:center}.CloseButton{width:25px;height:25px;align-self:flex-end}.UserProtectionFundsContainer{font-family:inherit;font-weight:100;height:100%;padding:1rem 1.5rem;background-color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;justify-content:space-between;border-radius:var(--emw--border-radius-large, 20px);max-width:fit-content}.ConsentSubmitButton{font-size:1rem;font-family:var(--emw--button-typography);padding:0.4rem 1.4rem;background:var(--emw--button-background-color, #FFFFFF);border:var(--emw--button-border, 2px solid #000000);color:var(--emw--button-text-color, #000000);border-radius:var(--emw--button-border-radius, 10px);align-self:center;cursor:pointer}.ConsentSubmitButton:disabled{border:2px solid #ccc;color:#ccc;cursor:unset}.ButtonsWrapper{display:flex;flex-direction:column;margin-top:10px;gap:40px}.ButtonsWrapper button:only-child{margin-left:auto}.UserProtectionError{color:var(--emw--color-error, #FD2839);text-align:center;height:22px}@media screen and (max-width: 320px){.QueryReferenceContainer{font-size:0.8rem;color:var(--emw--button-text-color, #000000)}}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner .path{stroke:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}";export{i as user_actions,u as user_funds_acknowledgment}
|
package/package.json
CHANGED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-04ccb420.js');
|
|
6
|
-
|
|
7
|
-
const actionsMapping = {
|
|
8
|
-
"verification-popup": {
|
|
9
|
-
"emit": "openKycVerificationModal",
|
|
10
|
-
"listen": "closeKycVerificationModal"
|
|
11
|
-
},
|
|
12
|
-
"get-temporary-account-consents": {
|
|
13
|
-
"emit": "openTemporaryConsentsModal",
|
|
14
|
-
"listen": "closeTemporaryConsentsModal"
|
|
15
|
-
},
|
|
16
|
-
"limits-popup": {
|
|
17
|
-
"emit": "openLugasPopup",
|
|
18
|
-
"listen": "closeLugasPopup"
|
|
19
|
-
},
|
|
20
|
-
"video-verification-popup": {
|
|
21
|
-
"emit": "openKycVerificationModal",
|
|
22
|
-
"listen": "closeKycVerificationModal"
|
|
23
|
-
},
|
|
24
|
-
"unverified-phone-number": {
|
|
25
|
-
"emit": "openSmsVerificationModal",
|
|
26
|
-
"listen": "closeSmsVerificationModal"
|
|
27
|
-
},
|
|
28
|
-
"expired-consents": {
|
|
29
|
-
"emit": "openExpiredConsentsModal",
|
|
30
|
-
"listen": "closeExpiredConsentsModal"
|
|
31
|
-
},
|
|
32
|
-
"financial-limit-notification": {
|
|
33
|
-
"emit": "openLimitNotificationModal",
|
|
34
|
-
"listen": "closeLimitNotificationModal"
|
|
35
|
-
},
|
|
36
|
-
"account-review-notification": {
|
|
37
|
-
"emit": "openAccountReviewModal",
|
|
38
|
-
"listen": "closeAccountReviewModal"
|
|
39
|
-
},
|
|
40
|
-
"accept-tax-consent": {
|
|
41
|
-
"emit": "openStakeModal",
|
|
42
|
-
"listen": "closeStakeModal"
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const userActionsCss = ":host{display:block}";
|
|
47
|
-
const UserActionsStyle0 = userActionsCss;
|
|
48
|
-
|
|
49
|
-
const UserActions = class {
|
|
50
|
-
constructor(hostRef) {
|
|
51
|
-
index.registerInstance(this, hostRef);
|
|
52
|
-
this.emitCurrentActionEvent = () => {
|
|
53
|
-
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
54
|
-
};
|
|
55
|
-
this.shiftActionStack = () => {
|
|
56
|
-
this.actionStack = this.actionStack.slice(1);
|
|
57
|
-
};
|
|
58
|
-
this.endpoint = undefined;
|
|
59
|
-
this.userid = undefined;
|
|
60
|
-
this.actionStack = [];
|
|
61
|
-
}
|
|
62
|
-
handleEvent(e) {
|
|
63
|
-
var _a, _b;
|
|
64
|
-
if (((_b = actionsMapping[(_a = this.actionStack[0]) === null || _a === void 0 ? void 0 : _a.action]) === null || _b === void 0 ? void 0 : _b.listen) === e.data.type) {
|
|
65
|
-
this.shiftActionStack();
|
|
66
|
-
if (this.actionStack.length > 0)
|
|
67
|
-
this.emitCurrentActionEvent();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
fetchUserActions() {
|
|
71
|
-
const url = new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);
|
|
72
|
-
return fetch(url.href)
|
|
73
|
-
.then((response) => response.json())
|
|
74
|
-
.then(data => {
|
|
75
|
-
// filtering necessary to prevent widget from throwing "cannot read properties of 'undefined'"
|
|
76
|
-
// when the actions received are not part of actionsMapping
|
|
77
|
-
this.actionStack = data.actions.filter(action => actionsMapping[action.action]);
|
|
78
|
-
if (this.actionStack.length > 0)
|
|
79
|
-
this.emitCurrentActionEvent();
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
componentWillLoad() {
|
|
83
|
-
return this.fetchUserActions();
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
UserActions.style = UserActionsStyle0;
|
|
90
|
-
|
|
91
|
-
exports.user_actions = UserActions;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance } from './index-2b2bb7fc.js';
|
|
2
|
-
|
|
3
|
-
const actionsMapping = {
|
|
4
|
-
"verification-popup": {
|
|
5
|
-
"emit": "openKycVerificationModal",
|
|
6
|
-
"listen": "closeKycVerificationModal"
|
|
7
|
-
},
|
|
8
|
-
"get-temporary-account-consents": {
|
|
9
|
-
"emit": "openTemporaryConsentsModal",
|
|
10
|
-
"listen": "closeTemporaryConsentsModal"
|
|
11
|
-
},
|
|
12
|
-
"limits-popup": {
|
|
13
|
-
"emit": "openLugasPopup",
|
|
14
|
-
"listen": "closeLugasPopup"
|
|
15
|
-
},
|
|
16
|
-
"video-verification-popup": {
|
|
17
|
-
"emit": "openKycVerificationModal",
|
|
18
|
-
"listen": "closeKycVerificationModal"
|
|
19
|
-
},
|
|
20
|
-
"unverified-phone-number": {
|
|
21
|
-
"emit": "openSmsVerificationModal",
|
|
22
|
-
"listen": "closeSmsVerificationModal"
|
|
23
|
-
},
|
|
24
|
-
"expired-consents": {
|
|
25
|
-
"emit": "openExpiredConsentsModal",
|
|
26
|
-
"listen": "closeExpiredConsentsModal"
|
|
27
|
-
},
|
|
28
|
-
"financial-limit-notification": {
|
|
29
|
-
"emit": "openLimitNotificationModal",
|
|
30
|
-
"listen": "closeLimitNotificationModal"
|
|
31
|
-
},
|
|
32
|
-
"account-review-notification": {
|
|
33
|
-
"emit": "openAccountReviewModal",
|
|
34
|
-
"listen": "closeAccountReviewModal"
|
|
35
|
-
},
|
|
36
|
-
"accept-tax-consent": {
|
|
37
|
-
"emit": "openStakeModal",
|
|
38
|
-
"listen": "closeStakeModal"
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
const userActionsCss = ":host{display:block}";
|
|
43
|
-
const UserActionsStyle0 = userActionsCss;
|
|
44
|
-
|
|
45
|
-
const UserActions = class {
|
|
46
|
-
constructor(hostRef) {
|
|
47
|
-
registerInstance(this, hostRef);
|
|
48
|
-
this.emitCurrentActionEvent = () => {
|
|
49
|
-
window.postMessage({ type: actionsMapping[this.actionStack[0].action].emit });
|
|
50
|
-
};
|
|
51
|
-
this.shiftActionStack = () => {
|
|
52
|
-
this.actionStack = this.actionStack.slice(1);
|
|
53
|
-
};
|
|
54
|
-
this.endpoint = undefined;
|
|
55
|
-
this.userid = undefined;
|
|
56
|
-
this.actionStack = [];
|
|
57
|
-
}
|
|
58
|
-
handleEvent(e) {
|
|
59
|
-
var _a, _b;
|
|
60
|
-
if (((_b = actionsMapping[(_a = this.actionStack[0]) === null || _a === void 0 ? void 0 : _a.action]) === null || _b === void 0 ? void 0 : _b.listen) === e.data.type) {
|
|
61
|
-
this.shiftActionStack();
|
|
62
|
-
if (this.actionStack.length > 0)
|
|
63
|
-
this.emitCurrentActionEvent();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
fetchUserActions() {
|
|
67
|
-
const url = new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);
|
|
68
|
-
return fetch(url.href)
|
|
69
|
-
.then((response) => response.json())
|
|
70
|
-
.then(data => {
|
|
71
|
-
// filtering necessary to prevent widget from throwing "cannot read properties of 'undefined'"
|
|
72
|
-
// when the actions received are not part of actionsMapping
|
|
73
|
-
this.actionStack = data.actions.filter(action => actionsMapping[action.action]);
|
|
74
|
-
if (this.actionStack.length > 0)
|
|
75
|
-
this.emitCurrentActionEvent();
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
componentWillLoad() {
|
|
79
|
-
return this.fetchUserActions();
|
|
80
|
-
}
|
|
81
|
-
render() {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
UserActions.style = UserActionsStyle0;
|
|
86
|
-
|
|
87
|
-
export { UserActions as user_actions };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),r=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,l="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},a=c.document||{head:{}},u={o:0,i:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,p=[],d=[],w=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&u.o?b(v):u.raf(v))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},v=()=>{y(p),y(d),(m=p.length>0)&&u.raf(v)},b=t=>f().then(t),$=w(d,!0);function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>k,ok:()=>g,unwrap:()=>E,unwrapErr:()=>M});var g=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function k(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>g(t))):g(n)}if(t.isErr)return j(t.value);throw"should never get here"}var E=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},C=new WeakMap,O=t=>"sc-"+t.l,P=(t,e)=>{e&&!t.u&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.u=e)))},x=(t,e)=>{if(t.o|=16,!(4&t.o))return P(t,t.h),$((()=>T(t,e)));t.o|=512},T=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.m&&(t.m.map((([t,e])=>F(n,t,e))),t.m=void 0),o=F(n,"componentWillLoad")),L(o,(()=>R(t,n,e)))},L=(t,e)=>N(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),N=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,R=async(t,e,n)=>{var o;const r=t.$hostElement$,s=r["s-rc"];n&&(t=>{const e=t.p,n=t.$hostElement$,o=e.o,r=((t,e)=>{var n;const o=O(e),r=i.get(o);if(t=11===t.nodeType?t:a,r)if("string"==typeof r){let s,i=C.get(t=t.head||t);if(i||C.set(t,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=r;const e=null!=(n=u.v)?n:S(a);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=l),i&&i.add(o)}}else t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(t);U(t,e,r),s&&(s.map((t=>t())),r["s-rc"]=void 0);{const e=null!=(o=r["s-p"])?o:[],n=()=>W(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},U=(t,e,n)=>{try{e=e.render(),t.o&=-17,t.o|=2,1&t.p.o?n.shadowRoot.textContent=e:n.textContent=e}catch(e){r(e,t.$hostElement$)}return null},W=t=>{const e=t.$hostElement$,n=t.h;64&t.o||(t.o|=64,H(e),t.$(e),n||A()),t.u&&(t.u(),t.u=void 0),512&t.o&&b((()=>x(t,!1))),t.o&=-517},A=()=>{H(a.documentElement),b((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"user-actions"}});return t.dispatchEvent(e),e})(c)))},F=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t)}},H=t=>t.classList.add("hydrated"),q=(t,e,o)=>{var r,s;const i=t.prototype;if(e.S){const l=Object.entries(null!=(r=e.S)?r:{});if(l.map((([t,[r]])=>{(31&r||2&o&&32&r)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).j.get(e))(0,t)},set(o){((t,e,o,r)=>{const s=n(this);if(!s)throw Error(`Couldn't find host element for "${r.l}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.j.get(e),l=s.o,c=s.t;o=((t,e)=>null==t||(t=>"object"==(t=typeof t)||"function"===t)(t)?t:1&e?t+"":t)(o,r.S[e][0]),8&l&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.j.set(e,o),c&&2==(18&l)&&x(s,!1))})(0,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,r,s){u.jmp((()=>{var l;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==r){const n=o.t,i=null==(l=e.k)?void 0:l[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,r,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.k)?s:{}),...l.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},D=(t,o={})=>{var f;const m=[],p=o.exclude||[],d=c.customElements,w=a.head,y=w.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let $,g=!0;Object.assign(u,o),u.i=new URL(o.resourcesUrl||"./",a.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],l:o[1],S:o[2],M:o[3]};4&l.o&&(j=!0),l.S=o[2],l.M=o[3];const c=l.l,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,p:n,j:new Map};o.C=new Promise((t=>o.$=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.l}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,G(this,t,l.M)),$&&(clearTimeout($),$=null),g?b.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const e=n(t),o=e.p,l=()=>{};if(1&e.o)G(t,e,o.M),(null==e?void 0:e.t)||(null==e?void 0:e.C)&&e.C.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){P(e,e.h=n);break}}o.S&&Object.entries(o.S).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.O){const t=(t=>{const e=t.l.replace(/-/g,"_"),n=t.O;if(!n)return;const o=s.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),r)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.l}#${e.P}" was not found`);o.isProxied||(q(o,n,2),o.isProxied=!0);const i=()=>{};e.o|=8;try{new o(e)}catch(t){r(t)}e.o&=-9,i()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=O(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.h,c=()=>x(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){u.jmp((()=>(async()=>{if(!(1&u.o)){const t=n(this);t.T&&(t.T.map((t=>t())),t.T=void 0),(null==t?void 0:t.t)||(null==t?void 0:t.C)&&t.C.then((()=>{}))}})()))}componentOnReady(){return n(this).C}};l.O=t[0],p.includes(c)||d.get(c)||(m.push(c),d.define(c,q(a,l,1)))}))})),m.length>0&&(j&&(v.textContent+=l),v.textContent+=m.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(f=u.v)?f:S(a);null!=t&&v.setAttribute("nonce",t),w.insertBefore(v,y?y.nextSibling:w.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):u.jmp((()=>$=setTimeout(A,30)))},G=(t,e,n)=>{n&&n.map((([n,o,r])=>{const s=_(t,n),i=V(e,r),l=z(n);u.ael(s,o,i,l),(e.T=e.T||[]).push((()=>u.rel(s,o,i,l)))}))},V=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.m=t.m||[]).push([e,n])}catch(t){r(t)}},_=(t,e)=>8&e?c:t,z=t=>({passive:!!(1&t),capture:!!(2&t)}),B=t=>u.v=t;export{D as b,f as p,o as r,B as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i}from"./index-2b2bb7fc.js";const o={"verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"get-temporary-account-consents":{emit:"openTemporaryConsentsModal",listen:"closeTemporaryConsentsModal"},"limits-popup":{emit:"openLugasPopup",listen:"closeLugasPopup"},"video-verification-popup":{emit:"openKycVerificationModal",listen:"closeKycVerificationModal"},"unverified-phone-number":{emit:"openSmsVerificationModal",listen:"closeSmsVerificationModal"},"expired-consents":{emit:"openExpiredConsentsModal",listen:"closeExpiredConsentsModal"},"financial-limit-notification":{emit:"openLimitNotificationModal",listen:"closeLimitNotificationModal"},"account-review-notification":{emit:"openAccountReviewModal",listen:"closeAccountReviewModal"},"accept-tax-consent":{emit:"openStakeModal",listen:"closeStakeModal"}},t=class{constructor(t){i(this,t),this.emitCurrentActionEvent=()=>{window.postMessage({type:o[this.actionStack[0].action].emit})},this.shiftActionStack=()=>{this.actionStack=this.actionStack.slice(1)},this.endpoint=void 0,this.userid=void 0,this.actionStack=[]}handleEvent(i){var t,e;(null===(e=o[null===(t=this.actionStack[0])||void 0===t?void 0:t.action])||void 0===e?void 0:e.listen)===i.data.type&&(this.shiftActionStack(),this.actionStack.length>0&&this.emitCurrentActionEvent())}fetchUserActions(){const i=new URL(`${this.endpoint}/v1/player/${this.userid}/legislation/actions`);return fetch(i.href).then((i=>i.json())).then((i=>{this.actionStack=i.actions.filter((i=>o[i.action])),this.actionStack.length>0&&this.emitCurrentActionEvent()}))}componentWillLoad(){return this.fetchUserActions()}render(){}};t.style=":host{display:block}";export{t as user_actions}
|