@everymatrix/player-sms-verification 1.55.0 → 1.56.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.
Files changed (25) hide show
  1. package/dist/cjs/{index-1ab65bbf.js → index-2de7dcf7.js} +174 -68
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/player-sms-verification.cjs.entry.js +102 -39
  4. package/dist/cjs/player-sms-verification.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/player-sms-verification/player-sms-verification.js +76 -38
  7. package/dist/esm/{index-2261775b.js → index-3ab66176.js} +174 -68
  8. package/dist/esm/loader.js +3 -3
  9. package/dist/esm/player-sms-verification.entry.js +102 -39
  10. package/dist/esm/player-sms-verification.js +4 -4
  11. package/dist/player-sms-verification/{p-9cdfa3fa.entry.js → p-8b381f95.entry.js} +1 -1
  12. package/dist/player-sms-verification/p-e4128523.js +2 -0
  13. package/dist/player-sms-verification/player-sms-verification.esm.js +1 -1
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/components/player-sms-verification/player-sms-verification.d.ts +5 -3
  17. package/dist/types/components.d.ts +2 -0
  18. package/package.json +1 -1
  19. package/dist/player-sms-verification/p-3e6eb9ea.js +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1ab65bbf.js');
5
+ const index = require('./index-2de7dcf7.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -194,50 +194,103 @@ const translate = (key, customLang) => {
194
194
  return TRANSLATIONS[lang !== undefined ? lang : DEFAULT_LANGUAGE][key];
195
195
  };
196
196
 
197
+ /**
198
+ * @name setClientStyling
199
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
200
+ * @param {HTMLElement} stylingContainer The reference element of the widget
201
+ * @param {string} clientStyling The style content
202
+ */
203
+ function setClientStyling(stylingContainer, clientStyling) {
204
+ if (stylingContainer) {
205
+ const sheet = document.createElement('style');
206
+ sheet.innerHTML = clientStyling;
207
+ stylingContainer.appendChild(sheet);
208
+ }
209
+ }
210
+
211
+ /**
212
+ * @name setClientStylingURL
213
+ * @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
214
+ * @param {HTMLElement} stylingContainer The reference element of the widget
215
+ * @param {string} clientStylingUrl The URL of the style content
216
+ */
217
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
218
+ const url = new URL(clientStylingUrl);
219
+
220
+ fetch(url.href)
221
+ .then((res) => res.text())
222
+ .then((data) => {
223
+ const cssFile = document.createElement('style');
224
+ cssFile.innerHTML = data;
225
+ if (stylingContainer) {
226
+ stylingContainer.appendChild(cssFile);
227
+ }
228
+ })
229
+ .catch((err) => {
230
+ console.error('There was an error while trying to load client styling from URL', err);
231
+ });
232
+ }
233
+
234
+ /**
235
+ * @name setStreamLibrary
236
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
237
+ * @param {HTMLElement} stylingContainer The highest element of the widget
238
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
239
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
240
+ */
241
+ function setStreamStyling(stylingContainer, domain, subscription) {
242
+ if (window.emMessageBus) {
243
+ const sheet = document.createElement('style');
244
+
245
+ window.emMessageBus.subscribe(domain, (data) => {
246
+ sheet.innerHTML = data;
247
+ if (stylingContainer) {
248
+ stylingContainer.appendChild(sheet);
249
+ }
250
+ });
251
+ }
252
+ }
253
+
197
254
  const playerSmsVerificationCss = ":host{display:block}.PlayerSmsVerification{padding:30px;display:flex;align-items:center;flex-direction:column;background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8))}.PlayerSmsVerificationTitleContainer{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));position:relative;display:flex;flex-direction:column;width:100%;margin-bottom:60px}.PlayerSmsVerificationTitle{font-size:20px;font-weight:300;text-transform:uppercase;padding:0;margin:0}.PlayerSmsVerificationSubtitle{font-size:14px}.PlayerSmsVerificationContainer{position:relative;width:100%;display:flex;flex-direction:column;margin-bottom:75px}.PlayerSmsVerificationButtonContainer{position:relative;width:100%;display:flex;flex-direction:column;gap:25px}.PlayerSmsVerificationButton{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;font-family:inherit}.PlayerSmsVerificationButton:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.PlayerSmsVerificationInput{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;position:relative;width:100%}.PlayerSmsVerificationInput input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;text-align:center;line-height:18px;font-family:inherit}.PlayerSmsVerificationInput.Hidden{display:none}.PlayerSmsVerificationMsg{font-size:12px;color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B))}.PlayerSmsVerificationMsg.Hidden{display:none}.PlayerSmsVerificationErrMsg{font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.PlayerSMSErrorTextPlaceholder{padding:3px}";
