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