@everymatrix/pam-player-profile-controller 0.7.4

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 (56) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-85501c28.js +1227 -0
  3. package/dist/cjs/index.cjs.js +10 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/pam-player-addresses_6.cjs.entry.js +2106 -0
  6. package/dist/cjs/pam-player-profile-controller-4fd60889.js +536 -0
  7. package/dist/cjs/pam-player-profile-controller.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +43 -0
  9. package/dist/collection/components/pam-player-profile-controller/index.js +1 -0
  10. package/dist/collection/components/pam-player-profile-controller/pam-player-profile-controller.css +118 -0
  11. package/dist/collection/components/pam-player-profile-controller/pam-player-profile-controller.js +713 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +129 -0
  14. package/dist/collection/utils/utils.js +20 -0
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/index-bb55519d.js +1200 -0
  17. package/dist/esm/index.js +2 -0
  18. package/dist/esm/loader.js +11 -0
  19. package/dist/esm/pam-player-addresses_6.entry.js +2098 -0
  20. package/dist/esm/pam-player-profile-controller-795e6ff2.js +531 -0
  21. package/dist/esm/pam-player-profile-controller.js +20 -0
  22. package/dist/index.cjs.js +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/pam-player-profile-controller/app-globals-0f993ce5.js +1 -0
  25. package/dist/pam-player-profile-controller/index-bb55519d.js +2 -0
  26. package/dist/pam-player-profile-controller/index.esm.js +1 -0
  27. package/dist/pam-player-profile-controller/pam-player-addresses_6.entry.js +1 -0
  28. package/dist/pam-player-profile-controller/pam-player-profile-controller-795e6ff2.js +1 -0
  29. package/dist/pam-player-profile-controller/pam-player-profile-controller.esm.js +1 -0
  30. package/dist/stencil.config.dev.js +17 -0
  31. package/dist/stencil.config.js +19 -0
  32. package/dist/storybook/main.js +47 -0
  33. package/dist/storybook/preview.js +9 -0
  34. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  35. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/packages/stencil/pam-player-profile-controller/stencil.config.d.ts +2 -0
  36. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/packages/stencil/pam-player-profile-controller/stencil.config.dev.d.ts +2 -0
  37. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/packages/stencil/pam-player-profile-controller/storybook/main.d.ts +3 -0
  38. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/packages/stencil/pam-player-profile-controller/storybook/preview.d.ts +70 -0
  39. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/tools/plugins/index.d.ts +3 -0
  40. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  41. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  42. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-profile-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  43. package/dist/types/components/pam-player-profile-controller/index.d.ts +1 -0
  44. package/dist/types/components/pam-player-profile-controller/pam-player-profile-controller.d.ts +69 -0
  45. package/dist/types/components.d.ts +77 -0
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  48. package/dist/types/utils/locale.utils.d.ts +23 -0
  49. package/dist/types/utils/utils.d.ts +8 -0
  50. package/loader/cdn.js +1 -0
  51. package/loader/index.cjs.js +1 -0
  52. package/loader/index.d.ts +24 -0
  53. package/loader/index.es2017.js +1 -0
  54. package/loader/index.js +2 -0
  55. package/loader/package.json +11 -0
  56. package/package.json +26 -0