198
255
  const PlayerSmsVerificationStyle0 = playerSmsVerificationCss;
199
256
 
200
257
  const PlayerSmsVerification = class {
201
258
  constructor(hostRef) {
202
259
  index.registerInstance(this, hostRef);
203
- // Other variables
204
- this.btnResendCount = 60;
205
- this.isCodeSentOnce = false;
206
- this.isBtnSendAvailable = true;
207
- this.setClientStyling = () => {
208
- let sheet = document.createElement('style');
209
- sheet.innerHTML = this.clientStyling;
210
- this.stylingContainer.prepend(sheet);
211
- };
212
- this.setClientStylingURL = () => {
213
- let url = new URL(this.clientStylingUrl);
214
- let cssFile = document.createElement('style');
215
- fetch(url.href)
216
- .then((res) => res.text())
217
- .then((data) => {
218
- cssFile.innerHTML = data;
219
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
220
- })
221
- .catch((err) => {
222
- console.log('error ', err);
223
- });
224
- };
225
- this.endpoint = undefined;
226
- this.userId = undefined;
260
+ /**
261
+ * Currently selected language
262
+ */
227
263
  this.lang = 'en';
264
+ /**
265
+ * Client custom styling via inline styles
266
+ */
228
267
  this.clientStyling = '';
268
+ /**
269
+ * Client custom styling via url
270
+ */
229
271
  this.clientStylingUrl = '';
272
+ /**
273
+ * Translations via URL
274
+ */
230
275
  this.translationUrl = '';
231
- this.tempBtnResendCount = undefined;
232
276
  this.code = '';
233
277
  this.errMsg = '';
234
278
  this.msgEnterCode = '';
279
+ // Other variables
280
+ this.btnResendCount = 60;
281
+ this.isCodeSentOnce = false;
282
+ this.isBtnSendAvailable = true;
235
283
  }
236
- updateClientStyling() {
237
- if (this.clientStyling)
238
- this.setClientStyling();
239
- if (this.clientStylingUrl)
240
- this.setClientStylingURL();
284
+ handleClientStylingChange(newValue, oldValue) {
285
+ if (newValue != oldValue) {
286
+ setClientStyling(this.stylingContainer, this.clientStyling);
287
+ }
288
+ }
289
+ handleClientStylingUrlChange(newValue, oldValue) {
290
+ if (newValue != oldValue) {
291
+ if (this.clientStylingUrl)
292
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
293
+ }
241
294
  }
242
295
  componentWillLoad() {
243
296
  if (this.translationUrl) {
@@ -246,10 +299,17 @@ const PlayerSmsVerification = class {
246
299
  }
247
300
  }
248
301
  componentDidLoad() {
249
- if (this.clientStyling)
250
- this.setClientStyling();
251
- if (this.clientStylingUrl)
252
- this.setClientStylingURL();
302
+ if (this.stylingContainer) {
303
+ if (window.emMessageBus != undefined) {
304
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
305
+ }
306
+ else {
307
+ if (this.clientStyling)
308
+ setClientStyling(this.stylingContainer, this.clientStyling);
309
+ if (this.clientStylingUrl)
310
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
311
+ }
312
+ }
253
313
  }
254
314
  startTimerBtnResendCode() {
255
315
  this.isBtnSendAvailable = false;
@@ -354,14 +414,17 @@ const PlayerSmsVerification = class {
354
414
  handleInput(event) {
355
415
  this.code = event.target.value;
356
416
  }
417
+ disconnectedCallback() {
418
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
419
+ }
357
420
  render() {
358
- return index.h("div", { key: 'f9433650b2e4a6c674be0bfec4ed043dcfb89e4f', class: "PlayerSmsVerification", ref: el => this.stylingContainer = el }, index.h("div", { key: '5f232e9b271aec1ae71b37b5790593703088639f', class: "PlayerSmsVerificationTitleContainer" }, index.h("h4", { key: 'bb197f37b8bf50c4dd18a14d3961292fc195363f', class: "PlayerSmsVerificationTitle" }, translate('title', this.lang)), index.h("p", { key: 'c20c1efb474c107aa560a9d4880f98df6467254a', class: "PlayerSmsVerificationSubtitle" }, translate('subtitle', this.lang))), index.h("div", { key: '99e96a1bd91e4c94813c4f29279a37f3de7cd037', class: "PlayerSmsVerificationContainer" }, index.h("p", { key: '20762aa83d74261f01d834699159cb8f2a76038c', class: "PlayerSmsVerificationMsg" + (this.msgEnterCode ? "" : " Hidden") }, translate(this.msgEnterCode, this.lang)), index.h("div", { key: 'd55c2e83e5a97451051a0c8e6d16c00c43ea00df', class: "PlayerSmsVerificationInput" }, index.h("input", { key: '94acb6c934dde4f9b8b8476306c9851ab5ebb642', type: "text", onInput: (event) => this.handleInput(event), value: this.code })), this.errMsg
421
+ return index.h("div", { key: 'da8e1da7cf6a49519ff1c6cae3eb17ee288237f2', class: "PlayerSmsVerification", ref: el => this.stylingContainer = el }, index.h("div", { key: 'f6d7f84527ec88f6027e2ba717bb2a92fe6175e9', class: "PlayerSmsVerificationTitleContainer" }, index.h("h4", { key: '37f471083259e90b5b54e0a76f1fcff7bb40c14c', class: "PlayerSmsVerificationTitle" }, translate('title', this.lang)), index.h("p", { key: '545c12575aa056b7fc92e60f95db351c2938f85d', class: "PlayerSmsVerificationSubtitle" }, translate('subtitle', this.lang))), index.h("div", { key: '9277f7f1147b1f245393be66e66e81f1ae03f373', class: "PlayerSmsVerificationContainer" }, index.h("p", { key: 'a37c285eb9aade13bc80cc8d2fa48c3818f1316b', class: "PlayerSmsVerificationMsg" + (this.msgEnterCode ? "" : " Hidden") }, translate(this.msgEnterCode, this.lang)), index.h("div", { key: '57da383cbb9d70f9d5f656f7c9775d9311cdc923', class: "PlayerSmsVerificationInput" }, index.h("input", { key: 'cd34b784a81c9eab6b0c26dc03c5e7aafd917824', type: "text", onInput: (event) => this.handleInput(event), value: this.code })), this.errMsg
359
422
  ? index.h("p", { class: "PlayerSmsVerificationErrMsg" }, translate(this.errMsg, this.lang))
360
- : index.h("p", { class: "PlayerSmsVerificationMsg" + (!this.isBtnSendAvailable && this.isCodeSentOnce ? "" : " Hidden") }, translate('msgResendNotice', this.lang)), !this.errMsg && index.h("p", { key: '1d1f1d16b5372a9bfb987ff1e905bb96e19d2ad2', class: "PlayerSMSErrorTextPlaceholder" })), index.h("div", { key: '722cc5e47fd4f45eca29624aa1227f1f313f3de3', class: "PlayerSmsVerificationButtonContainer" }, index.h("button", { key: '1413cb8915f12ab35cb87cd641d88252f520a6ae', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleSendCode.bind(this), 850), disabled: !this.isBtnSendAvailable }, this.isCodeSentOnce ? this.isBtnSendAvailable ? translate('btnResend', this.lang) : this.tempBtnResendCount : translate('btnSend', this.lang)), index.h("button", { key: '19cf151085f9b983565ff9df0851cd3256776842', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleCheckCode.bind(this), 850), disabled: !this.isCodeSentOnce || this.code === '' || this.code === undefined }, translate('btnActivate', this.lang))));
423
+ : index.h("p", { class: "PlayerSmsVerificationMsg" + (!this.isBtnSendAvailable && this.isCodeSentOnce ? "" : " Hidden") }, translate('msgResendNotice', this.lang)), !this.errMsg && index.h("p", { key: 'f85d75a75e8f604fa7f5f491f1ecdb9aa1d0526e', class: "PlayerSMSErrorTextPlaceholder" })), index.h("div", { key: '51fd4a63efdf720ef743148ca2126cf188b14d83', class: "PlayerSmsVerificationButtonContainer" }, index.h("button", { key: '527ec723234d3479d120314a3bb09cea4d11224f', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleSendCode.bind(this), 850), disabled: !this.isBtnSendAvailable }, this.isCodeSentOnce ? this.isBtnSendAvailable ? translate('btnResend', this.lang) : this.tempBtnResendCount : translate('btnSend', this.lang)), index.h("button", { key: 'ac5d61787dcca55870e80e0d1c5423622b9caaf8', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleCheckCode.bind(this), 850), disabled: !this.isCodeSentOnce || this.code === '' || this.code === undefined }, translate('btnActivate', this.lang))));
361
424
  }
362
425
  static get watchers() { return {
363
- "clientStyling": ["updateClientStyling"],
364
- "clientStylingUrl": ["updateClientStyling"]
426
+ "clientStyling": ["handleClientStylingChange"],
427
+ "clientStylingUrl": ["handleClientStylingUrlChange"]
365
428
  }; }
366
429
  };
