@everymatrix/player-account-controller 1.17.4 → 1.18.0
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/index.html
CHANGED
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
<div class="webcomponent">
|
|
34
|
-
<player-account-controller _ngcontent-mlq-c36="" playerid="3856617" session="d2fa7c11-83fb-43b3-9396-9b86f7826ba3" userroles="everyone,loggedIn,RE ROLE" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" env="stage" cmsendpoint="https://wt1-stage.everymatrix.com/apijson" customnotifications="#58586B,#2687F6,#D0046C" hasdefaultamount="false" simplepasswordvalidation="false" operator="Everymatrix" supportemail="supportTEST@everymatrix.com" lang="en"></player-account-controller>
|
|
34
|
+
<player-account-controller _ngcontent-mlq-c36="" playerid="3856617" session="d2fa7c11-83fb-43b3-9396-9b86f7826ba3" userroles="everyone,loggedIn,RE ROLE" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" env="stage" cmsendpoint="https://wt1-stage.everymatrix.com/apijson" customnotifications="#58586B,#2687F6,#D0046C" hasdefaultamount="false" simplepasswordvalidation="false" operator="Everymatrix" supportemail="supportTEST@everymatrix.com" lang="en" kyctitle="Account Verification" kycdescription="We require some documents to protect your account and to comply with legal and license requirements."></player-account-controller>
|
|
35
35
|
</body>
|
|
36
36
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-account-controller",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"main": "dist/player-account-controller.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6e90294022b2d742320099f1a4681ee431732dd5"
|
|
39
39
|
}
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
export let numberofentries:string = '';
|
|
52
52
|
export let customcurrencysymbols:string = '';
|
|
53
53
|
export let currency:string = '';
|
|
54
|
+
export let kyctitle:string = '';
|
|
55
|
+
export let kycdescription:string = '';
|
|
54
56
|
export let apiversion:string = '';
|
|
55
57
|
export let clientstyling:string = '';
|
|
56
58
|
export let clientstylingurl:string = '';
|
|
@@ -85,25 +87,8 @@
|
|
|
85
87
|
let errorPasswordChanged:string = '';
|
|
86
88
|
let showErrorPasswordChanged:boolean = false;
|
|
87
89
|
let selected:string;
|
|
88
|
-
let isOmInitalized: boolean = false;
|
|
89
90
|
let omWebWidgets: OmWidgets;
|
|
90
91
|
|
|
91
|
-
const widgetTitle = ['Profile Info',
|
|
92
|
-
'Change password',
|
|
93
|
-
'Reality Check',
|
|
94
|
-
'Timeout',
|
|
95
|
-
'Account Closure',
|
|
96
|
-
'Gaming Limits',
|
|
97
|
-
'Self Exclusion',
|
|
98
|
-
'Active Bonuses',
|
|
99
|
-
'Bonus History',
|
|
100
|
-
'Gaming History',
|
|
101
|
-
'Deposit',
|
|
102
|
-
'Withdrawal',
|
|
103
|
-
'Pending Withdrawals',
|
|
104
|
-
'Transaction History',
|
|
105
|
-
'Betting History',
|
|
106
|
-
'Limits'];
|
|
107
92
|
const widgetPath = ['/profile-info',
|
|
108
93
|
'/change-password',
|
|
109
94
|
'/reality-check',
|
|
@@ -119,7 +104,8 @@
|
|
|
119
104
|
'/pending-withdrawals',
|
|
120
105
|
'/transaction-history',
|
|
121
106
|
'/betting-history',
|
|
122
|
-
'/limits'
|
|
107
|
+
'/limits',
|
|
108
|
+
'/account-verification'];
|
|
123
109
|
|
|
124
110
|
let switchContent:boolean = false;
|
|
125
111
|
|
|
@@ -212,16 +198,6 @@
|
|
|
212
198
|
if (aux.length > 0) {
|
|
213
199
|
selected = aux[0].id;
|
|
214
200
|
}
|
|
215
|
-
|
|
216
|
-
/*if (e.data.pageId == 10) { // if it is the deposit page
|
|
217
|
-
let currentItem = menuData.filter((item) => {
|
|
218
|
-
if (item.id == selected) {
|
|
219
|
-
return item;
|
|
220
|
-
}
|
|
221
|
-
})
|
|
222
|
-
switchContent = true;
|
|
223
|
-
pagePath = currentItem[0].path;
|
|
224
|
-
}*/
|
|
225
201
|
});
|
|
226
202
|
|
|
227
203
|
break;
|
|
@@ -764,40 +740,6 @@
|
|
|
764
740
|
getData();
|
|
765
741
|
}
|
|
766
742
|
|
|
767
|
-
// const initOMWidgets = () => {
|
|
768
|
-
// //@ts-ignore
|
|
769
|
-
// import('https://static.everymatrix.com/omfe-widgets/s/widgets/0.158.13/widgets.min.js').then(() => {
|
|
770
|
-
// const omWidgetsConfig = {
|
|
771
|
-
// operatorId: operatorid,
|
|
772
|
-
// publicPath: 'https://static.everymatrix.com/omfe-widgets/s/widgets/0.158.13/',
|
|
773
|
-
// webApiWampy: {
|
|
774
|
-
// 'url': webapiendpoint,
|
|
775
|
-
// 'realm': realm
|
|
776
|
-
// },
|
|
777
|
-
// icons: 'https://static.everymatrix.com/omfe-widgets/s/assets/1.10.3/om2/icons/',
|
|
778
|
-
// reconnectDetails: {
|
|
779
|
-
// active: true, // if reconnect details should be active
|
|
780
|
-
// minInterval: 1000, // the min period until a reconnect attempt
|
|
781
|
-
// maxInterval: 10000, // the max period until a reconnect
|
|
782
|
-
// intervalIncrement: 1000, // the incremental period added for each failed reconnect attempt
|
|
783
|
-
// },
|
|
784
|
-
// oddsInfo:{
|
|
785
|
-
// oddsFormat:'DECIMAL'
|
|
786
|
-
// },
|
|
787
|
-
// auth: {
|
|
788
|
-
// type: 'EmSession',
|
|
789
|
-
// sessionId: 'AuthenticationNotLoaded' // show loading until token is passed
|
|
790
|
-
// },
|
|
791
|
-
// };
|
|
792
|
-
// omWebWidgets = (window as any).omWebWidgets
|
|
793
|
-
// omWebWidgets.init(omWidgetsConfig);
|
|
794
|
-
// }).catch(error => {
|
|
795
|
-
// console.error(error);
|
|
796
|
-
// }).finally(() => {
|
|
797
|
-
// isOmInitalized = true;
|
|
798
|
-
// })
|
|
799
|
-
// }
|
|
800
|
-
|
|
801
743
|
const updateOMSession = (session: string) => {
|
|
802
744
|
omWebWidgets.updateAuthMethod({
|
|
803
745
|
type: 'EmSession',
|
|
@@ -841,6 +783,10 @@
|
|
|
841
783
|
|
|
842
784
|
</script>
|
|
843
785
|
|
|
786
|
+
<svelte:head>
|
|
787
|
+
<script type="module" src="https://unpkg.com/@everymatrix/player-kyc-verification@1.17.0"></script>
|
|
788
|
+
</svelte:head>
|
|
789
|
+
|
|
844
790
|
<div bind:this={customStylingContainer}>
|
|
845
791
|
{#if isLoading}
|
|
846
792
|
<div class="ModalLoader"></div>
|
|
@@ -885,6 +831,8 @@
|
|
|
885
831
|
<player-account-betting-history {endpoint} {session} {playerid} {lang} {clientstyling} {clientstylingurl}></player-account-betting-history>
|
|
886
832
|
{:else if switchContent && pagePath === widgetPath[15]}
|
|
887
833
|
<player-account-gaming-limits-wrapper-2 {endpoint} userid={playerid} {session} {lang} {tablabels} {historyenabled} {deletelimit} {limitsamount} {limitsperiods} {numberofentries} {customcurrencysymbols} {currency} {apiversion} {translationurl} {clientstyling} {clientstylingurl}></player-account-gaming-limits-wrapper-2>
|
|
834
|
+
{:else if switchContent && pagePath === widgetPath[16]}
|
|
835
|
+
<player-kyc-verification {endpoint} {session} user-id={playerid} language={lang} kyc-title={kyctitle} description={kycdescription} translation-url={translationurl} client-styling={clientstyling} client-styling-url={clientstylingurl}></player-kyc-verification>
|
|
888
836
|
{/if}
|
|
889
837
|
{/if}
|
|
890
838
|
{:else}
|
|
@@ -924,6 +872,8 @@
|
|
|
924
872
|
<player-account-betting-history {endpoint} {session} {playerid} {lang} {clientstyling} {clientstylingurl}></player-account-betting-history>
|
|
925
873
|
{:else if switchContent && pagePath === widgetPath[15]}
|
|
926
874
|
<player-account-gaming-limits-wrapper-2 {endpoint} userid={playerid} {session} {tablabels} {lang} {historyenabled} {deletelimit} {limitsamount} {limitsperiods} {numberofentries} {customcurrencysymbols} {currency} {apiversion} {translationurl} {clientstyling} {clientstylingurl}></player-account-gaming-limits-wrapper-2>
|
|
875
|
+
{:else if switchContent && pagePath === widgetPath[16]}
|
|
876
|
+
<player-kyc-verification {endpoint} {session} user-id={playerid} language={lang} kyc-title={kyctitle} description={kycdescription} translation-url={translationurl} client-styling={clientstyling} client-styling-url={clientstylingurl}></player-kyc-verification>
|
|
927
877
|
{/if}
|
|
928
878
|
</main>
|
|
929
879
|
<aside>
|