@everymatrix/pam-consent-modal 0.1.0 → 0.1.2
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-9dbdce4a.js → index-b2aa2011.js} +4 -56
- package/dist/cjs/index.cjs.js +3 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{pam-consent-modal-bc9246fa.js → pam-consent-modal-247cbbaa.js} +2 -4
- package/dist/cjs/pam-consent-modal.cjs.entry.js +11 -0
- package/dist/cjs/pam-consent-modal.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/pam-consent-modal/pam-consent-modal.js +1 -1
- package/dist/esm/{index-f4cffab8.js → index-25acbfb0.js} +5 -56
- package/dist/esm/index.js +3 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{pam-consent-modal-be38f983.js → pam-consent-modal-058df025.js} +3 -2
- package/dist/esm/pam-consent-modal.entry.js +3 -0
- package/dist/esm/pam-consent-modal.js +3 -3
- package/dist/pam-consent-modal/index.esm.js +1 -1
- package/dist/pam-consent-modal/p-6b1b751c.js +1 -0
- package/dist/pam-consent-modal/p-7d048276.js +2 -0
- package/dist/pam-consent-modal/p-b83f8b04.entry.js +1 -0
- package/dist/pam-consent-modal/pam-consent-modal.esm.js +1 -1
- package/dist/types/components/pam-consent-modal/pam-consent-modal.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/pam-consent-item_2.cjs.entry.js +0 -481
- package/dist/esm/pam-consent-item_2.entry.js +0 -477
- package/dist/pam-consent-modal/p-2af7b124.js +0 -1
- package/dist/pam-consent-modal/p-46389116.js +0 -2
- package/dist/pam-consent-modal/p-da3e62e4.entry.js +0 -1
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'pam-consent-modal';
|
|
24
|
-
const BUILD = /* pam-consent-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event:
|
|
24
|
+
const BUILD = /* pam-consent-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -71,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'pam-consent-
|
|
74
|
+
case 'pam-consent-modal.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./pam-consent-
|
|
77
|
+
'./pam-consent-modal.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -249,7 +249,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
249
249
|
};
|
|
250
250
|
var h = (nodeName, vnodeData, ...children) => {
|
|
251
251
|
let child = null;
|
|
252
|
-
let key = null;
|
|
253
252
|
let simple = false;
|
|
254
253
|
let lastSimple = false;
|
|
255
254
|
const vNodeChildren = [];
|
|
@@ -273,9 +272,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
273
272
|
};
|
|
274
273
|
walk(children);
|
|
275
274
|
if (vnodeData) {
|
|
276
|
-
if (vnodeData.key) {
|
|
277
|
-
key = vnodeData.key;
|
|
278
|
-
}
|
|
279
275
|
{
|
|
280
276
|
const classData = vnodeData.className || vnodeData.class;
|
|
281
277
|
if (classData) {
|
|
@@ -288,9 +284,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
288
284
|
if (vNodeChildren.length > 0) {
|
|
289
285
|
vnode.$children$ = vNodeChildren;
|
|
290
286
|
}
|
|
291
|
-
{
|
|
292
|
-
vnode.$key$ = key;
|
|
293
|
-
}
|
|
294
287
|
return vnode;
|
|
295
288
|
};
|
|
296
289
|
var newVNode = (tag, text) => {
|
|
@@ -304,9 +297,6 @@ var newVNode = (tag, text) => {
|
|
|
304
297
|
{
|
|
305
298
|
vnode.$attrs$ = null;
|
|
306
299
|
}
|
|
307
|
-
{
|
|
308
|
-
vnode.$key$ = null;
|
|
309
|
-
}
|
|
310
300
|
return vnode;
|
|
311
301
|
};
|
|
312
302
|
var Host = {};
|
|
@@ -323,22 +313,6 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
323
313
|
}
|
|
324
314
|
return propValue;
|
|
325
315
|
};
|
|
326
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
327
|
-
|
|
328
|
-
// src/runtime/event-emitter.ts
|
|
329
|
-
var createEvent = (ref, name, flags) => {
|
|
330
|
-
const elm = getElement(ref);
|
|
331
|
-
return {
|
|
332
|
-
emit: (detail) => {
|
|
333
|
-
return emitEvent(elm, name, {
|
|
334
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
335
|
-
composed: !!(flags & 2 /* Composed */),
|
|
336
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
337
|
-
detail
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
316
|
var emitEvent = (elm, name, opts) => {
|
|
343
317
|
const ev = plt.ce(name, opts);
|
|
344
318
|
elm.dispatchEvent(ev);
|
|
@@ -420,7 +394,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
420
394
|
const newClasses = parseClassList(newValue);
|
|
421
395
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
422
396
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
423
|
-
} else if (memberName === "
|
|
397
|
+
} else if (memberName === "ref") {
|
|
424
398
|
if (newValue) {
|
|
425
399
|
newValue(elm);
|
|
426
400
|
}
|
|
@@ -584,8 +558,6 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
584
558
|
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
585
559
|
let oldStartIdx = 0;
|
|
586
560
|
let newStartIdx = 0;
|
|
587
|
-
let idxInOld = 0;
|
|
588
|
-
let i2 = 0;
|
|
589
561
|
let oldEndIdx = oldCh.length - 1;
|
|
590
562
|
let oldStartVnode = oldCh[0];
|
|
591
563
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -593,7 +565,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
593
565
|
let newStartVnode = newCh[0];
|
|
594
566
|
let newEndVnode = newCh[newEndIdx];
|
|
595
567
|
let node;
|
|
596
|
-
let elmToMove;
|
|
597
568
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
598
569
|
if (oldStartVnode == null) {
|
|
599
570
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -622,26 +593,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
622
593
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
623
594
|
newStartVnode = newCh[++newStartIdx];
|
|
624
595
|
} else {
|
|
625
|
-
idxInOld = -1;
|
|
626
596
|
{
|
|
627
|
-
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
628
|
-
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
629
|
-
idxInOld = i2;
|
|
630
|
-
break;
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
if (idxInOld >= 0) {
|
|
635
|
-
elmToMove = oldCh[idxInOld];
|
|
636
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
637
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
638
|
-
} else {
|
|
639
|
-
patch(elmToMove, newStartVnode, isInitialRender);
|
|
640
|
-
oldCh[idxInOld] = void 0;
|
|
641
|
-
node = elmToMove.$elm$;
|
|
642
|
-
}
|
|
643
|
-
newStartVnode = newCh[++newStartIdx];
|
|
644
|
-
} else {
|
|
645
597
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
646
598
|
newStartVnode = newCh[++newStartIdx];
|
|
647
599
|
}
|
|
@@ -667,9 +619,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
667
619
|
};
|
|
668
620
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
669
621
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
670
|
-
if (!isInitialRender) {
|
|
671
|
-
return leftVNode.$key$ === rightVNode.$key$;
|
|
672
|
-
}
|
|
673
622
|
return true;
|
|
674
623
|
}
|
|
675
624
|
return false;
|
|
@@ -1296,7 +1245,6 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1296
1245
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1297
1246
|
|
|
1298
1247
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1299
|
-
exports.createEvent = createEvent;
|
|
1300
1248
|
exports.h = h;
|
|
1301
1249
|
exports.promiseResolve = promiseResolve;
|
|
1302
1250
|
exports.registerInstance = registerInstance;
|
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 pamConsentModal = require('./pam-consent-modal-
|
|
6
|
-
require('./index-
|
|
5
|
+
const pamConsentModal = require('./pam-consent-modal-247cbbaa.js');
|
|
6
|
+
require('./index-b2aa2011.js');
|
|
7
|
+
require('@everymatrix/pam-consent-item');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b2aa2011.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["pam-consent-
|
|
11
|
+
return index.bootstrapLazy([["pam-consent-modal.cjs",[[1,"pam-consent-modal",{"endpoint":[513],"session":[513],"userId":[513,"user-id"],"language":[1537],"includeSubmitButton":[516,"include-submit-button"],"includeRejectButton":[516,"include-reject-button"],"includeRejectText":[516,"include-reject-text"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"isLoading":[32],"isValid":[32],"isQueryFired":[32],"receivedQueryResponses":[32],"mandatoryConsentsChecked":[32],"mandatoryConsentsCount":[32],"userConsentTagCodes":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"receivedQueryResponses":["handleQueryResponse"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-b2aa2011.js');
|
|
4
|
+
require('@everymatrix/pam-consent-item');
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @name setClientStyling
|
|
@@ -396,6 +397,3 @@ const PamConsentModal = class {
|
|
|
396
397
|
PamConsentModal.style = PamConsentModalStyle0;
|
|
397
398
|
|
|
398
399
|
exports.PamConsentModal = PamConsentModal;
|
|
399
|
-
exports.setClientStyling = setClientStyling;
|
|
400
|
-
exports.setClientStylingURL = setClientStylingURL;
|
|
401
|
-
exports.setStreamStyling = setStreamStyling;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const pamConsentModal = require('./pam-consent-modal-247cbbaa.js');
|
|
6
|
+
require('./index-b2aa2011.js');
|
|
7
|
+
require('@everymatrix/pam-consent-item');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.pam_consent_modal = pamConsentModal.PamConsentModal;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b2aa2011.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["pam-consent-
|
|
22
|
+
return index.bootstrapLazy([["pam-consent-modal.cjs",[[1,"pam-consent-modal",{"endpoint":[513],"session":[513],"userId":[513,"user-id"],"language":[1537],"includeSubmitButton":[516,"include-submit-button"],"includeRejectButton":[516,"include-reject-button"],"includeRejectText":[516,"include-reject-text"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"isLoading":[32],"isValid":[32],"isQueryFired":[32],"receivedQueryResponses":[32],"mandatoryConsentsChecked":[32],"mandatoryConsentsCount":[32],"userConsentTagCodes":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"receivedQueryResponses":["handleQueryResponse"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
3
|
import { dispatchCustomEvent } from "../../../../../../../../libs/custom-events/src/index";
|
|
4
4
|
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
5
|
-
import "
|
|
5
|
+
import "@everymatrix/pam-consent-item";
|
|
6
6
|
export class PamConsentModal {
|
|
7
7
|
constructor() {
|
|
8
8
|
/** This obj is passed to the api on consent update */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'pam-consent-modal';
|
|
2
|
-
const BUILD = /* pam-consent-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event:
|
|
2
|
+
const BUILD = /* pam-consent-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -49,10 +49,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
49
49
|
}
|
|
50
50
|
switch(bundleId) {
|
|
51
51
|
|
|
52
|
-
case 'pam-consent-
|
|
52
|
+
case 'pam-consent-modal':
|
|
53
53
|
return import(
|
|
54
54
|
/* webpackMode: "lazy" */
|
|
55
|
-
'./pam-consent-
|
|
55
|
+
'./pam-consent-modal.entry.js').then(processMod, consoleError);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
return import(
|
|
@@ -227,7 +227,6 @@ var uniqueTime = (key, measureText) => {
|
|
|
227
227
|
};
|
|
228
228
|
var h = (nodeName, vnodeData, ...children) => {
|
|
229
229
|
let child = null;
|
|
230
|
-
let key = null;
|
|
231
230
|
let simple = false;
|
|
232
231
|
let lastSimple = false;
|
|
233
232
|
const vNodeChildren = [];
|
|
@@ -251,9 +250,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
251
250
|
};
|
|
252
251
|
walk(children);
|
|
253
252
|
if (vnodeData) {
|
|
254
|
-
if (vnodeData.key) {
|
|
255
|
-
key = vnodeData.key;
|
|
256
|
-
}
|
|
257
253
|
{
|
|
258
254
|
const classData = vnodeData.className || vnodeData.class;
|
|
259
255
|
if (classData) {
|
|
@@ -266,9 +262,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
266
262
|
if (vNodeChildren.length > 0) {
|
|
267
263
|
vnode.$children$ = vNodeChildren;
|
|
268
264
|
}
|
|
269
|
-
{
|
|
270
|
-
vnode.$key$ = key;
|
|
271
|
-
}
|
|
272
265
|
return vnode;
|
|
273
266
|
};
|
|
274
267
|
var newVNode = (tag, text) => {
|
|
@@ -282,9 +275,6 @@ var newVNode = (tag, text) => {
|
|
|
282
275
|
{
|
|
283
276
|
vnode.$attrs$ = null;
|
|
284
277
|
}
|
|
285
|
-
{
|
|
286
|
-
vnode.$key$ = null;
|
|
287
|
-
}
|
|
288
278
|
return vnode;
|
|
289
279
|
};
|
|
290
280
|
var Host = {};
|
|
@@ -301,22 +291,6 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
301
291
|
}
|
|
302
292
|
return propValue;
|
|
303
293
|
};
|
|
304
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
305
|
-
|
|
306
|
-
// src/runtime/event-emitter.ts
|
|
307
|
-
var createEvent = (ref, name, flags) => {
|
|
308
|
-
const elm = getElement(ref);
|
|
309
|
-
return {
|
|
310
|
-
emit: (detail) => {
|
|
311
|
-
return emitEvent(elm, name, {
|
|
312
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
313
|
-
composed: !!(flags & 2 /* Composed */),
|
|
314
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
315
|
-
detail
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
294
|
var emitEvent = (elm, name, opts) => {
|
|
321
295
|
const ev = plt.ce(name, opts);
|
|
322
296
|
elm.dispatchEvent(ev);
|
|
@@ -398,7 +372,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
398
372
|
const newClasses = parseClassList(newValue);
|
|
399
373
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
400
374
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
401
|
-
} else if (memberName === "
|
|
375
|
+
} else if (memberName === "ref") {
|
|
402
376
|
if (newValue) {
|
|
403
377
|
newValue(elm);
|
|
404
378
|
}
|
|
@@ -562,8 +536,6 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
562
536
|
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
563
537
|
let oldStartIdx = 0;
|
|
564
538
|
let newStartIdx = 0;
|
|
565
|
-
let idxInOld = 0;
|
|
566
|
-
let i2 = 0;
|
|
567
539
|
let oldEndIdx = oldCh.length - 1;
|
|
568
540
|
let oldStartVnode = oldCh[0];
|
|
569
541
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -571,7 +543,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
571
543
|
let newStartVnode = newCh[0];
|
|
572
544
|
let newEndVnode = newCh[newEndIdx];
|
|
573
545
|
let node;
|
|
574
|
-
let elmToMove;
|
|
575
546
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
576
547
|
if (oldStartVnode == null) {
|
|
577
548
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
@@ -600,26 +571,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
600
571
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
601
572
|
newStartVnode = newCh[++newStartIdx];
|
|
602
573
|
} else {
|
|
603
|
-
idxInOld = -1;
|
|
604
574
|
{
|
|
605
|
-
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
606
|
-
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
607
|
-
idxInOld = i2;
|
|
608
|
-
break;
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
if (idxInOld >= 0) {
|
|
613
|
-
elmToMove = oldCh[idxInOld];
|
|
614
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
615
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
616
|
-
} else {
|
|
617
|
-
patch(elmToMove, newStartVnode, isInitialRender);
|
|
618
|
-
oldCh[idxInOld] = void 0;
|
|
619
|
-
node = elmToMove.$elm$;
|
|
620
|
-
}
|
|
621
|
-
newStartVnode = newCh[++newStartIdx];
|
|
622
|
-
} else {
|
|
623
575
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
624
576
|
newStartVnode = newCh[++newStartIdx];
|
|
625
577
|
}
|
|
@@ -645,9 +597,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
645
597
|
};
|
|
646
598
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
647
599
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
648
|
-
if (!isInitialRender) {
|
|
649
|
-
return leftVNode.$key$ === rightVNode.$key$;
|
|
650
|
-
}
|
|
651
600
|
return true;
|
|
652
601
|
}
|
|
653
602
|
return false;
|
|
@@ -1273,4 +1222,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1273
1222
|
// src/runtime/nonce.ts
|
|
1274
1223
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1275
1224
|
|
|
1276
|
-
export { bootstrapLazy as b,
|
|
1225
|
+
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { P as PamConsentModal } from './pam-consent-modal-
|
|
2
|
-
import './index-
|
|
1
|
+
export { P as PamConsentModal } from './pam-consent-modal-058df025.js';
|
|
2
|
+
import './index-25acbfb0.js';
|
|
3
|
+
import '@everymatrix/pam-consent-item';
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-25acbfb0.js';
|
|
2
|
+
export { s as setNonce } from './index-25acbfb0.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["pam-consent-
|
|
8
|
+
return bootstrapLazy([["pam-consent-modal",[[1,"pam-consent-modal",{"endpoint":[513],"session":[513],"userId":[513,"user-id"],"language":[1537],"includeSubmitButton":[516,"include-submit-button"],"includeRejectButton":[516,"include-reject-button"],"includeRejectText":[516,"include-reject-text"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"isLoading":[32],"isValid":[32],"isQueryFired":[32],"receivedQueryResponses":[32],"mandatoryConsentsChecked":[32],"mandatoryConsentsCount":[32],"userConsentTagCodes":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"receivedQueryResponses":["handleQueryResponse"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-25acbfb0.js';
|
|
2
|
+
import '@everymatrix/pam-consent-item';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @name setClientStyling
|
|
@@ -393,4 +394,4 @@ const PamConsentModal = class {
|
|
|
393
394
|
};
|
|
394
395
|
PamConsentModal.style = PamConsentModalStyle0;
|
|
395
396
|
|
|
396
|
-
export { PamConsentModal as P
|
|
397
|
+
export { PamConsentModal as P };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-25acbfb0.js';
|
|
2
|
+
export { s as setNonce } from './index-25acbfb0.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["pam-consent-
|
|
19
|
+
return bootstrapLazy([["pam-consent-modal",[[1,"pam-consent-modal",{"endpoint":[513],"session":[513],"userId":[513,"user-id"],"language":[1537],"includeSubmitButton":[516,"include-submit-button"],"includeRejectButton":[516,"include-reject-button"],"includeRejectText":[516,"include-reject-text"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"isLoading":[32],"isValid":[32],"isQueryFired":[32],"receivedQueryResponses":[32],"mandatoryConsentsChecked":[32],"mandatoryConsentsCount":[32],"userConsentTagCodes":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"receivedQueryResponses":["handleQueryResponse"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PamConsentModal}from"./p-
|
|
1
|
+
export{P as PamConsentModal}from"./p-6b1b751c.js";import"./p-7d048276.js";import"@everymatrix/pam-consent-item";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t}from"./p-7d048276.js";import"@everymatrix/pam-consent-item";function n(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function i(e,t){const n=new URL(t);fetch(n.href).then((e=>e.text())).then((t=>{const n=document.createElement("style");n.innerHTML=t,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function s(e,t){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{n.innerHTML=t,e&&e.appendChild(n)}))}}const o={en:{userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Submit",rejectButtonText:"Reject",rejectText:"Rejecting new consents will result in the inability to continue the login process and you will be logged out."},"en-us":{userNoticeText:"Before you can proceed you must consent to the following",submitButtonText:"Submit",rejectButtonText:"Reject",rejectText:"Rejecting new consents will result in the inability to continue the login process and you will be logged out."},ro:{userNoticeText:"Înainte de a continua, trebuie să vă dați consimțământul pentru următoarele",submitButtonText:"Trimite",rejectButtonText:"Respinge",rejectText:"Respingerea noilor consimțăminte va duce la imposibilitatea de a continua procesul de autentificare și veți fi deconectat."},hr:{userNoticeText:"Prije nego što možete nastaviti, morate pristati na sljedeće",submitButtonText:"Pošalji",rejectButtonText:"Odbij",rejectText:"Odbijanje novih pristanka rezultirat će nemogućnošću nastavka procesa prijave i bit ćete odjavljeni."},fr:{userNoticeText:"Avant de continuer, vous devez consentir aux éléments suivants",submitButtonText:"Soumettre",rejectButtonText:"Rejeter",rejectText:"Le rejet des nouveaux consentements entraînera l'impossibilité de continuer le processus de connexion et vous serez déconnecté."},cs:{userNoticeText:"Než budete moci pokračovat, musíte souhlasit s následujícím",submitButtonText:"Odeslat",rejectButtonText:"Odmítnout",rejectText:"Odmítnutí nových souhlasů povede k nemožnosti pokračovat v procesu přihlášení a budete odhlášeni."},de:{userNoticeText:"Bevor Sie fortfahren können, müssen Sie den folgenden Punkten zustimmen",submitButtonText:"Absenden",rejectButtonText:"Ablehnen",rejectText:"Das Ablehnen neuer Zustimmungen führt dazu, dass der Anmeldevorgang nicht fortgesetzt werden kann und Sie abgemeldet werden."},es:{userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión."},pt:{userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado."},"es-mx":{userNoticeText:"Antes de continuar, debe dar su consentimiento a lo siguiente",submitButtonText:"Enviar",rejectButtonText:"Rechazar",rejectText:"Rechazar nuevos consentimientos resultará en la imposibilidad de continuar el proceso de inicio de sesión y se cerrará la sesión."},"pt-br":{userNoticeText:"Antes de continuar, você deve consentir com o seguinte",submitButtonText:"Enviar",rejectButtonText:"Rejeitar",rejectText:"Rejeitar novos consentimentos resultará na impossibilidade de continuar o processo de login e você será desconectado."}},r=(e,t,n)=>{let i=o[void 0!==t&&t in o?t:"en"][e];if(void 0!==n)for(const[e,t]of Object.entries(n.values)){const n=new RegExp(`{${e}}`,"g");i=i.replace(n,t)}return i},a=class{constructor(t){e(this,t),this.userConsents=[],this.mandatoryConsentTagCodes=["termsandconditions","privacypolicy"],this.allowedCategoryGroups=["Sports","Casino","VirtualSports"],this.consentConfig=[],this.handleApplyClick=()=>{this.isQueryFired=!0},this.handleReject=()=>{const e=new URL("v1/player/session/player/",this.endpoint),t=new Headers;t.append("Content-type","application/json"),t.append("X-SessionID",this.session),fetch(e.href,{method:"DELETE",headers:t}).then((()=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),((e,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:"logged_out",data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)})(0,{})}))},this.endpoint=void 0,this.session=void 0,this.userId=void 0,this.language="en",this.includeSubmitButton=void 0,this.includeRejectButton=void 0,this.includeRejectText=void 0,this.translationUrl="",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.isLoading=!0,this.isValid=!0,this.isQueryFired=!1,this.receivedQueryResponses=0,this.mandatoryConsentsChecked=0,this.mandatoryConsentsCount=0,this.userConsentTagCodes=[]}handleClientStylingChange(e,t){e!=t&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&i(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(e,t){e!=t&&s(this.stylingContainer,`${this.mbSource}.Style`)}handleQueryResponse(){this.receivedQueryResponses===this.consentConfig.length&&this.updateConsents()}userLegislationConsentHandler(e){for(const t of e.detail)this.mandatoryConsentTagCodes.includes(t.type)&&!1===this.isQueryFired&&(!0===t.value?this.mandatoryConsentsChecked++:this.mandatoryConsentsChecked--),this.isQueryFired&&(this.userConsents.push({tagCode:t.type,status:Number(t.value),note:""}),this.receivedQueryResponses++)}async componentWillLoad(){var e;this.getConsents().then((e=>this.setConsentConfig(e))),this.translationUrl.length>2&&await(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{o[t]||(o[t]={});for(let n in e[t])o[t][n]=e[t][n]})),t(!0)}))})))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&s(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&i(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}getConsents(){const e=new URL(`/v1/player/${this.userId}/legislation/consents/`,this.endpoint),t=new Headers({"X-SessionId":this.session});return fetch(e.href,{method:"GET",headers:t}).then((e=>{if(200===e.status)return e.json();throw new Error(String(e.status))})).then((e=>e.consents)).catch((e=>(console.error("Error fetching data:",e),null))).finally((()=>{window.postMessage({type:"UserActionsExists",displayUserActions:this.mandatoryConsentsCount>0},window.location.href),this.isLoading=!1}))}setConsentConfig(e){for(const t of e){if(2!==t.status||"pepconsent"===t.tagCode)return;const e=this.mandatoryConsentTagCodes.includes(t.tagCode);if(e&&++this.mandatoryConsentsCount,this.allowedCategoryGroups.includes(t.category)){const n=this.consentConfig.find((e=>e.group===t.category.toLowerCase()));n?(n.consentTypes+=","+t.tagCode,n.mandatory+=","+String(e)):this.consentConfig.push({consentTypes:t.tagCode,group:t.category.toLowerCase(),mandatory:String(e)})}else this.consentConfig.push({consentTypes:t.tagCode,group:"",mandatory:String(e)})}}updateConsents(){const e=new URL(`/v1/player/${this.userId}/legislation/consents/`,this.endpoint),t=new Headers;t.append("Content-Type","application/json"),t.append("Accept","application/json"),t.append("X-SessionId",this.session);const n=JSON.stringify({consents:this.userConsents});fetch(e.href,{method:"POST",headers:t,body:n}).then((e=>e.json())).then((()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:"Consent update successful!"}},window.location.href)})).catch((e=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Server might not be responding",err:e}},window.location.href)})).finally((()=>{window.postMessage({type:"UserActionsCompleted"},window.location.href)}))}render(){if(0!==this.mandatoryConsentsCount)return this.isValid=this.mandatoryConsentsChecked===this.mandatoryConsentsCount,t("div",{class:"QueryReferenceContainer",ref:e=>this.stylingContainer=e},this.isLoading?t("div",null,t("slot",{name:"spinner"}),t("svg",{class:"spinner",viewBox:"0 0 50 50"},t("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"}))):t("div",{class:"PamConsentModal"},t("h2",{class:"ConsentNotice"},r("userNoticeText",this.language)),t("div",{class:"ConsentsWrapper"},this.consentConfig.map((e=>t("slot",{name:e.group||e.consentTypes},t("pam-consent-item",{language:this.language,"translation-url":this.translationUrl,group:e.group,consentTypes:e.consentTypes,queried:this.isQueryFired,mandatory:e.mandatory,"client-styling-url":this.clientStylingUrl,"mb-source":this.mbSource,"client-styling":this.clientStyling}))))),t("div",{class:"ButtonsWrapper"},this.includeRejectButton&&t("button",{class:"ConsentRejectButton",onClick:this.handleReject},r("rejectButtonText",this.language)),this.includeSubmitButton&&t("button",{class:"ConsentSubmitButton",disabled:!this.isValid,onClick:this.handleApplyClick},r("submitButtonText",this.language))),this.includeRejectText&&t("p",{class:"RejectText"},r("rejectText",this.language))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],receivedQueryResponses:["handleQueryResponse"]}}};a.style=":host{display:block}.QueryReferenceContainer{height:100%;width:100%}.ConsentNotice{font-size:1.2rem;font-weight:200;text-align:center}.CloseButton{width:25px;height:25px;align-self:flex-end}.PamConsentModal{font-family:inherit;font-weight:100;height:100%;padding:1rem 1.5rem 2rem;background-color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;justify-content:space-between;border-radius:var(--emw--border-radius-large, 20px);max-width:fit-content}.ConsentSubmitButton,.ConsentRejectButton{font-size:1rem;font-family:var(--emw--button-typography);padding:0.4rem 1.4rem;background:var(--emw--button-background-color, #FFFFFF);border:var(--emw--button-border, 2px solid #000000);color:var(--emw--button-text-color, #000000);border-radius:var(--emw--button-border-radius, 10px);align-self:flex-end;cursor:pointer}.ConsentSubmitButton:disabled,.ConsentRejectButton:disabled{border:2px solid #ccc;color:#ccc;cursor:unset}.ButtonsWrapper{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}.ButtonsWrapper button:only-child{margin-left:auto}@media screen and (max-width: 320px){.QueryReferenceContainer{font-size:0.8rem;color:var(--emw--button-text-color, #000000)}}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner .path{stroke:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}";export{a as P}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],w=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&f.o?b($):f.raf($))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{v(m),v(w),(d=m.length>0)&&f.raf($)},b=t=>h().then(t),g=y(w,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>P,unwrapErr:()=>L});var k=t=>({isOk:!0,isErr:!1,value:t}),E=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return E(t.value);throw"should never get here"}var M,x,P=t=>{if(t.isOk)return t.value;throw t.value},L=t=>{if(t.isErr)return t.value;throw t.value},R=(t,e,...n)=>{let o=null,l=!1,s=!1;const r=[],i=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&s?r[r.length-1].i+=o:r.push(l?T(null,o):o),s=l)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const c=T(t,null);return c.u=e,r.length>0&&(c.h=r),c},T=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),A={},N=new WeakMap,U=t=>"sc-"+t.v,W=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=F(n),s=F(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&r||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(H);e=e.replace(q,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},D=/\s/,F=t=>t?t.split(D):[],H="Capture",q=RegExp(H+"$"),G=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||S,s=e.u||S;for(const t of V(Object.keys(l)))t in s||W(o,t,l[t],void 0,n,e.o);for(const t of V(Object.keys(s)))W(o,t,l[t],s[t],n,e.o)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _=!1,z=!1,B=(t,e,n)=>{const o=e.h[n];let l,s,r=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else{if(z||(z="svg"===o.p),l=o.m=a.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.p),z&&"foreignObject"===o.p&&(z=!1),G(null,o,z),null!=M&&l["s-si"]!==M&&l.classList.add(l["s-si"]=M),o.h)for(r=0;r<o.h.length;++r)s=B(t,o,r),s&&l.appendChild(s);"svg"===o.p?z=!1:"foreignObject"===l.tagName&&(z=!0)}return l["s-hn"]=x,l},I=(t,e,n,o,l,s)=>{let r,i=t;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=B(null,n,l),r&&(o[l].m=r,Y(i,r,e)))},J=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;X(e),t&&t.remove()}}},K=(t,e)=>t.p===e.p,Q=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,s=e.h,r=e.p,i=e.i;null===i?(z="svg"===r||"foreignObject"!==r&&z,("slot"!==r||_)&&G(t,e,z),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r=0,i=0,c=e.length-1,u=e[0],a=e[c],f=o.length-1,h=o[0],p=o[f];for(;r<=c&&i<=f;)null==u?u=e[++r]:null==a?a=e[--c]:null==h?h=o[++i]:null==p?p=o[--f]:K(u,h)?(Q(u,h,l),u=e[++r],h=o[++i]):K(a,p)?(Q(a,p,l),a=e[--c],p=o[--f]):K(u,p)?(Q(u,p,l),Y(t,u.m,a.m.nextSibling),u=e[++r],p=o[--f]):K(a,h)?(Q(a,h,l),Y(t,a.m,u.m),a=e[--c],h=o[++i]):(s=B(e&&e[i],n,i),h=o[++i],s&&Y(u.m.parentNode,s,u.m));r>c?I(t,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&J(e,r,c)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),I(o,null,e,s,0,s.length-1)):null!==l&&J(l,0,l.length-1),z&&"svg"===r&&(z=!1)):t.i!==i&&(o.data=i)},X=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(X)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{e&&!t.$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$=e)))},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.S),g((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.j&&(t.j.map((([t,e])=>ct(n,t,e))),t.j=void 0),o=ct(n,"componentWillLoad")),nt(o,(()=>lt(t,n,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=i.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,r=N.get(t=t.head||t);if(r||N.set(t,r=new Set),!r.has(o)){{s=a.createElement("style"),s.innerHTML=l;const e=null!=(n=f.k)?n:O(a);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);st(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>rt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,s=t.C||T(null,null),r=(t=>t&&t.p===A)(e)?e:R(null,null,e);if(x=o.tagName,l.M&&(r.u=r.u||{},l.M.map((([t,e])=>r.u[e]=o[t]))),n&&r.u)for(const t of Object.keys(r.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.u[t]=o[t]);r.p=null,r.o|=4,t.C=r,r.m=s.m=o.shadowRoot||o,M=o["s-sc"],_=!!(1&l.o),Q(s,r,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},rt=t=>{const e=t.$hostElement$,n=t.t,o=t.S;64&t.o||(t.o|=64,ut(e),ct(n,"componentDidLoad"),t.P(e),o||it()),t.$&&(t.$(),t.$=void 0),512&t.o&&b((()=>tt(t,!1))),t.o&=-517},it=()=>{ut(a.documentElement),b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"pam-consent-modal"}});return t.dispatchEvent(e),e})(u)))},ct=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},ut=t=>t.classList.add("hydrated"),at=(t,e,o)=>{var l,r;const i=t.prototype;if(e.L||e.R||t.watchers){t.watchers&&!e.R&&(e.R=t.watchers);const c=Object.entries(null!=(l=e.L)?l:{});if(c.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).T.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.T.get(e),u=r.o,a=r.t;if(o=((t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t)(o,l.L[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.T.set(e,o),a)){if(l.R&&128&u){const t=l.R[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&u)&&tt(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.R)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.R)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.M)||l.push([t,s])),s}))]))}}return t},ft=t=>{ct(t,"disconnectedCallback")},ht=(t,o={})=>{var l;const h=[],d=o.exclude||[],m=u.customElements,w=a.head,y=w.querySelector("meta[charset]"),v=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],v:o[1],L:o[2],A:o[3]};4&c.o&&(S=!0),c.L=o[2],c.A=o[3],c.M=[],c.R=null!=(l=o[4])?l:{};const u=c.v,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,O:n,T:new Map};o.N=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,pt(this,t,c.A)),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.O,l=()=>{};if(1&e.o)pt(t,e,o.A),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.S=n);break}}o.L&&Object.entries(o.L).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.U){const t=(t=>{const e=t.v.replace(/-/g,"_"),n=t.U;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.v}#${e.W}" was not found`);o.isProxied||(n.R=o.watchers,at(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=U(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.S,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const t=n(this);t.D&&(t.D.map((t=>t())),t.D=void 0),(null==t?void 0:t.t)?ft(t.t):(null==t?void 0:t.N)&&t.N.then((()=>ft(t.t)))}})()))}componentOnReady(){return n(this).N}};c.U=t[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,at(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const t=null!=(l=f.k)?l:O(a);null!=t&&v.setAttribute("nonce",t),w.insertBefore(v,y?y.nextSibling:w.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(it,30)))},pt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=t,r=dt(e,l),i=mt(n);f.ael(s,o,r,i),(e.D=e.D||[]).push((()=>f.rel(s,o,r,i)))}))},dt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.j=t.j||[]).push([e,n])}catch(t){s(t)}},mt=t=>({passive:!!(1&t),capture:!!(2&t)}),wt=t=>f.k=t;export{ht as b,R as h,h as p,o as r,wt as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as pam_consent_modal}from"./p-6b1b751c.js";import"./p-7d048276.js";import"@everymatrix/pam-consent-item";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./p-
|
|
1
|
+
import{p as e,b as n}from"./p-7d048276.js";export{s as setNonce}from"./p-7d048276.js";import{g as t}from"./p-e1255160.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((async e=>(await t(),n([["p-b83f8b04",[[1,"pam-consent-modal",{endpoint:[513],session:[513],userId:[513,"user-id"],language:[1537],includeSubmitButton:[516,"include-submit-button"],includeRejectButton:[516,"include-reject-button"],includeRejectText:[516,"include-reject-text"],translationUrl:[513,"translation-url"],clientStyling:[1537,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[513,"mb-source"],isLoading:[32],isValid:[32],isQueryFired:[32],receivedQueryResponses:[32],mandatoryConsentsChecked:[32],mandatoryConsentsCount:[32],userConsentTagCodes:[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],receivedQueryResponses:["handleQueryResponse"]}]]]],e))));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConsentItem } from '../../utils/types';
|
|
2
|
-
import
|
|
2
|
+
import '@everymatrix/pam-consent-item';
|
|
3
3
|
export declare class PamConsentModal {
|
|
4
4
|
/** the endpoint required for the update call */
|
|
5
5
|
endpoint: string;
|