@@ -0,0 +1,713 @@
1
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
2
+ import { h } from "@stencil/core";
3
+ import { translate } from "../../utils/locale.utils";
4
+ import { isMobile } from "../../utils/utils";
5
+ import "../../../../../pam-player-profile/dist/types/index";
6
+ import "../../../../../pam-player-addresses/dist/types/index";
7
+ import "../../../../../pam-player-contacts/dist/types/index";
8
+ import "../../../../../pam-player-documents/dist/types/index";
9
+ import "../../../../../../svelte/player-consents/es2015/player-consents";
10
+ export class PlayerProfileController {
11
+ constructor() {
12
+ this.data = {};
13
+ this.validStatus = {};
14
+ this.numUpdateDataReceived = 0;
15
+ this.numUpdateDataExpected = 0;
16
+ this.numUpdateDataSuccessful = 0;
17
+ this.sectionsToUpdate = [];
18
+ this.updateFunctionMap = {
19
+ 'PROFILE': this.updateDataProfile.bind(this),
20
+ 'ADDRESSES': this.updateDataAddresses.bind(this),
21
+ 'DOCUMENTS': this.updateDataDocuments.bind(this),
22
+ 'CONTACTS': this.updateDataContacts.bind(this)
23
+ };
24
+ this.sendSuccessNotification = () => {
25
+ window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMessage', this.lang) } }, window.location.href);
26
+ };
27
+ this.sendErrorNotification = (errorKey) => {
28
+ window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: translate(errorKey, this.lang) } }, window.location.href);
29
+ };
30
+ this.sendData = (section) => {
31
+ let data = {};
32
+ switch (section) {
33
+ case 'PROFILE':
34
+ data = this.data;
35
+ break;
36
+ case 'ADDRESSES':
37
+ data['addresses'] = this.data.addresses;
38
+ break;
39
+ case 'CONTACTS':
40
+ data['contacts'] = this.data.contacts;
41
+ break;
42
+ case 'DOCUMENTS':
43
+ data['documents'] = this.data.documents;
44
+ break;
45
+ }
46
+ window.postMessage({ type: `${section}_DATA`, data: data });
47
+ };
48
+ this.messageHandler = (message) => {
49
+ var _a, _b, _c;
50
+ let section = (_a = message.data) === null || _a === void 0 ? void 0 : _a.type.split('_')[0];
51
+ switch ((_b = message.data) === null || _b === void 0 ? void 0 : _b.type) {
52
+ case 'PROFILE_LOADED':
53
+ case 'ADDRESSES_LOADED':
54
+ case 'CONTACTS_LOADED':
55
+ case 'DOCUMENTS_LOADED':
56
+ this.sendData(section);
57
+ break;
58
+ case 'PROFILE_VALIDITY':
59
+ case 'ADDRESSES_VALIDITY':
60
+ case 'CONTACTS_VALIDITY':
61
+ case 'DOCUMENTS_VALIDITY':
62
+ this.validStatus[section] = message.data.data;
63
+ this.updateSubmitButtonStatus();
64
+ break;
65
+ case 'PROFILE_UPDATE_DATA':
66
+ case 'ADDRESSES_UPDATE_DATA':
67
+ case 'CONTACTS_UPDATE_DATA':
68
+ case 'DOCUMENTS_UPDATE_DATA':
69
+ const sectionToUpdate = (_c = message.data) === null || _c === void 0 ? void 0 : _c.type.split('_')[0];
70
+ this.sectionsToUpdate.push(sectionToUpdate);
71
+ this.numUpdateDataReceived += 1;
72
+ // update this.data with the data received
73
+ for (const key of Object.keys(message.data.data)) {
74
+ this.data[key] = message.data.data[key];
75
+ }
76
+ // check if all subwidgets have sent their update data before making the update calls
77
+ if (this.numUpdateDataReceived === this.numUpdateDataExpected) {
78
+ this.updateDataRecursive(0);
79
+ }
80
+ break;
81
+ }
82
+ };
83
+ this.updateDataRecursive = (idx) => {
84
+ const section = this.sectionsToUpdate[idx];
85
+ if (idx >= this.sectionsToUpdate.length) {
86
+ if (this.numUpdateDataSuccessful === this.numUpdateDataExpected) {
87
+ this.sendSuccessNotification();
88
+ }
89
+ this.resetState();
90
+ return null;
91
+ }
92
+ ;
93
+ const updateFn = this.updateFunctionMap[section];
94
+ updateFn()
95
+ .then((success) => {
96
+ success ? ++this.numUpdateDataSuccessful : this.sendErrorNotification(`errorMessage${this.toTitle(section)}Update`);
97
+ this.updateDataRecursive(++idx);
98
+ });
99
+ };
100
+ /**
101
+ * Promise for fetching the response and returning the response or the erorr message
102
+ * @param res - response from the API
103
+ */
104
+ this.handleFetchResponse = async (res) => {
105
+ var _a;
106
+ if (res.status >= 300) {
107
+ this.isError = true;
108
+ let response = await res.json();
109
+ this.errorCode = (_a = response.thirdPartyResponse) === null || _a === void 0 ? void 0 : _a.errorCode;
110
+ this.errorMessage = this.errorCode ? translate(this.errorCode, this.lang) : translate('errorMessageFetch', this.lang);
111
+ window.postMessage({
112
+ type: 'WidgetNotification',
113
+ data: {
114
+ type: 'error',
115
+ message: this.errorMessage
116
+ }
117
+ }, window.location.href);
118
+ return Promise.reject(this.errorMessage);
119
+ }
120
+ else {
121
+ this.isError = false;
122
+ if (res.headers.get('content-type')) {
123
+ let response = await res.json();
124
+ return Promise.resolve(response);
125
+ }
126
+ return Promise.resolve();
127
+ }
128
+ };
129
+ this.getData = () => {
130
+ const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/`, this.endpoint);
131
+ const headers = new Headers();
132
+ headers.append('X-SessionID', this.session);
133
+ const options = {
134
+ method: 'GET',
135
+ headers: headers
136
+ };
137
+ return new Promise((resolve, reject) => {
138
+ fetch(url.href, options)
139
+ .then((res) => this.handleFetchResponse(res))
140
+ .then(res => {
141
+ this.data = res.player;
142
+ resolve();
143
+ })
144
+ .catch((error) => {
145
+ console.log(error);
146
+ reject();
147
+ });
148
+ });
149
+ };
150
+ this.sendDataRequest = (e) => {
151
+ if (e)
152
+ e.preventDefault();
153
+ this.isSubmitButtonAvailable = false;
154
+ Object.values(this.validStatus).forEach(v => {
155
+ if (v)
156
+ this.numUpdateDataExpected += 1;
157
+ });
158
+ for (const [section, isValid] of Object.entries(this.validStatus)) {
159
+ if (isValid)
160
+ window.postMessage({ type: `${section}_SEND_DATA` });
161
+ }
162
+ };
163
+ this.updateSubmitButtonStatus = () => {
164
+ this.isSubmitButtonAvailable = Object.values(this.validStatus).some(v => v);
165
+ };
166
+ this.toTitle = (value) => value.charAt(0).toUpperCase() + value.substring(1).toLowerCase();
167
+ this.toggleScreen = () => {
168
+ window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: this.isMobile }, window.location.href);
169
+ };
170
+ this.userId = undefined;
171
+ this.session = undefined;
172
+ this.endpoint = undefined;
173
+ this.lang = 'en';
174
+ this.mbSource = undefined;
175
+ this.clientStyling = undefined;
176
+ this.clientStylingUrl = undefined;
177
+ this.translationUrl = undefined;
178
+ this.addProfile = 'true';
179
+ this.addAddresses = undefined;
180
+ this.addContacts = undefined;
181
+ this.addDocuments = undefined;
182
+ this.addConsents = undefined;
183
+ this.dobFormat = 'DD/MM/YYYY';
184
+ this.isFullAddressDisplayed = undefined;
185
+ this.isPermanentAdressEditable = 'false';
186
+ this.isTemporaryAdressEditable = 'true';
187
+ this.isContactVerificationStatusDisplayed = 'false';
188
+ this.isPhoneNumberEditable = 'true';
189
+ this.isDocumentsEditable = 'false';
190
+ this.isMobile = isMobile(window.navigator.userAgent);
191
+ this.limitStylingAppends = false;
192
+ this.isLoading = true;
193
+ this.isSubmitButtonAvailable = false;
194
+ this.isError = false;
195
+ this.errorMessage = '';
196
+ this.errorCode = '';
197
+ }
198
+ handleStylingChange(newValue, oldValue) {
199
+ if (newValue !== oldValue)
200
+ setClientStyling(this.stylingContainer, this.clientStyling);
201
+ }
202
+ handleStylingUrlChange(newValue, oldValue) {
203
+ if (newValue !== oldValue)
204
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
205
+ }
206
+ async componentWillLoad() {
207
+ await this.getData().finally(() => this.isLoading = false);
208
+ }
209
+ componentDidLoad() {
210
+ if (this.stylingContainer) {
211
+ if (window.emMessageBuss != undefined) {
212
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
213
+ }
214
+ else {
215
+ if (this.clientStyling)
216
+ setClientStyling(this.stylingContainer, this.clientStyling);
217
+ if (this.clientStylingUrl)
218
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
219
+ }
220
+ }
221
+ window.addEventListener('message', this.messageHandler, false);
222
+ }
223
+ disconnectedCallback() {
224
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
225
+ window.removeEventListener('message', this.messageHandler, false);
226
+ }
227
+ resetState() {
228
+ this.getData().then(() => {
229
+ for (const section of this.sectionsToUpdate) {
230
+ this.sendData(section);
231
+ }
232
+ this.validStatus = {};
233
+ this.numUpdateDataReceived = 0;
234
+ this.numUpdateDataExpected = 0;
235
+ this.numUpdateDataSuccessful = 0;
236
+ this.sectionsToUpdate = [];
237
+ });
238
+ }
239
+ updateDataProfile() {
240
+ const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/`, this.endpoint);
241
+ const headers = new Headers();
242
+ headers.append('X-SessionId', this.session);
243
+ headers.append('Content-Type', 'application/problem+json; charset=utf-8');
244
+ const reqParams = {
245
+ method: 'PUT',
246
+ headers,
247
+ body: JSON.stringify(this.data)
248
+ };
249
+ return new Promise((resolve) => {
250
+ fetch(url, reqParams)
251
+ .then(res => resolve(res.ok));
252
+ });
253
+ }
254
+ updateDataDocuments() {
255
+ const promises = [];
256
+ for (const document of this.data.documents) {
257
+ const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/documents/${document['documentId']}/`, this.endpoint);
258
+ const headers = new Headers();
259
+ headers.append('X-SessionId', this.session);
260
+ headers.append('Content-Type', 'application/json-patch+json');
261
+ const reqParams = {
262
+ method: 'PUT',
263
+ headers,
264
+ body: JSON.stringify(document)
265
+ };
266
+ const promise = new Promise((resolve) => {
267
+ fetch(url, reqParams)
268
+ .then(res => resolve(res.ok));
269
+ });
270
+ promises.push(promise);
271
+ }
272
+ return Promise.all(promises).then(successArr => successArr.every(v => v));
273
+ }
274
+ updateDataAddresses() {
275
+ const promises = [];
276
+ for (const address of this.data.addresses) {
277
+ const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/addresses/${address['addressId']}/`, this.endpoint);
278
+ const headers = new Headers();
279
+ headers.append('X-SessionId', this.session);
280
+ headers.append('Content-Type', 'application/json-patch+json');
281
+ const reqParams = {
282
+ method: 'PUT',
283
+ headers,
284
+ body: JSON.stringify(address)
285
+ };
286
+ const promise = new Promise((resolve) => {
287
+ fetch(url, reqParams)
288
+ .then(res => resolve(res.ok));
289
+ });
290
+ promises.push(promise);
291
+ }
292
+ return Promise.all(promises).then(successArr => successArr.every(v => v));
293
+ }
294
+ updateDataContacts() {
295
+ const promises = [];
296
+ for (const contact of this.data.contacts) {
297
+ const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/contacts/${contact['contactId']}/`, this.endpoint);
298
+ const headers = new Headers();
299
+ headers.append('X-SessionId', this.session);
300
+ headers.append('Content-Type', 'application/json-patch+json');
301
+ const reqParams = {
302
+ method: 'PUT',
303
+ headers,
304
+ body: JSON.stringify(contact)
305
+ };
306
+ const promise = new Promise((resolve) => {
307
+ fetch(url, reqParams)
308
+ .then(res => resolve(res.ok));
309
+ });
310
+ promises.push(promise);
311
+ }
312
+ return Promise.all(promises).then(successArr => successArr.every(v => v));
313
+ }
314
+ render() {
315
+ if (!this.isLoading && this.isError) {
316
+ return (h("div", { class: "errorContainer" }, h("p", { class: "errorMessage", innerHTML: this.errorMessage })));
317
+ }
318
+ return (h("div", { ref: el => this.stylingContainer = el }, this.isLoading
319
+ ? h("div", { class: "Loading" }, h("p", null, "Still Loading..."))
320
+ : h("form", { class: `PlayerProfileControllerWrapper ${this.isMobile ? 'Mobile' : ''}` }, this.isMobile
321
+ ? h("div", { class: "ReturnButton", onClick: this.toggleScreen }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), h("h2", null, translate('title', this.lang)))
322
+ : h("h2", null, translate('title', this.lang)), this.addProfile === 'true' &&
323
+ h("pam-player-profile", { lang: this.lang, "dob-format": this.dobFormat, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), this.addContacts === 'true' &&
324
+ h("pam-player-contacts", { lang: this.lang, "is-verification-status-displayed": this.isContactVerificationStatusDisplayed, "is-phone-number-editable": this.isPhoneNumberEditable, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), this.addAddresses === 'true' &&
325
+ h("pam-player-addresses", { lang: this.lang, "is-permanent-adress-editable": this.isPermanentAdressEditable, "is-temporary-adress-editable": this.isTemporaryAdressEditable, "is-full-address-displayed": this.isFullAddressDisplayed, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), this.addDocuments === 'true' &&
326
+ h("pam-player-documents", { lang: this.lang, "is-editable": this.isDocumentsEditable, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "is-stand-alone": "false" }), h("section", { class: "ButtonsArea" }, h("button", { class: `SaveButton ${this.isSubmitButtonAvailable ? '' : 'Disabled'}`, onClick: this.sendDataRequest }, translate('saveButton'))), this.addConsents === 'true' &&
327
+ h("div", { class: "ConsentsWrapper" }, h("pam-player-consents", { lang: this.lang, endpoint: this.endpoint, userid: this.userId, session: this.session, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, displayconsentdescription: "false" })))));
328
+ }
329
+ static get is() { return "pam-player-profile-controller"; }
330
+ static get encapsulation() { return "shadow"; }
331
+ static get originalStyleUrls() {
332
+ return {
333
+ "$": ["pam-player-profile-controller.scss"]
334
+ };
335
+ }
336
+ static get styleUrls() {
337
+ return {
338
+ "$": ["pam-player-profile-controller.css"]
339
+ };
340
+ }
341
+ static get properties() {
342
+ return {
343
+ "userId": {
344
+ "type": "string",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "string",
348
+ "resolved": "string",
349
+ "references": {}
350
+ },
351
+ "required": false,
352
+ "optional": false,
353
+ "docs": {
354
+ "tags": [],
355
+ "text": ""
356
+ },
357
+ "attribute": "user-id",
358
+ "reflect": true
359
+ },
360
+ "session": {
361
+ "type": "string",
362
+ "mutable": false,
363
+ "complexType": {
364
+ "original": "string",
365
+ "resolved": "string",
366
+ "references": {}
367
+ },
368
+ "required": false,
369
+ "optional": false,
370
+ "docs": {
371
+ "tags": [],
372
+ "text": ""
373
+ },
374
+ "attribute": "session",
375
+ "reflect": true
376
+ },
377
+ "endpoint": {
378
+ "type": "string",
379
+ "mutable": false,
380
+ "complexType": {
381
+ "original": "string",
382
+ "resolved": "string",
383
+ "references": {}
384
+ },
385
+ "required": false,
386
+ "optional": false,
387
+ "docs": {
388
+ "tags": [],
389
+ "text": ""
390
+ },
391
+ "attribute": "endpoint",
392
+ "reflect": true
393
+ },
394
+ "lang": {
395
+ "type": "string",
396
+ "mutable": false,
397
+ "complexType": {
398
+ "original": "string",
399
+ "resolved": "string",
400
+ "references": {}
401
+ },
402
+ "required": false,
403
+ "optional": false,
404
+ "docs": {
405
+ "tags": [],
406
+ "text": ""
407
+ },
408
+ "attribute": "lang",
409
+ "reflect": true,
410
+ "defaultValue": "'en'"
411
+ },
412
+ "mbSource": {
413
+ "type": "string",
414
+ "mutable": false,
415
+ "complexType": {
416
+ "original": "string",
417
+ "resolved": "string",
418
+ "references": {}
419
+ },
420
+ "required": false,
421
+ "optional": false,
422
+ "docs": {
423
+ "tags": [],
424
+ "text": ""
425
+ },
426
+ "attribute": "mb-source",
427
+ "reflect": true
428
+ },
429
+ "clientStyling": {
430
+ "type": "string",
431
+ "mutable": false,
432
+ "complexType": {
433
+ "original": "string",
434
+ "resolved": "string",
435
+ "references": {}
436
+ },
437
+ "required": false,
438
+ "optional": false,
439
+ "docs": {
440
+ "tags": [],
441
+ "text": ""
442
+ },
443
+ "attribute": "client-styling",
444
+ "reflect": true
445
+ },
446
+ "clientStylingUrl": {
447
+ "type": "string",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "string",
451
+ "resolved": "string",
452
+ "references": {}
453
+ },
454
+ "required": false,
455
+ "optional": false,
456
+ "docs": {
457
+ "tags": [],
458
+ "text": ""
459
+ },
460
+ "attribute": "client-styling-url",
461
+ "reflect": true
462
+ },
463
+ "translationUrl": {
464
+ "type": "string",
465
+ "mutable": false,
466
+ "complexType": {
467
+ "original": "string",
468
+ "resolved": "string",
469
+ "references": {}
470
+ },
471
+ "required": false,
472
+ "optional": false,
473
+ "docs": {
474
+ "tags": [],
475
+ "text": ""
476
+ },
477
+ "attribute": "translation-url",
478
+ "reflect": true
479
+ },
480
+ "addProfile": {
481
+ "type": "string",
482
+ "mutable": false,
483
+ "complexType": {
484
+ "original": "string",
485
+ "resolved": "string",
486
+ "references": {}
487
+ },
488
+ "required": false,
489
+ "optional": false,
490
+ "docs": {
491
+ "tags": [],
492
+ "text": ""
493
+ },
494
+ "attribute": "add-profile",
495
+ "reflect": true,
496
+ "defaultValue": "'true'"
497
+ },
498
+ "addAddresses": {
499
+ "type": "string",
500
+ "mutable": false,
501
+ "complexType": {
502
+ "original": "string",
503
+ "resolved": "string",
504
+ "references": {}
505
+ },
506
+ "required": false,
507
+ "optional": false,
508
+ "docs": {
509
+ "tags": [],
510
+ "text": ""
511
+ },
512
+ "attribute": "add-addresses",
513
+ "reflect": true
514
+ },
515
+ "addContacts": {
516
+ "type": "string",
517
+ "mutable": false,
518
+ "complexType": {
519
+ "original": "string",
520
+ "resolved": "string",
521
+ "references": {}
522
+ },
523
+ "required": false,
524
+ "optional": false,
525
+ "docs": {
526
+ "tags": [],
527
+ "text": ""
528
+ },
529
+ "attribute": "add-contacts",
530
+ "reflect": true
531
+ },
532
+ "addDocuments": {
533
+ "type": "string",
534
+ "mutable": false,
535
+ "complexType": {
536
+ "original": "string",
537
+ "resolved": "string",
538
+ "references": {}
539
+ },
540
+ "required": false,
541
+ "optional": false,
542
+ "docs": {
543
+ "tags": [],
544
+ "text": ""
545
+ },
546
+ "attribute": "add-documents",
547
+ "reflect": true
548
+ },
549
+ "addConsents": {
550
+ "type": "string",
551
+ "mutable": false,
552
+ "complexType": {
553
+ "original": "string",
554
+ "resolved": "string",
555
+ "references": {}
556
+ },
557
+ "required": false,
558
+ "optional": false,
559
+ "docs": {
560
+ "tags": [],
561
+ "text": ""
562
+ },
563
+ "attribute": "add-consents",
564
+ "reflect": true
565
+ },
566
+ "dobFormat": {
567
+ "type": "string",
568
+ "mutable": false,
569
+ "complexType": {
570
+ "original": "string",
571
+ "resolved": "string",
572
+ "references": {}
573
+ },
574
+ "required": false,
575
+ "optional": false,
576
+ "docs": {
577
+ "tags": [],
578
+ "text": ""
579
+ },
580
+ "attribute": "dob-format",
581
+ "reflect": true,
582
+ "defaultValue": "'DD/MM/YYYY'"
583
+ },
584
+ "isFullAddressDisplayed": {
585
+ "type": "string",
586
+ "mutable": false,
587
+ "complexType": {
588
+ "original": "string",
589
+ "resolved": "string",
590
+ "references": {}
591
+ },
592
+ "required": false,
593
+ "optional": false,
594
+ "docs": {
595
+ "tags": [],
596
+ "text": ""
597
+ },
598
+ "attribute": "is-full-address-displayed",
599
+ "reflect": true
600
+ },
601
+ "isPermanentAdressEditable": {
602
+ "type": "string",
603
+ "mutable": false,
604
+ "complexType": {
605
+ "original": "string",
606
+ "resolved": "string",
607
+ "references": {}
608
+ },
609
+ "required": false,
610
+ "optional": false,
611
+ "docs": {
612
+ "tags": [],
613
+ "text": ""
614
+ },
615
+ "attribute": "is-permanent-adress-editable",
616
+ "reflect": true,
617
+ "defaultValue": "'false'"
618
+ },
619
+ "isTemporaryAdressEditable": {
620
+ "type": "string",
621
+ "mutable": false,
622
+ "complexType": {
623
+ "original": "string",
624
+ "resolved": "string",
625
+ "references": {}
626
+ },
627
+ "required": false,
628
+ "optional": false,
629
+ "docs": {
630
+ "tags": [],
631
+ "text": ""
632
+ },
633
+ "attribute": "is-temporary-adress-editable",
634
+ "reflect": true,
635
+ "defaultValue": "'true'"
636
+ },
637
+ "isContactVerificationStatusDisplayed": {
638
+ "type": "string",
639
+ "mutable": false,
640
+ "complexType": {
641
+ "original": "string",
642
+ "resolved": "string",
643
+ "references": {}
644
+ },
645
+ "required": false,
646
+ "optional": false,
647
+ "docs": {
648
+ "tags": [],
649
+ "text": ""
650
+ },
651
+ "attribute": "is-contact-verification-status-displayed",
652
+ "reflect": true,
653
+ "defaultValue": "'false'"
654
+ },
655
+ "isPhoneNumberEditable": {
656
+ "type": "string",
657
+ "mutable": false,
658
+ "complexType": {
659
+ "original": "string",
660
+ "resolved": "string",
661
+ "references": {}
662
+ },
663
+ "required": false,
664
+ "optional": false,
665
+ "docs": {
666
+ "tags": [],
667
+ "text": ""
668
+ },
669
+ "attribute": "is-phone-number-editable",
670
+ "reflect": true,
671
+ "defaultValue": "'true'"
672
+ },
673
+ "isDocumentsEditable": {
674
+ "type": "string",
675
+ "mutable": false,
676
+ "complexType": {
677
+ "original": "string",
678
+ "resolved": "string",
679
+ "references": {}
680
+ },
681
+ "required": false,
682
+ "optional": false,
683
+ "docs": {
684
+ "tags": [],
685
+ "text": ""
686
+ },
687
+ "attribute": "is-documents-editable",
688
+ "reflect": true,
689
+ "defaultValue": "'false'"
690
+ }
691
+ };
692
+ }
693
+ static get states() {
694
+ return {
695
+ "isMobile": {},
696
+ "limitStylingAppends": {},
697
+ "isLoading": {},
698
+ "isSubmitButtonAvailable": {},
699
+ "isError": {},
700
+ "errorMessage": {},
701
+ "errorCode": {}
702
+ };
703
+ }
704
+ static get watchers() {
705
+ return [{
706
+ "propName": "clientStyling",
707
+ "methodName": "handleStylingChange"
708
+ }, {
709
+ "propName": "clientStylingUrl",
710
+ "methodName": "handleStylingUrlChange"
711
+ }];
712
+ }
713
+ }