@everymatrix/temporary-consents 1.54.11 → 1.55.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.
- package/dist/cjs/{index-a64745fe.js → index-417efc18.js} +66 -167
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/temporary-consents.cjs.entry.js +10 -14
- package/dist/cjs/temporary-consents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/temporary-consents/temporary-consents.js +9 -29
- package/dist/esm/{index-54cb9543.js → index-2541c410.js} +66 -167
- package/dist/esm/loader.js +2 -2
- package/dist/esm/temporary-consents.entry.js +10 -14
- package/dist/esm/temporary-consents.js +3 -3
- package/dist/temporary-consents/p-cc111f92.entry.js +1 -0
- package/dist/temporary-consents/p-d44ae3da.js +2 -0
- package/dist/temporary-consents/temporary-consents.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/temporary-consents/p-2b771aa1.js +0 -2
- package/dist/temporary-consents/p-f7c91a3a.entry.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'temporary-consents';
|
|
24
|
-
const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, 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,
|
|
24
|
+
const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, 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: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -161,6 +150,12 @@ var flush = () => {
|
|
|
161
150
|
};
|
|
162
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
163
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
|
|
157
|
+
// src/utils/helpers.ts
|
|
158
|
+
var isDef = (v) => v != null;
|
|
164
159
|
var isComplexType = (o) => {
|
|
165
160
|
o = typeof o;
|
|
166
161
|
return o === "object" || o === "function";
|
|
@@ -332,7 +327,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
332
327
|
}
|
|
333
328
|
if (!appliedStyles.has(scopeId2)) {
|
|
334
329
|
{
|
|
335
|
-
styleElm =
|
|
330
|
+
styleElm = doc.createElement("style");
|
|
336
331
|
styleElm.innerHTML = style;
|
|
337
332
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
338
333
|
if (nonce != null) {
|
|
@@ -342,10 +337,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
342
337
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
343
338
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
344
339
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
345
|
-
styleContainerNode.insertBefore(
|
|
346
|
-
styleElm,
|
|
347
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
348
|
-
);
|
|
340
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
349
341
|
} else if ("host" in styleContainerNode) {
|
|
350
342
|
if (supportsConstructableStylesheets) {
|
|
351
343
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -363,7 +355,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
363
355
|
styleContainerNode.append(styleElm);
|
|
364
356
|
}
|
|
365
357
|
}
|
|
366
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
358
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
367
359
|
styleContainerNode.insertBefore(styleElm, null);
|
|
368
360
|
}
|
|
369
361
|
}
|
|
@@ -388,25 +380,23 @@ var attachStyles = (hostRef) => {
|
|
|
388
380
|
const scopeId2 = addStyle(
|
|
389
381
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
390
382
|
cmpMeta);
|
|
391
|
-
if (
|
|
383
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
392
384
|
elm["s-sc"] = scopeId2;
|
|
393
385
|
elm.classList.add(scopeId2 + "-h");
|
|
394
386
|
}
|
|
395
387
|
endAttachStyles();
|
|
396
388
|
};
|
|
397
389
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
398
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
390
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
399
391
|
if (oldValue !== newValue) {
|
|
400
392
|
let isProp = isMemberInElement(elm, memberName);
|
|
401
393
|
let ln = memberName.toLowerCase();
|
|
402
394
|
if (memberName === "class") {
|
|
403
395
|
const classList = elm.classList;
|
|
404
396
|
const oldClasses = parseClassList(oldValue);
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
409
|
-
}
|
|
397
|
+
const newClasses = parseClassList(newValue);
|
|
398
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
399
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
410
400
|
} else if (memberName === "ref") {
|
|
411
401
|
if (newValue) {
|
|
412
402
|
newValue(elm);
|
|
@@ -444,7 +434,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
444
434
|
elm.setAttribute(memberName, n);
|
|
445
435
|
}
|
|
446
436
|
}
|
|
447
|
-
} else
|
|
437
|
+
} else {
|
|
448
438
|
elm[memberName] = newValue;
|
|
449
439
|
}
|
|
450
440
|
} catch (e) {
|
|
@@ -466,44 +456,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
466
456
|
}
|
|
467
457
|
};
|
|
468
458
|
var parseClassListRegex = /\s/;
|
|
469
|
-
var parseClassList = (value) =>
|
|
470
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
471
|
-
value = value.baseVal;
|
|
472
|
-
}
|
|
473
|
-
if (!value || typeof value !== "string") {
|
|
474
|
-
return [];
|
|
475
|
-
}
|
|
476
|
-
return value.split(parseClassListRegex);
|
|
477
|
-
};
|
|
459
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
478
460
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
479
461
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
480
462
|
|
|
481
463
|
// src/runtime/vdom/update-element.ts
|
|
482
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
464
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
483
465
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
484
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
485
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
466
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
467
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
486
468
|
{
|
|
487
469
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
488
470
|
if (!(memberName in newVnodeAttrs)) {
|
|
489
|
-
setAccessor(
|
|
490
|
-
elm,
|
|
491
|
-
memberName,
|
|
492
|
-
oldVnodeAttrs[memberName],
|
|
493
|
-
void 0,
|
|
494
|
-
isSvgMode2,
|
|
495
|
-
newVnode.$flags$);
|
|
471
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
496
472
|
}
|
|
497
473
|
}
|
|
498
474
|
}
|
|
499
475
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
500
|
-
setAccessor(
|
|
501
|
-
elm,
|
|
502
|
-
memberName,
|
|
503
|
-
oldVnodeAttrs[memberName],
|
|
504
|
-
newVnodeAttrs[memberName],
|
|
505
|
-
isSvgMode2,
|
|
506
|
-
newVnode.$flags$);
|
|
476
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
507
477
|
}
|
|
508
478
|
};
|
|
509
479
|
function sortedAttrNames(attrNames) {
|
|
@@ -515,10 +485,13 @@ function sortedAttrNames(attrNames) {
|
|
|
515
485
|
attrNames
|
|
516
486
|
);
|
|
517
487
|
}
|
|
488
|
+
|
|
489
|
+
// src/runtime/vdom/vdom-render.ts
|
|
490
|
+
var scopeId;
|
|
518
491
|
var hostTagName;
|
|
519
492
|
var useNativeShadowDom = false;
|
|
520
493
|
var isSvgMode = false;
|
|
521
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
494
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
522
495
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
523
496
|
let i2 = 0;
|
|
524
497
|
let elm;
|
|
@@ -532,6 +505,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
532
505
|
{
|
|
533
506
|
updateElement(null, newVNode2, isSvgMode);
|
|
534
507
|
}
|
|
508
|
+
const rootNode = elm.getRootNode();
|
|
509
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
510
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
511
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
512
|
+
}
|
|
535
513
|
if (newVNode2.$children$) {
|
|
536
514
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
537
515
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -636,9 +614,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
636
614
|
};
|
|
637
615
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
638
616
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
639
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
640
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
641
|
-
}
|
|
642
617
|
return true;
|
|
643
618
|
}
|
|
644
619
|
return false;
|
|
@@ -678,9 +653,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
678
653
|
}
|
|
679
654
|
};
|
|
680
655
|
var insertBefore = (parent, newNode, reference) => {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
}
|
|
656
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
657
|
+
return inserted;
|
|
684
658
|
};
|
|
685
659
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
686
660
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -705,21 +679,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
705
679
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
706
680
|
hostRef.$vnode$ = rootVnode;
|
|
707
681
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
708
|
-
|
|
682
|
+
{
|
|
683
|
+
scopeId = hostElm["s-sc"];
|
|
684
|
+
}
|
|
685
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
709
686
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
710
687
|
};
|
|
711
688
|
|
|
712
689
|
// src/runtime/update-component.ts
|
|
713
690
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
714
691
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
715
|
-
|
|
716
|
-
new Promise(
|
|
717
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
718
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
719
|
-
r();
|
|
720
|
-
}
|
|
721
|
-
)
|
|
722
|
-
);
|
|
692
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
723
693
|
}
|
|
724
694
|
};
|
|
725
695
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -746,7 +716,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
746
716
|
let maybePromise;
|
|
747
717
|
if (isInitialLoad) {
|
|
748
718
|
{
|
|
749
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
719
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
750
720
|
}
|
|
751
721
|
}
|
|
752
722
|
endSchedule();
|
|
@@ -815,7 +785,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
815
785
|
const instance = hostRef.$lazyInstance$ ;
|
|
816
786
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
817
787
|
{
|
|
818
|
-
safeCall(instance, "componentDidRender"
|
|
788
|
+
safeCall(instance, "componentDidRender");
|
|
819
789
|
}
|
|
820
790
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
821
791
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -844,14 +814,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
844
814
|
}
|
|
845
815
|
};
|
|
846
816
|
var appDidLoad = (who) => {
|
|
817
|
+
{
|
|
818
|
+
addHydratedFlag(doc.documentElement);
|
|
819
|
+
}
|
|
847
820
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
848
821
|
};
|
|
849
|
-
var safeCall = (instance, method, arg
|
|
822
|
+
var safeCall = (instance, method, arg) => {
|
|
850
823
|
if (instance && instance[method]) {
|
|
851
824
|
try {
|
|
852
825
|
return instance[method](arg);
|
|
853
826
|
} catch (e) {
|
|
854
|
-
consoleError(e
|
|
827
|
+
consoleError(e);
|
|
855
828
|
}
|
|
856
829
|
}
|
|
857
830
|
return void 0;
|
|
@@ -894,68 +867,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
894
867
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
895
868
|
members.map(([memberName, [memberFlags]]) => {
|
|
896
869
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
897
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
898
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
899
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
900
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
901
|
-
Object.defineProperty(prototype, memberName, {
|
|
902
|
-
get() {
|
|
903
|
-
{
|
|
904
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
905
|
-
return getValue(this, memberName);
|
|
906
|
-
}
|
|
907
|
-
const ref = getHostRef(this);
|
|
908
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
909
|
-
if (!instance) return;
|
|
910
|
-
return instance[memberName];
|
|
911
|
-
}
|
|
912
|
-
},
|
|
913
|
-
configurable: true,
|
|
914
|
-
enumerable: true
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
870
|
Object.defineProperty(prototype, memberName, {
|
|
871
|
+
get() {
|
|
872
|
+
return getValue(this, memberName);
|
|
873
|
+
},
|
|
918
874
|
set(newValue) {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
924
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
925
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
926
|
-
}
|
|
927
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
928
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
929
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
930
|
-
return;
|
|
931
|
-
}
|
|
932
|
-
{
|
|
933
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
934
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
935
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
936
|
-
ref.$onReadyPromise$.then(() => {
|
|
937
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
938
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
939
|
-
}
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
const setterSetVal = () => {
|
|
945
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
946
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
947
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
948
|
-
}
|
|
949
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
950
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
951
|
-
};
|
|
952
|
-
if (ref.$lazyInstance$) {
|
|
953
|
-
setterSetVal();
|
|
954
|
-
} else {
|
|
955
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
875
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
876
|
+
},
|
|
877
|
+
configurable: true,
|
|
878
|
+
enumerable: true
|
|
959
879
|
});
|
|
960
880
|
}
|
|
961
881
|
});
|
|
@@ -965,7 +885,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
965
885
|
plt.jmp(() => {
|
|
966
886
|
var _a2;
|
|
967
887
|
const propName = attrNameToPropName.get(attrName);
|
|
968
|
-
if (this.hasOwnProperty(propName)
|
|
888
|
+
if (this.hasOwnProperty(propName)) {
|
|
969
889
|
newValue = this[propName];
|
|
970
890
|
delete this[propName];
|
|
971
891
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -985,11 +905,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
985
905
|
}
|
|
986
906
|
return;
|
|
987
907
|
}
|
|
988
|
-
|
|
989
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
990
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
991
|
-
this[propName] = newValue;
|
|
992
|
-
}
|
|
908
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
993
909
|
});
|
|
994
910
|
};
|
|
995
911
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1018,7 +934,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1018
934
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1019
935
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1020
936
|
if (bundleId) {
|
|
1021
|
-
const CstrImport = loadModule(cmpMeta
|
|
937
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1022
938
|
if (CstrImport && "then" in CstrImport) {
|
|
1023
939
|
const endLoad = uniqueTime();
|
|
1024
940
|
Cstr = await CstrImport;
|
|
@@ -1040,7 +956,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1040
956
|
try {
|
|
1041
957
|
new Cstr(hostRef);
|
|
1042
958
|
} catch (e) {
|
|
1043
|
-
consoleError(e
|
|
959
|
+
consoleError(e);
|
|
1044
960
|
}
|
|
1045
961
|
{
|
|
1046
962
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1072,7 +988,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1072
988
|
schedule();
|
|
1073
989
|
}
|
|
1074
990
|
};
|
|
1075
|
-
var fireConnectedCallback = (instance
|
|
991
|
+
var fireConnectedCallback = (instance) => {
|
|
1076
992
|
};
|
|
1077
993
|
|
|
1078
994
|
// src/runtime/connected-callback.ts
|
|
@@ -1112,7 +1028,7 @@ var connectedCallback = (elm) => {
|
|
|
1112
1028
|
endConnected();
|
|
1113
1029
|
}
|
|
1114
1030
|
};
|
|
1115
|
-
var disconnectInstance = (instance
|
|
1031
|
+
var disconnectInstance = (instance) => {
|
|
1116
1032
|
};
|
|
1117
1033
|
var disconnectedCallback = async (elm) => {
|
|
1118
1034
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1121,12 +1037,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1121
1037
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1122
1038
|
}
|
|
1123
1039
|
}
|
|
1124
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1125
|
-
rootAppliedStyles.delete(elm);
|
|
1126
|
-
}
|
|
1127
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1128
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1129
|
-
}
|
|
1130
1040
|
};
|
|
1131
1041
|
|
|
1132
1042
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1203,17 +1113,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1203
1113
|
}
|
|
1204
1114
|
disconnectedCallback() {
|
|
1205
1115
|
plt.jmp(() => disconnectedCallback(this));
|
|
1206
|
-
plt.raf(() => {
|
|
1207
|
-
var _a3;
|
|
1208
|
-
const hostRef = getHostRef(this);
|
|
1209
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1210
|
-
if (i2 > -1) {
|
|
1211
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1212
|
-
}
|
|
1213
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1214
|
-
delete hostRef.$vnode$.$elm$;
|
|
1215
|
-
}
|
|
1216
|
-
});
|
|
1217
1116
|
}
|
|
1218
1117
|
componentOnReady() {
|
|
1219
1118
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-417efc18.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -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-417efc18.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
let TRANSLATIONS = {
|
|
@@ -112,19 +112,6 @@ const TemporaryConsentsStyle0 = temporaryConsentsCss;
|
|
|
112
112
|
const TemporaryConsents = class {
|
|
113
113
|
constructor(hostRef) {
|
|
114
114
|
index.registerInstance(this, hostRef);
|
|
115
|
-
/**
|
|
116
|
-
* Client custom styling via inline styles
|
|
117
|
-
*/
|
|
118
|
-
this.clientStyling = '';
|
|
119
|
-
/**
|
|
120
|
-
* Client custom styling via url
|
|
121
|
-
*/
|
|
122
|
-
this.clientStylingUrl = '';
|
|
123
|
-
/**
|
|
124
|
-
* Translation via url
|
|
125
|
-
*/
|
|
126
|
-
this.translationUrl = '';
|
|
127
|
-
this.stylingAppends = false;
|
|
128
115
|
this.isLoading = false;
|
|
129
116
|
this.setClientStyling = () => {
|
|
130
117
|
let sheet = document.createElement('style');
|
|
@@ -144,6 +131,15 @@ const TemporaryConsents = class {
|
|
|
144
131
|
console.log('error ', err);
|
|
145
132
|
});
|
|
146
133
|
};
|
|
134
|
+
this.endpoint = undefined;
|
|
135
|
+
this.userId = undefined;
|
|
136
|
+
this.sessionId = undefined;
|
|
137
|
+
this.daysUntilLockout = undefined;
|
|
138
|
+
this.lang = undefined;
|
|
139
|
+
this.clientStyling = '';
|
|
140
|
+
this.clientStylingUrl = '';
|
|
141
|
+
this.translationUrl = '';
|
|
142
|
+
this.stylingAppends = false;
|
|
147
143
|
}
|
|
148
144
|
componentWillLoad() {
|
|
149
145
|
const promises = [];
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-417efc18.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('temporary-consents.cjs.js', document.baseURI).href));
|
|
@@ -2,19 +2,6 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
3
3
|
export class TemporaryConsents {
|
|
4
4
|
constructor() {
|
|
5
|
-
/**
|
|
6
|
-
* Client custom styling via inline styles
|
|
7
|
-
*/
|
|
8
|
-
this.clientStyling = '';
|
|
9
|
-
/**
|
|
10
|
-
* Client custom styling via url
|
|
11
|
-
*/
|
|
12
|
-
this.clientStylingUrl = '';
|
|
13
|
-
/**
|
|
14
|
-
* Translation via url
|
|
15
|
-
*/
|
|
16
|
-
this.translationUrl = '';
|
|
17
|
-
this.stylingAppends = false;
|
|
18
5
|
this.isLoading = false;
|
|
19
6
|
this.setClientStyling = () => {
|
|
20
7
|
let sheet = document.createElement('style');
|
|
@@ -34,6 +21,15 @@ export class TemporaryConsents {
|
|
|
34
21
|
console.log('error ', err);
|
|
35
22
|
});
|
|
36
23
|
};
|
|
24
|
+
this.endpoint = undefined;
|
|
25
|
+
this.userId = undefined;
|
|
26
|
+
this.sessionId = undefined;
|
|
27
|
+
this.daysUntilLockout = undefined;
|
|
28
|
+
this.lang = undefined;
|
|
29
|
+
this.clientStyling = '';
|
|
30
|
+
this.clientStylingUrl = '';
|
|
31
|
+
this.translationUrl = '';
|
|
32
|
+
this.stylingAppends = false;
|
|
37
33
|
}
|
|
38
34
|
componentWillLoad() {
|
|
39
35
|
const promises = [];
|
|
@@ -158,8 +154,6 @@ export class TemporaryConsents {
|
|
|
158
154
|
"tags": [],
|
|
159
155
|
"text": "The NWA endpoint"
|
|
160
156
|
},
|
|
161
|
-
"getter": false,
|
|
162
|
-
"setter": false,
|
|
163
157
|
"attribute": "endpoint",
|
|
164
158
|
"reflect": true
|
|
165
159
|
},
|
|
@@ -177,8 +171,6 @@ export class TemporaryConsents {
|
|
|
177
171
|
"tags": [],
|
|
178
172
|
"text": "The NWA user id"
|
|
179
173
|
},
|
|
180
|
-
"getter": false,
|
|
181
|
-
"setter": false,
|
|
182
174
|
"attribute": "user-id",
|
|
183
175
|
"reflect": true
|
|
184
176
|
},
|
|
@@ -196,8 +188,6 @@ export class TemporaryConsents {
|
|
|
196
188
|
"tags": [],
|
|
197
189
|
"text": "The NWA session for the logged in user"
|
|
198
190
|
},
|
|
199
|
-
"getter": false,
|
|
200
|
-
"setter": false,
|
|
201
191
|
"attribute": "session-id",
|
|
202
192
|
"reflect": true
|
|
203
193
|
},
|
|
@@ -215,8 +205,6 @@ export class TemporaryConsents {
|
|
|
215
205
|
"tags": [],
|
|
216
206
|
"text": "The language of the integrator"
|
|
217
207
|
},
|
|
218
|
-
"getter": false,
|
|
219
|
-
"setter": false,
|
|
220
208
|
"attribute": "days-until-lockout",
|
|
221
209
|
"reflect": true
|
|
222
210
|
},
|
|
@@ -234,8 +222,6 @@ export class TemporaryConsents {
|
|
|
234
222
|
"tags": [],
|
|
235
223
|
"text": "The language of the integrator"
|
|
236
224
|
},
|
|
237
|
-
"getter": false,
|
|
238
|
-
"setter": false,
|
|
239
225
|
"attribute": "lang",
|
|
240
226
|
"reflect": true
|
|
241
227
|
},
|
|
@@ -253,8 +239,6 @@ export class TemporaryConsents {
|
|
|
253
239
|
"tags": [],
|
|
254
240
|
"text": "Client custom styling via inline styles"
|
|
255
241
|
},
|
|
256
|
-
"getter": false,
|
|
257
|
-
"setter": false,
|
|
258
242
|
"attribute": "client-styling",
|
|
259
243
|
"reflect": true,
|
|
260
244
|
"defaultValue": "''"
|
|
@@ -273,8 +257,6 @@ export class TemporaryConsents {
|
|
|
273
257
|
"tags": [],
|
|
274
258
|
"text": "Client custom styling via url"
|
|
275
259
|
},
|
|
276
|
-
"getter": false,
|
|
277
|
-
"setter": false,
|
|
278
260
|
"attribute": "client-styling-url",
|
|
279
261
|
"reflect": true,
|
|
280
262
|
"defaultValue": "''"
|
|
@@ -293,8 +275,6 @@ export class TemporaryConsents {
|
|
|
293
275
|
"tags": [],
|
|
294
276
|
"text": "Translation via url"
|
|
295
277
|
},
|
|
296
|
-
"getter": false,
|
|
297
|
-
"setter": false,
|
|
298
278
|
"attribute": "translation-url",
|
|
299
279
|
"reflect": true,
|
|
300
280
|
"defaultValue": "''"
|