@everymatrix/pam-player-profile-controller 1.90.7 → 1.90.9
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/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/pam-player-addresses_6.cjs.entry.js +2 -1
- package/dist/cjs/{pam-player-profile-controller-518e1b4a.js → pam-player-profile-controller-d399eec2.js} +2 -18
- package/dist/collection/components/pam-player-profile-controller/pam-player-profile-controller.js +2 -2
- package/dist/esm/index.js +2 -1
- package/dist/esm/pam-player-addresses_6.entry.js +3 -2
- package/dist/esm/{pam-player-profile-controller-775d26d5.js → pam-player-profile-controller-8e8773cf.js} +2 -18
- package/dist/pam-player-profile-controller/index.esm.js +1 -1
- package/dist/pam-player-profile-controller/pam-player-addresses_6.entry.js +1 -1
- package/dist/pam-player-profile-controller/pam-player-profile-controller-8e8773cf.js +1 -0
- package/dist/types/components/pam-player-profile-controller/pam-player-profile-controller.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/GeneralAnimationLoading-DvwHUxLh-2326dad2.js +0 -86
- package/dist/cjs/PlayerConsents-C93YUnq0-af99ac14.js +0 -5496
- package/dist/esm/GeneralAnimationLoading-DvwHUxLh-4d6766a1.js +0 -84
- package/dist/esm/PlayerConsents-C93YUnq0-2e7ff8d3.js +0 -5479
- package/dist/pam-player-profile-controller/GeneralAnimationLoading-DvwHUxLh-4d6766a1.js +0 -1
- package/dist/pam-player-profile-controller/PlayerConsents-C93YUnq0-2e7ff8d3.js +0 -1
- package/dist/pam-player-profile-controller/pam-player-profile-controller-775d26d5.js +0 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const pamPlayerProfileController = require('./pam-player-profile-controller-
|
|
5
|
+
const pamPlayerProfileController = require('./pam-player-profile-controller-d399eec2.js');
|
|
6
6
|
require('./index-85501c28.js');
|
|
7
|
+
require('@everymatrix/pam-profile-consents');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-85501c28.js');
|
|
6
|
-
const pamPlayerProfileController = require('./pam-player-profile-controller-
|
|
6
|
+
const pamPlayerProfileController = require('./pam-player-profile-controller-d399eec2.js');
|
|
7
|
+
require('@everymatrix/pam-profile-consents');
|
|
7
8
|
|
|
8
9
|
const DEFAULT_LANGUAGE$3 = 'en';
|
|
9
10
|
const TRANSLATIONS$3 = {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-85501c28.js');
|
|
4
|
+
require('@everymatrix/pam-profile-consents');
|
|
4
5
|
|
|
5
6
|
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
6
7
|
|
|
@@ -248,23 +249,6 @@ const isMobile = (userAgent) => {
|
|
|
248
249
|
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
249
250
|
};
|
|
250
251
|
|
|
251
|
-
if (typeof window != "undefined") {
|
|
252
|
-
let n = function(e) {
|
|
253
|
-
return function(...s) {
|
|
254
|
-
try {
|
|
255
|
-
return e.apply(this, s);
|
|
256
|
-
} catch (t) {
|
|
257
|
-
if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
258
|
-
return !1;
|
|
259
|
-
throw t;
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
customElements.define = n(customElements.define), Promise.resolve().then(function () { return require('./PlayerConsents-C93YUnq0-af99ac14.js'); }).then((e) => e.P).then(({ default: e }) => {
|
|
264
|
-
!customElements.get("player-consents") && customElements.define("player-consents", e.element);
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
|
|
268
252
|
const pamPlayerProfileControllerCss = ":host{display:block}button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.errorContainer{font-family:\"Roboto\";font-style:normal;font-family:sans-serif;display:flex;flex-direction:column;gap:24px;width:100%;height:100%}.errorContainer .errorMessage{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:var(--emw-font-size-small, 13px);display:block;justify-content:center;text-align:center}.PlayerProfileControllerWrapper{color:var(--emw--pam-typography, var(--emw-color-contrast, #07072A));background:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;display:flex;flex-direction:column;gap:20px;border-radius:var(--emw--border-radius-large, 10px)}.PlayerProfileControllerWrapper h2{font-size:var(--emw--font-size-x-large, 24px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-transform:capitalize;font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper .ConsentsWrapper{background:var(--emw-color-pale, var(--emw--color-gray-100, #E6E6E6));border-radius:var(--emw--border-radius-large, 10px);padding:50px;margin-top:15px}.PlayerProfileControllerWrapper .ButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton{display:flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);font-size:var(--emw--size-standard, 16px);text-transform:uppercase;transition-duration:var(--emw--transition-medium, 250ms);max-width:400px;min-width:200px;padding:13px 0;width:100%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton.Disabled{opacity:0.3;cursor:not-allowed}.PlayerProfileControllerWrapper.Mobile{padding:20px 15px;background:var(--emw-color-gray-50, #F9F8F8);max-width:unset;border-radius:var(--emw--border-radius-small, 5px)}.PlayerProfileControllerWrapper.Mobile .ReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerProfileControllerWrapper.Mobile .ReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper.Mobile h2{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper.Mobile .ButtonsArea{grid-column-gap:10px;width:100%;grid-template-columns:1fr 1fr}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton{font-size:var(--emw--size-x-small, 12px);height:40px;color:var(--emw-button-typography, var(--emw-color-white, #FFFFFF))}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton.Disabled{color:var(--emw-color-gray-300, #58586B)}";
|
|
269
253
|
const PamPlayerProfileControllerStyle0 = pamPlayerProfileControllerCss;
|
|
270
254
|
|
|
@@ -585,7 +569,7 @@ const PlayerProfileController = class {
|
|
|
585
569
|
index.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' &&
|
|
586
570
|
index.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' &&
|
|
587
571
|
index.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" }), index.h("section", { class: "ButtonsArea" }, index.h("button", { class: `SaveButton ${this.isSubmitButtonAvailable ? '' : 'Disabled'}`, onClick: this.sendDataRequest }, translate('saveButton'))), this.addConsents === 'true' &&
|
|
588
|
-
index.h("div", { class: "ConsentsWrapper" }, index.h("pam-
|
|
572
|
+
index.h("div", { class: "ConsentsWrapper" }, index.h("pam-profile-consents", { lang: this.lang, endpoint: this.endpoint, session: this.session, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })))));
|
|
589
573
|
}
|
|
590
574
|
static get watchers() { return {
|
|
591
575
|
"clientStyling": ["handleStylingChange"],
|
package/dist/collection/components/pam-player-profile-controller/pam-player-profile-controller.js
CHANGED
|
@@ -6,7 +6,7 @@ import "../../../../../pam-player-profile/dist/types/index";
|
|
|
6
6
|
import "../../../../../pam-player-addresses/dist/types/index";
|
|
7
7
|
import "../../../../../pam-player-contacts/dist/types/index";
|
|
8
8
|
import "../../../../../pam-player-documents/dist/types/index";
|
|
9
|
-
import "
|
|
9
|
+
import "@everymatrix/pam-profile-consents";
|
|
10
10
|
export class PlayerProfileController {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.data = {};
|
|
@@ -324,7 +324,7 @@ export class PlayerProfileController {
|
|
|
324
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
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
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-
|
|
327
|
+
h("div", { class: "ConsentsWrapper" }, h("pam-profile-consents", { lang: this.lang, endpoint: this.endpoint, session: this.session, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })))));
|
|
328
328
|
}
|
|
329
329
|
static get is() { return "pam-player-profile-controller"; }
|
|
330
330
|
static get encapsulation() { return "shadow"; }
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-bb55519d.js';
|
|
2
|
-
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './pam-player-profile-controller-
|
|
3
|
-
export { P as pam_player_profile_controller } from './pam-player-profile-controller-
|
|
2
|
+
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './pam-player-profile-controller-8e8773cf.js';
|
|
3
|
+
export { P as pam_player_profile_controller } from './pam-player-profile-controller-8e8773cf.js';
|
|
4
|
+
import '@everymatrix/pam-profile-consents';
|
|
4
5
|
|
|
5
6
|
const DEFAULT_LANGUAGE$3 = 'en';
|
|
6
7
|
const TRANSLATIONS$3 = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-bb55519d.js';
|
|
2
|
+
import '@everymatrix/pam-profile-consents';
|
|
2
3
|
|
|
3
4
|
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
4
5
|
|
|
@@ -246,23 +247,6 @@ const isMobile = (userAgent) => {
|
|
|
246
247
|
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
247
248
|
};
|
|
248
249
|
|
|
249
|
-
if (typeof window != "undefined") {
|
|
250
|
-
let n = function(e) {
|
|
251
|
-
return function(...s) {
|
|
252
|
-
try {
|
|
253
|
-
return e.apply(this, s);
|
|
254
|
-
} catch (t) {
|
|
255
|
-
if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
256
|
-
return !1;
|
|
257
|
-
throw t;
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
customElements.define = n(customElements.define), import('./PlayerConsents-C93YUnq0-2e7ff8d3.js').then((e) => e.P).then(({ default: e }) => {
|
|
262
|
-
!customElements.get("player-consents") && customElements.define("player-consents", e.element);
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
|
|
266
250
|
const pamPlayerProfileControllerCss = ":host{display:block}button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.errorContainer{font-family:\"Roboto\";font-style:normal;font-family:sans-serif;display:flex;flex-direction:column;gap:24px;width:100%;height:100%}.errorContainer .errorMessage{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:var(--emw-font-size-small, 13px);display:block;justify-content:center;text-align:center}.PlayerProfileControllerWrapper{color:var(--emw--pam-typography, var(--emw-color-contrast, #07072A));background:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;display:flex;flex-direction:column;gap:20px;border-radius:var(--emw--border-radius-large, 10px)}.PlayerProfileControllerWrapper h2{font-size:var(--emw--font-size-x-large, 24px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-transform:capitalize;font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper .ConsentsWrapper{background:var(--emw-color-pale, var(--emw--color-gray-100, #E6E6E6));border-radius:var(--emw--border-radius-large, 10px);padding:50px;margin-top:15px}.PlayerProfileControllerWrapper .ButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton{display:flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);font-size:var(--emw--size-standard, 16px);text-transform:uppercase;transition-duration:var(--emw--transition-medium, 250ms);max-width:400px;min-width:200px;padding:13px 0;width:100%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton.Disabled{opacity:0.3;cursor:not-allowed}.PlayerProfileControllerWrapper.Mobile{padding:20px 15px;background:var(--emw-color-gray-50, #F9F8F8);max-width:unset;border-radius:var(--emw--border-radius-small, 5px)}.PlayerProfileControllerWrapper.Mobile .ReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerProfileControllerWrapper.Mobile .ReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper.Mobile h2{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper.Mobile .ButtonsArea{grid-column-gap:10px;width:100%;grid-template-columns:1fr 1fr}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton{font-size:var(--emw--size-x-small, 12px);height:40px;color:var(--emw-button-typography, var(--emw-color-white, #FFFFFF))}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton.Disabled{color:var(--emw-color-gray-300, #58586B)}";
|
|
267
251
|
const PamPlayerProfileControllerStyle0 = pamPlayerProfileControllerCss;
|
|
268
252
|
|
|
@@ -583,7 +567,7 @@ const PlayerProfileController = class {
|
|
|
583
567
|
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' &&
|
|
584
568
|
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' &&
|
|
585
569
|
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' &&
|
|
586
|
-
h("div", { class: "ConsentsWrapper" }, h("pam-
|
|
570
|
+
h("div", { class: "ConsentsWrapper" }, h("pam-profile-consents", { lang: this.lang, endpoint: this.endpoint, session: this.session, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })))));
|
|
587
571
|
}
|
|
588
572
|
static get watchers() { return {
|
|
589
573
|
"clientStyling": ["handleStylingChange"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PlayerProfileController}from"./pam-player-profile-controller-
|
|
1
|
+
export{P as PlayerProfileController}from"./pam-player-profile-controller-8e8773cf.js";import"./index-bb55519d.js";import"@everymatrix/pam-profile-consents";
|