@everymatrix/pam-player-addresses 0.11.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 (56) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-bf6d2004.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-8214aff0.js +684 -0
  6. package/dist/cjs/pam-player-addresses.cjs.js +25 -0
  7. package/dist/cjs/pam-player-addresses_2.cjs.entry.js +175 -0
  8. package/dist/collection/collection-manifest.json +19 -0
  9. package/dist/collection/components/pam-player-addresses/index.js +1 -0
  10. package/dist/collection/components/pam-player-addresses/pam-player-addresses.css +276 -0
  11. package/dist/collection/components/pam-player-addresses/pam-player-addresses.js +534 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +329 -0
  14. package/dist/collection/utils/utils.js +12 -0
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/index-79695a92.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-911649b4.js +682 -0
  20. package/dist/esm/pam-player-addresses.js +20 -0
  21. package/dist/esm/pam-player-addresses_2.entry.js +170 -0
  22. package/dist/index.cjs.js +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/pam-player-addresses/app-globals-0f993ce5.js +1 -0
  25. package/dist/pam-player-addresses/index-79695a92.js +2 -0
  26. package/dist/pam-player-addresses/index.esm.js +1 -0
  27. package/dist/pam-player-addresses/pam-player-addresses-911649b4.js +1 -0
  28. package/dist/pam-player-addresses/pam-player-addresses.esm.js +1 -0
  29. package/dist/pam-player-addresses/pam-player-addresses_2.entry.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-addresses/.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-addresses/.stencil/packages/stencil/pam-player-addresses/stencil.config.d.ts +2 -0
  36. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-addresses/.stencil/packages/stencil/pam-player-addresses/stencil.config.dev.d.ts +2 -0
  37. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-addresses/.stencil/packages/stencil/pam-player-addresses/storybook/main.d.ts +3 -0
  38. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-addresses/.stencil/packages/stencil/pam-player-addresses/storybook/preview.d.ts +70 -0
  39. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-addresses/.stencil/tools/plugins/index.d.ts +3 -0
  40. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/pam-player-addresses/.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-addresses/.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-addresses/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  43. package/dist/types/components/pam-player-addresses/index.d.ts +1 -0
  44. package/dist/types/components/pam-player-addresses/pam-player-addresses.d.ts +52 -0
  45. package/dist/types/components.d.ts +61 -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 +7 -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,534 @@
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 "../../../../../ui-skeleton/dist/types/index";
6
+ export class PamPlayerAddresses {
7
+ constructor() {
8
+ this.dataRef = {};
9
+ this.fieldsState = {};
10
+ this.sendLoadedMessage = () => {
11
+ window.postMessage({ type: 'ADDRESSES_LOADED' });
12
+ };
13
+ this.sendValidMessage = () => {
14
+ window.postMessage({ type: 'ADDRESSES_VALIDITY', data: this.isSubmitButtonAvailable });
15
+ };
16
+ this.sendSuccessNotification = () => {
17
+ window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMessage', this.lang) } }, window.location.href);
18
+ };
19
+ this.sendErrorNotification = (errorKey) => {
20
+ window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: translate(errorKey, this.lang) } }, window.location.href);
21
+ };
22
+ this.sendData = () => {
23
+ window.postMessage({ type: 'ADDRESSES_UPDATE_DATA', data: this.data }, window.location.href);
24
+ };
25
+ this.messageHandler = (message) => {
26
+ var _a;
27
+ switch ((_a = message.data) === null || _a === void 0 ? void 0 : _a.type) {
28
+ case 'ADDRESSES_DATA':
29
+ this.data = message.data.data;
30
+ this.resetState();
31
+ this.isSkeletonLoading = false;
32
+ break;
33
+ case 'ADDRESSES_SEND_DATA':
34
+ this.sendData();
35
+ break;
36
+ }
37
+ };
38
+ this.getData = () => {
39
+ const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/addresses/`, this.endpoint);
40
+ const headers = new Headers();
41
+ headers.append('X-SessionID', this.session);
42
+ const options = {
43
+ method: 'GET',
44
+ headers: headers
45
+ };
46
+ return new Promise((resolve) => {
47
+ fetch(url.href, options)
48
+ .then(res => {
49
+ if (res.ok) {
50
+ return res.json();
51
+ }
52
+ this.sendErrorNotification('errorMessageFetch');
53
+ })
54
+ .then(res => {
55
+ this.data = res;
56
+ resolve();
57
+ });
58
+ });
59
+ };
60
+ this.buildFieldState = (isValid, initialValue, rule) => Object.assign({ 'isValid': isValid, 'initialValue': initialValue, 'rule': rule });
61
+ this.resetState = () => {
62
+ this.initData();
63
+ this.initEditableFieldsState();
64
+ this.invalidFields = 0;
65
+ this.isSubmitButtonAvailable = false;
66
+ };
67
+ this.updateState = (sectionKey, subSectionKey, fieldKey) => (e) => {
68
+ if (subSectionKey) {
69
+ this.dataRef[sectionKey][subSectionKey][fieldKey] = e.target.value;
70
+ }
71
+ else {
72
+ this.dataRef[sectionKey][fieldKey] = e.target.value;
73
+ }
74
+ const fieldState = this.fieldsState[sectionKey]['data'][fieldKey];
75
+ const value = e.target.value;
76
+ const passedRuleCheck = fieldState.rule(value);
77
+ if (passedRuleCheck && !fieldState.isValid) {
78
+ fieldState.isValid = true;
79
+ this.invalidFields -= 1;
80
+ }
81
+ else if (!passedRuleCheck && fieldState.isValid) {
82
+ fieldState.isValid = false;
83
+ this.invalidFields += 1;
84
+ }
85
+ this.fieldsState[sectionKey]['hasChanged'] = value !== fieldState.initialValue;
86
+ const previous = this.isSubmitButtonAvailable;
87
+ this.updateSubmitButtonStatus();
88
+ if (this.isStandAlone !== 'true' && this.isSubmitButtonAvailable !== previous) {
89
+ this.sendValidMessage();
90
+ }
91
+ };
92
+ this.updateData = (e) => {
93
+ if (e)
94
+ e.preventDefault();
95
+ const promises = [];
96
+ for (const addressType of Object.keys(this.fieldsState)) {
97
+ if (!this.fieldsState[addressType]['hasChanged'])
98
+ continue;
99
+ const address = this.dataRef[addressType];
100
+ const url = new URL(`/api/v1/players/${this.userId}/player-identifiable-information/addresses/${address['addressId']}`, this.endpoint);
101
+ const headers = new Headers();
102
+ headers.append('X-SessionId', this.session);
103
+ headers.append('Content-Type', 'application/json-patch+json');
104
+ const reqParams = {
105
+ method: 'PUT',
106
+ headers,
107
+ body: JSON.stringify(address)
108
+ };
109
+ promises.push(fetch(url, reqParams));
110
+ }
111
+ Promise.all(promises)
112
+ .then(resArr => {
113
+ if (resArr.some(res => !res.ok)) {
114
+ return this.sendErrorNotification('errorMessageUpdate');
115
+ }
116
+ this.sendSuccessNotification();
117
+ this.getData().then(() => this.resetState());
118
+ });
119
+ };
120
+ this.updateSubmitButtonStatus = () => {
121
+ this.isSubmitButtonAvailable = this.invalidFields === 0 && Object.values(this.fieldsState).some(v => v.hasChanged);
122
+ };
123
+ this.editableField = (sectionKey, subSectionKey = null, fieldKey, labelTranslationKey, errorTranslationKey) => {
124
+ const fieldState = this.fieldsState[sectionKey]['data'][fieldKey];
125
+ let value;
126
+ if (subSectionKey) {
127
+ value = this.dataRef[sectionKey][subSectionKey][fieldKey];
128
+ }
129
+ else {
130
+ value = this.dataRef[sectionKey][fieldKey];
131
+ }
132
+ if (fieldState) {
133
+ return (h("div", { class: `Field ${fieldState.isValid ? '' : 'Invalid'}` }, h("label", null, translate(labelTranslationKey, this.lang)), h("input", { type: "text", value: value, onKeyUp: this.updateState(sectionKey, subSectionKey, fieldKey) }), !fieldState.isValid &&
134
+ h("p", { class: "Error" }, translate(errorTranslationKey, this.lang))));
135
+ }
136
+ else {
137
+ return null;
138
+ }
139
+ };
140
+ this.staticField = (value, labelTranslationKey) => {
141
+ if (value) {
142
+ return (h("div", { class: "Field Disabled" }, h("label", null, translate(labelTranslationKey, this.lang)), h("input", { type: "text", value: value, readonly: true })));
143
+ }
144
+ else {
145
+ return null;
146
+ }
147
+ };
148
+ this.section = (sectionKey, editable) => {
149
+ let activeSection = sectionKey === 'Permanent' ? this.isPermanentAddressSectionActive : this.isTemporaryAddressSectionActive;
150
+ if (editable) {
151
+ return (h("div", { class: "Section" }, h("button", { class: "SectionTitle", onClick: this.toggleSection(sectionKey) }, translate(`title${sectionKey}Address`)), h("section", { class: activeSection ? "SectionContent Active" : "SectionContent" }, this.editableField(sectionKey, null, 'line1', 'line1', 'line1Error'), this.staticField(this.dataRef[sectionKey].country, 'country'), this.editableField(sectionKey, null, 'line2', 'line2', 'line2Error'), this.editableField(sectionKey, null, 'stateProvince', 'stateProvince', 'stateProvinceError'), this.editableField(sectionKey, null, 'line3', 'line3', 'line3Error'), this.editableField(sectionKey, null, 'city', 'city', 'cityError'), this.editableField(sectionKey, null, 'postalCode', 'postalCode', 'postalCodeError'), this.isFullAddressDisplayed == 'true' &&
152
+ h("div", { class: "CompoundField" }, this.editableField(sectionKey, 'addressInfo', 'floor', 'floor', 'floorError'), this.editableField(sectionKey, 'addressInfo', 'doorCode', 'doorCode', 'doorCodeError')), this.isFullAddressDisplayed == 'true' &&
153
+ this.editableField(sectionKey, 'addressInfo', 'buildingName', 'buildingName', 'buildingNameError'), this.isFullAddressDisplayed == 'true' &&
154
+ this.editableField(sectionKey, 'addressInfo', 'additionalInstructions', 'additionalInstructions', 'additionalInstructionsError'))));
155
+ }
156
+ return (h("div", { class: "Section" }, h("button", { class: "SectionTitle", onClick: this.toggleSection(sectionKey) }, translate(`title${sectionKey}Address`, this.lang)), h("section", { class: activeSection ? "SectionContent Active" : "SectionContent" }, this.staticField(this.dataRef[sectionKey].line1, 'line1'), this.staticField(this.dataRef[sectionKey].country, 'country'), this.staticField(this.dataRef[sectionKey].line2, 'line2'), this.staticField(this.dataRef[sectionKey].stateProvince, 'stateProvince'), this.staticField(this.dataRef[sectionKey].line3, 'line3'), this.staticField(this.dataRef[sectionKey].city, 'city'), this.staticField(this.dataRef[sectionKey].postalCode, 'postalCode'), this.isFullAddressDisplayed == 'true' &&
157
+ h("div", { class: "CompoundField" }, this.staticField(this.dataRef[sectionKey].addressInfo.floor, 'floor'), this.staticField(this.dataRef[sectionKey].addressInfo.doorCode, 'doorCode')), this.isFullAddressDisplayed == 'true' &&
158
+ this.staticField(this.dataRef[sectionKey].addressInfo.buildingName, 'buildingName'), this.isFullAddressDisplayed == 'true' &&
159
+ this.staticField(this.dataRef[sectionKey].addressInfo.additionalInstructions, 'additionalInstructions'))));
160
+ };
161
+ this.toggleScreen = () => {
162
+ window.postMessage({ type: 'PlayerAccountMenuActive', isMobile: this.isMobile }, window.location.href);
163
+ };
164
+ this.toggleSection = (section) => (e) => {
165
+ e.preventDefault();
166
+ switch (section) {
167
+ case 'Permanent':
168
+ this.isPermanentAddressSectionActive = !this.isPermanentAddressSectionActive;
169
+ break;
170
+ case 'Temporary':
171
+ this.isTemporaryAddressSectionActive = !this.isTemporaryAddressSectionActive;
172
+ break;
173
+ }
174
+ };
175
+ this.userId = undefined;
176
+ this.session = undefined;
177
+ this.endpoint = undefined;
178
+ this.lang = 'en';
179
+ this.mbSource = undefined;
180
+ this.clientStyling = undefined;
181
+ this.clientStylingUrl = undefined;
182
+ this.translationUrl = undefined;
183
+ this.isFullAddressDisplayed = 'false';
184
+ this.isPermanentAdressEditable = 'false';
185
+ this.isTemporaryAdressEditable = 'true';
186
+ this.isStandAlone = 'true';
187
+ this.limitStylingAppends = false;
188
+ this.isSkeletonLoading = true;
189
+ this.isSubmitButtonAvailable = false;
190
+ this.invalidFields = 0;
191
+ this.isMobile = isMobile(window.navigator.userAgent);
192
+ this.isPermanentAddressSectionActive = true;
193
+ this.isTemporaryAddressSectionActive = false;
194
+ }
195
+ handleStylingChange(newValue, oldValue) {
196
+ if (newValue !== oldValue)
197
+ setClientStyling(this.stylingContainer, this.clientStyling);
198
+ }
199
+ handleStylingUrlChange(newValue, oldValue) {
200
+ if (newValue !== oldValue)
201
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
202
+ }
203
+ async componentWillLoad() {
204
+ if (this.isStandAlone !== 'true') {
205
+ return;
206
+ }
207
+ await this.getData()
208
+ .then(() => {
209
+ this.initData();
210
+ this.initEditableFieldsState();
211
+ })
212
+ .finally(() => this.isSkeletonLoading = false);
213
+ }
214
+ componentDidLoad() {
215
+ if (this.stylingContainer) {
216
+ if (window.emMessageBuss != undefined) {
217
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
218
+ }
219
+ else {
220
+ if (this.clientStyling)
221
+ setClientStyling(this.stylingContainer, this.clientStyling);
222
+ if (this.clientStylingUrl)
223
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
224
+ }
225
+ }
226
+ if (this.isStandAlone !== 'true') {
227
+ window.addEventListener('message', this.messageHandler, false);
228
+ this.sendLoadedMessage();
229
+ }
230
+ }
231
+ disconnectedCallback() {
232
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
233
+ if (this.isStandAlone !== 'true')
234
+ window.removeEventListener('message', this.messageHandler, false);
235
+ }
236
+ initData() {
237
+ for (const address of this.data.addresses) {
238
+ this.dataRef[address.type] = address;
239
+ }
240
+ if (this.dataRef['Temporary'] && this.isSkeletonLoading) {
241
+ this.isPermanentAddressSectionActive = false;
242
+ this.isTemporaryAddressSectionActive = true;
243
+ }
244
+ }
245
+ initEditableFieldsState() {
246
+ for (const [type, address] of Object.entries(this.dataRef)) {
247
+ if ((type === 'Permanent' && this.isPermanentAdressEditable !== 'true') ||
248
+ (type === 'Temporary' && this.isTemporaryAdressEditable !== 'true'))
249
+ continue;
250
+ const addressState = {};
251
+ ['line1', 'line2', 'line3'].forEach(key => {
252
+ if (address[key])
253
+ addressState[key] = this.buildFieldState(true, address[key], (val) => val && val.length <= 100);
254
+ });
255
+ if (address['city']) {
256
+ addressState['city'] = this.buildFieldState(true, address['city'], (val) => val && val.length <= 50);
257
+ }
258
+ if (address['postalCode']) {
259
+ addressState['postalCode'] = this.buildFieldState(true, address['postalCode'], (val) => val && val.length <= 20);
260
+ }
261
+ if (address['stateProvince']) {
262
+ addressState['stateProvince'] = this.buildFieldState(true, address['stateProvince'], (val) => val && val.length <= 50);
263
+ }
264
+ if (Object.keys(address['addressInfo']).length > 0) {
265
+ if (address['addressInfo'].floor) {
266
+ addressState['floor'] = this.buildFieldState(true, address['addressInfo'].floor, (val) => val && val.length <= 10);
267
+ }
268
+ if (address['addressInfo'].doorCode) {
269
+ addressState['doorCode'] = this.buildFieldState(true, address['addressInfo'].doorCode, (val) => val && val.length <= 10);
270
+ }
271
+ if (address['addressInfo'].buildingName) {
272
+ addressState['buildingName'] = this.buildFieldState(true, address['addressInfo'].buildingName, (val) => val && val.length <= 50);
273
+ }
274
+ if (address['addressInfo'].additionalInstructions) {
275
+ addressState['additionalInstructions'] = this.buildFieldState(true, address['addressInfo'].additionalInstructions, (val) => val && val.length <= 120);
276
+ }
277
+ }
278
+ this.fieldsState[type] = {};
279
+ this.fieldsState[type]['data'] = addressState;
280
+ this.fieldsState[type]['hasChanged'] = false;
281
+ }
282
+ }
283
+ render() {
284
+ return (h("div", { key: 'f273967a4c5ead5e29d5f475eb564f4f5c183134', ref: el => this.stylingContainer = el }, this.isSkeletonLoading
285
+ ? h("form", { class: "PamPlayerAddressesWrapper skeleton" }, h("div", { class: "ReturnButton" }, h("ui-skeleton", { structure: "title", width: "auto", height: "30px" })), h("div", { class: "Section" }, h("section", { class: "SectionContent" }, [...Array(6).keys()].map(() => h("div", { class: "Field" }, h("ui-skeleton", { structure: "text", width: "auto", "margin-bottom": "10px", height: "10px" }), h("ui-skeleton", { structure: "rectangle", width: "100%", height: "20px" }))), h("div", { class: "CompoundField" }, h("div", { class: "Field" }, h("ui-skeleton", { structure: "text", width: "auto", "margin-bottom": "10px", height: "10px" }), h("ui-skeleton", { structure: "rectangle", width: "100%", height: "20px" })), h("div", { class: "Field" }, h("ui-skeleton", { structure: "text", width: "auto", "margin-bottom": "10px", height: "10px" }), h("ui-skeleton", { structure: "rectangle", width: "100%", height: "20px" }))), h("div", { class: "Field" }, h("ui-skeleton", { structure: "text", width: "auto", "margin-bottom": "10px", height: "10px" }), h("ui-skeleton", { structure: "rectangle", width: "auto", height: "20px" })))), h("section", { class: "ButtonsArea" }, h("div", { class: "SaveButton" }, h("ui-skeleton", { structure: "rectangle", width: "auto", height: "50px" }))))
286
+ : h("form", { class: "PamPlayerAddressesWrapper" }, 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))), h("h2", { class: "HeaderText" }, translate('title', this.lang)), this.dataRef['Temporary'] && this.section('Temporary', this.isTemporaryAdressEditable === 'true'), this.dataRef['Permanent'] && this.section('Permanent', this.isPermanentAdressEditable === 'true'), this.isStandAlone === 'true' &&
287
+ h("section", { class: "ButtonsArea" }, h("button", { class: `SaveButton ${this.isSubmitButtonAvailable ? '' : 'Disabled'}`, onClick: this.updateData }, translate('saveButton'))))));
288
+ }
289
+ static get is() { return "pam-player-addresses"; }
290
+ static get encapsulation() { return "shadow"; }
291
+ static get originalStyleUrls() {
292
+ return {
293
+ "$": ["pam-player-addresses.scss"]
294
+ };
295
+ }
296
+ static get styleUrls() {
297
+ return {
298
+ "$": ["pam-player-addresses.css"]
299
+ };
300
+ }
301
+ static get properties() {
302
+ return {
303
+ "userId": {
304
+ "type": "string",
305
+ "mutable": false,
306
+ "complexType": {
307
+ "original": "string",
308
+ "resolved": "string",
309
+ "references": {}
310
+ },
311
+ "required": false,
312
+ "optional": false,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": ""
316
+ },
317
+ "attribute": "user-id",
318
+ "reflect": true
319
+ },
320
+ "session": {
321
+ "type": "string",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "string",
325
+ "resolved": "string",
326
+ "references": {}
327
+ },
328
+ "required": false,
329
+ "optional": false,
330
+ "docs": {
331
+ "tags": [],
332
+ "text": ""
333
+ },
334
+ "attribute": "session",
335
+ "reflect": true
336
+ },
337
+ "endpoint": {
338
+ "type": "string",
339
+ "mutable": false,
340
+ "complexType": {
341
+ "original": "string",
342
+ "resolved": "string",
343
+ "references": {}
344
+ },
345
+ "required": false,
346
+ "optional": false,
347
+ "docs": {
348
+ "tags": [],
349
+ "text": ""
350
+ },
351
+ "attribute": "endpoint",
352
+ "reflect": true
353
+ },
354
+ "lang": {
355
+ "type": "string",
356
+ "mutable": false,
357
+ "complexType": {
358
+ "original": "string",
359
+ "resolved": "string",
360
+ "references": {}
361
+ },
362
+ "required": false,
363
+ "optional": false,
364
+ "docs": {
365
+ "tags": [],
366
+ "text": ""
367
+ },
368
+ "attribute": "lang",
369
+ "reflect": true,
370
+ "defaultValue": "'en'"
371
+ },
372
+ "mbSource": {
373
+ "type": "string",
374
+ "mutable": false,
375
+ "complexType": {
376
+ "original": "string",
377
+ "resolved": "string",
378
+ "references": {}
379
+ },
380
+ "required": false,
381
+ "optional": false,
382
+ "docs": {
383
+ "tags": [],
384
+ "text": ""
385
+ },
386
+ "attribute": "mb-source",
387
+ "reflect": true
388
+ },
389
+ "clientStyling": {
390
+ "type": "string",
391
+ "mutable": false,
392
+ "complexType": {
393
+ "original": "string",
394
+ "resolved": "string",
395
+ "references": {}
396
+ },
397
+ "required": false,
398
+ "optional": false,
399
+ "docs": {
400
+ "tags": [],
401
+ "text": ""
402
+ },
403
+ "attribute": "client-styling",
404
+ "reflect": true
405
+ },
406
+ "clientStylingUrl": {
407
+ "type": "string",
408
+ "mutable": false,
409
+ "complexType": {
410
+ "original": "string",
411
+ "resolved": "string",
412
+ "references": {}
413
+ },
414
+ "required": false,
415
+ "optional": false,
416
+ "docs": {
417
+ "tags": [],
418
+ "text": ""
419
+ },
420
+ "attribute": "client-styling-url",
421
+ "reflect": true
422
+ },
423
+ "translationUrl": {
424
+ "type": "string",
425
+ "mutable": false,
426
+ "complexType": {
427
+ "original": "string",
428
+ "resolved": "string",
429
+ "references": {}
430
+ },
431
+ "required": false,
432
+ "optional": false,
433
+ "docs": {
434
+ "tags": [],
435
+ "text": ""
436
+ },
437
+ "attribute": "translation-url",
438
+ "reflect": true
439
+ },
440
+ "isFullAddressDisplayed": {
441
+ "type": "string",
442
+ "mutable": false,
443
+ "complexType": {
444
+ "original": "string",
445
+ "resolved": "string",
446
+ "references": {}
447
+ },
448
+ "required": false,
449
+ "optional": false,
450
+ "docs": {
451
+ "tags": [],
452
+ "text": ""
453
+ },
454
+ "attribute": "is-full-address-displayed",
455
+ "reflect": true,
456
+ "defaultValue": "'false'"
457
+ },
458
+ "isPermanentAdressEditable": {
459
+ "type": "string",
460
+ "mutable": false,
461
+ "complexType": {
462
+ "original": "string",
463
+ "resolved": "string",
464
+ "references": {}
465
+ },
466
+ "required": false,
467
+ "optional": false,
468
+ "docs": {
469
+ "tags": [],
470
+ "text": ""
471
+ },
472
+ "attribute": "is-permanent-adress-editable",
473
+ "reflect": true,
474
+ "defaultValue": "'false'"
475
+ },
476
+ "isTemporaryAdressEditable": {
477
+ "type": "string",
478
+ "mutable": false,
479
+ "complexType": {
480
+ "original": "string",
481
+ "resolved": "string",
482
+ "references": {}
483
+ },
484
+ "required": false,
485
+ "optional": false,
486
+ "docs": {
487
+ "tags": [],
488
+ "text": ""
489
+ },
490
+ "attribute": "is-temporary-adress-editable",
491
+ "reflect": true,
492
+ "defaultValue": "'true'"
493
+ },
494
+ "isStandAlone": {
495
+ "type": "string",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "string",
499
+ "resolved": "string",
500
+ "references": {}
501
+ },
502
+ "required": false,
503
+ "optional": false,
504
+ "docs": {
505
+ "tags": [],
506
+ "text": ""
507
+ },
508
+ "attribute": "is-stand-alone",
509
+ "reflect": true,
510
+ "defaultValue": "'true'"
511
+ }
512
+ };
513
+ }
514
+ static get states() {
515
+ return {
516
+ "limitStylingAppends": {},
517
+ "isSkeletonLoading": {},
518
+ "isSubmitButtonAvailable": {},
519
+ "invalidFields": {},
520
+ "isMobile": {},
521
+ "isPermanentAddressSectionActive": {},
522
+ "isTemporaryAddressSectionActive": {}
523
+ };
524
+ }
525
+ static get watchers() {
526
+ return [{
527
+ "propName": "clientStyling",
528
+ "methodName": "handleStylingChange"
529
+ }, {
530
+ "propName": "clientStylingUrl",
531
+ "methodName": "handleStylingUrlChange"
532
+ }];
533
+ }
534
+ }
@@ -0,0 +1 @@
1
+ export * from './components/pam-player-addresses';