@everymatrix/player-account-self-exclusion 0.0.201 → 0.0.205

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-self-exclusion",
3
- "version": "0.0.201",
3
+ "version": "0.0.205",
4
4
  "main": "dist/player-account-self-exclusion",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "71051531499cfea745b53a0f7c0a77a252990ae7"
40
+ "gitHead": "6dce99b13a7f9044dfab5b03c11def9ce42cbbe3"
41
41
  }
@@ -10,6 +10,7 @@
10
10
  import '@vaadin/vaadin-date-picker/vaadin-date-picker.js';
11
11
 
12
12
  export let lang:string = 'en';
13
+ export let operator:string = 'Everymatrix';
13
14
 
14
15
  let userAgent:string = window.navigator.userAgent;
15
16
  let isMobile:boolean = (getDevice(userAgent) === 'PC') ? false : true;
@@ -28,6 +29,7 @@
28
29
 
29
30
  currentDate.setDate(currentDate.getDate() + 7);
30
31
  minDate = moment(currentDate).format('YYYY-MM-DD');
32
+ selfExclusionExpiryDate = minDate;
31
33
 
32
34
  // Toggle permanent self exclusion
33
35
  const togglePermanentSelfExclusion = () => {
@@ -45,7 +47,7 @@
45
47
  } else {
46
48
  selfExclusionPeriod = 'SelfExclusionUntilSelectedDate';
47
49
 
48
- if (date.length > 0) {
50
+ if (date && date.length > 0) {
49
51
  selfExclusionExpiryDate = date;
50
52
  }
51
53
  }
@@ -104,14 +106,14 @@
104
106
 
105
107
 
106
108
  <div class="SelfExclusionDescription {isMobile ? 'SelfExclusionDescriptionMobile' : ''}">
107
- <p class="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText1')}</p>
109
+ <p class="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText1', { values: { operatorname: operator}})}</p>
108
110
  <p class="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText2')}</p>
109
111
  <p class="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText3')} support@everymatrix.com</p>
110
112
  <p class="SelfExclusionDescriptionText">{$_('selfExclusion.selfExclusionText4')} <a href="mailto:support@everymatrix.com">support@everymatrix.com</a></p>
111
113
  </div>
112
114
  <div class="SelfExclusionDateWrapper {isMobile ? 'SelfExclusionDateWrapperMobile' : ''}">
113
115
  <label for="SelfExclusionDate">{$_('selfExclusion.duration')}</label>
114
- <vaadin-date-picker bind:this={calendar} min={minDate}></vaadin-date-picker>
116
+ <vaadin-date-picker bind:this={calendar} min={minDate} value={minDate}></vaadin-date-picker>
115
117
  </div>
116
118
  <div class="SelfExclusionRadioWrapper {isMobile ? 'SelfExclusionRadioWrapperMobile' : ''}">
117
119
  <label class="SelfExclusionRadio">{$_('selfExclusion.forever')}
@@ -11,20 +11,20 @@ export const PlayerSelfExclusionTranslations = {
11
11
  save: `Save`,
12
12
  temporarySelfExclusion: `Your self-exclusion period will last until the {date} 23:59.`,
13
13
  permanentSelfExclusion: `Your self-exclusion period will be permanent.`
14
-
15
14
  }
16
15
  },
17
16
  ro: {
18
17
  selfExclusion: {
19
- title: `Self-Exclusion`,
20
- selfExclusionText1: `Everymatrix recognizes that gambling can lead to addiction and in our effort to prevent these problems, we offer our users the ability to exclude all forms of betting on our site for a certain of indefinite period of time.`,
21
- selfExclusionText2: `Self-exclusion takes effect from the time it is set for the period you choose. Select a timeframe below then click "Confirm".`,
22
- selfExclusionText3: `During self-exclusion you will not be able to access your Everymatrix account. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months post its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows: E-mail:`,
18
+ title: `Auto-Excludere`,
19
+ selfExclusionText1: `La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.`,
20
+ selfExclusionText2: `Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Confirmă".`,
21
+ selfExclusionText3: `Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:`,
23
22
  selfExclusionText4: `E-mail:`,
24
- duration: `Duration:`,
25
- forever: `Forever`,
26
- save: `Save`
27
-
23
+ duration: `Durată:`,
24
+ forever: `Permanent`,
25
+ save: `Salvează`,
26
+ temporarySelfExclusion: `Perioada de auto-excludere va dura pană la {date} 23:59.`,
27
+ permanentSelfExclusion: `Auto-excluderea este permanentă.`
28
28
  }
29
29
  }
30
30
  };