@cooperco/cooper-component-library 0.1.94 → 0.1.95
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/cms/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/cms/README.md +101 -31
- package/dist/cms/contentModule.query.ts +1 -0
- package/dist/cms/contentful/migrations/scripts/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/cms/contentful/queries/contentModule.query.js +1 -0
- package/dist/cms/contentful/queries/contentModule.query.ts +1 -0
- package/dist/cms/migrations/scripts/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/cms/queries/contentModule.query.ts +1 -0
- package/dist/cms/scripts/0082-add-body-copy-alignment-to-content-module.cjs +36 -0
- package/dist/lib/component-lib.js +485 -484
- package/dist/lib/component-lib.umd.cjs +10 -10
- package/dist/types/src/components/ContentModule/ContentModule.d.ts +1 -0
- package/package.json +1 -1
|
@@ -111,26 +111,26 @@ const r1 = "-", Yi = (n) => {
|
|
|
111
111
|
} = n, i = e.length === 1, o = e[0], s = e.length, r = (a) => {
|
|
112
112
|
const l = [];
|
|
113
113
|
let c = 0, d = 0, u;
|
|
114
|
-
for (let
|
|
115
|
-
let b = a[
|
|
114
|
+
for (let C = 0; C < a.length; C++) {
|
|
115
|
+
let b = a[C];
|
|
116
116
|
if (c === 0) {
|
|
117
|
-
if (b === o && (i || a.slice(
|
|
118
|
-
l.push(a.slice(d,
|
|
117
|
+
if (b === o && (i || a.slice(C, C + s) === e)) {
|
|
118
|
+
l.push(a.slice(d, C)), d = C + s;
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
121
121
|
if (b === "/") {
|
|
122
|
-
u =
|
|
122
|
+
u = C;
|
|
123
123
|
continue;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
b === "[" ? c++ : b === "]" && c--;
|
|
127
127
|
}
|
|
128
|
-
const f = l.length === 0 ? a : a.substring(d), h = f.startsWith(un),
|
|
128
|
+
const f = l.length === 0 ? a : a.substring(d), h = f.startsWith(un), g = h ? f.substring(1) : f, p = u && u > d ? u - d : void 0;
|
|
129
129
|
return {
|
|
130
130
|
modifiers: l,
|
|
131
131
|
hasImportantModifier: h,
|
|
132
|
-
baseClassName:
|
|
133
|
-
maybePostfixModifierPosition:
|
|
132
|
+
baseClassName: g,
|
|
133
|
+
maybePostfixModifierPosition: p
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
136
|
return t ? (a) => t({
|
|
@@ -163,23 +163,23 @@ const r1 = "-", Yi = (n) => {
|
|
|
163
163
|
baseClassName: f,
|
|
164
164
|
maybePostfixModifierPosition: h
|
|
165
165
|
} = t(c);
|
|
166
|
-
let
|
|
167
|
-
if (!
|
|
168
|
-
if (!
|
|
166
|
+
let g = !!h, p = i(g ? f.substring(0, h) : f);
|
|
167
|
+
if (!p) {
|
|
168
|
+
if (!g) {
|
|
169
169
|
a = c + (a.length > 0 ? " " + a : a);
|
|
170
170
|
continue;
|
|
171
171
|
}
|
|
172
|
-
if (
|
|
172
|
+
if (p = i(f), !p) {
|
|
173
173
|
a = c + (a.length > 0 ? " " + a : a);
|
|
174
174
|
continue;
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
g = !1;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const C = e4(d).join(":"), b = u ? C + un : C, w = b + p;
|
|
179
179
|
if (s.includes(w))
|
|
180
180
|
continue;
|
|
181
181
|
s.push(w);
|
|
182
|
-
const Z = o(
|
|
182
|
+
const Z = o(p, g);
|
|
183
183
|
for (let S = 0; S < Z.length; ++S) {
|
|
184
184
|
const A = Z[S];
|
|
185
185
|
s.push(b + A);
|
|
@@ -231,7 +231,7 @@ const l2 = (n) => {
|
|
|
231
231
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
232
232
|
c4.test(n) && !d4.test(n)
|
|
233
233
|
), pn = () => !1, M4 = (n) => u4.test(n), x4 = (n) => h4.test(n), w4 = () => {
|
|
234
|
-
const n = l2("colors"), e = l2("spacing"), t = l2("blur"), i = l2("brightness"), o = l2("borderColor"), s = l2("borderRadius"), r = l2("borderSpacing"), a = l2("borderWidth"), l = l2("contrast"), c = l2("grayscale"), d = l2("hueRotate"), u = l2("invert"), f = l2("gap"), h = l2("gradientColorStops"),
|
|
234
|
+
const n = l2("colors"), e = l2("spacing"), t = l2("blur"), i = l2("brightness"), o = l2("borderColor"), s = l2("borderRadius"), r = l2("borderSpacing"), a = l2("borderWidth"), l = l2("contrast"), c = l2("grayscale"), d = l2("hueRotate"), u = l2("invert"), f = l2("gap"), h = l2("gradientColorStops"), g = l2("gradientColorStopPositions"), p = l2("inset"), C = l2("margin"), b = l2("opacity"), w = l2("padding"), Z = l2("saturate"), S = l2("scale"), A = l2("sepia"), P = l2("skew"), I = l2("space"), F = l2("translate"), E = () => ["auto", "contain", "none"], j = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", K, e], T = () => [K, e], x = () => ["", U2, e0], L = () => ["auto", I0, K], O = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], H = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", K], M2 = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w2 = () => [I0, K];
|
|
235
235
|
return {
|
|
236
236
|
cacheSize: 500,
|
|
237
237
|
separator: ":",
|
|
@@ -408,63 +408,63 @@ const l2 = (n) => {
|
|
|
408
408
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
409
409
|
*/
|
|
410
410
|
inset: [{
|
|
411
|
-
inset: [
|
|
411
|
+
inset: [p]
|
|
412
412
|
}],
|
|
413
413
|
/**
|
|
414
414
|
* Right / Left
|
|
415
415
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
416
416
|
*/
|
|
417
417
|
"inset-x": [{
|
|
418
|
-
"inset-x": [
|
|
418
|
+
"inset-x": [p]
|
|
419
419
|
}],
|
|
420
420
|
/**
|
|
421
421
|
* Top / Bottom
|
|
422
422
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
423
423
|
*/
|
|
424
424
|
"inset-y": [{
|
|
425
|
-
"inset-y": [
|
|
425
|
+
"inset-y": [p]
|
|
426
426
|
}],
|
|
427
427
|
/**
|
|
428
428
|
* Start
|
|
429
429
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
430
430
|
*/
|
|
431
431
|
start: [{
|
|
432
|
-
start: [
|
|
432
|
+
start: [p]
|
|
433
433
|
}],
|
|
434
434
|
/**
|
|
435
435
|
* End
|
|
436
436
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
437
437
|
*/
|
|
438
438
|
end: [{
|
|
439
|
-
end: [
|
|
439
|
+
end: [p]
|
|
440
440
|
}],
|
|
441
441
|
/**
|
|
442
442
|
* Top
|
|
443
443
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
444
444
|
*/
|
|
445
445
|
top: [{
|
|
446
|
-
top: [
|
|
446
|
+
top: [p]
|
|
447
447
|
}],
|
|
448
448
|
/**
|
|
449
449
|
* Right
|
|
450
450
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
451
451
|
*/
|
|
452
452
|
right: [{
|
|
453
|
-
right: [
|
|
453
|
+
right: [p]
|
|
454
454
|
}],
|
|
455
455
|
/**
|
|
456
456
|
* Bottom
|
|
457
457
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
458
458
|
*/
|
|
459
459
|
bottom: [{
|
|
460
|
-
bottom: [
|
|
460
|
+
bottom: [p]
|
|
461
461
|
}],
|
|
462
462
|
/**
|
|
463
463
|
* Left
|
|
464
464
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
465
465
|
*/
|
|
466
466
|
left: [{
|
|
467
|
-
left: [
|
|
467
|
+
left: [p]
|
|
468
468
|
}],
|
|
469
469
|
/**
|
|
470
470
|
* Visibility
|
|
@@ -762,63 +762,63 @@ const l2 = (n) => {
|
|
|
762
762
|
* @see https://tailwindcss.com/docs/margin
|
|
763
763
|
*/
|
|
764
764
|
m: [{
|
|
765
|
-
m: [
|
|
765
|
+
m: [C]
|
|
766
766
|
}],
|
|
767
767
|
/**
|
|
768
768
|
* Margin X
|
|
769
769
|
* @see https://tailwindcss.com/docs/margin
|
|
770
770
|
*/
|
|
771
771
|
mx: [{
|
|
772
|
-
mx: [
|
|
772
|
+
mx: [C]
|
|
773
773
|
}],
|
|
774
774
|
/**
|
|
775
775
|
* Margin Y
|
|
776
776
|
* @see https://tailwindcss.com/docs/margin
|
|
777
777
|
*/
|
|
778
778
|
my: [{
|
|
779
|
-
my: [
|
|
779
|
+
my: [C]
|
|
780
780
|
}],
|
|
781
781
|
/**
|
|
782
782
|
* Margin Start
|
|
783
783
|
* @see https://tailwindcss.com/docs/margin
|
|
784
784
|
*/
|
|
785
785
|
ms: [{
|
|
786
|
-
ms: [
|
|
786
|
+
ms: [C]
|
|
787
787
|
}],
|
|
788
788
|
/**
|
|
789
789
|
* Margin End
|
|
790
790
|
* @see https://tailwindcss.com/docs/margin
|
|
791
791
|
*/
|
|
792
792
|
me: [{
|
|
793
|
-
me: [
|
|
793
|
+
me: [C]
|
|
794
794
|
}],
|
|
795
795
|
/**
|
|
796
796
|
* Margin Top
|
|
797
797
|
* @see https://tailwindcss.com/docs/margin
|
|
798
798
|
*/
|
|
799
799
|
mt: [{
|
|
800
|
-
mt: [
|
|
800
|
+
mt: [C]
|
|
801
801
|
}],
|
|
802
802
|
/**
|
|
803
803
|
* Margin Right
|
|
804
804
|
* @see https://tailwindcss.com/docs/margin
|
|
805
805
|
*/
|
|
806
806
|
mr: [{
|
|
807
|
-
mr: [
|
|
807
|
+
mr: [C]
|
|
808
808
|
}],
|
|
809
809
|
/**
|
|
810
810
|
* Margin Bottom
|
|
811
811
|
* @see https://tailwindcss.com/docs/margin
|
|
812
812
|
*/
|
|
813
813
|
mb: [{
|
|
814
|
-
mb: [
|
|
814
|
+
mb: [C]
|
|
815
815
|
}],
|
|
816
816
|
/**
|
|
817
817
|
* Margin Left
|
|
818
818
|
* @see https://tailwindcss.com/docs/margin
|
|
819
819
|
*/
|
|
820
820
|
ml: [{
|
|
821
|
-
ml: [
|
|
821
|
+
ml: [C]
|
|
822
822
|
}],
|
|
823
823
|
/**
|
|
824
824
|
* Space Between X
|
|
@@ -1202,21 +1202,21 @@ const l2 = (n) => {
|
|
|
1202
1202
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1203
1203
|
*/
|
|
1204
1204
|
"gradient-from-pos": [{
|
|
1205
|
-
from: [
|
|
1205
|
+
from: [g]
|
|
1206
1206
|
}],
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Gradient Color Stops Via Position
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1210
1210
|
*/
|
|
1211
1211
|
"gradient-via-pos": [{
|
|
1212
|
-
via: [
|
|
1212
|
+
via: [g]
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Gradient Color Stops To Position
|
|
1216
1216
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1217
1217
|
*/
|
|
1218
1218
|
"gradient-to-pos": [{
|
|
1219
|
-
to: [
|
|
1219
|
+
to: [g]
|
|
1220
1220
|
}],
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Gradient Color Stops From
|
|
@@ -3139,12 +3139,12 @@ var o2 = {
|
|
|
3139
3139
|
if (h === "string" || h === "number")
|
|
3140
3140
|
u.push(f);
|
|
3141
3141
|
else if (h === "object") {
|
|
3142
|
-
var
|
|
3143
|
-
var
|
|
3142
|
+
var g = Array.isArray(f) ? s(r, f) : Object.entries(f).map(function(p) {
|
|
3143
|
+
var C = _t(p, 2), b = C[0], w = C[1];
|
|
3144
3144
|
return r === "style" && (w || w === 0) ? "".concat(b.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), ":").concat(w) : w ? b : void 0;
|
|
3145
3145
|
});
|
|
3146
|
-
u =
|
|
3147
|
-
return !!
|
|
3146
|
+
u = g.length ? u.concat(g.filter(function(p) {
|
|
3147
|
+
return !!p;
|
|
3148
3148
|
})) : u;
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
@@ -3192,8 +3192,8 @@ var o2 = {
|
|
|
3192
3192
|
var o = e.offsetParent ? {
|
|
3193
3193
|
width: e.offsetWidth,
|
|
3194
3194
|
height: e.offsetHeight
|
|
3195
|
-
} : this.getHiddenElementDimensions(e), s = o.height, r = o.width, a = t.offsetHeight, l = t.offsetWidth, c = t.getBoundingClientRect(), d = this.getWindowScrollTop(), u = this.getWindowScrollLeft(), f = this.getViewport(), h,
|
|
3196
|
-
c.top + a + s > f.height ? (h = c.top + d - s,
|
|
3195
|
+
} : this.getHiddenElementDimensions(e), s = o.height, r = o.width, a = t.offsetHeight, l = t.offsetWidth, c = t.getBoundingClientRect(), d = this.getWindowScrollTop(), u = this.getWindowScrollLeft(), f = this.getViewport(), h, g, p = "top";
|
|
3196
|
+
c.top + a + s > f.height ? (h = c.top + d - s, p = "bottom", h < 0 && (h = d)) : h = a + c.top + d, c.left + r > f.width ? g = Math.max(0, c.left + u + l - r) : g = c.left + u, e.style.top = h + "px", e.style.left = g + "px", e.style.transformOrigin = p, i && (e.style.marginTop = p === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
|
|
3197
3197
|
}
|
|
3198
3198
|
},
|
|
3199
3199
|
relativePosition: function(e, t) {
|
|
@@ -3223,9 +3223,9 @@ var o2 = {
|
|
|
3223
3223
|
getScrollableParents: function(e) {
|
|
3224
3224
|
var t = [];
|
|
3225
3225
|
if (e) {
|
|
3226
|
-
var i = this.getParents(e), o = /(auto|scroll)/, s = function(
|
|
3226
|
+
var i = this.getParents(e), o = /(auto|scroll)/, s = function(C) {
|
|
3227
3227
|
try {
|
|
3228
|
-
var b = window.getComputedStyle(
|
|
3228
|
+
var b = window.getComputedStyle(C, null);
|
|
3229
3229
|
return o.test(b.getPropertyValue("overflow")) || o.test(b.getPropertyValue("overflowX")) || o.test(b.getPropertyValue("overflowY"));
|
|
3230
3230
|
} catch {
|
|
3231
3231
|
return !1;
|
|
@@ -3238,19 +3238,19 @@ var o2 = {
|
|
|
3238
3238
|
var d = c.split(","), u = wt(d), f;
|
|
3239
3239
|
try {
|
|
3240
3240
|
for (u.s(); !(f = u.n()).done; ) {
|
|
3241
|
-
var h = f.value,
|
|
3242
|
-
|
|
3241
|
+
var h = f.value, g = this.findSingle(l, h);
|
|
3242
|
+
g && s(g) && t.push(g);
|
|
3243
3243
|
}
|
|
3244
|
-
} catch (
|
|
3245
|
-
u.e(
|
|
3244
|
+
} catch (p) {
|
|
3245
|
+
u.e(p);
|
|
3246
3246
|
} finally {
|
|
3247
3247
|
u.f();
|
|
3248
3248
|
}
|
|
3249
3249
|
}
|
|
3250
3250
|
l.nodeType !== 9 && s(l) && t.push(l);
|
|
3251
3251
|
}
|
|
3252
|
-
} catch (
|
|
3253
|
-
r.e(
|
|
3252
|
+
} catch (p) {
|
|
3253
|
+
r.e(p);
|
|
3254
3254
|
} finally {
|
|
3255
3255
|
r.f();
|
|
3256
3256
|
}
|
|
@@ -3910,11 +3910,11 @@ function K4(n) {
|
|
|
3910
3910
|
}
|
|
3911
3911
|
var q4 = 0;
|
|
3912
3912
|
function En(n) {
|
|
3913
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e2(!1), i = e2(n), o = e2(null), s = o2.isClient() ? window.document : void 0, r = e.document, a = r === void 0 ? s : r, l = e.immediate, c = l === void 0 ? !0 : l, d = e.manual, u = d === void 0 ? !1 : d, f = e.name, h = f === void 0 ? "style_".concat(++q4) : f,
|
|
3913
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e2(!1), i = e2(n), o = e2(null), s = o2.isClient() ? window.document : void 0, r = e.document, a = r === void 0 ? s : r, l = e.immediate, c = l === void 0 ? !0 : l, d = e.manual, u = d === void 0 ? !1 : d, f = e.name, h = f === void 0 ? "style_".concat(++q4) : f, g = e.id, p = g === void 0 ? void 0 : g, C = e.media, b = C === void 0 ? void 0 : C, w = e.nonce, Z = w === void 0 ? void 0 : w, S = e.props, A = S === void 0 ? {} : S, P = function() {
|
|
3914
3914
|
}, I = function(j) {
|
|
3915
3915
|
var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3916
3916
|
if (a) {
|
|
3917
|
-
var T = L1(L1({}, A), R), x = T.name || h, L = T.id ||
|
|
3917
|
+
var T = L1(L1({}, A), R), x = T.name || h, L = T.id || p, O = T.nonce || Z;
|
|
3918
3918
|
o.value = a.querySelector('style[data-primevue-style-id="'.concat(x, '"]')) || a.getElementById(L) || a.createElement("style"), o.value.isConnected || (i.value = j || n, o2.setAttributes(o.value, {
|
|
3919
3919
|
type: "text/css",
|
|
3920
3920
|
id: L,
|
|
@@ -3930,7 +3930,7 @@ function En(n) {
|
|
|
3930
3930
|
!a || !t.value || (P(), o2.isExist(o.value) && a.head.removeChild(o.value), t.value = !1);
|
|
3931
3931
|
};
|
|
3932
3932
|
return c && !u && K4(I), {
|
|
3933
|
-
id:
|
|
3933
|
+
id: p,
|
|
3934
3934
|
name: h,
|
|
3935
3935
|
css: i,
|
|
3936
3936
|
unload: F,
|
|
@@ -4307,10 +4307,10 @@ var we = {
|
|
|
4307
4307
|
}
|
|
4308
4308
|
},
|
|
4309
4309
|
beforeCreate: function() {
|
|
4310
|
-
var e, t, i, o, s, r, a, l, c, d, u, f = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, h = f ? (t = this.pt) === null || t === void 0 || (t = t.originalValue) === null || t === void 0 ? void 0 : t[this.$.type.name] : void 0,
|
|
4311
|
-
(o =
|
|
4312
|
-
var
|
|
4313
|
-
(d = b ||
|
|
4310
|
+
var e, t, i, o, s, r, a, l, c, d, u, f = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, h = f ? (t = this.pt) === null || t === void 0 || (t = t.originalValue) === null || t === void 0 ? void 0 : t[this.$.type.name] : void 0, g = f ? (i = this.pt) === null || i === void 0 || (i = i.value) === null || i === void 0 ? void 0 : i[this.$.type.name] : this.pt;
|
|
4311
|
+
(o = g || h) === null || o === void 0 || (o = o.hooks) === null || o === void 0 || (s = o.onBeforeCreate) === null || s === void 0 || s.call(o);
|
|
4312
|
+
var p = (r = this.$config) === null || r === void 0 || (r = r.pt) === null || r === void 0 ? void 0 : r._usept, C = p ? (a = this.$primevue) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a.originalValue : void 0, b = p ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.value : (c = this.$primevue) === null || c === void 0 || (c = c.config) === null || c === void 0 ? void 0 : c.pt;
|
|
4313
|
+
(d = b || C) === null || d === void 0 || (d = d[this.$.type.name]) === null || d === void 0 || (d = d.hooks) === null || d === void 0 || (u = d.onBeforeCreate) === null || u === void 0 || u.call(d);
|
|
4314
4314
|
},
|
|
4315
4315
|
created: function() {
|
|
4316
4316
|
this._hook("onCreated");
|
|
@@ -4370,8 +4370,8 @@ var we = {
|
|
|
4370
4370
|
_getPTValue: function() {
|
|
4371
4371
|
var e, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, r = /./g.test(i) && !!o[i.split(".")[0]], a = this._getPropValue("ptOptions") || ((e = this.$config) === null || e === void 0 ? void 0 : e.ptOptions) || {}, l = a.mergeSections, c = l === void 0 ? !0 : l, d = a.mergeProps, u = d === void 0 ? !1 : d, f = s ? r ? this._useGlobalPT(this._getPTClassValue, i, o) : this._useDefaultPT(this._getPTClassValue, i, o) : void 0, h = r ? void 0 : this._getPTSelf(t, this._getPTClassValue, i, c2(c2({}, o), {}, {
|
|
4372
4372
|
global: f || {}
|
|
4373
|
-
})),
|
|
4374
|
-
return c || !c && h ? u ? this._mergeProps(u, f, h,
|
|
4373
|
+
})), g = this._getPTDatasets(i);
|
|
4374
|
+
return c || !c && h ? u ? this._mergeProps(u, f, h, g) : c2(c2(c2({}, f), h), g) : c2(c2({}, h), g);
|
|
4375
4375
|
},
|
|
4376
4376
|
_getPTSelf: function() {
|
|
4377
4377
|
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
@@ -4405,8 +4405,8 @@ var we = {
|
|
|
4405
4405
|
} : s(e, !0);
|
|
4406
4406
|
},
|
|
4407
4407
|
_usePT: function(e, t, i, o) {
|
|
4408
|
-
var s = function(
|
|
4409
|
-
return t(
|
|
4408
|
+
var s = function(p) {
|
|
4409
|
+
return t(p, i, o);
|
|
4410
4410
|
};
|
|
4411
4411
|
if (e != null && e.hasOwnProperty("_usept")) {
|
|
4412
4412
|
var r, a = e._usept || ((r = this.$config) === null || r === void 0 ? void 0 : r.ptOptions) || {}, l = a.mergeSections, c = l === void 0 ? !0 : l, d = a.mergeProps, u = d === void 0 ? !1 : d, f = s(e.originalValue), h = s(e.value);
|
|
@@ -4802,10 +4802,10 @@ var Q = {
|
|
|
4802
4802
|
return U.isString(w) || U.isArray(w) ? {
|
|
4803
4803
|
class: w
|
|
4804
4804
|
} : w;
|
|
4805
|
-
}, c = ((e = i.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((t = i.$config) === null || t === void 0 ? void 0 : t.ptOptions) || {}, d = c.mergeSections, u = d === void 0 ? !0 : d, f = c.mergeProps, h = f === void 0 ? !1 : f,
|
|
4806
|
-
global:
|
|
4807
|
-
})),
|
|
4808
|
-
return u || !u &&
|
|
4805
|
+
}, c = ((e = i.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((t = i.$config) === null || t === void 0 ? void 0 : t.ptOptions) || {}, d = c.mergeSections, u = d === void 0 ? !0 : d, f = c.mergeProps, h = f === void 0 ? !1 : f, g = a ? Q._useDefaultPT(i, i.defaultPT(), l, s, r) : void 0, p = Q._usePT(i, Q._getPT(o, i.$name), l, s, h2(h2({}, r), {}, {
|
|
4806
|
+
global: g || {}
|
|
4807
|
+
})), C = Q._getPTDatasets(i, s);
|
|
4808
|
+
return u || !u && p ? h ? Q._mergeProps(i, h, g, p, C) : h2(h2(h2({}, g), p), C) : h2(h2({}, p), C);
|
|
4809
4809
|
},
|
|
4810
4810
|
_getPTDatasets: function() {
|
|
4811
4811
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", i = "data-pc-";
|
|
@@ -4823,12 +4823,12 @@ var Q = {
|
|
|
4823
4823
|
} : o(e);
|
|
4824
4824
|
},
|
|
4825
4825
|
_usePT: function() {
|
|
4826
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, i = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, s = arguments.length > 4 ? arguments[4] : void 0, r = function(
|
|
4827
|
-
return i(
|
|
4826
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, i = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, s = arguments.length > 4 ? arguments[4] : void 0, r = function(C) {
|
|
4827
|
+
return i(C, o, s);
|
|
4828
4828
|
};
|
|
4829
4829
|
if (t != null && t.hasOwnProperty("_usept")) {
|
|
4830
|
-
var a, l = t._usept || ((a = e.$config) === null || a === void 0 ? void 0 : a.ptOptions) || {}, c = l.mergeSections, d = c === void 0 ? !0 : c, u = l.mergeProps, f = u === void 0 ? !1 : u, h = r(t.originalValue),
|
|
4831
|
-
return h === void 0 &&
|
|
4830
|
+
var a, l = t._usept || ((a = e.$config) === null || a === void 0 ? void 0 : a.ptOptions) || {}, c = l.mergeSections, d = c === void 0 ? !0 : c, u = l.mergeProps, f = u === void 0 ? !1 : u, h = r(t.originalValue), g = r(t.value);
|
|
4831
|
+
return h === void 0 && g === void 0 ? void 0 : U.isString(g) ? g : U.isString(h) ? h : d || !d && g ? f ? Q._mergeProps(e, f, h, g) : h2(h2({}, h), g) : g;
|
|
4832
4832
|
}
|
|
4833
4833
|
return r(t);
|
|
4834
4834
|
},
|
|
@@ -4837,13 +4837,13 @@ var Q = {
|
|
|
4837
4837
|
return Q._usePT(e, t, i, o, s);
|
|
4838
4838
|
},
|
|
4839
4839
|
_hook: function(e, t, i, o, s, r) {
|
|
4840
|
-
var a, l, c = "on".concat(U.toCapitalCase(t)), d = Q._getConfig(o, s), u = i == null ? void 0 : i.$instance, f = Q._usePT(u, Q._getPT(o == null || (a = o.value) === null || a === void 0 ? void 0 : a.pt, e), Q._getOptionValue, "hooks.".concat(c)), h = Q._useDefaultPT(u, d == null || (l = d.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], Q._getOptionValue, "hooks.".concat(c)),
|
|
4840
|
+
var a, l, c = "on".concat(U.toCapitalCase(t)), d = Q._getConfig(o, s), u = i == null ? void 0 : i.$instance, f = Q._usePT(u, Q._getPT(o == null || (a = o.value) === null || a === void 0 ? void 0 : a.pt, e), Q._getOptionValue, "hooks.".concat(c)), h = Q._useDefaultPT(u, d == null || (l = d.pt) === null || l === void 0 || (l = l.directives) === null || l === void 0 ? void 0 : l[e], Q._getOptionValue, "hooks.".concat(c)), g = {
|
|
4841
4841
|
el: i,
|
|
4842
4842
|
binding: o,
|
|
4843
4843
|
vnode: s,
|
|
4844
4844
|
prevVnode: r
|
|
4845
4845
|
};
|
|
4846
|
-
f == null || f(u,
|
|
4846
|
+
f == null || f(u, g), h == null || h(u, g);
|
|
4847
4847
|
},
|
|
4848
4848
|
_mergeProps: function() {
|
|
4849
4849
|
for (var e = arguments.length > 1 ? arguments[1] : void 0, t = arguments.length, i = new Array(t > 2 ? t - 2 : 0), o = 2; o < t; o++)
|
|
@@ -4854,7 +4854,7 @@ var Q = {
|
|
|
4854
4854
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = function(s, r, a, l, c) {
|
|
4855
4855
|
var d, u;
|
|
4856
4856
|
r._$instances = r._$instances || {};
|
|
4857
|
-
var f = Q._getConfig(a, l), h = r._$instances[e] || {},
|
|
4857
|
+
var f = Q._getConfig(a, l), h = r._$instances[e] || {}, g = U.isEmpty(h) ? h2(h2({}, t), t == null ? void 0 : t.methods) : {};
|
|
4858
4858
|
r._$instances[e] = h2(h2({}, h), {}, {
|
|
4859
4859
|
/* new instance variables to pass in directive methods */
|
|
4860
4860
|
$name: e,
|
|
@@ -4872,33 +4872,33 @@ var Q = {
|
|
|
4872
4872
|
$config: f,
|
|
4873
4873
|
/* computed instance variables */
|
|
4874
4874
|
defaultPT: function() {
|
|
4875
|
-
return Q._getPT(f == null ? void 0 : f.pt, void 0, function(
|
|
4875
|
+
return Q._getPT(f == null ? void 0 : f.pt, void 0, function(C) {
|
|
4876
4876
|
var b;
|
|
4877
|
-
return
|
|
4877
|
+
return C == null || (b = C.directives) === null || b === void 0 ? void 0 : b[e];
|
|
4878
4878
|
});
|
|
4879
4879
|
},
|
|
4880
4880
|
isUnstyled: function() {
|
|
4881
|
-
var
|
|
4882
|
-
return ((
|
|
4881
|
+
var C, b;
|
|
4882
|
+
return ((C = r.$instance) === null || C === void 0 || (C = C.$binding) === null || C === void 0 || (C = C.value) === null || C === void 0 ? void 0 : C.unstyled) !== void 0 ? (b = r.$instance) === null || b === void 0 || (b = b.$binding) === null || b === void 0 || (b = b.value) === null || b === void 0 ? void 0 : b.unstyled : f == null ? void 0 : f.unstyled;
|
|
4883
4883
|
},
|
|
4884
4884
|
/* instance's methods */
|
|
4885
4885
|
ptm: function() {
|
|
4886
|
-
var
|
|
4887
|
-
return Q._getPTValue(r.$instance, (
|
|
4886
|
+
var C, b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4887
|
+
return Q._getPTValue(r.$instance, (C = r.$instance) === null || C === void 0 || (C = C.$binding) === null || C === void 0 || (C = C.value) === null || C === void 0 ? void 0 : C.pt, b, h2({}, w));
|
|
4888
4888
|
},
|
|
4889
4889
|
ptmo: function() {
|
|
4890
|
-
var
|
|
4891
|
-
return Q._getPTValue(r.$instance,
|
|
4890
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", w = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4891
|
+
return Q._getPTValue(r.$instance, C, b, w, !1);
|
|
4892
4892
|
},
|
|
4893
4893
|
cx: function() {
|
|
4894
|
-
var
|
|
4895
|
-
return (
|
|
4894
|
+
var C, b, w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4895
|
+
return (C = r.$instance) !== null && C !== void 0 && C.isUnstyled() ? void 0 : Q._getOptionValue((b = r.$instance) === null || b === void 0 || (b = b.$style) === null || b === void 0 ? void 0 : b.classes, w, h2({}, Z));
|
|
4896
4896
|
},
|
|
4897
4897
|
sx: function() {
|
|
4898
|
-
var
|
|
4899
|
-
return w ? Q._getOptionValue((
|
|
4898
|
+
var C, b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4899
|
+
return w ? Q._getOptionValue((C = r.$instance) === null || C === void 0 || (C = C.$style) === null || C === void 0 ? void 0 : C.inlineStyles, b, h2({}, Z)) : void 0;
|
|
4900
4900
|
}
|
|
4901
|
-
},
|
|
4901
|
+
}, g), r.$instance = r._$instances[e], (d = (u = r.$instance)[s]) === null || d === void 0 || d.call(u, r, a, l, c), r["$".concat(e)] = r.$instance, Q._hook(e, s, r, a, l, c);
|
|
4902
4902
|
};
|
|
4903
4903
|
return {
|
|
4904
4904
|
created: function(s, r, a, l) {
|
|
@@ -5281,24 +5281,24 @@ const Xo = ["innerHTML"], ge = /* @__PURE__ */ t2({
|
|
|
5281
5281
|
class: M(`accordion-module ${((h = o.value) == null ? void 0 : h.root) ?? ""} bg-${y(s)} ${u.isChild ? "" : "p-16"} ${e.class ?? ""}`)
|
|
5282
5282
|
}, {
|
|
5283
5283
|
default: u2(() => {
|
|
5284
|
-
var
|
|
5284
|
+
var g, p;
|
|
5285
5285
|
return [
|
|
5286
5286
|
u.headline ? (m(), v("h3", {
|
|
5287
5287
|
key: 0,
|
|
5288
|
-
class: M(`accordion-module-headline ${((
|
|
5288
|
+
class: M(`accordion-module-headline ${((g = o.value) == null ? void 0 : g.headline) ?? ""} text-${y(r).headline}`),
|
|
5289
5289
|
innerHTML: u.headline
|
|
5290
5290
|
}, null, 10, Xo)) : _("", !0),
|
|
5291
5291
|
u.modules ? (m(), v("div", {
|
|
5292
5292
|
key: 1,
|
|
5293
|
-
class: M(`accordion-module-container flex ${((
|
|
5293
|
+
class: M(`accordion-module-container flex ${((p = o.value) == null ? void 0 : p.container) ?? ""} ${e.isSubAccordion ? "[&>:last-child]:border-b-0" : ""}`)
|
|
5294
5294
|
}, [
|
|
5295
|
-
(m(!0), v(q, null, n2(u.modules, (
|
|
5296
|
-
key: `${
|
|
5295
|
+
(m(!0), v(q, null, n2(u.modules, (C, b) => (m(), v(q, {
|
|
5296
|
+
key: `${C.headline}-${b}`
|
|
5297
5297
|
}, [
|
|
5298
5298
|
u.type === "Tile" || b <= c.value ? (m(), D(m2(`Accordion${u.type}Item`), B({
|
|
5299
5299
|
key: 0,
|
|
5300
5300
|
ref_for: !0
|
|
5301
|
-
},
|
|
5301
|
+
}, C, {
|
|
5302
5302
|
"item-number": b,
|
|
5303
5303
|
"is-first": b === 0,
|
|
5304
5304
|
"is-last": b === c.value,
|
|
@@ -5368,7 +5368,7 @@ const Xo = ["innerHTML"], ge = /* @__PURE__ */ t2({
|
|
|
5368
5368
|
a("toggleAccordion", c);
|
|
5369
5369
|
};
|
|
5370
5370
|
return (c, d) => {
|
|
5371
|
-
var u, f, h, p, C,
|
|
5371
|
+
var u, f, h, g, p, C, b, w;
|
|
5372
5372
|
return c.isListType ? (m(), v("div", {
|
|
5373
5373
|
key: 0,
|
|
5374
5374
|
class: M({
|
|
@@ -5412,7 +5412,7 @@ const Xo = ["innerHTML"], ge = /* @__PURE__ */ t2({
|
|
|
5412
5412
|
], 10, Go),
|
|
5413
5413
|
$("div", {
|
|
5414
5414
|
id: `accordion-collapse-body-${c.itemNumber}`,
|
|
5415
|
-
class: M(`accordion-item-body ${o.value ? "show" : "hidden"} ${((
|
|
5415
|
+
class: M(`accordion-item-body ${o.value ? "show" : "hidden"} ${((g = i.value) == null ? void 0 : g.bodyCopy) ?? ""}`),
|
|
5416
5416
|
"aria-labelledby": `accordion-collapse-heading-${c.itemNumber}`
|
|
5417
5417
|
}, [
|
|
5418
5418
|
r.value ? (m(), D(ge, x0(B({ key: 0 }, r.value)), null, 16)) : (m(), v(q, { key: 1 }, [
|
|
@@ -5431,11 +5431,11 @@ const Xo = ["innerHTML"], ge = /* @__PURE__ */ t2({
|
|
|
5431
5431
|
}, [
|
|
5432
5432
|
$("h3", {
|
|
5433
5433
|
id: `accordion-collapse-headline-${c.itemNumber}`,
|
|
5434
|
-
class: M(`flex accordion-item-headline ${((
|
|
5434
|
+
class: M(`flex accordion-item-headline ${((p = i.value) == null ? void 0 : p.headline) ?? ""}`)
|
|
5435
5435
|
}, [
|
|
5436
5436
|
$("button", {
|
|
5437
5437
|
type: "button",
|
|
5438
|
-
class: M(`flex items-center w-full ${((
|
|
5438
|
+
class: M(`flex items-center w-full ${((C = i.value) == null ? void 0 : C.button) ?? ""} ${t.isListType ? "justify-between" : "justify-center"}`),
|
|
5439
5439
|
"data-accordion-target": "#accordion-collapse-body-1",
|
|
5440
5440
|
"aria-expanded": c.openAccordionIndex === c.itemNumber,
|
|
5441
5441
|
"aria-controls": `accordion-collapse-body-${c.itemNumber}`,
|
|
@@ -5519,25 +5519,25 @@ function us(n, e, t = {}) {
|
|
|
5519
5519
|
window: r = Wn,
|
|
5520
5520
|
immediate: a = !0
|
|
5521
5521
|
} = t, l = ds(() => r && "IntersectionObserver" in r), c = k(() => {
|
|
5522
|
-
const
|
|
5523
|
-
return (Array.isArray(
|
|
5522
|
+
const g = d0(n);
|
|
5523
|
+
return (Array.isArray(g) ? g : [g]).map($t).filter(Vn);
|
|
5524
5524
|
});
|
|
5525
5525
|
let d = u0;
|
|
5526
5526
|
const u = e2(a), f = l.value ? G2(
|
|
5527
5527
|
() => [c.value, $t(i), u.value],
|
|
5528
|
-
([
|
|
5529
|
-
if (d(), !u.value || !
|
|
5528
|
+
([g, p]) => {
|
|
5529
|
+
if (d(), !u.value || !g.length)
|
|
5530
5530
|
return;
|
|
5531
|
-
const
|
|
5531
|
+
const C = new IntersectionObserver(
|
|
5532
5532
|
e,
|
|
5533
5533
|
{
|
|
5534
|
-
root: $t(
|
|
5534
|
+
root: $t(p),
|
|
5535
5535
|
rootMargin: o,
|
|
5536
5536
|
threshold: s
|
|
5537
5537
|
}
|
|
5538
5538
|
);
|
|
5539
|
-
|
|
5540
|
-
|
|
5539
|
+
g.forEach((b) => b && C.observe(b)), d = () => {
|
|
5540
|
+
C.disconnect(), d = u0;
|
|
5541
5541
|
};
|
|
5542
5542
|
},
|
|
5543
5543
|
{ immediate: a, flush: "post" }
|
|
@@ -5731,7 +5731,7 @@ const hs = /* @__PURE__ */ t2({
|
|
|
5731
5731
|
startOpen: !1
|
|
5732
5732
|
});
|
|
5733
5733
|
return (a, l) => {
|
|
5734
|
-
var c, d, u, f, h,
|
|
5734
|
+
var c, d, u, f, h, g;
|
|
5735
5735
|
return m(), v("div", {
|
|
5736
5736
|
class: M({
|
|
5737
5737
|
[`${((c = t.value) == null ? void 0 : c.root) ?? ""}`]: !0,
|
|
@@ -5758,7 +5758,7 @@ const hs = /* @__PURE__ */ t2({
|
|
|
5758
5758
|
"data-accordion-target": "#accordion-collapse-body-1",
|
|
5759
5759
|
"aria-expanded": "true",
|
|
5760
5760
|
"aria-controls": `accordion-collapse-body-${a.itemNumber}`,
|
|
5761
|
-
onClick: l[0] || (l[0] = ae((
|
|
5761
|
+
onClick: l[0] || (l[0] = ae((p) => o.value = !o.value, ["prevent"]))
|
|
5762
5762
|
}, [
|
|
5763
5763
|
$("span", null, Y(a.headline), 1),
|
|
5764
5764
|
$("div", {
|
|
@@ -5779,7 +5779,7 @@ const hs = /* @__PURE__ */ t2({
|
|
|
5779
5779
|
], 10, gs),
|
|
5780
5780
|
$("div", {
|
|
5781
5781
|
id: `accordion-collapse-body-${a.itemNumber}`,
|
|
5782
|
-
class: M(`accordion-item-body text-${y(i).copy} ${o.value ? "active" : "hidden"} ${((
|
|
5782
|
+
class: M(`accordion-item-body text-${y(i).copy} ${o.value ? "active" : "hidden"} ${((g = t.value) == null ? void 0 : g.bodyCopy) ?? ""}`),
|
|
5783
5783
|
"aria-labelledby": `accordion-collapse-heading-${a.itemNumber}`
|
|
5784
5784
|
}, [
|
|
5785
5785
|
r.value ? (m(), D(ge, x0(B({ key: 0 }, r.value)), null, 16)) : (m(), v("div", {
|
|
@@ -5840,7 +5840,7 @@ const hs = /* @__PURE__ */ t2({
|
|
|
5840
5840
|
l("toggleAccordion", d);
|
|
5841
5841
|
};
|
|
5842
5842
|
return (d, u) => {
|
|
5843
|
-
var f, h, p, C,
|
|
5843
|
+
var f, h, g, p, C, b, w, Z, S, A;
|
|
5844
5844
|
return m(), v("div", {
|
|
5845
5845
|
class: M({
|
|
5846
5846
|
[`accordion-item-${d.itemNumber}`]: !0,
|
|
@@ -5855,14 +5855,14 @@ const hs = /* @__PURE__ */ t2({
|
|
|
5855
5855
|
}, [
|
|
5856
5856
|
$("div", {
|
|
5857
5857
|
id: `accordion-collapse-headline-${d.itemNumber}`,
|
|
5858
|
-
class: M(`flex accordion-item-headline text-2xl p-8 !mb-0 md:p-16 ${((h = i.value) == null ? void 0 : h.headline) ?? ""} bg-${(
|
|
5858
|
+
class: M(`flex accordion-item-headline text-2xl p-8 !mb-0 md:p-16 ${((h = i.value) == null ? void 0 : h.headline) ?? ""} bg-${(g = y(o).interactive) == null ? void 0 : g.bg}`)
|
|
5859
5859
|
}, [
|
|
5860
5860
|
d.image ? (m(), D(A2, B({ key: 0 }, d.image, {
|
|
5861
|
-
class: `${((
|
|
5861
|
+
class: `${((p = i.value) == null ? void 0 : p.image) ?? ""}`
|
|
5862
5862
|
}), null, 16, ["class"])) : _("", !0),
|
|
5863
5863
|
$("button", {
|
|
5864
5864
|
type: "button",
|
|
5865
|
-
class: M(`flex items-center w-full ${((
|
|
5865
|
+
class: M(`flex items-center w-full ${((C = i.value) == null ? void 0 : C.button) ?? ""} text-${(b = y(o).interactive) == null ? void 0 : b.copy}`),
|
|
5866
5866
|
"data-accordion-target": "#accordion-collapse-body-1",
|
|
5867
5867
|
"aria-expanded": "true",
|
|
5868
5868
|
"aria-controls": `accordion-collapse-body-${d.itemNumber}`,
|
|
@@ -6787,13 +6787,13 @@ const f6 = ["innerHTML"], p6 = {
|
|
|
6787
6787
|
if (!s.value)
|
|
6788
6788
|
return "";
|
|
6789
6789
|
const x = [];
|
|
6790
|
-
return
|
|
6791
|
-
}), d = k(() => s.value &&
|
|
6790
|
+
return p === "ContentModule" && C === "Image" && x.push("lg:flex lg:items-center lg:z-10"), p !== "Image" && (x.push("py-16 px-16 lg:py-0 lg:px-16"), e.testimonialTile && x.push("pt-8 pb-0 lg:pt-0 lg:pb-0")), e.mobileImagePosition === "Bottom" && x.push("pt-16 pb-0 lg:py-0"), N(...x);
|
|
6791
|
+
}), d = k(() => s.value && C !== "Image" ? "py-16 lg:pr-16 lg:pl-0 px-12" : s.value && C === "Image" ? e.testimonialTile ? "hidden lg:block lg:absolute lg:h-[100%] lg:-right-[100px] lg:z-0 clip-hero" : "max-h-[500px] lg:max-h-none overflow-hidden lg:overflow-visible lg:absolute lg:h-[100%] lg:-right-[100px] lg:z-0 clip-hero" : a.value && C === "Image" ? "md:absolute md:right-0 md:top-0 md:h-full md:w-1/2" : ""), u = k(() => {
|
|
6792
6792
|
var x, L, O, H;
|
|
6793
6793
|
return N(
|
|
6794
6794
|
`container-module ${e.testimonialTile ? "lg:flex" : "md:flex"} ${e.backgroundImage ? "" : `bg-${t}`} relative ${s.value ? "overflow-hidden" : ""} ${(x = o.value) == null ? void 0 : x.root} ${s.value ? e.backgroundImage ? `lg:h-[60vw] lg:max-h-[33.75rem] ${(L = o.value) == null ? void 0 : L.container}` : `${(O = o.value) == null ? void 0 : O.container}` : ""} `,
|
|
6795
6795
|
a.value ? `${(H = o.value) == null ? void 0 : H.container}` : "",
|
|
6796
|
-
s.value &&
|
|
6796
|
+
s.value && p === "ContentModule" && C === "Image" ? "lg:h-[33.75rem] " : "",
|
|
6797
6797
|
e.class ?? "",
|
|
6798
6798
|
e.mobileImagePosition === "Top" && s.value && !e.testimonialTile ? "clip-mobile-hero lg:no-clip" : ""
|
|
6799
6799
|
);
|
|
@@ -6804,10 +6804,10 @@ const f6 = ["innerHTML"], p6 = {
|
|
|
6804
6804
|
var L, O;
|
|
6805
6805
|
let x = JSON.parse(JSON.stringify(e.backgroundImage));
|
|
6806
6806
|
return x != null && x.media.width && (x.media.width = void 0), x != null && x.media.height && (x.media.height = void 0), (L = x == null ? void 0 : x.mobileMedia) != null && L.width && (x.mobileMedia.width = void 0), (O = x == null ? void 0 : x.mobileMedia) != null && O.height && (x.mobileMedia.height = void 0), x;
|
|
6807
|
-
}),
|
|
6807
|
+
}), g = ((I = e.fullWidthContent) == null ? void 0 : I.__typename) === "TileContent" ? "TileContentTextTile" : (F = e.fullWidthContent) == null ? void 0 : F.__typename, p = ((E = e.start) == null ? void 0 : E.__typename) === "TileContent" ? "TileContentTextTile" : (j = e.start) == null ? void 0 : j.__typename, C = ((R = e.end) == null ? void 0 : R.__typename) === "TileContent" ? "TileContentTextTile" : (T = e.end) == null ? void 0 : T.__typename, b = (x) => {
|
|
6808
6808
|
const L = x;
|
|
6809
6809
|
return L == null ? void 0 : L.backgroundColor;
|
|
6810
|
-
}, w =
|
|
6810
|
+
}, w = g === "TileCollectionModule" || p === "TileCollectionModule" || C === "TileCollectionModule", Z = k(() => {
|
|
6811
6811
|
var x, L;
|
|
6812
6812
|
return ((x = e.end) == null ? void 0 : x.__typename) === "Image" || ((L = e.end) == null ? void 0 : L.__typename) === "Video";
|
|
6813
6813
|
}), S = k(() => {
|
|
@@ -6818,7 +6818,7 @@ const f6 = ["innerHTML"], p6 = {
|
|
|
6818
6818
|
var z, G, X, M2;
|
|
6819
6819
|
const x = ((z = e.start) == null ? void 0 : z.__typename) === "Accordion", L = ((G = e.end) == null ? void 0 : G.__typename) === "Accordion", O = ((X = e.start) == null ? void 0 : X.__typename) === "TileCollectionModule", H = ((M2 = e.end) == null ? void 0 : M2.__typename) === "TileCollectionModule";
|
|
6820
6820
|
return x && L ? "basis-2/3 md:pl-8" : L ? "basis-2/3 md:pl-16" : x ? "basis-1/3" : O ? "lg:basis-2/5" : H ? "lg:basis-3/5" : "basis-1/2";
|
|
6821
|
-
}), P = k(() => a.value &&
|
|
6821
|
+
}), P = k(() => a.value && C === "Image" ? "h-full w-full object-cover object-right" : s.value && C === "Image" ? "max-h-[500px] lg:max-h-none lg:h-full w-full object-cover" : "");
|
|
6822
6822
|
return (x, L) => {
|
|
6823
6823
|
const O = A2;
|
|
6824
6824
|
return m(), D(m2(x.isChild ? "div" : "section"), {
|
|
@@ -6858,10 +6858,10 @@ const f6 = ["innerHTML"], p6 = {
|
|
|
6858
6858
|
key: 0,
|
|
6859
6859
|
class: M(`container-module-full-width-content ${((M2 = o.value) == null ? void 0 : M2.fullWidthContent) ?? ""} ${r.value ? "mx-auto" : ""}`)
|
|
6860
6860
|
}, [
|
|
6861
|
-
y(
|
|
6861
|
+
y(g) ? (m(), D(m2(y(g)), B({ key: 0 }, x.fullWidthContent, {
|
|
6862
6862
|
"is-child": !0,
|
|
6863
6863
|
"use-child-headline": !!x.headline,
|
|
6864
|
-
"is-hero": !!(y(
|
|
6864
|
+
"is-hero": !!(y(g) === "ContentModule" && s.value),
|
|
6865
6865
|
"background-color": b(x.fullWidthContent),
|
|
6866
6866
|
"parent-background-color": y(t),
|
|
6867
6867
|
"parent-has-background-image": !!x.backgroundImage
|
|
@@ -6869,32 +6869,32 @@ const f6 = ["innerHTML"], p6 = {
|
|
|
6869
6869
|
], 2)) : (m(), v(q, { key: 1 }, [
|
|
6870
6870
|
x.start ? (m(), v("div", {
|
|
6871
6871
|
key: 0,
|
|
6872
|
-
class: M(`container-module-start ${a.value ? "md:basis-1/2" : S.value} ${((w2 = o.value) == null ? void 0 : w2.start) ?? ""} ${c.value} ${a.value && y(
|
|
6872
|
+
class: M(`container-module-start ${a.value ? "md:basis-1/2" : S.value} ${((w2 = o.value) == null ? void 0 : w2.start) ?? ""} ${c.value} ${a.value && y(p) === "Image" ? "" : a.value ? "p-8 md:p-12 lg:p-16 flex items-center" : ""}`)
|
|
6873
6873
|
}, [
|
|
6874
|
-
y(
|
|
6874
|
+
y(p) ? (m(), D(m2(y(p)), B({ key: 0 }, x.start, {
|
|
6875
6875
|
"is-child": !0,
|
|
6876
6876
|
"use-child-headline": !!x.headline,
|
|
6877
|
-
"is-hero": !!(y(
|
|
6878
|
-
"is-feature": !!(y(
|
|
6877
|
+
"is-hero": !!(y(p) === "ContentModule" && s.value && !a.value),
|
|
6878
|
+
"is-feature": !!(y(p) === "ContentModule" && a.value),
|
|
6879
6879
|
"background-color": b(x.start),
|
|
6880
6880
|
"parent-background-color": y(t),
|
|
6881
6881
|
"parent-has-background-image": !!x.backgroundImage,
|
|
6882
|
-
class: a.value && y(
|
|
6882
|
+
class: a.value && y(p) === "Image" ? "h-full w-full object-cover" : ""
|
|
6883
6883
|
}), null, 16, ["use-child-headline", "is-hero", "is-feature", "background-color", "parent-background-color", "parent-has-background-image", "class"])) : _("", !0)
|
|
6884
6884
|
], 2)) : _("", !0),
|
|
6885
6885
|
$("div", {
|
|
6886
|
-
class: M(`container-module-end ${a.value ? "md:basis-1/2" : A.value} ${((W2 = o.value) == null ? void 0 : W2.end) ?? ""} ${d.value} ${a.value && y(
|
|
6886
|
+
class: M(`container-module-end ${a.value ? "md:basis-1/2" : A.value} ${((W2 = o.value) == null ? void 0 : W2.end) ?? ""} ${d.value} ${a.value && y(C) === "Image" ? "" : a.value ? "p-8 md:p-12 lg:p-16 flex items-center" : ""}`)
|
|
6887
6887
|
}, [
|
|
6888
|
-
y(
|
|
6888
|
+
y(C) ? (m(), D(m2(y(C)), B({ key: 0 }, x.end, {
|
|
6889
6889
|
"is-child": !0,
|
|
6890
6890
|
"use-child-headline": !!x.headline,
|
|
6891
|
-
"is-hero": !!(y(
|
|
6892
|
-
"is-feature": !!(y(
|
|
6891
|
+
"is-hero": !!(y(C) === "ContentModule" && s.value && !a.value),
|
|
6892
|
+
"is-feature": !!(y(C) === "ContentModule" && a.value),
|
|
6893
6893
|
"background-color": b(x.end),
|
|
6894
6894
|
"parent-background-color": y(t),
|
|
6895
6895
|
"parent-has-background-image": !!x.backgroundImage,
|
|
6896
6896
|
class: P.value,
|
|
6897
|
-
"mobile-breakpoint": s.value && y(
|
|
6897
|
+
"mobile-breakpoint": s.value && y(C) === "Image" ? "lg" : "md"
|
|
6898
6898
|
}), null, 16, ["use-child-headline", "is-hero", "is-feature", "background-color", "parent-background-color", "parent-has-background-image", "class", "mobile-breakpoint"])) : _("", !0)
|
|
6899
6899
|
], 2)
|
|
6900
6900
|
], 64))
|
|
@@ -6961,53 +6961,53 @@ const u1 = (n, e) => {
|
|
|
6961
6961
|
const t = n, i = e, o = k(
|
|
6962
6962
|
() => W(wn[t.buttonType], t.pt ?? {})
|
|
6963
6963
|
), s = k(() => t.buttonType === "link" || t.buttonType === "logo"), { palette: r } = C2(t), a = k(() => {
|
|
6964
|
-
var
|
|
6965
|
-
return ((
|
|
6964
|
+
var p;
|
|
6965
|
+
return ((p = r == null ? void 0 : r.cta) == null ? void 0 : p[t.buttonType]) || {
|
|
6966
6966
|
copy: "soil",
|
|
6967
6967
|
bg: "lily"
|
|
6968
6968
|
};
|
|
6969
6969
|
}), l = k(() => {
|
|
6970
|
-
var
|
|
6971
|
-
const
|
|
6970
|
+
var C;
|
|
6971
|
+
const p = [
|
|
6972
6972
|
"cta whitespace-nowrap",
|
|
6973
|
-
N(((
|
|
6973
|
+
N(((C = o.value) == null ? void 0 : C.root) ?? "", t.class ?? "", "flex items-center gap-2")
|
|
6974
6974
|
];
|
|
6975
|
-
if ((t.buttonType === "link" || t.buttonType === "logo") &&
|
|
6975
|
+
if ((t.buttonType === "link" || t.buttonType === "logo") && p.push("hover:underline"), p.push(`text-${t.textColor ?? a.value.copy}`), t.size)
|
|
6976
6976
|
switch (t.size) {
|
|
6977
6977
|
case "sm":
|
|
6978
|
-
|
|
6978
|
+
p.push("*:text-sm"), t.buttonType === "fill" && p.push("py-0.5 px-4");
|
|
6979
6979
|
break;
|
|
6980
6980
|
case "lg":
|
|
6981
|
-
|
|
6981
|
+
p.push("*:text-lg font-bold"), t.buttonType === "fill" && p.push("py-1.5 px-8");
|
|
6982
6982
|
break;
|
|
6983
6983
|
case "xl":
|
|
6984
|
-
|
|
6984
|
+
p.push("*:text-xl font-bold"), t.buttonType === "fill" && p.push("py-2 px-12");
|
|
6985
6985
|
break;
|
|
6986
6986
|
case "xxl":
|
|
6987
|
-
|
|
6987
|
+
p.push("*:text-3xl font-bold"), t.buttonType === "fill" && p.push("py-2 px-16");
|
|
6988
6988
|
break;
|
|
6989
6989
|
}
|
|
6990
|
-
return t.buttonType === "fill" && (
|
|
6990
|
+
return t.buttonType === "fill" && (p.push("rounded-[2rem]"), (t.color || a.value.bg) && p.push(`bg-${t.color || a.value.bg}`), t.size || p.push("py-1 px-4")), t.buttonType !== "outline" && a.value.border && p.push(`border-${t.color ?? a.value.border}`), p.join(" ");
|
|
6991
6991
|
}), c = k(() => {
|
|
6992
|
-
var
|
|
6993
|
-
return (
|
|
6992
|
+
var p, C, b, w, Z, S;
|
|
6993
|
+
return (C = (p = t.link) == null ? void 0 : p.page) != null && C.slug ? `${(w = (b = t.link) == null ? void 0 : b.page) == null ? void 0 : w.slug}` : (Z = t.link) != null && Z.externalUrl ? (S = t.link) == null ? void 0 : S.externalUrl : "";
|
|
6994
6994
|
}), d = k(() => {
|
|
6995
|
-
var
|
|
6996
|
-
return !!((
|
|
6995
|
+
var p;
|
|
6996
|
+
return !!((p = t.link) != null && p.externalUrl);
|
|
6997
6997
|
}), u = k(() => {
|
|
6998
|
-
var
|
|
6999
|
-
return t.ariaLabel ?? ((
|
|
6998
|
+
var p;
|
|
6999
|
+
return t.ariaLabel ?? ((p = t.link) == null ? void 0 : p.ariaLabel) ?? t.title;
|
|
7000
7000
|
}), f = k(() => {
|
|
7001
|
-
var
|
|
7002
|
-
return (
|
|
7001
|
+
var p, C;
|
|
7002
|
+
return (p = t.ctaAction) != null && p.ariaDescription ? t.ctaAction.ariaDescription : t.ariaDescription ?? ((C = t.link) == null ? void 0 : C.ariaDescription) ?? "";
|
|
7003
7003
|
}), h = k(() => {
|
|
7004
|
-
var
|
|
7005
|
-
return d.value ? (
|
|
7006
|
-
}),
|
|
7007
|
-
var
|
|
7008
|
-
(
|
|
7004
|
+
var p;
|
|
7005
|
+
return d.value ? (p = t.link) == null ? void 0 : p.thirdPartyId : void 0;
|
|
7006
|
+
}), g = () => {
|
|
7007
|
+
var p;
|
|
7008
|
+
(p = t.ctaAction) != null && p.triggerMappingValue && i("trigger", t.ctaAction.triggerMappingValue), t.onClick && t.onClick();
|
|
7009
7009
|
};
|
|
7010
|
-
return (
|
|
7010
|
+
return (p, C) => {
|
|
7011
7011
|
var w;
|
|
7012
7012
|
const b = A2;
|
|
7013
7013
|
return m(), D(m2("a"), {
|
|
@@ -7018,32 +7018,32 @@ const u1 = (n, e) => {
|
|
|
7018
7018
|
target: y(u1)(t.target || ((w = t.link) == null ? void 0 : w.target), t.link),
|
|
7019
7019
|
rel: d.value ? "noopener" : "",
|
|
7020
7020
|
class: M(t.class),
|
|
7021
|
-
onClick:
|
|
7021
|
+
onClick: g
|
|
7022
7022
|
}, {
|
|
7023
7023
|
default: u2(() => [
|
|
7024
7024
|
F2(y(ht), {
|
|
7025
7025
|
class: M(l.value),
|
|
7026
7026
|
link: s.value,
|
|
7027
|
-
onClick:
|
|
7027
|
+
onClick: g
|
|
7028
7028
|
}, {
|
|
7029
7029
|
default: u2(() => {
|
|
7030
7030
|
var Z, S, A;
|
|
7031
7031
|
return [
|
|
7032
7032
|
$("div", b6, [
|
|
7033
|
-
|
|
7033
|
+
p.logo ? (m(), v("div", {
|
|
7034
7034
|
key: 0,
|
|
7035
|
-
class: M(`flex items-center ${
|
|
7035
|
+
class: M(`flex items-center ${p.buttonType === "logo" ? (Z = o.value) == null ? void 0 : Z.logo : ""} ${p.buttonType === "logo" ? `bg-${t.textColor ?? a.value.copy}` : ""}`)
|
|
7036
7036
|
}, [
|
|
7037
|
-
typeof
|
|
7037
|
+
typeof p.logo == "object" ? (m(), D(b, x0(B({ key: 0 }, p.logo)), null, 16)) : typeof p.logo == "string" ? (m(), v("div", {
|
|
7038
7038
|
key: 1,
|
|
7039
|
-
class: M(y(N)(
|
|
7039
|
+
class: M(y(N)(p.logo, (S = o.value) == null ? void 0 : S.logo))
|
|
7040
7040
|
}, null, 2)) : _("", !0)
|
|
7041
7041
|
], 2)) : _("", !0),
|
|
7042
7042
|
$("p", {
|
|
7043
7043
|
class: M(
|
|
7044
7044
|
y(N)("pointer-events-none whitespace-nowrap", ((A = o.value) == null ? void 0 : A.headline) ?? "")
|
|
7045
7045
|
)
|
|
7046
|
-
}, Y(
|
|
7046
|
+
}, Y(p.title), 3)
|
|
7047
7047
|
])
|
|
7048
7048
|
];
|
|
7049
7049
|
}),
|
|
@@ -7069,6 +7069,7 @@ const u1 = (n, e) => {
|
|
|
7069
7069
|
logo: {},
|
|
7070
7070
|
isHero: { type: Boolean, default: !1 },
|
|
7071
7071
|
alignment: { default: E2.Left },
|
|
7072
|
+
bodyCopyAlignment: {},
|
|
7072
7073
|
isChild: { type: Boolean },
|
|
7073
7074
|
useChildHeadline: { type: Boolean },
|
|
7074
7075
|
parentHasBackgroundImage: { type: Boolean, default: !1 },
|
|
@@ -7090,19 +7091,19 @@ const u1 = (n, e) => {
|
|
|
7090
7091
|
p = "justify-start";
|
|
7091
7092
|
}
|
|
7092
7093
|
return p;
|
|
7093
|
-
}), r = k(
|
|
7094
|
+
}), r = k(() => e.bodyCopyAlignment ? `text-${e.bodyCopyAlignment.toLowerCase()}` : o.value), a = k(
|
|
7094
7095
|
() => {
|
|
7095
7096
|
var p, C;
|
|
7096
7097
|
return `${((p = i.value) == null ? void 0 : p.logo) ?? ""} ${((C = e == null ? void 0 : e.logo) == null ? void 0 : C.class) ?? ""} max-w-[50%]`;
|
|
7097
7098
|
}
|
|
7098
|
-
), { backgroundColor:
|
|
7099
|
+
), { backgroundColor: l, palette: c } = C2({
|
|
7099
7100
|
...e,
|
|
7100
7101
|
backgroundColor: e.backgroundColor || e.parentBackgroundColor
|
|
7101
|
-
}),
|
|
7102
|
+
}), d = k(() => {
|
|
7102
7103
|
var C;
|
|
7103
7104
|
const p = [
|
|
7104
|
-
`content-module-headline ${
|
|
7105
|
-
`text-${
|
|
7105
|
+
`content-module-headline ${h ? "" : "max-w-[30ch]"} ${t === E2.Center ? "mx-auto" : t === E2.Right ? "ml-auto" : ""}`,
|
|
7106
|
+
`text-${c.headline}`,
|
|
7106
7107
|
N(((C = i == null ? void 0 : i.value) == null ? void 0 : C.headline) ?? "", o.value)
|
|
7107
7108
|
];
|
|
7108
7109
|
return e.isHero && e.isChild ? p.push(
|
|
@@ -7114,74 +7115,74 @@ const u1 = (n, e) => {
|
|
|
7114
7115
|
) : p.push(
|
|
7115
7116
|
"text-[27px] leading-[27px] md:text-[48px] md:leading-[48px]"
|
|
7116
7117
|
), p.join(" ");
|
|
7117
|
-
}),
|
|
7118
|
+
}), u = k(() => {
|
|
7118
7119
|
var C;
|
|
7119
7120
|
return [
|
|
7120
7121
|
`content-module-subheadline text-[17px] md:text-[22px] ${t === E2.Center ? "mx-auto" : t === E2.Right ? "ml-auto" : ""}`,
|
|
7121
|
-
`text-${
|
|
7122
|
+
`text-${c.subheadline}`,
|
|
7122
7123
|
N(((C = i == null ? void 0 : i.value) == null ? void 0 : C.subheadline) ?? "", o.value)
|
|
7123
7124
|
].join(" ");
|
|
7124
|
-
}),
|
|
7125
|
+
}), f = k(() => e.headline ? e.headline.replace(/<[^>]*>/g, "").trim().length > 0 : !1), h = t === E2.Inline, g = k(() => {
|
|
7125
7126
|
const p = e.bodyCopy || e.ctas || e.image;
|
|
7126
|
-
return
|
|
7127
|
+
return h ? "space-y-[10px]" : `space-y-[10px] ${p ? "mb-6" : ""}`;
|
|
7127
7128
|
});
|
|
7128
7129
|
return (p, C) => {
|
|
7129
|
-
var
|
|
7130
|
+
var b, w, Z, S, A, P;
|
|
7130
7131
|
return m(), v("div", {
|
|
7131
|
-
class: M(`content-module ${p.isChild ? "" : "p-8 md:p-16"} ${((
|
|
7132
|
+
class: M(`content-module ${p.isChild ? "" : "p-8 md:p-16"} ${((b = i.value) == null ? void 0 : b.root) ?? ""} ${e.class ?? ""} ${!e.parentHasBackgroundImage && (e.backgroundColor || !p.isChild) ? `bg-${y(l)}` : ""}`)
|
|
7132
7133
|
}, [
|
|
7133
7134
|
$("div", {
|
|
7134
|
-
class: M(`content-module-container mx-auto ${((
|
|
7135
|
+
class: M(`content-module-container mx-auto ${((w = i.value) == null ? void 0 : w.container) ?? ""} ${y(t) === y(E2).Inline ? "flex flex-col md:flex-row justify-between items-center md:gap-4" : ""}`)
|
|
7135
7136
|
}, [
|
|
7136
|
-
p.logo ? (m(), D(A2, B({ key: 0 }, p.logo, { class:
|
|
7137
|
-
|
|
7137
|
+
p.logo ? (m(), D(A2, B({ key: 0 }, p.logo, { class: a.value }), null, 16, ["class"])) : _("", !0),
|
|
7138
|
+
f.value || p.subHeadline ? (m(), v("div", {
|
|
7138
7139
|
key: 1,
|
|
7139
|
-
class: M(
|
|
7140
|
+
class: M(g.value)
|
|
7140
7141
|
}, [
|
|
7141
7142
|
p.subHeadline && !p.isHero ? (m(), v("h6", {
|
|
7142
7143
|
key: 0,
|
|
7143
|
-
class: M(
|
|
7144
|
+
class: M(u.value)
|
|
7144
7145
|
}, Y(p.subHeadline), 3)) : _("", !0),
|
|
7145
|
-
|
|
7146
|
+
f.value ? (m(), v("div", y6, [
|
|
7146
7147
|
p.isHero ? (m(), v("h1", {
|
|
7147
7148
|
key: 0,
|
|
7148
|
-
class: M(
|
|
7149
|
+
class: M(d.value),
|
|
7149
7150
|
innerHTML: p.headline
|
|
7150
7151
|
}, null, 10, v6)) : p.useChildHeadline ? (m(), v("h3", {
|
|
7151
7152
|
key: 1,
|
|
7152
|
-
class: M(
|
|
7153
|
+
class: M(d.value),
|
|
7153
7154
|
innerHTML: p.headline
|
|
7154
7155
|
}, null, 10, M6)) : (m(), v("h2", {
|
|
7155
7156
|
key: 2,
|
|
7156
|
-
class: M(
|
|
7157
|
+
class: M(d.value),
|
|
7157
7158
|
innerHTML: p.headline
|
|
7158
7159
|
}, null, 10, x6))
|
|
7159
7160
|
])) : _("", !0),
|
|
7160
7161
|
p.subHeadline && p.isHero ? (m(), v("h6", {
|
|
7161
7162
|
key: 2,
|
|
7162
|
-
class: M(
|
|
7163
|
+
class: M(u.value)
|
|
7163
7164
|
}, Y(p.subHeadline), 3)) : _("", !0)
|
|
7164
7165
|
], 2)) : _("", !0),
|
|
7165
7166
|
p.bodyCopy ? (m(), v("div", {
|
|
7166
7167
|
key: 2,
|
|
7167
|
-
class: M(`content-module-body-copy text-[17px] text-${y(
|
|
7168
|
+
class: M(`content-module-body-copy text-[17px] text-${y(c).copy} ${p.isHero ? "lg:max-w-[80%]" : ""} ${y(N)(((Z = i.value) == null ? void 0 : Z.bodyCopy) ?? "", r.value)}`),
|
|
7168
7169
|
style: k2({
|
|
7169
|
-
"--copy-accent-color": `var(--${y(
|
|
7170
|
-
"--bullet-color": `var(--${y(
|
|
7170
|
+
"--copy-accent-color": `var(--${y(c).copyAccent})`,
|
|
7171
|
+
"--bullet-color": `var(--${y(c).bullet})`
|
|
7171
7172
|
}),
|
|
7172
7173
|
innerHTML: p.bodyCopy
|
|
7173
7174
|
}, null, 14, w6)) : _("", !0),
|
|
7174
7175
|
p.image ? (m(), D(A2, B({ key: 3 }, p.image, {
|
|
7175
|
-
class: `content-module-image ${y(N)(((
|
|
7176
|
+
class: `content-module-image ${y(N)(((S = i.value) == null ? void 0 : S.image) ?? "", o.value)} ${((A = p.image) == null ? void 0 : A.class) ?? ""}`
|
|
7176
7177
|
}), null, 16, ["class"])) : _("", !0),
|
|
7177
7178
|
p.ctas ? (m(), v("div", {
|
|
7178
7179
|
key: 4,
|
|
7179
|
-
class: M(`content-module-ctas flex flex-wrap items-center gap-4 ${p.isHero ? "justify-center lg:justify-start" : s.value} ${y(N)(((
|
|
7180
|
+
class: M(`content-module-ctas flex flex-wrap items-center gap-4 ${p.isHero ? "justify-center lg:justify-start" : s.value} ${y(N)(((P = i.value) == null ? void 0 : P.ctas) ?? "", o.value, h ? "md:mt-0" : "")}`)
|
|
7180
7181
|
}, [
|
|
7181
|
-
(m(!0), v(q, null, n2(p.ctas, (
|
|
7182
|
-
key: `cta-${
|
|
7182
|
+
(m(!0), v(q, null, n2(p.ctas, (I, F) => (m(), D(D2, B({ ref_for: !0 }, I, {
|
|
7183
|
+
key: `cta-${I.title}-${F}`,
|
|
7183
7184
|
class: `content-module-cta ${p.isHero ? "w-auto justify-center" : ""}`,
|
|
7184
|
-
"background-color": y(
|
|
7185
|
+
"background-color": y(l)
|
|
7185
7186
|
}), null, 16, ["class", "background-color"]))), 128))
|
|
7186
7187
|
], 2)) : _("", !0)
|
|
7187
7188
|
], 2)
|
|
@@ -7255,41 +7256,41 @@ const Z6 = {
|
|
|
7255
7256
|
return (f = e.link) != null && f.externalUrl ? (h = e.link) == null ? void 0 : h.thirdPartyId : void 0;
|
|
7256
7257
|
}
|
|
7257
7258
|
), r = k(() => {
|
|
7258
|
-
var f, h, p, C,
|
|
7259
|
-
return (h = (f = e.link) == null ? void 0 : f.page) != null && h.slug ? `${(
|
|
7259
|
+
var f, h, g, p, C, b;
|
|
7260
|
+
return (h = (f = e.link) == null ? void 0 : f.page) != null && h.slug ? `${(p = (g = e.link) == null ? void 0 : g.page) == null ? void 0 : p.slug}` : (C = e.link) != null && C.externalUrl ? (b = e.link) == null ? void 0 : b.externalUrl : "";
|
|
7260
7261
|
}), a = k(() => {
|
|
7261
|
-
var f, h,
|
|
7262
|
-
return (h = (f = e.link) == null ? void 0 : f.page) != null && h.slug || (
|
|
7262
|
+
var f, h, g;
|
|
7263
|
+
return (h = (f = e.link) == null ? void 0 : f.page) != null && h.slug || (g = e.link) != null && g.externalUrl ? "a" : "button";
|
|
7263
7264
|
}), l = k(() => o0[e.elementType ?? "header"]), c = e2(!1), d = k(
|
|
7264
7265
|
() => `relative py-2 md:py-0 ${e.class ?? ""} ${e.isChild ? "sub-" : ""}navigation-element`
|
|
7265
7266
|
), u = () => {
|
|
7266
7267
|
c.value = !c.value;
|
|
7267
7268
|
};
|
|
7268
7269
|
return (f, h) => {
|
|
7269
|
-
const
|
|
7270
|
+
const g = jt("NavigationElement", !0);
|
|
7270
7271
|
return m(), D(m2(f.isChild ? "li" : "div"), {
|
|
7271
7272
|
class: M(d.value)
|
|
7272
7273
|
}, {
|
|
7273
7274
|
default: u2(() => {
|
|
7274
|
-
var
|
|
7275
|
+
var p;
|
|
7275
7276
|
return [
|
|
7276
7277
|
l.value === y(o0).header || f.isChild && (r.value || f.subNavigation) ? (m(), D(m2(a.value), {
|
|
7277
7278
|
key: 0,
|
|
7278
7279
|
id: s.value,
|
|
7279
7280
|
href: r.value ?? "",
|
|
7280
|
-
target: e.link ? y(u1)((
|
|
7281
|
+
target: e.link ? y(u1)((p = e.link) == null ? void 0 : p.target, e.link) : "_self",
|
|
7281
7282
|
class: M(`flex leading-tight items-center hover:underline cursor-pointer text-${y(o).copy} ${l.value === y(o0).header ? "whitespace-nowrap" : ""}`),
|
|
7282
7283
|
"aria-expanded": a.value === "button" ? !0 : void 0,
|
|
7283
7284
|
"aria-haspopup": a.value === "button" ? !0 : void 0,
|
|
7284
7285
|
onClick: u
|
|
7285
7286
|
}, {
|
|
7286
7287
|
default: u2(() => {
|
|
7287
|
-
var
|
|
7288
|
+
var C;
|
|
7288
7289
|
return [
|
|
7289
7290
|
F0(Y(f.title) + " ", 1),
|
|
7290
7291
|
!f.isChild && f.subNavigation && !(r.value || f.isChild) ? (m(), v("div", {
|
|
7291
7292
|
key: 0,
|
|
7292
|
-
class: M((
|
|
7293
|
+
class: M((C = t.value) == null ? void 0 : C.icon)
|
|
7293
7294
|
}, [
|
|
7294
7295
|
T2($("i", Z6, null, 512), [
|
|
7295
7296
|
[z2, !c.value]
|
|
@@ -7317,13 +7318,13 @@ const Z6 = {
|
|
|
7317
7318
|
"aria-labelledby": "menu-button",
|
|
7318
7319
|
tabindex: "-1"
|
|
7319
7320
|
}, [
|
|
7320
|
-
(m(!0), v(q, null, n2(f.subNavigation, (
|
|
7321
|
-
key:
|
|
7321
|
+
(m(!0), v(q, null, n2(f.subNavigation, (C, b) => (m(), D(g, B({
|
|
7322
|
+
key: C.title,
|
|
7322
7323
|
class: ["ms-3 sm:ms-0", `sub-navigation-element-item-${b}`],
|
|
7323
7324
|
role: "menuitem",
|
|
7324
7325
|
tabindex: "-1",
|
|
7325
7326
|
ref_for: !0
|
|
7326
|
-
}, { ...
|
|
7327
|
+
}, { ...C, elementType: f.elementType, isChild: !0, backgroundColor: y(i) }), null, 16, ["class"]))), 128))
|
|
7327
7328
|
], 2)) : _("", !0),
|
|
7328
7329
|
f.htmlRef ? (m(), v("div", {
|
|
7329
7330
|
key: 3,
|
|
@@ -7624,25 +7625,25 @@ const Z6 = {
|
|
|
7624
7625
|
return (f, h) => (m(), v("header", W6, [
|
|
7625
7626
|
$("div", U6, [
|
|
7626
7627
|
c.value.length > 0 || d.value.length > 0 ? (m(), v("nav", Y6, [
|
|
7627
|
-
(m(!0), v(q, null, n2(c.value, (
|
|
7628
|
-
key: `${
|
|
7628
|
+
(m(!0), v(q, null, n2(c.value, (g, p) => (m(), D(s0, B({
|
|
7629
|
+
key: `${g.title}-${p}`,
|
|
7629
7630
|
role: "menuitem",
|
|
7630
7631
|
tabindex: "-1",
|
|
7631
7632
|
ref_for: !0
|
|
7632
7633
|
}, {
|
|
7633
|
-
...
|
|
7634
|
-
class: `primary-nav-item-${
|
|
7634
|
+
...g,
|
|
7635
|
+
class: `primary-nav-item-${p} ${g.class || ""} ${g.dividerLine ? "md:border-r pr-4 h-full" : ""}`,
|
|
7635
7636
|
isChild: !1,
|
|
7636
7637
|
elementType: "header"
|
|
7637
7638
|
}, {
|
|
7638
|
-
onClick: (
|
|
7639
|
+
onClick: (C) => r("navigation-click", g)
|
|
7639
7640
|
}), null, 16, ["onClick"]))), 128)),
|
|
7640
|
-
(m(!0), v(q, null, n2(d.value, (
|
|
7641
|
-
key:
|
|
7642
|
-
class: ["my-4 sm:my-0",
|
|
7641
|
+
(m(!0), v(q, null, n2(d.value, (g) => (m(), D(D2, B({
|
|
7642
|
+
key: g.title,
|
|
7643
|
+
class: ["my-4 sm:my-0", g.buttonType === "fill" ? "justify-center w-full" : ""],
|
|
7643
7644
|
ref_for: !0
|
|
7644
|
-
},
|
|
7645
|
-
onClick: (
|
|
7645
|
+
}, g, {
|
|
7646
|
+
onClick: (p) => r("cta-click", g)
|
|
7646
7647
|
}), null, 16, ["class", "onClick"]))), 128))
|
|
7647
7648
|
])) : _("", !0)
|
|
7648
7649
|
]),
|
|
@@ -7656,18 +7657,18 @@ const Z6 = {
|
|
|
7656
7657
|
])) : _("", !0),
|
|
7657
7658
|
$("div", G6, [
|
|
7658
7659
|
c.value.length > 0 ? (m(), v("nav", Q6, [
|
|
7659
|
-
(m(!0), v(q, null, n2(c.value, (
|
|
7660
|
-
key: `${
|
|
7660
|
+
(m(!0), v(q, null, n2(c.value, (g, p) => (m(), D(s0, B({
|
|
7661
|
+
key: `${g.title}-${p}`,
|
|
7661
7662
|
role: "menuitem",
|
|
7662
7663
|
tabindex: "-1",
|
|
7663
7664
|
ref_for: !0
|
|
7664
7665
|
}, {
|
|
7665
|
-
...
|
|
7666
|
-
class: `h-full primary-nav-item-${
|
|
7666
|
+
...g,
|
|
7667
|
+
class: `h-full primary-nav-item-${p} ${g.class || ""} ${g.dividerLine ? "md:border-r pr-4" : ""}`,
|
|
7667
7668
|
isChild: !1,
|
|
7668
7669
|
elementType: "header"
|
|
7669
7670
|
}, {
|
|
7670
|
-
onClick: (
|
|
7671
|
+
onClick: (C) => r("navigation-click", g)
|
|
7671
7672
|
}), null, 16, ["onClick"]))), 128))
|
|
7672
7673
|
])) : _("", !0),
|
|
7673
7674
|
$("button", {
|
|
@@ -7675,7 +7676,7 @@ const Z6 = {
|
|
|
7675
7676
|
class: "block",
|
|
7676
7677
|
"aria-label": i.value ? "Close menu" : "Open menu",
|
|
7677
7678
|
"aria-expanded": i.value,
|
|
7678
|
-
onClick: h[0] || (h[0] = (
|
|
7679
|
+
onClick: h[0] || (h[0] = (g) => i.value = !i.value)
|
|
7679
7680
|
}, [
|
|
7680
7681
|
(m(), v("svg", {
|
|
7681
7682
|
class: M(`h-6 w-6 fill-${y(s).copy}`),
|
|
@@ -7691,45 +7692,45 @@ const Z6 = {
|
|
|
7691
7692
|
key: 0,
|
|
7692
7693
|
class: M(["primary-navigation text-sm xl:text-base items-center px-2 pt-2 pb-4 md:flex gap-2 lg:gap-4 md:justify-evenly md:p-0", i.value ? "block" : "hidden"])
|
|
7693
7694
|
}, [
|
|
7694
|
-
(m(!0), v(q, null, n2(u.value, (
|
|
7695
|
-
key: `mobile-${
|
|
7695
|
+
(m(!0), v(q, null, n2(u.value, (g, p) => (m(), D(s0, B({
|
|
7696
|
+
key: `mobile-${g.title}-${p}`,
|
|
7696
7697
|
role: "menuitem",
|
|
7697
7698
|
tabindex: "-1",
|
|
7698
7699
|
ref_for: !0
|
|
7699
7700
|
}, {
|
|
7700
|
-
...
|
|
7701
|
-
class: `md:hidden h-full primary-nav-item-${
|
|
7701
|
+
...g,
|
|
7702
|
+
class: `md:hidden h-full primary-nav-item-${p} ${g.class || ""} ${g.dividerLine ? "md:border-r pr-4" : ""}`,
|
|
7702
7703
|
isChild: !1,
|
|
7703
7704
|
elementType: "header"
|
|
7704
7705
|
}, {
|
|
7705
|
-
onClick: (
|
|
7706
|
+
onClick: (C) => r("navigation-click", g)
|
|
7706
7707
|
}), null, 16, ["onClick"]))), 128)),
|
|
7707
|
-
(m(!0), v(q, null, n2(a.value, (
|
|
7708
|
-
key: `desktop-${
|
|
7708
|
+
(m(!0), v(q, null, n2(a.value, (g, p) => (m(), D(s0, B({
|
|
7709
|
+
key: `desktop-${g.title}-${p}`,
|
|
7709
7710
|
role: "menuitem",
|
|
7710
7711
|
tabindex: "-1",
|
|
7711
7712
|
ref_for: !0
|
|
7712
7713
|
}, {
|
|
7713
|
-
...
|
|
7714
|
-
class: `hidden md:block h-full primary-nav-item-${
|
|
7714
|
+
...g,
|
|
7715
|
+
class: `hidden md:block h-full primary-nav-item-${p} ${g.class || ""} ${g.dividerLine ? "sm:border-r pr-4" : ""}`,
|
|
7715
7716
|
isChild: !1,
|
|
7716
7717
|
elementType: "header"
|
|
7717
7718
|
}, {
|
|
7718
|
-
onClick: (
|
|
7719
|
+
onClick: (C) => r("navigation-click", g)
|
|
7719
7720
|
}), null, 16, ["onClick"]))), 128)),
|
|
7720
|
-
(m(!0), v(q, null, n2(l.value, (
|
|
7721
|
-
key: `filtered-${
|
|
7722
|
-
class:
|
|
7721
|
+
(m(!0), v(q, null, n2(l.value, (g) => (m(), D(D2, B({
|
|
7722
|
+
key: `filtered-${g.title}`,
|
|
7723
|
+
class: g.buttonType === "fill" ? "justify-center w-full" : "",
|
|
7723
7724
|
ref_for: !0
|
|
7724
|
-
},
|
|
7725
|
-
onClick: (
|
|
7725
|
+
}, g, {
|
|
7726
|
+
onClick: (p) => r("cta-click", g)
|
|
7726
7727
|
}), null, 16, ["class", "onClick"]))), 128)),
|
|
7727
|
-
(m(!0), v(q, null, n2(d.value, (
|
|
7728
|
-
key:
|
|
7729
|
-
class: ["flex md:hidden my-2 md:my-0",
|
|
7728
|
+
(m(!0), v(q, null, n2(d.value, (g) => (m(), D(D2, B({
|
|
7729
|
+
key: g.title,
|
|
7730
|
+
class: ["flex md:hidden my-2 md:my-0", g.buttonType === "fill" ? "justify-center w-full" : ""],
|
|
7730
7731
|
ref_for: !0
|
|
7731
|
-
},
|
|
7732
|
-
onClick: (
|
|
7732
|
+
}, g, {
|
|
7733
|
+
onClick: (p) => r("cta-click", g)
|
|
7733
7734
|
}), null, 16, ["class", "onClick"]))), 128))
|
|
7734
7735
|
], 2)) : _("", !0)
|
|
7735
7736
|
])
|
|
@@ -7817,7 +7818,7 @@ const Z6 = {
|
|
|
7817
7818
|
color: e.textColor ?? "inherit"
|
|
7818
7819
|
}));
|
|
7819
7820
|
return (s, r) => {
|
|
7820
|
-
var a, l, c, d, u, f, h,
|
|
7821
|
+
var a, l, c, d, u, f, h, g;
|
|
7821
7822
|
return m(), v("div", {
|
|
7822
7823
|
class: M(`testimonial ${y(N)("p-5", e.class ?? "")}`),
|
|
7823
7824
|
style: k2(o.value)
|
|
@@ -7849,7 +7850,7 @@ const Z6 = {
|
|
|
7849
7850
|
}, Y(s.author), 3)) : _("", !0),
|
|
7850
7851
|
s.details ? (m(), v("p", {
|
|
7851
7852
|
key: 3,
|
|
7852
|
-
class: M(`testimonial-details ${((
|
|
7853
|
+
class: M(`testimonial-details ${((g = t.value) == null ? void 0 : g.details) ?? ""} text-${y(i).copy}`)
|
|
7853
7854
|
}, Y(s.details), 3)) : _("", !0)
|
|
7854
7855
|
], 2)
|
|
7855
7856
|
], 2)
|
|
@@ -7913,17 +7914,17 @@ const Z6 = {
|
|
|
7913
7914
|
() => c.has(i) ? a5 : l5
|
|
7914
7915
|
);
|
|
7915
7916
|
return (u, f) => {
|
|
7916
|
-
var p, C,
|
|
7917
|
+
var g, p, C, b, w, Z, S;
|
|
7917
7918
|
const h = D2;
|
|
7918
7919
|
return m(), v("section", {
|
|
7919
|
-
class: M(`tile-collection ${u.variant} ${y(N)("overflow-hidden py-16", u.includeDecoration && !s.value ? "!pb-0" : "", ((
|
|
7920
|
+
class: M(`tile-collection ${u.variant} ${y(N)("overflow-hidden py-16", u.includeDecoration && !s.value ? "!pb-0" : "", ((g = t.value) == null ? void 0 : g.root) ?? "", e.class ?? "")} bg-${y(i)}`)
|
|
7920
7921
|
}, [
|
|
7921
7922
|
$("div", {
|
|
7922
|
-
class: M(`container mx-auto ${((
|
|
7923
|
+
class: M(`container mx-auto ${((p = t.value) == null ? void 0 : p.container) ?? ""}`)
|
|
7923
7924
|
}, [
|
|
7924
7925
|
u.headline || u.bodyCopy ? (m(), v("div", {
|
|
7925
7926
|
key: 0,
|
|
7926
|
-
class: M(`tile-collection-heading-container ${((
|
|
7927
|
+
class: M(`tile-collection-heading-container ${((C = t.value) == null ? void 0 : C.headingContainer) ?? ""}`)
|
|
7927
7928
|
}, [
|
|
7928
7929
|
u.headline ? (m(), v("h2", {
|
|
7929
7930
|
key: 0,
|
|
@@ -8168,16 +8169,16 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8168
8169
|
return ((h = e.bodyCopyAlignment) == null ? void 0 : h.toLowerCase()) ?? l.value;
|
|
8169
8170
|
}
|
|
8170
8171
|
), d = k(() => l.value === "center" ? "items-center" : l.value === "right" ? "items-end" : "items-start"), u = e2(null), f = d1(u, { threshold: 0.1 });
|
|
8171
|
-
return (h,
|
|
8172
|
+
return (h, g) => {
|
|
8172
8173
|
var b, w, Z, S, A, P, I, F, E, j, R;
|
|
8173
|
-
const
|
|
8174
|
+
const p = Ae, C = D2;
|
|
8174
8175
|
return m(), v("div", {
|
|
8175
8176
|
ref_key: "content",
|
|
8176
8177
|
ref: u,
|
|
8177
8178
|
style: k2({ transitionDelay: `${(h.index ?? 0) * 0.2}s` }),
|
|
8178
8179
|
class: M(`tile-content animate-slide-on-top ${y(f) ? "visible" : ""} ${y(N)((b = t.value) == null ? void 0 : b.root, r ? "" : "w-full md:w-full lg:w-full")} ${e.class} bg-${y(a)}`)
|
|
8179
8180
|
}, [
|
|
8180
|
-
h.tileLabel || h.tileLabelType ? (m(), D(
|
|
8181
|
+
h.tileLabel || h.tileLabelType ? (m(), D(p, B({ key: 0 }, h.tileLabel, {
|
|
8181
8182
|
type: h.tileLabelType ?? ((w = h.tileLabel) == null ? void 0 : w.type),
|
|
8182
8183
|
class: h.tileLabelType === "Numeric" || ((Z = h.tileLabel) == null ? void 0 : Z.type) === "Numeric" ? (S = t.value) == null ? void 0 : S.numericLabel : (A = t.value) == null ? void 0 : A.label,
|
|
8183
8184
|
"background-color": y(s).label[h.tileLabelType ?? ((P = h.tileLabel) == null ? void 0 : P.type) ?? "Text"].bg,
|
|
@@ -8202,7 +8203,7 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8202
8203
|
key: 0,
|
|
8203
8204
|
class: M(`tile-content-media ${((x = t.value) == null ? void 0 : x.media) ?? ""}`)
|
|
8204
8205
|
}, [
|
|
8205
|
-
|
|
8206
|
+
g[0] || (g[0] = $("div", { class: "tile-content-media-background" }, null, -1)),
|
|
8206
8207
|
h.image ? (m(), D(A2, B({ key: 0 }, h.image, {
|
|
8207
8208
|
class: y(N)((O = (L = h.image) == null ? void 0 : L.media) != null && O.width ? "" : "w-full", h.image.class)
|
|
8208
8209
|
}), null, 16, ["class"])) : _("", !0),
|
|
@@ -8241,7 +8242,7 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8241
8242
|
}, [
|
|
8242
8243
|
(m(!0), v(q, null, n2(h.ctas, (L, O) => {
|
|
8243
8244
|
var H;
|
|
8244
|
-
return m(), D(
|
|
8245
|
+
return m(), D(C, B({
|
|
8245
8246
|
key: `cta-${L.title}-${O}`,
|
|
8246
8247
|
class: `cta-${O} ${(H = t.value) == null ? void 0 : H.cta}`,
|
|
8247
8248
|
color: y(pt)(L, y(a)),
|
|
@@ -8299,9 +8300,9 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8299
8300
|
return ((h = e.bodyCopyAlignment) == null ? void 0 : h.toLowerCase()) ?? l.value;
|
|
8300
8301
|
}
|
|
8301
8302
|
), d = k(() => l.value === "center" ? "items-center" : l.value === "right" ? "items-end" : "items-start"), u = e2(null), f = d1(u, { threshold: 0.1 });
|
|
8302
|
-
return (h,
|
|
8303
|
+
return (h, g) => {
|
|
8303
8304
|
var b, w, Z, S;
|
|
8304
|
-
const
|
|
8305
|
+
const p = Ae, C = D2;
|
|
8305
8306
|
return m(), v("div", {
|
|
8306
8307
|
ref_key: "content",
|
|
8307
8308
|
ref: u,
|
|
@@ -8325,7 +8326,7 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8325
8326
|
key: 0,
|
|
8326
8327
|
class: M(`tile-content-media w-4/5 ${((P = t.value) == null ? void 0 : P.media) ?? ""}`)
|
|
8327
8328
|
}, [
|
|
8328
|
-
h.tileLabel || h.tileLabelType ? (m(), D(
|
|
8329
|
+
h.tileLabel || h.tileLabelType ? (m(), D(p, {
|
|
8329
8330
|
key: 0,
|
|
8330
8331
|
class: M(
|
|
8331
8332
|
h.tileLabelType === "Numeric" || ((I = h.tileLabel) == null ? void 0 : I.type) === "Numeric" ? (F = t.value) == null ? void 0 : F.numericLabel : (E = t.value) == null ? void 0 : E.label
|
|
@@ -8336,7 +8337,7 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8336
8337
|
"background-color": y(s).label[h.tileLabelType ?? ((T = h.tileLabel) == null ? void 0 : T.type) ?? "Text"].bg,
|
|
8337
8338
|
"text-color": y(s).label[h.tileLabelType ?? ((x = h.tileLabel) == null ? void 0 : x.type) ?? "Text"].copy
|
|
8338
8339
|
}, null, 8, ["class", "index", "alignment", "type", "background-color", "text-color"])) : _("", !0),
|
|
8339
|
-
|
|
8340
|
+
g[0] || (g[0] = $("div", { class: "tile-content-media-background" }, null, -1)),
|
|
8340
8341
|
h.image ? (m(), D(A2, B({ key: 1 }, h.image, {
|
|
8341
8342
|
class: y(N)(
|
|
8342
8343
|
!h.bodyCopy && !h.headline && !((L = h.listItems) != null && L.length) ? "rounded-lg" : "rounded-full",
|
|
@@ -8378,7 +8379,7 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8378
8379
|
}, [
|
|
8379
8380
|
(m(!0), v(q, null, n2(h.ctas, (I, F) => {
|
|
8380
8381
|
var E;
|
|
8381
|
-
return m(), D(
|
|
8382
|
+
return m(), D(C, B({
|
|
8382
8383
|
key: `cta-${I.title}-${F}`,
|
|
8383
8384
|
class: `cta-${F} ${(E = t.value) == null ? void 0 : E.cta}`,
|
|
8384
8385
|
color: y(pt)(I, y(a)),
|
|
@@ -8436,13 +8437,13 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8436
8437
|
}
|
|
8437
8438
|
);
|
|
8438
8439
|
return (d, u) => {
|
|
8439
|
-
var p, C,
|
|
8440
|
+
var g, p, C, b, w, Z, S, A, P, I;
|
|
8440
8441
|
const f = Ae, h = D2;
|
|
8441
8442
|
return m(), v("div", {
|
|
8442
|
-
class: M(`tile-content ${y(N)((
|
|
8443
|
+
class: M(`tile-content ${y(N)((g = t.value) == null ? void 0 : g.root, i ? "" : "w-full md:w-full lg:w-full")} ${e.class} bg-${y(a)}`)
|
|
8443
8444
|
}, [
|
|
8444
8445
|
d.tileLabel || d.tileLabelType ? (m(), D(f, B({ key: 0 }, d.tileLabel, {
|
|
8445
|
-
class: d.tileLabelType === "Numeric" || ((
|
|
8446
|
+
class: d.tileLabelType === "Numeric" || ((p = d.tileLabel) == null ? void 0 : p.type) === "Numeric" ? (C = t.value) == null ? void 0 : C.numericLabel : (b = t.value) == null ? void 0 : b.label,
|
|
8446
8447
|
index: d.index,
|
|
8447
8448
|
type: d.tileLabelType ?? ((w = d.tileLabel) == null ? void 0 : w.type),
|
|
8448
8449
|
"background-color": y(r).label[d.tileLabelType ?? ((Z = d.tileLabel) == null ? void 0 : Z.type) ?? "Text"].bg,
|
|
@@ -8554,15 +8555,15 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8554
8555
|
}
|
|
8555
8556
|
), d = k(() => l.value === "center" ? "items-center" : l.value === "right" ? "items-end" : "items-start");
|
|
8556
8557
|
return (u, f) => {
|
|
8557
|
-
var
|
|
8558
|
-
const h = Ae,
|
|
8558
|
+
var p, C, b, w, Z, S, A, P, I, F, E;
|
|
8559
|
+
const h = Ae, g = D2;
|
|
8559
8560
|
return m(), v("div", {
|
|
8560
|
-
class: M(`tile-content ${y(N)("relative text-center list-none flex-auto rounded overflow-visible mx-auto shadow-none", `bg-${y(a)}`, i ? "" : "w-full md:w-full lg:w-full", ((
|
|
8561
|
+
class: M(`tile-content ${y(N)("relative text-center list-none flex-auto rounded overflow-visible mx-auto shadow-none", `bg-${y(a)}`, i ? "" : "w-full md:w-full lg:w-full", ((p = t.value) == null ? void 0 : p.root) ?? "", e.class ?? "")} ${e.class}`)
|
|
8561
8562
|
}, [
|
|
8562
8563
|
u.tileLabel || u.tileLabelType ? (m(), D(h, {
|
|
8563
8564
|
key: 0,
|
|
8564
8565
|
class: M(
|
|
8565
|
-
u.tileLabelType === "Numeric" || ((
|
|
8566
|
+
u.tileLabelType === "Numeric" || ((C = u.tileLabel) == null ? void 0 : C.type) === "Numeric" ? (b = t.value) == null ? void 0 : b.numericLabel : (w = t.value) == null ? void 0 : w.label
|
|
8566
8567
|
),
|
|
8567
8568
|
index: u.index,
|
|
8568
8569
|
alignment: ((Z = u.tileLabel) == null ? void 0 : Z.alignment) ?? "right",
|
|
@@ -8622,7 +8623,7 @@ const b5 = ["src", "height", "width"], y5 = ["src"], gt = /* @__PURE__ */ t2({
|
|
|
8622
8623
|
}, Y(u.footer), 3)) : _("", !0),
|
|
8623
8624
|
(m(!0), v(q, null, n2(u.ctas, (R, T) => {
|
|
8624
8625
|
var x;
|
|
8625
|
-
return m(), D(
|
|
8626
|
+
return m(), D(g, B({
|
|
8626
8627
|
key: `cta-${R.title}-${T}`,
|
|
8627
8628
|
class: `cta-${T} ${(x = t.value) == null ? void 0 : x.cta}`,
|
|
8628
8629
|
color: y(pt)(R, y(a)),
|
|
@@ -8658,7 +8659,7 @@ function T5(...n) {
|
|
|
8658
8659
|
return;
|
|
8659
8660
|
const f = rs(u) ? { ...u } : u;
|
|
8660
8661
|
s.push(
|
|
8661
|
-
...t.flatMap((h) => i.map((
|
|
8662
|
+
...t.flatMap((h) => i.map((g) => a(d, h, g, f)))
|
|
8662
8663
|
);
|
|
8663
8664
|
},
|
|
8664
8665
|
{ immediate: !0, flush: "post" }
|
|
@@ -8685,25 +8686,25 @@ function I5(n, e, t = {}) {
|
|
|
8685
8686
|
window: r = h1,
|
|
8686
8687
|
immediate: a = !0
|
|
8687
8688
|
} = t, l = B5(() => r && "IntersectionObserver" in r), c = k(() => {
|
|
8688
|
-
const
|
|
8689
|
-
return (Array.isArray(
|
|
8689
|
+
const g = d0(n);
|
|
8690
|
+
return (Array.isArray(g) ? g : [g]).map(We).filter(Vn);
|
|
8690
8691
|
});
|
|
8691
8692
|
let d = u0;
|
|
8692
8693
|
const u = e2(a), f = l.value ? G2(
|
|
8693
8694
|
() => [c.value, We(i), u.value],
|
|
8694
|
-
([
|
|
8695
|
-
if (d(), !u.value || !
|
|
8695
|
+
([g, p]) => {
|
|
8696
|
+
if (d(), !u.value || !g.length)
|
|
8696
8697
|
return;
|
|
8697
|
-
const
|
|
8698
|
+
const C = new IntersectionObserver(
|
|
8698
8699
|
e,
|
|
8699
8700
|
{
|
|
8700
|
-
root: We(
|
|
8701
|
+
root: We(p),
|
|
8701
8702
|
rootMargin: o,
|
|
8702
8703
|
threshold: s
|
|
8703
8704
|
}
|
|
8704
8705
|
);
|
|
8705
|
-
|
|
8706
|
-
|
|
8706
|
+
g.forEach((b) => b && C.observe(b)), d = () => {
|
|
8707
|
+
C.disconnect(), d = u0;
|
|
8707
8708
|
};
|
|
8708
8709
|
},
|
|
8709
8710
|
{ immediate: a, flush: "post" }
|
|
@@ -8853,14 +8854,14 @@ const D5 = ["innerHTML"], R5 = ["innerHTML"], j5 = ["src"], H5 = /* @__PURE__ */
|
|
|
8853
8854
|
t.value = u;
|
|
8854
8855
|
};
|
|
8855
8856
|
return (u, f) => {
|
|
8856
|
-
var p, C,
|
|
8857
|
+
var g, p, C, b;
|
|
8857
8858
|
const h = Ae;
|
|
8858
8859
|
return m(), v("div", {
|
|
8859
|
-
class: M(`tile-content ${y(N)(((
|
|
8860
|
+
class: M(`tile-content ${y(N)(((g = o.value) == null ? void 0 : g.root) ?? "", i.class ?? "")} max-w-[1024px]`)
|
|
8860
8861
|
}, [
|
|
8861
8862
|
F2(y(k0), {
|
|
8862
|
-
class: M(`${((
|
|
8863
|
-
"pt:footer:class": `tile-content-ctas ${((
|
|
8863
|
+
class: M(`${((p = o.value) == null ? void 0 : p.container) ?? ""} tile-content-container shadow-none`),
|
|
8864
|
+
"pt:footer:class": `tile-content-ctas ${((C = o.value) == null ? void 0 : C.ctas) ?? ""}`,
|
|
8864
8865
|
"pt:body:class": ((b = o.value) == null ? void 0 : b.body) ?? ""
|
|
8865
8866
|
}, R0({
|
|
8866
8867
|
content: u2(() => {
|
|
@@ -8986,7 +8987,7 @@ const D5 = ["innerHTML"], R5 = ["innerHTML"], j5 = ["src"], H5 = /* @__PURE__ */
|
|
|
8986
8987
|
"pt:content:class": "flex flex-col md:flex-row gap-8"
|
|
8987
8988
|
}, {
|
|
8988
8989
|
content: u2(() => {
|
|
8989
|
-
var c, d, u, f, h, p, C,
|
|
8990
|
+
var c, d, u, f, h, g, p, C, b;
|
|
8990
8991
|
return [
|
|
8991
8992
|
$("div", {
|
|
8992
8993
|
class: M((c = o.value) == null ? void 0 : c.mobileCollapsed)
|
|
@@ -9000,13 +9001,13 @@ const D5 = ["innerHTML"], R5 = ["innerHTML"], j5 = ["src"], H5 = /* @__PURE__ */
|
|
|
9000
9001
|
class: M([(f = o.value) == null ? void 0 : f.fullCopy, "fullCopy"])
|
|
9001
9002
|
}, Y((h = e.helloBannerData) == null ? void 0 : h.fullCopy), 3)
|
|
9002
9003
|
], 2),
|
|
9003
|
-
(
|
|
9004
|
+
(g = e.helloBannerData) != null && g.cta ? (m(), v("section", N5, [
|
|
9004
9005
|
F2(D2, B(e.helloBannerData.cta, {
|
|
9005
|
-
class: y(N)((
|
|
9006
|
+
class: y(N)((p = o.value) == null ? void 0 : p.cta, "cta")
|
|
9006
9007
|
}), null, 16, ["class"])
|
|
9007
9008
|
])) : _("", !0),
|
|
9008
9009
|
F2(y(ht), {
|
|
9009
|
-
class: M([(
|
|
9010
|
+
class: M([(C = o.value) == null ? void 0 : C.toggle, "toggle"]),
|
|
9010
9011
|
"pt:root:class": (b = o.value) == null ? void 0 : b.toggle,
|
|
9011
9012
|
tabindex: "0",
|
|
9012
9013
|
"aria-label": t.value === "minimized" ? "Expand banner" : "Minimize banner",
|
|
@@ -10154,45 +10155,45 @@ function c3(n, e, t, i) {
|
|
|
10154
10155
|
}
|
|
10155
10156
|
function hi(n, e, t, i, o) {
|
|
10156
10157
|
let s, r, a, l, c, d, u, f;
|
|
10157
|
-
const h = e.pointStyle,
|
|
10158
|
-
let
|
|
10158
|
+
const h = e.pointStyle, g = e.rotation, p = e.radius;
|
|
10159
|
+
let C = (g || 0) * Mr;
|
|
10159
10160
|
if (h && typeof h == "object" && (s = h.toString(), s === "[object HTMLImageElement]" || s === "[object HTMLCanvasElement]")) {
|
|
10160
|
-
n.save(), n.translate(t, i), n.rotate(
|
|
10161
|
+
n.save(), n.translate(t, i), n.rotate(C), n.drawImage(h, -h.width / 2, -h.height / 2, h.width, h.height), n.restore();
|
|
10161
10162
|
return;
|
|
10162
10163
|
}
|
|
10163
|
-
if (!(isNaN(
|
|
10164
|
+
if (!(isNaN(p) || p <= 0)) {
|
|
10164
10165
|
switch (n.beginPath(), h) {
|
|
10165
10166
|
default:
|
|
10166
|
-
o ? n.ellipse(t, i, o / 2,
|
|
10167
|
+
o ? n.ellipse(t, i, o / 2, p, 0, 0, f2) : n.arc(t, i, p, 0, f2), n.closePath();
|
|
10167
10168
|
break;
|
|
10168
10169
|
case "triangle":
|
|
10169
|
-
d = o ? o / 2 :
|
|
10170
|
+
d = o ? o / 2 : p, n.moveTo(t + Math.sin(C) * d, i - Math.cos(C) * p), C += e3, n.lineTo(t + Math.sin(C) * d, i - Math.cos(C) * p), C += e3, n.lineTo(t + Math.sin(C) * d, i - Math.cos(C) * p), n.closePath();
|
|
10170
10171
|
break;
|
|
10171
10172
|
case "rectRounded":
|
|
10172
|
-
c =
|
|
10173
|
+
c = p * 0.516, l = p - c, r = Math.cos(C + C0) * l, u = Math.cos(C + C0) * (o ? o / 2 - c : l), a = Math.sin(C + C0) * l, f = Math.sin(C + C0) * (o ? o / 2 - c : l), n.arc(t - u, i - a, c, C - r2, C - b2), n.arc(t + f, i - r, c, C - b2, C), n.arc(t + u, i + a, c, C, C + b2), n.arc(t - f, i + r, c, C + b2, C + r2), n.closePath();
|
|
10173
10174
|
break;
|
|
10174
10175
|
case "rect":
|
|
10175
|
-
if (!
|
|
10176
|
-
l = Math.SQRT1_2 *
|
|
10176
|
+
if (!g) {
|
|
10177
|
+
l = Math.SQRT1_2 * p, d = o ? o / 2 : l, n.rect(t - d, i - l, 2 * d, 2 * l);
|
|
10177
10178
|
break;
|
|
10178
10179
|
}
|
|
10179
|
-
|
|
10180
|
+
C += C0;
|
|
10180
10181
|
case "rectRot":
|
|
10181
|
-
u = Math.cos(
|
|
10182
|
+
u = Math.cos(C) * (o ? o / 2 : p), r = Math.cos(C) * p, a = Math.sin(C) * p, f = Math.sin(C) * (o ? o / 2 : p), n.moveTo(t - u, i - a), n.lineTo(t + f, i - r), n.lineTo(t + u, i + a), n.lineTo(t - f, i + r), n.closePath();
|
|
10182
10183
|
break;
|
|
10183
10184
|
case "crossRot":
|
|
10184
|
-
|
|
10185
|
+
C += C0;
|
|
10185
10186
|
case "cross":
|
|
10186
|
-
u = Math.cos(
|
|
10187
|
+
u = Math.cos(C) * (o ? o / 2 : p), r = Math.cos(C) * p, a = Math.sin(C) * p, f = Math.sin(C) * (o ? o / 2 : p), n.moveTo(t - u, i - a), n.lineTo(t + u, i + a), n.moveTo(t + f, i - r), n.lineTo(t - f, i + r);
|
|
10187
10188
|
break;
|
|
10188
10189
|
case "star":
|
|
10189
|
-
u = Math.cos(
|
|
10190
|
+
u = Math.cos(C) * (o ? o / 2 : p), r = Math.cos(C) * p, a = Math.sin(C) * p, f = Math.sin(C) * (o ? o / 2 : p), n.moveTo(t - u, i - a), n.lineTo(t + u, i + a), n.moveTo(t + f, i - r), n.lineTo(t - f, i + r), C += C0, u = Math.cos(C) * (o ? o / 2 : p), r = Math.cos(C) * p, a = Math.sin(C) * p, f = Math.sin(C) * (o ? o / 2 : p), n.moveTo(t - u, i - a), n.lineTo(t + u, i + a), n.moveTo(t + f, i - r), n.lineTo(t - f, i + r);
|
|
10190
10191
|
break;
|
|
10191
10192
|
case "line":
|
|
10192
|
-
r = o ? o / 2 : Math.cos(
|
|
10193
|
+
r = o ? o / 2 : Math.cos(C) * p, a = Math.sin(C) * p, n.moveTo(t - r, i - a), n.lineTo(t + r, i + a);
|
|
10193
10194
|
break;
|
|
10194
10195
|
case "dash":
|
|
10195
|
-
n.moveTo(t, i), n.lineTo(t + Math.cos(
|
|
10196
|
+
n.moveTo(t, i), n.lineTo(t + Math.cos(C) * (o ? o / 2 : p), i + Math.sin(C) * p);
|
|
10196
10197
|
break;
|
|
10197
10198
|
case !1:
|
|
10198
10199
|
n.closePath();
|
|
@@ -10595,10 +10596,10 @@ function v0(n, e) {
|
|
|
10595
10596
|
if ("native" in n)
|
|
10596
10597
|
return n;
|
|
10597
10598
|
const { canvas: t, currentDevicePixelRatio: i } = e, o = yt(t), s = o.boxSizing === "border-box", r = M0(o, "padding"), a = M0(o, "border", "width"), { x: l, y: c, box: d } = d8(n, t), u = r.left + (d && a.left), f = r.top + (d && a.top);
|
|
10598
|
-
let { width: h, height:
|
|
10599
|
-
return s && (h -= r.width + a.width,
|
|
10599
|
+
let { width: h, height: g } = e;
|
|
10600
|
+
return s && (h -= r.width + a.width, g -= r.height + a.height), {
|
|
10600
10601
|
x: Math.round((l - u) / h * t.width / i),
|
|
10601
|
-
y: Math.round((c - f) /
|
|
10602
|
+
y: Math.round((c - f) / g * t.height / i)
|
|
10602
10603
|
};
|
|
10603
10604
|
}
|
|
10604
10605
|
function u8(n, e, t) {
|
|
@@ -11071,10 +11072,10 @@ function b3(n, e) {
|
|
|
11071
11072
|
const { chart: t, _cachedMeta: i } = n, o = t._stacks || (t._stacks = {}), { iScale: s, vScale: r, index: a } = i, l = s.axis, c = r.axis, d = A8(s, r, i), u = e.length;
|
|
11072
11073
|
let f;
|
|
11073
11074
|
for (let h = 0; h < u; ++h) {
|
|
11074
|
-
const
|
|
11075
|
-
f = b[c] = $8(o, d,
|
|
11075
|
+
const g = e[h], { [l]: p, [c]: C } = g, b = g._stacks || (g._stacks = {});
|
|
11076
|
+
f = b[c] = $8(o, d, p), f[a] = C, f._top = m3(f, r, !0, i.type), f._bottom = m3(f, r, !1, i.type);
|
|
11076
11077
|
const w = f._visualValues || (f._visualValues = {});
|
|
11077
|
-
w[a] =
|
|
11078
|
+
w[a] = C;
|
|
11078
11079
|
}
|
|
11079
11080
|
}
|
|
11080
11081
|
function Ot(n, e) {
|
|
@@ -11131,7 +11132,7 @@ class re {
|
|
|
11131
11132
|
this.index !== e && W0(this._cachedMeta), this.index = e;
|
|
11132
11133
|
}
|
|
11133
11134
|
linkScales() {
|
|
11134
|
-
const e = this.chart, t = this._cachedMeta, i = this.getDataset(), o = (u, f, h,
|
|
11135
|
+
const e = this.chart, t = this._cachedMeta, i = this.getDataset(), o = (u, f, h, g) => u === "x" ? f : u === "r" ? g : h, s = t.xAxisID = i2(i.xAxisID, Ot(e, "x")), r = t.yAxisID = i2(i.yAxisID, Ot(e, "y")), a = t.rAxisID = i2(i.rAxisID, Ot(e, "r")), l = t.indexAxis, c = t.iAxisID = o(l, s, r, a), d = t.vAxisID = o(l, r, s, a);
|
|
11135
11136
|
t.xScale = this.getScaleForId(s), t.yScale = this.getScaleForId(r), t.rScale = this.getScaleForId(a), t.iScale = this.getScaleForId(c), t.vScale = this.getScaleForId(d);
|
|
11136
11137
|
}
|
|
11137
11138
|
getDataset() {
|
|
@@ -11199,11 +11200,11 @@ class re {
|
|
|
11199
11200
|
}
|
|
11200
11201
|
parsePrimitiveData(e, t, i, o) {
|
|
11201
11202
|
const { iScale: s, vScale: r } = e, a = s.axis, l = r.axis, c = s.getLabels(), d = s === r, u = new Array(o);
|
|
11202
|
-
let f, h,
|
|
11203
|
+
let f, h, g;
|
|
11203
11204
|
for (f = 0, h = o; f < h; ++f)
|
|
11204
|
-
|
|
11205
|
-
[a]: d || s.parse(c[
|
|
11206
|
-
[l]: r.parse(t[
|
|
11205
|
+
g = f + i, u[f] = {
|
|
11206
|
+
[a]: d || s.parse(c[g], g),
|
|
11207
|
+
[l]: r.parse(t[g], g)
|
|
11207
11208
|
};
|
|
11208
11209
|
return u;
|
|
11209
11210
|
}
|
|
@@ -11254,16 +11255,16 @@ class re {
|
|
|
11254
11255
|
max: Number.NEGATIVE_INFINITY
|
|
11255
11256
|
}, { min: d, max: u } = Z8(a);
|
|
11256
11257
|
let f, h;
|
|
11257
|
-
function
|
|
11258
|
+
function g() {
|
|
11258
11259
|
h = o[f];
|
|
11259
|
-
const
|
|
11260
|
-
return !x2(h[e.axis]) || d >
|
|
11260
|
+
const p = h[a.axis];
|
|
11261
|
+
return !x2(h[e.axis]) || d > p || u < p;
|
|
11261
11262
|
}
|
|
11262
|
-
for (f = 0; f < r && !(!
|
|
11263
|
+
for (f = 0; f < r && !(!g() && (this.updateRangeFromParsed(c, e, h, l), s)); ++f)
|
|
11263
11264
|
;
|
|
11264
11265
|
if (s) {
|
|
11265
11266
|
for (f = r - 1; f >= 0; --f)
|
|
11266
|
-
if (!
|
|
11267
|
+
if (!g()) {
|
|
11267
11268
|
this.updateRangeFromParsed(c, e, h, l);
|
|
11268
11269
|
break;
|
|
11269
11270
|
}
|
|
@@ -11335,8 +11336,8 @@ class re {
|
|
|
11335
11336
|
] : [
|
|
11336
11337
|
e,
|
|
11337
11338
|
""
|
|
11338
|
-
], f = c.getOptionScopes(this.getDataset(), d), h = Object.keys(p2.elements[e]),
|
|
11339
|
-
return
|
|
11339
|
+
], f = c.getOptionScopes(this.getDataset(), d), h = Object.keys(p2.elements[e]), g = () => this.getContext(i, o, t), p = c.resolveNamedOptions(f, h, g, u);
|
|
11340
|
+
return p.$shared && (p.$shared = l, s[r] = Object.freeze(y3(p, l))), p;
|
|
11340
11341
|
}
|
|
11341
11342
|
_resolveAnimations(e, t, i) {
|
|
11342
11343
|
const o = this.chart, s = this._cachedDataOpts, r = `animation-${t}`, a = s[r];
|
|
@@ -11479,8 +11480,8 @@ V(re, "defaults", {}), V(re, "datasetElementType", null), V(re, "dataElementType
|
|
|
11479
11480
|
function B8(n, e, t) {
|
|
11480
11481
|
let i = 1, o = 1, s = 0, r = 0;
|
|
11481
11482
|
if (e < f2) {
|
|
11482
|
-
const a = n, l = a + e, c = Math.cos(a), d = Math.sin(a), u = Math.cos(l), f = Math.sin(l), h = (Z, S, A) => nt(Z, a, l, !0) ? 1 : Math.max(S, S * t, A, A * t),
|
|
11483
|
-
i = (
|
|
11483
|
+
const a = n, l = a + e, c = Math.cos(a), d = Math.sin(a), u = Math.cos(l), f = Math.sin(l), h = (Z, S, A) => nt(Z, a, l, !0) ? 1 : Math.max(S, S * t, A, A * t), g = (Z, S, A) => nt(Z, a, l, !0) ? -1 : Math.min(S, S * t, A, A * t), p = h(0, c, u), C = h(b2, d, f), b = g(r2, c, u), w = g(r2 + b2, d, f);
|
|
11484
|
+
i = (p - b) / 2, o = (C - w) / 2, s = -(p + b) / 2, r = -(C + w) / 2;
|
|
11484
11485
|
}
|
|
11485
11486
|
return {
|
|
11486
11487
|
ratioX: i,
|
|
@@ -11529,15 +11530,15 @@ class B0 extends re {
|
|
|
11529
11530
|
};
|
|
11530
11531
|
}
|
|
11531
11532
|
update(e) {
|
|
11532
|
-
const t = this.chart, { chartArea: i } = t, o = this._cachedMeta, s = o.data, r = this.getMaxBorderWidth() + this.getMaxOffset(s) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - r) / 2, 0), l = Math.min(Cr(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX:
|
|
11533
|
-
this.offsetX =
|
|
11533
|
+
const t = this.chart, { chartArea: i } = t, o = this._cachedMeta, s = o.data, r = this.getMaxBorderWidth() + this.getMaxOffset(s) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - r) / 2, 0), l = Math.min(Cr(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: g, offsetY: p } = B8(u, d, l), C = (i.width - r) / f, b = (i.height - r) / h, w = Math.max(Math.min(C, b) / 2, 0), Z = ni(this.options.radius, w), S = Math.max(Z * l, 0), A = (Z - S) / this._getVisibleDatasetWeightTotal();
|
|
11534
|
+
this.offsetX = g * Z, this.offsetY = p * Z, o.total = this.calculateTotal(), this.outerRadius = Z - A * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - A * c, 0), this.updateElements(s, 0, s.length, e);
|
|
11534
11535
|
}
|
|
11535
11536
|
_circumference(e, t) {
|
|
11536
11537
|
const i = this.options, o = this._cachedMeta, s = this._getCircumference();
|
|
11537
11538
|
return t && i.animation.animateRotate || !this.chart.getDataVisibility(e) || o._parsed[e] === null || o.data[e].hidden ? 0 : this.calculateCircumference(o._parsed[e] * s / f2);
|
|
11538
11539
|
}
|
|
11539
11540
|
updateElements(e, t, i, o) {
|
|
11540
|
-
const s = o === "reset", r = this.chart, a = r.chartArea, c = r.options.animation, d = (a.left + a.right) / 2, u = (a.top + a.bottom) / 2, f = s && c.animateScale, h = f ? 0 : this.innerRadius,
|
|
11541
|
+
const s = o === "reset", r = this.chart, a = r.chartArea, c = r.options.animation, d = (a.left + a.right) / 2, u = (a.top + a.bottom) / 2, f = s && c.animateScale, h = f ? 0 : this.innerRadius, g = f ? 0 : this.outerRadius, { sharedOptions: p, includeOptions: C } = this._getSharedOptions(t, o);
|
|
11541
11542
|
let b = this._getRotation(), w;
|
|
11542
11543
|
for (w = 0; w < t; ++w)
|
|
11543
11544
|
b += this._circumference(w, s);
|
|
@@ -11548,10 +11549,10 @@ class B0 extends re {
|
|
|
11548
11549
|
startAngle: b,
|
|
11549
11550
|
endAngle: b + Z,
|
|
11550
11551
|
circumference: Z,
|
|
11551
|
-
outerRadius:
|
|
11552
|
+
outerRadius: g,
|
|
11552
11553
|
innerRadius: h
|
|
11553
11554
|
};
|
|
11554
|
-
|
|
11555
|
+
C && (A.options = p || this.resolveDataElementOptions(w, S.active ? "active" : o)), b += Z, this.updateElement(S, w, A, o);
|
|
11555
11556
|
}
|
|
11556
11557
|
}
|
|
11557
11558
|
calculateTotal() {
|
|
@@ -11753,10 +11754,10 @@ function L8(n, e, t, i) {
|
|
|
11753
11754
|
} else {
|
|
11754
11755
|
const d = c(s, e, t);
|
|
11755
11756
|
if (l) {
|
|
11756
|
-
const { vScale: u } = o._cachedMeta, { _parsed: f } = n, h = f.slice(0, d.lo + 1).reverse().findIndex((
|
|
11757
|
+
const { vScale: u } = o._cachedMeta, { _parsed: f } = n, h = f.slice(0, d.lo + 1).reverse().findIndex((p) => !d2(p[u.axis]));
|
|
11757
11758
|
d.lo -= Math.max(0, h);
|
|
11758
|
-
const
|
|
11759
|
-
d.hi += Math.max(0,
|
|
11759
|
+
const g = f.slice(d.hi).findIndex((p) => !d2(p[u.axis]));
|
|
11760
|
+
d.hi += Math.max(0, g);
|
|
11760
11761
|
}
|
|
11761
11762
|
return d;
|
|
11762
11763
|
}
|
|
@@ -11771,8 +11772,8 @@ function $e(n, e, t, i, o) {
|
|
|
11771
11772
|
for (let a = 0, l = s.length; a < l; ++a) {
|
|
11772
11773
|
const { index: c, data: d } = s[a], { lo: u, hi: f } = L8(s[a], e, r, o);
|
|
11773
11774
|
for (let h = u; h <= f; ++h) {
|
|
11774
|
-
const
|
|
11775
|
-
|
|
11775
|
+
const g = d[h];
|
|
11776
|
+
g.skip || i(g, c, h);
|
|
11776
11777
|
}
|
|
11777
11778
|
}
|
|
11778
11779
|
}
|
|
@@ -11819,17 +11820,17 @@ function E8(n, e, t, i, o, s) {
|
|
|
11819
11820
|
const h = d.inRange(e.x, e.y, o);
|
|
11820
11821
|
if (i && !h)
|
|
11821
11822
|
return;
|
|
11822
|
-
const
|
|
11823
|
-
if (!(!!s || n.isPointInArea(
|
|
11823
|
+
const g = d.getCenterPoint(o);
|
|
11824
|
+
if (!(!!s || n.isPointInArea(g)) && !h)
|
|
11824
11825
|
return;
|
|
11825
|
-
const
|
|
11826
|
-
|
|
11826
|
+
const C = a(e, g);
|
|
11827
|
+
C < l ? (r = [
|
|
11827
11828
|
{
|
|
11828
11829
|
element: d,
|
|
11829
11830
|
datasetIndex: u,
|
|
11830
11831
|
index: f
|
|
11831
11832
|
}
|
|
11832
|
-
], l =
|
|
11833
|
+
], l = C) : C === l && r.push({
|
|
11833
11834
|
element: d,
|
|
11834
11835
|
datasetIndex: u,
|
|
11835
11836
|
index: f
|
|
@@ -12079,10 +12080,10 @@ var c0 = {
|
|
|
12079
12080
|
if (!n)
|
|
12080
12081
|
return;
|
|
12081
12082
|
const o = Z2(n.options.layout.padding), s = Math.max(e - o.width, 0), r = Math.max(t - o.height, 0), a = z8(n.boxes), l = a.vertical, c = a.horizontal;
|
|
12082
|
-
s2(n.boxes, (
|
|
12083
|
-
typeof
|
|
12083
|
+
s2(n.boxes, (p) => {
|
|
12084
|
+
typeof p.beforeLayout == "function" && p.beforeLayout();
|
|
12084
12085
|
});
|
|
12085
|
-
const d = l.reduce((
|
|
12086
|
+
const d = l.reduce((p, C) => C.box.options && C.box.options.display === !1 ? p : p + 1, 0) || 1, u = Object.freeze({
|
|
12086
12087
|
outerWidth: e,
|
|
12087
12088
|
outerHeight: t,
|
|
12088
12089
|
padding: o,
|
|
@@ -12098,17 +12099,17 @@ var c0 = {
|
|
|
12098
12099
|
h: r,
|
|
12099
12100
|
x: o.left,
|
|
12100
12101
|
y: o.top
|
|
12101
|
-
}, o),
|
|
12102
|
-
Q0(a.fullSize, h, u,
|
|
12102
|
+
}, o), g = H8(l.concat(c), u);
|
|
12103
|
+
Q0(a.fullSize, h, u, g), Q0(l, h, u, g), Q0(c, h, u, g) && Q0(l, h, u, g), V8(h), w3(a.leftAndTop, h, u, g), h.x += h.w, h.y += h.h, w3(a.rightAndBottom, h, u, g), n.chartArea = {
|
|
12103
12104
|
left: h.left,
|
|
12104
12105
|
top: h.top,
|
|
12105
12106
|
right: h.left + h.w,
|
|
12106
12107
|
bottom: h.top + h.h,
|
|
12107
12108
|
height: h.h,
|
|
12108
12109
|
width: h.w
|
|
12109
|
-
}, s2(a.chartArea, (
|
|
12110
|
-
const
|
|
12111
|
-
Object.assign(
|
|
12110
|
+
}, s2(a.chartArea, (p) => {
|
|
12111
|
+
const C = p.box;
|
|
12112
|
+
Object.assign(C, n.chartArea), C.update(h.w, h.h, {
|
|
12112
12113
|
left: 0,
|
|
12113
12114
|
top: 0,
|
|
12114
12115
|
right: 0,
|
|
@@ -12470,26 +12471,26 @@ function ma(n, e, t) {
|
|
|
12470
12471
|
}
|
|
12471
12472
|
function ba(n, e, t, i) {
|
|
12472
12473
|
const { top: o, left: s, bottom: r, right: a, chart: l } = n, { chartArea: c, scales: d } = l;
|
|
12473
|
-
let u = 0, f, h,
|
|
12474
|
-
const
|
|
12474
|
+
let u = 0, f, h, g;
|
|
12475
|
+
const p = r - o, C = a - s;
|
|
12475
12476
|
if (n.isHorizontal()) {
|
|
12476
12477
|
if (h = P2(i, s, a), J(t)) {
|
|
12477
12478
|
const b = Object.keys(t)[0], w = t[b];
|
|
12478
|
-
|
|
12479
|
+
g = d[b].getPixelForValue(w) + p - e;
|
|
12479
12480
|
} else
|
|
12480
|
-
t === "center" ?
|
|
12481
|
+
t === "center" ? g = (c.bottom + c.top) / 2 + p - e : g = A3(n, t, e);
|
|
12481
12482
|
f = a - s;
|
|
12482
12483
|
} else {
|
|
12483
12484
|
if (J(t)) {
|
|
12484
12485
|
const b = Object.keys(t)[0], w = t[b];
|
|
12485
|
-
h = d[b].getPixelForValue(w) -
|
|
12486
|
+
h = d[b].getPixelForValue(w) - C + e;
|
|
12486
12487
|
} else
|
|
12487
|
-
t === "center" ? h = (c.left + c.right) / 2 -
|
|
12488
|
-
|
|
12488
|
+
t === "center" ? h = (c.left + c.right) / 2 - C + e : h = A3(n, t, e);
|
|
12489
|
+
g = P2(i, r, o), u = t === "left" ? -b2 : b2;
|
|
12489
12490
|
}
|
|
12490
12491
|
return {
|
|
12491
12492
|
titleX: h,
|
|
12492
|
-
titleY:
|
|
12493
|
+
titleY: g,
|
|
12493
12494
|
maxWidth: f,
|
|
12494
12495
|
rotation: u
|
|
12495
12496
|
};
|
|
@@ -12669,15 +12670,15 @@ class z0 extends _0 {
|
|
|
12669
12670
|
if (r) {
|
|
12670
12671
|
const l = S3(o, t.options.font);
|
|
12671
12672
|
if (a ? (e.width = this.maxWidth, e.height = K0(s) + l) : (e.height = this.maxHeight, e.width = K0(s) + l), i.display && this.ticks.length) {
|
|
12672
|
-
const { first: c, last: d, widest: u, highest: f } = this._getLabelSizes(), h = i.padding * 2,
|
|
12673
|
+
const { first: c, last: d, widest: u, highest: f } = this._getLabelSizes(), h = i.padding * 2, g = N2(this.labelRotation), p = Math.cos(g), C = Math.sin(g);
|
|
12673
12674
|
if (a) {
|
|
12674
|
-
const b = i.mirror ? 0 :
|
|
12675
|
+
const b = i.mirror ? 0 : C * u.width + p * f.height;
|
|
12675
12676
|
e.height = Math.min(this.maxHeight, e.height + b + h);
|
|
12676
12677
|
} else {
|
|
12677
|
-
const b = i.mirror ? 0 :
|
|
12678
|
+
const b = i.mirror ? 0 : p * u.width + C * f.height;
|
|
12678
12679
|
e.width = Math.min(this.maxWidth, e.width + b + h);
|
|
12679
12680
|
}
|
|
12680
|
-
this._calculatePadding(c, d,
|
|
12681
|
+
this._calculatePadding(c, d, C, p);
|
|
12681
12682
|
}
|
|
12682
12683
|
}
|
|
12683
12684
|
this._handleMargins(), a ? (this.width = this._length = t.width - this._margins.left - this._margins.right, this.height = e.height) : (this.width = e.width, this.height = this._length = t.height - this._margins.top - this._margins.bottom);
|
|
@@ -12726,16 +12727,16 @@ class z0 extends _0 {
|
|
|
12726
12727
|
}
|
|
12727
12728
|
_computeLabelSizes(e, t, i) {
|
|
12728
12729
|
const { ctx: o, _longestTextCache: s } = this, r = [], a = [], l = Math.floor(t / Z3(t, i));
|
|
12729
|
-
let c = 0, d = 0, u, f, h, p, C,
|
|
12730
|
+
let c = 0, d = 0, u, f, h, g, p, C, b, w, Z, S, A;
|
|
12730
12731
|
for (u = 0; u < t; u += l) {
|
|
12731
|
-
if (
|
|
12732
|
+
if (g = e[u].label, p = this._resolveTickFontOptions(u), o.font = C = p.string, b = s[C] = s[C] || {
|
|
12732
12733
|
data: {},
|
|
12733
12734
|
gc: []
|
|
12734
|
-
}, w =
|
|
12735
|
-
Z = it(o, b.data, b.gc, Z,
|
|
12736
|
-
else if (g2(
|
|
12737
|
-
for (f = 0, h =
|
|
12738
|
-
A =
|
|
12735
|
+
}, w = p.lineHeight, Z = S = 0, !d2(g) && !g2(g))
|
|
12736
|
+
Z = it(o, b.data, b.gc, Z, g), S = w;
|
|
12737
|
+
else if (g2(g))
|
|
12738
|
+
for (f = 0, h = g.length; f < h; ++f)
|
|
12739
|
+
A = g[f], !d2(A) && !g2(A) && (Z = it(o, b.data, b.gc, Z, A), S += w);
|
|
12739
12740
|
r.push(Z), a.push(S), c = Math.max(Z, c), d = Math.max(S, d);
|
|
12740
12741
|
}
|
|
12741
12742
|
pa(s, t);
|
|
@@ -12797,18 +12798,18 @@ class z0 extends _0 {
|
|
|
12797
12798
|
return e !== "auto" ? !!e : this.getMatchingVisibleMetas().length > 0;
|
|
12798
12799
|
}
|
|
12799
12800
|
_computeGridLineItems(e) {
|
|
12800
|
-
const t = this.axis, i = this.chart, o = this.options, { grid: s, position: r, border: a } = o, l = s.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = K0(s), h = [],
|
|
12801
|
-
return g0(i, H,
|
|
12801
|
+
const t = this.axis, i = this.chart, o = this.options, { grid: s, position: r, border: a } = o, l = s.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = K0(s), h = [], g = a.setContext(this.getContext()), p = g.display ? g.width : 0, C = p / 2, b = function(H) {
|
|
12802
|
+
return g0(i, H, p);
|
|
12802
12803
|
};
|
|
12803
12804
|
let w, Z, S, A, P, I, F, E, j, R, T, x;
|
|
12804
12805
|
if (r === "top")
|
|
12805
|
-
w = b(this.bottom), I = this.bottom - f, E = w -
|
|
12806
|
+
w = b(this.bottom), I = this.bottom - f, E = w - C, R = b(e.top) + C, x = e.bottom;
|
|
12806
12807
|
else if (r === "bottom")
|
|
12807
|
-
w = b(this.top), R = e.top, x = b(e.bottom) -
|
|
12808
|
+
w = b(this.top), R = e.top, x = b(e.bottom) - C, I = w + C, E = this.top + f;
|
|
12808
12809
|
else if (r === "left")
|
|
12809
|
-
w = b(this.right), P = this.right - f, F = w -
|
|
12810
|
+
w = b(this.right), P = this.right - f, F = w - C, j = b(e.left) + C, T = e.right;
|
|
12810
12811
|
else if (r === "right")
|
|
12811
|
-
w = b(this.left), j = e.left, T = b(e.right) -
|
|
12812
|
+
w = b(this.left), j = e.left, T = b(e.right) - C, P = w + C, F = this.left + f;
|
|
12812
12813
|
else if (t === "x") {
|
|
12813
12814
|
if (r === "center")
|
|
12814
12815
|
w = b((e.top + e.bottom) / 2 + 0.5);
|
|
@@ -12816,7 +12817,7 @@ class z0 extends _0 {
|
|
|
12816
12817
|
const H = Object.keys(r)[0], z = r[H];
|
|
12817
12818
|
w = b(this.chart.scales[H].getPixelForValue(z));
|
|
12818
12819
|
}
|
|
12819
|
-
R = e.top, x = e.bottom, I = w +
|
|
12820
|
+
R = e.top, x = e.bottom, I = w + C, E = I + f;
|
|
12820
12821
|
} else if (t === "y") {
|
|
12821
12822
|
if (r === "center")
|
|
12822
12823
|
w = b((e.left + e.right) / 2);
|
|
@@ -12824,7 +12825,7 @@ class z0 extends _0 {
|
|
|
12824
12825
|
const H = Object.keys(r)[0], z = r[H];
|
|
12825
12826
|
w = b(this.chart.scales[H].getPixelForValue(z));
|
|
12826
12827
|
}
|
|
12827
|
-
P = w -
|
|
12828
|
+
P = w - C, F = P - f, j = e.left, T = e.right;
|
|
12828
12829
|
}
|
|
12829
12830
|
const L = i2(o.ticks.maxTicksLimit, u), O = Math.max(1, Math.ceil(u / L));
|
|
12830
12831
|
for (Z = 0; Z < u; Z += O) {
|
|
@@ -12851,12 +12852,12 @@ class z0 extends _0 {
|
|
|
12851
12852
|
return this._ticksLength = u, this._borderValue = w, h;
|
|
12852
12853
|
}
|
|
12853
12854
|
_computeLabelItems(e) {
|
|
12854
|
-
const t = this.axis, i = this.options, { position: o, ticks: s } = i, r = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: d, mirror: u } = s, f = K0(i.grid), h = f + d,
|
|
12855
|
+
const t = this.axis, i = this.options, { position: o, ticks: s } = i, r = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: d, mirror: u } = s, f = K0(i.grid), h = f + d, g = u ? -d : h, p = -N2(this.labelRotation), C = [];
|
|
12855
12856
|
let b, w, Z, S, A, P, I, F, E, j, R, T, x = "middle";
|
|
12856
12857
|
if (o === "top")
|
|
12857
|
-
P = this.bottom -
|
|
12858
|
+
P = this.bottom - g, I = this._getXAxisLabelAlignment();
|
|
12858
12859
|
else if (o === "bottom")
|
|
12859
|
-
P = this.top +
|
|
12860
|
+
P = this.top + g, I = this._getXAxisLabelAlignment();
|
|
12860
12861
|
else if (o === "left") {
|
|
12861
12862
|
const O = this._getYAxisLabelAlignment(f);
|
|
12862
12863
|
I = O.textAlign, A = O.x;
|
|
@@ -12888,7 +12889,7 @@ class z0 extends _0 {
|
|
|
12888
12889
|
F = this.getPixelForTick(b) + s.labelOffset, E = this._resolveTickFontOptions(b), j = E.lineHeight, R = g2(S) ? S.length : 1;
|
|
12889
12890
|
const H = R / 2, z = O.color, G = O.textStrokeColor, X = O.textStrokeWidth;
|
|
12890
12891
|
let M2 = I;
|
|
12891
|
-
r ? (A = F, I === "inner" && (b === w - 1 ? M2 = this.options.reverse ? "left" : "right" : b === 0 ? M2 = this.options.reverse ? "right" : "left" : M2 = "center"), o === "top" ? c === "near" ||
|
|
12892
|
+
r ? (A = F, I === "inner" && (b === w - 1 ? M2 = this.options.reverse ? "left" : "right" : b === 0 ? M2 = this.options.reverse ? "right" : "left" : M2 = "center"), o === "top" ? c === "near" || p !== 0 ? T = -R * j + j / 2 : c === "center" ? T = -L.highest.height / 2 - H * j + j : T = -L.highest.height + j / 2 : c === "near" || p !== 0 ? T = j / 2 : c === "center" ? T = L.highest.height / 2 - H * j : T = L.highest.height - R * j, u && (T *= -1), p !== 0 && !O.showLabelBackdrop && (A += j / 2 * Math.sin(p))) : (P = F, T = (1 - R) * j / 2);
|
|
12892
12893
|
let w2;
|
|
12893
12894
|
if (O.showLabelBackdrop) {
|
|
12894
12895
|
const W2 = Z2(O.backdropPadding), Q2 = L.heights[b], R2 = L.widths[b];
|
|
@@ -12920,12 +12921,12 @@ class z0 extends _0 {
|
|
|
12920
12921
|
color: O.backdropColor
|
|
12921
12922
|
};
|
|
12922
12923
|
}
|
|
12923
|
-
|
|
12924
|
+
C.push({
|
|
12924
12925
|
label: S,
|
|
12925
12926
|
font: E,
|
|
12926
12927
|
textOffset: T,
|
|
12927
12928
|
options: {
|
|
12928
|
-
rotation:
|
|
12929
|
+
rotation: p,
|
|
12929
12930
|
color: z,
|
|
12930
12931
|
strokeColor: G,
|
|
12931
12932
|
strokeWidth: X,
|
|
@@ -12939,7 +12940,7 @@ class z0 extends _0 {
|
|
|
12939
12940
|
}
|
|
12940
12941
|
});
|
|
12941
12942
|
}
|
|
12942
|
-
return
|
|
12943
|
+
return C;
|
|
12943
12944
|
}
|
|
12944
12945
|
_getXAxisLabelAlignment() {
|
|
12945
12946
|
const { position: e, ticks: t } = this.options;
|
|
@@ -14098,8 +14099,8 @@ function za(n, e, t) {
|
|
|
14098
14099
|
if (d === "round")
|
|
14099
14100
|
n.arc(o, s, f, t - r2 / 2, i + r2 / 2, !0);
|
|
14100
14101
|
else if (d === "bevel") {
|
|
14101
|
-
const h = 2 * f * f,
|
|
14102
|
-
n.lineTo(
|
|
14102
|
+
const h = 2 * f * f, g = -h * Math.cos(t + r2 / 2) + o, p = -h * Math.sin(t + r2 / 2) + s, C = h * Math.cos(i + r2 / 2) + o, b = h * Math.sin(i + r2 / 2) + s;
|
|
14103
|
+
n.lineTo(g, p), n.lineTo(C, b);
|
|
14103
14104
|
}
|
|
14104
14105
|
}
|
|
14105
14106
|
n.closePath(), n.moveTo(0, 0), n.rect(0, 0, n.canvas.width, n.canvas.height), n.clip("evenodd");
|
|
@@ -14138,12 +14139,12 @@ function S0(n, e, t, i) {
|
|
|
14138
14139
|
function at(n, e, t, i, o, s) {
|
|
14139
14140
|
const { x: r, y: a, startAngle: l, pixelMargin: c, innerRadius: d } = e, u = Math.max(e.outerRadius + i + t - c, 0), f = d > 0 ? d + i + t + c : 0;
|
|
14140
14141
|
let h = 0;
|
|
14141
|
-
const
|
|
14142
|
+
const g = o - l;
|
|
14142
14143
|
if (i) {
|
|
14143
|
-
const O = d > 0 ? d - i : 0, H = u > 0 ? u - i : 0, z = (O + H) / 2, G = z !== 0 ?
|
|
14144
|
-
h = (
|
|
14144
|
+
const O = d > 0 ? d - i : 0, H = u > 0 ? u - i : 0, z = (O + H) / 2, G = z !== 0 ? g * z / (z + i) : g;
|
|
14145
|
+
h = (g - G) / 2;
|
|
14145
14146
|
}
|
|
14146
|
-
const
|
|
14147
|
+
const p = Math.max(1e-3, g * u - t / r2) / u, C = (g - p) / 2, b = l + C + h, w = o - C - h, { outerStart: Z, outerEnd: S, innerStart: A, innerEnd: P } = Wa(e, f, u, w - b), I = u - Z, F = u - S, E = b + Z / I, j = w - S / F, R = f + A, T = f + P, x = b + A / R, L = w - P / T;
|
|
14147
14148
|
if (n.beginPath(), s) {
|
|
14148
14149
|
const O = (E + j) / 2;
|
|
14149
14150
|
if (n.arc(r, a, u, E, O), n.arc(r, a, u, O, j), S > 0) {
|
|
@@ -14186,18 +14187,18 @@ function Ua(n, e, t, i, o) {
|
|
|
14186
14187
|
return at(n, e, t, i, l, o), n.fill(), l;
|
|
14187
14188
|
}
|
|
14188
14189
|
function Ya(n, e, t, i, o) {
|
|
14189
|
-
const { fullCircles: s, startAngle: r, circumference: a, options: l } = e, { borderWidth: c, borderJoinStyle: d, borderDash: u, borderDashOffset: f, borderRadius: h } = l,
|
|
14190
|
+
const { fullCircles: s, startAngle: r, circumference: a, options: l } = e, { borderWidth: c, borderJoinStyle: d, borderDash: u, borderDashOffset: f, borderRadius: h } = l, g = l.borderAlign === "inner";
|
|
14190
14191
|
if (!c)
|
|
14191
14192
|
return;
|
|
14192
|
-
n.setLineDash(u || []), n.lineDashOffset = f,
|
|
14193
|
-
let
|
|
14193
|
+
n.setLineDash(u || []), n.lineDashOffset = f, g ? (n.lineWidth = c * 2, n.lineJoin = d || "round") : (n.lineWidth = c, n.lineJoin = d || "bevel");
|
|
14194
|
+
let p = e.endAngle;
|
|
14194
14195
|
if (s) {
|
|
14195
|
-
at(n, e, t, i,
|
|
14196
|
-
for (let
|
|
14196
|
+
at(n, e, t, i, p, o);
|
|
14197
|
+
for (let C = 0; C < s; ++C)
|
|
14197
14198
|
n.stroke();
|
|
14198
|
-
isNaN(a) || (
|
|
14199
|
+
isNaN(a) || (p = r + (a % f2 || f2));
|
|
14199
14200
|
}
|
|
14200
|
-
|
|
14201
|
+
g && Na(n, e, p), l.selfJoin && p - r >= r2 && h === 0 && d !== "miter" && za(n, e, p), s || (at(n, e, t, i, p, o), n.stroke());
|
|
14201
14202
|
}
|
|
14202
14203
|
class J0 extends _0 {
|
|
14203
14204
|
constructor(t) {
|
|
@@ -14224,8 +14225,8 @@ class J0 extends _0 {
|
|
|
14224
14225
|
"innerRadius",
|
|
14225
14226
|
"outerRadius",
|
|
14226
14227
|
"circumference"
|
|
14227
|
-
], o), h = (this.options.spacing + this.options.borderWidth) / 2,
|
|
14228
|
-
return
|
|
14228
|
+
], o), h = (this.options.spacing + this.options.borderWidth) / 2, g = i2(f, c - l), p = nt(r, l, c) && l !== c, C = g >= f2 || p, b = G0(a, d + h, u + h);
|
|
14229
|
+
return C && b;
|
|
14229
14230
|
}
|
|
14230
14231
|
getCenterPoint(t) {
|
|
14231
14232
|
const { x: i, y: o, startAngle: s, endAngle: r, innerRadius: a, outerRadius: l } = this.getProps([
|
|
@@ -14316,29 +14317,29 @@ class j3 extends _0 {
|
|
|
14316
14317
|
let u = e;
|
|
14317
14318
|
s.textAlign = "left", s.textBaseline = "middle";
|
|
14318
14319
|
let f = -1, h = -d;
|
|
14319
|
-
return this.legendItems.forEach((
|
|
14320
|
-
const
|
|
14321
|
-
(
|
|
14320
|
+
return this.legendItems.forEach((g, p) => {
|
|
14321
|
+
const C = i + t / 2 + s.measureText(g.text).width;
|
|
14322
|
+
(p === 0 || c[c.length - 1] + C + 2 * a > r) && (u += d, c[c.length - (p > 0 ? 0 : 1)] = 0, h += d, f++), l[p] = {
|
|
14322
14323
|
left: 0,
|
|
14323
14324
|
top: h,
|
|
14324
14325
|
row: f,
|
|
14325
|
-
width:
|
|
14326
|
+
width: C,
|
|
14326
14327
|
height: o
|
|
14327
|
-
}, c[c.length - 1] +=
|
|
14328
|
+
}, c[c.length - 1] += C + a;
|
|
14328
14329
|
}), u;
|
|
14329
14330
|
}
|
|
14330
14331
|
_fitCols(e, t, i, o) {
|
|
14331
14332
|
const { ctx: s, maxHeight: r, options: { labels: { padding: a } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], d = r - e;
|
|
14332
|
-
let u = a, f = 0, h = 0,
|
|
14333
|
-
return this.legendItems.forEach((
|
|
14334
|
-
const { itemWidth: w, itemHeight: Z } = qa(i, t, s,
|
|
14333
|
+
let u = a, f = 0, h = 0, g = 0, p = 0;
|
|
14334
|
+
return this.legendItems.forEach((C, b) => {
|
|
14335
|
+
const { itemWidth: w, itemHeight: Z } = qa(i, t, s, C, o);
|
|
14335
14336
|
b > 0 && h + Z + 2 * a > d && (u += f + a, c.push({
|
|
14336
14337
|
width: f,
|
|
14337
14338
|
height: h
|
|
14338
|
-
}),
|
|
14339
|
-
left:
|
|
14339
|
+
}), g += f + a, p++, f = h = 0), l[b] = {
|
|
14340
|
+
left: g,
|
|
14340
14341
|
top: h,
|
|
14341
|
-
col:
|
|
14342
|
+
col: p,
|
|
14342
14343
|
width: w,
|
|
14343
14344
|
height: Z
|
|
14344
14345
|
}, f = Math.max(f, w), h += Z + a;
|
|
@@ -14374,32 +14375,32 @@ class j3 extends _0 {
|
|
|
14374
14375
|
const { options: e, columnSizes: t, lineWidths: i, ctx: o } = this, { align: s, labels: r } = e, a = p2.color, l = O0(e.rtl, this.left, this.width), c = _2(r.font), { padding: d } = r, u = c.size, f = u / 2;
|
|
14375
14376
|
let h;
|
|
14376
14377
|
this.drawTitle(), o.textAlign = l.textAlign("left"), o.textBaseline = "middle", o.lineWidth = 0.5, o.font = c.string;
|
|
14377
|
-
const { boxWidth:
|
|
14378
|
-
if (isNaN(
|
|
14378
|
+
const { boxWidth: g, boxHeight: p, itemHeight: C } = R3(r, u), b = function(P, I, F) {
|
|
14379
|
+
if (isNaN(g) || g <= 0 || isNaN(p) || p < 0)
|
|
14379
14380
|
return;
|
|
14380
14381
|
o.save();
|
|
14381
14382
|
const E = i2(F.lineWidth, 1);
|
|
14382
14383
|
if (o.fillStyle = i2(F.fillStyle, a), o.lineCap = i2(F.lineCap, "butt"), o.lineDashOffset = i2(F.lineDashOffset, 0), o.lineJoin = i2(F.lineJoin, "miter"), o.lineWidth = E, o.strokeStyle = i2(F.strokeStyle, a), o.setLineDash(i2(F.lineDash, [])), r.usePointStyle) {
|
|
14383
14384
|
const j = {
|
|
14384
|
-
radius:
|
|
14385
|
+
radius: p * Math.SQRT2 / 2,
|
|
14385
14386
|
pointStyle: F.pointStyle,
|
|
14386
14387
|
rotation: F.rotation,
|
|
14387
14388
|
borderWidth: E
|
|
14388
|
-
}, R = l.xPlus(P,
|
|
14389
|
-
hi(o, j, R, T, r.pointStyleWidth &&
|
|
14389
|
+
}, R = l.xPlus(P, g / 2), T = I + f;
|
|
14390
|
+
hi(o, j, R, T, r.pointStyleWidth && g);
|
|
14390
14391
|
} else {
|
|
14391
|
-
const j = I + Math.max((u -
|
|
14392
|
+
const j = I + Math.max((u - p) / 2, 0), R = l.leftForLtr(P, g), T = L0(F.borderRadius);
|
|
14392
14393
|
o.beginPath(), Object.values(T).some((x) => x !== 0) ? ot(o, {
|
|
14393
14394
|
x: R,
|
|
14394
14395
|
y: j,
|
|
14395
|
-
w:
|
|
14396
|
-
h:
|
|
14396
|
+
w: g,
|
|
14397
|
+
h: p,
|
|
14397
14398
|
radius: T
|
|
14398
|
-
}) : o.rect(R, j,
|
|
14399
|
+
}) : o.rect(R, j, g, p), o.fill(), E !== 0 && o.stroke();
|
|
14399
14400
|
}
|
|
14400
14401
|
o.restore();
|
|
14401
14402
|
}, w = function(P, I, F) {
|
|
14402
|
-
E0(o, F.text, P, I +
|
|
14403
|
+
E0(o, F.text, P, I + C / 2, c, {
|
|
14403
14404
|
strikethrough: F.hidden,
|
|
14404
14405
|
textAlign: l.textAlign(F.textAlign)
|
|
14405
14406
|
});
|
|
@@ -14413,14 +14414,14 @@ class j3 extends _0 {
|
|
|
14413
14414
|
y: P2(s, this.top + S + d, this.bottom - t[0].height),
|
|
14414
14415
|
line: 0
|
|
14415
14416
|
}, mi(this.ctx, e.textDirection);
|
|
14416
|
-
const A =
|
|
14417
|
+
const A = C + d;
|
|
14417
14418
|
this.legendItems.forEach((P, I) => {
|
|
14418
14419
|
o.strokeStyle = P.fontColor, o.fillStyle = P.fontColor;
|
|
14419
|
-
const F = o.measureText(P.text).width, E = l.textAlign(P.textAlign || (P.textAlign = r.textAlign)), j =
|
|
14420
|
+
const F = o.measureText(P.text).width, E = l.textAlign(P.textAlign || (P.textAlign = r.textAlign)), j = g + f + F;
|
|
14420
14421
|
let R = h.x, T = h.y;
|
|
14421
14422
|
l.setWidth(this.width), Z ? I > 0 && R + j + d > this.right && (T = h.y += A, h.line++, R = h.x = P2(s, this.left + d, this.right - i[h.line])) : I > 0 && T + A > this.bottom && (R = h.x = R + t[h.line].width + d, h.line++, T = h.y = P2(s, this.top + S + d, this.bottom - t[h.line].height));
|
|
14422
14423
|
const x = l.x(R);
|
|
14423
|
-
if (b(x, T, P), R = Br(E, R +
|
|
14424
|
+
if (b(x, T, P), R = Br(E, R + g + f, Z ? R + j : this.right, e.rtl), w(l.x(R), T, P), Z)
|
|
14424
14425
|
h.x += j + d;
|
|
14425
14426
|
else if (typeof P.text != "string") {
|
|
14426
14427
|
const L = c.lineHeight;
|
|
@@ -14438,8 +14439,8 @@ class j3 extends _0 {
|
|
|
14438
14439
|
if (this.isHorizontal())
|
|
14439
14440
|
f = Math.max(...this.lineWidths), d = this.top + c, u = P2(e.align, u, this.right - f);
|
|
14440
14441
|
else {
|
|
14441
|
-
const
|
|
14442
|
-
d = c + P2(e.align, this.top, this.bottom -
|
|
14442
|
+
const g = this.columnSizes.reduce((p, C) => Math.max(p, C.height), 0);
|
|
14443
|
+
d = c + P2(e.align, this.top, this.bottom - g - e.labels.padding - this._computeTitleHeight());
|
|
14443
14444
|
}
|
|
14444
14445
|
const h = P2(a, u, u + f);
|
|
14445
14446
|
r.textAlign = s.textAlign(ci(a)), r.textBaseline = "middle", r.strokeStyle = t.color, r.fillStyle = t.color, r.font = i.string, E0(r, t.text, h, d, i);
|
|
@@ -14650,22 +14651,22 @@ function el(n, e) {
|
|
|
14650
14651
|
};
|
|
14651
14652
|
}
|
|
14652
14653
|
function H3(n, e) {
|
|
14653
|
-
const t = n.chart.ctx, { body: i, footer: o, title: s } = n, { boxWidth: r, boxHeight: a } = e, l = _2(e.bodyFont), c = _2(e.titleFont), d = _2(e.footerFont), u = s.length, f = o.length, h = i.length,
|
|
14654
|
-
let
|
|
14655
|
-
if (b += n.beforeBody.length + n.afterBody.length, u && (
|
|
14654
|
+
const t = n.chart.ctx, { body: i, footer: o, title: s } = n, { boxWidth: r, boxHeight: a } = e, l = _2(e.bodyFont), c = _2(e.titleFont), d = _2(e.footerFont), u = s.length, f = o.length, h = i.length, g = Z2(e.padding);
|
|
14655
|
+
let p = g.height, C = 0, b = i.reduce((S, A) => S + A.before.length + A.lines.length + A.after.length, 0);
|
|
14656
|
+
if (b += n.beforeBody.length + n.afterBody.length, u && (p += u * c.lineHeight + (u - 1) * e.titleSpacing + e.titleMarginBottom), b) {
|
|
14656
14657
|
const S = e.displayColors ? Math.max(a, l.lineHeight) : l.lineHeight;
|
|
14657
|
-
|
|
14658
|
+
p += h * S + (b - h) * l.lineHeight + (b - 1) * e.bodySpacing;
|
|
14658
14659
|
}
|
|
14659
|
-
f && (
|
|
14660
|
+
f && (p += e.footerMarginTop + f * d.lineHeight + (f - 1) * e.footerSpacing);
|
|
14660
14661
|
let w = 0;
|
|
14661
14662
|
const Z = function(S) {
|
|
14662
|
-
|
|
14663
|
+
C = Math.max(C, t.measureText(S).width + w);
|
|
14663
14664
|
};
|
|
14664
14665
|
return t.save(), t.font = c.string, s2(n.title, Z), t.font = l.string, s2(n.beforeBody.concat(n.afterBody), Z), w = e.displayColors ? r + 2 + e.boxPadding : 0, s2(i, (S) => {
|
|
14665
14666
|
s2(S.before, Z), s2(S.lines, Z), s2(S.after, Z);
|
|
14666
|
-
}), w = 0, t.font = d.string, s2(n.footer, Z), t.restore(),
|
|
14667
|
-
width:
|
|
14668
|
-
height:
|
|
14667
|
+
}), w = 0, t.font = d.string, s2(n.footer, Z), t.restore(), C += g.width, {
|
|
14668
|
+
width: C,
|
|
14669
|
+
height: p
|
|
14669
14670
|
};
|
|
14670
14671
|
}
|
|
14671
14672
|
function tl(n, e) {
|
|
@@ -14699,11 +14700,11 @@ function sl(n, e, t) {
|
|
|
14699
14700
|
}
|
|
14700
14701
|
function N3(n, e, t, i) {
|
|
14701
14702
|
const { caretSize: o, caretPadding: s, cornerRadius: r } = n, { xAlign: a, yAlign: l } = t, c = o + s, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: h } = L0(r);
|
|
14702
|
-
let
|
|
14703
|
-
const
|
|
14704
|
-
return l === "center" ? a === "left" ?
|
|
14705
|
-
x: O2(
|
|
14706
|
-
y: O2(
|
|
14703
|
+
let g = ol(e, a);
|
|
14704
|
+
const p = sl(e, l, c);
|
|
14705
|
+
return l === "center" ? a === "left" ? g += c : a === "right" && (g -= c) : a === "left" ? g -= Math.max(d, f) + o : a === "right" && (g += Math.max(u, h) + o), {
|
|
14706
|
+
x: O2(g, 0, i.width - e.width),
|
|
14707
|
+
y: O2(p, 0, i.height - e.height)
|
|
14707
14708
|
};
|
|
14708
14709
|
}
|
|
14709
14710
|
function He(n, e, t) {
|
|
@@ -14866,10 +14867,10 @@ class i1 extends _0 {
|
|
|
14866
14867
|
t.lineTo(s.x1, s.y1), t.lineTo(s.x2, s.y2), t.lineTo(s.x3, s.y3);
|
|
14867
14868
|
}
|
|
14868
14869
|
getCaretPosition(e, t, i) {
|
|
14869
|
-
const { xAlign: o, yAlign: s } = this, { caretSize: r, cornerRadius: a } = i, { topLeft: l, topRight: c, bottomLeft: d, bottomRight: u } = L0(a), { x: f, y: h } = e, { width:
|
|
14870
|
-
let
|
|
14871
|
-
return s === "center" ? (S = h +
|
|
14872
|
-
x1:
|
|
14870
|
+
const { xAlign: o, yAlign: s } = this, { caretSize: r, cornerRadius: a } = i, { topLeft: l, topRight: c, bottomLeft: d, bottomRight: u } = L0(a), { x: f, y: h } = e, { width: g, height: p } = t;
|
|
14871
|
+
let C, b, w, Z, S, A;
|
|
14872
|
+
return s === "center" ? (S = h + p / 2, o === "left" ? (C = f, b = C - r, Z = S + r, A = S - r) : (C = f + g, b = C + r, Z = S - r, A = S + r), w = C) : (o === "left" ? b = f + Math.max(l, d) + r : o === "right" ? b = f + g - Math.max(c, u) - r : b = this.caretX, s === "top" ? (Z = h, S = Z - r, C = b - r, w = b + r) : (Z = h + p, S = Z + r, C = b + r, w = b - r), A = Z), {
|
|
14873
|
+
x1: C,
|
|
14873
14874
|
x2: b,
|
|
14874
14875
|
x3: w,
|
|
14875
14876
|
y1: Z,
|
|
@@ -14887,47 +14888,47 @@ class i1 extends _0 {
|
|
|
14887
14888
|
}
|
|
14888
14889
|
}
|
|
14889
14890
|
_drawColorBox(e, t, i, o, s) {
|
|
14890
|
-
const r = this.labelColors[i], a = this.labelPointStyles[i], { boxHeight: l, boxWidth: c } = s, d = _2(s.bodyFont), u = He(this, "left", s), f = o.x(u), h = l < d.lineHeight ? (d.lineHeight - l) / 2 : 0,
|
|
14891
|
+
const r = this.labelColors[i], a = this.labelPointStyles[i], { boxHeight: l, boxWidth: c } = s, d = _2(s.bodyFont), u = He(this, "left", s), f = o.x(u), h = l < d.lineHeight ? (d.lineHeight - l) / 2 : 0, g = t.y + h;
|
|
14891
14892
|
if (s.usePointStyle) {
|
|
14892
|
-
const
|
|
14893
|
+
const p = {
|
|
14893
14894
|
radius: Math.min(c, l) / 2,
|
|
14894
14895
|
pointStyle: a.pointStyle,
|
|
14895
14896
|
rotation: a.rotation,
|
|
14896
14897
|
borderWidth: 1
|
|
14897
|
-
},
|
|
14898
|
-
e.strokeStyle = s.multiKeyBackground, e.fillStyle = s.multiKeyBackground, c3(e,
|
|
14898
|
+
}, C = o.leftForLtr(f, c) + c / 2, b = g + l / 2;
|
|
14899
|
+
e.strokeStyle = s.multiKeyBackground, e.fillStyle = s.multiKeyBackground, c3(e, p, C, b), e.strokeStyle = r.borderColor, e.fillStyle = r.backgroundColor, c3(e, p, C, b);
|
|
14899
14900
|
} else {
|
|
14900
14901
|
e.lineWidth = J(r.borderWidth) ? Math.max(...Object.values(r.borderWidth)) : r.borderWidth || 1, e.strokeStyle = r.borderColor, e.setLineDash(r.borderDash || []), e.lineDashOffset = r.borderDashOffset || 0;
|
|
14901
|
-
const
|
|
14902
|
+
const p = o.leftForLtr(f, c), C = o.leftForLtr(o.xPlus(f, 1), c - 2), b = L0(r.borderRadius);
|
|
14902
14903
|
Object.values(b).some((w) => w !== 0) ? (e.beginPath(), e.fillStyle = s.multiKeyBackground, ot(e, {
|
|
14903
|
-
x:
|
|
14904
|
-
y:
|
|
14904
|
+
x: p,
|
|
14905
|
+
y: g,
|
|
14905
14906
|
w: c,
|
|
14906
14907
|
h: l,
|
|
14907
14908
|
radius: b
|
|
14908
14909
|
}), e.fill(), e.stroke(), e.fillStyle = r.backgroundColor, e.beginPath(), ot(e, {
|
|
14909
|
-
x:
|
|
14910
|
-
y:
|
|
14910
|
+
x: C,
|
|
14911
|
+
y: g + 1,
|
|
14911
14912
|
w: c - 2,
|
|
14912
14913
|
h: l - 2,
|
|
14913
14914
|
radius: b
|
|
14914
|
-
}), e.fill()) : (e.fillStyle = s.multiKeyBackground, e.fillRect(
|
|
14915
|
+
}), e.fill()) : (e.fillStyle = s.multiKeyBackground, e.fillRect(p, g, c, l), e.strokeRect(p, g, c, l), e.fillStyle = r.backgroundColor, e.fillRect(C, g + 1, c - 2, l - 2));
|
|
14915
14916
|
}
|
|
14916
14917
|
e.fillStyle = this.labelTextColors[i];
|
|
14917
14918
|
}
|
|
14918
14919
|
drawBody(e, t, i) {
|
|
14919
14920
|
const { body: o } = this, { bodySpacing: s, bodyAlign: r, displayColors: a, boxHeight: l, boxWidth: c, boxPadding: d } = i, u = _2(i.bodyFont);
|
|
14920
14921
|
let f = u.lineHeight, h = 0;
|
|
14921
|
-
const
|
|
14922
|
-
t.fillText(F,
|
|
14923
|
-
},
|
|
14922
|
+
const g = O0(i.rtl, this.x, this.width), p = function(F) {
|
|
14923
|
+
t.fillText(F, g.x(e.x + h), e.y + f / 2), e.y += f + s;
|
|
14924
|
+
}, C = g.textAlign(r);
|
|
14924
14925
|
let b, w, Z, S, A, P, I;
|
|
14925
|
-
for (t.textAlign = r, t.textBaseline = "middle", t.font = u.string, e.x = He(this,
|
|
14926
|
-
for (b = o[S], w = this.labelTextColors[S], t.fillStyle = w, s2(b.before,
|
|
14927
|
-
|
|
14928
|
-
s2(b.after,
|
|
14926
|
+
for (t.textAlign = r, t.textBaseline = "middle", t.font = u.string, e.x = He(this, C, i), t.fillStyle = i.bodyColor, s2(this.beforeBody, p), h = a && C !== "right" ? r === "center" ? c / 2 + d : c + 2 + d : 0, S = 0, P = o.length; S < P; ++S) {
|
|
14927
|
+
for (b = o[S], w = this.labelTextColors[S], t.fillStyle = w, s2(b.before, p), Z = b.lines, a && Z.length && (this._drawColorBox(t, e, S, g, i), f = Math.max(u.lineHeight, l)), A = 0, I = Z.length; A < I; ++A)
|
|
14928
|
+
p(Z[A]), f = u.lineHeight;
|
|
14929
|
+
s2(b.after, p);
|
|
14929
14930
|
}
|
|
14930
|
-
h = 0, f = u.lineHeight, s2(this.afterBody,
|
|
14931
|
+
h = 0, f = u.lineHeight, s2(this.afterBody, p), e.y -= s;
|
|
14931
14932
|
}
|
|
14932
14933
|
drawFooter(e, t, i) {
|
|
14933
14934
|
const o = this.footer, s = o.length;
|
|
@@ -14939,8 +14940,8 @@ class i1 extends _0 {
|
|
|
14939
14940
|
}
|
|
14940
14941
|
}
|
|
14941
14942
|
drawBackground(e, t, i, o) {
|
|
14942
|
-
const { xAlign: s, yAlign: r } = this, { x: a, y: l } = e, { width: c, height: d } = i, { topLeft: u, topRight: f, bottomLeft: h, bottomRight:
|
|
14943
|
-
t.fillStyle = o.backgroundColor, t.strokeStyle = o.borderColor, t.lineWidth = o.borderWidth, t.beginPath(), t.moveTo(a + u, l), r === "top" && this.drawCaret(e, t, i, o), t.lineTo(a + c - f, l), t.quadraticCurveTo(a + c, l, a + c, l + f), r === "center" && s === "right" && this.drawCaret(e, t, i, o), t.lineTo(a + c, l + d -
|
|
14943
|
+
const { xAlign: s, yAlign: r } = this, { x: a, y: l } = e, { width: c, height: d } = i, { topLeft: u, topRight: f, bottomLeft: h, bottomRight: g } = L0(o.cornerRadius);
|
|
14944
|
+
t.fillStyle = o.backgroundColor, t.strokeStyle = o.borderColor, t.lineWidth = o.borderWidth, t.beginPath(), t.moveTo(a + u, l), r === "top" && this.drawCaret(e, t, i, o), t.lineTo(a + c - f, l), t.quadraticCurveTo(a + c, l, a + c, l + f), r === "center" && s === "right" && this.drawCaret(e, t, i, o), t.lineTo(a + c, l + d - g), t.quadraticCurveTo(a + c, l + d, a + c - g, l + d), r === "bottom" && this.drawCaret(e, t, i, o), t.lineTo(a + h, l + d), t.quadraticCurveTo(a, l + d, a, l + d - h), r === "center" && s === "left" && this.drawCaret(e, t, i, o), t.lineTo(a, l + u), t.quadraticCurveTo(a, l, a + u, l), t.closePath(), t.fill(), o.borderWidth > 0 && t.stroke();
|
|
14944
14945
|
}
|
|
14945
14946
|
_updateAnimationTarget(e) {
|
|
14946
14947
|
const t = this.chart, i = this.$animations, o = i && i.x, s = i && i.y;
|
|
@@ -15130,18 +15131,18 @@ var al = {
|
|
|
15130
15131
|
]
|
|
15131
15132
|
};
|
|
15132
15133
|
function ll(n, e) {
|
|
15133
|
-
const t = [], { bounds: o, step: s, min: r, max: a, precision: l, count: c, maxTicks: d, maxDigits: u, includeBounds: f } = n, h = s || 1,
|
|
15134
|
-
let A = t3((
|
|
15134
|
+
const t = [], { bounds: o, step: s, min: r, max: a, precision: l, count: c, maxTicks: d, maxDigits: u, includeBounds: f } = n, h = s || 1, g = d - 1, { min: p, max: C } = e, b = !d2(r), w = !d2(a), Z = !d2(c), S = (C - p) / (u + 1);
|
|
15135
|
+
let A = t3((C - p) / g / h) * h, P, I, F, E;
|
|
15135
15136
|
if (A < 1e-14 && !b && !w)
|
|
15136
15137
|
return [
|
|
15137
15138
|
{
|
|
15138
|
-
value:
|
|
15139
|
+
value: p
|
|
15139
15140
|
},
|
|
15140
15141
|
{
|
|
15141
|
-
value:
|
|
15142
|
+
value: C
|
|
15142
15143
|
}
|
|
15143
15144
|
];
|
|
15144
|
-
E = Math.ceil(
|
|
15145
|
+
E = Math.ceil(C / A) - Math.floor(p / A), E > g && (A = t3(E * A / g / h) * h), d2(l) || (P = Math.pow(10, l), A = Math.ceil(A * P) / P), o === "ticks" ? (I = Math.floor(p / A) * A, F = Math.ceil(C / A) * A) : (I = p, F = C), b && w && s && _r((a - r) / s, A / 1e3) ? (E = Math.round(Math.min((a - r) / A, d)), A = (a - r) / E, I = r, F = a) : Z ? (I = b ? r : I, F = w ? a : F, E = c - 1, A = (F - I) / E) : (E = (F - I) / A, Ue(E, Math.round(E), A / 1e3) ? E = Math.round(E) : E = Math.ceil(E));
|
|
15145
15146
|
const j = Math.max(n3(A), n3(I));
|
|
15146
15147
|
P = Math.pow(10, d2(l) ? j : l), I = Math.round(I * P) / P, F = Math.round(F * P) / P;
|
|
15147
15148
|
let R = 0;
|
|
@@ -15378,8 +15379,8 @@ function hl(n) {
|
|
|
15378
15379
|
o[l] = c.padding;
|
|
15379
15380
|
const d = n.getPointPosition(l, n.drawingArea + o[l], a), u = _2(c.font), f = ul(n.ctx, u, n._pointLabels[l]);
|
|
15380
15381
|
i[l] = f;
|
|
15381
|
-
const h = I2(n.getIndexAngle(l) + a),
|
|
15382
|
-
fl(t, e, h,
|
|
15382
|
+
const h = I2(n.getIndexAngle(l) + a), g = Math.round(m1(h)), p = G3(g, d.x, f.w, 0, 180), C = G3(g, d.y, f.h, 90, 270);
|
|
15383
|
+
fl(t, e, h, p, C);
|
|
15383
15384
|
}
|
|
15384
15385
|
n.setCenterPoint(e.l - t.l, t.r - e.r, e.t - t.t, t.b - e.b), n._pointLabelItems = gl(n, i, o);
|
|
15385
15386
|
}
|
|
@@ -15447,7 +15448,7 @@ function vl(n, e, t) {
|
|
|
15447
15448
|
const l = L0(e.borderRadius), c = Z2(e.backdropPadding);
|
|
15448
15449
|
n.fillStyle = a;
|
|
15449
15450
|
const d = i - c.left, u = o - c.top, f = s - i + c.width, h = r - o + c.height;
|
|
15450
|
-
Object.values(l).some((
|
|
15451
|
+
Object.values(l).some((g) => g !== 0) ? (n.beginPath(), ot(n, {
|
|
15451
15452
|
x: d,
|
|
15452
15453
|
y: u,
|
|
15453
15454
|
w: f,
|
|
@@ -15584,8 +15585,8 @@ class ze extends lt {
|
|
|
15584
15585
|
if (t.pointLabels.display && Ml(this, r), o.display && this.ticks.forEach((d, u) => {
|
|
15585
15586
|
if (u !== 0 || u === 0 && this.min < 0) {
|
|
15586
15587
|
l = this.getDistanceFromCenterForValue(d.value);
|
|
15587
|
-
const f = this.getContext(u), h = o.setContext(f),
|
|
15588
|
-
xl(this, h, l, r,
|
|
15588
|
+
const f = this.getContext(u), h = o.setContext(f), g = s.setContext(f);
|
|
15589
|
+
xl(this, h, l, r, g);
|
|
15589
15590
|
}
|
|
15590
15591
|
}), i.display) {
|
|
15591
15592
|
for (e.save(), a = r - 1; a >= 0; a--) {
|
|
@@ -15831,10 +15832,10 @@ class ct extends z0 {
|
|
|
15831
15832
|
let u = t, f, h;
|
|
15832
15833
|
if (c && (u = +e.startOf(u, "isoWeek", l)), u = +e.startOf(u, c ? "day" : r), e.diff(i, t, r) > 1e5 * a)
|
|
15833
15834
|
throw new Error(t + " and " + i + " are too far apart with stepSize of " + a + " " + r);
|
|
15834
|
-
const
|
|
15835
|
+
const g = o.ticks.source === "data" && this.getDataTimestamps();
|
|
15835
15836
|
for (f = u, h = 0; f < i; f = +e.add(f, a, r), h++)
|
|
15836
|
-
tn(d, f,
|
|
15837
|
-
return (f === i || o.bounds === "ticks" || h === 1) && tn(d, f,
|
|
15837
|
+
tn(d, f, g);
|
|
15838
|
+
return (f === i || o.bounds === "ticks" || h === 1) && tn(d, f, g), Object.keys(d).sort(Q3).map((p) => +p);
|
|
15838
15839
|
}
|
|
15839
15840
|
getLabelForValue(e) {
|
|
15840
15841
|
const t = this._adapter, i = this.options.time;
|
|
@@ -16070,10 +16071,10 @@ const Il = t2({
|
|
|
16070
16071
|
const r = () => {
|
|
16071
16072
|
if (!o.value)
|
|
16072
16073
|
return;
|
|
16073
|
-
const { type: c, data: d, options: u, plugins: f, datasetIdKey: h } = n,
|
|
16074
|
+
const { type: c, data: d, options: u, plugins: f, datasetIdKey: h } = n, g = Bl(d, h), p = Tl(g, d);
|
|
16074
16075
|
s.value = new vt(o.value, {
|
|
16075
16076
|
type: c,
|
|
16076
|
-
data:
|
|
16077
|
+
data: p,
|
|
16077
16078
|
options: {
|
|
16078
16079
|
...u
|
|
16079
16080
|
},
|
|
@@ -16091,21 +16092,21 @@ const Il = t2({
|
|
|
16091
16092
|
() => n.options,
|
|
16092
16093
|
() => n.data
|
|
16093
16094
|
], (c, d) => {
|
|
16094
|
-
let [u, f] = c, [h,
|
|
16095
|
-
const
|
|
16096
|
-
if (!
|
|
16095
|
+
let [u, f] = c, [h, g] = d;
|
|
16096
|
+
const p = Ht(s.value);
|
|
16097
|
+
if (!p)
|
|
16097
16098
|
return;
|
|
16098
|
-
let
|
|
16099
|
+
let C = !1;
|
|
16099
16100
|
if (u) {
|
|
16100
16101
|
const b = T0(u), w = T0(h);
|
|
16101
|
-
b && b !== w && (Pl(
|
|
16102
|
+
b && b !== w && (Pl(p, b), C = !0);
|
|
16102
16103
|
}
|
|
16103
16104
|
if (f) {
|
|
16104
|
-
const b = T0(f.labels), w = T0(
|
|
16105
|
-
b !== w && (Li(
|
|
16105
|
+
const b = T0(f.labels), w = T0(g.labels), Z = T0(f.datasets), S = T0(g.datasets);
|
|
16106
|
+
b !== w && (Li(p.config.data, b), C = !0), Z && Z !== S && (Oi(p.config.data, Z, n.datasetIdKey), C = !0);
|
|
16106
16107
|
}
|
|
16107
|
-
|
|
16108
|
-
l(
|
|
16108
|
+
C && rn(() => {
|
|
16109
|
+
l(p);
|
|
16109
16110
|
});
|
|
16110
16111
|
}, {
|
|
16111
16112
|
deep: !0
|
|
@@ -16221,17 +16222,17 @@ const Ll = /* @__PURE__ */ Fi("doughnut", B0), Ol = /* @__PURE__ */ Fi("pie", e1
|
|
|
16221
16222
|
return z.variant === "Multi" && ((x = z.tabs) != null && x.length) ? ((L = z.tabs[r.value]) == null ? void 0 : L.chartType) ?? z.chartType ?? "doughnut" : z.chartType ?? "doughnut";
|
|
16222
16223
|
}
|
|
16223
16224
|
return t.variant === "Multi" && ((O = t.tabs) != null && O.length) ? ((H = t.tabs[r.value]) == null ? void 0 : H.chartType) ?? t.chartType ?? "doughnut" : t.chartType ?? "doughnut";
|
|
16224
|
-
}),
|
|
16225
|
+
}), g = k(() => {
|
|
16225
16226
|
var x;
|
|
16226
16227
|
return d.value && ((x = u.value) == null ? void 0 : x.variant) === "Multi" ? u.value.tabs ?? [] : t.tabs ?? [];
|
|
16227
|
-
}),
|
|
16228
|
+
}), p = k(() => {
|
|
16228
16229
|
var x, L, O, H;
|
|
16229
16230
|
if (d.value && u.value) {
|
|
16230
16231
|
const z = u.value;
|
|
16231
16232
|
return z.variant === "Multi" && ((x = z.tabs) != null && x.length) ? ((L = z.tabs[r.value]) == null ? void 0 : L.headline) ?? z.headline : z.headline;
|
|
16232
16233
|
}
|
|
16233
16234
|
return t.variant === "Multi" && ((O = t.tabs) != null && O.length) ? ((H = t.tabs[r.value]) == null ? void 0 : H.headline) ?? t.chartHeadline ?? t.headline : t.variant === "Section" ? t.chartHeadline ?? t.headline : t.headline;
|
|
16234
|
-
}),
|
|
16235
|
+
}), C = k(() => {
|
|
16235
16236
|
var x, L, O, H;
|
|
16236
16237
|
if (d.value && u.value) {
|
|
16237
16238
|
const z = u.value;
|
|
@@ -16331,7 +16332,7 @@ const Ll = /* @__PURE__ */ Fi("doughnut", B0), Ol = /* @__PURE__ */ Fi("pie", e1
|
|
|
16331
16332
|
innerHTML: x.subHeadline
|
|
16332
16333
|
}, null, 10, El)) : _("", !0)
|
|
16333
16334
|
], 64)) : _("", !0),
|
|
16334
|
-
R.value &&
|
|
16335
|
+
R.value && g.value.length > 1 ? (m(), v("div", Dl, [
|
|
16335
16336
|
$("div", {
|
|
16336
16337
|
class: M(
|
|
16337
16338
|
y(N)(
|
|
@@ -16340,7 +16341,7 @@ const Ll = /* @__PURE__ */ Fi("doughnut", B0), Ol = /* @__PURE__ */ Fi("pie", e1
|
|
|
16340
16341
|
)
|
|
16341
16342
|
)
|
|
16342
16343
|
}, [
|
|
16343
|
-
(m(!0), v(q, null, n2(
|
|
16344
|
+
(m(!0), v(q, null, n2(g.value, (O, H) => {
|
|
16344
16345
|
var z, G;
|
|
16345
16346
|
return m(), v("button", {
|
|
16346
16347
|
key: O.label,
|
|
@@ -16368,7 +16369,7 @@ const Ll = /* @__PURE__ */ Fi("doughnut", B0), Ol = /* @__PURE__ */ Fi("pie", e1
|
|
|
16368
16369
|
)
|
|
16369
16370
|
)
|
|
16370
16371
|
}, [
|
|
16371
|
-
|
|
16372
|
+
p.value ? (m(), v("div", jl, [
|
|
16372
16373
|
d.value ? (m(), v("button", {
|
|
16373
16374
|
key: 0,
|
|
16374
16375
|
class: M(
|
|
@@ -16396,12 +16397,12 @@ const Ll = /* @__PURE__ */ Fi("doughnut", B0), Ol = /* @__PURE__ */ Fi("pie", e1
|
|
|
16396
16397
|
]), 2)) : _("", !0),
|
|
16397
16398
|
$("h2", {
|
|
16398
16399
|
class: "text-iris text-3xl md:text-4xl font-bold leading-tight",
|
|
16399
|
-
innerHTML:
|
|
16400
|
+
innerHTML: p.value
|
|
16400
16401
|
}, null, 8, Hl)
|
|
16401
16402
|
])) : _("", !0),
|
|
16402
16403
|
$("div", zl, [
|
|
16403
16404
|
$("div", Nl, [
|
|
16404
|
-
|
|
16405
|
+
C.value ? (m(), v("h3", {
|
|
16405
16406
|
key: 0,
|
|
16406
16407
|
class: M(
|
|
16407
16408
|
y(N)(
|
|
@@ -16409,7 +16410,7 @@ const Ll = /* @__PURE__ */ Fi("doughnut", B0), Ol = /* @__PURE__ */ Fi("pie", e1
|
|
|
16409
16410
|
s.value.subheadline ?? ""
|
|
16410
16411
|
)
|
|
16411
16412
|
),
|
|
16412
|
-
innerHTML:
|
|
16413
|
+
innerHTML: C.value
|
|
16413
16414
|
}, null, 10, Vl)) : _("", !0),
|
|
16414
16415
|
b.value ? (m(), v("p", {
|
|
16415
16416
|
key: 1,
|