367
430
  PlayerSmsVerification.style = PlayerSmsVerificationStyle0;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1ab65bbf.js');
5
+ const index = require('./index-2de7dcf7.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('player-sms-verification.cjs.js', document.baseURI).href));
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["player-sms-verification.cjs",[[1,"player-sms-verification",{"endpoint":[513],"userId":[513,"user-id"],"lang":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"tempBtnResendCount":[32],"code":[32],"errMsg":[32],"msgEnterCode":[32]},null,{"clientStyling":["updateClientStyling"],"clientStylingUrl":["updateClientStyling"]}]]]], options);
22
+ return index.bootstrapLazy([["player-sms-verification.cjs",[[1,"player-sms-verification",{"endpoint":[513],"userId":[513,"user-id"],"lang":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[513,"translation-url"],"tempBtnResendCount":[32],"code":[32],"errMsg":[32],"msgEnterCode":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,45 +1,42 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { getTranslations, translate } from "../../utils/utils";
3
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
4
  export class PlayerSmsVerification {
4
5
  constructor() {
5
- // Other variables
6
- this.btnResendCount = 60;
7
- this.isCodeSentOnce = false;
8
- this.isBtnSendAvailable = true;
9
- this.setClientStyling = () => {
10
- let sheet = document.createElement('style');
11
- sheet.innerHTML = this.clientStyling;
12
- this.stylingContainer.prepend(sheet);
13
- };
14
- this.setClientStylingURL = () => {
15
- let url = new URL(this.clientStylingUrl);
16
- let cssFile = document.createElement('style');
17
- fetch(url.href)
18
- .then((res) => res.text())
19
- .then((data) => {
20
- cssFile.innerHTML = data;
21
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
22
- })
23
- .catch((err) => {
24
- console.log('error ', err);
25
- });
26
- };
27
- this.endpoint = undefined;
28
- this.userId = undefined;
6
+ /**
7
+ * Currently selected language
8
+ */
29
9
  this.lang = 'en';
10
+ /**
11
+ * Client custom styling via inline styles
12
+ */
30
13
  this.clientStyling = '';
14
+ /**
15
+ * Client custom styling via url
16
+ */
31
17
  this.clientStylingUrl = '';
18
+ /**
19
+ * Translations via URL
20
+ */
32
21
  this.translationUrl = '';
33
- this.tempBtnResendCount = undefined;
34
22
  this.code = '';
35
23
  this.errMsg = '';
36
24
  this.msgEnterCode = '';
25
+ // Other variables
26
+ this.btnResendCount = 60;
27
+ this.isCodeSentOnce = false;
28
+ this.isBtnSendAvailable = true;
29
+ }
30
+ handleClientStylingChange(newValue, oldValue) {
31
+ if (newValue != oldValue) {
32
+ setClientStyling(this.stylingContainer, this.clientStyling);
33
+ }
37
34
  }
38
- updateClientStyling() {
39
- if (this.clientStyling)
40
- this.setClientStyling();
41
- if (this.clientStylingUrl)
42
- this.setClientStylingURL();
35
+ handleClientStylingUrlChange(newValue, oldValue) {
36
+ if (newValue != oldValue) {
37
+ if (this.clientStylingUrl)
38
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
39
+ }
43
40
  }
44
41
  componentWillLoad() {
45
42
  if (this.translationUrl) {
@@ -48,10 +45,17 @@ export class PlayerSmsVerification {
48
45
  }
49
46
  }
50
47
  componentDidLoad() {
51
- if (this.clientStyling)
52
- this.setClientStyling();
53
- if (this.clientStylingUrl)
54
- this.setClientStylingURL();
48
+ if (this.stylingContainer) {
49
+ if (window.emMessageBus != undefined) {
50
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
51
+ }
52
+ else {
53
+ if (this.clientStyling)
54
+ setClientStyling(this.stylingContainer, this.clientStyling);
55
+ if (this.clientStylingUrl)
56
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
57
+ }
58
+ }
55
59
  }
56
60
  startTimerBtnResendCode() {
57
61
  this.isBtnSendAvailable = false;
@@ -156,10 +160,13 @@ export class PlayerSmsVerification {
156
160
  handleInput(event) {
157
161
  this.code = event.target.value;
158
162
  }
163
+ disconnectedCallback() {
164
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
165
+ }
159
166
  render() {
160
- return h("div", { key: 'f9433650b2e4a6c674be0bfec4ed043dcfb89e4f', class: "PlayerSmsVerification", ref: el => this.stylingContainer = el }, h("div", { key: '5f232e9b271aec1ae71b37b5790593703088639f', class: "PlayerSmsVerificationTitleContainer" }, h("h4", { key: 'bb197f37b8bf50c4dd18a14d3961292fc195363f', class: "PlayerSmsVerificationTitle" }, translate('title', this.lang)), h("p", { key: 'c20c1efb474c107aa560a9d4880f98df6467254a', class: "PlayerSmsVerificationSubtitle" }, translate('subtitle', this.lang))), h("div", { key: '99e96a1bd91e4c94813c4f29279a37f3de7cd037', class: "PlayerSmsVerificationContainer" }, h("p", { key: '20762aa83d74261f01d834699159cb8f2a76038c', class: "PlayerSmsVerificationMsg" + (this.msgEnterCode ? "" : " Hidden") }, translate(this.msgEnterCode, this.lang)), h("div", { key: 'd55c2e83e5a97451051a0c8e6d16c00c43ea00df', class: "PlayerSmsVerificationInput" }, h("input", { key: '94acb6c934dde4f9b8b8476306c9851ab5ebb642', type: "text", onInput: (event) => this.handleInput(event), value: this.code })), this.errMsg
167
+ return h("div", { key: 'da8e1da7cf6a49519ff1c6cae3eb17ee288237f2', class: "PlayerSmsVerification", ref: el => this.stylingContainer = el }, h("div", { key: 'f6d7f84527ec88f6027e2ba717bb2a92fe6175e9', class: "PlayerSmsVerificationTitleContainer" }, h("h4", { key: '37f471083259e90b5b54e0a76f1fcff7bb40c14c', class: "PlayerSmsVerificationTitle" }, translate('title', this.lang)), h("p", { key: '545c12575aa056b7fc92e60f95db351c2938f85d', class: "PlayerSmsVerificationSubtitle" }, translate('subtitle', this.lang))), h("div", { key: '9277f7f1147b1f245393be66e66e81f1ae03f373', class: "PlayerSmsVerificationContainer" }, h("p", { key: 'a37c285eb9aade13bc80cc8d2fa48c3818f1316b', class: "PlayerSmsVerificationMsg" + (this.msgEnterCode ? "" : " Hidden") }, translate(this.msgEnterCode, this.lang)), h("div", { key: '57da383cbb9d70f9d5f656f7c9775d9311cdc923', class: "PlayerSmsVerificationInput" }, h("input", { key: 'cd34b784a81c9eab6b0c26dc03c5e7aafd917824', type: "text", onInput: (event) => this.handleInput(event), value: this.code })), this.errMsg
161
168
  ? h("p", { class: "PlayerSmsVerificationErrMsg" }, translate(this.errMsg, this.lang))
162
- : h("p", { class: "PlayerSmsVerificationMsg" + (!this.isBtnSendAvailable && this.isCodeSentOnce ? "" : " Hidden") }, translate('msgResendNotice', this.lang)), !this.errMsg && h("p", { key: '1d1f1d16b5372a9bfb987ff1e905bb96e19d2ad2', class: "PlayerSMSErrorTextPlaceholder" })), h("div", { key: '722cc5e47fd4f45eca29624aa1227f1f313f3de3', class: "PlayerSmsVerificationButtonContainer" }, h("button", { key: '1413cb8915f12ab35cb87cd641d88252f520a6ae', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleSendCode.bind(this), 850), disabled: !this.isBtnSendAvailable }, this.isCodeSentOnce ? this.isBtnSendAvailable ? translate('btnResend', this.lang) : this.tempBtnResendCount : translate('btnSend', this.lang)), h("button", { key: '19cf151085f9b983565ff9df0851cd3256776842', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleCheckCode.bind(this), 850), disabled: !this.isCodeSentOnce || this.code === '' || this.code === undefined }, translate('btnActivate', this.lang))));
169
+ : h("p", { class: "PlayerSmsVerificationMsg" + (!this.isBtnSendAvailable && this.isCodeSentOnce ? "" : " Hidden") }, translate('msgResendNotice', this.lang)), !this.errMsg && h("p", { key: 'f85d75a75e8f604fa7f5f491f1ecdb9aa1d0526e', class: "PlayerSMSErrorTextPlaceholder" })), h("div", { key: '51fd4a63efdf720ef743148ca2126cf188b14d83', class: "PlayerSmsVerificationButtonContainer" }, h("button", { key: '527ec723234d3479d120314a3bb09cea4d11224f', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleSendCode.bind(this), 850), disabled: !this.isBtnSendAvailable }, this.isCodeSentOnce ? this.isBtnSendAvailable ? translate('btnResend', this.lang) : this.tempBtnResendCount : translate('btnSend', this.lang)), h("button", { key: 'ac5d61787dcca55870e80e0d1c5423622b9caaf8', class: "PlayerSmsVerificationButton", onClick: this.debounce(this.handleCheckCode.bind(this), 850), disabled: !this.isCodeSentOnce || this.code === '' || this.code === undefined }, translate('btnActivate', this.lang))));
163
170
  }
164
171
  static get is() { return "player-sms-verification"; }
165
172
  static get encapsulation() { return "shadow"; }
@@ -189,6 +196,8 @@ export class PlayerSmsVerification {
189
196
  "tags": [],
190
197
  "text": "NorWAy Endpoint for all the calls."
191
198
  },
199
+ "getter": false,
200
+ "setter": false,
192
201
  "attribute": "endpoint",
193
202
  "reflect": true
194
203
  },
@@ -206,6 +215,8 @@ export class PlayerSmsVerification {
206
215
  "tags": [],
207
216
  "text": "The NWA user id"
208
217
  },
218
+ "getter": false,
219
+ "setter": false,
209
220
  "attribute": "user-id",
210
221
  "reflect": true
211
222
  },
@@ -223,6 +234,8 @@ export class PlayerSmsVerification {
223
234
  "tags": [],
224
235
  "text": "Currently selected language"
225
236
  },
237
+ "getter": false,
238
+ "setter": false,
226
239
  "attribute": "lang",
227
240
  "reflect": true,
228
241
  "defaultValue": "'en'"
@@ -241,6 +254,8 @@ export class PlayerSmsVerification {
241
254
  "tags": [],
242
255
  "text": "Client custom styling via inline styles"
243
256
  },
257
+ "getter": false,
258
+ "setter": false,
244
259
  "attribute": "client-styling",
245
260
  "reflect": true,
246
261
  "defaultValue": "''"
@@ -259,10 +274,31 @@ export class PlayerSmsVerification {
259
274
  "tags": [],
260
275
  "text": "Client custom styling via url"
261
276
  },
277
+ "getter": false,
278
+ "setter": false,
262
279
  "attribute": "client-styling-url",
263
280
  "reflect": true,
264
281
  "defaultValue": "''"
265
282
  },
283
+ "mbSource": {
284
+ "type": "string",
285
+ "mutable": false,
286
+ "complexType": {
287
+ "original": "string",
288
+ "resolved": "string",
289
+ "references": {}
290
+ },
291
+ "required": false,
292
+ "optional": false,
293
+ "docs": {
294
+ "tags": [],
295
+ "text": ""
296
+ },
297
+ "getter": false,
298
+ "setter": false,
299
+ "attribute": "mb-source",
300
+ "reflect": false
301
+ },
266
302
  "translationUrl": {
267
303
  "type": "string",
268
304
  "mutable": false,
@@ -277,6 +313,8 @@ export class PlayerSmsVerification {
277
313
  "tags": [],
278
314
  "text": "Translations via URL"
279
315
  },
316
+ "getter": false,
317
+ "setter": false,
280
318
  "attribute": "translation-url",
281
319
  "reflect": true,
282
320
  "defaultValue": "''"
@@ -294,10 +332,10 @@ export class PlayerSmsVerification {
294
332
  static get watchers() {
295
333
  return [{
296
334
  "propName": "clientStyling",
297
- "methodName": "updateClientStyling"
335
+ "methodName": "handleClientStylingChange"
298
336
  }, {
299
337
  "propName": "clientStylingUrl",
300
- "methodName": "updateClientStyling"
338
+ "methodName": "handleClientStylingUrlChange"
301
339
  }];
302
340
  }
303
341
  }