@everymatrix/temporary-consents 1.56.0 → 1.56.3
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-bcfab05e.js} +66 -201
- 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 +2 -2
- package/dist/collection/components/temporary-consents/temporary-consents.js +9 -29
- package/dist/esm/{index-54cb9543.js → index-a971e83a.js} +66 -201
- 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-4dd72273.entry.js +1 -0
- package/dist/temporary-consents/p-8a0e306f.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/dist/types/stencil-public-runtime.d.ts +0 -6
- 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/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -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": "''"
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'temporary-consents';
|
|
2
|
-
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,
|
|
2
|
+
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 };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
|
|
135
|
+
// src/utils/helpers.ts
|
|
136
|
+
var isDef = (v) => v != null;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -310,40 +305,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
310
305
|
}
|
|
311
306
|
if (!appliedStyles.has(scopeId2)) {
|
|
312
307
|
{
|
|
313
|
-
styleElm =
|
|
308
|
+
styleElm = doc.createElement("style");
|
|
314
309
|
styleElm.innerHTML = style;
|
|
315
310
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
316
311
|
if (nonce != null) {
|
|
317
312
|
styleElm.setAttribute("nonce", nonce);
|
|
318
313
|
}
|
|
319
|
-
|
|
320
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
321
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
322
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
323
|
-
styleContainerNode.insertBefore(
|
|
324
|
-
styleElm,
|
|
325
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
326
|
-
);
|
|
327
|
-
} else if ("host" in styleContainerNode) {
|
|
328
|
-
if (supportsConstructableStylesheets) {
|
|
329
|
-
const stylesheet = new CSSStyleSheet();
|
|
330
|
-
stylesheet.replaceSync(style);
|
|
331
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
332
|
-
} else {
|
|
333
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
334
|
-
if (existingStyleContainer) {
|
|
335
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
336
|
-
} else {
|
|
337
|
-
styleContainerNode.prepend(styleElm);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
} else {
|
|
341
|
-
styleContainerNode.append(styleElm);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
345
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
346
|
-
}
|
|
314
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
347
315
|
}
|
|
348
316
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
349
317
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -366,25 +334,23 @@ var attachStyles = (hostRef) => {
|
|
|
366
334
|
const scopeId2 = addStyle(
|
|
367
335
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
368
336
|
cmpMeta);
|
|
369
|
-
if (
|
|
337
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
370
338
|
elm["s-sc"] = scopeId2;
|
|
371
339
|
elm.classList.add(scopeId2 + "-h");
|
|
372
340
|
}
|
|
373
341
|
endAttachStyles();
|
|
374
342
|
};
|
|
375
343
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
376
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
344
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
377
345
|
if (oldValue !== newValue) {
|
|
378
346
|
let isProp = isMemberInElement(elm, memberName);
|
|
379
347
|
let ln = memberName.toLowerCase();
|
|
380
348
|
if (memberName === "class") {
|
|
381
349
|
const classList = elm.classList;
|
|
382
350
|
const oldClasses = parseClassList(oldValue);
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
387
|
-
}
|
|
351
|
+
const newClasses = parseClassList(newValue);
|
|
352
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
353
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
388
354
|
} else if (memberName === "ref") {
|
|
389
355
|
if (newValue) {
|
|
390
356
|
newValue(elm);
|
|
@@ -416,13 +382,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
416
382
|
if (memberName === "list") {
|
|
417
383
|
isProp = false;
|
|
418
384
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
419
|
-
|
|
420
|
-
elm[memberName] = n;
|
|
421
|
-
} else {
|
|
422
|
-
elm.setAttribute(memberName, n);
|
|
423
|
-
}
|
|
385
|
+
elm[memberName] = n;
|
|
424
386
|
}
|
|
425
|
-
} else
|
|
387
|
+
} else {
|
|
426
388
|
elm[memberName] = newValue;
|
|
427
389
|
}
|
|
428
390
|
} catch (e) {
|
|
@@ -444,44 +406,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
444
406
|
}
|
|
445
407
|
};
|
|
446
408
|
var parseClassListRegex = /\s/;
|
|
447
|
-
var parseClassList = (value) =>
|
|
448
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
449
|
-
value = value.baseVal;
|
|
450
|
-
}
|
|
451
|
-
if (!value || typeof value !== "string") {
|
|
452
|
-
return [];
|
|
453
|
-
}
|
|
454
|
-
return value.split(parseClassListRegex);
|
|
455
|
-
};
|
|
409
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
456
410
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
457
411
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
458
412
|
|
|
459
413
|
// src/runtime/vdom/update-element.ts
|
|
460
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
414
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
461
415
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
462
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
463
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
416
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
417
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
464
418
|
{
|
|
465
419
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
466
420
|
if (!(memberName in newVnodeAttrs)) {
|
|
467
|
-
setAccessor(
|
|
468
|
-
elm,
|
|
469
|
-
memberName,
|
|
470
|
-
oldVnodeAttrs[memberName],
|
|
471
|
-
void 0,
|
|
472
|
-
isSvgMode2,
|
|
473
|
-
newVnode.$flags$);
|
|
421
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
474
422
|
}
|
|
475
423
|
}
|
|
476
424
|
}
|
|
477
425
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
478
|
-
setAccessor(
|
|
479
|
-
elm,
|
|
480
|
-
memberName,
|
|
481
|
-
oldVnodeAttrs[memberName],
|
|
482
|
-
newVnodeAttrs[memberName],
|
|
483
|
-
isSvgMode2,
|
|
484
|
-
newVnode.$flags$);
|
|
426
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
485
427
|
}
|
|
486
428
|
};
|
|
487
429
|
function sortedAttrNames(attrNames) {
|
|
@@ -493,10 +435,13 @@ function sortedAttrNames(attrNames) {
|
|
|
493
435
|
attrNames
|
|
494
436
|
);
|
|
495
437
|
}
|
|
438
|
+
|
|
439
|
+
// src/runtime/vdom/vdom-render.ts
|
|
440
|
+
var scopeId;
|
|
496
441
|
var hostTagName;
|
|
497
442
|
var useNativeShadowDom = false;
|
|
498
443
|
var isSvgMode = false;
|
|
499
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
444
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
500
445
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
501
446
|
let i2 = 0;
|
|
502
447
|
let elm;
|
|
@@ -510,6 +455,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
510
455
|
{
|
|
511
456
|
updateElement(null, newVNode2, isSvgMode);
|
|
512
457
|
}
|
|
458
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
459
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
460
|
+
}
|
|
513
461
|
if (newVNode2.$children$) {
|
|
514
462
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
515
463
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -614,9 +562,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
614
562
|
};
|
|
615
563
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
616
564
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
617
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
618
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
619
|
-
}
|
|
620
565
|
return true;
|
|
621
566
|
}
|
|
622
567
|
return false;
|
|
@@ -639,10 +584,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
639
584
|
elm.textContent = "";
|
|
640
585
|
}
|
|
641
586
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
642
|
-
} else if (
|
|
643
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
644
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
645
|
-
) {
|
|
587
|
+
} else if (oldChildren !== null) {
|
|
646
588
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
647
589
|
}
|
|
648
590
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -656,9 +598,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
656
598
|
}
|
|
657
599
|
};
|
|
658
600
|
var insertBefore = (parent, newNode, reference) => {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}
|
|
601
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
602
|
+
return inserted;
|
|
662
603
|
};
|
|
663
604
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
664
605
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -683,21 +624,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
683
624
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
684
625
|
hostRef.$vnode$ = rootVnode;
|
|
685
626
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
686
|
-
|
|
627
|
+
{
|
|
628
|
+
scopeId = hostElm["s-sc"];
|
|
629
|
+
}
|
|
630
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
687
631
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
688
632
|
};
|
|
689
633
|
|
|
690
634
|
// src/runtime/update-component.ts
|
|
691
635
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
692
636
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
693
|
-
|
|
694
|
-
new Promise(
|
|
695
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
696
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
697
|
-
r();
|
|
698
|
-
}
|
|
699
|
-
)
|
|
700
|
-
);
|
|
637
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
701
638
|
}
|
|
702
639
|
};
|
|
703
640
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -724,7 +661,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
724
661
|
let maybePromise;
|
|
725
662
|
if (isInitialLoad) {
|
|
726
663
|
{
|
|
727
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
664
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
728
665
|
}
|
|
729
666
|
}
|
|
730
667
|
endSchedule();
|
|
@@ -793,7 +730,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
793
730
|
const instance = hostRef.$lazyInstance$ ;
|
|
794
731
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
795
732
|
{
|
|
796
|
-
safeCall(instance, "componentDidRender"
|
|
733
|
+
safeCall(instance, "componentDidRender");
|
|
797
734
|
}
|
|
798
735
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
799
736
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -822,14 +759,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
822
759
|
}
|
|
823
760
|
};
|
|
824
761
|
var appDidLoad = (who) => {
|
|
762
|
+
{
|
|
763
|
+
addHydratedFlag(doc.documentElement);
|
|
764
|
+
}
|
|
825
765
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
826
766
|
};
|
|
827
|
-
var safeCall = (instance, method, arg
|
|
767
|
+
var safeCall = (instance, method, arg) => {
|
|
828
768
|
if (instance && instance[method]) {
|
|
829
769
|
try {
|
|
830
770
|
return instance[method](arg);
|
|
831
771
|
} catch (e) {
|
|
832
|
-
consoleError(e
|
|
772
|
+
consoleError(e);
|
|
833
773
|
}
|
|
834
774
|
}
|
|
835
775
|
return void 0;
|
|
@@ -872,68 +812,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
872
812
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
873
813
|
members.map(([memberName, [memberFlags]]) => {
|
|
874
814
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
875
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
876
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
877
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
878
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
879
|
-
Object.defineProperty(prototype, memberName, {
|
|
880
|
-
get() {
|
|
881
|
-
{
|
|
882
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
883
|
-
return getValue(this, memberName);
|
|
884
|
-
}
|
|
885
|
-
const ref = getHostRef(this);
|
|
886
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
887
|
-
if (!instance) return;
|
|
888
|
-
return instance[memberName];
|
|
889
|
-
}
|
|
890
|
-
},
|
|
891
|
-
configurable: true,
|
|
892
|
-
enumerable: true
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
815
|
Object.defineProperty(prototype, memberName, {
|
|
816
|
+
get() {
|
|
817
|
+
return getValue(this, memberName);
|
|
818
|
+
},
|
|
896
819
|
set(newValue) {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
902
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
903
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
904
|
-
}
|
|
905
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
906
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
907
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
908
|
-
return;
|
|
909
|
-
}
|
|
910
|
-
{
|
|
911
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
912
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
913
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
914
|
-
ref.$onReadyPromise$.then(() => {
|
|
915
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
916
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
return;
|
|
921
|
-
}
|
|
922
|
-
const setterSetVal = () => {
|
|
923
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
924
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
925
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
926
|
-
}
|
|
927
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
928
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
929
|
-
};
|
|
930
|
-
if (ref.$lazyInstance$) {
|
|
931
|
-
setterSetVal();
|
|
932
|
-
} else {
|
|
933
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
}
|
|
820
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
821
|
+
},
|
|
822
|
+
configurable: true,
|
|
823
|
+
enumerable: true
|
|
937
824
|
});
|
|
938
825
|
}
|
|
939
826
|
});
|
|
@@ -943,11 +830,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
943
830
|
plt.jmp(() => {
|
|
944
831
|
var _a2;
|
|
945
832
|
const propName = attrNameToPropName.get(attrName);
|
|
946
|
-
if (this.hasOwnProperty(propName)
|
|
833
|
+
if (this.hasOwnProperty(propName)) {
|
|
947
834
|
newValue = this[propName];
|
|
948
835
|
delete this[propName];
|
|
949
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
950
|
-
this[propName] == newValue) {
|
|
836
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
951
837
|
return;
|
|
952
838
|
} else if (propName == null) {
|
|
953
839
|
const hostRef = getHostRef(this);
|
|
@@ -963,11 +849,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
963
849
|
}
|
|
964
850
|
return;
|
|
965
851
|
}
|
|
966
|
-
|
|
967
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
968
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
969
|
-
this[propName] = newValue;
|
|
970
|
-
}
|
|
852
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
971
853
|
});
|
|
972
854
|
};
|
|
973
855
|
Cstr.observedAttributes = Array.from(
|
|
@@ -996,7 +878,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
996
878
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
997
879
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
998
880
|
if (bundleId) {
|
|
999
|
-
const CstrImport = loadModule(cmpMeta
|
|
881
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1000
882
|
if (CstrImport && "then" in CstrImport) {
|
|
1001
883
|
const endLoad = uniqueTime();
|
|
1002
884
|
Cstr = await CstrImport;
|
|
@@ -1018,7 +900,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1018
900
|
try {
|
|
1019
901
|
new Cstr(hostRef);
|
|
1020
902
|
} catch (e) {
|
|
1021
|
-
consoleError(e
|
|
903
|
+
consoleError(e);
|
|
1022
904
|
}
|
|
1023
905
|
{
|
|
1024
906
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1050,7 +932,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1050
932
|
schedule();
|
|
1051
933
|
}
|
|
1052
934
|
};
|
|
1053
|
-
var fireConnectedCallback = (instance
|
|
935
|
+
var fireConnectedCallback = (instance) => {
|
|
1054
936
|
};
|
|
1055
937
|
|
|
1056
938
|
// src/runtime/connected-callback.ts
|
|
@@ -1090,7 +972,7 @@ var connectedCallback = (elm) => {
|
|
|
1090
972
|
endConnected();
|
|
1091
973
|
}
|
|
1092
974
|
};
|
|
1093
|
-
var disconnectInstance = (instance
|
|
975
|
+
var disconnectInstance = (instance) => {
|
|
1094
976
|
};
|
|
1095
977
|
var disconnectedCallback = async (elm) => {
|
|
1096
978
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1099,12 +981,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1099
981
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1100
982
|
}
|
|
1101
983
|
}
|
|
1102
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1103
|
-
rootAppliedStyles.delete(elm);
|
|
1104
|
-
}
|
|
1105
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1106
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1107
|
-
}
|
|
1108
984
|
};
|
|
1109
985
|
|
|
1110
986
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1181,17 +1057,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1181
1057
|
}
|
|
1182
1058
|
disconnectedCallback() {
|
|
1183
1059
|
plt.jmp(() => disconnectedCallback(this));
|
|
1184
|
-
plt.raf(() => {
|
|
1185
|
-
var _a3;
|
|
1186
|
-
const hostRef = getHostRef(this);
|
|
1187
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1188
|
-
if (i2 > -1) {
|
|
1189
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1190
|
-
}
|
|
1191
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1192
|
-
delete hostRef.$vnode$.$elm$;
|
|
1193
|
-
}
|
|
1194
|
-
});
|
|
1195
1060
|
}
|
|
1196
1061
|
componentOnReady() {
|
|
1197
1062
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-a971e83a.js';
|
|
2
|
+
export { s as setNonce } from './index-a971e83a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-a971e83a.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
let TRANSLATIONS = {
|
|
@@ -108,19 +108,6 @@ const TemporaryConsentsStyle0 = temporaryConsentsCss;
|
|
|
108
108
|
const TemporaryConsents = class {
|
|
109
109
|
constructor(hostRef) {
|
|
110
110
|
registerInstance(this, hostRef);
|
|
111
|
-
/**
|
|
112
|
-
* Client custom styling via inline styles
|
|
113
|
-
*/
|
|
114
|
-
this.clientStyling = '';
|
|
115
|
-
/**
|
|
116
|
-
* Client custom styling via url
|
|
117
|
-
*/
|
|
118
|
-
this.clientStylingUrl = '';
|
|
119
|
-
/**
|
|
120
|
-
* Translation via url
|
|
121
|
-
*/
|
|
122
|
-
this.translationUrl = '';
|
|
123
|
-
this.stylingAppends = false;
|
|
124
111
|
this.isLoading = false;
|
|
125
112
|
this.setClientStyling = () => {
|
|
126
113
|
let sheet = document.createElement('style');
|
|
@@ -140,6 +127,15 @@ const TemporaryConsents = class {
|
|
|
140
127
|
console.log('error ', err);
|
|
141
128
|
});
|
|
142
129
|
};
|
|
130
|
+
this.endpoint = undefined;
|
|
131
|
+
this.userId = undefined;
|
|
132
|
+
this.sessionId = undefined;
|
|
133
|
+
this.daysUntilLockout = undefined;
|
|
134
|
+
this.lang = undefined;
|
|
135
|
+
this.clientStyling = '';
|
|
136
|
+
this.clientStylingUrl = '';
|
|
137
|
+
this.translationUrl = '';
|
|
138
|
+
this.stylingAppends = false;
|
|
143
139
|
}
|
|
144
140
|
componentWillLoad() {
|
|
145
141
|
const promises = [];
|
|
@@ -1,9 +1,9 @@
|
|
|
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-a971e83a.js';
|
|
2
|
+
export { s as setNonce } from './index-a971e83a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|