@everymatrix/player-account-controller 1.17.5 → 1.19.1

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.17.5",
3
+ "version": "1.19.1",
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": "e558426aacbc1f9a28260526551afc6d4cf887b1"
38
+ "gitHead": "53804d0145ef53f7aea783df10ef50dbeaf42c5f"
39
39
  }
@@ -51,12 +51,23 @@
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 = '';
57
59
  export let translationurl:string = '';
58
60
  export let custominputtextswitch:string = 'false'; // used by playzonbet for switching input field texts and validation for register and player profile widgets: security question, answer, error messages and validation
59
61
  export let gmversion:string = '';
62
+ export let channel:string = '';
63
+ export let producttype:string = '';
64
+ export let successurl:string = '';
65
+ export let failurl:string = '';
66
+ export let cancelurl:string = '';
67
+ export let sportsurl:string = '';
68
+ export let casinourl:string = '';
69
+ export let contacturl:string = '';
70
+ export let homeurl:string = '';
60
71
 
61
72
  setupI18n({ withLocale: 'en', translations: {}});
62
73
 
@@ -85,25 +96,8 @@
85
96
  let errorPasswordChanged:string = '';
86
97
  let showErrorPasswordChanged:boolean = false;
87
98
  let selected:string;
88
- let isOmInitalized: boolean = false;
89
99
  let omWebWidgets: OmWidgets;
90
100
 
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
101
  const widgetPath = ['/profile-info',
108
102
  '/change-password',
109
103
  '/reality-check',
@@ -119,7 +113,11 @@
119
113
  '/pending-withdrawals',
120
114
  '/transaction-history',
121
115
  '/betting-history',
122
- '/limits'];
116
+ '/limits',
117
+ '/account-verification',
118
+ '/cashier-deposit',
119
+ '/cashier-withdrawal',
120
+ '/transactions-history'];
123
121
 
124
122
  let switchContent:boolean = false;
125
123
 
@@ -212,16 +210,6 @@
212
210
  if (aux.length > 0) {
213
211
  selected = aux[0].id;
214
212
  }
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
213
  });
226
214
 
227
215
  break;
@@ -764,40 +752,6 @@
764
752
  getData();
765
753
  }
766
754
 
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
755
  const updateOMSession = (session: string) => {
802
756
  omWebWidgets.updateAuthMethod({
803
757
  type: 'EmSession',
@@ -841,6 +795,12 @@
841
795
 
842
796
  </script>
843
797
 
798
+ <svelte:head>
799
+ <script type="module" src="https://unpkg.com/@everymatrix/user-deposit-withdrawal@1.17.0"></script>
800
+ <script type="module" src="https://unpkg.com/@everymatrix/player-kyc-verification@1.17.0"></script>
801
+ <script type="module" src="https://unpkg.com/@everymatrix/user-transaction-history@1.17.0"></script>
802
+ </svelte:head>
803
+
844
804
  <div bind:this={customStylingContainer}>
845
805
  {#if isLoading}
846
806
  <div class="ModalLoader"></div>
@@ -885,7 +845,15 @@
885
845
  <player-account-betting-history {endpoint} {session} {playerid} {lang} {clientstyling} {clientstylingurl}></player-account-betting-history>
886
846
  {:else if switchContent && pagePath === widgetPath[15]}
887
847
  <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>
888
- {/if}
848
+ {:else if switchContent && pagePath === widgetPath[16]}
849
+ <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>
850
+ {:else if switchContent && pagePath === widgetPath[17] }
851
+ <user-deposit-withdrawal {endpoint} type="deposit" {channel} language={lang} product-type={producttype} user-id={playerid} {session} success-url={successurl} cancel-url={cancelurl} fail-url={failurl} sports-url={sportsurl} casino-url={casinourl} contact-url={contacturl} home-url={homeurl} ></user-deposit-withdrawal>
852
+ {:else if switchContent && pagePath === widgetPath[18] }
853
+ <user-deposit-withdrawal {endpoint} type="withdraw" {channel} language={lang} product-type={producttype} user-id={playerid} {session} success-url={successurl} cancel-url={cancelurl} fail-url={failurl} sports-url={sportsurl} casino-url={casinourl} contact-url={contacturl} home-url={homeurl} ></user-deposit-withdrawal>
854
+ {:else if switchContent && pagePath === widgetPath[19] }
855
+ <user-transaction-history endpoint={endpoint} user-id={playerid} session={session} mobile={isMobile} translation-url={translationurl} language={lang}></user-transaction-history>
856
+ {/if}
889
857
  {/if}
890
858
  {:else}
891
859
  <nav>
@@ -924,7 +892,15 @@
924
892
  <player-account-betting-history {endpoint} {session} {playerid} {lang} {clientstyling} {clientstylingurl}></player-account-betting-history>
925
893
  {:else if switchContent && pagePath === widgetPath[15]}
926
894
  <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>
927
- {/if}
895
+ {:else if switchContent && pagePath === widgetPath[16]}
896
+ <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>
897
+ {:else if switchContent && pagePath === widgetPath[17] }
898
+ <user-deposit-withdrawal {endpoint} type="deposit" {channel} language={lang} product-type={producttype} user-id={playerid} {session} success-url={successurl} cancel-url={cancelurl} fail-url={failurl} sports-url={sportsurl} casino-url={casinourl} contact-url={contacturl} home-url={homeurl} ></user-deposit-withdrawal>
899
+ {:else if switchContent && pagePath === widgetPath[18] }
900
+ <user-deposit-withdrawal {endpoint} type="withdraw" {channel} language={lang} product-type={producttype} user-id={playerid} {session} success-url={successurl} cancel-url={cancelurl} fail-url={failurl} sports-url={sportsurl} casino-url={casinourl} contact-url={contacturl} home-url={homeurl} ></user-deposit-withdrawal>
901
+ {:else if switchContent && pagePath === widgetPath[19] }
902
+ <user-transaction-history endpoint={endpoint} user-id={playerid} session={session} mobile={isMobile} translation-url={translationurl} language={lang}></user-transaction-history>
903
+ {/if}
928
904
  </main>
929
905
  <aside>
930
906
  <player-account-notifications customnotif={customnotifications} {clientstyling} {clientstylingurl}></player-account-notifications>