@getmicdrop/venue-calendar 4.3.93 → 4.3.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/{CalendarFoundryView-C_j409DI.js → CalendarFoundryView-CBkxK0b5.js} +1 -1
- package/dist/{ChartBlock-BmkCI-vc.js → ChartBlock-SYOAO1s_.js} +393 -388
- package/dist/venue-calendar.es.js +2 -2
- package/dist/venue-calendar.iife.js +2 -2
- package/dist/venue-calendar.umd.js +23 -23
- package/package.json +2 -2
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/de.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/es.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/id.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/it.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/de.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/es.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/fr.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/id.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/it.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/ja.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/ko.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/nl.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/pl.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/tr.js +0 -0
- /package/dist/locales/{4.3.93 → 4.3.95}/main/zh.js +0 -0
|
@@ -10,14 +10,22 @@ function m(e, t) {
|
|
|
10
10
|
return e.note ? `${n} · ${e.note}` : n;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/point-inset.js
|
|
14
|
+
var h = .3;
|
|
15
|
+
function g(e, t, n = 16) {
|
|
16
|
+
if (e < 2 || t <= 2 * n) return h;
|
|
17
|
+
let r = n * (e - 1) / (t - 2 * n);
|
|
18
|
+
return Math.max(h, r);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
13
21
|
//#region node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/ChartBlock.svelte
|
|
14
|
-
var
|
|
15
|
-
var n =
|
|
22
|
+
var ee = (e, t = p.noop) => {
|
|
23
|
+
var n = Pe();
|
|
16
24
|
p.each(n, 21, t, p.index, (e, t) => {
|
|
17
|
-
var n =
|
|
25
|
+
var n = Ne(), r = p.child(n), i = p.sibling(r, 2), a = p.child(i, !0);
|
|
18
26
|
p.reset(i);
|
|
19
27
|
var o = p.sibling(i, 2), s = (e) => {
|
|
20
|
-
var n =
|
|
28
|
+
var n = _(), r = p.child(n, !0);
|
|
21
29
|
p.reset(n), p.template_effect(() => p.set_text(r, p.get(t).value)), p.append(e, n);
|
|
22
30
|
};
|
|
23
31
|
p.if(o, (e) => {
|
|
@@ -26,21 +34,21 @@ var h = (e, t = p.noop) => {
|
|
|
26
34
|
p.set_style(r, `background: ${p.get(t).color ?? ""}`), p.set_text(a, p.get(t).label);
|
|
27
35
|
}), p.append(e, n);
|
|
28
36
|
}), p.reset(n), p.append(e, n);
|
|
29
|
-
},
|
|
30
|
-
var n =
|
|
37
|
+
}, te = (e, t = p.noop) => {
|
|
38
|
+
var n = Ie();
|
|
31
39
|
p.each(n, 21, t, p.index, (e, t) => {
|
|
32
|
-
var n =
|
|
40
|
+
var n = Fe(), r = p.child(n), i = p.sibling(r, 2), a = p.child(i, !0);
|
|
33
41
|
p.reset(i), p.reset(n), p.template_effect(() => {
|
|
34
42
|
p.set_style(r, `background: ${p.get(t).color ?? ""}`), p.set_text(a, p.get(t).label);
|
|
35
43
|
}), p.append(e, n);
|
|
36
44
|
}), p.reset(n), p.append(e, n);
|
|
37
|
-
},
|
|
38
|
-
function
|
|
45
|
+
}, ne = p.from_html("<div class=\"flex h-full w-full flex-col\"><div class=\"min-h-0 flex-1\"><!></div> <!></div>"), re = p.from_html("<div class=\"flex h-full w-full items-center justify-center px-2 text-center type-caption tone-secondary\"> </div>"), ie = p.from_html("<div class=\"flex h-full w-full items-center justify-center px-2\"><!></div>"), ae = p.from_svg("<path data-testid=\"funnel-ribbon\" class=\"cursor-pointer transition-opacity\" role=\"presentation\"></path>"), oe = p.from_svg("<rect rx=\"1.5\" data-testid=\"funnel-node\" class=\"cursor-pointer\" role=\"presentation\"></rect>"), se = p.from_html("<span class=\"block truncate text-xs font-semibold text-text-primary\"> </span>"), ce = p.from_html("<div data-testid=\"funnel-stage-head\"><!> <span class=\"block truncate text-xs text-text-secondary tabular-nums\"> </span></div>"), le = p.from_html("<div data-testid=\"funnel-zero-chip\" class=\"pointer-events-none absolute top-1/2 rounded-full bg-bg-tertiary px-1.5 py-0.5 text-xs font-semibold text-text-secondary tabular-nums\">0</div>"), ue = p.from_svg("<svg class=\"block h-full w-full\" aria-hidden=\"true\"><!><!></svg><!><!>", 1), de = p.from_html("<li><button type=\"button\" data-testid=\"funnel-a11y-button\"> </button></li>"), fe = p.from_html("<span class=\"inline-flex items-center gap-1.5\" data-testid=\"funnel-legend\"><span class=\"h-2.5 w-2.5 shrink-0 rounded-full\"></span> </span>"), pe = p.from_html("<span class=\"ml-auto text-sm text-text-secondary\"><span class=\"font-semibold text-text-primary\"> </span> </span>"), me = p.from_html("<div class=\"mt-1 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 text-xs text-text-secondary\"><!> <!></div>"), he = p.from_html("<span class=\"h-2 w-2 shrink-0 rounded-full\"></span>"), ge = p.from_html("<div class=\"flex justify-between gap-3 tabular-nums\"><span class=\"text-text-secondary\"> </span> <span class=\"font-medium\"> </span></div>"), _e = p.from_html("<div class=\"pointer-events-none absolute z-sticky -translate-x-1/2 -translate-y-full\" data-testid=\"funnel-tip\"><div class=\"rounded-lg border border-border bg-card px-2.5 py-1.5 text-xs text-text-primary shadow-lg\"><div class=\"mb-0.5 flex items-center gap-1.5 font-semibold\"><!> </div> <!></div></div>"), ve = p.from_html("<div class=\"relative flex h-full w-full flex-col\"><div class=\"relative min-h-0 flex-1\"><!></div> <ul class=\"sr-only\" data-testid=\"funnel-a11y-list\"></ul> <ul class=\"sr-only\" data-testid=\"funnel-a11y-stages\"></ul> <!> <!></div>"), ye = p.from_html("<span> </span>"), be = p.from_html("<span class=\"opacity-60\">·</span> <span> </span>", 1), xe = p.from_html("<span class=\"opacity-80\"> </span>"), Se = p.from_html("<div><span aria-hidden=\"true\">↓</span> <!> <!> <!></div>"), Ce = p.from_html("<div class=\"min-h-0\" data-testid=\"funnel-stage\"><div class=\"mb-1 flex items-baseline justify-between gap-x-2\"><span class=\"truncate text-sm font-semibold text-text-primary\"> </span> <span class=\"shrink-0 text-xs text-text-secondary tabular-nums\"><span class=\"font-semibold text-text-primary\"> </span> <!></span></div> <div class=\"h-2 overflow-hidden rounded-full\"><div class=\"h-full rounded-full\" data-testid=\"funnel-bar\"></div></div></div> <!>", 1), we = p.from_html("<p class=\"mt-1 shrink-0 truncate text-sm text-text-secondary\"><span class=\"font-semibold text-text-primary\"> </span> </p>"), Te = p.from_html("<div class=\"flex h-full w-full flex-col justify-center overflow-hidden\"><!> <!></div>"), Ee = p.from_html("<div class=\"truncate px-1 text-center text-xs text-text-secondary\"> </div>"), De = p.from_html("<div data-testid=\"heatmap-cell\"> </div>"), Oe = p.from_html("<div class=\"sticky left-0 z-sticky flex items-center truncate bg-card pr-2 text-xs font-medium text-text-secondary\"> </div> <!>", 1), ke = p.from_html("<span></span>"), Ae = p.from_html("<div class=\"flex h-full flex-col gap-2 overflow-hidden\"><div class=\"min-h-0 flex-1 overflow-auto\"><div class=\"matrix svelte-1wt5e4g\"><div class=\"sticky left-0 z-sticky bg-card\"></div> <!> <!></div></div> <div class=\"flex shrink-0 items-center gap-2 text-xs text-text-secondary\"><span> </span> <div class=\"flex gap-0.5\"></div> <span> </span></div></div>"), je = p.from_html("<div data-testid=\"heatmap-tile\"><div class=\"text-lg font-bold\"> </div> <div class=\"truncate text-xs opacity-80\"> </div></div>"), Me = p.from_html("<div class=\"h-full w-full overflow-auto\"><!></div>"), _ = p.from_html("<span class=\"shrink-0 font-semibold tabular-nums text-text-primary\"> </span>"), Ne = p.from_html("<li class=\"flex min-w-0 items-center gap-2 text-xs text-text-secondary\"><span class=\"h-2.5 w-2.5 shrink-0 rounded-full\"></span> <span class=\"min-w-0 flex-1 truncate\"> </span> <!></li>"), Pe = p.from_html("<ul class=\"flex shrink-0 flex-col gap-1.5\"></ul>"), Fe = p.from_html("<span class=\"inline-flex min-w-0 items-center gap-1.5 text-xs text-text-secondary\"><span class=\"h-2.5 w-2.5 shrink-0 rounded-full\"></span> <span class=\"truncate\"> </span></span>"), Ie = p.from_html("<div class=\"mt-1.5 flex shrink-0 flex-wrap justify-center gap-x-3 gap-y-1 px-2\"></div>"), Le = p.from_html("<div class=\"relative h-full w-full\"><!></div>"), Re = p.from_html("<span aria-hidden=\"true\">·</span>"), ze = p.from_html("<span data-testid=\"chart-caption-lead\"> </span> <!>", 1), Be = p.from_html("<p data-testid=\"chart-caption\" class=\"mb-1 flex shrink-0 items-baseline gap-1 text-xs font-semibold text-text-secondary\"><!> <!></p>"), Ve = p.from_html("<p class=\"shrink-0 pt-1 text-center text-xs text-text-secondary\"> </p>"), He = p.from_html("<div class=\"flex h-full flex-col\"><div class=\"min-h-0 flex-1\"><!></div> <!></div>"), Ue = p.from_html("<span class=\"text-xs font-medium text-brand-primary\"> </span>"), We = p.from_html("<span class=\"text-xs text-text-secondary\"> </span>"), Ge = p.from_html("<div><svg viewBox=\"0 0 100 54\" preserveAspectRatio=\"xMidYMax meet\" aria-hidden=\"true\"><defs><linearGradient id=\"report-gauge-grad\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\"><stop offset=\"0%\"></stop><stop offset=\"100%\"></stop></linearGradient></defs><path transform=\"translate(50,50)\"></path><path transform=\"translate(50,50)\" fill=\"url(#report-gauge-grad)\"></path></svg> <div><span class=\"text-2xl font-bold text-text-primary tabular-nums\"> </span> <!> <!></div></div>"), Ke = p.from_html("<div><div><!></div> <div><!></div></div>"), qe = p.from_html("<div class=\"flex h-full min-h-0 w-full flex-col overflow-hidden\"><!> <div class=\"min-h-0 flex-1\"><!></div></div>"), Je = p.from_html("<div class=\"h-full min-h-0 w-full\"><!></div>");
|
|
46
|
+
function Ye(h, _) {
|
|
39
47
|
p.push(_, !0);
|
|
40
|
-
let
|
|
41
|
-
var t =
|
|
48
|
+
let Ne = (e) => {
|
|
49
|
+
var t = ne(), n = p.child(t), r = p.child(n);
|
|
42
50
|
{
|
|
43
|
-
let e = p.derived(() => (void 0)().padding(
|
|
51
|
+
let e = p.derived(() => (void 0)().padding(p.get(N))), t = p.derived(() => ({
|
|
44
52
|
spline: {
|
|
45
53
|
strokeWidth: 2,
|
|
46
54
|
fill: "none",
|
|
@@ -51,19 +59,19 @@ function v(je, _) {
|
|
|
51
59
|
r: 3
|
|
52
60
|
},
|
|
53
61
|
yAxis: {
|
|
54
|
-
format: p.get(
|
|
55
|
-
tickLabelProps:
|
|
62
|
+
format: p.get(O),
|
|
63
|
+
tickLabelProps: x.tick
|
|
56
64
|
},
|
|
57
|
-
xAxis: { tickLabelProps:
|
|
58
|
-
tooltip: p.get(
|
|
65
|
+
xAxis: { tickLabelProps: x.tick },
|
|
66
|
+
tooltip: p.get(ct),
|
|
59
67
|
highlight: {
|
|
60
|
-
points:
|
|
61
|
-
lines:
|
|
68
|
+
points: x.highlight.points,
|
|
69
|
+
lines: x.highlight.lines
|
|
62
70
|
}
|
|
63
71
|
}));
|
|
64
72
|
(void 0)(r, {
|
|
65
73
|
get data() {
|
|
66
|
-
return p.get(
|
|
74
|
+
return p.get(Lt);
|
|
67
75
|
},
|
|
68
76
|
x: "label",
|
|
69
77
|
get xScale() {
|
|
@@ -72,10 +80,10 @@ function v(je, _) {
|
|
|
72
80
|
y: "value",
|
|
73
81
|
points: !0,
|
|
74
82
|
get padding() {
|
|
75
|
-
return
|
|
83
|
+
return S.valueAxis;
|
|
76
84
|
},
|
|
77
85
|
get series() {
|
|
78
|
-
return p.get(
|
|
86
|
+
return p.get(Rt);
|
|
79
87
|
},
|
|
80
88
|
legend: !1,
|
|
81
89
|
get props() {
|
|
@@ -83,31 +91,31 @@ function v(je, _) {
|
|
|
83
91
|
}
|
|
84
92
|
});
|
|
85
93
|
}
|
|
86
|
-
p.reset(n),
|
|
87
|
-
label: p.get(
|
|
88
|
-
color:
|
|
94
|
+
p.reset(n), te(p.sibling(n, 2), () => [{
|
|
95
|
+
label: p.get(E),
|
|
96
|
+
color: x.series
|
|
89
97
|
}, {
|
|
90
|
-
label: p.get(
|
|
91
|
-
color:
|
|
98
|
+
label: p.get(Pt),
|
|
99
|
+
color: x.ghost
|
|
92
100
|
}]), p.reset(t), p.append(e, t);
|
|
93
|
-
},
|
|
101
|
+
}, Pe = (t) => {
|
|
94
102
|
var a = p.comment(), o = p.first_child(a), u = (e) => {
|
|
95
|
-
var t =
|
|
96
|
-
p.reset(t), p.template_effect(() => p.set_text(n, p.get(
|
|
103
|
+
var t = re(), n = p.child(t, !0);
|
|
104
|
+
p.reset(t), p.template_effect(() => p.set_text(n, p.get(dt))), p.append(e, t);
|
|
97
105
|
}, d = (t) => {
|
|
98
|
-
var a =
|
|
106
|
+
var a = ie(), o = p.child(a);
|
|
99
107
|
f(o, {
|
|
100
108
|
get message() {
|
|
101
|
-
return p.get(
|
|
109
|
+
return p.get(dt);
|
|
102
110
|
},
|
|
103
111
|
get subtext() {
|
|
104
|
-
return p.get(
|
|
112
|
+
return p.get(C).emptySubtext;
|
|
105
113
|
},
|
|
106
114
|
children: (t, a) => {
|
|
107
115
|
var o = p.comment(), u = p.first_child(o), d = (t) => {
|
|
108
|
-
let a = p.derived(() => p.get(
|
|
116
|
+
let a = p.derived(() => p.get(C).emptyAction);
|
|
109
117
|
{
|
|
110
|
-
let o = p.derived(() => r(p.get(a))), u = p.derived(() => s(p.get(a))), d = p.derived(() => n(p.get(a))), f = p.derived(() => l(p.get(a))), m = p.derived(() =>
|
|
118
|
+
let o = p.derived(() => r(p.get(a))), u = p.derived(() => s(p.get(a))), d = p.derived(() => n(p.get(a))), f = p.derived(() => l(p.get(a))), m = p.derived(() => Ze(p.get(a).intent));
|
|
111
119
|
e(t, {
|
|
112
120
|
get variant() {
|
|
113
121
|
return p.get(o);
|
|
@@ -139,56 +147,56 @@ function v(je, _) {
|
|
|
139
147
|
}
|
|
140
148
|
};
|
|
141
149
|
p.if(u, (e) => {
|
|
142
|
-
p.get(
|
|
150
|
+
p.get(C).emptyAction && e(d);
|
|
143
151
|
}), p.append(t, o);
|
|
144
152
|
},
|
|
145
153
|
$$slots: { default: !0 }
|
|
146
154
|
}), p.reset(a), p.append(t, a);
|
|
147
155
|
};
|
|
148
156
|
p.if(o, (e) => {
|
|
149
|
-
p.get(
|
|
157
|
+
p.get(C).emptyVariant === "plain" ? e(u) : e(d, -1);
|
|
150
158
|
}), p.append(t, a);
|
|
151
|
-
},
|
|
152
|
-
var t =
|
|
153
|
-
|
|
159
|
+
}, Fe = (e) => {
|
|
160
|
+
var t = ve(), n = p.child(t), r = p.child(n), i = (e) => {
|
|
161
|
+
Ie(e);
|
|
154
162
|
}, a = (e) => {
|
|
155
|
-
var t =
|
|
156
|
-
p.each(r, 17, () => p.get(
|
|
157
|
-
var n =
|
|
163
|
+
var t = ue(), n = p.first_child(t), r = p.child(n);
|
|
164
|
+
p.each(r, 17, () => p.get(q).ribbons, p.index, (e, t) => {
|
|
165
|
+
var n = ae();
|
|
158
166
|
p.template_effect((e) => {
|
|
159
167
|
p.set_attribute(n, "d", p.get(t).path), p.set_attribute(n, "fill", p.get(t).color), p.set_attribute(n, "opacity", e);
|
|
160
|
-
}, [() =>
|
|
168
|
+
}, [() => an(p.get(t).sourceIdx)]), p.event("pointerenter", n, (e) => Zt(p.get(t).sourceIdx, e)), p.delegated("pointermove", n, nn), p.event("pointerleave", n, X), p.append(e, n);
|
|
161
169
|
});
|
|
162
170
|
var i = p.sibling(r);
|
|
163
|
-
p.each(i, 17, () => p.get(
|
|
164
|
-
var n =
|
|
171
|
+
p.each(i, 17, () => p.get(q).nodes, p.index, (e, t) => {
|
|
172
|
+
var n = oe();
|
|
165
173
|
p.template_effect(() => {
|
|
166
|
-
p.set_attribute(n, "x", p.get(t).x), p.set_attribute(n, "y", p.get(t).y), p.set_attribute(n, "width", p.get(
|
|
167
|
-
}), p.event("pointerenter", n, (e) =>
|
|
174
|
+
p.set_attribute(n, "x", p.get(t).x), p.set_attribute(n, "y", p.get(t).y), p.set_attribute(n, "width", p.get(q).nodeW), p.set_attribute(n, "height", p.get(t).h), p.set_attribute(n, "fill", p.get(t).color);
|
|
175
|
+
}), p.event("pointerenter", n, (e) => Qt(p.get(t).stageIdx, e)), p.delegated("pointermove", n, nn), p.event("pointerleave", n, X), p.append(e, n);
|
|
168
176
|
}), p.reset(n);
|
|
169
177
|
var a = p.sibling(n);
|
|
170
|
-
p.each(a, 17, () => p.get(
|
|
171
|
-
var r =
|
|
172
|
-
var n =
|
|
178
|
+
p.each(a, 17, () => p.get(V), p.index, (e, t, n) => {
|
|
179
|
+
var r = ce(), i = p.child(r), a = (e) => {
|
|
180
|
+
var n = se(), r = p.child(n, !0);
|
|
173
181
|
p.reset(n), p.template_effect(() => p.set_text(r, p.get(t).label)), p.append(e, n);
|
|
174
182
|
};
|
|
175
183
|
p.if(i, (e) => {
|
|
176
|
-
p.get(
|
|
184
|
+
p.get(sn) && e(a);
|
|
177
185
|
});
|
|
178
186
|
var o = p.sibling(i, 2), s = p.child(o, !0);
|
|
179
187
|
p.reset(o), p.reset(r), p.template_effect((e, n, i) => {
|
|
180
188
|
p.set_attribute(r, "data-stage", p.get(t).label), p.set_class(r, 1, `pointer-events-none absolute top-0 ${e ?? ""}`, "svelte-1wt5e4g"), p.set_style(r, n), p.set_text(s, i);
|
|
181
189
|
}, [
|
|
182
|
-
() =>
|
|
183
|
-
() =>
|
|
184
|
-
() =>
|
|
190
|
+
() => cn(n),
|
|
191
|
+
() => on(n, p.get(q).xs, p.get(q).padX),
|
|
192
|
+
() => D(p.get(t).value)
|
|
185
193
|
]), p.append(e, r);
|
|
186
194
|
});
|
|
187
195
|
var o = p.sibling(a);
|
|
188
|
-
p.each(o, 17, () => p.get(
|
|
196
|
+
p.each(o, 17, () => p.get(V), p.index, (e, t, n) => {
|
|
189
197
|
var r = p.comment(), i = p.first_child(r), a = (e) => {
|
|
190
|
-
var t =
|
|
191
|
-
p.template_effect(() => p.set_style(t, `left:${p.get(
|
|
198
|
+
var t = le();
|
|
199
|
+
p.template_effect(() => p.set_style(t, `left:${p.get(q).xs[n] + p.get(q).nodeW / 2}px; transform:translate(-50%,-50%)`)), p.append(e, t);
|
|
192
200
|
};
|
|
193
201
|
p.if(i, (e) => {
|
|
194
202
|
p.get(t).value === 0 && e(a);
|
|
@@ -196,78 +204,78 @@ function v(je, _) {
|
|
|
196
204
|
}), p.template_effect(() => p.set_attribute(n, "viewBox", `0 0 ${p.get(W)} ${p.get(G)}`)), p.append(e, t);
|
|
197
205
|
};
|
|
198
206
|
p.if(r, (e) => {
|
|
199
|
-
p.get(
|
|
207
|
+
p.get(K) === "tiny" ? e(i) : p.get(q) && e(a, 1);
|
|
200
208
|
}), p.reset(n);
|
|
201
209
|
var o = p.sibling(n, 2);
|
|
202
|
-
p.each(o, 21, () => p.get(
|
|
203
|
-
var n =
|
|
204
|
-
p.reset(r), p.reset(n), p.template_effect((e) => p.set_text(i, e), [() =>
|
|
210
|
+
p.each(o, 21, () => p.get(H), p.index, (e, t) => {
|
|
211
|
+
var n = de(), r = p.child(n), i = p.child(r, !0);
|
|
212
|
+
p.reset(r), p.reset(n), p.template_effect((e) => p.set_text(i, e), [() => rn(p.get(t))]), p.event("focus", r, () => $t(p.get(t))), p.event("blur", r, X), p.append(e, n);
|
|
205
213
|
}), p.reset(o);
|
|
206
214
|
var s = p.sibling(o, 2);
|
|
207
|
-
p.each(s, 21, () => p.get(
|
|
208
|
-
var r =
|
|
209
|
-
p.reset(i), p.reset(r), p.template_effect((e) => p.set_text(a, e), [() =>
|
|
215
|
+
p.each(s, 21, () => p.get(V), p.index, (e, t, n) => {
|
|
216
|
+
var r = de(), i = p.child(r), a = p.child(i, !0);
|
|
217
|
+
p.reset(i), p.reset(r), p.template_effect((e) => p.set_text(a, e), [() => tn(n)]), p.event("focus", i, () => en(n)), p.event("blur", i, X), p.append(e, r);
|
|
210
218
|
}), p.reset(s);
|
|
211
219
|
var c = p.sibling(s, 2), l = (e) => {
|
|
212
|
-
var t =
|
|
220
|
+
var t = me(), n = p.child(t);
|
|
213
221
|
p.each(n, 17, () => p.get(U), p.index, (e, t) => {
|
|
214
|
-
var n =
|
|
222
|
+
var n = fe(), r = p.child(n), i = p.sibling(r);
|
|
215
223
|
p.reset(n), p.template_effect(() => {
|
|
216
224
|
p.set_style(r, `background: ${p.get(t).color ?? ""}`), p.set_text(i, ` ${p.get(t).label ?? ""}`);
|
|
217
225
|
}), p.append(e, n);
|
|
218
226
|
});
|
|
219
227
|
var r = p.sibling(n, 2), i = (e) => {
|
|
220
|
-
var t =
|
|
228
|
+
var t = pe(), n = p.child(t), r = p.child(n, !0);
|
|
221
229
|
p.reset(n);
|
|
222
230
|
var i = p.sibling(n);
|
|
223
231
|
p.reset(t), p.template_effect((e) => {
|
|
224
|
-
p.set_text(r, p.get(
|
|
225
|
-
}, [() =>
|
|
232
|
+
p.set_text(r, p.get(C).funnel.revenue), p.set_text(i, ` ${e ?? ""}`);
|
|
233
|
+
}, [() => y.reports_funnel_attributed()]), p.append(e, t);
|
|
226
234
|
};
|
|
227
235
|
p.if(r, (e) => {
|
|
228
|
-
p.get(
|
|
236
|
+
p.get(C).funnel?.revenue && e(i);
|
|
229
237
|
}), p.reset(t), p.append(e, t);
|
|
230
238
|
};
|
|
231
239
|
p.if(c, (e) => {
|
|
232
|
-
p.get(
|
|
240
|
+
p.get(K) !== "tiny" && e(l);
|
|
233
241
|
});
|
|
234
242
|
var u = p.sibling(c, 2), d = (e) => {
|
|
235
|
-
var t =
|
|
236
|
-
var t =
|
|
237
|
-
p.template_effect(() => p.set_style(t, `background: ${p.get(
|
|
243
|
+
var t = _e(), n = p.child(t), r = p.child(n), i = p.child(r), a = (e) => {
|
|
244
|
+
var t = he();
|
|
245
|
+
p.template_effect(() => p.set_style(t, `background: ${p.get(J).color ?? ""}`)), p.append(e, t);
|
|
238
246
|
};
|
|
239
247
|
p.if(i, (e) => {
|
|
240
|
-
p.get(
|
|
248
|
+
p.get(J).color && e(a);
|
|
241
249
|
});
|
|
242
250
|
var o = p.sibling(i);
|
|
243
251
|
p.reset(r);
|
|
244
252
|
var s = p.sibling(r, 2);
|
|
245
|
-
p.each(s, 17, () => p.get(
|
|
253
|
+
p.each(s, 17, () => p.get(J).rows, p.index, (e, t) => {
|
|
246
254
|
var n = p.derived(() => p.to_array(p.get(t), 2));
|
|
247
255
|
let r = () => p.get(n)[0], i = () => p.get(n)[1];
|
|
248
|
-
var a =
|
|
256
|
+
var a = ge(), o = p.child(a), s = p.child(o, !0);
|
|
249
257
|
p.reset(o);
|
|
250
258
|
var c = p.sibling(o, 2), l = p.child(c, !0);
|
|
251
259
|
p.reset(c), p.reset(a), p.template_effect(() => {
|
|
252
260
|
p.set_text(s, r()), p.set_text(l, i());
|
|
253
261
|
}), p.append(e, a);
|
|
254
262
|
}), p.reset(n), p.reset(t), p.template_effect(() => {
|
|
255
|
-
p.set_style(t, `left:${p.get(
|
|
263
|
+
p.set_style(t, `left:${p.get(J).x ?? ""}px; top:${p.get(J).y - 8}px`), p.set_text(o, ` ${p.get(J).title ?? ""}`);
|
|
256
264
|
}), p.append(e, t);
|
|
257
265
|
};
|
|
258
266
|
p.if(u, (e) => {
|
|
259
|
-
p.get(
|
|
260
|
-
}), p.reset(t), p.bind_this(t, (e) => p.set(
|
|
261
|
-
},
|
|
262
|
-
var t =
|
|
263
|
-
p.each(n, 17, () => p.get(
|
|
264
|
-
var r =
|
|
267
|
+
p.get(J) && e(d);
|
|
268
|
+
}), p.reset(t), p.bind_this(t, (e) => p.set(Jt, e), () => p.get(Jt)), p.bind_element_size(n, "clientWidth", (e) => p.set(W, e)), p.bind_element_size(n, "clientHeight", (e) => p.set(G, e)), p.append(e, t);
|
|
269
|
+
}, Ie = (e) => {
|
|
270
|
+
var t = Te(), n = p.child(t);
|
|
271
|
+
p.each(n, 17, () => p.get(V), p.index, (e, t, n) => {
|
|
272
|
+
var r = Ce(), i = p.first_child(r), a = p.child(i), o = p.child(a), s = p.child(o, !0);
|
|
265
273
|
p.reset(o);
|
|
266
274
|
var c = p.sibling(o, 2), l = p.child(c), u = p.child(l, !0);
|
|
267
275
|
p.reset(l);
|
|
268
276
|
var d = p.sibling(l, 2), f = (e) => {
|
|
269
277
|
var n = p.text();
|
|
270
|
-
p.template_effect((e) => p.set_text(n, `· ${e ?? ""}`), [() =>
|
|
278
|
+
p.template_effect((e) => p.set_text(n, `· ${e ?? ""}`), [() => y.reports_funnel_pct_of_start({ pct: p.get(t).pctStart })]), p.append(e, n);
|
|
271
279
|
};
|
|
272
280
|
p.if(d, (e) => {
|
|
273
281
|
p.get(t).pctStart !== void 0 && e(f);
|
|
@@ -275,68 +283,68 @@ function v(je, _) {
|
|
|
275
283
|
var m = p.sibling(a, 2), h = p.child(m);
|
|
276
284
|
p.reset(m), p.reset(i);
|
|
277
285
|
var g = p.sibling(i, 2), ee = (e) => {
|
|
278
|
-
let t = p.derived(() => p.get(
|
|
279
|
-
var r =
|
|
280
|
-
var n =
|
|
281
|
-
p.reset(n), p.template_effect((e) => p.set_text(r, e), [() =>
|
|
286
|
+
let t = p.derived(() => p.get(V)[n + 1]);
|
|
287
|
+
var r = Se(), i = p.sibling(p.child(r), 2), a = (e) => {
|
|
288
|
+
var n = ye(), r = p.child(n, !0);
|
|
289
|
+
p.reset(n), p.template_effect((e) => p.set_text(r, e), [() => y.reports_funnel_pct_continue({ pct: p.get(t).stepPct })]), p.append(e, n);
|
|
282
290
|
};
|
|
283
291
|
p.if(i, (e) => {
|
|
284
292
|
p.get(t).stepPct !== void 0 && e(a);
|
|
285
293
|
});
|
|
286
294
|
var o = p.sibling(i, 2), s = (e) => {
|
|
287
|
-
var n =
|
|
288
|
-
p.reset(r), p.template_effect((e) => p.set_text(i, e), [() =>
|
|
295
|
+
var n = be(), r = p.sibling(p.first_child(n), 2), i = p.child(r, !0);
|
|
296
|
+
p.reset(r), p.template_effect((e) => p.set_text(i, e), [() => y.reports_funnel_lost({ count: D(p.get(t).lost) })]), p.append(e, n);
|
|
289
297
|
};
|
|
290
298
|
p.if(o, (e) => {
|
|
291
299
|
p.get(t).lost !== 0 && e(s);
|
|
292
300
|
});
|
|
293
301
|
var c = p.sibling(o, 2), l = (e) => {
|
|
294
|
-
var t =
|
|
295
|
-
p.reset(t), p.template_effect((e) => p.set_text(n, `· ${e ?? ""}`), [() =>
|
|
302
|
+
var t = xe(), n = p.child(t);
|
|
303
|
+
p.reset(t), p.template_effect((e) => p.set_text(n, `· ${e ?? ""}`), [() => y.reports_funnel_biggest_drop()]), p.append(e, t);
|
|
296
304
|
};
|
|
297
305
|
p.if(c, (e) => {
|
|
298
306
|
p.get(t).isLeak && e(l);
|
|
299
307
|
}), p.reset(r), p.template_effect(() => p.set_class(r, 1, `flex items-center gap-1.5 py-1 pl-1 text-xs tabular-nums ${p.get(t).isLeak ? "font-medium text-accent-warning" : "text-text-secondary"}`)), p.append(e, r);
|
|
300
308
|
};
|
|
301
309
|
p.if(g, (e) => {
|
|
302
|
-
n < p.get(
|
|
310
|
+
n < p.get(V).length - 1 && (p.get(V)[n + 1].stepPct !== void 0 || p.get(V)[n + 1].lost !== 0) && e(ee);
|
|
303
311
|
}), p.template_effect((e, n) => {
|
|
304
|
-
p.set_attribute(i, "data-stage", p.get(t).label), p.set_text(s, p.get(t).label), p.set_text(u, e), p.set_style(m, `background: color-mix(in oklch, ${
|
|
305
|
-
}, [() =>
|
|
312
|
+
p.set_attribute(i, "data-stage", p.get(t).label), p.set_text(s, p.get(t).label), p.set_text(u, e), p.set_style(m, `background: color-mix(in oklch, ${x.series ?? ""} 15%, transparent)`), p.set_style(h, `background: ${x.series ?? ""}; width: ${n ?? ""}%`);
|
|
313
|
+
}, [() => D(p.get(t).value), () => n === 0 || p.get(t).stepPct === void 0 ? 100 : Math.min(100, p.get(t).stepPct)]), p.append(e, r);
|
|
306
314
|
});
|
|
307
315
|
var r = p.sibling(n, 2), i = (e) => {
|
|
308
|
-
var t =
|
|
316
|
+
var t = we(), n = p.child(t), r = p.child(n, !0);
|
|
309
317
|
p.reset(n);
|
|
310
318
|
var i = p.sibling(n);
|
|
311
319
|
p.reset(t), p.template_effect((e) => {
|
|
312
|
-
p.set_text(r, p.get(
|
|
313
|
-
}, [() =>
|
|
320
|
+
p.set_text(r, p.get(C).funnel.revenue), p.set_text(i, ` ${e ?? ""}`);
|
|
321
|
+
}, [() => y.reports_funnel_attributed()]), p.append(e, t);
|
|
314
322
|
};
|
|
315
323
|
p.if(r, (e) => {
|
|
316
|
-
p.get(
|
|
324
|
+
p.get(C).funnel?.revenue && e(i);
|
|
317
325
|
}), p.reset(t), p.append(e, t);
|
|
318
|
-
},
|
|
319
|
-
var t =
|
|
326
|
+
}, Ye = (e) => {
|
|
327
|
+
var t = Ae(), n = p.child(t), r = p.child(n);
|
|
320
328
|
let i;
|
|
321
329
|
var a = p.sibling(p.child(r), 2);
|
|
322
|
-
p.each(a, 17, () => p.get(
|
|
323
|
-
var n =
|
|
330
|
+
p.each(a, 17, () => p.get(Z), p.index, (e, t) => {
|
|
331
|
+
var n = Ee(), r = p.child(n, !0);
|
|
324
332
|
p.reset(n), p.template_effect(() => p.set_text(r, p.get(t))), p.append(e, n);
|
|
325
333
|
});
|
|
326
334
|
var o = p.sibling(a, 2);
|
|
327
|
-
p.each(o, 17, () => p.get(
|
|
328
|
-
var r =
|
|
335
|
+
p.each(o, 17, () => p.get(un), p.index, (e, t, n) => {
|
|
336
|
+
var r = Oe(), i = p.first_child(r), a = p.child(i, !0);
|
|
329
337
|
p.reset(i);
|
|
330
338
|
var o = p.sibling(i, 2);
|
|
331
|
-
p.each(o, 17, () => p.get(
|
|
332
|
-
let a = p.derived(() => p.get(
|
|
333
|
-
var o =
|
|
339
|
+
p.each(o, 17, () => p.get(Z), p.index, (e, r, i) => {
|
|
340
|
+
let a = p.derived(() => p.get(dn)[n]?.[i]);
|
|
341
|
+
var o = De(), s = p.child(o, !0);
|
|
334
342
|
p.reset(o), p.template_effect((e, n, i) => {
|
|
335
343
|
p.set_attribute(o, "data-row", p.get(t)), p.set_attribute(o, "data-col", p.get(r)), p.set_class(o, 1, `flex items-center justify-center overflow-hidden rounded-md px-1 text-xs font-semibold text-white ${e ?? ""}`, "svelte-1wt5e4g"), p.set_attribute(o, "title", `${p.get(t) ?? ""} · ${p.get(r) ?? ""}: ${n ?? ""}`), p.set_text(s, i);
|
|
336
344
|
}, [
|
|
337
|
-
() =>
|
|
338
|
-
() => p.get(a) === void 0 ?
|
|
339
|
-
() => p.get(a) === void 0 ? "" :
|
|
345
|
+
() => hn(p.get(a)),
|
|
346
|
+
() => p.get(a) === void 0 ? y.reports_builder_no_data() : D(p.get(a)),
|
|
347
|
+
() => p.get(a) === void 0 ? "" : D(p.get(a))
|
|
340
348
|
]), p.append(e, o);
|
|
341
349
|
}), p.template_effect(() => p.set_text(a, p.get(t))), p.append(e, r);
|
|
342
350
|
}), p.reset(r), p.reset(n);
|
|
@@ -344,101 +352,101 @@ function v(je, _) {
|
|
|
344
352
|
p.reset(c);
|
|
345
353
|
var u = p.sibling(c, 2);
|
|
346
354
|
p.each(u, 20, () => $, (e) => e, (e, t) => {
|
|
347
|
-
var n =
|
|
355
|
+
var n = ke();
|
|
348
356
|
p.template_effect(() => p.set_class(n, 1, `h-3 w-4 rounded-sm ${t ?? ""}`, "svelte-1wt5e4g")), p.append(e, n);
|
|
349
357
|
}), p.reset(u);
|
|
350
358
|
var d = p.sibling(u, 2), f = p.child(d, !0);
|
|
351
359
|
p.reset(d), p.reset(s), p.reset(t), p.template_effect((e, t) => {
|
|
352
360
|
i = p.set_style(r, "", i, {
|
|
353
|
-
"--cols": p.get(
|
|
354
|
-
"--rows": p.get(
|
|
355
|
-
}), p.set_text(l, `${p.get(
|
|
356
|
-
}, [() =>
|
|
357
|
-
},
|
|
358
|
-
var t =
|
|
361
|
+
"--cols": p.get(Z).length,
|
|
362
|
+
"--rows": p.get(un).length
|
|
363
|
+
}), p.set_text(l, `${p.get(C).heatmap?.measureLabel ?? "" ?? ""} — ${e ?? ""}`), p.set_text(f, t);
|
|
364
|
+
}, [() => y.reports_heatmap_legend_soft(), () => y.reports_heatmap_legend_strong()]), p.append(e, t);
|
|
365
|
+
}, Xe = (e) => {
|
|
366
|
+
var t = Me(), n = p.child(t);
|
|
359
367
|
d(n, {
|
|
360
368
|
cols: "6",
|
|
361
369
|
gap: "3",
|
|
362
370
|
children: (e, t) => {
|
|
363
371
|
var n = p.comment(), r = p.first_child(n);
|
|
364
|
-
p.each(r, 17, () => p.get(
|
|
365
|
-
var n =
|
|
372
|
+
p.each(r, 17, () => p.get(fn), p.index, (e, t) => {
|
|
373
|
+
var n = je(), r = p.child(n), i = p.child(r, !0);
|
|
366
374
|
p.reset(r);
|
|
367
375
|
var a = p.sibling(r, 2), o = p.child(a, !0);
|
|
368
376
|
p.reset(a), p.reset(n), p.template_effect((e, r) => {
|
|
369
377
|
p.set_attribute(n, "data-col", p.get(t).label), p.set_class(n, 1, `rounded-lg p-3 text-white ${e ?? ""}`, "svelte-1wt5e4g"), p.set_text(i, r), p.set_text(o, p.get(t).label);
|
|
370
|
-
}, [() =>
|
|
378
|
+
}, [() => hn(p.get(t).value), () => D(p.get(t).value)]), p.append(e, n);
|
|
371
379
|
}), p.append(e, n);
|
|
372
380
|
},
|
|
373
381
|
$$slots: { default: !0 }
|
|
374
382
|
}), p.reset(t), p.append(e, t);
|
|
375
|
-
},
|
|
383
|
+
}, v = a(), Ze = t(), y = v.i18n, { chart: Qe = u } = v.skeleton ?? {}, { truncate: $e } = v.format, { axisTickFormat: et, BAR_ARCHETYPE: b, barChartSeries: tt, barDrillContext: nt, CHART: x, CHART_PADDING: S, formatMeasureValue: rt, NAME_MAX: it, reportDelta: at } = v.chart, ot = p.prop(_, "loading", 3, !1), C = p.derived(() => _.descriptor.payload), w = p.derived(() => (p.get(C).series[0]?.points ?? []).map((e, t) => ({
|
|
376
384
|
label: String(e.x),
|
|
377
385
|
value: e.y,
|
|
378
|
-
...p.get(
|
|
379
|
-
}))),
|
|
380
|
-
function
|
|
381
|
-
return
|
|
386
|
+
...p.get(C).notes?.[t] ? { note: p.get(C).notes[t] } : {}
|
|
387
|
+
}))), T = p.derived(() => p.get(C).measureFormat ?? "number"), E = p.derived(() => p.get(C).series[0]?.name ?? "");
|
|
388
|
+
function D(e) {
|
|
389
|
+
return rt(e, p.get(T));
|
|
382
390
|
}
|
|
383
|
-
let
|
|
384
|
-
...
|
|
391
|
+
let O = p.derived(() => et(p.get(T))), k = p.derived(() => ({
|
|
392
|
+
...x.tooltip,
|
|
385
393
|
item: {
|
|
386
|
-
label: p.get(
|
|
387
|
-
format:
|
|
388
|
-
color:
|
|
394
|
+
label: p.get(E),
|
|
395
|
+
format: D,
|
|
396
|
+
color: x.series
|
|
389
397
|
}
|
|
390
|
-
})),
|
|
391
|
-
...
|
|
392
|
-
item: { format:
|
|
393
|
-
})),
|
|
394
|
-
...
|
|
395
|
-
item: { format:
|
|
398
|
+
})), st = p.derived(() => ({
|
|
399
|
+
...x.tooltip,
|
|
400
|
+
item: { format: D }
|
|
401
|
+
})), ct = p.derived(() => ({
|
|
402
|
+
...x.tooltip,
|
|
403
|
+
item: { format: D },
|
|
396
404
|
hideTotal: !0
|
|
397
|
-
})),
|
|
405
|
+
})), lt = p.derived(() => p.get(C).showCaption ?? !1), A = p.derived(() => p.get(C).caption ?? ""), j = p.derived(() => p.get(C).captionLead), ut = p.derived(() => p.get(j)?.tone === "positive" ? "tone-success" : p.get(j)?.tone === "negative" ? "tone-danger" : "tone-primary"), dt = p.derived(() => p.get(C).emptyMessage ?? y.foundry_chart_empty()), ft = p.derived(() => p.get(C).drill?.byLabel ?? {}), pt = p.derived(() => _.ondrill ? { class: "cursor-pointer" } : {}), mt = p.derived(() => nt(_.ondrill ? ({ label: e }) => _.ondrill?.(p.get(ft)[e] ?? {
|
|
398
406
|
id: e,
|
|
399
407
|
label: e
|
|
400
|
-
}) : void 0)),
|
|
408
|
+
}) : void 0)), M = p.proxy({
|
|
401
409
|
width: 0,
|
|
402
410
|
height: 0
|
|
403
|
-
}),
|
|
404
|
-
if (p.get(
|
|
405
|
-
let e = [...p.get(
|
|
411
|
+
}), N = p.derived(() => g(p.get(w).length, M.width - S.valueAxis.left - S.valueAxis.right)), ht = p.state(0), gt = p.state(0), P = p.derived(() => p.get(ht) - p.get(gt) - 12 >= 140), _t = p.state(0), vt = p.derived(() => p.get(_t) >= 180), F = p.derived(() => p.get(w).length === 1), yt = p.derived(() => p.get(w).reduce((e, t) => e + t.value, 0)), bt = p.derived(() => {
|
|
412
|
+
if (p.get(w).length <= 6) return p.get(w);
|
|
413
|
+
let e = [...p.get(w)].sort((e, t) => t.value - e.value), t = e.slice(0, 5), n = e.slice(5);
|
|
406
414
|
return [...t, {
|
|
407
415
|
label: `Others (${n.length})`,
|
|
408
416
|
value: n.reduce((e, t) => e + t.value, 0)
|
|
409
417
|
}];
|
|
410
|
-
}), I = p.derived(() => p.get(
|
|
411
|
-
...
|
|
412
|
-
right:
|
|
413
|
-
} :
|
|
418
|
+
}), I = p.derived(() => p.get(C).keepOrder ? [...p.get(w)] : [...p.get(w)].sort((e, t) => t.value - e.value)), L = p.derived(() => p.get(C).negative ?? p.get(w).some((e) => e.value < 0)), xt = p.derived(() => M.height > 0 ? Math.max(3, Math.floor((M.height - 18) / 34)) : 6), R = p.derived(() => p.get(I).slice(0, p.get(xt))), St = p.derived(() => p.get(R).some((e) => e.note) ? {
|
|
419
|
+
...b.ranking.padding,
|
|
420
|
+
right: b.ranking.padding.right + 84
|
|
421
|
+
} : b.ranking.padding), Ct = p.derived(() => p.get(I).length - p.get(R).length), wt = p.derived(() => M.width > 0 ? Math.max(3, Math.floor(M.width / 56)) : 8), Tt = p.derived(() => p.get(I).slice(0, p.get(wt))), Et = p.derived(() => p.get(I).length - p.get(Tt).length), Dt = p.derived(() => p.get(C).pacing?.expected ?? []), Ot = p.derived(() => p.get(C).pacing?.actualLen ?? Infinity), kt = p.derived(() => p.get(w).map((e, t) => ({
|
|
414
422
|
...e,
|
|
415
|
-
value: t < p.get(
|
|
416
|
-
expected: p.get(
|
|
417
|
-
}))),
|
|
418
|
-
let e = p.get(
|
|
419
|
-
return p.get(
|
|
423
|
+
value: t < p.get(Ot) ? e.value : null,
|
|
424
|
+
expected: p.get(Dt)[t] ?? null
|
|
425
|
+
}))), At = p.derived(() => p.get(C).pacing?.compareLabel ?? y.foundry_chart_expected()), jt = p.derived(() => p.get(E) || y.foundry_chart_this_run()), Mt = p.derived(() => {
|
|
426
|
+
let e = p.get(C).pacing?.pointLabels ?? [], t = /* @__PURE__ */ new Map();
|
|
427
|
+
return p.get(w).forEach((n, r) => {
|
|
420
428
|
e[r] && t.set(n.label, e[r]);
|
|
421
429
|
}), (e) => t.get(String(e)) ?? String(e);
|
|
422
|
-
}),
|
|
423
|
-
...p.get(
|
|
424
|
-
header: { format: p.get(
|
|
425
|
-
})),
|
|
430
|
+
}), Nt = p.derived(() => ({
|
|
431
|
+
...p.get(ct),
|
|
432
|
+
header: { format: p.get(Mt) }
|
|
433
|
+
})), Pt = p.derived(() => p.get(C).compare?.label ?? ""), Ft = p.derived(() => (p.get(C).compare?.points?.length ?? 0) > 0), It = p.derived(() => p.get(C).compare?.points ?? []), Lt = p.derived(() => p.get(Ft) ? p.get(w).map((e, t) => ({
|
|
426
434
|
...e,
|
|
427
|
-
compare: p.get(
|
|
428
|
-
})) : p.get(
|
|
435
|
+
compare: p.get(It)[t]?.y ?? null
|
|
436
|
+
})) : p.get(w)), Rt = p.derived(() => [{
|
|
429
437
|
key: "value",
|
|
430
|
-
label: p.get(
|
|
438
|
+
label: p.get(E),
|
|
431
439
|
value: "value",
|
|
432
|
-
color:
|
|
440
|
+
color: x.series
|
|
433
441
|
}, {
|
|
434
442
|
key: "compare",
|
|
435
|
-
label: p.get(
|
|
443
|
+
label: p.get(Pt),
|
|
436
444
|
value: "compare",
|
|
437
|
-
color:
|
|
445
|
+
color: x.ghost,
|
|
438
446
|
props: { "stroke-dasharray": "6 4" }
|
|
439
|
-
}]),
|
|
447
|
+
}]), z = p.derived(() => p.get(C).gauge?.value ?? 0), B = p.derived(() => p.get(C).gauge?.goal && p.get(C).gauge.goal > 0 ? p.get(z) / p.get(C).gauge.goal * 100 : null), zt = p.derived(() => p.get(B) == null ? p.get(T) === "percent" ? Math.max(0, Math.min(100, p.get(z))) : 100 : Math.max(0, Math.min(100, p.get(B)))), Bt = p.derived(() => p.get(B) == null ? null : `${Math.round(p.get(B))}% of ${D(p.get(C).gauge?.goal)} goal`), Vt = p.derived(() => at(p.get(z), p.get(C).gauge?.compareValue)), Ht = (void 0)().innerRadius(33).outerRadius(46).cornerRadius(5).startAngle(-Math.PI / 2), Ut = p.derived(() => Ht({ endAngle: Math.PI / 2 }) ?? ""), Wt = p.derived(() => Ht({ endAngle: -Math.PI / 2 + Math.PI * (p.get(zt) / 100) }) ?? ""), Gt = p.derived(() => {
|
|
440
448
|
let e = [];
|
|
441
|
-
for (let t of p.get(
|
|
449
|
+
for (let t of p.get(C).series) for (let n of t.points) {
|
|
442
450
|
let t = String(n.x), r = e.find((e) => e.label === t);
|
|
443
451
|
r ? r.value += n.y : e.push({
|
|
444
452
|
label: t,
|
|
@@ -446,8 +454,8 @@ function v(je, _) {
|
|
|
446
454
|
});
|
|
447
455
|
}
|
|
448
456
|
return e;
|
|
449
|
-
}),
|
|
450
|
-
let e = p.get(
|
|
457
|
+
}), V = p.derived(() => {
|
|
458
|
+
let e = p.get(Gt), t = e[0]?.value ?? 0, n = -1, r = Infinity;
|
|
451
459
|
for (let t = 1; t < e.length; t++) {
|
|
452
460
|
let i = e[t - 1].value;
|
|
453
461
|
if (i <= 0) continue;
|
|
@@ -465,11 +473,11 @@ function v(je, _) {
|
|
|
465
473
|
isLeak: i === n
|
|
466
474
|
};
|
|
467
475
|
});
|
|
468
|
-
}),
|
|
469
|
-
if (p.get(
|
|
476
|
+
}), Kt = p.derived(() => p.get(C).funnel?.sourceRevenue !== void 0), H = p.derived(() => {
|
|
477
|
+
if (p.get(C).series.length < 2 && !p.get(Kt)) return [];
|
|
470
478
|
let e = [];
|
|
471
|
-
for (let [t, n] of p.get(
|
|
472
|
-
let r = p.get(
|
|
479
|
+
for (let [t, n] of p.get(C).series.entries()) {
|
|
480
|
+
let r = p.get(V).map((e) => {
|
|
473
481
|
let t = 0;
|
|
474
482
|
for (let r of n.points) String(r.x) === e.label && (t += r.y);
|
|
475
483
|
return t;
|
|
@@ -482,7 +490,7 @@ function v(je, _) {
|
|
|
482
490
|
id: `series-${t}`,
|
|
483
491
|
label: n.name,
|
|
484
492
|
stages: r,
|
|
485
|
-
revenue: p.get(
|
|
493
|
+
revenue: p.get(C).funnel?.sourceRevenue?.[n.name],
|
|
486
494
|
color: ""
|
|
487
495
|
});
|
|
488
496
|
}
|
|
@@ -493,19 +501,19 @@ function v(je, _) {
|
|
|
493
501
|
}
|
|
494
502
|
return t.map((e, t) => ({
|
|
495
503
|
...e,
|
|
496
|
-
color:
|
|
504
|
+
color: x.palette[t % x.palette.length]
|
|
497
505
|
}));
|
|
498
506
|
}), U = p.derived(() => {
|
|
499
|
-
let e = p.get(
|
|
507
|
+
let e = p.get(H);
|
|
500
508
|
if (e.length === 0) return [];
|
|
501
509
|
let t = e.slice(0, 4), n = e.slice(4);
|
|
502
510
|
if (n.length > 0) {
|
|
503
|
-
let e =
|
|
511
|
+
let e = y.reports_funnel_source_other(), r = e;
|
|
504
512
|
for (let n = 2; t.some((e) => e.label === r) && n < t.length + 3; n++) r = `${e} (${n})`;
|
|
505
513
|
t.push({
|
|
506
514
|
id: "rollup",
|
|
507
515
|
label: r,
|
|
508
|
-
stages: p.get(
|
|
516
|
+
stages: p.get(V).map((e, t) => {
|
|
509
517
|
let r = 0;
|
|
510
518
|
for (let e of n) r += e.stages[t];
|
|
511
519
|
return r;
|
|
@@ -516,18 +524,18 @@ function v(je, _) {
|
|
|
516
524
|
}
|
|
517
525
|
return t.map((e, t) => ({
|
|
518
526
|
...e,
|
|
519
|
-
color:
|
|
527
|
+
color: x.palette[t % x.palette.length]
|
|
520
528
|
}));
|
|
521
|
-
}),
|
|
522
|
-
let e = p.get(
|
|
529
|
+
}), qt = p.derived(() => p.get(H).length > 1 || p.get(Kt) && p.get(H).length === 1), W = p.state(0), G = p.state(0), Jt = p.state(void 0), Yt = p.derived(() => {
|
|
530
|
+
let e = p.get(V).length;
|
|
523
531
|
return e < 2 || (p.get(W) - 16 - 9) / (e - 1) >= 56;
|
|
524
|
-
}),
|
|
525
|
-
let e = p.get(W), t = p.get(G), n = p.get(
|
|
526
|
-
if (p.get(
|
|
527
|
-
let r = p.get(
|
|
532
|
+
}), K = p.derived(() => p.get(W) < 300 || p.get(G) < 150 || !p.get(Yt) ? "tiny" : p.get(W) >= 440 && p.get(G) >= 210 ? "full" : "compact"), q = p.derived(() => {
|
|
533
|
+
let e = p.get(W), t = p.get(G), n = p.get(V).length;
|
|
534
|
+
if (p.get(K) === "tiny" || e < 40 || t < 40 || p.get(U).length === 0) return;
|
|
535
|
+
let r = p.get(K) === "full" ? 30 : 26, i = p.get(K) === "full" ? 16 : 0, a = p.get(K) === "full" ? 6 : 4, o = r + i, s = Math.max(t - o - 4, 20), c = p.get(V).map((e, t) => p.get(U).reduce((e, n) => e + (n.stages[t] ?? 0), 0)), l = Math.max(...c, 1), u = s - a * (p.get(U).length - 1), d = u / l;
|
|
528
536
|
for (let e = 0; e <= p.get(U).length; e++) {
|
|
529
537
|
let e = 0, t = 0, n = 0;
|
|
530
|
-
for (let [r] of p.get(
|
|
538
|
+
for (let [r] of p.get(V).entries()) {
|
|
531
539
|
let i = 0, a = 0;
|
|
532
540
|
for (let e of p.get(U)) {
|
|
533
541
|
let t = (e.stages[r] ?? 0) * d;
|
|
@@ -568,53 +576,53 @@ function v(je, _) {
|
|
|
568
576
|
padX: 8,
|
|
569
577
|
xs: m
|
|
570
578
|
};
|
|
571
|
-
}),
|
|
572
|
-
function
|
|
573
|
-
let t = p.get(
|
|
579
|
+
}), J = p.state(void 0), Y = p.state(void 0);
|
|
580
|
+
function Xt(e) {
|
|
581
|
+
let t = p.get(Jt)?.getBoundingClientRect();
|
|
574
582
|
return {
|
|
575
583
|
x: e.clientX - (t?.left ?? 0),
|
|
576
584
|
y: e.clientY - (t?.top ?? 0)
|
|
577
585
|
};
|
|
578
586
|
}
|
|
579
|
-
function
|
|
587
|
+
function Zt(e, t) {
|
|
580
588
|
let n = p.get(U)[e];
|
|
581
|
-
p.set(
|
|
582
|
-
let r = p.get(
|
|
589
|
+
p.set(Y, e, !0);
|
|
590
|
+
let r = p.get(V).map((e, t) => {
|
|
583
591
|
let r = n.stages[t] ?? 0, i = t > 0 ? n.stages[t - 1] ?? 0 : 0, a = t > 0 && i > 0 ? Math.round(r / i * 100) : 0;
|
|
584
|
-
return [t === 0 || i <= 0 ? e.label : `${e.label} (${
|
|
592
|
+
return [t === 0 || i <= 0 ? e.label : `${e.label} (${y.reports_funnel_tip_of_stage({
|
|
585
593
|
pct: a,
|
|
586
|
-
stage: p.get(
|
|
587
|
-
})})`,
|
|
594
|
+
stage: p.get(V)[t - 1].label
|
|
595
|
+
})})`, D(r)];
|
|
588
596
|
});
|
|
589
|
-
n.revenue !== void 0 && r.push([
|
|
597
|
+
n.revenue !== void 0 && r.push([y.column_revenue(), n.revenue]), p.set(J, {
|
|
590
598
|
title: n.label,
|
|
591
599
|
color: n.color,
|
|
592
600
|
rows: r,
|
|
593
|
-
...
|
|
601
|
+
...Xt(t)
|
|
594
602
|
}, !0);
|
|
595
603
|
}
|
|
596
|
-
function
|
|
597
|
-
let n = p.get(
|
|
598
|
-
e > 0 && n.stepPct !== void 0 && n.lost !== 0 && r.push([
|
|
599
|
-
count:
|
|
604
|
+
function Qt(e, t) {
|
|
605
|
+
let n = p.get(V)[e], r = [[y.column_total(), D(n.value)]];
|
|
606
|
+
e > 0 && n.stepPct !== void 0 && n.lost !== 0 && r.push([y.reports_funnel_tip_dropped_in(), y.reports_funnel_tip_dropped_of_prev({
|
|
607
|
+
count: D(n.lost),
|
|
600
608
|
pct: 100 - n.stepPct
|
|
601
|
-
})]), p.set(
|
|
609
|
+
})]), p.set(J, {
|
|
602
610
|
title: n.label,
|
|
603
611
|
rows: r,
|
|
604
|
-
...
|
|
612
|
+
...Xt(t)
|
|
605
613
|
}, !0);
|
|
606
614
|
}
|
|
607
|
-
function
|
|
608
|
-
let t = p.get(
|
|
615
|
+
function $t(e) {
|
|
616
|
+
let t = p.get(V).map((t, n) => {
|
|
609
617
|
let r = e.stages[n] ?? 0, i = n > 0 ? e.stages[n - 1] ?? 0 : 0, a = n > 0 && i > 0 ? Math.round(r / i * 100) : 0;
|
|
610
|
-
return [n === 0 || i <= 0 ? t.label : `${t.label} (${
|
|
618
|
+
return [n === 0 || i <= 0 ? t.label : `${t.label} (${y.reports_funnel_tip_of_stage({
|
|
611
619
|
pct: a,
|
|
612
|
-
stage: p.get(
|
|
613
|
-
})})`,
|
|
620
|
+
stage: p.get(V)[n - 1].label
|
|
621
|
+
})})`, D(r)];
|
|
614
622
|
});
|
|
615
|
-
e.revenue !== void 0 && t.push([
|
|
623
|
+
e.revenue !== void 0 && t.push([y.column_revenue(), e.revenue]);
|
|
616
624
|
let n = p.get(U).findIndex((t) => t.id === e.id);
|
|
617
|
-
p.set(
|
|
625
|
+
p.set(Y, n === -1 ? void 0 : n, !0), p.set(J, {
|
|
618
626
|
title: e.label,
|
|
619
627
|
color: e.color || void 0,
|
|
620
628
|
rows: t,
|
|
@@ -622,63 +630,63 @@ function v(je, _) {
|
|
|
622
630
|
y: p.get(G) / 2
|
|
623
631
|
}, !0);
|
|
624
632
|
}
|
|
625
|
-
function
|
|
626
|
-
|
|
633
|
+
function en(e) {
|
|
634
|
+
Qt(e, {
|
|
627
635
|
clientX: 0,
|
|
628
636
|
clientY: 0
|
|
629
|
-
}), p.set(
|
|
630
|
-
...p.get(
|
|
637
|
+
}), p.set(Y, void 0), p.set(J, p.get(J) && {
|
|
638
|
+
...p.get(J),
|
|
631
639
|
x: p.get(W) / 2,
|
|
632
640
|
y: p.get(G) / 2
|
|
633
641
|
}, !0);
|
|
634
642
|
}
|
|
635
|
-
function
|
|
636
|
-
let t = p.get(
|
|
637
|
-
return e > 0 && t.stepPct !== void 0 && t.lost !== 0 && n.push(
|
|
638
|
-
count:
|
|
643
|
+
function tn(e) {
|
|
644
|
+
let t = p.get(V)[e], n = [`${t.label} ${D(t.value)}`];
|
|
645
|
+
return e > 0 && t.stepPct !== void 0 && t.lost !== 0 && n.push(y.reports_funnel_tip_dropped_of_prev({
|
|
646
|
+
count: D(t.lost),
|
|
639
647
|
pct: 100 - t.stepPct
|
|
640
648
|
})), n.join(", ");
|
|
641
649
|
}
|
|
642
|
-
function
|
|
643
|
-
p.get(
|
|
644
|
-
...p.get(
|
|
645
|
-
...
|
|
650
|
+
function nn(e) {
|
|
651
|
+
p.get(J) && p.set(J, {
|
|
652
|
+
...p.get(J),
|
|
653
|
+
...Xt(e)
|
|
646
654
|
}, !0);
|
|
647
655
|
}
|
|
648
|
-
function
|
|
649
|
-
p.set(
|
|
656
|
+
function X() {
|
|
657
|
+
p.set(J, void 0), p.set(Y, void 0);
|
|
650
658
|
}
|
|
651
|
-
function
|
|
659
|
+
function rn(e) {
|
|
652
660
|
let t = [e.label];
|
|
653
|
-
for (let [n, r] of p.get(
|
|
654
|
-
return e.revenue !== void 0 && t.push(`${
|
|
661
|
+
for (let [n, r] of p.get(V).entries()) t.push(`${r.label} ${D(e.stages[n] ?? 0)}`);
|
|
662
|
+
return e.revenue !== void 0 && t.push(`${y.column_revenue()} ${e.revenue}`), t.join(", ");
|
|
655
663
|
}
|
|
656
|
-
function
|
|
657
|
-
return p.get(
|
|
664
|
+
function an(e) {
|
|
665
|
+
return p.get(Y) === void 0 ? .42 : e === p.get(Y) ? .78 : .14;
|
|
658
666
|
}
|
|
659
|
-
function
|
|
660
|
-
let r = p.get(
|
|
667
|
+
function on(e, t, n) {
|
|
668
|
+
let r = p.get(V).length - 1;
|
|
661
669
|
if (t.length < 2) return `left:${n}px`;
|
|
662
670
|
let i = t[1] - t[0], a = Math.max(i - 8, 24), o = Math.max(i / 2 - 8, 24);
|
|
663
671
|
return e === 0 ? `max-width:${o}px;left:${n}px` : e === r ? `max-width:${o}px;right:${n}px` : `max-width:${a}px;left:${t[e] + 9 / 2}px; transform:translateX(-50%)`;
|
|
664
672
|
}
|
|
665
|
-
let
|
|
666
|
-
function
|
|
667
|
-
return e === 0 ? "text-left" : e === p.get(
|
|
673
|
+
let sn = p.derived(() => p.get(K) === "full");
|
|
674
|
+
function cn(e) {
|
|
675
|
+
return e === 0 ? "text-left" : e === p.get(V).length - 1 ? "text-right" : "text-center";
|
|
668
676
|
}
|
|
669
|
-
let
|
|
677
|
+
let ln = p.derived(() => p.get(C).heatmap?.matrix === !0), un = p.derived(() => p.get(C).series.map((e) => e.name)), Z = p.derived(() => {
|
|
670
678
|
let e = [];
|
|
671
|
-
for (let t of p.get(
|
|
679
|
+
for (let t of p.get(C).series) for (let n of t.points) {
|
|
672
680
|
let t = String(n.x);
|
|
673
681
|
e.includes(t) || e.push(t);
|
|
674
682
|
}
|
|
675
683
|
return e;
|
|
676
|
-
}),
|
|
684
|
+
}), dn = p.derived(() => p.get(C).series.map((e) => p.get(Z).map((t) => e.points.find((e) => String(e.x) === t)?.y))), Q = p.derived(() => p.get(C).series.flatMap((e) => e.points.map((e) => e.y))), fn = p.derived(() => p.get(C).series.flatMap((e) => e.points.map((e) => ({
|
|
677
685
|
label: String(e.x),
|
|
678
686
|
value: e.y
|
|
679
|
-
})))),
|
|
680
|
-
min: Math.min(...p.get(
|
|
681
|
-
max: Math.max(...p.get(
|
|
687
|
+
})))), pn = p.derived(() => ({
|
|
688
|
+
min: Math.min(...p.get(Q)),
|
|
689
|
+
max: Math.max(...p.get(Q))
|
|
682
690
|
})), $ = [
|
|
683
691
|
"bg-rose-500",
|
|
684
692
|
"bg-orange-500",
|
|
@@ -686,99 +694,99 @@ function v(je, _) {
|
|
|
686
694
|
"bg-lime-600",
|
|
687
695
|
"bg-emerald-600"
|
|
688
696
|
];
|
|
689
|
-
function
|
|
697
|
+
function mn(e) {
|
|
690
698
|
return e >= 85 ? "bg-emerald-600" : e >= 75 ? "bg-lime-600" : e >= 60 ? "bg-amber-500" : e >= 45 ? "bg-orange-500" : "bg-rose-500";
|
|
691
699
|
}
|
|
692
|
-
function
|
|
700
|
+
function hn(e) {
|
|
693
701
|
if (e === void 0) return "bg-bg-secondary";
|
|
694
|
-
if (p.get(
|
|
695
|
-
let { min: t, max: n } = p.get(
|
|
702
|
+
if (p.get(T) === "percent") return mn(e);
|
|
703
|
+
let { min: t, max: n } = p.get(pn), r = n > t ? (e - t) / (n - t) : 1;
|
|
696
704
|
return $[Math.min($.length - 1, Math.floor(r * $.length))];
|
|
697
705
|
}
|
|
698
|
-
let
|
|
699
|
-
switch (p.get(
|
|
706
|
+
let gn = p.derived(() => {
|
|
707
|
+
switch (p.get(C).kind) {
|
|
700
708
|
case "gauge": return !1;
|
|
701
709
|
case "breakdown":
|
|
702
|
-
case "pie": return p.get(
|
|
703
|
-
case "funnel": return p.get(
|
|
704
|
-
case "heatmap": return p.get(
|
|
710
|
+
case "pie": return p.get(yt) === 0;
|
|
711
|
+
case "funnel": return p.get(V).every((e) => e.value <= 0);
|
|
712
|
+
case "heatmap": return p.get(Q).length === 0;
|
|
705
713
|
case "trend":
|
|
706
714
|
case "area":
|
|
707
715
|
case "ranking":
|
|
708
716
|
case "column":
|
|
709
|
-
case "pacing": return p.get(
|
|
717
|
+
case "pacing": return p.get(w).length === 0;
|
|
710
718
|
default: return !1;
|
|
711
719
|
}
|
|
712
720
|
});
|
|
713
|
-
var
|
|
714
|
-
var t =
|
|
715
|
-
|
|
716
|
-
},
|
|
717
|
-
var t =
|
|
718
|
-
var t =
|
|
719
|
-
var t =
|
|
721
|
+
var _n = Je(), vn = p.child(_n), yn = (e) => {
|
|
722
|
+
var t = Le(), n = p.child(t);
|
|
723
|
+
Qe(n, { height: "h-full" }), p.reset(t), p.append(e, t);
|
|
724
|
+
}, bn = (e) => {
|
|
725
|
+
var t = qe(), n = p.child(t), r = (e) => {
|
|
726
|
+
var t = Be(), n = p.child(t), r = (e) => {
|
|
727
|
+
var t = ze(), n = p.first_child(t), r = p.child(n, !0);
|
|
720
728
|
p.reset(n);
|
|
721
729
|
var i = p.sibling(n, 2), a = (e) => {
|
|
722
|
-
var t =
|
|
730
|
+
var t = Re();
|
|
723
731
|
p.append(e, t);
|
|
724
732
|
};
|
|
725
733
|
p.if(i, (e) => {
|
|
726
|
-
p.get(
|
|
734
|
+
p.get(A) && e(a);
|
|
727
735
|
}), p.template_effect(() => {
|
|
728
|
-
p.set_class(n, 1, p.clsx(p.get(
|
|
736
|
+
p.set_class(n, 1, p.clsx(p.get(ut)), "svelte-1wt5e4g"), p.set_text(r, p.get(j).text);
|
|
729
737
|
}), p.append(e, t);
|
|
730
738
|
};
|
|
731
739
|
p.if(n, (e) => {
|
|
732
|
-
p.get(
|
|
740
|
+
p.get(j) && e(r);
|
|
733
741
|
});
|
|
734
742
|
var i = p.sibling(n, 2), a = (e) => {
|
|
735
|
-
var t =
|
|
736
|
-
p.reset(t), p.template_effect(() => p.set_text(n, p.get(
|
|
743
|
+
var t = ye(), n = p.child(t, !0);
|
|
744
|
+
p.reset(t), p.template_effect(() => p.set_text(n, p.get(A))), p.append(e, t);
|
|
737
745
|
};
|
|
738
746
|
p.if(i, (e) => {
|
|
739
|
-
p.get(
|
|
747
|
+
p.get(A) && e(a);
|
|
740
748
|
}), p.reset(t), p.append(e, t);
|
|
741
749
|
};
|
|
742
750
|
p.if(n, (e) => {
|
|
743
|
-
p.get(
|
|
751
|
+
p.get(lt) && (p.get(A) || p.get(j)) && e(r);
|
|
744
752
|
});
|
|
745
753
|
var i = p.sibling(n, 2), a = p.child(i), s = (e) => {
|
|
746
|
-
|
|
754
|
+
Pe(e);
|
|
747
755
|
}, c = (e) => {
|
|
748
756
|
var t = p.comment(), n = p.first_child(t), r = (e) => {
|
|
749
|
-
|
|
757
|
+
Ne(e);
|
|
750
758
|
}, i = (e) => {
|
|
751
759
|
{
|
|
752
|
-
let t = p.derived(() => (void 0)().padding(
|
|
760
|
+
let t = p.derived(() => (void 0)().padding(p.get(N))), n = p.derived(() => ({
|
|
753
761
|
spline: {
|
|
754
|
-
stroke:
|
|
762
|
+
stroke: x.series,
|
|
755
763
|
strokeWidth: 2,
|
|
756
764
|
fill: "none",
|
|
757
765
|
curve: void 0
|
|
758
766
|
},
|
|
759
767
|
points: {
|
|
760
|
-
fill:
|
|
768
|
+
fill: x.series,
|
|
761
769
|
class: "stroke-white",
|
|
762
770
|
r: p.get(F) ? 5 : 3
|
|
763
771
|
},
|
|
764
772
|
labels: {
|
|
765
|
-
format:
|
|
773
|
+
format: D,
|
|
766
774
|
class: "fill-text-primary text-xs font-semibold"
|
|
767
775
|
},
|
|
768
776
|
yAxis: {
|
|
769
|
-
format: p.get(
|
|
770
|
-
tickLabelProps:
|
|
777
|
+
format: p.get(O),
|
|
778
|
+
tickLabelProps: x.tick
|
|
771
779
|
},
|
|
772
|
-
xAxis: { tickLabelProps:
|
|
773
|
-
tooltip: p.get(
|
|
780
|
+
xAxis: { tickLabelProps: x.tick },
|
|
781
|
+
tooltip: p.get(k),
|
|
774
782
|
highlight: {
|
|
775
|
-
points:
|
|
776
|
-
lines:
|
|
783
|
+
points: x.highlight.points,
|
|
784
|
+
lines: x.highlight.lines
|
|
777
785
|
}
|
|
778
786
|
}));
|
|
779
787
|
(void 0)(e, {
|
|
780
788
|
get data() {
|
|
781
|
-
return p.get(
|
|
789
|
+
return p.get(w);
|
|
782
790
|
},
|
|
783
791
|
x: "label",
|
|
784
792
|
get xScale() {
|
|
@@ -790,7 +798,7 @@ function v(je, _) {
|
|
|
790
798
|
return p.get(F);
|
|
791
799
|
},
|
|
792
800
|
get padding() {
|
|
793
|
-
return
|
|
801
|
+
return S.valueAxis;
|
|
794
802
|
},
|
|
795
803
|
get props() {
|
|
796
804
|
return p.get(n);
|
|
@@ -799,18 +807,18 @@ function v(je, _) {
|
|
|
799
807
|
}
|
|
800
808
|
};
|
|
801
809
|
p.if(n, (e) => {
|
|
802
|
-
p.get(
|
|
810
|
+
p.get(Ft) ? e(r) : e(i, -1);
|
|
803
811
|
}), p.append(e, t);
|
|
804
812
|
}, l = (e) => {
|
|
805
813
|
var t = p.comment(), n = p.first_child(t), r = (e) => {
|
|
806
|
-
|
|
814
|
+
Ne(e);
|
|
807
815
|
}, i = (e) => {
|
|
808
816
|
{
|
|
809
817
|
let t = (e) => {
|
|
810
818
|
{
|
|
811
819
|
let t = p.derived(() => [
|
|
812
|
-
["0%", `color-mix(in oklch, ${
|
|
813
|
-
["55%", `color-mix(in oklch, ${
|
|
820
|
+
["0%", `color-mix(in oklch, ${x.series} 45%, transparent)`],
|
|
821
|
+
["55%", `color-mix(in oklch, ${x.series} 18%, transparent)`],
|
|
814
822
|
["100%", "transparent"]
|
|
815
823
|
]);
|
|
816
824
|
(void 0)(e, {
|
|
@@ -821,36 +829,36 @@ function v(je, _) {
|
|
|
821
829
|
}
|
|
822
830
|
});
|
|
823
831
|
}
|
|
824
|
-
}, n = p.derived(() => (void 0)().padding(
|
|
832
|
+
}, n = p.derived(() => (void 0)().padding(p.get(N))), r = p.derived(() => ({
|
|
825
833
|
area: {
|
|
826
834
|
fill: "url(#report-area-grad)",
|
|
827
|
-
stroke:
|
|
835
|
+
stroke: x.series,
|
|
828
836
|
strokeWidth: 2,
|
|
829
837
|
curve: void 0
|
|
830
838
|
},
|
|
831
839
|
points: {
|
|
832
|
-
fill:
|
|
840
|
+
fill: x.series,
|
|
833
841
|
class: "stroke-white",
|
|
834
842
|
r: 5
|
|
835
843
|
},
|
|
836
844
|
labels: {
|
|
837
|
-
format:
|
|
845
|
+
format: D,
|
|
838
846
|
class: "fill-text-primary text-xs font-semibold"
|
|
839
847
|
},
|
|
840
848
|
yAxis: {
|
|
841
|
-
format: p.get(
|
|
842
|
-
tickLabelProps:
|
|
849
|
+
format: p.get(O),
|
|
850
|
+
tickLabelProps: x.tick
|
|
843
851
|
},
|
|
844
|
-
xAxis: { tickLabelProps:
|
|
845
|
-
tooltip: p.get(
|
|
852
|
+
xAxis: { tickLabelProps: x.tick },
|
|
853
|
+
tooltip: p.get(k),
|
|
846
854
|
highlight: {
|
|
847
|
-
points:
|
|
848
|
-
lines:
|
|
855
|
+
points: x.highlight.points,
|
|
856
|
+
lines: x.highlight.lines
|
|
849
857
|
}
|
|
850
858
|
}));
|
|
851
859
|
(void 0)(e, {
|
|
852
860
|
get data() {
|
|
853
|
-
return p.get(
|
|
861
|
+
return p.get(w);
|
|
854
862
|
},
|
|
855
863
|
x: "label",
|
|
856
864
|
get xScale() {
|
|
@@ -864,7 +872,7 @@ function v(je, _) {
|
|
|
864
872
|
return p.get(F);
|
|
865
873
|
},
|
|
866
874
|
get padding() {
|
|
867
|
-
return
|
|
875
|
+
return S.valueAxis;
|
|
868
876
|
},
|
|
869
877
|
get props() {
|
|
870
878
|
return p.get(r);
|
|
@@ -875,14 +883,14 @@ function v(je, _) {
|
|
|
875
883
|
}
|
|
876
884
|
};
|
|
877
885
|
p.if(n, (e) => {
|
|
878
|
-
p.get(
|
|
886
|
+
p.get(Ft) ? e(r) : e(i, -1);
|
|
879
887
|
}), p.append(e, t);
|
|
880
888
|
}, u = (e) => {
|
|
881
|
-
var t =
|
|
889
|
+
var t = He(), n = p.child(t), r = p.child(n);
|
|
882
890
|
{
|
|
883
891
|
let e = (e) => {
|
|
884
892
|
{
|
|
885
|
-
let t = p.derived(() => [["0%",
|
|
893
|
+
let t = p.derived(() => [["0%", x.barGradient[1]], ["100%", x.barGradient[0]]]);
|
|
886
894
|
(void 0)(e, {
|
|
887
895
|
id: "report-bar-h",
|
|
888
896
|
get stops() {
|
|
@@ -890,23 +898,23 @@ function v(je, _) {
|
|
|
890
898
|
}
|
|
891
899
|
});
|
|
892
900
|
}
|
|
893
|
-
}, t = p.derived(() =>
|
|
901
|
+
}, t = p.derived(() => tt(p.get(R), p.get(E), p.get(L))), n = p.derived(() => ({
|
|
894
902
|
bars: {
|
|
895
|
-
radius:
|
|
896
|
-
rounded:
|
|
903
|
+
radius: x.barRadius,
|
|
904
|
+
rounded: x.barRounded,
|
|
897
905
|
strokeWidth: 0,
|
|
898
906
|
...p.get(L) ? {} : { fill: "url(#report-bar-h)" },
|
|
899
|
-
...p.get(
|
|
907
|
+
...p.get(pt)
|
|
900
908
|
},
|
|
901
909
|
labels: { class: "fill-text-primary text-xs font-semibold" },
|
|
902
910
|
yAxis: {
|
|
903
|
-
tickLabelProps:
|
|
904
|
-
format: (e) =>
|
|
911
|
+
tickLabelProps: x.nameTick,
|
|
912
|
+
format: (e) => $e(String(e), it.ranking, "…")
|
|
905
913
|
},
|
|
906
914
|
...p.get(L) ? { rule: { class: "stroke-text-secondary" } } : {},
|
|
907
915
|
tooltip: {
|
|
908
|
-
...p.get(
|
|
909
|
-
context: p.get(
|
|
916
|
+
...p.get(k),
|
|
917
|
+
context: p.get(mt)
|
|
910
918
|
},
|
|
911
919
|
highlight: { area: !1 }
|
|
912
920
|
}));
|
|
@@ -917,15 +925,15 @@ function v(je, _) {
|
|
|
917
925
|
x: "value",
|
|
918
926
|
y: "label",
|
|
919
927
|
get orientation() {
|
|
920
|
-
return
|
|
928
|
+
return b.ranking.orientation;
|
|
921
929
|
},
|
|
922
930
|
axis: "y",
|
|
923
931
|
get padding() {
|
|
924
|
-
return p.get(
|
|
932
|
+
return p.get(St);
|
|
925
933
|
},
|
|
926
934
|
labels: {
|
|
927
935
|
placement: "outside",
|
|
928
|
-
value: (e) => m(e,
|
|
936
|
+
value: (e) => m(e, D),
|
|
929
937
|
format: String
|
|
930
938
|
},
|
|
931
939
|
get series() {
|
|
@@ -940,18 +948,18 @@ function v(je, _) {
|
|
|
940
948
|
}
|
|
941
949
|
p.reset(n);
|
|
942
950
|
var i = p.sibling(n, 2), a = (e) => {
|
|
943
|
-
var t =
|
|
944
|
-
p.reset(t), p.template_effect((e) => p.set_text(n, e), [() =>
|
|
951
|
+
var t = Ve(), n = p.child(t, !0);
|
|
952
|
+
p.reset(t), p.template_effect((e) => p.set_text(n, e), [() => y.foundry_more_count({ count: p.get(Ct) })]), p.append(e, t);
|
|
945
953
|
};
|
|
946
954
|
p.if(i, (e) => {
|
|
947
|
-
p.get(
|
|
955
|
+
p.get(Ct) > 0 && e(a);
|
|
948
956
|
}), p.reset(t), p.append(e, t);
|
|
949
957
|
}, d = (e) => {
|
|
950
|
-
var t =
|
|
958
|
+
var t = He(), n = p.child(t), r = p.child(n);
|
|
951
959
|
{
|
|
952
960
|
let e = (e) => {
|
|
953
961
|
{
|
|
954
|
-
let t = p.derived(() => [["0%",
|
|
962
|
+
let t = p.derived(() => [["0%", x.barGradient[0]], ["100%", x.barGradient[1]]]);
|
|
955
963
|
(void 0)(e, {
|
|
956
964
|
id: "report-bar-v",
|
|
957
965
|
vertical: !0,
|
|
@@ -962,42 +970,42 @@ function v(je, _) {
|
|
|
962
970
|
}
|
|
963
971
|
}, t = p.derived(() => ({
|
|
964
972
|
placement: "outside",
|
|
965
|
-
format: p.get(
|
|
966
|
-
})), n = p.derived(() =>
|
|
973
|
+
format: p.get(O)
|
|
974
|
+
})), n = p.derived(() => tt(p.get(Tt), p.get(E), p.get(L))), i = p.derived(() => ({
|
|
967
975
|
bars: {
|
|
968
|
-
radius:
|
|
969
|
-
rounded:
|
|
976
|
+
radius: x.barRadius,
|
|
977
|
+
rounded: x.barRounded,
|
|
970
978
|
strokeWidth: 0,
|
|
971
979
|
...p.get(L) ? {} : { fill: "url(#report-bar-v)" },
|
|
972
|
-
...p.get(
|
|
980
|
+
...p.get(pt)
|
|
973
981
|
},
|
|
974
982
|
labels: {
|
|
975
983
|
class: "fill-text-secondary font-medium",
|
|
976
984
|
fontSize: 12
|
|
977
985
|
},
|
|
978
986
|
xAxis: {
|
|
979
|
-
tickLabelProps:
|
|
980
|
-
format: (e) =>
|
|
987
|
+
tickLabelProps: x.nameTick,
|
|
988
|
+
format: (e) => $e(String(e), it.column, "…")
|
|
981
989
|
},
|
|
982
990
|
...p.get(L) ? { rule: { class: "stroke-text-secondary" } } : {},
|
|
983
991
|
tooltip: {
|
|
984
|
-
...p.get(
|
|
985
|
-
context: p.get(
|
|
992
|
+
...p.get(k),
|
|
993
|
+
context: p.get(mt)
|
|
986
994
|
},
|
|
987
995
|
highlight: { area: !1 }
|
|
988
996
|
}));
|
|
989
997
|
(void 0)(r, {
|
|
990
998
|
get data() {
|
|
991
|
-
return p.get(
|
|
999
|
+
return p.get(Tt);
|
|
992
1000
|
},
|
|
993
1001
|
x: "label",
|
|
994
1002
|
y: "value",
|
|
995
1003
|
get orientation() {
|
|
996
|
-
return
|
|
1004
|
+
return b.column.orientation;
|
|
997
1005
|
},
|
|
998
1006
|
axis: "x",
|
|
999
1007
|
get padding() {
|
|
1000
|
-
return
|
|
1008
|
+
return b.column.padding;
|
|
1001
1009
|
},
|
|
1002
1010
|
get labels() {
|
|
1003
1011
|
return p.get(t);
|
|
@@ -1014,48 +1022,48 @@ function v(je, _) {
|
|
|
1014
1022
|
}
|
|
1015
1023
|
p.reset(n);
|
|
1016
1024
|
var i = p.sibling(n, 2), a = (e) => {
|
|
1017
|
-
var t =
|
|
1018
|
-
p.reset(t), p.template_effect((e) => p.set_text(n, e), [() =>
|
|
1025
|
+
var t = Ve(), n = p.child(t, !0);
|
|
1026
|
+
p.reset(t), p.template_effect((e) => p.set_text(n, e), [() => y.foundry_more_count({ count: p.get(Et) })]), p.append(e, t);
|
|
1019
1027
|
};
|
|
1020
1028
|
p.if(i, (e) => {
|
|
1021
|
-
p.get(
|
|
1029
|
+
p.get(Et) > 0 && e(a);
|
|
1022
1030
|
}), p.reset(t), p.append(e, t);
|
|
1023
1031
|
}, f = (e) => {
|
|
1024
|
-
var t =
|
|
1032
|
+
var t = Ge(), n = p.child(t), r = p.child(n), i = p.child(r), a = p.child(i), o = p.sibling(a);
|
|
1025
1033
|
p.reset(i), p.reset(r);
|
|
1026
1034
|
var s = p.sibling(r), c = p.sibling(s);
|
|
1027
1035
|
p.reset(n);
|
|
1028
1036
|
var l = p.sibling(n, 2), u = p.child(l), d = p.child(u, !0);
|
|
1029
1037
|
p.reset(u);
|
|
1030
1038
|
var f = p.sibling(u, 2), m = (e) => {
|
|
1031
|
-
var t =
|
|
1032
|
-
p.reset(t), p.template_effect(() => p.set_text(n, p.get(
|
|
1039
|
+
var t = Ue(), n = p.child(t, !0);
|
|
1040
|
+
p.reset(t), p.template_effect(() => p.set_text(n, p.get(Bt))), p.append(e, t);
|
|
1033
1041
|
};
|
|
1034
1042
|
p.if(f, (e) => {
|
|
1035
|
-
p.get(
|
|
1043
|
+
p.get(Bt) && e(m);
|
|
1036
1044
|
});
|
|
1037
1045
|
var h = p.sibling(f, 2), g = (e) => {
|
|
1038
|
-
var t =
|
|
1039
|
-
p.reset(t), p.template_effect(() => p.set_text(n, p.get(
|
|
1046
|
+
var t = We(), n = p.child(t, !0);
|
|
1047
|
+
p.reset(t), p.template_effect(() => p.set_text(n, p.get(Vt).text)), p.append(e, t);
|
|
1040
1048
|
};
|
|
1041
1049
|
p.if(h, (e) => {
|
|
1042
|
-
p.get(
|
|
1050
|
+
p.get(Vt) && e(g);
|
|
1043
1051
|
}), p.reset(l), p.reset(t), p.template_effect((e) => {
|
|
1044
|
-
p.set_class(t, 1, `flex h-full w-full overflow-hidden ${p.get(
|
|
1045
|
-
}, [() =>
|
|
1046
|
-
},
|
|
1047
|
-
var t =
|
|
1052
|
+
p.set_class(t, 1, `flex h-full w-full overflow-hidden ${p.get(vt) ? "flex-col items-center justify-center" : "flex-row items-center justify-center gap-3"}`), p.set_class(n, 0, `block ${p.get(vt) ? "w-full max-w-[230px]" : "h-full max-h-full w-auto"}`), p.set_attribute(a, "stop-color", x.barGradient[0]), p.set_attribute(o, "stop-color", x.barGradient[1]), p.set_attribute(s, "d", p.get(Ut)), p.set_attribute(s, "fill", x.track), p.set_attribute(c, "d", p.get(Wt)), p.set_class(l, 1, `flex flex-col ${p.get(vt) ? "-mt-4 items-center text-center" : "items-start text-left"}`), p.set_text(d, e);
|
|
1053
|
+
}, [() => D(p.get(z))]), p.bind_element_size(t, "clientHeight", (e) => p.set(_t, e)), p.append(e, t);
|
|
1054
|
+
}, h = (e) => {
|
|
1055
|
+
var t = Ke(), n = p.child(t), r = p.child(n);
|
|
1048
1056
|
{
|
|
1049
|
-
let e = p.derived(() => p.get(
|
|
1057
|
+
let e = p.derived(() => p.get(C).innerRadius ?? (p.get(C).kind === "breakdown" ? -25 : 0)), t = p.derived(() => ({ tooltip: p.get(st) }));
|
|
1050
1058
|
(void 0)(r, {
|
|
1051
1059
|
get data() {
|
|
1052
|
-
return p.get(
|
|
1060
|
+
return p.get(bt);
|
|
1053
1061
|
},
|
|
1054
1062
|
key: "label",
|
|
1055
1063
|
value: "value",
|
|
1056
1064
|
c: "label",
|
|
1057
1065
|
get cRange() {
|
|
1058
|
-
return
|
|
1066
|
+
return x.palette;
|
|
1059
1067
|
},
|
|
1060
1068
|
get innerRadius() {
|
|
1061
1069
|
return p.get(e);
|
|
@@ -1069,29 +1077,29 @@ function v(je, _) {
|
|
|
1069
1077
|
p.reset(n);
|
|
1070
1078
|
var i = p.sibling(n, 2), a = p.child(i);
|
|
1071
1079
|
{
|
|
1072
|
-
let e = p.derived(() => p.get(
|
|
1080
|
+
let e = p.derived(() => p.get(bt).map((e, t) => ({
|
|
1073
1081
|
label: e.label,
|
|
1074
|
-
color:
|
|
1075
|
-
value: p.get(
|
|
1082
|
+
color: x.palette[t % x.palette.length],
|
|
1083
|
+
value: p.get(yt) > 0 ? `${Math.round(e.value / p.get(yt) * 100)}%` : void 0
|
|
1076
1084
|
})));
|
|
1077
|
-
|
|
1085
|
+
ee(a, () => p.get(e));
|
|
1078
1086
|
}
|
|
1079
1087
|
p.reset(i), p.reset(t), p.template_effect(() => {
|
|
1080
|
-
p.set_class(t, 1, `flex h-full w-full items-center justify-center gap-3 overflow-hidden ${p.get(
|
|
1081
|
-
}), p.bind_element_size(t, "clientWidth", (e) => p.set(
|
|
1082
|
-
},
|
|
1083
|
-
var t =
|
|
1088
|
+
p.set_class(t, 1, `flex h-full w-full items-center justify-center gap-3 overflow-hidden ${p.get(P) ? "flex-row" : "flex-col"}`), p.set_class(n, 1, `aspect-square max-h-full max-w-full ${p.get(P) ? "h-full w-auto" : "min-h-0 w-full flex-1"}`), p.set_class(i, 1, p.clsx(p.get(P) ? "min-w-0 flex-1" : "w-full shrink-0"));
|
|
1089
|
+
}), p.bind_element_size(t, "clientWidth", (e) => p.set(ht, e)), p.bind_element_size(t, "clientHeight", (e) => p.set(gt, e)), p.append(e, t);
|
|
1090
|
+
}, g = (e) => {
|
|
1091
|
+
var t = ne(), n = p.child(t), r = p.child(n);
|
|
1084
1092
|
{
|
|
1085
|
-
let e = p.derived(() => (void 0)().padding(
|
|
1093
|
+
let e = p.derived(() => (void 0)().padding(p.get(N))), t = p.derived(() => [{
|
|
1086
1094
|
key: "value",
|
|
1087
|
-
label:
|
|
1095
|
+
label: p.get(jt),
|
|
1088
1096
|
value: "value",
|
|
1089
|
-
color:
|
|
1097
|
+
color: x.series
|
|
1090
1098
|
}, {
|
|
1091
1099
|
key: "expected",
|
|
1092
|
-
label: p.get(
|
|
1100
|
+
label: p.get(At),
|
|
1093
1101
|
value: "expected",
|
|
1094
|
-
color:
|
|
1102
|
+
color: x.ghost,
|
|
1095
1103
|
props: { "stroke-dasharray": "6 4" }
|
|
1096
1104
|
}]), n = p.derived(() => ({
|
|
1097
1105
|
spline: {
|
|
@@ -1104,23 +1112,26 @@ function v(je, _) {
|
|
|
1104
1112
|
r: 5
|
|
1105
1113
|
},
|
|
1106
1114
|
labels: {
|
|
1107
|
-
format:
|
|
1115
|
+
format: D,
|
|
1108
1116
|
class: "fill-text-primary text-xs font-semibold"
|
|
1109
1117
|
},
|
|
1110
1118
|
yAxis: {
|
|
1111
|
-
format: p.get(
|
|
1112
|
-
tickLabelProps:
|
|
1119
|
+
format: p.get(O),
|
|
1120
|
+
tickLabelProps: x.tick
|
|
1113
1121
|
},
|
|
1114
|
-
xAxis: {
|
|
1115
|
-
|
|
1122
|
+
xAxis: {
|
|
1123
|
+
tickLabelProps: x.tick,
|
|
1124
|
+
tickSpacing: 48
|
|
1125
|
+
},
|
|
1126
|
+
tooltip: p.get(Nt),
|
|
1116
1127
|
highlight: {
|
|
1117
|
-
points:
|
|
1118
|
-
lines:
|
|
1128
|
+
points: x.highlight.points,
|
|
1129
|
+
lines: x.highlight.lines
|
|
1119
1130
|
}
|
|
1120
1131
|
}));
|
|
1121
1132
|
(void 0)(r, {
|
|
1122
1133
|
get data() {
|
|
1123
|
-
return p.get(
|
|
1134
|
+
return p.get(kt);
|
|
1124
1135
|
},
|
|
1125
1136
|
x: "label",
|
|
1126
1137
|
get xScale() {
|
|
@@ -1134,7 +1145,7 @@ function v(je, _) {
|
|
|
1134
1145
|
return p.get(F);
|
|
1135
1146
|
},
|
|
1136
1147
|
get padding() {
|
|
1137
|
-
return
|
|
1148
|
+
return S.valueAxis;
|
|
1138
1149
|
},
|
|
1139
1150
|
get series() {
|
|
1140
1151
|
return p.get(t);
|
|
@@ -1145,40 +1156,34 @@ function v(je, _) {
|
|
|
1145
1156
|
}
|
|
1146
1157
|
});
|
|
1147
1158
|
}
|
|
1148
|
-
p.reset(n)
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
label: p.get(kt),
|
|
1156
|
-
color: S.ghost
|
|
1157
|
-
}]);
|
|
1158
|
-
g(i, () => p.get(e));
|
|
1159
|
-
}
|
|
1160
|
-
p.reset(t), p.append(e, t);
|
|
1159
|
+
p.reset(n), te(p.sibling(n, 2), () => [{
|
|
1160
|
+
label: p.get(jt),
|
|
1161
|
+
color: x.series
|
|
1162
|
+
}, {
|
|
1163
|
+
label: p.get(At),
|
|
1164
|
+
color: x.ghost
|
|
1165
|
+
}]), p.reset(t), p.append(e, t);
|
|
1161
1166
|
}, re = (e) => {
|
|
1162
1167
|
var t = p.comment(), n = p.first_child(t), r = (e) => {
|
|
1163
|
-
|
|
1168
|
+
Fe(e);
|
|
1164
1169
|
}, i = (e) => {
|
|
1165
|
-
|
|
1170
|
+
Ie(e);
|
|
1166
1171
|
};
|
|
1167
1172
|
p.if(n, (e) => {
|
|
1168
|
-
p.get(
|
|
1173
|
+
p.get(qt) ? e(r) : e(i, -1);
|
|
1169
1174
|
}), p.append(e, t);
|
|
1170
1175
|
}, ie = (e) => {
|
|
1171
1176
|
var t = p.comment(), n = p.first_child(t), r = (e) => {
|
|
1172
|
-
|
|
1177
|
+
Ye(e);
|
|
1173
1178
|
}, i = (e) => {
|
|
1174
|
-
|
|
1179
|
+
Xe(e);
|
|
1175
1180
|
};
|
|
1176
1181
|
p.if(n, (e) => {
|
|
1177
|
-
p.get(
|
|
1182
|
+
p.get(ln) ? e(r) : e(i, -1);
|
|
1178
1183
|
}), p.append(e, t);
|
|
1179
1184
|
}, ae = (e) => {
|
|
1180
1185
|
{
|
|
1181
|
-
let t = p.derived(() =>
|
|
1186
|
+
let t = p.derived(() => y.foundry_no_renderer({ tag: `chart/${String(p.get(C).kind)}` }));
|
|
1182
1187
|
o(e, {
|
|
1183
1188
|
get descriptor() {
|
|
1184
1189
|
return _.descriptor;
|
|
@@ -1190,13 +1195,13 @@ function v(je, _) {
|
|
|
1190
1195
|
}
|
|
1191
1196
|
};
|
|
1192
1197
|
p.if(a, (e) => {
|
|
1193
|
-
p.get(
|
|
1194
|
-
}), p.reset(i), p.reset(t), p.bind_element_size(i, "clientHeight", (e) =>
|
|
1198
|
+
p.get(gn) ? e(s) : p.get(C).kind === "trend" ? e(c, 1) : p.get(C).kind === "area" ? e(l, 2) : p.get(C).kind === "ranking" ? e(u, 3) : p.get(C).kind === "column" ? e(d, 4) : p.get(C).kind === "gauge" ? e(f, 5) : p.get(C).kind === "breakdown" || p.get(C).kind === "pie" ? e(h, 6) : p.get(C).kind === "pacing" ? e(g, 7) : p.get(C).kind === "funnel" ? e(re, 8) : p.get(C).kind === "heatmap" ? e(ie, 9) : e(ae, -1);
|
|
1199
|
+
}), p.reset(i), p.reset(t), p.bind_element_size(i, "clientHeight", (e) => M.height = e), p.bind_element_size(i, "clientWidth", (e) => M.width = e), p.append(e, t);
|
|
1195
1200
|
};
|
|
1196
|
-
p.if(
|
|
1197
|
-
|
|
1198
|
-
}), p.reset(
|
|
1201
|
+
p.if(vn, (e) => {
|
|
1202
|
+
ot() ? e(yn) : e(bn, -1);
|
|
1203
|
+
}), p.reset(_n), p.append(h, _n), p.pop();
|
|
1199
1204
|
}
|
|
1200
1205
|
p.delegate(["pointermove"]);
|
|
1201
1206
|
//#endregion
|
|
1202
|
-
export {
|
|
1207
|
+
export { Ye as default };
|